/* Cambio scorekeeper — true-black flat (dealt style, seed 700092243)
   Tokens from .taste-skill/direction.json; shell rules adapted from tasteskill assets/app.css. */

:root {
  --ground: #000000;
  --surface: #111111;
  --raised: #2a2a2a;
  --border: #1a1a1a;
  --rule: #161616;
  --control: #444444;
  --text: #ffffff;
  --muted: #b4b4b4;
  --faint: #a3a3a3;
  --accent: #c6f24e;          /* one data hue: winners, focus, the selected thing */
  --accent-ink: #101502;      /* text that sits on the accent */
  --positive: #c6f24e;        /* lime is a yellow-green → it doubles as positive */
  --negative: #e5484d;
  --warning: #e5a93b;
  --pill-positive-bg: #222a10; --pill-positive-ink: #c6f24e;
  --pill-negative-bg: #2c1a20; --pill-negative-ink: #e5566f;
  --pill-warning-bg: #2b2414; --pill-warning-ink: #e5a93b;
  --pill-neutral-bg: #222222; --pill-neutral-ink: #ffffff;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-title: 20px; --fs-section: 16px; --fs-kpi: 24px; --fs-body: 14px; --fs-small: 13px;

  --sidebar-width: 210px;
  --topbar-h: 64px;
  --pad: 22px;                /* canvas padding, one gutter value */
  --gap: 14px;
  --card-pad: 18px;
  --radius-card: 20px;
  --radius-control: 999px;    /* soft style: controls are pills */
  --control-height: 36px;
  --row-height: 48px;
  --nav-row: 34px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-press: 120ms; --t-hover: 150ms; --t-ui: 200ms;
  --topbar-rule: #262626;
}

html[data-theme="light"] {
  --ground: #ffffff;
  --surface: #f4f4f1;
  --raised: #e7e7e2;
  --border: #dfdfd8;
  --rule: #eaeae5;
  --control: #c6c6bf;
  --text: #1a1a18;
  --muted: #5d5d57;
  --faint: #8a8a83;
  --accent: #587a0a;          /* deepened lime for contrast on white */
  --accent-ink: #ffffff;      /* text that sits on the accent */
  --positive: #587a0a;
  --negative: #cf3a40;
  --warning: #b3790f;
  --pill-positive-bg: #edf3d8; --pill-positive-ink: #58720a;
  --pill-negative-bg: #fbe9ea; --pill-negative-ink: #c12b31;
  --pill-warning-bg: #f7efdb; --pill-warning-ink: #8f640d;
  --pill-neutral-bg: #eaeae5; --pill-neutral-ink: #1a1a18;
  --topbar-rule: #dfdfd8;
}
html[data-theme="light"] .player-menu,
html[data-theme="light"] dialog.confirm { box-shadow: 0 12px 28px rgba(0,0,0,.16); }
html[data-theme="light"] dialog.confirm::backdrop { background: rgba(40,40,35,.35); }


/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font: var(--fs-body)/20px var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.num, table { font-variant-numeric: tabular-nums; }

/* ---------- scrollbars: theme-aware ---------- */
* { scrollbar-width: thin; scrollbar-color: var(--control) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--control); border-radius: 8px; border: 2px solid var(--ground); }



/* ---------- shell: ruled T-frame (sidebar + top bar on one ground) ---------- */
.app { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100svh; }
.sidebar { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; gap: 2px; padding: 18px 12px; overflow: auto; border-right: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; }
.brand-mark img { width: 18px; height: 18px; }
.brand-mark { width: 30px; height: 30px; flex: none; display: grid; place-items: center; background: var(--surface); border-radius: 8px; font-size: 17px; line-height: 1; color: var(--text); }
.brand-name { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.sidebar .group-label { margin: 14px 8px 6px; font-size: var(--fs-small); color: var(--faint); }
.nav-item { display: flex; align-items: center; gap: 10px; height: var(--nav-row); padding: 0 8px; border-radius: 8px; color: var(--muted); font-weight: 500; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.nav-item svg { width: 16px; height: 16px; flex: none; stroke-width: 1.5; }
.nav-item:hover { background: var(--surface); color: var(--text); }
/* dark: the active item is its label going from #bbb to #fff */
.nav-item[aria-current="page"] { background: var(--raised); color: var(--text); }
.sidebar .bottom { margin-top: auto; padding: 8px; font-size: var(--fs-small); color: var(--faint); line-height: 1.5; }

/* ---------- sync status (bottom-left) ---------- */
.sync-status { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 8px; width: 100%; box-sizing: border-box; border-radius: 10px; border: 1px solid var(--border); background: none; color: var(--muted); font-family: inherit; font-size: var(--fs-small); font-weight: 500; text-align: left; cursor: pointer; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.sync-status:hover { background: var(--surface); color: var(--text); }
.sync-status svg { width: 18px; height: 18px; flex: none; stroke-width: 1.5; }
.sync-status span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sync-status[data-sync-state="pending"] { color: var(--accent); border-color: color-mix(in oklab, var(--accent) 45%, var(--border)); }
.sync-status[data-sync-state="offline"] { color: var(--faint); }

.main { min-width: 0; display: flex; flex-direction: column; min-height: 100svh; }
.topbar { position: sticky; top: 0; z-index: 10; height: var(--topbar-h); flex: none; display: flex; align-items: center; gap: 12px; padding: 0 var(--pad); background: var(--ground); border-bottom: 1px solid var(--topbar-rule); }
.topbar-title { font-size: var(--fs-section); font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: none; }
.topbar-sub { color: var(--faint); font-size: var(--fs-small); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-session { margin-left: auto; max-width: 38vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: var(--fs-small); font-weight: 600; text-decoration: none; flex: none; }
.topbar-session[hidden] + .topbar-actions { margin-left: auto; }
.topbar-session:active { transform: scale(.97); }
.menu-toggle { display: none; }

.canvas { padding: var(--pad); padding-bottom: calc(var(--pad) + env(safe-area-inset-bottom, 0)); width: 100%; display: flex; flex-direction: column; }
.canvas-footer { margin-top: auto; padding-top: 28px; display: flex; justify-content: flex-end; color: var(--faint); font-size: var(--fs-small); }
.view[hidden] { display: none; }

/* ---------- title block ---------- */
.title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: var(--gap); }
.title-row h1 { font-size: var(--fs-title); line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.title-row .sub { margin-top: 4px; color: var(--muted); font-size: var(--fs-small); }

/* ---------- panels (elevation by lightness alone: no borders or shadows on cards) ---------- */
.panel { background: var(--surface); border-radius: var(--radius-card); padding: var(--card-pad); min-width: 0; }
.panel > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel h2 { font-size: var(--fs-section); line-height: 1.3; font-weight: 600; }
.panel .meta { color: var(--faint); font-size: var(--fs-small); }
.stack { display: grid; gap: var(--gap); }

/* ---------- KPIs: one divided strip, label over value, no icons ---------- */
.kpis { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: var(--surface); border-radius: var(--radius-card); margin-bottom: var(--gap); }
.kpi { padding: 14px var(--card-pad); }
.kpi + .kpi { border-left: 1px solid var(--border); }
.kpi-label { color: var(--muted); font-size: var(--fs-small); }
.kpi-value { margin-top: 6px; font-size: var(--fs-kpi); line-height: 1.15; font-weight: 500; letter-spacing: -0.01em; }
.kpi-value small { font-size: 0.55em; color: var(--muted); font-weight: 400; margin-left: 3px; }

/* ---------- player cards (the product's face: mini playing cards, suit + initials) ---------- */
.roster { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.pcard { position: relative; width: 56px; height: 72px; flex: none; background: var(--surface); border-radius: 10px; display: flex; flex-direction: column; justify-content: center; padding: 7px 8px; cursor: default; }
.suit { display: inline-grid; place-items: center; flex: none; }
.suit svg, .th-suit svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.suit .logo-chip, .th-suit .logo-chip { width: 1em; height: 1em; display: block; }
.th-suit { display: inline-grid; place-items: center; margin-right: 5px; font-size: 12px; opacity: .75; }
.pcard .suit { font-size: 14px; line-height: 1; color: var(--muted); }
.pcard .initials { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; text-align: center; }
.pcard .remove { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--raised); color: var(--muted); font-size: 11px; line-height: 1; cursor: pointer; display: none; place-items: center; padding: 0; }
.pcard .remove:hover { color: var(--text); background: var(--raised); }
.pcard.has-history .remove { display: none; }
.roster:hover .pcard .remove, .pcard:focus-within .remove { display: grid; }
.add-player-card { width: 56px; height: 72px; flex: none; border-radius: 10px; background: transparent; border: 1px dashed var(--control); color: var(--faint); font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.add-player-card:hover { color: var(--text); border-color: var(--muted); }
.add-player-card svg { width: 20px; height: 20px; stroke-width: 1.5; }

/* player dropdown (existing players + add new at the bottom) */
.player-menu { position: fixed; z-index: 30; width: 240px; background: var(--surface); border-radius: 12px; box-shadow: 0 12px 28px rgba(0,0,0,.5); /* taste-skill-ignore: shadow — real overlay menu */ padding: 6px; display: grid; gap: 2px; }
.player-menu .menu-item { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; color: var(--text); text-align: left; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: var(--fs-body); }
.player-menu .menu-item:hover { background: var(--raised); }
.player-menu .menu-item .suit { width: 16px; color: var(--muted); font-size: 13px; }
.player-menu .menu-new { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 8px; font-weight: 500; }

/* ---------- round grid (the sheet itself: columns = players, rows = rounds) ---------- */
.grid-scroll { overflow-x: auto; margin: 0 calc(var(--card-pad) * -1); padding: 0 var(--card-pad); }
.round-table { width: 100%; border-collapse: collapse; min-width: 320px; }
.round-table th { height: 40px; padding: 0 8px; text-align: right; font-weight: 500; font-size: var(--fs-small); color: var(--muted); white-space: nowrap; border-bottom: 1px solid var(--border); }
.round-table th .th-suit { margin-right: 4px; font-size: 12px; color: var(--faint); }
.round-table td { padding: 0 8px; height: var(--row-height); text-align: right; border-bottom: 1px solid var(--rule); font-size: 15px; }
.round-table tbody tr:last-child td { border-bottom: 0; }
.round-table .round-no { text-align: left; color: var(--faint); font-size: var(--fs-small); width: 44px; padding-left: 2px; }
.round-table .score { font-weight: 500; }
.round-table .absent { color: var(--faint); font-weight: 400; }
/* winner mark: the one data hue, on the winning cell only (ties share it) */
.round-table .winner { color: var(--accent); }
.round-table .winner::after { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-left: 6px; vertical-align: middle; }
tr.row-editing td { background: var(--raised); }

/* the entry row: one number input per player, "-" for absent */
.entry-row td { padding: 8px 8px; height: auto; border-bottom: 0; }
.score-input { width: 100%; min-width: 52px; height: 40px; border: 1px solid var(--control); border-radius: var(--radius-control); background: transparent; color: var(--text); text-align: right; padding: 0 12px; font-size: 15px; font-variant-numeric: tabular-nums; }
.score-input::placeholder { color: var(--faint); }
.score-input:focus { outline: none; border-color: var(--accent); }
.entry-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.entry-hint { color: var(--faint); font-size: var(--fs-small); }

/* per-game numbers under the grid */
.mini-table { width: 100%; border-collapse: collapse; }
.mini-table th { height: 32px; padding: 0 8px; text-align: right; font-weight: 400; font-size: var(--fs-small); color: var(--muted); white-space: nowrap; }
.mini-table td { padding: 9px 8px; border-bottom: 1px solid var(--rule); text-align: right; font-size: 14px; }
.mini-table tbody tr:last-child td { border-bottom: 0; }
.mini-table .name-cell { text-align: left; display: flex; align-items: center; gap: 8px; }
.mini-table .name-cell .suit { width: 14px; color: var(--faint); font-size: 12px; }

/* ---------- home: continue prompt + past games ---------- */
.continue-card { display: grid; gap: 14px; }
.continue-card .game-name { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.game-list { display: grid; }
.game-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 4px; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; border-radius: 8px; }
.game-row + .game-row { border-top: 1px solid var(--rule); }
.game-row:hover { background: var(--surface); }
.game-row .g-name { font-weight: 500; }
.game-row .g-meta { color: var(--faint); font-size: var(--fs-small); margin-top: 2px; }
.game-row .chev { margin-left: auto; width: 14px; height: 14px; flex: none; color: var(--muted); }

/* ---------- stats table (sortable) ---------- */
.stats-table { width: 100%; border-collapse: collapse; }
.stats-table th { height: 36px; padding: 0 8px; text-align: right; font-weight: 400; font-size: var(--fs-small); color: var(--muted); white-space: nowrap; cursor: pointer; user-select: none; }
.stats-table th:first-child { text-align: left; cursor: default; }
.stats-table th .sort-glyph { margin-left: 3px; font-size: 10px; color: var(--text); }
.stats-table th.lower::before { content: "↓"; margin-right: 4px; font-size: 10px; color: var(--faint); }
.stats-table td { padding: 10px 8px; border-bottom: 1px solid var(--rule); text-align: right; font-size: 14px; white-space: nowrap; }
.stats-table tbody tr:last-child td { border-bottom: 0; }
.stats-table .name-cell { display: flex; align-items: center; gap: 10px; text-align: left; }
.stats-table .name-cell .suit { width: 14px; color: var(--faint); font-size: 13px; }
.stats-table .p-name { font-weight: 500; }
.table-note { margin-top: 10px; color: var(--faint); font-size: var(--fs-small); }

/* ---------- stats: cards/table switch + per-player cards ---------- */
.seg { display: flex; background: var(--surface); border-radius: var(--radius-control); padding: 3px; gap: 2px; }
.seg-btn { border: 0; background: transparent; color: var(--muted); font-size: var(--fs-small); font-weight: 500; height: 30px; padding: 0 14px; border-radius: var(--radius-control); cursor: pointer; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; white-space: nowrap; }
.seg-btn:hover { color: var(--text); }
.seg-btn.active { background: var(--raised); color: var(--text); }
.stats-cards { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
.scard { background: var(--surface); border-radius: var(--radius-card); padding: var(--card-pad); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.scard-head { display: flex; align-items: center; gap: 8px; }
.scard-head .suit { width: 14px; color: var(--faint); font-size: 13px; }
.scard-head .p-name { font-weight: 600; font-size: 17px; }
.scard-rank { margin-left: auto; color: var(--faint); font-size: var(--fs-small); }
.scard-rank.lead { color: var(--accent); font-weight: 600; }
.scard-main { text-align: center; font-size: 34px; line-height: 1.1; font-weight: 500; letter-spacing: -0.02em; padding: 4px 0; }
.scard-main-label { margin-top: 4px; color: var(--faint); font-size: var(--fs-small); }
.scard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 8px; border-top: 1px solid var(--rule); padding-top: 12px; }
.scell-label { color: var(--muted); font-size: var(--fs-small); }
.scell-value { margin-top: 2px; font-size: 16px; font-weight: 500; }
.scard-foot { border-top: 1px solid var(--rule); padding-top: 10px; color: var(--muted); font-size: var(--fs-small); }
@media (min-width: 700px) { .stats-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- players list ---------- */
.player-row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 0; }
.player-row + .player-row { border-top: 1px solid var(--rule); }
.pavatar { width: 38px; height: 38px; flex: none; display: grid; place-items: center; background: var(--surface); border-radius: 10px; font-size: 15px; font-weight: 600; position: relative; }
.player-row .p-meta { color: var(--faint); font-size: var(--fs-small); margin-top: 2px; }
.row-actions { margin-left: auto; display: flex; gap: 4px; }
.icon-btn { width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { background: var(--raised); color: var(--text); }
.icon-btn.danger:hover { color: var(--negative); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
.icon-btn svg { width: 16px; height: 16px; stroke-width: 1.5; }
.round-table th.round-edit, .round-table td.round-edit { width: 44px; padding: 0 4px; text-align: center; }
.rename-input { height: 34px; border: 1px solid var(--control); border-radius: var(--radius-control); background: transparent; color: var(--text); padding: 0 12px; font-size: var(--fs-body); width: 180px; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--control-height); padding: 0 16px; border-radius: var(--radius-control); border: 1px solid var(--control); background: transparent; font-weight: 500; cursor: pointer; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); white-space: nowrap; }
.btn:hover { background: var(--surface); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--text); color: var(--ground); border-color: transparent; }  /* inversion makes it primary */
.btn.primary:hover { background: color-mix(in srgb, var(--text) 85%, var(--ground)); }
.btn:disabled { opacity: 0.4; cursor: default; transform: none; }
.btn.danger { color: var(--negative); border-color: var(--pill-negative-bg); }
.btn.danger:hover { background: var(--pill-negative-bg); }

/* ---------- empty / error states (frame kept, one sentence) ---------- */
.empty { display: grid; place-items: center; min-height: 96px; padding: 18px; border: 1px dashed var(--control); border-radius: 14px; color: var(--muted); text-align: center; font-size: var(--fs-body); }
.error-note { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--pill-negative-bg); border-radius: 12px; color: var(--pill-negative-ink); font-size: var(--fs-small); }

/* ---------- bottom bar (phone nav) ---------- */
.bottombar { display: none; }
.sync-float { display: none; }
.sync-float svg { width: 20px; height: 20px; stroke-width: 1.5; }
.sync-float[data-sync-state="pending"] { color: var(--accent); }
.sync-float.has-pending::after { content: ""; position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- confirm dialog ---------- */
dialog.confirm { margin: auto; background: var(--surface); color: var(--text); border: 0; border-radius: 16px; padding: 20px; width: min(92vw, 380px); box-shadow: 0 12px 28px rgba(0,0,0,.5); /* taste-skill-ignore: shadow — real dialog overlay */ }
dialog.confirm::backdrop { background: rgba(0,0,0,.6); }
dialog.confirm h3 { font-size: var(--fs-section); font-weight: 600; margin-bottom: 8px; }
dialog.confirm p { color: var(--muted); font-size: var(--fs-small); line-height: 1.5; margin-bottom: 16px; }
dialog.confirm .dlg-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- phone: sidebar folds to a bottom bar, top bar stays 52px ---------- */
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .topbar { height: 52px; padding: 0 16px; }
  .canvas { padding: 16px; padding-bottom: calc(72px + env(safe-area-inset-bottom, 0)); max-width: none; }
  .bottombar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; height: calc(56px + env(safe-area-inset-bottom, 0)); padding-bottom: env(safe-area-inset-bottom, 0); background: var(--ground); border-top: 1px solid var(--border); }
  .bottombar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 500; }
  .bottombar a svg { width: 20px; height: 20px; stroke-width: 1.5; }
  .bottombar a[aria-current="page"] { color: var(--accent); }
  .sync-float { display: grid; place-items: center; position: fixed; left: 14px; bottom: calc(56px + env(safe-area-inset-bottom, 0) + 12px); z-index: 20; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: var(--muted); cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .kpis { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi + .kpi { border-left: 0; }
  .kpi:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .kpi:nth-child(2n) { border-left: 1px solid var(--border); }
  .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .title-row { flex-wrap: wrap; align-items: flex-start; }
  /* touch targets */
  .score-input, .entry-row td { height: 46px; }
  .btn { min-height: 44px; }
  .seg-btn { min-height: 44px; }
  .game-row, .player-row { min-height: 56px; }
}
/* ---------- session picker ---------- */
.session-input { min-height: 44px; width: 190px; padding: 0 16px; border-radius: var(--radius-control); background: var(--surface); border: 1px solid var(--accent); color: var(--text); font-size: var(--fs-body); }

/* ---------- sessions tab ---------- */
.session-list { display: grid; }
.session-row { display: flex; align-items: center; gap: 8px; min-height: 64px; padding: 10px 0; border-top: 1px solid var(--rule); }
.session-row:first-child { border-top: 0; padding-top: 0; }
.session-row-main { flex: 1; min-width: 0; cursor: pointer; display: grid; gap: 2px; }
.session-row .s-name { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.s-active-badge { background: var(--accent); color: var(--accent-ink); border-radius: var(--radius-control); padding: 2px 10px; font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.session-new-row { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--rule); }
.session-new-row .session-input { flex: 1; width: auto; }

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