@font-face {
  font-family: 'Anton';
  src: url("../fonts/Anton-Regular.055c4df4e2f8.ttf") format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face { font-family: 'JetBrains Mono'; src: url("../fonts/JetBrainsMono-Regular.4e0581ae831b.woff2") format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url("../fonts/JetBrainsMono-SemiBold.17523973c520.woff2") format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url("../fonts/JetBrainsMono-Bold.f3651b6798df.woff2") format('woff2'); font-weight: 700 800; font-display: swap; }

:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --ink: #000000;
  --ink-2: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-strong: #9ca3af;
  --wa: #25d366;
  --shadow: 4px 4px 0 var(--ink);
  --ok: #15803d;
  --ok-bg: #e8f5ec;
  --warn: #b45309;
  --warn-bg: #fff4e0;
  --err: #b91c1c;
  --err-bg: #fdecec;
  --radius: 8px;
  --radius-sm: 6px;
  --bar-h: 132px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --font-display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pos-G: #b45309;
  --pos-Z: #1d4ed8;
  --pos-M: #15803d;
  --pos-A: #b91c1c;
  --pos-X: #7e22ce;
}

*, ::before, ::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: var(--line); }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre, fieldset { margin: 0; }
fieldset, legend { padding: 0; }
ol, ul, menu { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
small { font-size: 80%; }
hr { height: 0; color: inherit; border-top-width: 1px; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; margin: 0; padding: 0; }
button, select { text-transform: none; }
button, [type=button], [type=submit], [type=reset] { -webkit-appearance: button; background: transparent; }
button, [role=button] { cursor: pointer; }
:disabled { cursor: default; }
input::placeholder, textarea::placeholder { opacity: 1; color: var(--line-strong); }
textarea { resize: vertical; }
summary { display: list-item; }
img, svg, video { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
[hidden] { display: none; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.font-display { font-family: var(--font-display); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--surface);
  border-bottom: 2px solid var(--ink);
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.5px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.logo span { color: var(--muted); }
.topnav { display: none; gap: 10px; align-items: center; }
.topnav a, .topbar-actions .btn {
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 120ms var(--ease), box-shadow 120ms var(--ease);
}
.topnav a:hover, .topbar-actions .btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.topnav a:active, .topbar-actions .btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.topnav a.is-active { background: var(--ink); color: #fff; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }

.acct { position: relative; }
.acct > summary {
  list-style: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: transform 120ms var(--ease), box-shadow 120ms var(--ease), background 120ms;
}
.acct > summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .acct > summary:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); } }
.acct > summary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.acct[open] > summary { background: var(--ink); color: #fff; }
.acct-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 240px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  padding: 6px;
  z-index: 50;
}
.acct-who { display: grid; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.acct-who small { font-size: 11px; color: var(--muted); }
.acct-who strong { font-size: 13px; overflow-wrap: anywhere; }
.acct-nav { display: grid; padding-bottom: 4px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.acct-menu a, .acct-out {
  display: block;
  width: 100%;
  padding: 11px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
}
.acct-menu a:hover, .acct-out:hover { background: var(--bg); }
.acct-menu a.is-active { background: var(--ink); color: #fff; }
.acct-out { color: var(--err); }
.acct[open] .acct-menu { animation: menu-in 200ms var(--ease); }

.has-actionbar { padding-bottom: calc(var(--bar-h) + var(--safe-b)); }

@media (min-width: 768px) {
  .topnav { display: flex; }
  .acct-nav { display: none; }
}
@media (min-width: 900px) {
  .has-actionbar { padding-bottom: 0; }
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 16px 32px;
}
.page-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 32px;
}

.page-title {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  text-transform: uppercase;
  margin: 4px 0 18px;
  letter-spacing: 0.3px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  overflow: hidden;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 10px;
}
.card-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}
.card-body { padding: 0 16px 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  --sh: 3px;
  --sh-c: var(--ink);
  border-radius: var(--radius-sm);
  border: 2px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--sh) var(--sh) 0 var(--sh-c);
  transition: transform 120ms var(--ease), box-shadow 120ms var(--ease), background 120ms var(--ease), opacity 200ms var(--ease);
  user-select: none;
}
@media (hover: hover) {
  .btn:hover { transform: translate(-2px, -2px); box-shadow: calc(var(--sh) + 2px) calc(var(--sh) + 2px) 0 var(--sh-c); }
  .btn-ghost:hover, .btn-danger:hover { transform: none; background: var(--bg); }
}
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--sh-c); }
.btn-primary { --sh: 4px; --sh-c: var(--line-strong); background: var(--ink); color: #fff; }
.btn-ghost { --sh-c: transparent; border-color: transparent; background: transparent; }
.btn-ghost:active { transform: none; }
.btn-ok { background: var(--wa); color: var(--ink); }
.btn-sm { --sh: 2px; min-height: 38px; padding: 0 12px; font-size: 12px; }
.btn-lg { min-height: 58px; font-family: var(--font-display); font-weight: normal; font-size: 22px; letter-spacing: 0.04em; text-transform: uppercase; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: 0.4; pointer-events: none; }
.btn svg { width: 22px; height: 22px; flex-shrink: 0; }

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--bg);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
}
.pos-G { color: var(--pos-G); }
.pos-Z { color: var(--pos-Z); }
.pos-M { color: var(--pos-M); }
.pos-A { color: var(--pos-A); }
.pos-X { color: var(--pos-X); }

.alert {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 14px;
  border: 2px solid currentColor;
}
.alert-err { background: var(--err-bg); color: var(--err); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }
.alert-ok { background: var(--ok-bg); color: var(--ok); }

.stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}
.stepper-row + .stepper-row { border-top: 1px solid var(--line); }
.stepper-label { font-weight: 700; font-size: 16px; }
.stepper-label small { display: block; font-weight: 500; font-size: 13px; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--ink);
  background: var(--surface);
  font-family: inherit;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 120ms var(--ease), box-shadow 120ms var(--ease);
}
@media (hover: hover) {
  .stepper button:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
}
.stepper button:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.stepper button[disabled] { box-shadow: none; transform: none; }
.stepper button[disabled] { opacity: 0.3; }
.stepper output {
  min-width: 44px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  cursor: pointer;
}
.switch-row + .switch-row, .stepper-row + .switch-row, .switch-row + .stepper-row { border-top: 1px solid var(--line); }
.switch-row strong { display: block; font-size: 16px; }
.switch-row small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.switch { position: relative; flex-shrink: 0; width: 52px; height: 32px; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d1d5db;
  transition: background 220ms var(--ease);
  pointer-events: none;
}
.switch span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 260ms var(--ease);
}
.switch input:checked + span { background: var(--ink); }
.switch input:checked + span::after { transform: translateX(20px); }

.input, .select {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--ink);
  background: var(--surface);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}
.input:focus, .select:focus { outline: 3px solid var(--line-strong); outline-offset: 1px; }

.actionbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  padding: 10px 16px calc(14px + var(--safe-b));
  background: var(--surface);
  border-top: 2px solid var(--ink);
}
.actionbar-inner { max-width: 640px; margin: 0 auto; display: grid; gap: 8px; }
@media (min-width: 900px) {
  .actionbar { position: static; padding: 14px 16px 16px; border-top: 2px solid var(--ink); background: none; }
}

.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  min-height: 56px;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.list-row:first-child { border-top: 0; }
a.list-row:active { background: var(--bg); }
.list-row .grow { flex: 1; min-width: 0; font-weight: 600; }
.list-row svg { width: 22px; height: 22px; color: var(--muted); flex-shrink: 0; }

.empty {
  text-align: center;
  padding: 32px 20px;
}
.empty p { margin: 0 0 16px; color: var(--muted); }

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.toolbar {
  display: flex;
  gap: 8px;
  padding: 0 16px 10px;
  flex-wrap: wrap;
}
.toolbar .input { flex: 1 1 100%; min-height: 42px; font-size: 15px; }
.toolbar .dd { flex: 1 1 100%; }
@media (min-width: 560px) {
  .toolbar .input { flex: 1 1 200px; }
  .toolbar .dd { flex: 0 0 210px; }
}

.count-pill {
  font-size: 14px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.card-head .count-pill { margin-left: 8px; }

.card-foot {
  border-top: 1px solid var(--line);
  padding: 4px 8px 4px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.draw-note { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); text-align: center; text-wrap: balance; }
.draw-note:empty { display: none; }
.draw-note .is-warn { color: var(--warn); font-weight: 600; }
.draw-note > * { white-space: nowrap; }
.draw-note .link { font: inherit; font-weight: 700; color: var(--ink); background: none; border: 0; padding: 6px 4px; margin: -6px -4px; cursor: pointer; }

.more-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.more-btn:hover { background: var(--bg); }
.more-btn small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.more-btn::after { content: '▸'; font-size: 18px; }
.subgroup { padding: 4px 0 8px 12px; border-left: 3px solid var(--line); margin: 0 0 8px; }

.panela-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.panela-row .select { flex: 1; min-width: 0; }
.panela-row .select.team { flex: 0 0 104px; }
.icon-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 120ms var(--ease), box-shadow 120ms var(--ease);
}
@media (hover: hover) {
  .icon-btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
}
.icon-btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }

.draw-btn .when-loading { display: none; }
.htmx-request .draw-btn .when-loading, .draw-btn.htmx-request .when-loading { display: inline; }
.htmx-request .draw-btn .when-idle, .draw-btn.htmx-request .when-idle { display: none; }

.result {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: result-in 320ms var(--ease);
}
@keyframes result-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.result-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface);
  border-bottom: 2px solid var(--ink);
}
.result-head-inner {
  max-width: 900px;
  margin: 0 auto;
  height: 60px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.result-head h2 { font-family: var(--font-display); font-size: 26px; font-weight: normal; text-transform: uppercase; margin: 0; }
.result-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 16px calc(150px + var(--safe-b));
}
.result-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 61;
  background: var(--surface);
  border-top: 2px solid var(--ink);
  padding: 12px 16px calc(14px + var(--safe-b));
}
.result-actions-inner { max-width: 640px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.result-actions-inner .btn-ok { grid-column: 1 / -1; }

.teams { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .teams { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }
.team { background: var(--surface); border-radius: var(--radius); border: 2px solid var(--ink); box-shadow: var(--shadow); overflow: hidden; }
.team-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 8px 14px;
  background: var(--ink);
  color: #fff;
}
.team-head h3 { margin: 0; font-family: var(--font-display); font-weight: normal; font-size: 24px; text-transform: uppercase; letter-spacing: 0.5px; }
.team-head span { font-size: 13px; font-weight: 400; opacity: 0.75; }
.team-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  min-height: 44px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  font-weight: 700;
}
.team-row:first-of-type { border-top: 0; }
.team-row .grow { flex: 1; min-width: 0; }
.team-row .score { font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 22px; text-align: right; }
.leftovers { margin-top: 18px; border-style: dashed; box-shadow: none; }
.leftovers .team-head { background: var(--bg); color: var(--ink); }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bar-h) + 16px + var(--safe-b));
  transform: translateX(-50%);
  z-index: 80;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 4px 4px 0 var(--line-strong);
  max-width: calc(100vw - 48px);
  animation: toast-in 260ms var(--ease);
}
.result-open, .result-open body { overflow: hidden; }
.result-actions-inner .btn { padding: 0 8px; white-space: nowrap; }

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 16px;
}
.page-head .page-title { margin: 0; }

.score-badge {
  min-width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.field { margin-bottom: 20px; }
.field > label, .field > .label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.field .error { color: var(--err); font-size: 14px; font-weight: 600; margin-top: 6px; }
.input.is-invalid { border-color: var(--err); }

.btn-danger { --sh-c: transparent; color: var(--err); border-color: transparent; background: transparent; }
.btn-danger:active { transform: none; }
.stack { display: grid; gap: 8px; }
.card-pad { padding: 16px; }
.card-pad .stepper-row, .card-pad .switch-row { padding-left: 0; padding-right: 0; }
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--ink-2);
  font-weight: 700;
  text-decoration: none;
}
.btn-delete { background: var(--err); color: #fff; }

.page-title span {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  padding: 2px 8px 0;
  border-radius: var(--radius-sm);
  box-shadow: 4px 4px 0 var(--line-strong);
}

.card-head .btns { display: flex; gap: 6px; }
.draw-side .card-head { padding-bottom: 4px; }
@media (min-width: 900px) {
  .draw-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
}
#result { scroll-margin-top: 72px; }

@media (min-width: 900px) {
  .result { position: static; inset: auto; z-index: auto; overflow: visible; background: none; animation: fade-up 320ms var(--ease); display: flex; flex-direction: column; margin-top: 30px; }
  .result-head { position: static; background: none; border: 0; order: 0; }
  .result-head-inner { max-width: none; padding: 0; height: auto; margin-bottom: 14px; }
  .result-head h2 { font-size: 30px; }
  .result-head .icon-btn { display: none; }
  .result-actions { position: static; order: 1; background: none; border: 0; padding: 0 0 18px; }
  .result-actions-inner { max-width: none; display: flex; flex-wrap: wrap; gap: 10px; }
  .result-actions-inner .btn-lg { min-height: 48px; font-family: var(--font); font-size: 14px; font-weight: 700; }
  .result-body { order: 2; max-width: none; width: 100%; margin: 0; padding: 0; }
  .result-open, .result-open body { overflow: visible; }
}

.hero { display: grid; gap: 28px; padding: 12px 0 36px; align-items: center; }
.hero-title { font-family: var(--font-display); font-weight: normal; text-transform: uppercase; font-size: 44px; line-height: 1.05; margin: 0 0 14px; letter-spacing: 0.3px; }
.hero-title span { display: inline-block; background: var(--ink); color: #fff; padding: 2px 10px 0; border-radius: var(--radius-sm); box-shadow: 4px 4px 0 var(--line-strong); }
.hero-sub { font-size: 16px; margin: 0 0 22px; max-width: 34em; }
.hero-ctas { display: grid; gap: 10px; margin-bottom: 10px; }
.hero-demo { margin: 0; }
.hero-demo .teams { grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-demo .team-head h3 { font-size: 20px; }
.hero-demo .team-row { font-size: 13px; padding-left: 10px; padding-right: 10px; gap: 6px; }
.hero-demo .chip { display: none; }
.home-section { padding: 18px 0; }
.section-title { font-family: var(--font-display); font-weight: normal; text-transform: uppercase; font-size: 30px; line-height: 1.1; margin: 0 0 16px; }
.steps, .features { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li, .features li { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps b { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; background: var(--ink); color: #fff; border-radius: var(--radius-sm); font-family: var(--font-display); font-weight: normal; font-size: 22px; }
.steps h3, .features h3 { margin: 0 0 4px; font-size: 16px; }
.steps p, .features p { margin: 0; color: var(--muted); font-size: 14px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary { padding: 16px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0; padding: 0 16px 16px; color: var(--muted); }
.home-cta { text-align: center; padding: 28px 0 12px; }
.home-cta .btn { min-width: 260px; }
@media (min-width: 640px) {
  .hero-ctas { display: flex; flex-wrap: wrap; }
  .hero-ctas .btn { min-width: 220px; }
  .features { grid-template-columns: 1fr 1fr; }
  .hero-demo .chip { display: inline-flex; }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.1fr 1fr; gap: 48px; padding: 40px 0 56px; }
  .hero-title { font-size: 64px; }
  .hero-sub { font-size: 17px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(4, 1fr); }
}

.auth { max-width: 440px; margin: 0 auto; }
.auth .card-pad { padding: 20px; }
.auth .card-pad > p { margin: 0 0 16px; }
.auth .btn-block { margin-top: 4px; }
.pw { position: relative; }
.pw .input { padding-right: 52px; }
.pw button {
  position: absolute;
  top: 2px;
  right: 2px;
  bottom: 2px;
  width: 46px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.pw button[aria-pressed="true"] { color: var(--ink); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; margin-bottom: 20px; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); flex-shrink: 0; }
.field-hint { color: var(--muted); font-size: 13px; margin-top: 6px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; }
.auth-alt { text-align: center; margin-top: 20px; }
.auth-alt p { margin: 0 0 10px; }
.link { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

textarea.input { padding: 12px 14px; min-height: 140px; resize: vertical; line-height: 1.5; }
.input[readonly] { background: var(--bg); color: var(--muted); }
.inbox-item { padding: 12px 16px; border-top: 1px solid var(--line); }
.inbox-item:first-child { border-top: 0; }
.inbox-item p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.card-intro { margin: 0 0 16px; }

.page-intro { margin: -6px 0 18px; }
.add-form { display: grid; gap: 10px; border-bottom: 1px solid var(--line); }
.add-form .stepper-row { padding-top: 4px; padding-bottom: 4px; }
.add-form .error { color: var(--err); font-size: 14px; font-weight: 600; margin: 0; }
.list-row .icon-btn { width: 36px; height: 36px; font-size: 14px; border-width: 1px; border-color: var(--line-strong); box-shadow: none; transform: none; }
.draw-foot { border-top: 1px solid var(--line); display: grid; gap: 10px; }
.draw-foot .alert { margin: 0; }

@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.filters { display: flex; gap: 6px; padding: 0 16px 12px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.fchip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 10px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.fchip small { font-size: 11px; font-weight: 400; opacity: 0.7; }
.fchip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.fsep { flex: 0 0 2px; margin: 6px 2px; background: var(--line); }

.plist-head { display: none; }
.plist {
  position: relative;
  border-top: 1px solid var(--line);
  max-height: max(300px, calc(100vh - 430px));
  max-height: max(300px, calc(100dvh - 430px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.prow {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 96px 36px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 6px 8px 6px 16px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--line-strong);
  cursor: pointer;
  user-select: none;
  transition: background 220ms var(--ease), color 220ms var(--ease);
}
.plist > .prow:first-child { border-top: 0; }
.prow:has(input:checked) { background: var(--surface); color: var(--ink); }
.prow:has(input:focus-visible) { outline: 3px solid var(--line-strong); outline-offset: -3px; }
.prow:active { background: var(--line); }
.pcheck {
  width: 24px;
  height: 24px;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  display: grid;
  place-items: center;
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
}
.pcheck svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(0.4); transition: transform 260ms var(--ease), opacity 160ms var(--ease); }
.prow:has(input:checked) .pcheck { background: var(--ink); border-color: var(--ink); }
.prow:has(input:checked) .pcheck svg { opacity: 1; transform: none; }
.pwho { display: grid; min-width: 0; }
.pname { font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ppos { font-size: 12px; font-weight: 700; opacity: 0.45; transition: opacity 220ms var(--ease); }
.prow:has(input:checked) .ppos { opacity: 1; }
.pscore { display: flex; align-items: center; gap: 8px; }
.pscore b { width: 20px; text-align: right; font-variant-numeric: tabular-nums; }
.pbar { flex: 1; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.pbar i { display: block; height: 100%; border-radius: 4px; background: var(--line-strong); transition: background 220ms var(--ease); }
.prow:has(input:checked) .pbar i { background: var(--ink); }
.pedit { width: 36px; height: 36px; border-radius: var(--radius-sm); display: grid; place-items: center; color: var(--muted); }
.pedit:hover { background: var(--line); color: var(--ink); }
.pedit svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.plist-empty { padding: 24px 16px; text-align: center; color: var(--muted); }
.plist-empty .link { font: inherit; }

@media (min-width: 900px) {
  .plist-head, .prow { grid-template-columns: 24px minmax(0, 1fr) 96px minmax(140px, 200px) 36px; }
  .plist-head { display: grid; gap: 12px; align-items: center; height: 32px; padding: 0 8px 0 16px; background: var(--bg); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
  .prow { min-height: 52px; }
  .pwho { display: contents; }
  .ppos { font-size: 13px; }
  .plist { max-height: max(340px, calc(100vh - 400px)); }
  .draw-side { position: sticky; top: 16px; }
}

.prow.is-new { animation: row-flash 1200ms var(--ease); }
@keyframes row-flash { from { box-shadow: inset 4px 0 0 var(--ink); background: #fff8d6; } }

.dd { position: relative; }
.dd-btn {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 14px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 15px;
  text-align: left;
}
.dd-btn:focus-visible { outline: 3px solid var(--line-strong); outline-offset: 1px; }
.dd-k { color: var(--muted); }
.dd-v { flex: 1; font-weight: 700; white-space: nowrap; }
.dd-chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 260ms var(--ease); }
.dd.is-open .dd-chev { transform: rotate(180deg); }
.dd-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  padding: 4px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transform-origin: top;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 160ms var(--ease), transform 260ms var(--ease), visibility 0s linear 260ms;
}
.dd.is-open .dd-menu { opacity: 1; visibility: visible; transform: none; transition: opacity 160ms var(--ease), transform 260ms var(--ease), visibility 0s; }
.dd-menu [role=option] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 15px;
  text-align: left;
}
.dd-menu [role=option]:hover, .dd-menu [role=option]:focus-visible { background: var(--bg); outline: 0; }
.dd-menu [aria-selected=true] { font-weight: 700; }
.dd-menu [aria-selected=true]::after { content: ''; width: 10px; height: 6px; border: solid var(--ink); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translateY(-2px); }

.posgroup {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  overflow: hidden;
  --i: 0;
}
.posgroup:has(input[value=Z]:checked) { --i: 1; }
.posgroup:has(input[value=M]:checked) { --i: 2; }
.posgroup:has(input[value=A]:checked) { --i: 3; }
.posgroup:has(input[value=X]:checked) { --i: 4; }
.posgroup::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 20%;
  background: var(--ink);
  transform: translateX(calc(var(--i) * 100%));
  transition: transform 340ms var(--ease);
}
.posgroup label { position: relative; z-index: 1; }
.posgroup label + label { border-left: 1px solid var(--line); }
.posgroup input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.posgroup span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: color 240ms var(--ease);
}
.posgroup input:checked + span { color: #fff; }
.posgroup input:focus-visible + span { outline: 3px solid var(--line-strong); outline-offset: -5px; }
.field-hint { display: block; font-size: 13px; margin-top: 6px; }

html:has(.modal[open]) { overflow: hidden; }
.modal {
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  max-width: 100%;
  max-height: calc(100dvh - 32px);
  margin: 0;
  padding: 0;
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: var(--surface);
  color: var(--ink);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal::backdrop { background: rgba(0, 0, 0, 0.45); }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 12px 6px 16px;
}
.modal-title { font-family: var(--font-display); font-size: 26px; text-transform: uppercase; letter-spacing: 0.3px; line-height: 1.1; }
.modal-x { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-sm); flex-shrink: 0; }
.modal-x:hover { background: var(--bg); }
.modal-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.modal-body { padding: 8px 16px 0; }
.modal-body .field:last-of-type { margin-bottom: 4px; }
.modal-body .stepper-row { padding: 0; }
#options-modal .stepper-row { padding: 12px 0; }
#options-modal .modal-body { padding-bottom: 12px; }
.modal-foot {
  position: sticky;
  bottom: 0;
  display: grid;
  gap: 8px;
  padding: 12px 16px calc(12px + var(--safe-b));
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.modal-foot .btn.is-busy { opacity: 0.6; }
.btn-danger.is-armed { background: var(--err); color: #fff; }
.confirm-msg { margin: 0 0 8px; color: var(--muted); }
.modal-confirm .modal-foot { grid-template-columns: 1fr 1fr; border-top: 0; }
@media (min-width: 600px) {
  .modal {
    inset: 0;
    margin: auto;
    width: min(460px, calc(100vw - 32px));
    height: fit-content;
    max-height: calc(100vh - 48px);
    border-bottom: 2px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: 6px 6px 0 var(--ink);
  }
  .modal-confirm { width: min(400px, calc(100vw - 32px)); }
  .modal-foot { padding-bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

.result-empty { display: none; }
@media (min-width: 900px) {
  .draw-grid.is-split { grid-template-columns: minmax(340px, 430px) minmax(0, 1fr); }
  .is-split .draw-side { position: static; container-type: inline-size; }

  .is-split .plist-card .card-head { padding: 12px 14px 8px; }
  .is-split .card-title { font-size: 15px; }
  .is-split .card-head .btn-sm { min-height: 30px; padding: 0 10px; font-size: 11px; }
  .is-split .toolbar { padding: 0 14px 8px; gap: 6px; flex-wrap: nowrap; }
  .is-split .toolbar .input { flex: 1 1 auto; min-width: 0; min-height: 36px; font-size: 14px; padding: 0 12px; }
  .is-split .toolbar .dd { flex: 0 0 168px; }
  .is-split .dd-btn { min-height: 36px; font-size: 14px; padding: 0 10px 0 12px; }
  .is-split .filters { flex-wrap: wrap; gap: 4px; padding: 0 14px 10px; overflow: visible; }
  .is-split .fchip { height: 26px; padding: 0 7px; font-size: 12px; }
  .is-split .fsep { display: none; }
  .is-split .plist-head, .is-split .prow { grid-template-columns: 20px minmax(0, 1fr) 52px 84px 30px; gap: 10px; }
  .is-split .plist-head { height: 28px; padding: 0 6px 0 14px; font-size: 11px; }
  .is-split .prow { min-height: 42px; padding: 3px 6px 3px 14px; }
  .is-split .pcheck { width: 20px; height: 20px; }
  .is-split .pcheck svg { width: 12px; height: 12px; }
  .is-split .pname { font-size: 15px; }
  .is-split .ppos { font-size: 12px; }
  .is-split .pscore { gap: 6px; }
  .is-split .pscore b { width: 16px; font-size: 14px; }
  .is-split .pbar { height: 6px; }
  .is-split .pedit { width: 30px; height: 30px; }
  .is-split .pedit svg { width: 16px; height: 16px; }
  .is-split .card-foot { padding: 2px 6px 2px 14px; }
  .is-split .plist-card { display: flex; flex-direction: column; margin-bottom: 0; max-height: max(480px, calc(100vh - 172px)); max-height: max(480px, calc(100dvh - 172px)); }
  .is-split .plist-card > * { flex: none; }
  .is-split .plist-card > .plist { flex: 1 1 auto; min-height: 0; max-height: none; }

  .is-split .draw-side .stepper button { width: 40px; height: 40px; font-size: 20px; }
  .is-split .draw-side .stepper output { min-width: 36px; font-size: 20px; }
  .is-split .draw-side .card { margin-bottom: 22px; }

  .is-split .result { margin-top: 0; }
  .is-split .result-head-inner { margin-bottom: 10px; }
  .is-split .result-head h2 { font-size: 24px; }
  .is-split .result-actions { padding-bottom: 14px; }
  .is-split .result-actions-inner .btn { min-height: 40px; font-size: 13px; padding: 0 14px; }
  .is-split [data-action="redraw"] { display: none; }
  .is-split .teams { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
  .is-split .team-row { min-height: 38px; font-size: 15px; padding: 0 14px; }
  .is-split .leftovers { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .is-split .leftovers .team-head { grid-column: 1 / -1; padding-top: 6px; padding-bottom: 6px; }
  .is-split .leftovers .team-head h3 { font-size: 18px; }
  .is-split .leftovers .team-row { border-top: 1px solid var(--line); }

  .is-split #result:empty + .result-empty {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 32px 16px;
    border: 2px dashed var(--line-strong);
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 14px;
    text-align: center;
  }
  .result-empty p { margin: 0; }
  .ghost-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: min(300px, 100%); }
  .ghost-teams i {
    height: 84px;
    border: 2px solid var(--line);
    border-radius: var(--radius-sm);
    background:
      linear-gradient(var(--line), var(--line)) top / 100% 18px no-repeat,
      repeating-linear-gradient(transparent 0 29px, var(--line) 29px 30px) 0 18px / 100% 100% no-repeat;
  }
}
@container (min-width: 520px) {
  .fmt { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .fmt .stepper-row + .stepper-row { border-top: 0; }
  .draw-side .actionbar-inner { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(220px, 280px); align-items: center; column-gap: 16px; }
  .draw-side .actionbar-inner .draw-note { text-align: left; order: 1; }
  .draw-side .actionbar-inner .draw-btn { order: 2; }
  .draw-side #draw-error { order: 3; grid-column: 1 / -1; }
  .draw-side #draw-error:empty { display: none; }
}

.pn-stamp { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pn-note { margin: -6px 0 16px; font-size: 13px; color: var(--muted); }
.pn-empty { margin: 0; padding: 4px 0 8px; font-size: 13px; color: var(--muted); }
.pn-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.pn-kpi { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 12px 14px; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 3px 3px 0 var(--ink); }
.pn-kpi-label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pn-kpi-value { font-family: var(--font-display); font-weight: 400; font-size: 36px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.pn-kpi-sub { font-size: 12px; color: var(--muted); }
.pn-grid { display: grid; gap: 0 18px; }
.pn-readout { margin: 0 0 10px; font-size: 13px; font-weight: 600; min-height: 1.5em; }
.pn-bars { display: flex; align-items: stretch; gap: 2px; height: 120px; border-bottom: 1px solid var(--line-strong); }
.pn-bar { flex: 1 1 0; display: flex; flex-direction: column-reverse; gap: 2px; min-width: 0; outline: none; border-radius: 2px; cursor: default; }
.pn-bar:hover, .pn-bar:focus-visible { background: var(--bg); }
.pn-bar i { display: block; flex: none; border-radius: 0; }
.pn-bar i:last-child { border-radius: 3px 3px 0 0; }
.pn-bar i[style="height:0.0%"] { display: none; }
.pn-seg-a { background: var(--ink); }
.pn-seg-b { background: var(--line-strong); }
.pn-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--muted); }
.pn-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12px; color: var(--ink-2); }
.pn-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pn-sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.pn-hbar { display: grid; grid-template-columns: 48px 1fr 36px; align-items: center; gap: 10px; padding: 5px 0; font-size: 13px; }
.pn-hbar-label { font-weight: 700; font-variant-numeric: tabular-nums; }
.pn-hbar-track { height: 10px; }
.pn-hbar-track i { display: block; height: 100%; background: var(--ink); border-radius: 0 3px 3px 0; }
.pn-hbar-n { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.pn-table-wrap { overflow-x: auto; padding: 0 16px 12px; }
.pn-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pn-table th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 0 8px 6px 0; border-bottom: 1px solid var(--line); }
.pn-table td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); }
.pn-table tr:last-child td { border-bottom: 0; }
.pn-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-right: 0; padding-left: 8px; }
.pn-email { overflow-wrap: anywhere; }
.pn-feed { max-height: 460px; overflow-y: auto; padding: 0 16px 8px; }
.pn-feed-row { display: grid; grid-template-columns: 82px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.pn-feed-row:last-child { border-bottom: 0; }
.pn-feed-time { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pn-feed-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.pn-feed-detail { flex-basis: 100%; color: var(--muted); font-size: 12px; }
.pn-kind { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; background: var(--bg); color: var(--ink-2); white-space: nowrap; }
.pn-kind-signup { background: var(--ok-bg); color: var(--ok); }
.pn-kind-draw, .pn-kind-draw_quick { background: var(--ink); color: #fff; }
.pn-kind-draw_error { background: var(--err-bg); color: var(--err); }
@media (min-width: 700px) {
  .pn-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pn-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .pn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pn-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .pn-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
