/* StreamSnipe — fantasy basketball, in plain words.
 *
 * Design language (2026 refresh):
 *   One voice: every screen opens with a sentence a manager can act on.
 *   One accent: orange is the brand; green/red only ever mean add/drop or
 *   good/bad-by-the-numbers. Legibility first: Inter for reading, Barlow
 *   Condensed only for scoreboard-grade numbers. Big tap targets on phones,
 *   a bottom tab bar instead of a lingering drawer, and friendly cards
 *   instead of front-office jargon.
 */

:root,
[data-theme="light"] {
  --bg: #f4f6fa;
  --bg-2: #e9edf4;
  --panel: #ffffff;
  --panel-2: #f9fafc;
  --panel-3: #eef2f8;
  --drawer-bg: #ffffff;
  --line: rgba(20, 28, 45, 0.1);
  --line-2: rgba(20, 28, 45, 0.18);
  --text: #141a26;
  --muted: #4c5a70;
  --muted-2: #6a7893;
  --accent: #e2600a;
  --accent-2: #a94a06;
  --accent-grad-1: #f28631;
  --accent-grad-2: #e2600a;
  --on-accent: #ffffff;
  --blue: #0676b4;
  --green: #0e8340;
  --red: #d92d3f;
  --yellow: #9a6107;
  --purple: #7c3aed;
  --accent-soft: rgba(226, 96, 10, 0.1);
  --accent-line: rgba(226, 96, 10, 0.3);
  --blue-soft: rgba(6, 118, 180, 0.1);
  --blue-line: rgba(6, 118, 180, 0.28);
  --green-soft: rgba(14, 131, 64, 0.1);
  --green-line: rgba(14, 131, 64, 0.28);
  --red-soft: rgba(217, 45, 63, 0.1);
  --red-line: rgba(217, 45, 63, 0.3);
  --yellow-soft: rgba(154, 97, 7, 0.11);
  --yellow-line: rgba(154, 97, 7, 0.3);
  --purple-soft: rgba(124, 58, 237, 0.1);
  --purple-line: rgba(124, 58, 237, 0.28);
  --hover: rgba(20, 28, 45, 0.05);
  --surface-soft: #f7f9fc;
  --info: var(--blue);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 10px 28px -14px rgba(16, 24, 40, 0.14);
  --shadow-soft: 0 1px 2px rgba(16, 24, 40, 0.04);
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --num: "Barlow Condensed", "Arial Narrow", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  /* chart tokens (charts.js reads these) */
  --chart-grid: rgba(20, 28, 45, 0.1);
  --chart-grid-strong: rgba(20, 28, 45, 0.2);
  --chart-text: #5a6881;
  --chart-fill: rgba(226, 96, 10, 0.16);
  --chart-track: rgba(20, 28, 45, 0.08);
  --donut-text: var(--text);
  --donut-sub: var(--muted-2);
  /* heat-map ramp (standings) */
  --heat-0: var(--red-soft);
  --heat-1: var(--yellow-soft);
  --heat-2: var(--blue-soft);
  --heat-3: rgba(14, 131, 64, 0.14);
  --heat-4: rgba(14, 131, 64, 0.26);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0f1420;
  --bg-2: #0b0f1a;
  --panel: #171d2b;
  --panel-2: #1b2231;
  --panel-3: #20293a;
  --drawer-bg: #171d2b;
  --line: rgba(226, 232, 244, 0.1);
  --line-2: rgba(226, 232, 244, 0.2);
  --text: #edf1f9;
  --muted: #a3aebf;
  --muted-2: #8a96ab;
  --green: #3ecf72;
  --red: #ff5a60;
  --yellow: #e5b448;
  --accent: #ef7b2f;
  --accent-2: #f9a05e;
  --blue: #4aa8e0;
  --accent-soft: rgba(239, 123, 47, 0.16);
  --accent-line: rgba(239, 123, 47, 0.4);
  --blue-soft: rgba(74, 168, 224, 0.14);
  --blue-line: rgba(74, 168, 224, 0.34);
  --green-soft: rgba(62, 207, 114, 0.14);
  --green-line: rgba(62, 207, 114, 0.34);
  --red-soft: rgba(255, 90, 96, 0.14);
  --red-line: rgba(255, 90, 96, 0.36);
  --yellow-soft: rgba(229, 180, 72, 0.14);
  --yellow-line: rgba(229, 180, 72, 0.36);
  --purple-soft: rgba(155, 105, 255, 0.14);
  --purple-line: rgba(155, 105, 255, 0.34);
  --hover: rgba(226, 232, 244, 0.07);
  --surface-soft: #1b2231;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 32px -14px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.35);
  --chart-grid: rgba(226, 232, 244, 0.1);
  --chart-grid-strong: rgba(226, 232, 244, 0.2);
  --chart-text: #9aa6bb;
  --chart-fill: rgba(239, 123, 47, 0.2);
  --chart-track: rgba(226, 232, 244, 0.1);
  --heat-3: rgba(62, 207, 114, 0.16);
  --heat-4: rgba(62, 207, 114, 0.3);
  color-scheme: dark;
}

[data-density="compact"] {
  --radius: 14px;
  --radius-sm: 10px;
}

/* ---------------------------------------------------------------- reset */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0;
  -webkit-text-size-adjust: 100%;
  font-variant-numeric: tabular-nums;
  background-color: var(--bg);
  background-image: var(--bg-image, none);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.55;
}
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 25px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.25; }
h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 16px; font-weight: 650; }
a { color: var(--link, var(--blue)); text-decoration: none; cursor: pointer; }
a:hover { text-decoration: underline; }
svg { display: block; }
::selection { background: rgba(226, 96, 10, 0.22); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

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

/* ---------------------------------------------------------------- layout */
.app { display: flex; min-height: 100vh; }

.sidebar {
  position: sticky;
  top: 0;
  align-self: flex-start;
  width: 232px;
  flex: none;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 12px 16px;
  background: var(--sidebar-bg, var(--panel));
  border-right: 1px solid var(--card-line, var(--line));
  z-index: 40;
}

.brand { display: flex; align-items: center; gap: 11px; padding: 2px 10px 16px; }
.brand-mark { color: var(--accent); }
.brand-mark svg { width: 27px; height: 27px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text strong { font-family: var(--num); font-size: 22px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.brand-text em { font-style: normal; font-size: 10px; color: var(--muted-2); letter-spacing: 0.13em; text-transform: uppercase; font-weight: 600; }

.nav { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.nav-item {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}
.nav-item:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.nav-item.active {
  background: var(--nav-active-bg, var(--accent-soft));
  color: var(--nav-active-text, var(--accent-2));
  box-shadow: inset 0 0 0 1px var(--accent-line);
}
.nav-item.active:hover { background: var(--nav-active-bg, var(--accent-soft)); color: var(--nav-active-text, var(--accent-2)); }
.nav-item.active .nav-icon { color: var(--nav-active-text, var(--accent)); }
.nav-icon { display: grid; place-items: center; flex: none; width: 18px; height: 18px; color: var(--muted-2); transition: color 0.12s ease; }
.nav-item:hover .nav-icon { color: var(--muted); }
.nav-icon svg { width: 18px; height: 18px; }
.nav-badge {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 18px;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 10px;
  font-weight: 700;
}
.nav-item.active .nav-badge { background: var(--panel); }
.nav-sep { height: 1px; background: var(--line); margin: 9px 10px; }

.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding: 0 6px 4px; }
.mini-team { border: 1px solid var(--line); border-radius: 13px; padding: 12px; background: var(--panel-2); }
.mini-team-empty { color: var(--muted-2); font-size: 12px; }
.mini-team-head { display: flex; align-items: center; gap: 9px; }
.mini-team-name { font-weight: 650; font-size: 13px; line-height: 1.25; }
.mini-team-meta { color: var(--muted); font-size: 11.5px; margin-top: 8px; display: flex; justify-content: space-between; }
.mini-team-meta b { color: var(--text); font-family: var(--num); font-size: 15px; }
.conn { display: flex; align-items: center; gap: 7px; color: var(--muted-2); font-size: 11.5px; padding-left: 4px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); flex: none; }
.dot.live { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.dot.err { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.dot.busy { background: var(--yellow); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

.shell { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 26px;
  background: var(--topbar-bg, var(--panel));
  border-bottom: 1px solid var(--topbar-line, var(--line));
}
.topbar-league { min-width: 0; display: flex; align-items: baseline; gap: 10px; overflow: hidden; }
.topbar-name { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-meta { color: var(--muted); font-size: 12.5px; display: flex; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-meta .sep { color: var(--muted-2); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.team-picker { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 5px 8px 5px 12px; }
.team-picker-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); font-weight: 650; }
.team-picker select { background: transparent; border: none; outline: none; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text); max-width: 220px; cursor: pointer; }

.view { padding: 24px 26px 40px; max-width: 1480px; width: 100%; margin: 0 auto; flex: 1; }
.footer { display: flex; justify-content: space-between; gap: 12px; padding: 10px 26px 26px; color: var(--muted-2); font-size: 11.5px; flex-wrap: wrap; }

/* ----------------------------------------------------- mobile bottom tabs */
.tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding: 6px 6px max(6px, env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px -18px rgba(16, 24, 40, 0.35);
}
.tabbar .tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  color: var(--muted-2);
  font: 600 10.5px/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tabbar .tab .nav-icon { width: 21px; height: 21px; }
.tabbar .tab .nav-icon svg { width: 21px; height: 21px; }
.tabbar .tab:hover, .tabbar .tab:focus-visible { background: var(--hover); color: var(--text); }
.tabbar .tab.active { color: var(--accent); }
.tabbar .tab.active .nav-icon { color: var(--accent); }
.tabbar .tab .nav-badge { margin: 0; position: absolute; transform: translate(10px, -8px); }
.tabbar .tab { position: relative; }

.only-mobile { display: none !important; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: var(--panel);
  color: var(--text);
  font: 600 13.5px/1.2 var(--font);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s ease, border-color 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--panel-3); border-color: var(--muted-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: #cf570a; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--hover); }
.btn.danger { background: var(--red-soft); border-color: var(--red-line); color: var(--red); }
.btn.small { padding: 5px 10px; font-size: 12px; border-radius: 9px; }
.btn[disabled], .btn:disabled { opacity: 0.5; pointer-events: none; }
.customize-toggle.active { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-2); }
.icon-btn { background: transparent; border: 1px solid transparent; color: var(--muted); border-radius: 10px; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------- page head */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; flex-wrap: wrap; }
.page-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); font-weight: 700; }
.page-title { font-size: 25px; font-weight: 750; letter-spacing: -0.02em; margin: 4px 0 2px; }
.page-sub { color: var(--muted); font-size: 13.5px; max-width: 760px; }
.page-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ----------------------------------------------------------------- cards */
.card {
  background: var(--panel);
  border: 1px solid var(--card-line, var(--line));
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.card.tight { border-radius: var(--radius-sm); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px 0; }
.card-head.bordered { padding-bottom: 12px; border-bottom: 1px solid var(--card-line, var(--line)); background: var(--card-head-bg, transparent); }
.card-title { font-size: 15px; font-weight: 700; letter-spacing: -0.005em; display: flex; align-items: center; gap: 8px; }
.card-title .card-title-icon { color: var(--accent); display: grid; place-items: center; }
.card-title .card-title-icon svg { width: 16px; height: 16px; }
.card-sub { color: var(--muted-2); font-size: 12px; }
.card-body { padding: 14px 18px 16px; }
.card-body.flush { padding: 0; }
.card-actions { display: flex; gap: 8px; align-items: center; }

.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-hero { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.grid-side { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.span-2 { grid-column: span 2; }
.stack { display: flex; flex-direction: column; gap: 14px; }

/* ------------------------------------------------------------------- kpi */
.kpi { display: flex; flex-direction: column; gap: 5px; padding: 14px 18px; }
.kpi-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.11em; color: var(--muted-2); font-weight: 650; }
.kpi-value { font-family: var(--num); font-size: 31px; line-height: 1.05; letter-spacing: 0.01em; }
.kpi-value.sm { font-size: 24px; }
.kpi-note { color: var(--muted); font-size: 12px; }
.kpi-row { display: flex; align-items: baseline; gap: 8px; }

/* -------------------------------------------------------- pills + badges */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 11px;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  background: var(--panel);
  color: var(--muted);
  white-space: nowrap;
}
.pill-demo { color: var(--accent-2); border-color: var(--accent-line); background: var(--accent-soft); }
.pill-live { color: var(--green); border-color: var(--green-line); background: var(--green-soft); }
.pill-live .dot { background: var(--green); }
.pill-week { color: var(--blue); border-color: var(--blue-line); background: var(--blue-soft); }
.pill-soft { background: var(--panel-2); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 750;
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge-soft { color: var(--muted-2); background: var(--panel-3); border-color: var(--line); }
.badge-down { color: var(--red); background: var(--red-soft); border-color: var(--red-line); }
.badge-up { color: var(--green); background: var(--green-soft); border-color: var(--green-line); }
.badge-injury { color: var(--yellow); border-color: var(--yellow-line); background: var(--yellow-soft); }
.badge-out { color: var(--red); border-color: var(--red-line); background: var(--red-soft); }
.badge-fa { color: var(--green); border-color: var(--green-line); background: var(--green-soft); }
.badge-waiver { color: var(--blue); border-color: var(--blue-line); background: var(--blue-soft); }
.badge-fit { color: var(--accent-2); border-color: var(--accent-line); background: var(--accent-soft); }
.badge-rookie { color: var(--purple); border-color: var(--purple-line); background: var(--purple-soft); }
.track-badge { font-size: 10.5px; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; }
.track-badge.stash { color: var(--accent-2); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.track-badge.cycle { color: var(--blue); background: var(--blue-soft); border: 1px solid var(--blue-line); }

/* ------------------------------------------------------- scoreboard strip */
.score-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  background: var(--strip-bg, linear-gradient(180deg, #131b2c, #0e1420));
  color: var(--strip-fg, #fff);
  border-radius: var(--radius);
  padding: 14px 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
/* Mirror image: logo · name · record · SCORE | SCORE · record · name · logo */
.ss-team { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ss-team .team-logo { flex: none; }
.ss-team .ss-name { flex: 1 1 auto; text-align: right; }
.ss-team.away .ss-name { text-align: left; }
.ss-team .ss-record { flex: none; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,0.08); font-weight: 650; font-variant-numeric: tabular-nums; }
.ss-team .ss-score { flex: none; min-width: 2ch; text-align: center; }
.ss-name { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-record { color: var(--strip-muted, #93a0b4); font-size: 12.5px; }
.ss-lead { color: #93a0b4; font-size: 13px; font-weight: 650; }
.ss-mid { text-align: center; padding: 0 10px; }
.ss-score { font-family: var(--num); font-weight: 700; font-size: 38px; line-height: 1; letter-spacing: 0.02em; }
.ss-sep { color: #46536b; font-family: var(--num); font-size: 30px; }
.ss-tag { display: inline-flex; gap: 7px; align-items: center; margin-top: 3px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: #c9d3e2; }
.ss-tag .dot { background: var(--strip-accent, var(--accent)); animation: pulse 1.6s infinite; }
.ss-tag .dot.final { background: #5a6a85; animation: none; }
.ss-margin { color: #93a0b4; font-size: 12px; margin-top: 2px; }
.ss-note { margin-left: auto; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.score-blank {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, #131b2c, #0e1420);
  color: #c9d3e2;
  border-radius: var(--radius);
  padding: 16px 22px;
  box-shadow: var(--shadow);
  font-size: 14.5px;
}
.score-blank b { color: #fff; }

/* ---------------------------------------------------------------- l i v e */
.race-dash { display: inline-flex; gap: 3px; }

/* -------------------------------------------------- today's move (hero) */
.move {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.move-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 15px 20px 0; flex-wrap: wrap; }
.move-tag { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.move-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.lock-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.lock-chip svg { width: 14px; height: 14px; opacity: 0.72; flex: none; }
.lock-chip.urgent { color: var(--yellow); border-color: var(--yellow-line); background: var(--yellow-soft); }
.lock-chip.locked { color: var(--muted-2); opacity: 0.8; }
.move-player.to-ir { border-left: 3px solid var(--accent); }
.move-head { padding: 9px 20px 12px; font-size: 21px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.4; }
.move-head .add { padding-bottom: 2px; border-bottom: 3px solid var(--green); font-weight: 750; white-space: nowrap; }
.move-head .drop { padding-bottom: 2px; border-bottom: 3px solid var(--red); font-weight: 750; white-space: nowrap; }
.move-players { display: flex; gap: 10px; align-items: stretch; padding: 0 20px; flex-wrap: wrap; }
.move-player {
  flex: 1 1 250px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 14px;
  background: var(--panel-2);
  cursor: pointer;
  min-width: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.move-player:hover { background: var(--panel-3); border-color: var(--line-2); }
.move-player .mp-who { min-width: 0; flex: 1; }
.move-player .mp-name { display: block; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.move-player .mp-meta { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.move-player.adding { border-left: 3px solid var(--green); }
.move-player.dropping { border-left: 3px solid var(--red); }
.move-player .track-badge { margin-left: 2px; }
.move-arrow { align-self: center; color: var(--muted-2); font-size: 17px; flex: none; }
.move-why {
  margin: 14px 20px 0;
  padding: 12px 14px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
}
.move-why-title { font-size: 10.5px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px; }
.why-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.why-item {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
}
.why-item b { color: var(--text); font-weight: 650; }
.why-item .why-dot { width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: var(--green); flex: none; }
.move-warning {
  margin: 10px 20px 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-top: 1px dashed var(--yellow-line);
  padding: 10px 0;
  color: var(--yellow);
  font-size: 13px;
}
.move-foot {
  display: flex;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  background: var(--panel-2);
  padding: 10px 20px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.move-foot b { color: var(--text); font-weight: 650; }
.move-foot .spacer { margin-left: auto; }
.move-note { padding: 14px 20px 4px; font-size: 14.5px; color: var(--muted); }
.move-note b { color: var(--text); }

.eye-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 99px;
  width: 30px;
  height: 30px;
  flex: none;
  color: var(--muted);
  background: var(--panel);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.eye-chip svg { width: 15px; height: 15px; }
.eye-chip .count {
  position: absolute;
  top: -6px;
  right: -7px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.eye-chip.hot .count { background: var(--red); }
.eye-pop { margin: 10px 20px 0; border: 1px solid var(--blue-line); border-radius: 12px; background: var(--blue-soft); padding: 10px 14px; font-size: 13px; color: var(--muted); }
.eye-pop b { color: var(--text); }
.eye-pop ul { margin: 4px 0 0; padding-left: 18px; }

/* details-based contestant popover */
.eye-wrap { position: relative; flex: none; }
.eye-wrap summary { list-style: none; cursor: pointer; }
.eye-wrap summary::-webkit-details-marker { display: none; }
.eye-wrap .eye-pop {
  position: absolute;
  top: calc(100% + 10px);
  right: -10px;
  margin: 0;
  width: 250px;
  z-index: 8;
  box-shadow: var(--shadow);
}
.eye-wrap[open] .eye-chip { border-color: var(--blue-line); background: var(--blue-soft); color: var(--blue); }

/* player + team identity pieces (used inside move rows, tables, drawers) */
.player-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.player-cell.wide { width: 100%; }
.move-player .player-cell { flex: 1; min-width: 0; }
.pinfo, .pmeta { min-width: 0; display: flex; flex-direction: column; }
.pmeta { color: var(--muted-2); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-logo {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--panel-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-weight: 800;
  font-size: 11px;
}
.team-logo img { width: 100%; height: 100%; object-fit: cover; }
.team-logo.lg { width: 46px; height: 46px; font-size: 15px; }
.team-logo.sm { width: 22px; height: 22px; font-size: 8.5px; }
.score-strip .team-logo { width: 40px; height: 40px; font-size: 13px; }

/* schedule chips + plan lines */
.str-warn { display: block; margin-top: 3px; color: var(--yellow); font-size: 12px; }

/* ------------------------------------------------- streamers (str-*) card */
.str-section-title { display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 16px 18px 10px; font-weight: 700; font-size: 14px; }
.str-summary { padding: 2px 18px 12px; color: var(--muted); font-size: 13.5px; }
.str-summary b { color: var(--text); font-family: var(--num); font-size: 15.5px; }
.str-lead { padding: 2px 18px 10px; font-size: 14.5px; color: var(--muted); }
.str-lead b { color: var(--text); font-weight: 650; }
.str-plan { display: flex; flex-direction: column; padding: 0 18px; }
.str-step { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.str-step:first-child { border-top: 0; }
.str-when { flex: none; display: flex; align-items: baseline; gap: 4px; width: 74px; padding-top: 2px; font-family: var(--num); font-size: 15px; font-weight: 700; }
.str-when .num { font-style: normal; font-weight: 600; font-size: 12px; color: var(--muted-2); }
.str-move { flex: 1; min-width: 0; font-size: 14px; color: var(--muted); }
.str-move b { color: var(--text); font-weight: 650; }
.str-sub { font-size: 12.5px; color: var(--muted-2); margin-top: 1px; }
.str-net { flex: none; text-align: right; font-family: var(--num); font-size: 19px; font-weight: 700; }
.str-net small { display: block; font-family: var(--font); font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted-2); }
.str-nights { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px 18px 12px; }
.sn-tag {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 4px 11px;
  background: var(--panel-2);
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}
.sn-tag .sn-dow { font-weight: 750; color: var(--text); }
.sn-tag .sn-day { font-size: 12.5px; }
.sn-tag.gap { border-color: var(--yellow-line); background: var(--yellow-soft); color: var(--yellow); }
.sn-tag.gap .sn-dow { color: var(--yellow); }
.sn-tag.past { opacity: 0.55; }
.str-drops { padding: 0 18px 14px; }
.str-drop-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.str-drop-row:first-child { border-top: 0; }
.str-drop-name { font-weight: 650; }
.str-drop-meta { color: var(--muted-2); font-size: 12px; margin-left: auto; text-align: right; }
.str-chip { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 650; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; }
.str-chip-good { color: var(--green); background: var(--green-soft); border-color: var(--green-line); }
.str-chip-accent { color: var(--accent-2); background: var(--accent-soft); border-color: var(--accent-line); }
.str-sign { color: var(--muted-2); }
.str-card .danger-note { color: var(--yellow); font-size: 12.5px; margin-top: 2px; }
.str-table-wrap { overflow-x: auto; }
.str-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.str-table th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted-2); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.str-table td { padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.str-table tr:last-child td { border-bottom: 0; }
.str-table tr[data-player] { cursor: pointer; }
.str-table tr[data-player]:hover td { background: var(--hover); }
.str-gain { font-family: var(--num); font-size: 16.5px; font-weight: 700; color: var(--green); white-space: nowrap; }
.pos-tag { color: var(--muted-2); font-size: 12px; white-space: nowrap; }

/* --------------------------------------------------------- matchup cards */
.matchup-grid { display: flex; flex-direction: column; gap: 14px; }
.matchup-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.12s ease, transform 0.12s ease;
}
.matchup-card:hover { border-color: var(--line-2); }
.matchup-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.matchup-card .mc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mc-tag { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.matchup-card.hero-card { padding: 18px 20px; box-shadow: var(--shadow); }
.mc-team-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mc-team-main.away { flex-direction: row-reverse; text-align: right; }
.mc-team-name { font-weight: 700; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-team-record { font-size: 12.5px; color: var(--muted); }
.mc-score { font-family: var(--num); font-size: 24px; font-weight: 700; flex: none; min-width: 52px; }
.mc-score.win { color: var(--green); }
.mc-score.loss { color: var(--red); }
.mc-vs { min-height: 6px; }
.mc-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(74px, 1fr)); gap: 6px; margin-top: 4px; }
.mc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted-2); font-size: 12.5px; margin-top: 2px; flex-wrap: wrap; }
.mc-tally { font-family: var(--num); font-size: 15.5px; color: var(--text); }
.mc-points-delta { color: var(--muted); font-size: 13px; }
.mc-points-delta b { color: var(--text); font-weight: 700; font-family: var(--num); font-size: 17px; }
.mc-statuses { color: var(--muted-2); font-size: 11.5px; }

/* ----------------------------------------------------------- stat tiles */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; }
.stat-tile { border: 1px solid var(--line); background: var(--panel-2); border-radius: var(--radius-sm); padding: 9px 6px 7px; text-align: center; }
.stat-tile-value { font-family: var(--num); font-size: 21px; font-weight: 700; line-height: 1.1; }
.stat-tile-label { font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted-2); margin-top: 1px; }
.stat-tile.fpts { border-color: var(--accent-line); background: var(--accent-soft); }
.stat-tile.fpts .stat-tile-value { color: var(--accent-2); font-size: 25px; }

/* --------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th {
  text-align: left;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted-2);
  font-weight: 700;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background: var(--panel-2);
  position: sticky;
  top: 0;
}
td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 14px; }
tr:last-child td { border-bottom: 0; }
tr[data-player], tr[data-team], tr[data-matchup] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
tr[data-player]:hover td, tr[data-team]:hover td, tr[data-matchup]:hover td { background: var(--hover); }
tr.dnp td { color: var(--muted-2); }
td.num, th.num { font-family: var(--num); font-size: 15px; text-align: right; }
.table-note { padding: 10px 2px 0; color: var(--muted-2); font-size: 12px; }
.sort-arrow { opacity: 0.85; }
th .chip { letter-spacing: 0.02em; }

/* -------------------------------------------------------------- players */
.player-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.player-info { min-width: 0; }
.player-name { font-weight: 650; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-sub { color: var(--muted-2); font-size: 11.5px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pname { font-weight: 650; font-size: 14px; }
.pinfo { color: var(--muted-2); font-size: 11.5px; white-space: nowrap; }
.avatar { position: relative; width: 38px; height: 38px; border-radius: 50%; background: var(--panel-3); color: var(--muted); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; transform: scale(1.4); transform-origin: 50% 0; display: block; z-index: 1; }
.avatar.sm { width: 26px; height: 26px; }
.avatar.lg { width: 48px; height: 48px; }
.avatar-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; z-index: 0; }
.tname { font-weight: 650; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.rsub, .tmeta { color: var(--muted-2); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.rank-item { display: flex; align-items: center; gap: 8px; }
.rank-num { font-family: var(--num); font-size: 16px; color: var(--muted-2); width: 22px; text-align: right; }
.rank-main { min-width: 0; }
.rank-score { font-family: var(--num); font-size: 16px; }

.watch-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; border: 1px solid transparent; color: var(--muted-2); cursor: pointer; background: transparent; }
.watch-btn:hover { background: var(--hover); color: var(--text); }
.watch-btn svg { width: 15px; height: 15px; }
.watch-btn.on { color: var(--accent); }

/* ------------------------------------------------------------ projections */
.proj-table td.w, td.v { font-family: var(--num); font-size: 15px; }
.proj-pick { color: var(--green); font-weight: 750; font-family: var(--num); font-size: 15px; }
.proj-note { color: var(--muted-2); font-size: 12px; }
.proj-summary-side { display: flex; flex-direction: column; gap: 6px; }
.proj-team-cell { display: flex; align-items: center; gap: 9px; min-width: 0; }
.proj-team-meta { min-width: 0; }
.proj-total-row td { font-weight: 750; font-family: var(--num); font-size: 16px; border-top: 2px solid var(--line-2); }

/* ---------------------------------------------------------- race / charts */
.race-key { display: flex; gap: 12px; align-items: center; color: var(--muted-2); font-size: 11.5px; flex-wrap: wrap; }
.race-summary { font-size: 13.5px; color: var(--muted); }
.race-legend { font-size: 11.5px; color: var(--muted-2); }
.race-legend-note { color: var(--muted-2); }
.race-empty { color: var(--muted-2); font-size: 12.5px; }
.race-chip { font-family: var(--num); }
.race-team { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ps-numbers { display: flex; gap: 10px; }
.ps-games { color: var(--muted-2); }
.chart-center { display: grid; place-items: center; color: var(--muted-2); }
.radar-wrap { display: grid; place-items: center; padding: 6px 0; }
.timeline-wrap { overflow-x: auto; }

/* ---------------------------------------------------------------- notes */
.note { display: flex; gap: 11px; border-left: 3px solid var(--line-2); background: var(--panel-2); border-radius: 0 12px 12px 0; padding: 11px 13px; }
.note-icon { display: grid; place-items: center; width: 16px; flex: none; margin-top: 2px; }
.note-icon svg { width: 14px; height: 14px; }
.note-title { font-weight: 650; font-size: 14px; }
.note-text { color: var(--muted); font-size: 13px; margin-top: 1px; }
.note-info, .note.info { border-left-color: var(--blue); }
.note-info .note-icon, .note.info .note-icon { color: var(--blue); }
.note-good, .note.good { border-left-color: var(--green); }
.note-good .note-icon, .note.good .note-icon { color: var(--green); }
.note-warn, .note.warn { border-left-color: var(--yellow); }
.note-warn .note-icon, .note.warn .note-icon { color: var(--yellow); }
.note-bad, .note.bad { border-left-color: var(--red); }
.note-bad .note-icon, .note.bad .note-icon { color: var(--red); }
.note > div { min-width: 0; }
.notes { display: flex; flex-direction: column; gap: 8px; }
.notes-empty { color: var(--muted-2); font-size: 13px; }

/* ----------------------------------------------------------------- bars */
.bar { position: relative; height: 8px; border-radius: 99px; background: var(--panel-3); overflow: hidden; min-width: 40px; }
.bar-fill { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent-grad-1), var(--accent-grad-2)); transition: width 0.4s ease; }
.bar-fill.blue { background: linear-gradient(90deg, #6fd8ff, var(--blue)); }
.bar-fill.green { background: linear-gradient(90deg, #74e8a8, var(--green)); }
.bar-fill.red { background: linear-gradient(90deg, #ff8f9a, var(--red)); }
.bar-fill.yellow { background: linear-gradient(90deg, #ffe08a, var(--yellow)); }
.bar-fill.dim { background: var(--line-2); }
.bar-rows { display: flex; flex-direction: column; gap: 6px; }
.bar-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.bar-row .bar-label { width: 58px; font-size: 12px; color: var(--muted); font-weight: 650; }
.bar-row .bar { flex: 1; }
.bar-row .bar-value { width: 56px; text-align: right; font-family: var(--num); font-size: 14.5px; }
.bar-row .bar-grade { width: 30px; text-align: right; font-size: 11.5px; font-weight: 700; color: var(--muted-2); }

/* ----------------------------------------------------------------- chips */
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--muted);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 3px 10px;
  cursor: pointer;
  white-space: nowrap;
}
.chip:hover { border-color: var(--line-2); color: var(--text); }
.chip.on, .chip.active { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-2); }
.chip-row .plus { color: var(--muted-2); font-weight: 650; }
.segmented { display: inline-flex; gap: 3px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px; padding: 3px; flex-wrap: nowrap; }
.segmented.chip-row { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
.segmented .chip, .segmented > button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: 650 12.5px/1.2 var(--font);
  padding: 6px 13px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s ease, color 0.12s ease;
}
.segmented > button:hover:not(:disabled) { color: var(--text); }
.segmented > button:disabled { opacity: 0.45; cursor: not-allowed; }
.segmented .chip.on, .segmented .chip.active, .segmented > button.active {
  background: var(--panel);
  border-color: var(--line-2);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

/* ------------------------------------------------------- nights schedule */
.night-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.night-block { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--panel); }
.night-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 13px 7px; font-size: 13px; }
.night-head .num { font-family: var(--num); }
.night-sub { color: var(--muted-2); font-size: 11.5px; }
.night-table { border-top: 1px solid var(--line); }

/* ------------------------------------------------------------ roster view */
.roster-group-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 4px 6px; }
.roster-group-label { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.roster-group-count { color: var(--muted-2); font-size: 11.5px; }
.pos-cell { width: 1%; padding-right: 0; }
.pos-cell .pos-tag { display: inline-flex; min-width: 32px; justify-content: center; padding: 3px 6px; border-radius: 6px; background: var(--panel-3); color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.02em; }
.tinfo { color: var(--muted-2); font-size: 11.5px; }
.timeline { min-width: 720px; }

/* --------------------------------------------------------- standings heat */
.heat td { font-family: var(--num); font-size: 15px; text-align: center; }

/* ------------------------------------------------------------ drawer/modal */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 24, 0.5);
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.overlay.open { opacity: 1; }
.drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(460px, 96vw);
  background: var(--drawer-bg);
  border-left: 1px solid var(--line);
  z-index: 61;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  border-radius: 0;
  box-shadow: -24px 0 60px -30px rgba(10, 14, 24, 0.55);
  transform: translateX(28px);
  opacity: 0;
  transition: transform 0.24s var(--ease), opacity 0.2s ease;
}
.drawer-panel.open { transform: none; opacity: 1; }
.modal-panel {
  transform: translateY(10px) scale(0.985);
  opacity: 0;
  transition: transform 0.24s var(--ease), opacity 0.2s ease;
  position: relative;
  width: min(620px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--drawer-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.modal-panel.open { transform: none; opacity: 1; }
.drawer-head, .modal-head {
  position: sticky;
  top: 0;
  background: var(--drawer-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  z-index: 2;
}
.drawer-title, .modal-head .card-title { font-size: 15.5px; font-weight: 700; }
.drawer-sub, .modal-sub { color: var(--muted-2); font-size: 12px; }
.drawer-close { position: static; display: flex; align-items: center; gap: 4px; margin-left: auto; }
.modal-close { margin-left: auto; }
.drawer-head > div:not(.drawer-close), .modal-head > div:not(.modal-close) { min-width: 0; }
.drawer-body, .modal-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.drawer-section { padding: 12px 0; border-top: 1px solid var(--line); }
.drawer-section-title { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); padding-bottom: 8px; }
.drawer-wrap { display: flex; flex-direction: column; gap: 10px; }

/* Player-card schedule and pickup advice */
.upcoming-weeks { display: flex; flex-direction: column; gap: 8px; }
.week-group { border: 1px solid var(--line); border-left: 3px solid var(--wk-color, var(--accent)); border-radius: var(--radius-sm); background: var(--panel-2); padding: 8px 10px 9px; }
.week-group-head { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--wk-color, var(--accent)); }
.week-group-head .wk-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wk-color, var(--accent)); flex: none; }
.week-group-head .wk-range { margin-left: auto; color: var(--muted-2); font-weight: 700; letter-spacing: 0.02em; text-transform: none; white-space: nowrap; }
.week-games { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.game-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); font-size: 11.5px; line-height: 1.2; }
.game-chip .gdate { font-family: var(--num); font-weight: 700; color: var(--text); white-space: nowrap; }
.game-chip .gopp { color: var(--muted); font-weight: 650; white-space: nowrap; }
.game-chip .gtime { color: var(--muted-2); font-size: 10.5px; white-space: nowrap; }

.pickup-box { border: 1px solid var(--line); border-left: 3px solid var(--line-2); border-radius: 0 12px 12px 0; background: var(--panel-2); padding: 11px 13px; }
.pickup-box.good { border-left-color: var(--green); background: var(--green-soft); }
.pickup-box.warn { border-left-color: var(--yellow); background: var(--yellow-soft); }
.pickup-box.info { border-left-color: var(--blue); background: var(--blue-soft); }
.pickup-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pickup-title { display: inline-flex; align-items: center; gap: 6px; font-weight: 750; font-size: 14px; }
.pickup-title svg { width: 15px; height: 15px; }
.pickup-reason { color: var(--muted); font-size: 12.8px; line-height: 1.45; margin-top: 5px; }
.pickup-drop { display: flex; align-items: center; gap: 9px; margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--line-2); }
.pickup-drop-label { font-size: 9.5px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted-2); flex: none; }
.pickup-drop .player-cell { flex: 1; min-width: 0; }
.pickup-warning { display: flex; gap: 6px; color: var(--yellow); font-size: 11.5px; margin-top: 8px; }
.pickup-warning svg { width: 13px; height: 13px; flex: none; margin-top: 1px; }

/* ------------------------------------------------------------------ news */
.news-list { display: flex; flex-direction: column; gap: 10px; }
.news-item { display: flex; gap: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-2); }
.news-thumb { width: 38px; height: 38px; flex: none; }
.news-headline { font-weight: 650; font-size: 13.5px; line-height: 1.45; }
.news-desc { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.news-meta { color: var(--muted-2); font-size: 11px; margin-top: 4px; }
.news-ext { font-size: 11px; color: var(--blue); }
.news-note { border: 1px dashed var(--line-2); border-radius: var(--radius-sm); padding: 10px 13px; background: var(--panel-2); }
.news-note-head { display: flex; gap: 8px; align-items: baseline; }
.news-note-title { font-weight: 650; font-size: 13.5px; }
.news-note-body { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.news-time { color: var(--muted-2); }

/* ------------------------------------------------------------------ form */
label.field, .field { display: flex; flex-direction: column; gap: 5px; }
.field .label, .label { font-size: 11px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.input, .select, textarea {
  font: 500 14px/1.4 var(--font);
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 9px 12px;
  outline: none;
  width: 100%;
}
.input:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-row { display: flex; gap: 10px; flex-wrap: wrap; }
.field-row label.field { flex: 1 1 180px; }
.form-error { border: 1px solid var(--red-line); background: var(--red-soft); color: var(--red); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; font-weight: 550; }
.hint { color: var(--muted-2); font-size: 12px; }
.help-list { display: flex; flex-direction: column; gap: 10px; }
.help-step { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.help-step b { color: var(--text); }
.step-num { flex: none; width: 24px; height: 24px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-2); font-family: var(--num); font-size: 15px; font-weight: 700; display: grid; place-items: center; }
.steps { display: flex; flex-direction: column; gap: 10px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step-body { min-width: 0; }
.commissioner-details details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-2); padding: 10px 14px; }
.commissioner-details summary { cursor: pointer; font-weight: 650; font-size: 13.5px; color: var(--muted); }

/* --------------------------------------------------------- splash/connect */
.connect-wrap { max-width: 620px; margin: 8vh auto 0; padding: 0 20px; }
.connect-hero { text-align: center; margin-bottom: 22px; }
.connect-hero .brand-mark { margin: 0 auto 10px; width: 46px; }
.connect-hero h1 { margin: 10px 0 6px; font-size: 24px; }
.connect-hero p { color: var(--muted); font-size: 14px; }

.banner { display: flex; align-items: center; gap: 12px; border: 1px solid var(--yellow-line); background: var(--yellow-soft); color: var(--yellow); border-radius: var(--radius-sm); padding: 10px 16px; font-size: 13.5px; margin-bottom: 16px; flex-wrap: wrap; }
.banner svg { width: 16px; height: 16px; flex: none; }
.banner.demo, .banner:not(.warn) { border-color: var(--blue-line); background: var(--blue-soft); color: var(--blue); }
.banner.warn { border-color: var(--yellow-line); background: var(--yellow-soft); color: var(--yellow); }
.banner b { color: var(--text); }
.banner .banner-actions { margin-left: auto; display: flex; gap: 8px; }

/* ---------------------------------------------------------- customize bar */
.customize-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  margin-bottom: 16px;
  font-size: 13px;
  flex-wrap: wrap;
  position: relative;
}
.customize-label { font-weight: 700; color: var(--muted); }
.customize-meta { color: var(--muted-2); }
.customize-hint { color: var(--muted-2); font-size: 12px; width: 100%; }
.customize-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card-toggle { color: var(--muted-2); }
/* A collapsed card keeps its header and drops its body. */
.card.collapsed > :not(.card-head) { display: none; }
.card.collapsed > .card-head { margin-bottom: 0; border-bottom-color: transparent; }
.card.collapsed .card-toggle svg { transform: rotate(-90deg); }
.card-toggle svg { transition: transform 0.15s var(--ease); }
/* Hiding is only offered (and only reversible) in customize mode. */
.card-hide { display: none; }
body.customizing .card-hide { display: grid; }
body.customizing .card-tools { opacity: 1; }
.section-hidden { display: none; }
body.customizing .section-hidden { display: block; opacity: 0.45; border-style: dashed; }

/* ------------------------------------------------------------ team picker */
.team-pick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.team-pick-card {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  padding: 11px 13px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}
.team-pick-card:hover { border-color: var(--line-2); background: var(--panel-3); }
.team-pick-card.on { border-color: var(--accent); background: var(--accent-soft); }
.team-pick-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.team-pick-text b { font-size: 13.5px; font-weight: 650; line-height: 1.3; }
.team-pick-text small { display: block; color: var(--muted-2); font-size: 11.5px; line-height: 1.3; }

.table { width: 100%; border-collapse: collapse; }

/* ------------------------------------------------------ shared legacy bits */
/* Tools injected by ui.js on every card + structural classes used across
 * views that predate the 2026 restyle. Kept grouped so they read as one. */
.card-tools { display: flex; gap: 2px; margin-left: auto; opacity: 0; transition: opacity 0.15s ease; }
.card-head:hover .card-tools, .card-tools:hover, .card-tools:focus-within { opacity: 1; }
@media (hover: none) { .card-tools { opacity: 0.55; } }
.card-tools .icon-btn { width: 30px; height: 30px; }
.collapsible > .card-head { padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }

.mc-team { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.matchup-card.mine { border-color: var(--accent-line); }
.team-cell { display: flex; align-items: center; gap: 9px; min-width: 0; }
.team-logo-fallback { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

.rank-list { display: flex; flex-direction: column; gap: 2px; }
.rank-item { position: relative; }
.rank-item.me, .standings tr.me td, table tr.me td { background: var(--accent-soft); }
.rank-item.me { border-radius: 10px; }
.rname { display: block; font-weight: 650; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.search-box {
  flex: 1 1 240px;
  min-width: 0;
  display: flex;
  gap: 9px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 11px;
  padding: 8px 13px;
  color: var(--muted-2);
}
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); color: var(--text); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 14px/1.4 var(--font); color: var(--text); }
.load-more { display: flex; justify-content: center; padding: 12px 0 2px; }

th.sortable { cursor: pointer; user-select: none; -webkit-user-select: none; }
th.sortable:hover { color: var(--text); }
th.sortable.sorted { color: var(--accent-2); }

.proj-diff { font-weight: 700; font-family: var(--num); font-size: 15px; }
.proj-diff.up { color: var(--green); }
.proj-diff.down { color: var(--red); }
.proj-diff.flat { color: var(--muted-2); font-weight: 650; }
.proj-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 2px 0 12px; }
.proj-team-row td { background: var(--panel-2); }
tr.proj-ir td { color: var(--muted-2); }
.ps-team { display: flex; gap: 8px; align-items: center; min-width: 0; }
.trend { font-family: var(--num); font-weight: 700; }
.trend.up { color: var(--green); }
.trend.down { color: var(--red); }

.str-add { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; border-radius: 6px; }
.str-add .plus { color: var(--green); }
.str-add:hover b { text-decoration: underline; }
.str-drop { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; border-radius: 6px; }
.str-drop .minus { color: var(--red); }
.str-drop.to-ir { color: var(--accent); }
.str-drop.to-ir .str-sign { color: var(--accent); }
.str-drop:hover b { text-decoration: underline; }

.textarea { resize: vertical; min-height: 74px; }
.compact { font-size: 13px; }
.wrap { flex-wrap: wrap; }

/* --------------------------------------------------------------- toasts */
.toast-root, .toast-stack { position: fixed; bottom: 18px; right: 18px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: 380px; pointer-events: none; }
.toast-root > *, .toast-stack > * { pointer-events: auto; }
.toast {
  background: var(--text);
  color: var(--bg);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 550;
  box-shadow: var(--shadow);
  animation: toast-in 0.18s ease;
}
.toast.bad, .toast.error { background: var(--red); color: #fff; }
.toast.good, .toast.success { background: var(--green); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------------------------------------------------------- empty states */
.empty { display: grid; place-items: center; text-align: center; padding: 40px 20px; color: var(--muted-2); }
.empty-icon { color: var(--line-2); margin-bottom: 8px; }
.empty-icon svg { width: 34px; height: 34px; }
.empty h3 { color: var(--muted); margin: 4px 0 6px; font-size: 15.5px; }
.empty p { max-width: 420px; font-size: 13.5px; }
.boot { min-height: 70vh; display: grid; place-items: center; text-align: center; color: var(--muted-2); }
.boot-ball { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--accent); margin: 0 auto 14px; animation: spin 1.1s linear infinite; border-top-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton { border-radius: var(--radius); min-height: 120px; background: linear-gradient(100deg, var(--panel-2) 40%, var(--panel-3) 50%, var(--panel-2) 60%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton.skel-row { min-height: 0; height: 13px; border-radius: 6px; margin: 12px 0; }
.skeleton.rows { height: 240px; }
.skeleton .skel-row { height: 13px; border-radius: 6px; background: var(--panel-3); margin: 14px 16px; }
@keyframes shimmer { to { background-position-x: -200%; } }

/* ------------------------------------------------------------- utilities */
.muted { color: var(--muted); }
.muted-2 { color: var(--muted-2); }
.small { font-size: 12.5px; }
.sm { font-size: 13.5px; }
.tiny { font-size: 11px; }
.h { color: var(--text); }
.warn { color: var(--yellow); }
.good { color: var(--green); }
.info { color: var(--blue); }
.live { color: var(--green); }
.busy { color: var(--yellow); }
.err { color: var(--red); }
.num { font-family: var(--num); letter-spacing: 0.01em; }
.nowrap { white-space: nowrap; }
.w-100 { width: 100%; }
.left { text-align: left; }
.right { text-align: right; }
.center { text-align: center; }
.flex { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.flush { padding: 0 !important; }
.divider { height: 1px; background: var(--line); margin: 12px 0; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.cat-heads { display: flex; gap: 8px; overflow-x: auto; }
.cat-name { font-size: 11px; font-weight: 750; color: var(--muted-2); letter-spacing: 0.06em; }
.cat-row { display: flex; gap: 8px; }

/* -------------------------------------------------------------- responsive */
@media (max-width: 1240px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-hero, .grid-side { grid-template-columns: minmax(0, 1fr); }
  .view { padding: 20px 18px 40px; }
}

@media (max-width: 1020px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    height: 100dvh;
    width: min(320px, 88vw);
    transform: translateX(-102%);
    transition: transform 0.2s ease;
    box-shadow: 0 0 60px rgba(10, 14, 24, 0.35);
    border-right: 1px solid var(--line-2);
  }
  .app.sidebar-open .sidebar { transform: translateX(0); }
  .app.sidebar-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 24, 0.42);
    z-index: 39;
  }
  .app.sidebar-open .scrim { display: none; }
  .tabbar { display: flex; gap: 2px; }
  .only-mobile { display: flex !important; }
  .only-desktop { display: none !important; }
  .topbar { padding: 11px 16px; gap: 10px; }
  .topbar .team-picker, .topbar .topbar-league .topbar-meta { display: none; }
  .topbar .customize-toggle .btn-text { display: none; }
  .view { padding: 16px 14px calc(96px + env(safe-area-inset-bottom)); }
  .footer { padding: 8px 16px calc(88px + env(safe-area-inset-bottom)); }
  .page-title { font-size: 22px; }
  .move-head { font-size: 18px; }
  .move-players { flex-direction: column; }
  .move-player { flex-basis: auto; }
  .move-arrow { transform: rotate(90deg); align-self: center; }
  .ss-score { font-size: 30px; }
  .ss-name { font-size: 13.5px; }
  .ss-tag { display: none; }
  .toast-root, .toast-stack { left: 14px; right: 14px; max-width: none; align-items: stretch; bottom: calc(78px + env(safe-area-inset-bottom)); }
  th, td { padding: 8px 9px; font-size: 13px; }
  .mc-cats { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .why-list { flex-direction: column; gap: 6px; }
  .score-strip { padding: 12px 14px; }
  .ss-team .ss-record { display: none; }
  .rank-num { width: 18px; }
}

/* The connection hint at the bottom of the sidebar. */
.sidebar-foot .hint { padding-left: 4px; }

/* ============================================== 2026-10 polish additions */
/* Classes the views already emit that previously had no styling. */
code { font: 500 0.88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--panel-3); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }

.text-up { color: var(--green); }
.text-down { color: var(--red); }
.text-warn { color: var(--yellow); }
.text-accent { color: var(--accent); font-weight: 700; }
.bad { color: var(--red); }
.avatar.xl { width: 56px; height: 56px; font-size: 16px; }
.team-logo.xl { width: 56px; height: 56px; font-size: 17px; }
.drawer-head > .avatar, .drawer-head > .team-logo { flex: none; }

/* category scoreboard strip on matchup cards: left tint = home, right = away */
.mc-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 5px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-2);
  line-height: 1.15;
}
.mc-cat .c { font-size: 10px; font-weight: 750; letter-spacing: 0.06em; color: var(--muted-2); }
.mc-cat .v { font-family: var(--num); font-size: 15px; font-weight: 700; }
.mc-cat.home-win { border-color: var(--accent-line); background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.mc-cat.away-win { border-color: var(--blue-line); background: var(--blue-soft); box-shadow: inset -3px 0 0 var(--blue); }
.mc-cat.tie .v { color: var(--muted-2); }
.mc-team.win .mc-score { color: var(--green); }

/* matchup modal rows */
.cat-heads, .cat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px 84px;
  align-items: center;
  gap: 8px;
  overflow: visible;
}
.cat-heads { padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.cat-heads .h { text-align: right; font-size: 11px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.cat-row { padding: 6px 0; border-bottom: 1px solid var(--line); }
.cat-row:last-child { border-bottom: 0; }
.cat-name { font-size: 12px; }
.cat-value { text-align: right; font-family: var(--num); font-size: 16px; color: var(--muted); }
.cat-value.win { color: var(--green); font-weight: 700; }
.cat-value.lose { color: var(--muted-2); }

/* scoreboard colouring */
.ss-score.win { color: #7ee2a8; }
.ss-score.loss { color: #ff9aa2; }
.score-strip { cursor: pointer; transition: transform 0.15s var(--ease), box-shadow 0.15s ease; }
.score-strip:hover { transform: translateY(-1px); }
.score-strip:focus-visible { outline-offset: 3px; }

/* day-by-day race */
.race-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.race-chip { display: inline-flex; align-items: baseline; gap: 5px; padding: 3px 11px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel-2); font-family: var(--font); font-size: 12px; font-weight: 600; color: var(--muted); }
.race-chip b { font-family: var(--num); font-size: 15px; color: var(--text); }
.race-chip.race-home { color: var(--accent-2); border-color: var(--accent-line); background: var(--accent-soft); }
.race-chip.race-away { color: var(--blue); border-color: var(--blue-line); background: var(--blue-soft); }
.race-dash { color: var(--muted-2); padding: 0 1px; }
.race-key { display: inline-flex; gap: 7px; align-items: center; }
.race-key i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.race-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 8px; }
.race-legend-note { margin-left: auto; }
.race-empty { display: flex; align-items: center; gap: 9px; padding: 6px 0; }
.race-empty svg { width: 16px; height: 16px; flex: none; }
.timeline-wrap svg.timeline { width: 100%; height: auto; }
.night-grid { margin-top: 16px; align-items: flex-start; }
.night-block { flex: 1 1 340px; min-width: 0; }
.night-table td, .night-table th { padding: 6px 9px; font-size: 12.5px; }
.night-table th { position: static; }
.night-head .race-key { font-weight: 700; color: var(--text); }

/* projected-vs-actual summary */
.proj-summary-side { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-2); }
.proj-summary-side small { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted-2); }
.proj-summary-side b { font-family: var(--num); font-size: 19px; font-weight: 700; }
.ps-numbers { justify-content: space-between; }
.ps-numbers > span { display: flex; flex-direction: column; }
.ps-games { display: flex; align-items: baseline; gap: 5px; }
.ps-games small { display: inline; }
.proj-pick { width: auto; max-width: 100%; }
.proj-team-cell { font-weight: 700; }
.proj-team-meta { color: var(--muted-2); font-weight: 500; font-size: 12px; }

/* standings: theme-aware heat map + list rows */
.heat-0 { background: var(--heat-0); }
.heat-1 { background: var(--heat-1); }
.heat-2 { background: var(--heat-2); }
.heat-3 { background: var(--heat-3); }
.heat-4 { background: var(--heat-4); }
.heat-none { background: var(--panel-2); }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
tr.me td:first-child { box-shadow: inset 3px 0 0 var(--accent); }

/* lock chip + move card internals */
.lock-text { white-space: nowrap; }
.move-body { padding-top: 12px; }
.move-warning { border-top: 0; margin: 12px 20px 0; padding: 9px 12px; border: 1px solid var(--yellow-line); border-radius: 10px; background: var(--yellow-soft); }
.move-warning svg { flex: none; margin-top: 3px; }
.move-warning b { color: var(--text); }
.move-player { transition: border-color 0.12s ease, background 0.12s ease, transform 0.12s ease; }
.move-player:hover { transform: translateY(-1px); }
.move-foot .btn { white-space: nowrap; }
.str-card .str-nights { padding-left: 0; padding-right: 0; }

/* news */
.news-item { text-decoration: none; color: inherit; transition: border-color 0.12s ease; }
.news-item:hover { border-color: var(--line-2); text-decoration: none; }
.news-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.news-thumb { border-radius: 8px; background-size: cover; background-position: center; background-color: var(--panel-3); }
.news-ext svg { width: 14px; height: 14px; }

/* tables: calmer rows, sticky headers that stay on top of the scroller */
.table-wrap { position: relative; }
tbody tr { transition: background 0.1s ease; }
th { z-index: 1; }
.card > .table-wrap, .card > .str-table-wrap { border-top: 0; }

/* a11y + small touches */
.player-cell .avatar { flex: none; }
.pname { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; line-height: 1.3; }
.pname .badge { font-size: 9.5px; padding: 1px 6px; }
.kpi.card { gap: 3px; }
.page-head { align-items: flex-end; }
.page-title { text-wrap: balance; }
.btn:focus-visible, .icon-btn:focus-visible, .nav-item:focus-visible, .chip:focus-visible { outline-offset: 1px; }
.nav-item:active { transform: translateY(1px); }
.boot p { font-size: 13.5px; }

@media (max-width: 860px) {
  .cat-heads, .cat-row { grid-template-columns: minmax(0, 1fr) 70px 70px; }
  .race-legend-note { margin-left: 0; width: 100%; }
  .drawer-panel { width: 100vw; }
  .modal-panel { max-height: 94vh; }
  .overlay { padding: 10px; }
}

.grid-hero, .grid-side { align-items: start; }
.rank-item { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 0; }
.rank-item[data-team], .rank-item[data-player] { cursor: pointer; }
.rank-item[data-team]:hover, .rank-item[data-player]:hover { background: var(--hover); }
.rank-main { flex: 1; min-width: 0; }
.rank-score { flex: none; padding: 1px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-2); font-size: 15px; }
.rank-item.me { border-radius: 0; box-shadow: inset 3px 0 0 var(--accent); }

/* ================================================================ print */
@media print {
  .sidebar, .topbar, .tabbar, .customize-bar, .footer, .toast-root, .toast-stack, .overlay { display: none !important; }
  body { background: #fff; color: #000; }
  .view { padding: 0; max-width: none; }
  .card { box-shadow: none; border-color: #bbb; }
}

.tinfo { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }

/* Clickable note rows (roster watch). */
.note.clickable { cursor: pointer; transition: background 0.12s ease, transform 0.12s ease; }
.note.clickable:hover { background: var(--panel-3, var(--panel-2)); transform: translateX(2px); }
.note .grow { flex: 1; min-width: 0; }

.injury-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 6px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 8px; font-size: 13.5px; }
.injury-row:last-child { border-bottom: 0; }
.injury-row:hover { background: var(--panel-2); }
.injury-name { font-weight: 650; }
.injury-row .badge { flex: none; }
.keep-btn.on { color: var(--green); background: var(--green-soft); }
.nowrap { white-space: nowrap; }

/* Week calendar in the streamers card. */
.cal-wrap-strip { margin: 6px 18px 14px; }
.str-card .cal-wrap-strip { margin-left: 0; margin-right: 0; }
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
.cal-day { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 11px 4px 10px; border-left: 1px solid var(--line); min-width: 0; text-align: center; transition: background .15s; }
.cal-day:first-child { border-left: 0; }
.cal-dow { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.cal-dow em { font-style: normal; font-size: 9px; letter-spacing: 0.06em; color: var(--accent); }
.cal-num { font-size: 21px; font-weight: 700; line-height: 1.1; color: var(--text); }
.cal-month { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); line-height: 1; margin-top: 2px; }
.cal-meter { display: block; width: 70%; max-width: 44px; height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 3px 0 1px; }
.cal-meter i { display: block; height: 100%; border-radius: 99px; background: var(--green); }
.cal-meter.empty { background: transparent; }
.cal-status { font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.cal-add { display: inline-flex; align-items: center; gap: 3px; max-width: 100%; min-height: 20px; padding: 2px 7px; margin-top: 3px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); cursor: pointer; box-sizing: border-box; }
.cal-add span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cal-add svg { flex: none; }
.cal-add:hover { filter: brightness(1.08); }
.cal-add:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cal-add.none { background: none; padding: 0; cursor: default; }
.cal-day.full .cal-status { color: var(--green); }
.cal-day.gap { background: var(--yellow-soft); }
.cal-day.gap .cal-status { color: var(--yellow); font-weight: 700; }
.cal-day.gap .cal-meter i { background: var(--yellow); }
.cal-day.past, .cal-day.none { background: var(--panel-2); }
.cal-day.past .cal-num, .cal-day.none .cal-num { color: var(--muted-2); }
.cal-day.today { box-shadow: inset 0 3px 0 var(--accent); }
.cal-day.today .cal-dow { color: var(--accent); }
.cal-key { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 9px 4px 0; font-size: 11px; color: var(--muted); }
.cal-key span { display: inline-flex; align-items: center; gap: 6px; }
.cal-key .k { width: 10px; height: 10px; border-radius: 3px; display: inline-block; border: 1px solid var(--line); }
.cal-key .k.full { background: var(--green-soft); border-color: var(--green-line); }
.cal-key .k.gap { background: var(--yellow-soft); border-color: var(--yellow-line); }
.cal-key .k.past { background: var(--panel-2); }
.cal-key-add { color: var(--accent); font-weight: 700; }
@media (max-width: 560px) {
  .cal-day { padding: 9px 1px 8px; }
  .cal-num { font-size: 17px; }
  .cal-status { font-size: 9.5px; }
  .cal-add { font-size: 9.5px; padding: 2px 4px; }
  .cal-add svg { display: none; }
  .cal-dow { font-size: 9.5px; letter-spacing: 0.04em; }
}
.theme-tag { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }
@media (max-width: 560px) {
  .score-strip .ss-name { display: none; }
  .score-strip { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .ss-team { gap: 8px; }
}

/* Player card: last 15 / projection */
.form-cards { gap: 12px; }
.form-card { border: 1px solid var(--line); background: var(--panel-2); border-radius: var(--radius-sm); padding: 12px 14px 10px; min-width: 0; }
.form-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.form-card-title { font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted-2); }
.form-card-chip { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--panel-3); border-radius: 999px; padding: 2px 9px; }
.form-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 10px; column-gap: 6px; }
.form-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.form-cell b { font-family: var(--num); font-size: 22px; font-weight: 700; line-height: 1.05; }
.form-cell span { font-size: 10px; font-weight: 700; letter-spacing: 0.07em; color: var(--muted-2); }

/* Interest popover: fully opaque so text behind never shows through. */
.eye-wrap .eye-pop {
  background: var(--panel);
  border: 1px solid var(--line-2);
  box-shadow: 0 18px 40px -12px rgba(8, 12, 24, 0.35), 0 2px 6px rgba(8, 12, 24, 0.12);
  color: var(--muted);
  z-index: 40;
  width: 270px;
  padding: 14px 16px;
  line-height: 1.5;
}
.eye-wrap .eye-pop b { color: var(--text); }
.eye-wrap[open] { z-index: 41; }

/* =====================================================================
   Polish layer (2026-10): one spacing scale, aligned cards and tables,
   consistent states. Declared last so it normalizes everything above.
   ===================================================================== */
:root {
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-7: 32px;
  --pad-x: var(--s-5);
}
.stack, .grid { gap: var(--s-4); }
.page-head { margin-bottom: var(--s-1); gap: var(--s-4); }
.page-title { margin: var(--s-1) 0 var(--s-1); }

/* cards: one header height, one body padding, content aligned to the same 20px edge */
.card-head { padding: var(--s-4) var(--pad-x) 0; min-height: 52px; }
.card-head.bordered { padding-bottom: var(--s-3); }
.card-head:not(.bordered) { padding-bottom: var(--s-1); }
.card-body { padding: var(--s-4) var(--pad-x) var(--s-5); }
.card-head:not(.bordered) + .card-body { padding-top: var(--s-2); }
.card-body.flush, .flush { padding: 0 !important; }
.card.tight .card-body { padding: var(--s-3) var(--s-4); }
.card-actions { gap: var(--s-2); }
.card-sub { font-size: 12.5px; }
.card-title { gap: 9px; }

/* tables: same inset as the card, comfortable rows, quiet header */
th { padding: 10px var(--s-3); font-size: 10.5px; }
td { padding: 10px var(--s-3); }
.card .table-wrap th:first-child, .card .table-wrap td:first-child { padding-left: var(--pad-x); }
.card .table-wrap th:last-child, .card .table-wrap td:last-child { padding-right: var(--pad-x); }
.card > .table-note, .card .table-note { padding: var(--s-3) var(--pad-x) var(--s-4); }
.card-body:not(.flush) .table-wrap { margin: 0 calc(var(--pad-x) * -1); }
.card-body:not(.flush) .table-note { padding-left: 0; padding-right: 0; padding-bottom: 0; }
tbody tr { transition: background 0.12s ease; }

/* hero card: let the interest popover escape, keep rounded footer */
.card.move { overflow: visible; }
.move-top { padding: var(--s-4) var(--pad-x) 0; }
.move-foot { border-radius: 0 0 var(--radius) var(--radius); padding: var(--s-3) var(--pad-x); gap: var(--s-2); }
.move-head { padding: var(--s-2) var(--pad-x) var(--s-3); }
.move-players { padding: 0 var(--pad-x); gap: var(--s-3); }
.move-why { margin: var(--s-4) var(--pad-x) var(--s-4); }
.move-warning { margin: var(--s-3) var(--pad-x) 0; }
.move-note { padding: var(--s-3) var(--pad-x) var(--s-1); }
.str-section-title { padding: var(--s-4) 0 var(--s-2); }
.str-card .card-body { padding-top: var(--s-2); }

/* controls: consistent hit-targets, hover and focus */
.btn { transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease; }
.btn:active { transform: translateY(1px); }
.btn.primary { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.btn.primary:hover { filter: brightness(1.06); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.select, select.select { transition: border-color 0.12s ease, box-shadow 0.12s ease; }
.select:hover { border-color: var(--line-2); }
.select:focus-visible { box-shadow: 0 0 0 3px var(--accent-soft); outline: none; border-color: var(--accent); }

/* lists and rows */
.rank-item, .injury-row, .note.clickable { transition: background 0.12s ease; }
.badge, .pill { font-weight: 700; letter-spacing: 0.01em; }
.player-cell { gap: var(--s-3); }
.pname { font-weight: 650; }
.pmeta { color: var(--muted-2); }

/* matchup cards */
.matchup-grid { gap: var(--s-4); }
.matchup-card, .mc { transition: box-shadow 0.15s ease, transform 0.15s var(--ease), border-color 0.15s ease; }
.matchup-card:hover, .mc:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

/* gentle entrance when a view renders */
@media (prefers-reduced-motion: no-preference) {
  #view > .stack, main .stack:first-child { animation: view-in 0.22s var(--ease); }
  @keyframes view-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}

/* phones: slightly tighter gutters, same rhythm */
@media (max-width: 640px) {
  :root { --pad-x: var(--s-4); }
  .stack, .grid { gap: var(--s-3); }
}
th.right, td.right, .table th.right, .table td.right { text-align: right; }
th.center, td.center, .table th.center, .table td.center { text-align: center; }
.card table th:first-child, .card table td:first-child { padding-left: var(--pad-x); }
.card table th:last-child, .card table td:last-child { padding-right: var(--pad-x); }
.card .card-body:not(.flush) table th:first-child, .card .card-body:not(.flush) table td:first-child { padding-left: var(--pad-x); }

/* Risks (under "Why it's worth an add") */
.move-risks { margin: calc(var(--s-2) * -1) var(--pad-x) var(--s-4); padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); }
.risk-list { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.risk-item { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.risk-dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; flex: none; background: var(--blue); }
.risk-item.bad .risk-dot { background: var(--red); }
.risk-item.warn .risk-dot { background: var(--yellow); }
.risk-item.clear .risk-dot { background: var(--green); }
.risk-item.bad { color: var(--text); }

/* ---- Matchups overhaul ---- */
.icon-btn.bordered { border-color: var(--line); background: var(--panel); }
.icon-btn.bordered:disabled { opacity: .4; cursor: default; }
.mx-card { overflow: clip; }
/* The score header follows the reader through the calendar and tables below it,
   so both sides stay labelled; it releases once the matchup section ends. */
.mx-sticky { position: sticky; top: var(--mx-stick, 63px); z-index: 6; box-shadow: var(--shadow-soft), 0 6px 14px -10px rgba(0,0,0,.35); }
.mx-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-4); padding: var(--s-5) var(--pad-x); }
.mx-team { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.mx-team.away { flex-direction: row-reverse; text-align: right; }
.mx-team.home { flex-direction: row; }
.mx-score { font-family: var(--num); font-size: 34px; font-weight: 700; line-height: 1; color: var(--muted); }
.mx-team.lead .mx-score { color: var(--text); }
.mx-team.home .mx-score { order: 3; margin-left: auto; }
.mx-team.away .mx-score { order: 3; margin-right: auto; }
.mx-id { display: flex; flex-direction: column; min-width: 0; }
.mx-name { font-weight: 600; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-rec { font-size: 12px; color: var(--muted); }
.mx-mid { display: flex; flex-direction: column; align-items: center; gap: var(--s-1); }
.mx-margin { font-size: 12px; color: var(--muted); }
.mx-tabs { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--pad-x); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mx-pad { padding: var(--s-4) var(--pad-x) var(--s-5); display: grid; gap: var(--s-4); }
.mx-players { display: grid; grid-template-columns: 1fr 1fr; }
.mx-players > div + div { border-left: 1px solid var(--line); }
.mx-players > div { min-width: 0; }
@media (max-width: 860px) { .mx-focus { --mx-stick: 59px; } } /* shorter topbar */
.mx-side-title { display: flex; align-items: center; gap: var(--s-2); font-weight: 600; font-size: 13px; padding: var(--s-3) var(--pad-x) var(--s-2); color: var(--muted); }
.mx-side-title.lead { color: var(--text); }
.mx-side-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-side-score { margin-left: auto; font-family: var(--num); font-weight: 700; }
.proj-compact th, .proj-compact td { padding: 6px 8px; font-size: 12.5px; }
.proj-compact th:first-child, .proj-compact td:first-child { padding-left: var(--pad-x); }
.cat-ledger { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2) var(--s-6); }
.cat-line { display: grid; grid-template-columns: 1fr 52px 1fr; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line); font-family: var(--num); }
.cl-val { padding: 2px 8px; border-radius: 6px; width: fit-content; color: var(--muted); }
.cl-val:last-child { justify-self: end; }
.cl-val.win { background: var(--green-soft, rgba(34,160,90,.15)); color: var(--text); font-weight: 700; }
.cl-key { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); font-family: inherit; }
.glance { display: grid; gap: 2px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: var(--s-2) var(--s-4); }
.gl-row { display: grid; grid-template-columns: 1fr auto 1fr; padding: 6px 0; align-items: center; font-family: var(--num); }
.gl-row + .gl-row { border-top: 1px solid var(--line); }
.gl-k { font-size: 12px; color: var(--muted); text-align: center; padding: 0 var(--s-3); font-family: inherit; }
.gl-v:last-child { text-align: right; }
.gl-head { font-family: inherit; font-size: 13px; }
.gl-team { display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
.gl-team.away { flex-direction: row-reverse; }
.gl-team b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--s-2); }
.mini-matchup { display: grid; gap: 6px; align-content: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); color: var(--text); cursor: pointer; font: inherit; text-align: left; }
.mini-matchup:hover { background: var(--hover); }
.mini-matchup.mine { border-color: var(--accent); }
.mini-matchup.chosen { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--accent); }
.mm-status { font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2, var(--muted)); }
.mm-row { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 13px; }
.mm-row .team-logo { flex: none; }
.mm-row.lead { color: var(--text); font-weight: 600; }
.mm-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-score { margin-left: auto; font-family: var(--num); }
@media (max-width: 760px) {
  .mx-head { grid-template-columns: 1fr; gap: var(--s-3); }
  .mx-mid { flex-direction: row; justify-content: center; order: 2; }
  .mx-team.away { flex-direction: row; text-align: left; order: 3; }
  .mx-team.away .mx-score { margin-left: auto; margin-right: 0; }
  .mx-score { font-size: 28px; }
  .mx-players { grid-template-columns: 1fr; }
  .mx-players > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .cat-ledger { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 760px) {
  .mx-tabs { flex-wrap: wrap; }
  .mx-tabs .segmented { flex: 1 1 auto; min-width: 0; }
  .mx-tabs .segmented > button { flex: 1; padding-left: 8px; padding-right: 8px; }
  .mx-tabs > .btn { flex: 0 0 auto; }
  .mx-tabs > .btn .btn-text { display: inline; }
}

/* ============================================== Mobile comfort pass
   Goals: roomier rhythm between and inside cards, fewer wrapped lines,
   fewer boxes inside boxes, and tables that fit without sideways scrolling. */
@media (max-width: 640px) {
  :root { --pad-x: 16px; }
  body { line-height: 1.5; }
  .stack, .grid { gap: 16px; }
  .page-head { margin-bottom: 4px; gap: 12px; }
  .page-title { font-size: 24px; margin: 4px 0 4px; }
  .page-actions { width: 100%; display: flex; gap: 8px; align-items: center; }
  .page-actions .select { flex: 1; min-width: 0; }

  /* card headers: one line, secondary text yields first */
  .card-head, .card-head.bordered { padding: 14px var(--pad-x) 12px; min-height: 0; flex-wrap: nowrap; gap: 10px; }
  .card-title { min-width: 0; flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
  .card-head > .pill, .card-head > .btn, .card-head > .card-sub, .card-head > .badge { flex: none; white-space: nowrap; }
  .card-head .card-sub { font-size: 12px; }
  .card-head .btn.small { padding: 6px 10px; }
  .card-body { padding: 14px var(--pad-x) 18px; }
  .card-body.flush { padding: 0; }

  /* notes: title and text read as one block, less padding */
  .notes { gap: 10px; }
  .note { padding: 12px 14px; gap: 10px; }
  .note-title { font-size: 14.5px; line-height: 1.35; }
  .note-text { font-size: 13.5px; line-height: 1.45; margin-top: 2px; }

  /* tables: fit the screen, hide the long tail of columns */
  .hide-sm { display: none !important; }
  .table th, .table td { padding: 10px 6px; }
  .table th { font-size: 10.5px; }
  .table td.sm, .table .num { font-size: 13.5px; }
  .card table th:first-child, .card table td:first-child { padding-left: var(--pad-x); }
  .card table th:last-child, .card table td:last-child { padding-right: var(--pad-x); }
  .player-cell { gap: 10px; }

  /* today's move hero */
  .move-top { padding: 14px var(--pad-x) 0; gap: 8px; }
  .move-meta { flex-direction: row; align-items: center; gap: 8px; flex-wrap: wrap; }
  .move-meta .tiny, .move-meta .muted { display: none; }
  .move-head { padding: 10px var(--pad-x) 14px; font-size: 20px; line-height: 1.45; }
  .move-players { padding: 0 var(--pad-x); gap: 8px; flex-direction: column; flex-wrap: nowrap; }
  .move-player { flex: none; width: 100%; padding: 11px 12px; }
  .move-arrow { display: none; }
  .move-warning { margin: 12px var(--pad-x) 0; }
  /* flatten "why" and "risks": hairline sections instead of nested boxes */
  .move-why, .move-risks { margin: 14px var(--pad-x) 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
  .move-risks { margin-bottom: 16px; }
  .move-why-title { margin-bottom: 10px; }
  .why-list { gap: 10px; }
  .why-item { font-size: 14px; line-height: 1.5; }
  .risk-list { gap: 10px; }
  .risk-item { font-size: 14px; line-height: 1.5; }
  .move-foot { padding: 12px var(--pad-x); gap: 10px; }
  .move-foot > :first-child { flex: 1 1 100%; }
  .move-foot .spacer { margin-left: 0; }
  .move-foot .btn { flex: 1 1 auto; justify-content: center; }
  .move-foot .btn.primary { flex: 1 1 100%; order: 3; padding-top: 10px; padding-bottom: 10px; }

  /* weekly plan list */
  .str-section-title { padding: 16px var(--pad-x) 10px; flex-wrap: wrap; row-gap: 2px; }
  .str-plan, .str-nights, .str-drops, .str-summary, .str-lead { padding-left: var(--pad-x); padding-right: var(--pad-x); }
  .str-step { gap: 12px; padding: 14px 0; }
  .str-when { width: 40px; flex-direction: column; align-items: flex-start; gap: 0; font-size: 14px; }
  .str-when .num { font-size: 12px; }
  .str-add { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
  .str-add .pos-tag { margin-left: 0; }
  .str-sub, .str-move .tiny { display: block; margin-top: 3px; line-height: 1.45; }
  .str-drop { display: block; margin-top: 6px; }
  .str-net { font-size: 17px; }

  /* matchup summary card */
  .matchup-card.hero-card { padding: 16px; }
  .mc-score { min-width: 0; font-size: 26px; }
  .mc-team-name { font-size: 15px; }
  .mc-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .mc-foot { margin-top: 6px; }

  /* matchups page */
  .mx-head { padding: 16px var(--pad-x); gap: 10px; }
  .mx-mid { order: 0; }
  .mx-tabs { padding: 12px var(--pad-x); }
  .mx-pad { padding: 16px var(--pad-x) 20px; gap: 16px; }
  .cat-line { padding: 9px 0; }
  .mini-grid { grid-template-columns: 1fr; gap: 8px; }
  .mini-matchup { padding: 10px; }
  /* Stacked layout: the tall header would eat the screen, so each roster's
     own title bar sticks instead while its table scrolls past. */
  .mx-sticky { position: static; box-shadow: var(--shadow-soft); }
  .mx-side-title { position: sticky; top: var(--mx-stick, 63px); z-index: 2; background: var(--panel); border-bottom: 1px solid var(--line); }
  .proj-compact th, .proj-compact td { padding: 9px 6px; }
}
.mc-team-players { display: block; }
@media (max-width: 640px) {
  .card-head > .pill-week { display: none; }
  .mc-team-record { display: block; }
}
@media (max-width: 640px) {
  .card-title { white-space: normal; overflow: visible; line-height: 1.3; }
  .card-head > .card-sub, .str-section-title .card-sub { display: none; }
  .str-section-title { padding-top: 18px; }
}
@media (max-width: 640px) {
  .league-table th:nth-child(n+4):nth-child(-n+9), .league-table td:nth-child(n+4):nth-child(-n+9), .league-table th:nth-child(11), .league-table td:nth-child(11) { display: none; }
  .str-card > .card-head { flex-wrap: wrap; row-gap: 10px; }
  .str-card > .card-head .card-title { flex: 1 1 100%; }
  .str-card .card-actions { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  .str-card .card-actions .card-sub { display: none; }
}
@media (max-width: 640px) {
  .league-table { min-width: 0; width: 100%; table-layout: auto; }
  .league-table th, .league-table td { padding-left: 4px; padding-right: 4px; }
  .league-table .team-cell, .league-table .tinfo { min-width: 0; }
  .league-table .tname { white-space: normal; }
}

/* Matchup Players tab: both rosters fit side by side */
.proj-compact { table-layout: fixed; width: 100%; }
.proj-compact th:first-child, .proj-compact td:first-child { width: auto; }
.proj-compact th:not(:first-child), .proj-compact td:not(:first-child) { width: 46px; padding-left: 3px; padding-right: 3px; text-align: right; }
.proj-compact th:last-child, .proj-compact td:last-child { padding-right: 12px; }
.proj-compact th { font-size: 10px; letter-spacing: 0.04em; white-space: nowrap; }
.proj-compact td.num, .proj-compact td.sm { font-size: 12.5px; }
.proj-compact .avatar { width: 28px; height: 28px; font-size: 10px; }
.proj-compact .player-cell { gap: 8px; }
.proj-compact .pname { display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-compact .pname .badge { flex: none; padding: 1px 6px; font-size: 10px; line-height: 1.4; }
.proj-compact .pinfo { min-width: 0; }
.pname .badge { white-space: nowrap; vertical-align: middle; }
.proj-compact th:nth-last-child(-n+2), .proj-compact td:nth-last-child(-n+2) { width: 54px; }
.locked-note { display: flex; align-items: center; gap: 8px; margin: 8px var(--pad-x, 20px) 0; padding: 7px 12px; width: fit-content; max-width: calc(100% - 2 * var(--pad-x, 20px)); border: 1px solid var(--yellow-line); border-radius: 10px; background: var(--yellow-soft); color: var(--yellow); font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.locked-note svg { flex: none; }

/* ---- Week calendar (Matchups) ---- */
.mx-tabs-top { border-top: 0; }
.cal-wrap { overflow-x: auto; }
.cal-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; min-width: 860px; }
.cal-table th, .cal-table td { vertical-align: top; }
.cal-h { padding: 10px 4px 8px; text-align: center; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal-h span { display: block; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.cal-h b { display: block; font-family: var(--num); font-size: 16px; color: var(--text); }
.cal-h.is-today { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.cal-team { width: 78px; padding: 10px 8px 10px var(--pad-x); text-align: left; border-bottom: 1px solid var(--line); position: sticky; left: 0; background: var(--panel); z-index: 1; font-weight: 700; font-size: 13px; }
.cal-team > * { vertical-align: middle; }
.cal-team span { display: block; margin-top: 4px; }
.cal-week-h { width: 74px; padding: 10px var(--pad-x) 8px 4px; text-align: right; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal-cell { padding: 8px 5px 8px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal-cell.is-today { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.cal-pills { display: flex; flex-direction: column; gap: 4px; min-height: 24px; }
.cal-none { font-size: 11px; color: var(--muted-2); text-align: center; padding-top: 4px; }
.cal-total { margin-top: 8px; padding-top: 6px; border-top: 1px dashed var(--line-2, var(--line)); text-align: right; font-family: var(--num); font-weight: 700; font-size: 14px; }
.cal-wk { padding: 8px var(--pad-x) 8px 6px; text-align: right; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal-wk b { display: block; font-family: var(--num); font-size: 22px; }
.cal-wk small { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.cal-pill { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 3px 8px; border-radius: 999px; font-size: 11.5px; line-height: 1.35; border: 1px solid transparent; cursor: pointer; white-space: nowrap; min-width: 0; }
.cal-pill i { font-style: normal; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.cal-pill b { font-family: var(--num); font-weight: 700; flex: none; }
.cal-legend .cal-pill { display: inline-block; width: 26px; height: 12px; padding: 0; vertical-align: -2px; margin-right: 6px; cursor: default; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px var(--pad-x) 16px; font-size: 11.5px; color: var(--muted); }
.tone-green { background: rgba(22,163,74,.42); border-color: rgba(22,163,74,.9); color: var(--text); }
.tone-lime { background: rgba(37,99,235,.22); border-color: rgba(37,99,235,.65); color: var(--text); }
.tone-red { background: rgba(220,60,60,.18); border-color: rgba(220,60,60,.5); color: var(--text); }
.tone-grey, .tone-none { background: var(--panel-2); border-color: var(--line); color: var(--muted); }
.tone-grey b { font-weight: 500; }
.tone-gold { color: #3a2a00; border-color: #b8860b; background: linear-gradient(115deg, #f6d365 0%, #ffe9a0 30%, #e8b923 55%, #fff1b8 80%, #d9a514 100%); background-size: 220% 100%; animation: pill-shine 4.5s linear infinite; box-shadow: 0 0 0 1px rgba(255,215,0,.25), 0 1px 4px rgba(184,134,11,.35); }
.tone-magenta { color: #fff; border-color: #ff4fd8; background: linear-gradient(115deg, #b0148f 0%, #ff2fc6 30%, #ff8af0 50%, #e010a8 70%, #8a0f86 100%); background-size: 220% 100%; animation: pill-shine 2.8s linear infinite; box-shadow: 0 0 0 1px rgba(255,80,220,.5), 0 0 10px rgba(255,47,198,.65); font-weight: 700; }
.tone-magenta i, .tone-gold i { font-weight: 800; }
@keyframes pill-shine { from { background-position: 0% 0; } to { background-position: 220% 0; } }
@media (prefers-reduced-motion: reduce) { .tone-gold, .tone-magenta { animation: none; } }
:root[data-theme="dark"] .tone-gold, .dark .tone-gold { color: #2b1f00; }
@media (max-width: 640px) { .cal-table { min-width: 760px; } .cal-team { width: 62px; padding-left: 12px; } }
.tone-grey { color: var(--text); }
.tone-grey i { font-style: normal; font-weight: 600; color: var(--text); }
.tone-grey b { font-style: italic; font-weight: 500; color: var(--muted-2); opacity: 0.85; }

/* Pending (unprocessed) moves */
.badge-pending { color: var(--blue); border-color: var(--blue-line); background: var(--blue-soft); white-space: nowrap; }
.badge-pending.drop { color: var(--red); border-color: var(--red-line, var(--line)); background: var(--red-soft, transparent); }
.player-cell.dropping { opacity: 0.7; }
.locked-note.pending { border-color: var(--blue-line); background: var(--blue-soft); color: var(--blue); }
.banner.pending { flex-wrap: nowrap; display: flex; align-items: center; gap: 10px; border: 1px solid var(--blue-line); background: var(--blue-soft); color: var(--text); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.banner.pending svg { color: var(--blue); flex: none; }
.banner.pending .banner-actions { margin-left: auto; }
.cal-team .cal-spots { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 600; color: var(--muted-2); letter-spacing: 0.02em; white-space: nowrap; }
.pending-hold .move-head { padding-left: 0; padding-right: 0; }
.pending-hold .move-players { padding-left: 0; padding-right: 0; }
.move-body .note.info.mt-12 { margin: 12px var(--pad-x, 20px) 16px; }
.pending-hold .note.info.mt-12 { margin-left: 0; margin-right: 0; }
.str-card .pending-hold { margin-bottom: 16px; padding-bottom: 4px; border-bottom: 1px solid var(--border, var(--blue-line)); }

/* Plan, night by night: one tile per move, joined by a timeline. */
.str-plan { gap: 10px; position: relative; }
.str-step { position: relative; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 14px; background: var(--panel); transition: border-color .15s, background .15s; }
.str-step:first-child { border-top: 1px solid var(--line); }
.str-step:hover { border-color: var(--line-2, var(--line)); background: var(--hover); }
.str-step.stash { border-left: 3px solid var(--accent); }
.str-when { flex: none; width: 54px; padding: 6px 0 7px; border-radius: 11px; background: var(--panel-2); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 0; line-height: 1.15; }
.str-when.soon { background: var(--accent-soft); border-color: var(--accent-line, var(--accent)); }
.sw-dow { font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.str-when.soon .sw-dow, .str-when.soon .sw-rel { color: var(--accent); }
.sw-num { font-size: 21px; font-weight: 700; color: var(--text); }
.sw-rel { font-size: 9px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); margin-top: 1px; }
.str-move { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.str-add { font-size: 15px; flex-wrap: wrap; }
.str-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-size: 12.5px; color: var(--muted-2); }
.str-val { color: var(--text); font-weight: 700; margin-right: -4px; }
.str-chip-sm { font-size: 11px; font-weight: 650; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); background: var(--panel-2); }
.str-chip-sm.fill { color: var(--green); background: var(--green-soft); border-color: var(--green-line); }
.str-note { display: flex; align-items: flex-start; gap: 5px; color: var(--muted-2); line-height: 1.4; }
.str-note.warn { color: var(--yellow); }
.str-note svg { flex: none; margin-top: 1px; }
.str-drop { font-size: 12.5px; padding: 2px 9px 2px 7px; border-radius: 99px; background: var(--red-soft, var(--panel-2)); color: var(--muted); }
.str-drop.to-ir { background: var(--accent-soft); }
.str-drop b { color: var(--text); }
.str-net { align-self: center; padding: 6px 10px; border-radius: 11px; background: var(--green-soft); color: var(--green); font-size: 18px; text-align: center; min-width: 58px; }
.str-net small { color: var(--green); opacity: 0.75; }
@media (max-width: 640px) {
  .str-plan { gap: 8px; }
  .str-step { gap: 10px; padding: 11px 10px; align-items: flex-start; }
  .str-when { width: 46px; }
  .sw-num { font-size: 18px; }
  .str-net { font-size: 15px; padding: 5px 7px; min-width: 0; align-self: flex-start; }
  .str-drop { display: inline-flex; margin-top: 0; }
  .str-sub, .str-move .tiny { display: flex; margin-top: 0; }
}

/* ------------------------------------------------------------ player hero */
.ph { --hero-h: 300px; --bar-h: 60px; position: sticky; top: calc(var(--bar-h) - var(--hero-h)); z-index: 5; height: var(--hero-h); flex: none; background: var(--drawer-bg); overflow: hidden; border-bottom: 1px solid var(--line); }
.ph-main { position: absolute; inset: 0; padding: 20px 20px 18px; display: flex; flex-direction: column; opacity: calc(1 - var(--p) * 1.35); transform: translateY(calc(var(--p) * -14px)); pointer-events: none; }
.ph-main > * { pointer-events: auto; }
.ph::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 85% 15%, var(--accent-soft), transparent 60%); pointer-events: none; }
.ph-logo { position: absolute; right: -36px; top: 6px; height: 300px; width: 300px; object-fit: contain; opacity: 0.1; pointer-events: none; user-select: none; filter: saturate(1.1); }
.ph-photo { position: absolute; right: -8px; bottom: 0; height: 248px; width: auto; max-width: 78%; object-fit: contain; object-position: bottom right; pointer-events: none; user-select: none; -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%); mask-image: linear-gradient(to bottom, #000 82%, transparent 100%); filter: drop-shadow(0 10px 18px rgba(8, 12, 22, 0.28)); }
.ph-actions { position: absolute; top: 14px; right: 14px; display: flex; align-items: center; gap: 6px; z-index: 3; }
.ph-actions .icon-btn, .ph-bar-actions .icon-btn { background: color-mix(in srgb, var(--drawer-bg) 78%, transparent); backdrop-filter: blur(6px); }
.ph-info { position: relative; z-index: 2; display: flex; flex-direction: column; height: 100%; max-width: 62%; padding-top: 30px; }
.ph-kicker { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.ph-kicker i { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }
.ph-pos { color: var(--accent); }
.ph-jersey { font-family: var(--num); }
.ph-name { margin: 8px 0 0; display: flex; flex-direction: column; line-height: 1.02; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.ph-first { font-size: 15px; font-weight: 500; color: var(--muted); }
.ph-last { font-size: 29px; font-weight: 800; color: var(--text); }
.ph-facts { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 12px; }
.ph-facts > div { display: flex; flex-direction: column-reverse; gap: 1px; }
.ph-facts dd { margin: 0; font-family: var(--num); font-size: 15px; font-weight: 700; color: var(--text); }
.ph-facts dt { font-size: 9.5px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted-2); }
.ph-line { margin-top: 10px; font-size: 12px; color: var(--muted); }
.ph-owner { margin-top: 6px; font-size: 11.5px; font-weight: 700; color: var(--accent); }
.ph-bar { position: absolute; left: 0; right: 0; bottom: 0; height: var(--bar-h); display: flex; align-items: center; gap: 12px; padding: 0 14px 0 16px; opacity: var(--p); pointer-events: none; }
.ph-bar::before { content: ''; position: absolute; inset: 0; background: var(--drawer-bg); z-index: -1; }
.ph.compact .ph-bar { pointer-events: auto; }
.ph-mini { flex: none; width: 52px; height: 42px; display: grid; place-items: end center; overflow: hidden; }
.ph-mini img { max-width: 100%; max-height: 100%; object-fit: contain; object-position: bottom; }
.ph-bar-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.ph-bar-text b { font-size: 15px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-bar-text small { font-size: 11.5px; color: var(--muted-2); }
.ph-bar-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
@media (max-width: 520px) {
  .ph { --hero-h: 280px; }
  .ph-main { padding: 16px 16px 16px; }
  .ph-photo { height: 216px; right: -14px; }
  .ph-logo { height: 250px; width: 250px; right: -50px; }
  .ph-last { font-size: 25px; }
  .ph-info { max-width: 64%; }
}
@media (prefers-reduced-motion: reduce) { .ph-main, .ph-bar { transition: none; } }

/* ---------------------------------------------------------- weekly awards */
.award-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.award { --aw: var(--accent); --aw-soft: var(--accent-soft); position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px 14px 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; }
.award::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--aw); }
.award.gold { --aw: var(--yellow); --aw-soft: var(--yellow-soft); }
.award.green { --aw: var(--green); --aw-soft: var(--green-soft); }
.award.red { --aw: var(--red); --aw-soft: var(--red-soft); }
.award.blue { --aw: var(--blue); --aw-soft: var(--blue-soft); }
.award.purple { --aw: var(--purple, var(--accent)); --aw-soft: var(--purple-soft, var(--accent-soft)); }
.award.mine { border-color: var(--aw); box-shadow: 0 0 0 1px var(--aw) inset; }
.aw-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.aw-icon { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--aw-soft); color: var(--aw); }
.aw-title { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); line-height: 1.25; }
.aw-big { margin-top: 6px; font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -0.01em; color: var(--text); }
.aw-name { font-size: 14px; font-weight: 650; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-who { cursor: pointer; border-radius: 4px; }
.aw-who:hover { text-decoration: underline; }
.aw-who:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.award .muted-2 { color: var(--muted-2); font-weight: 500; }
.aw-note { font-size: 12px; line-height: 1.4; color: var(--muted); }
@media (max-width: 640px) {
  .award-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .award { padding: 12px 11px 11px; border-radius: 12px; }
  .aw-icon { width: 22px; height: 22px; border-radius: 7px; }
  .aw-icon svg { width: 13px; height: 13px; }
  .aw-title { font-size: 9.5px; letter-spacing: 0.06em; }
  .aw-big { font-size: 25px; margin-top: 4px; }
  .aw-name { font-size: 13px; }
  .aw-note { font-size: 11.5px; }
}
@media (max-width: 360px) { .award-grid { grid-template-columns: 1fr; } }
/* Card headers with a picker (Weekly awards, Top 20) wrap instead of overflowing. */
@media (max-width: 640px) {
  .card-head.bordered { flex-wrap: wrap; row-gap: 8px; }
  .card-head.bordered > .card-actions { flex-wrap: wrap; margin-left: auto; }
  .card-actions .select { max-width: 100%; }
}

/* ------------------------------------------------ team themes, site-wide */
::selection { background: var(--selection, var(--accent-soft)); }
html { accent-color: var(--accent); }
[data-palette]:not([data-palette="default"]) .table thead th { background: var(--th-bg, transparent); }
[data-palette]:not([data-palette="default"]) .card.tight { border-color: var(--card-line, var(--line)); }
[data-palette]:not([data-palette="default"]) .nav-item.active .nav-badge { background: var(--on-accent); color: var(--accent); }

.cal-pill i small.cal-time { font-style: normal; font-weight: 600; font-size: 9.5px; opacity: 0.65; margin-left: 2px; letter-spacing: 0.01em; }

/* Players page: the search box leads, on its own full-width row. */
.fa-search { flex: 1 1 100%; min-width: 0; }
.fa-search .input { width: 100%; }

/* Streamer plan card: calendar, then a divided plan section with room to breathe. */
.str-card .cal-wrap-strip { margin: 2px 0 6px; }
.str-card .cal-key { padding: 10px 2px 0; }
.str-card .str-section-title { margin-top: 18px; padding-top: 20px; border-top: 1px solid var(--line); }
.str-card .str-section-title .card-sub { margin-left: auto; font-weight: 500; }

/* Player card: compact FPTS log + game detail */
.fpts-log { display: flex; flex-wrap: wrap; gap: 6px; }
.fpts-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; font: inherit; font-size: 12px; color: inherit; }
.fpts-pill .fp-date { font-weight: 600; opacity: 0.8; }
.fpts-pill .fp-opp { opacity: 0.65; font-size: 11px; }
.fpts-pill.tone-none { background: var(--surface-2, rgba(128,128,128,.12)); }
.fpts-pill:hover { filter: brightness(1.08); transform: translateY(-1px); }
.box-table td, .box-table th { white-space: nowrap; }
.box-table tr.me td { background: var(--accent-soft); font-weight: 600; }
.box-table .bx-name { cursor: pointer; }
.box-table .bx-name:hover { text-decoration: underline; }

/* ---------------------------------------------------- live game (player card) */
.live-slot:empty { display: none; }
.live-card { border: 1px solid var(--green-line); background: linear-gradient(180deg, var(--green-soft), transparent 90%), var(--panel); border-radius: 14px; padding: 12px 14px 13px; display: flex; flex-direction: column; gap: 10px; }
.live-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 8px; border-radius: 99px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.09em; color: var(--green); background: var(--green-soft); border: 1px solid var(--green-line); }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: live-pulse 1.4s ease-in-out infinite; }
@keyframes live-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.8); } }
.live-score { display: inline-flex; align-items: baseline; gap: 8px; font-family: var(--num); font-size: 19px; }
.live-score b { color: var(--text); }
.live-score em { font-style: normal; color: var(--muted-2); font-weight: 600; }
.live-clock { font-size: 12px; color: var(--muted); }
.live-court { margin-left: auto; font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }
.live-court.on { color: var(--green); }
.live-tiles { grid-template-columns: repeat(auto-fit, minmax(56px, 1fr)); }
.live-shoot { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 11.5px; color: var(--muted-2); }
.live-shoot b { color: var(--text); font-family: var(--num); font-size: 14px; margin-right: 2px; }
.live-wait { font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .live-pill i { animation: none; } }

/* Players page: "Plays on" day toggles */
.plays-on { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.plays-on-label { font-size: 11px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted-2); }
.plays-on-days { display: flex; flex-wrap: wrap; gap: 6px; }
.day-toggle { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; min-width: 52px; padding: 5px 8px 6px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel-2); color: var(--muted); cursor: pointer; font: inherit; line-height: 1.15; transition: background .12s, border-color .12s, color .12s; }
.day-toggle span { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.day-toggle b { font-family: var(--num); font-size: 17px; font-weight: 700; color: var(--text); }
.day-toggle:hover:not(:disabled) { border-color: var(--line-2); }
.day-toggle.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-2); }
.day-toggle.active b { color: var(--accent-2); }
.day-toggle:disabled { opacity: 0.4; cursor: not-allowed; }
.day-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 520px) { .day-toggle { min-width: 0; flex: 1 1 0; padding: 5px 2px 6px; } .plays-on-days { flex: 1 1 100%; flex-wrap: nowrap; } }

/* ------------------------------------------------------------ Assistant */
.assistant-section-title { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.assistant-section-title svg { color: var(--accent); }
.brief-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.brief-item { --bi: var(--blue); --bi-soft: var(--blue-soft); display: flex; gap: 12px; align-items: flex-start; padding: 11px 13px; border: 1px solid var(--line); border-left: 3px solid var(--bi); border-radius: 12px; background: var(--panel-2); }
.brief-item.good { --bi: var(--green); --bi-soft: var(--green-soft); }
.brief-item.warn { --bi: var(--yellow); --bi-soft: var(--yellow-soft); }
.brief-item.info { --bi: var(--blue); --bi-soft: var(--blue-soft); }
.brief-icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--bi-soft); color: var(--bi); }
.brief-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.brief-text b { color: var(--text); font-weight: 700; font-size: 14.5px; }

/* My team: shortcut to the Assistant */
.assistant-link { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; border-color: var(--accent-line); background: linear-gradient(90deg, var(--accent-soft), transparent 75%), var(--panel); transition: border-color .15s, transform .15s; }
.assistant-link:hover { border-color: var(--accent); transform: translateY(-1px); }
.assistant-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.assistant-link-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--on-accent); }
.assistant-link-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.assistant-link-text b { color: var(--text); font-size: 15px; }
.assistant-link-text span b { font-size: inherit; }
@media (max-width: 560px) {
  .assistant-link { flex-wrap: wrap; }
  .assistant-link > .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------------------------------------- compact assistant card (dashboard) */
.assistant-card { border-color: var(--accent-line); background: linear-gradient(90deg, var(--accent-soft), transparent 70%), var(--panel); }
.assistant-card .move-tag { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-2); }
.assistant-card .move-tag-icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--accent); color: var(--on-accent); }
.move-compact .move-head { font-size: 18px; padding-bottom: 8px; }
.move-compact .move-foot { flex-wrap: wrap; row-gap: 8px; }
.move-compact .move-foot [data-action="hero-toggle"] svg { transition: transform .2s var(--ease); }
.move-compact.open .move-foot [data-action="hero-toggle"] svg { transform: rotate(180deg); }
.move-details { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 6px; animation: move-open .22s var(--ease); }
@keyframes move-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .move-details { animation: none; } }
@media (max-width: 560px) { .move-compact .move-head { font-size: 16.5px; } .move-compact .move-foot .btn.primary { flex: 1 1 100%; } }
/* Compare players */
.compare-tray { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 120; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; max-width: min(760px, calc(100vw - 24px)); padding: 8px 12px; background: var(--drawer-bg); border: 1px solid var(--accent-line, var(--line)); border-radius: 14px; box-shadow: var(--shadow); }
.ct-title { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12.5px; }
.ct-title svg { width: 14px; height: 14px; color: var(--accent); }
.ct-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--accent-soft); font-size: 12px; font-weight: 600; }
.ct-chip button { display: grid; place-items: center; width: 18px; height: 18px; border: 0; background: transparent; color: inherit; cursor: pointer; border-radius: 50%; padding: 0; }
.ct-chip button svg { width: 11px; height: 11px; }
.ct-clear { border: 0; background: transparent; color: var(--muted-2); cursor: pointer; font-size: 12px; }
.ct-go[disabled] { opacity: 0.5; cursor: default; }
.compare-btn.on { color: var(--accent); background: var(--accent-soft); }
.modal-panel.cmp-panel { width: min(1040px, 100%); }
.cmp-body { padding: 14px 18px 18px; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.cmp-table th, .cmp-table td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.cmp-table tbody th { text-align: left; font-weight: 500; color: var(--muted-2); }
.cmp-table td { font-family: var(--num); }
.cmp-table td.cmp-best { color: var(--green); font-weight: 700; background: var(--green-soft); }
.cmp-table .cmp-sep th { padding-top: 14px; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-2); border-bottom: 0; }
.cmp-head { position: relative; text-align: left !important; vertical-align: top; min-width: 150px; white-space: normal !important; padding-right: 26px !important; }
.cmp-name { font-weight: 700; font-size: 14px; cursor: pointer; }
.cmp-sub { font-size: 11.5px; color: var(--muted-2); font-weight: 500; }
.cmp-x { position: absolute; top: 6px; right: 4px; border: 0; background: transparent; color: var(--muted-2); cursor: pointer; width: 20px; height: 20px; padding: 0; }
.cmp-x svg { width: 12px; height: 12px; }
.cmp-verdict { display: inline-block; margin-top: 6px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; border: 1px solid var(--line); }
.cmp-verdict.v-add { color: var(--green); background: var(--green-soft); border-color: var(--green-line); }
.cmp-verdict.v-pass { color: var(--red); background: var(--red-soft); border-color: var(--red-line); }
.cmp-verdict.v-stash, .cmp-verdict.v-meh { color: var(--muted); }
.cmp-notes p { margin: 0 0 8px; line-height: 1.5; font-size: 13px; }

/* ------------------------------------------------------- weekly wrap-up */
.wu-teaser { display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-decoration: none; color: inherit; border-left: 4px solid var(--accent); cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.wu-teaser:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.wu-teaser-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.wu-teaser-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.wu-teaser-text small { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.wu-teaser-text b { font-size: 16px; line-height: 1.25; }
.wu-teaser-text span { font-size: 13px; color: var(--muted); }
.wu-teaser-go { flex: none; display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; }
@media (max-width: 640px) { .wu-teaser-go { display: none; } .wu-teaser-text b { font-size: 15px; } }

.wrapup .page-title { font-family: Georgia, "Times New Roman", serif; font-size: 32px; line-height: 1.1; letter-spacing: -0.01em; }
.wrapup .page-sub { font-size: 15px; font-style: italic; }
.wu-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: -6px; font-size: 12px; color: var(--muted); }
.wu-dot { opacity: .5; }
.wu-note { display: inline-flex; color: var(--muted-2); cursor: help; }
.wu-writing { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; color: var(--accent); }
.wu-writing div { display: flex; flex-direction: column; gap: 2px; color: var(--text); }
.wu-writing span { font-size: 13px; color: var(--muted); }

.wu-paper .card-body { padding: 22px clamp(16px, 4vw, 40px) 28px; }
.wu-paper p { font-size: 15.5px; line-height: 1.65; margin: 0 0 12px; max-width: 72ch; }
.wu-lede p:first-child::first-letter { float: left; font-family: Georgia, serif; font-size: 3.4em; line-height: .85; font-weight: 700; margin: 4px 8px 0 0; color: var(--accent); }
.wu-lede { margin: 18px 0 6px; }
.wu-block { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.wu-h { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-family: Georgia, serif; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.wu-h svg { color: var(--accent); flex: none; }

.wu-fig { margin: 0; overflow: hidden; border-radius: 12px; background: var(--panel-3); }
.wu-fig img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wu-fig figcaption { padding: 7px 10px; font-size: 12px; line-height: 1.35; color: var(--muted); background: var(--panel-2); }
.wu-fig figcaption a { color: inherit; text-decoration: none; }
.wu-fig figcaption a:hover { color: var(--text); text-decoration: underline; }
.wu-hero-photos { display: grid; gap: 10px; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; height: clamp(220px, 34vw, 380px); }
.wu-hero-photos.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.wu-hero-photos.n2 { grid-template-rows: 1fr; }
.wu-hero-photos .lead { grid-row: 1 / -1; }
.wu-hero-photos .wu-fig { position: relative; }
.wu-hero-photos figcaption { position: absolute; left: 0; right: 0; bottom: 0; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); padding: 26px 12px 9px; }
.wu-hero-photos figcaption a:hover { color: #fff; }
@media (max-width: 640px) { .wu-hero-photos { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 220px; } .wu-hero-photos .wu-fig:not(.lead) { display: none; } }

.wu-story-body::after { content: ""; display: block; clear: both; }
.wu-story-body .wu-fig { float: right; width: min(42%, 320px); margin: 4px 0 12px 20px; }
.wu-story.flip .wu-story-body .wu-fig { float: left; margin: 4px 20px 12px 0; }
.wu-story-body .wu-fig.photo img { aspect-ratio: 4 / 3; }
.wu-story-body .wu-fig.headshot { width: 150px; }
.wu-story-body .wu-fig.headshot img { aspect-ratio: 1; object-fit: cover; object-position: top; }
@media (max-width: 640px) {
  .wu-story-body .wu-fig, .wu-story.flip .wu-story-body .wu-fig { float: none; width: 100%; margin: 0 0 12px; }
  .wu-story-body .wu-fig.headshot, .wu-story.flip .wu-story-body .wu-fig.headshot { float: right; width: 96px; margin: 4px 0 8px 12px; }
  .wu-story-body .wu-fig.headshot figcaption { display: none; }
  .wu-team { min-width: 0; flex: 1 1 100%; }
  .wu-move-kind { margin-left: auto; }
}

.wu-scores { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.wu-score { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.wu-score.live { border-style: dashed; }
.wu-side { display: flex; align-items: center; gap: 9px; cursor: pointer; opacity: .72; }
.wu-side.won { opacity: 1; }
.wu-side-name { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.wu-side-name b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wu-side-name small { font-size: 11.5px; color: var(--muted); }
.wu-side-score { font-size: 20px; font-weight: 800; }
.wu-side.won .wu-side-score { color: var(--accent); }
.wu-tug { height: 6px; border-radius: 99px; background: var(--panel-3); overflow: hidden; margin: 2px 0; }
.wu-tug span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-grad-1, var(--accent)), var(--accent-grad-2, var(--accent))); }
.wu-paper .wu-blurb { margin: 2px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }

.wu-bars, .wu-flops { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; max-width: 640px; }
.wu-bar-row, .wu-flop { display: grid; grid-template-columns: 26px minmax(110px, 190px) 1fr auto; align-items: center; gap: 10px; cursor: pointer; }
.wu-flop { grid-template-columns: 26px minmax(110px, 220px) 1fr; }
.wu-bar-label { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.wu-bar-label b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wu-bar-label small { font-size: 11px; color: var(--muted); }
.wu-bar { height: 12px; border-radius: 99px; background: var(--panel-3); overflow: hidden; }
.wu-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--yellow), var(--accent)); }
@media (max-width: 640px) { .wu-bar-row { grid-template-columns: 26px minmax(0, 1.1fr) minmax(60px, 1fr) auto; } .wu-flop { grid-template-columns: 26px minmax(0, 1.2fr) minmax(60px, 1fr); } }
.wu-bar-val { font-weight: 800; font-size: 14px; min-width: 34px; text-align: right; }
.wu-meter { position: relative; height: 12px; border-radius: 99px; background: var(--panel-3); }
.wu-meter span { display: block; height: 100%; border-radius: 99px; background: var(--red); opacity: .8; }
.wu-meter i { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -2px; background: var(--text); opacity: .5; }

.wu-moves { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.wu-move { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 8px 10px; border-radius: 12px; background: var(--panel-2); }
.wu-team { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 13px; cursor: pointer; min-width: 150px; }
.wu-move-items { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.wu-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; font-size: 12.5px; font-weight: 600; cursor: pointer; border: 1px solid transparent; }
.wu-chip.add { color: var(--green); background: var(--green-soft); border-color: var(--green-line, transparent); }
.wu-chip.drop { color: var(--red); background: var(--red-soft); border-color: var(--red-line, transparent); }
.wu-chip small { opacity: .75; font-weight: 700; }
.wu-move-kind { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); }

.wu-infirmary { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 10px; }
.wu-patient { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.wu-patient.big { border-color: var(--red-line, var(--red)); background: var(--red-soft); }
.wu-patient-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wu-patient-body b { font-size: 14px; }
.wu-patient-status { font-size: 12.5px; }
.wu-patient-body small { font-size: 11.5px; color: var(--muted); }
.wu-patient-body .wu-impact { color: var(--red); font-weight: 650; }

.wu-ranks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wu-rank { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.wu-rank:nth-child(odd) { background: var(--panel-2); }
.wu-rank.mine { box-shadow: inset 3px 0 0 var(--accent); }
.wu-rank-n { width: 22px; font-size: 18px; font-weight: 800; color: var(--muted-2); text-align: center; flex: none; }
.wu-rank-main { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.wu-rank-main b { font-size: 14px; }
.wu-rank-main small { font-size: 12px; color: var(--muted); }
.wu-rank-main i { color: var(--text); }
.wu-odds { display: flex; align-items: center; gap: 6px; width: 120px; flex: none; }
.wu-odds .bar { flex: 1; }
@media (max-width: 640px) { .wu-odds { width: 70px; } .wu-odds .num { display: none; } }

.wu-signoff { margin-top: 28px; padding-top: 18px; border-top: 3px double var(--line); }
.wu-signoff p { font-family: Georgia, serif; font-style: italic; font-size: 16px; }

.wu-trade { position: relative; display: grid; grid-template-columns: 1fr 180px 1fr; align-items: center; gap: 14px; margin-top: 14px; padding: 18px 16px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel-2); overflow: hidden; }
.wu-trade-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.wu-trade-team { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.wu-trade-team span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.wu-trade-team b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wu-trade-team small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.wu-trade-players { display: flex; flex-wrap: wrap; gap: 12px; }
.wu-trade-player { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 84px; text-align: center; font-size: 12.5px; font-weight: 650; line-height: 1.2; cursor: pointer; }
.wu-trade-player .avatar.xl { width: 64px; height: 64px; }
.wu-trade-swap + .wu-trade-side { align-items: flex-end; text-align: right; }
.wu-trade-swap + .wu-trade-side .wu-trade-team { flex-direction: row-reverse; }
.wu-trade-swap + .wu-trade-side .wu-trade-players { justify-content: flex-end; }
.wu-trade-swap { justify-self: center; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); color: var(--accent); }
.wu-trade-note { grid-column: 1 / -1; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); }
.wu-trade.vetoed .wu-trade-side { opacity: .55; filter: grayscale(.6); }
.wu-stamp { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%) rotate(-14deg); padding: 4px 14px; border: 4px solid var(--red); border-radius: 10px; color: var(--red); font-size: 24px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; background: color-mix(in srgb, var(--panel) 70%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--red) 25%, transparent) inset; pointer-events: none; }
@media (max-width: 640px) {
  .wu-trade { grid-template-columns: 1fr; justify-items: stretch; }
  .wu-trade-swap { transform: rotate(90deg); }
  .wu-trade.vetoed .wu-trade-swap { display: none; }
  .wu-trade-swap + .wu-trade-side { order: 2; }
  .wu-trade-note { order: 3; }
  .wu-stamp { order: 1; position: static; justify-self: center; transform: rotate(-6deg); font-size: 22px; margin: 2px 0; }
}

/* ------------------------------------------------------------------ News */
.nw { --serif: Georgia, "Iowan Old Style", "Times New Roman", serif; max-width: 1180px; margin: 0 auto; }
.nw-mast { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 3px double var(--line-2); }
.nw-brand { font-family: var(--serif); font-size: 34px; font-weight: 800; letter-spacing: -0.01em; text-transform: uppercase; }
.nw-brand b { color: var(--accent); font-weight: 800; }
.nw-date { color: var(--muted-2); font-size: 13px; font-weight: 600; }
.nw-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-top: -4px; }
.nw-tabs button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; padding: 10px 12px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.nw-tabs button:hover { color: var(--text); }
.nw-tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }
.nw-front { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.nw-main { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.nw a { color: inherit; text-decoration: none; }
.nw-kicker { font-size: 11px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); }
.nw-meta { font-size: 12px; color: var(--muted-2); }
.nw-thumb { display: block; position: relative; overflow: hidden; background: var(--panel-3); border-radius: var(--radius-sm); }
.nw-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.nw-thumb.contain img { object-fit: contain; object-position: center bottom; padding-top: 8px; }
.nw-ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted-2); opacity: .55; }
.nw-thumb img { position: relative; z-index: 1; }
.nw-lead { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.nw-lead .nw-thumb.lead { aspect-ratio: 4 / 5; max-height: 520px; width: 100%; }
.nw-lead-body { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.nw-lead-title { font-family: var(--serif); font-size: 32px; line-height: 1.12; font-weight: 800; letter-spacing: -0.01em; }
.nw-lead:hover .nw-lead-title, .nw-card:hover .nw-card-title, .nw-row:hover b, .nw-rail a:hover b { color: var(--accent); }
.nw-lead-dek { font-size: 16px; line-height: 1.5; color: var(--muted); }
.nw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.nw-card { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.nw-card .nw-thumb { aspect-ratio: 16 / 10; }
.nw-card-body { display: flex; flex-direction: column; gap: 6px; }
.nw-card-title { font-family: var(--serif); font-size: 21px; line-height: 1.2; font-weight: 700; }
.nw-card-dek { font-size: 14px; line-height: 1.45; color: var(--muted); }
.nw-more h3, .nw-rail-card h3, .nw-related h3 { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted-2); }
.nw-row { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.nw-row .nw-thumb.small { width: 96px; height: 72px; flex: none; }
.nw-row-body { display: flex; flex-direction: column; gap: 4px; }
.nw-row-body b { font-family: var(--serif); font-size: 17px; line-height: 1.25; }
.nw-rail { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 76px; }
.nw-rail-card { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); padding: 16px; }
.nw-rail ol { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.nw-rail ol li { counter-increment: n; padding: 12px 0 12px 30px; position: relative; border-top: 1px solid var(--line); }
.nw-rail ol li:first-child { border-top: 0; padding-top: 0; }
.nw-rail ol li::before { content: counter(n); position: absolute; left: 0; top: 12px; font-family: var(--serif); font-size: 20px; font-weight: 800; color: var(--accent); }
.nw-rail ol li:first-child::before { top: 0; }
.nw-rail ol li a { display: flex; flex-direction: column; gap: 3px; }
.nw-rail ol li b { font-family: var(--serif); font-size: 15px; line-height: 1.3; }
.nw-rail-time, .nw-rail-sec { font-size: 11px; color: var(--muted-2); }
.nw-rail-sec { text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.nw-sections { list-style: none; margin: 0; padding: 0; }
.nw-sections li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.nw-sections li:first-child { border-top: 0; }
.nw-sections button { border: 0; background: none; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.nw-sections button:hover { color: var(--accent); }
.nw-sections span { color: var(--muted-2); font-family: var(--num); font-size: 15px; }
/* Articles */
.nw-back { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); width: fit-content; }
.nw-back:hover { color: var(--accent); }
.nw-article { max-width: 760px; margin: 0 auto; width: 100%; }
.nw-h1 { font-family: var(--serif); font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -0.015em; margin: 10px 0 12px; }
.nw-dek { font-family: var(--serif); font-size: 20px; line-height: 1.4; color: var(--muted); margin: 0 0 16px; }
.nw-byline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted-2); margin-bottom: 20px; }
.nw-byline b { color: var(--text); }
.nw-hero { margin: 0 0 24px; }
.nw-hero img { display: block; width: 100%; max-height: 640px; object-fit: contain; background: var(--panel-3); border-radius: var(--radius-sm); }
.nw-hero.contain img { max-height: 360px; object-position: center bottom; padding-top: 12px; }
.nw-hero figcaption, .nw-fig figcaption { font-size: 12.5px; line-height: 1.45; color: var(--muted-2); margin-top: 8px; }
.nw-fig { margin: 28px auto; max-width: 420px; }
.nw-fig img { display: block; width: 100%; border-radius: var(--radius-sm); }
.nw-body { font-family: var(--serif); font-size: 18px; line-height: 1.7; }
.nw-body p { margin: 0 0 18px; }
.nw-body h2 { font-family: var(--font); font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin: 34px 0 12px; }
.nw-body blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); }
.nw-body blockquote p { font-size: 22px; line-height: 1.4; font-style: italic; margin: 0 0 8px; }
.nw-body cite { font-family: var(--font); font-size: 13px; font-style: normal; color: var(--muted-2); }
p.nw-note { font-family: var(--font); font-size: 12.5px; letter-spacing: 0.02em; color: var(--muted-2); border-top: 1px solid var(--line); padding-top: 12px; }
.nw-body > p.nw-note:first-child { border-top: 0; padding: 0 0 10px; text-transform: uppercase; font-weight: 800; letter-spacing: 0.08em; }
.nw-list { padding-left: 24px; margin: 0 0 18px; }
.nw-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0; font-family: var(--font); }
.nw-stats div { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; background: var(--panel); text-align: center; }
.nw-stats b { display: block; font-family: var(--num); font-size: 30px; line-height: 1.05; color: var(--accent); }
.nw-stats span { font-size: 12px; color: var(--muted-2); }
.nw-table { font-family: var(--font); font-size: 14px; }
.nw-players { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; font-family: var(--font); }
.nw-player { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); cursor: pointer; }
.nw-player:hover { border-color: var(--accent-line); }
.nw-player img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: center top; background: var(--panel-3); flex: none; }
.nw-player b { font-size: 15px; }
.nw-player small { color: var(--muted-2); font-weight: 700; margin: 0 6px; }
.nw-player p { font-size: 13px; line-height: 1.4; color: var(--muted); margin: 6px 0 4px; }
.nw-player em { font-size: 12px; font-style: normal; font-weight: 700; color: var(--muted-2); }
.nw-usage { display: flex; flex-direction: column; gap: 14px; margin: 16px 0; font-family: var(--font); }
.nw-usage-item { border-left: 4px solid var(--accent); padding: 4px 0 4px 16px; }
.nw-usage-head { display: flex; flex-direction: column; gap: 2px; }
.nw-usage-head b { font-size: 17px; }
.nw-usage-head span { font-size: 12.5px; color: var(--muted-2); }
.nw-usage-item p { font-family: var(--serif); font-size: 16px; line-height: 1.55; margin: 8px 0; }
.nw-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.nw-related { max-width: 760px; margin: 28px auto 0; width: 100%; }
@media (max-width: 900px) {
  .nw-front { grid-template-columns: 1fr; }
  .nw-rail { position: static; }
  .nw-lead { grid-template-columns: 1fr; }
  .nw-lead .nw-thumb.lead { aspect-ratio: 4 / 3; max-height: 420px; }
  .nw-lead-title { font-size: 27px; }
  .nw-h1 { font-size: 30px; }
  .nw-grid, .nw-players { grid-template-columns: 1fr; }
  .nw-stats { grid-template-columns: repeat(2, 1fr); }
  .nw-brand { font-size: 27px; }
}

/* ================================================= team themes 2.0 ===== */
/* The sidebar wears the jersey: a deep team color with the secondary color
   as the active pill. Everything inside re-reads the usual tokens, so they
   are re-pointed locally instead of restyling each element. */
[data-palette]:not([data-palette="default"]) .sidebar {
  --text: var(--side-text);
  --muted: var(--side-muted);
  --muted-2: var(--side-muted-2);
  --line: var(--side-line);
  --hover: var(--side-hover);
  --panel: var(--side-solid);
  --panel-2: var(--side-card);
  --accent: var(--side-accent);
  --accent-2: var(--side-accent);
  --accent-soft: var(--side-card);
  --accent-line: transparent;
  --link: var(--side-text);
  --nav-active-bg: var(--side-active-bg);
  --nav-active-text: var(--side-active-text);
  background: var(--side-bg);
  color: var(--side-text);
  border-right: 0;
  box-shadow: inset -1px 0 0 var(--side-line);
}
[data-palette]:not([data-palette="default"]) .sidebar::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--team-stripe);
}
[data-palette]:not([data-palette="default"]) .sidebar .nav-item.active {
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.55);
  font-weight: 700;
}
[data-palette]:not([data-palette="default"]) .sidebar .nav-item.active .nav-badge { background: var(--side-active-text); color: var(--side-active-bg); }
[data-palette]:not([data-palette="default"]) .sidebar .mini-team { border-color: var(--side-line); }
[data-palette]:not([data-palette="default"]) .sidebar .brand-mark { color: var(--side-active-bg); }
/* Card titles get a soft accent chip. Top bar: the uniform stripe along its bottom edge. */
[data-palette]:not([data-palette="default"]) .topbar {
  background: var(--team-stripe) left bottom / 100% 3px no-repeat, var(--topbar-bg);
  border-bottom-color: transparent;
}
[data-palette]:not([data-palette="default"]) .card-head.bordered .card-title-icon {
  background: var(--accent-soft); color: var(--accent-2); width: 28px; height: 28px; border-radius: 9px;
}

/* ================================================= theme picker ======== */
.themes-card .card-body { display: flex; flex-direction: column; gap: 18px; }
.th-hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: center;
  padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--panel-2);
}
.th-hero-info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.th-eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); }
.th-hero-name { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.15; }
.th-hero-sub { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12.5px; }
.th-hero-note { color: var(--muted-2); font-size: 12px; line-height: 1.45; }
.th-mode { align-self: flex-start; }
.th-reset { align-self: flex-start; }
.th-dots { display: inline-flex; }
.th-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--panel); margin-left: -4px; box-shadow: 0 0 0 1px var(--line); }
.th-dots i:first-child { margin-left: 0; }

.th-badge {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  font-family: var(--num); font-weight: 800; font-size: 11px; letter-spacing: 0.04em; line-height: 1;
}
.th-badge.lg { width: 44px; height: 44px; font-size: 15px; }
.th-badge-ss { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent-line); }

.th-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.th-search { position: relative; flex: 1 1 200px; min-width: 0; }
.th-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted-2); pointer-events: none; }
.th-search .input { width: 100%; padding-left: 34px; }
.th-filter { flex: none; }

.th-section { display: flex; flex-direction: column; gap: 10px; }
.th-section-title { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.th-section-title span { font-family: var(--num); font-size: 12px; letter-spacing: 0; padding: 0 7px; border-radius: 999px; background: var(--panel-3); color: var(--muted-2); }
.th-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
.th-empty { text-align: center; color: var(--muted); padding: 22px 0; font-size: 13.5px; }

.th-tile {
  position: relative; display: flex; flex-direction: column; gap: 0; padding: 0; text-align: left;
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text);
  overflow: hidden; cursor: pointer; font: inherit;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), border-color 0.15s ease;
}
.th-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.th-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.th-tile.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.th-tile-foot { display: flex; align-items: center; gap: 9px; padding: 9px 10px 10px; min-width: 0; }
.th-tile-name { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.th-tile-name b { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-tile-name small { font-size: 10.5px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.th-check {
  flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); opacity: 0; transform: scale(0.6); transition: opacity 0.15s, transform 0.15s var(--ease);
}
.th-tile.selected .th-check { opacity: 1; transform: scale(1); }

/* The miniature app. Sizes are relative so one markup serves tile and hero. */
.th-mock {
  display: flex; width: 100%; aspect-ratio: 16 / 9.5; background: var(--m-bg); overflow: hidden; pointer-events: none;
  border-bottom: 1px solid var(--line);
}
.th-mock-lg { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 16 / 10; }
.th-mock i { display: block; font-style: normal; }
.m-side { position: relative; width: 24%; flex: none; background: var(--m-side); display: flex; flex-direction: column; gap: 5%; padding: 9% 4% 0; }
.m-side::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4%; background: var(--m-stripe); }
.m-logo { height: 7%; width: 70%; border-radius: 3px; background: var(--m-side-text); opacity: 0.85; margin-bottom: 4%; }
.m-nav { height: 7%; width: 88%; border-radius: 3px; background: var(--m-side-muted); opacity: 0.45; }
.m-nav.short { width: 62%; }
.m-nav.on { width: 100%; height: 10%; background: var(--m-side-active); opacity: 1; border-radius: 4px; }
.m-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.m-top { height: 15%; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 6%;
  background: var(--m-stripe) left bottom / 100% 9% no-repeat, var(--m-top); }
.m-top-title { width: 38%; height: 26%; border-radius: 3px; background: var(--m-text); opacity: 0.8; }
.m-top-btn { width: 16%; height: 36%; border-radius: 4px; border: 1px solid var(--m-line); }
.m-body { flex: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 6%; padding: 7% 6%; min-height: 0; }
.m-card { background: var(--m-panel); border: 1px solid var(--m-line); border-radius: 5px; display: flex; flex-direction: column; gap: 9%; padding: 9% 8%; min-width: 0; }
.m-title { height: 9%; width: 62%; border-radius: 2px; background: var(--m-text); opacity: 0.85; }
.m-line { height: 7%; width: 90%; border-radius: 2px; background: var(--m-muted); opacity: 0.5; }
.m-line.short { width: 60%; }
.m-bars { flex: 1; display: flex; align-items: flex-end; gap: 7%; min-height: 0; }
.m-bars i { flex: 1; border-radius: 2px 2px 0 0; background: var(--m-accent); opacity: 0.85; }
.m-bars i:nth-child(2n) { opacity: 0.45; }
.m-btn { height: 14%; width: 55%; border-radius: 4px; background: var(--m-accent); flex: none; }
.m-chip { margin-top: auto; height: 14%; width: 46%; border-radius: 999px; background: var(--m-accent); opacity: 0.22; flex: none; }
.th-mock-sm .m-logo, .th-mock-sm .m-title, .th-mock-sm .m-top-title { border-radius: 2px; }

@media (max-width: 720px) {
  .th-hero { grid-template-columns: 1fr; }
  .th-filter { width: 100%; }
  .th-filter > button { flex: 1; }
  .th-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .th-tile-foot { gap: 7px; padding: 8px 8px 9px; }
  .th-tile-foot .th-badge { width: 26px; height: 26px; font-size: 9.5px; }
  .th-tile-name b { font-size: 12px; }
  .th-tile-name small { font-size: 10px; }
  .th-check { width: 18px; height: 18px; }
}

/* ================================================= trade analyzer ====== */
.trade-view .page-head { align-items: flex-end; }
.tr-modes > button { display: inline-flex; align-items: center; gap: 6px; }
.tr-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 6px 2px -4px; }
.tr-section-head h3 { font-size: 17px; font-weight: 750; letter-spacing: -0.01em; }

.tr-hero { padding: 18px 20px; display: flex; flex-direction: column; gap: 16px;
  background: linear-gradient(120deg, var(--accent-soft), transparent 60%), var(--panel); }
.tr-hero-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.tr-hero-text { min-width: 0; flex: 1; }
.tr-eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent-2); }
.tr-hero-name { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 2px 0; }
.tr-hero-sub { color: var(--muted); font-size: 13px; }
.tr-change { flex: none; align-self: flex-start; }
.tr-hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tr-hero-stats > div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.tr-hero-stats b { font-family: var(--num); font-size: 24px; font-weight: 700; line-height: 1.1; }
.tr-hero-stats small { color: var(--muted-2); font-size: 11px; }

.tr-offers { display: grid; gap: 14px; }
.tr-offer { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-soft); padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; border-left: 4px solid var(--line-2); }
.tr-offer.tone-good { border-left-color: var(--green); }
.tr-offer.tone-warn { border-left-color: var(--yellow); }
.tr-offer.tone-bad { border-left-color: var(--red); }
.tr-offer-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tr-offer-title { font-weight: 800; font-size: 15px; margin-right: auto; }
.tr-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; border: 1px solid var(--line); color: var(--muted); background: var(--panel-2); }
.tr-pill.good { color: var(--green); background: var(--green-soft); border-color: var(--green-line); }
.tr-pill.warn { color: var(--yellow); background: var(--yellow-soft); border-color: var(--yellow-line); }
.tr-pill.bad { color: var(--red); background: var(--red-soft); border-color: var(--red-line); }
.tr-pill.soft { background: transparent; }

.tr-swap { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: stretch; }
.tr-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.tr-side-label { font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.tr-arrow { display: grid; place-items: center; color: var(--accent); }
.tr-chip { display: flex; align-items: center; gap: 9px; width: 100%; padding: 6px 8px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tr-chip:hover { background: var(--hover); border-color: var(--line); }
.tr-chip-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.tr-chip-text b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-chip-text small { font-size: 11px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tr-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tr-num { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 11px; background: var(--panel-2); border: 1px solid var(--line); min-width: 0; }
.tr-num b { font-family: var(--num); font-size: 22px; font-weight: 700; line-height: 1.15; white-space: nowrap; }
.tr-num small { font-size: 11px; color: var(--muted-2); line-height: 1.3; }
.tr-num.up b { color: var(--green); }
.tr-num.down b { color: var(--red); }

.tr-why summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; color: var(--accent-2); }
.tr-why summary::-webkit-details-marker { display: none; }
.tr-why[open] summary svg { transform: rotate(180deg); }
.tr-why ul, .tr-why-list { margin: 10px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.tr-why b, .tr-why-list b { color: var(--text); }
.tr-actions { display: flex; justify-content: flex-end; }

.tr-search { max-width: 460px; flex: none; width: 100%; }
.tr-pick-group { display: flex; flex-direction: column; gap: 6px; }
.tr-pick-title { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.tr-pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; max-height: 520px; overflow-y: auto; padding-right: 4px; }
.tr-pick-row, .tr-roster-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel-2); color: inherit; font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.tr-pick-row:hover, .tr-roster-row:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.tr-pick-name { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.tr-pick-name b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-pick-name small { font-size: 11px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-pick-team { font-size: 11.5px; color: var(--muted); font-weight: 600; flex: none; }
.tr-pick-val { display: flex; flex-direction: column; align-items: flex-end; font-family: var(--num); font-size: 17px; font-weight: 700; line-height: 1.05; flex: none; }
.tr-pick-val small { font-family: var(--font); font-size: 10px; font-weight: 600; color: var(--muted-2); }
.tr-empty { text-align: center; color: var(--muted); padding: 18px 0; }

.tr-sim .card-head .select { max-width: 60%; }
.tr-roster { display: flex; flex-direction: column; gap: 6px; }
.tr-roster-row input { width: 16px; height: 16px; flex: none; accent-color: var(--accent); }
.tr-roster-row.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.tr-result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tr-result-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tr-result-head { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.tr-result-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tr-result-nums .tr-num b { font-size: 19px; }

/* Player card call-to-action */
.trade-cta {
  display: flex; align-items: center; gap: 12px; width: 100%; margin: 14px 0 4px; padding: 12px 14px;
  border: 1px solid var(--accent-line); border-radius: 14px; background: linear-gradient(110deg, var(--accent-soft), transparent 75%), var(--panel-2);
  color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.trade-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

.pickup-box .trade-cta { margin: 12px 0 0; }

.drawer-section > .trade-cta { margin: 0; }
.trade-cta-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--accent); color: var(--on-accent); }
.trade-cta-icon svg { width: 18px; height: 18px; }
.trade-cta-text { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 2px; }
.trade-cta-text b { font-size: 14px; }
.trade-cta-text span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.trade-cta.tone-good .trade-cta-text span { color: var(--green); }
.trade-cta.tone-warn .trade-cta-text span { color: var(--yellow); }
.trade-cta-go { flex: none; color: var(--muted-2); }

@media (max-width: 860px) {
  .tr-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tr-result-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tr-swap { grid-template-columns: 1fr; }
  .tr-arrow { transform: rotate(90deg); padding: 2px 0; }
  .tr-nums, .tr-result-nums { grid-template-columns: 1fr 1fr; }
  .tr-nums .tr-num:first-child, .tr-result-nums .tr-num:first-child { grid-column: 1 / -1; }
  .tr-hero-name { font-size: 22px; }
  .tr-hero-main { flex-wrap: wrap; }
  .tr-modes { width: 100%; }
  .tr-modes > button { flex: 1; justify-content: center; }
  .tr-pick-list { grid-template-columns: 1fr; max-height: none; }
}

/* ============================================================ Design B
 * Light, rounded and bold: Bricolage Grotesque for headings and numbers,
 * DM Sans for reading, white cards on a warm page. Your color (--you) marks
 * your side everywhere and the opponent's (--them) marks theirs; themes.js
 * sets both per theme. Suggestions live only in the Assistant.
 */
:root,
[data-theme="light"] {
  --bg: #F4F0EA;
  --bg-2: #ECE6DC;
  --panel: #FFFFFF;
  --panel-2: #FAF8F4;
  --panel-3: #F1ECE4;
  --drawer-bg: #FFFFFF;
  --line: rgba(18, 20, 26, 0.09);
  --line-2: rgba(18, 20, 26, 0.16);
  --text: #12141A;
  --muted: #4F5664;
  --muted-2: #626978;
  --accent: #2F5BEA;
  --accent-2: #1E3FB0;
  --link: #2F5BEA;
  --on-accent: #FFFFFF;
  --accent-soft: #E8EDFF;
  --accent-line: rgba(47, 91, 234, 0.35);
  --you: #2F5BEA;
  --you-light: #8FA8FF;
  --you-soft: #E8EDFF;
  --them: #E8590C;
  --them-text: #C2410C;
  --them-light: #FF9A5C;
  --them-soft: #FFEDE1;
  --nav-active-bg: #12141A;
  --nav-active-text: #FFFFFF;
  --strip-bg: #12141A;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(18, 20, 26, 0.04), 0 12px 32px -20px rgba(18, 20, 26, 0.22);
  --shadow-soft: 0 1px 2px rgba(18, 20, 26, 0.04);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --num: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg: #111317;
  --bg-2: #0C0E11;
  --panel: #1A1D23;
  --panel-2: #20242B;
  --panel-3: #282C34;
  --drawer-bg: #1A1D23;
  --line: rgba(237, 239, 243, 0.1);
  --line-2: rgba(237, 239, 243, 0.2);
  --text: #EDEFF3;
  --muted: #A6ADBA;
  --muted-2: #8E96A4;
  --accent: #7C9BFF;
  --accent-2: #9DB4FF;
  --link: #9DB4FF;
  --on-accent: #12141A;
  --accent-soft: rgba(124, 155, 255, 0.16);
  --you: #7C9BFF;
  --you-light: #8FA8FF;
  --you-soft: rgba(124, 155, 255, 0.16);
  --them: #FF8A4C;
  --them-text: #FFA273;
  --them-soft: rgba(255, 138, 76, 0.16);
  --nav-active-bg: #EDEFF3;
  --nav-active-text: #12141A;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 32px -16px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.35);
}

body { background: var(--bg); background-image: none; font-size: 15px; }
h1, h2, h3 { font-family: var(--display); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- shell */
.app { display: block; }
.shell { min-height: 100vh; }

.masthead { position: sticky; top: 0; z-index: 30; background: var(--panel); box-shadow: 0 1px 0 var(--line); }
.mast-inner { max-width: 1440px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; gap: 24px; min-height: 68px; }
.wordmark { display: inline-flex; align-items: baseline; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.wordmark:hover { text-decoration: none; color: var(--text); }
.wm-dot { display: inline-flex; width: 9px; height: 9px; margin-left: 2px; border-radius: 50%; overflow: hidden; }
.wm-dot i { width: 50%; }
.wm-dot i:first-child { background: var(--you); }
.wm-dot i:last-child { background: var(--them); }

.mainnav { display: flex; flex-wrap: wrap; gap: 2px; }
.mn-item { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; color: var(--muted); font-weight: 500; text-decoration: none; white-space: nowrap; }
.mn-item:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.mn-item.active, .mn-item.active:hover { background: var(--nav-active-bg); color: var(--nav-active-text); font-weight: 600; }
.mn-item svg { width: 16px; height: 16px; }
.mn-item .nav-badge, .nav-item .nav-badge { margin-left: 0; background: var(--you); color: var(--on-accent); }
.mast-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.mast-actions .icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; }
.mast-actions .icon-btn:hover { background: var(--hover); color: var(--text); }
.mast-actions .icon-btn.active { background: var(--nav-active-bg); color: var(--nav-active-text); }
.team-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; margin-left: 4px; border-radius: 12px; cursor: pointer; }
.team-chip:hover { background: var(--hover); }
.tc-badge { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--you); color: var(--on-accent); font-weight: 700; font-size: 12px; letter-spacing: 0.02em; }
.team-chip select { max-width: 170px; border: 0; background: transparent; color: var(--text); font-weight: 600; cursor: pointer; padding: 6px 2px; }
.livebar { display: flex; height: 6px; }
.livebar .lb-you { background: var(--you); transition: width 0.6s var(--ease); }
.livebar .lb-them { background: var(--them); transition: width 0.6s var(--ease); }
.livebar.idle { opacity: 0.35; }

/* The full page list is a drawer at every size ("More" on phones). */
.sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 60; width: min(320px, 88vw); height: 100dvh; transform: translateX(-102%); transition: transform 0.2s ease; background: var(--panel); border-right: 0; box-shadow: 0 0 60px rgba(10, 14, 24, 0.35); }
.app.sidebar-open .sidebar { transform: translateX(0); }
.app.sidebar-open::before { content: ""; position: fixed; inset: 0; z-index: 59; background: rgba(10, 14, 24, 0.42); }
.sidebar .brand { padding: 6px 10px 6px; text-decoration: none; }
.side-league { padding: 0 10px 12px; color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.side-league-meta { color: var(--muted-2); }
.nav-item.active, .nav-item.active:hover { background: var(--nav-active-bg); color: var(--nav-active-text); box-shadow: none; }
.nav-item.active .nav-icon { color: var(--nav-active-text); }

.view { max-width: 1440px; padding: 32px 32px 48px; }
.footer { max-width: 1440px; width: 100%; margin: 0 auto; padding: 4px 32px 28px; }

/* ----------------------------------------------------------- page heads */
.page-head { align-items: center; margin-bottom: 4px; }
.page-head > div:first-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.page-eyebrow { display: none; }
.page-title { margin: 0; font-family: var(--display); font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.page-sub { color: var(--muted); font-size: 15px; font-weight: 500; }

.subnav { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 0 0 18px; padding: 4px; border-radius: 14px; background: var(--panel); box-shadow: var(--shadow-soft); }
.sub-item { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 10px; color: var(--muted); font-weight: 500; text-decoration: none; }
.sub-item:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.sub-item.active, .sub-item.active:hover { background: var(--nav-active-bg); color: var(--nav-active-text); font-weight: 600; }

/* ---------------------------------------------------------- components */
.card { border: 0; border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.card-head { padding: 20px 24px 0; }
.card-head.bordered { background: transparent; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.card-title { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.card-title .card-title-icon { display: none; }
.card-sub { color: var(--muted-2); }
.btn { min-height: 40px; border-radius: 12px; font-weight: 600; }
.btn.primary { background: var(--you); border-color: var(--you); color: var(--on-accent); }
.btn.primary:hover { background: var(--you); filter: brightness(1.07); }
.btn.small { min-height: 34px; border-radius: 10px; }
.segmented { border: 0; border-radius: 14px; padding: 4px; background: var(--panel-2); }
.segmented > button, .segmented .chip { border-radius: 10px; }
.segmented > button.active, .segmented .chip.active, .segmented .chip.on { background: var(--nav-active-bg); color: var(--nav-active-text); box-shadow: none; }
.chip.active { background: var(--nav-active-bg); color: var(--nav-active-text); border-color: transparent; }
.input, .select { border-radius: 12px; }
.banner { border-radius: 16px; }
.pill-live { background: var(--you-soft); color: var(--you); }

.pref-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; border-top: 1px solid var(--line); cursor: pointer; }
.pref-row input { width: 22px; height: 22px; accent-color: var(--you); cursor: pointer; }

/* Theme previews: header-and-cards, like the app itself. */
.th-mock .m-side { display: none; }
.th-mock .m-top { box-shadow: inset 0 -3px 0 transparent; border-bottom: 3px solid; border-image: var(--m-stripe) 1; }

/* ------------------------------------------------------------------ home */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.home-score { display: block; padding: 28px 32px; border-radius: 26px; background: #12141A; color: #FFFFFF; text-decoration: none; box-shadow: 0 20px 44px -26px rgba(18, 20, 26, 0.6); }
.home-score:hover { text-decoration: none; color: #FFFFFF; }
.home-score.idle { display: flex; align-items: center; gap: 12px; padding: 22px 26px; color: #C9CED8; }
.home-score.idle b { color: #FFFFFF; }
.hs-top { display: flex; justify-content: space-between; gap: 12px; color: #A9B0BE; font-size: 13px; }
.hs-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 16px 0 20px; }
.hs-side.them { text-align: right; }
.hs-name { font-weight: 600; }
.hs-name span { color: #A9B0BE; font-weight: 400; }
.hs-score { font-family: var(--display); font-weight: 800; font-size: 84px; line-height: 1; letter-spacing: -0.04em; }
.hs-side.you .hs-score { color: var(--you-light); }
.hs-side.them .hs-score { color: var(--them-light); }
.hs-proj { display: block; margin-top: 4px; color: #A9B0BE; font-size: 14px; font-weight: 600; }
.hs-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; }
.hs-bar span:first-child { background: var(--you-light); }
.hs-bar span:last-child { background: var(--them-light); }
.hs-foot { display: flex; justify-content: space-between; margin-top: 8px; color: #A9B0BE; font-size: 13px; }
.hs-top { align-items: center; }
.hs-action { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: #FFFFFF; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.hs-action:hover { background: rgba(255, 255, 255, 0.14); }
.hs-team[data-team] { cursor: pointer; }
.hs-team[data-team]:hover { text-decoration: underline; }

.tn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.tn-head { padding-bottom: 10px; font-weight: 700; border-bottom: 3px solid var(--you); color: var(--you); }
.tn-col.them .tn-head { border-color: var(--them); color: var(--them-text); }
.tn-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.tn-row:hover .tn-name { text-decoration: underline; }
.tn-time { width: 52px; flex: none; color: var(--muted-2); font-weight: 500; font-size: 14px; }
.tn-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-team { color: var(--muted-2); font-size: 13px; }
.tn-pts { margin-left: auto; font-family: var(--display); font-weight: 800; font-size: 19px; }
.tn-pts small { margin-left: 3px; font-family: var(--font); font-size: 11px; font-weight: 600; color: var(--muted-2); }
.tn-empty { padding: 12px 0; color: var(--muted-2); }

.ws-list { margin: 0; padding: 0; list-style: none; }
.ws-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ws-list li:last-child { border-bottom: 0; }
.ws-rank { width: 20px; color: var(--muted-2); font-weight: 600; }
.ws-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-bar { width: 84px; height: 6px; border-radius: 3px; background: var(--panel-3); overflow: hidden; }
.ws-bar span { display: block; height: 100%; background: var(--line-2); }
.ws-val { width: 44px; text-align: right; font-weight: 700; }
.ws-list li.you { font-weight: 700; }
.ws-list li.you .ws-bar span { background: var(--you); }
.ws-list li.them .ws-bar span { background: var(--them); }

.read-list { display: flex; flex-direction: column; }
.read-item { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.read-item:last-child { border-bottom: 0; }
.read-item:hover { text-decoration: none; }
.read-item:hover b { text-decoration: underline; }
.read-item small { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.read-item small.lead { color: var(--you); }
.read-item b { font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }

/* Around the league cards (Home and Matchup). */
.mini-matchup { border: 0; border-radius: 18px; background: var(--panel-2); box-shadow: none; }
.mini-matchup:hover { background: var(--panel-3); }
.mini-matchup.mine { box-shadow: inset 0 0 0 2px var(--you); }
.mini-matchup.chosen { background: var(--panel-2); box-shadow: inset 0 0 0 2px var(--nav-active-bg); }
.mm-score { font-family: var(--display); font-weight: 800; }

/* Matchup: projected totals sit small and grey under each score. */
.mx-score { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; }
.mx-proj { display: block; margin-top: 4px; font-family: var(--font); font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--muted-2); }
.mx-team.away .mx-proj { text-align: left; }
.mx-team.home .mx-proj { text-align: right; }

@media (max-width: 1240px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .team-chip select { max-width: 120px; }
}

@media (max-width: 1080px) {
  .mast-inner { gap: 14px; padding: 0 20px; }
  .mn-item { padding: 0 10px; }
  .mast-actions .customize-toggle, .team-chip select { display: none; }
}

@media (max-width: 860px) {
  .mainnav, .mn-assist, .mast-actions [data-action="refresh"] { display: none; }
  .mast-inner { min-height: 58px; padding: 0 16px; }
  .masthead { position: sticky; }
  .view { padding: 18px 16px calc(96px + env(safe-area-inset-bottom)); }
  .footer { padding: 8px 16px calc(88px + env(safe-area-inset-bottom)); }
  .page-title { font-size: 30px; }
  .hs-score { font-size: 52px; }
  .home-score { padding: 20px; }
  .tn-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .tabbar .tab.active { color: var(--text); }
  .tabbar .tab.active .nav-icon { color: var(--text); }
}

@media (max-width: 560px) {
  .hs-sides { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .hs-side.them { text-align: left; }
}

/* ---------------------------------------------------- Design B page layouts */
/* Main column + right rail, used by Matchup, My team, League, News and the Assistant. */
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.page-rail { min-width: 0; }
.page-rail .table th, .page-rail .table td { padding-left: 10px; padding-right: 10px; }
.page-rail .mini-grid { grid-template-columns: minmax(0, 1fr); }
.settings-col { max-width: 920px; width: 100%; margin: 0 auto; }

.dark-card { background: #12141A; color: #FFFFFF; }
.dark-card .card-title { color: #FFFFFF; }
.stat-quad { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stat-quad small { display: block; color: #A9B0BE; font-size: 12px; }
.stat-quad b { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -0.02em; }
.stat-quad b.you { color: var(--you-light); }

.starts-left { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.starts-left > div { border-radius: 16px; padding: 14px; }
.starts-left small { display: block; font-size: 12px; font-weight: 700; }
.starts-left b { font-family: var(--display); font-weight: 800; font-size: 40px; letter-spacing: -0.03em; line-height: 1.1; }
.starts-left .you { background: var(--you-soft); color: var(--you); }
.starts-left .them { background: var(--them-soft); color: var(--them-text); }

/* Tug of war */
.rope-ends { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
.rope-ends .you { color: var(--you); }
.rope-ends .them { color: var(--them-text); }
.rope-row { display: grid; grid-template-columns: 86px minmax(0, 1fr) 2px minmax(0, 1fr) 130px; align-items: center; gap: 0 10px; min-height: 34px; margin-bottom: 8px; }
.rope-day { font-weight: 600; font-size: 14px; }
.rope-row.proj .rope-day, .rope-row.off .rope-day { color: var(--muted-2); }
.rope-row.live .rope-day { color: var(--you); }
.rope-side { display: flex; height: 32px; }
.rope-side.home { justify-content: flex-end; }
.rope-mid { height: 32px; background: var(--text); }
.rope-bar { display: flex; align-items: center; height: 100%; padding: 0 10px; color: #FFFFFF; font-size: 13px; font-weight: 700; white-space: nowrap; }
.rope-bar.home { justify-content: flex-start; border-radius: 10px 0 0 10px; }
.rope-bar.away { justify-content: flex-end; border-radius: 0 10px 10px 0; }
.rope-bar.you { background: var(--you); color: var(--on-accent); }
.rope-bar.them { background: var(--them); }
.rope-bar.proj { opacity: 0.6; background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0 6px, transparent 6px 12px); }
.rope-score { text-align: right; font-size: 13px; color: var(--muted-2); }
.rope-note { margin-top: 10px; color: var(--muted-2); font-size: 13px; }

/* News front page */
.news-feature { display: grid; gap: 10px; padding: 32px; border-radius: 26px; background: #12141A; color: #FFFFFF; text-decoration: none; box-shadow: 0 20px 44px -26px rgba(18, 20, 26, 0.6); }
.news-feature:hover { text-decoration: none; color: #FFFFFF; }
.nf-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--you-light); }
.nf-title { font-family: var(--display); font-weight: 800; font-size: 38px; line-height: 1.08; letter-spacing: -0.03em; max-width: 780px; }
.nf-dek { color: #C9CED8; font-size: 17px; line-height: 1.5; max-width: 680px; }
.nf-go { display: inline-flex; align-items: center; gap: 6px; justify-self: start; margin-top: 6px; padding: 10px 18px; border-radius: 14px; background: #FFFFFF; color: #12141A; font-weight: 600; }
.news-list { padding-top: 4px; padding-bottom: 4px; }
.nl-row { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.nl-row:last-child { border-bottom: 0; }
.nl-row:hover { text-decoration: none; }
.nl-row:hover .nl-title { text-decoration: underline; }
.nl-row .nw-thumb { flex: none; width: 112px; height: 76px; border-radius: 12px; }
.nl-body { display: grid; gap: 3px; min-width: 0; }
.nl-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }
.nl-title { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.nl-dek { color: var(--muted); }
.inj-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 11px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.inj-row:last-child { border-bottom: 0; }
.inj-name { font-weight: 600; }
.inj-name small { color: var(--muted-2); font-weight: 500; }
.inj-note { grid-column: 1 / -1; color: var(--muted-2); font-size: 13px; }
.past-row { display: flex; justify-content: space-between; gap: 12px; min-height: 44px; align-items: center; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.past-row:last-child { border-bottom: 0; }
.subnav button.sub-item { border: 0; background: transparent; font: inherit; cursor: pointer; }
.subnav button.sub-item.active { background: var(--nav-active-bg); color: var(--nav-active-text); }

/* Assistant · Free agents for you */
.fa-card { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 20px; background: var(--panel); box-shadow: var(--shadow); cursor: pointer; }
.fa-card:hover .fa-name { text-decoration: underline; }
.fa-rank { font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--muted-2); }
.fa-main { display: grid; gap: 2px; min-width: 0; }
.fa-name { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.fa-name small { font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--muted-2); }
.fa-why { color: var(--muted); }
.fa-fit { text-align: right; }
.fa-fit small { display: block; font-size: 12px; color: var(--muted-2); }
.fa-fit b { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--you); }
.need-chip { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--you-soft); color: var(--you); font-weight: 600; }

@media (max-width: 1100px) {
  .page-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .rope-row { grid-template-columns: 54px minmax(0, 1fr) 2px minmax(0, 1fr); }
  .rope-score { display: none; }
  .nf-title { font-size: 28px; }
  .news-feature { padding: 22px; }
  .nl-row .nw-thumb { display: none; }
  .fa-card { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; padding: 14px 16px; }
  .fa-card .watch-btn { display: none; }
}
.settings-page > .page-head { max-width: 920px; width: 100%; margin-left: auto; margin-right: auto; }

/* ------------------------------------------------- Design B page bodies */
/* Section tabs sit on the right of the page head. */
.page-actions .subnav { margin: 0; }

.b-card { padding: 22px; }
.b-card.flush { padding: 8px 0; overflow: hidden; }
.b-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.b-card.flush .b-card-head { padding: 14px 26px 4px; margin: 0; }
.b-card-head.tight { align-items: center; }
.b-card-head .b-card-sub { margin: 0; }
.b-card-title { margin: 0 0 4px; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.b-card-head .b-card-title { margin: 0; }
.b-card-sub { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.b-note { margin: 8px 4px 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.b-note.b-pad { margin: 6px 26px 14px; font-size: 13px; }
.b-inline { display: inline-flex; align-items: center; gap: 10px; }
.b-inline-label { color: var(--muted); font-size: 14px; }
.b-select { width: auto; min-height: 44px; border-radius: 12px; font-weight: 600; }

.b-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.b-table th { padding: 12px 10px; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; text-align: left; border-bottom: 0; background: none; white-space: nowrap; }
.b-table th.right, .b-table td.right { text-align: right; }
.b-table td { padding: 12px 10px; border-top: 1px solid var(--line); border-bottom: 0; font-size: 14px; }
.b-table .b-first { padding-left: 26px; }
.b-table .b-last { padding-right: 26px; }
.b-table tbody tr { cursor: pointer; }
.b-table tbody tr:hover td { background: var(--panel-2); }
.b-table tr.reserve td { color: var(--muted); }
.b-table tr.me td { background: var(--you-soft); }
.b-table tr.me .b-name { color: var(--you); font-weight: 700; }
.b-table tr.cutline td { border-top: 2px dashed var(--line-2); }
.b-table th.sortable { cursor: pointer; }
.b-table th.sorted { color: var(--text); }
.b-rank { color: var(--muted); font-weight: 600; }
.b-name { font-weight: 600; }
.b-meta { color: var(--muted-2); font-size: 13px; }
.b-strong { font-weight: 700; }
.b-soft { color: var(--muted); }
.b-gain { font-weight: 700; color: var(--you); }
.slot-tag { display: inline-block; min-width: 38px; padding: 3px 6px; border-radius: 8px; text-align: center; font-size: 12px; font-weight: 700; background: var(--panel-3); color: var(--muted); }
.slot-tag.on { background: var(--you-soft); color: var(--you); }
.b-status { font-size: 13px; font-weight: 600; color: var(--muted); }
.b-status.warn { color: var(--them-text); }
.b-status.bad { color: var(--red); }
.b-status.you { color: var(--you); }
.b-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--panel-3); color: var(--muted); white-space: nowrap; }
.b-pill.good { background: var(--green-soft); color: var(--green); }
.b-pill.warn { background: var(--them-soft); color: var(--them-text); }
.b-pill.you { background: var(--you-soft); color: var(--you); }

/* Toolbar: search, segmented filters, checkbox. */
.b-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.b-search { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: 14px; background: var(--panel); box-shadow: var(--shadow-soft); color: var(--muted); }
.b-search svg { width: 18px; height: 18px; flex: none; }
.b-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: var(--text); }
.b-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--panel); box-shadow: var(--shadow-soft); }
.b-seg button { min-height: 40px; min-width: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; cursor: pointer; }
.b-seg button:hover { color: var(--text); background: var(--panel-2); }
.b-seg button.active { background: var(--nav-active-bg); color: var(--nav-active-text); font-weight: 600; }
.b-check { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border-radius: 14px; background: var(--panel); box-shadow: var(--shadow-soft); cursor: pointer; }
.b-check input { width: 18px; height: 18px; accent-color: var(--you); }

/* My team: where your points come from. */
.mix-list { display: grid; gap: 4px; }
.mix-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 48px; align-items: center; gap: 10px; padding: 6px 0; }
.mix-key { font-weight: 600; }
.mix-bar { position: relative; height: 10px; border-radius: 5px; background: var(--panel-3); }
.mix-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: var(--you); }
.mix-avg { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--text); }
.mix-val { text-align: right; color: var(--muted); }

/* League */
.odds-cell { display: flex; align-items: center; gap: 10px; }
.odds-bar { flex: 1; min-width: 80px; height: 8px; border-radius: 4px; background: var(--panel-3); overflow: hidden; }
.odds-bar span { display: block; height: 100%; background: var(--line-2); }
tr.me .odds-bar span { background: var(--you); }
.odds-val { width: 40px; text-align: right; color: var(--muted); }
.power-list { margin: 0; padding: 0; list-style: none; }
.power-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.power-list li:last-child { border-bottom: 0; }
.power-rank { font-family: var(--display); font-weight: 800; color: var(--muted); }
.power-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.power-list li.me .power-name { color: var(--you); font-weight: 700; }
.power-meta { font-size: 13px; color: var(--muted); }
.dark-card .b-card-title { color: #FFFFFF; margin-bottom: 12px; }
.dark-card[role="button"] { cursor: pointer; }
.dark-sub { margin: 0; color: #A9B0BE; font-size: 14px; line-height: 1.5; }
.high-score { font-family: var(--display); font-weight: 800; font-size: 44px; letter-spacing: -0.03em; line-height: 1.05; color: var(--them-light, #FF9A5C); }
.high-who { color: #A9B0BE; }

/* Assistant: the lead call. */
.call-hero { padding: 28px; border-radius: 26px; background: var(--panel); box-shadow: var(--shadow); }
.call-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.call-tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; background: var(--panel-3); color: var(--muted); white-space: nowrap; }
.call-tag.you { background: var(--you); color: var(--on-accent); }
.call-tag.warn { background: var(--them-soft); color: var(--them-text); }
.call-hero .lock-chip { border: 0; background: none; padding: 0; color: var(--them-text); font-weight: 600; font-size: 13px; }
.call-gain { margin-left: auto; font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -0.03em; line-height: 1; color: var(--you); }
.call-gain small { font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.call-title { margin: 0 0 6px; font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: -0.02em; line-height: 1.15; }
.call-text { margin: 0 0 22px; color: var(--muted); font-size: 17px; line-height: 1.5; }
.call-text b { color: var(--text); }
.call-box { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; padding: 18px; margin-bottom: 22px; border-radius: 18px; background: var(--bg); }
.call-box-main { flex: 1 1 260px; min-width: 0; }
.call-label { margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); }
.call-slots { display: grid; grid-template-columns: repeat(var(--slots, 10), minmax(0, 1fr)); gap: 4px; }
.call-slots span { height: 22px; border-radius: 6px; border: 1.5px dashed var(--line-2); }
.call-slots span.on { border: 0; background: var(--text); }
.call-slots span.add { border: 0; background: var(--you); }
.call-legend { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.call-legend .you { color: var(--you); font-weight: 600; }
.call-facts { flex: 1 1 240px; display: grid; gap: 8px; margin: 0; padding: 0 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.call-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.big { min-height: 48px; padding: 0 20px; border-radius: 14px; font-size: 15px; }
.btn.primary.big { background: var(--you); border-color: var(--you); color: var(--on-accent); }
.btn.quiet { border-color: transparent; background: transparent; color: var(--muted); font-weight: 500; }
.btn.quiet:hover { color: var(--text); background: var(--panel-2); }

.call-list { display: flex; flex-direction: column; gap: 12px; }
.call-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 20px; background: var(--panel); box-shadow: var(--shadow-soft); }
.call-row-text { flex: 1 1 320px; min-width: 0; }
.call-row-text h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.call-row-text p { margin: 2px 0 0; color: var(--muted); }
.call-row-value { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.call-row-go { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); color: var(--text); }
.call-row-go:hover { background: var(--panel-2); text-decoration: none; }
.done-list { margin: 0; padding: 0; list-style: none; }
.done-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.done-list svg { flex: none; color: var(--you); }

/* Assistant: streaming plan nights. */
.night-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.night-card { padding: 14px; border-radius: 16px; background: var(--bg); min-width: 0; }
.night-card.add { background: var(--you-soft); box-shadow: inset 0 0 0 2px var(--you); }
.night-card.today .night-top > span:first-child { color: var(--you); }
.night-top { display: flex; justify-content: space-between; gap: 6px; font-weight: 700; }
.night-top em { font-style: normal; font-weight: 600; font-size: 12px; }
.night-count { color: var(--muted); font-weight: 500; white-space: nowrap; }
.night-blocks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; margin: 10px 0; min-height: 27px; }
.night-blocks span { height: 12px; border-radius: 3px; border: 1px dashed var(--line-2); }
.night-blocks span.on { border: 0; background: var(--text); }
.night-blocks span.past { border: 0; background: var(--muted-2); opacity: 0.6; }
.night-blocks span.add { border: 0; background: var(--you); }
.night-move { font-size: 13px; font-weight: 600; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.night-card.add .night-move { color: var(--you); cursor: pointer; }

/* Assistant: build a trade. */
.tb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tb-side { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 18px; background: var(--bg); min-width: 0; }
.tb-side.get { background: var(--you-soft); }
.tb-label { margin-bottom: 2px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); }
.tb-side.get .tb-label { color: var(--you); }
.tb-player { display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 14px; border-radius: 12px; background: var(--panel); }
.tb-player > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-player b { cursor: pointer; }
.tb-val { color: var(--muted); white-space: nowrap; }
.tb-remove { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.tb-remove:hover { background: var(--panel-3); color: var(--text); }
.tb-add { width: 100%; min-height: 44px; border-radius: 12px; border: 1.5px dashed var(--line-2); background: transparent; color: var(--muted); font: inherit; cursor: pointer; }
.tb-add:hover, .tb-add.open { color: var(--text); border-color: var(--text); }
.tb-picker { max-height: 360px; overflow-y: auto; padding-right: 2px; }
.tb-picker .tr-roster-row { background: var(--panel); }
.tb-tools { display: flex; justify-content: flex-end; margin-top: 12px; }
.tr-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.tr-stats small { display: block; font-size: 12px; color: #A9B0BE; }
.tr-stats b { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -0.03em; }
.tr-stats b.you { color: var(--you-light); }
.tr-balance { margin: 20px 0 14px; }
.tr-balance-labels { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 13px; color: #A9B0BE; }
.tr-balance-track { position: relative; height: 10px; border-radius: 5px; background: #2A2E38; }
.tr-balance-track span { position: absolute; top: -4px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--you-light); box-shadow: 0 0 0 3px #12141A; }
.tr-why.dark { margin-top: 12px; }
.tr-why.dark summary { color: #FFFFFF; }
.tr-why.dark ul { color: #C9CED8; }
.tr-why.dark b { color: #FFFFFF; }
.idea-list { display: flex; flex-direction: column; }
.idea-row { display: grid; gap: 2px; width: 100%; padding: 12px 0; border: 0; border-top: 1px solid var(--line); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.idea-row:hover b { color: var(--you); }
.idea-row > span { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; }
.idea-gain { color: var(--you); font-weight: 700; }

@media (max-width: 1100px) {
  .night-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .night-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-grid { grid-template-columns: minmax(0, 1fr); }
  .call-hero { padding: 20px; }
  .call-title { font-size: 24px; }
  .b-table .b-first { padding-left: 16px; }
  .b-table .b-last { padding-right: 16px; }
  .b-card.flush .b-card-head { padding: 14px 16px 4px; }
}

/* Settings: appearance */
.set-team { min-width: min(320px, 100%); }
.ap-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 6px 0 16px; }
.ap-row .b-seg { background: var(--bg); box-shadow: none; }
.ap-themes { padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.ap-title { font-weight: 600; }
.ap-title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.ap-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ap-tools .b-seg, .ap-search { background: var(--bg); box-shadow: none; }
.ap-search { flex: 0 1 220px; min-height: 44px; }
.ap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: 4px; }
.ap-tile { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.ap-tile:hover { border-color: var(--line-2); }
.ap-tile.selected { border: 2px solid var(--text); padding: 7px 9px; }
.ap-chip { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 10px; font-weight: 800; }
.ap-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.ap-name b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-name small { font-size: 12px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------- Design B player & team cards */
/* Cards open in a wide panel on the warm page color; on phones it rises as a sheet. */
.drawer-panel { width: min(600px, 100vw); background: var(--bg); border-left: 0; }
.drawer-head { background: var(--panel); }
.b-pill.bad { background: var(--red-soft); color: var(--red); }
.b-pill[role="button"] { cursor: pointer; }

.pc-body { padding: 16px; gap: 14px; }
.pc-card { background: var(--panel); border-radius: 20px; padding: 18px; box-shadow: var(--shadow-soft); min-width: 0; }
.pc-card.flush { padding: 4px 0; overflow: hidden; }
.pc-card.flush .pc-head { padding: 14px 18px 2px; }
.pc-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 12px; }
.pc-title { margin: 0; font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.pc-sub { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; }
.pc-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.pc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 14px 12px; }
.pc-stats small { display: block; color: var(--muted); font-size: 12px; }
.pc-stats b { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; line-height: 1.15; }
.pc-stats .lead b { color: var(--you); font-size: 34px; }
.pc-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.pc-note b { color: var(--text); }
.pc-pad { padding: 0 18px 14px; margin: 0; }
.pc-text { margin: 8px 0 0; color: var(--muted); line-height: 1.5; }
.pc-text.warn { color: var(--them-text); }
.pc-card .trade-cta { margin: 14px 0 0; border-radius: 14px; }
.pc-head + .trade-cta { margin-top: 0; }
.pc-verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 16px; }
.pc-drop { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg); cursor: pointer; }
.pc-drop span { color: var(--muted); font-size: 13px; }
.pc-drop small { margin-left: auto; color: var(--muted); font-size: 13px; }

/* Recent games: a column per game, tinted against the projection line. */
.pc-chart { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; height: 160px; }
.pc-proj { position: absolute; left: 0; right: 0; border-top: 1.5px dashed var(--muted-2); opacity: 0.7; pointer-events: none; z-index: 1; }
.pc-bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; min-width: 0; }
.pc-bar[class*="tone-"] { background: none; border: 0; box-shadow: none; animation: none; color: inherit; }
.pc-bar-val { font-family: var(--display); font-size: 12px; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.pc-bar-fill { display: block; width: 100%; max-width: 30px; border-radius: 6px 6px 3px 3px; background: var(--line-2); transition: filter 0.15s; }
.pc-bar:hover .pc-bar-fill { filter: brightness(0.9); }
.pc-bar-opp { height: 18px; margin-top: 4px; color: var(--muted-2); font-size: 11px; line-height: 18px; white-space: nowrap; overflow: hidden; max-width: 100%; }
.pc-bar.tone-magenta .pc-bar-fill, .pc-bar.tone-gold .pc-bar-fill { background: var(--you); }
.pc-bar.tone-green .pc-bar-fill { background: color-mix(in srgb, var(--you) 62%, var(--panel)); }
.pc-bar.tone-lime .pc-bar-fill { background: color-mix(in srgb, var(--them) 45%, var(--panel)); }
.pc-bar.tone-red .pc-bar-fill { background: var(--them); }

/* Coming up */
.pc-week + .pc-week { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.pc-week-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 8px; }
.pc-week-head span { color: var(--muted); font-size: 13px; }
.pc-week-head .pc-week-count { margin-left: auto; color: var(--you); font-weight: 600; }
.pc-games { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-game { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 10px; border-radius: 10px; background: var(--bg); font-size: 13px; }
.pc-game b { font-weight: 600; }
.pc-game small { color: var(--muted-2); }

.pc-table th, .pc-table td { padding: 9px 8px; font-size: 13px; }
.pc-table .b-first { padding-left: 18px; }
.pc-table td:last-child, .pc-table th:last-child { padding-right: 18px; }
.pc-table tbody tr:not([data-game]) { cursor: default; }

/* News */
.pc-report { display: grid; gap: 6px; padding: 14px; border-radius: 14px; background: var(--bg); }
.pc-report p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.pc-report-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.pc-article { display: flex; align-items: center; gap: 12px; padding: 12px 0 2px; margin-top: 10px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.pc-article:hover { text-decoration: none; }
.pc-article:hover b { color: var(--you); }
.pc-article-img { flex: none; width: 64px; height: 48px; border-radius: 8px; background: var(--panel-3) center / cover no-repeat; }
.pc-article-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.pc-article-text b { font-size: 14px; line-height: 1.35; }
.pc-article-text small { color: var(--muted); font-size: 12px; }
.pc-article-go { flex: none; color: var(--muted-2); }

/* Player hero: the dark scoreboard look, tinted with your color. */
.drawer-panel .ph { --bar-h: 64px; background: #12141A; border-bottom: 0; color: #FFFFFF; }
.drawer-panel .ph::before { background: radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--you) 42%, transparent), transparent 62%); }
.drawer-panel .ph-logo { opacity: 0.14; }
.drawer-panel .ph-kicker { color: #A9B0BE; }
.drawer-panel .ph-pos { color: var(--you-light); }
.drawer-panel .ph-first { color: #C9CED8; font-size: 16px; }
.drawer-panel .ph-last { color: #FFFFFF; font-family: var(--display); font-size: 36px; letter-spacing: -0.03em; }
.drawer-panel .ph-facts dd { color: #FFFFFF; }
.drawer-panel .ph-facts dt, .drawer-panel .ph-line { color: #A9B0BE; }
.drawer-panel .ph-owner { color: var(--you-light); font-size: 13px; }
.drawer-panel .ph-bar::before { background: #12141A; }
.drawer-panel .ph-bar-text b { color: #FFFFFF; font-family: var(--display); }
.drawer-panel .ph-bar-text small { color: #A9B0BE; }
.drawer-panel .ph .icon-btn, .drawer-panel .ph .watch-btn, .tc-hero .icon-btn { background: rgba(255, 255, 255, 0.12); border-color: transparent; color: #FFFFFF; backdrop-filter: none; }
.drawer-panel .ph .icon-btn:hover, .drawer-panel .ph .watch-btn:hover, .tc-hero .icon-btn:hover { background: rgba(255, 255, 255, 0.22); }
.drawer-panel .ph .watch-btn.on { color: #FFD166; }

/* Team card */
.tc-hero { position: relative; flex: none; padding: 18px 22px 22px; background: #12141A; color: #FFFFFF; overflow: hidden; }
.tc-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(110% 90% at 90% 0%, color-mix(in srgb, var(--you) 40%, transparent), transparent 60%); pointer-events: none; }
.tc-hero > * { position: relative; }
.tc-sticky { position: sticky; top: 0; z-index: 6; height: 0; }
.tc-sticky .icon-btn { position: absolute; top: 14px; right: 14px; background: rgba(18, 20, 26, 0.55); border-color: transparent; color: #FFFFFF; backdrop-filter: blur(6px); }
.tc-sticky .icon-btn:hover { background: rgba(18, 20, 26, 0.75); }
.tc-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tc-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; color: #A9B0BE; font-size: 13px; font-weight: 600; }
.tc-you { padding: 3px 9px; border-radius: 999px; background: var(--you); color: var(--on-accent); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.tc-name-big { margin: 4px 0 8px; font-family: var(--display); font-size: 32px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; overflow-wrap: anywhere; }
.tc-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: #C9CED8; }
.tc-open { margin-top: 18px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: #FFFFFF; color: #12141A; font-weight: 600; }
.tc-open:hover { background: #E9ECF2; }
.tc-open-foot { width: 100%; }
.form-chips { display: inline-flex; gap: 4px; }
.form-chip { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-size: 11px; font-weight: 800; background: var(--panel-3); color: var(--muted); }
.form-chip.w { background: var(--green-soft); color: var(--green); }
.form-chip.l { background: var(--red-soft); color: var(--red); }
.tc-hero .form-chip.w { background: rgba(62, 207, 114, 0.18); color: #6EE7A0; }
.tc-hero .form-chip.l { background: rgba(255, 107, 107, 0.18); color: #FF9A9A; }
.tc-week { cursor: pointer; }
.tc-week:hover .pc-sub { color: var(--text); }
.tc-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 12px; }
.tc-side { display: flex; flex-direction: column; min-width: 0; }
.tc-side.them { text-align: right; }
.tc-side-name { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-side b { font-family: var(--display); font-size: 32px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--you); }
.tc-side.them b { color: var(--them-text); }
.tc-dash { padding-bottom: 8px; color: var(--muted-2); font-size: 13px; }
.tc-bar { display: flex; height: 8px; margin-top: 12px; border-radius: 4px; overflow: hidden; background: var(--them); }
.tc-bar span { background: var(--you); }
.tc-results, .tc-roster, .moves-list { margin: 0; padding: 0; list-style: none; }
.tc-results li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); cursor: pointer; }
.tc-results li:first-child { border-top: 0; padding-top: 0; }
.tc-res-opp { flex: 1; min-width: 0; color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-roster li { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); cursor: pointer; }
.tc-roster li:first-child { border-top: 0; padding-top: 0; }
.tc-roster li.reserve { color: var(--muted); }
.tc-name { display: flex; flex-direction: column; min-width: 0; }
.tc-name b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-name small { color: var(--muted-2); font-size: 12px; }
.tc-val { font-family: var(--display); font-size: 16px; font-weight: 700; }
.moves-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.moves-list li:first-child { border-top: 0; padding-top: 0; }
.mv-when { color: var(--muted); font-size: 13px; }
.mv-body { display: flex; flex-wrap: wrap; gap: 4px 14px; min-width: 0; }
.mv-player { display: inline-flex; align-items: baseline; gap: 5px; font-size: 14px; font-weight: 500; cursor: pointer; }
.mv-player:hover { color: var(--you); }
.mv-player i { font-style: normal; font-weight: 800; }
.mv-player i.add { color: var(--green); }
.mv-player i.drop { color: var(--red); }
.mv-with { color: var(--muted); font-size: 13px; cursor: pointer; }
.mv-with:hover { color: var(--you); }
.sched-more { display: flex; justify-content: center; padding: 10px 0 12px; border-top: 1px solid var(--line); }

/* Team page */
.team-head-main { display: flex !important; align-items: center !important; gap: 16px !important; flex-wrap: nowrap !important; min-width: 0; }
.team-head-main > div { min-width: 0; }
.sched-opp { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; min-width: 0; }
.sched-opp > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.sched-opp:hover .b-name { color: var(--you); }
.proj-list { margin: 0; }
.proj-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.proj-list > div:first-child { border-top: 0; padding-top: 0; }
.proj-list dt { color: var(--muted); }
.proj-list dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 17px; text-align: right; }
.proj-list dd small { font-family: var(--font); font-size: 12px; font-weight: 500; color: var(--muted); }

@media (max-width: 640px) {
  .drawer-panel { top: 12px; width: 100vw; border-radius: 22px 22px 0 0; transform: translateY(40px); }
  .drawer-panel.open { transform: none; }
  .drawer-panel .ph, .tc-hero { border-radius: 22px 22px 0 0; }
  .pc-body { padding: 12px; gap: 12px; }
  .pc-card { padding: 16px; border-radius: 18px; }
  .pc-chart { height: 140px; gap: 3px; }
  .pc-bar-val { font-size: 10px; }
  .pc-stats .lead b { font-size: 30px; }
  .tc-name-big { font-size: 28px; }
  .team-head-main .page-title { font-size: 30px; }
  .sched-dates, .sched-rec, .sched-opp .team-logo { display: none; }
  .sched-opp .b-name { white-space: normal; }
}

/* Night by night (Matchup): a strip of mini scoreboards, then the night face to face. */
.nb-strip { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin: 4px 0 20px; }
.nb-day { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 10px 2px 9px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); color: var(--text); font: inherit; cursor: pointer; transition: background .15s, border-color .15s; }
.nb-day:hover { border-color: var(--line-2); background: var(--panel-3); }
.nb-dow { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }
.nb-dom { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.1; }
.nb-mini { display: flex; flex-direction: column; align-items: center; margin-top: 4px; font-family: var(--display); font-size: 13px; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }
.nb-mini i { font-style: normal; color: var(--muted-2); }
.nb-mini i.lead.you { color: var(--you); }
.nb-mini i.lead.them { color: var(--them-text); }
.nb-mini.later i { font-weight: 500; opacity: 0.75; }
.nb-day.today .nb-dow { color: var(--you); }
.nb-day.off { opacity: 0.55; }
.nb-day.week { background: var(--panel-3); }
.nb-day.sel { background: var(--nav-active-bg); border-color: var(--nav-active-bg); color: var(--nav-active-text); }
.nb-day.sel .nb-dow, .nb-day.sel .nb-mini i { color: rgba(255, 255, 255, 0.6); }
.nb-day.sel .nb-mini i.lead.you { color: var(--you-light); }
.nb-day.sel .nb-mini i.lead.them { color: var(--them-light); }
[data-theme="dark"] .nb-day.sel .nb-dow, [data-theme="dark"] .nb-day.sel .nb-mini i { color: rgba(18, 20, 26, 0.6); }
[data-theme="dark"] .nb-day.sel .nb-mini i.lead.you { color: var(--you); }
[data-theme="dark"] .nb-day.sel .nb-mini i.lead.them { color: var(--them-text); }

.nb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.nb-side-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 3px solid var(--you); }
.nb-side.them .nb-side-head { border-color: var(--them); }
.nb-team { display: flex; flex-direction: column; min-width: 0; }
.nb-team b { font-weight: 700; color: var(--you); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-side.them .nb-team b { color: var(--them-text); }
.nb-team small, .nb-total small { color: var(--muted-2); font-size: 12.5px; }
.nb-total { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.nb-total b { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -0.02em; }
.nb-total.later b { color: var(--muted-2); font-weight: 600; }
.nb-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.nb-row:hover .nb-who b { text-decoration: underline; }
.nb-who { display: flex; flex-direction: column; min-width: 0; }
.nb-who b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-who small { color: var(--muted-2); font-size: 12.5px; }
.nb-chip { margin-left: auto; flex: none; display: inline-flex; align-items: baseline; gap: 5px; min-width: 64px; justify-content: flex-end; padding: 5px 10px; border: 1px solid transparent; border-radius: 10px; }
.nb-chip b { font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1; }
.nb-chip small { font-size: 11.5px; font-weight: 700; opacity: 0.8; }
.nb-chip.later { background: transparent; color: var(--muted-2); }
.nb-chip.later b { font-weight: 600; }
.nb-chip.out { background: transparent; color: var(--red, #C0392B); }
.nb-chip.out b { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.nb-cell.out { color: var(--red, #C0392B); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.nb-empty { padding: 14px 0; color: var(--muted-2); }
.nb-empty.wide { text-align: center; padding: 28px 0; }

/* Softer tones than the old pills; gold and magenta keep their shine. */
.nb-card .tone-green { background: #DDF3E4; border-color: #B5E2C3; color: #14532D; }
.nb-card .tone-lime { background: #E6ECF8; border-color: #C9D5EE; color: #2A3D66; }
.nb-card .tone-red { background: #FBE3E1; border-color: #F2C3BE; color: #8F1D14; }
.nb-card .tone-none, .nb-card .tone-grey { background: var(--panel-2); border-color: var(--line); color: var(--text); }
[data-theme="dark"] .nb-card .tone-green { background: rgba(34, 160, 80, 0.2); border-color: rgba(34, 160, 80, 0.4); color: #B9F0CB; }
[data-theme="dark"] .nb-card .tone-lime { background: rgba(110, 140, 220, 0.18); border-color: rgba(110, 140, 220, 0.4); color: #CBD7F7; }
[data-theme="dark"] .nb-card .tone-red { background: rgba(220, 70, 60, 0.2); border-color: rgba(220, 70, 60, 0.45); color: #F7C4BF; }

.nb-heat { margin-top: 4px; }
.nb-heat-row { display: grid; grid-template-columns: minmax(56px, 1.6fr) repeat(7, minmax(0, 1fr)) 40px; align-items: center; gap: 3px; padding: 3px 0; cursor: pointer; }
.nb-heat-row.head { cursor: default; padding-top: 8px; }
.nb-heat-row:not(.head):hover .nb-heat-name { text-decoration: underline; }
.nb-heat-name { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-cell-h { text-align: center; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-2); }
.nb-cell-h:last-child { text-align: right; }
.nb-cell { display: flex; align-items: center; justify-content: center; height: 28px; border: 1px solid transparent; border-radius: 7px; font-family: var(--display); font-weight: 700; font-size: 12.5px; font-variant-numeric: tabular-nums; animation-duration: 6s; }
.nb-cell.later { border: 1px dashed var(--line-2); color: var(--muted-2); font-weight: 500; }
.nb-cell.off { background: transparent; }
.nb-cell.off::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }
.nb-heat-tot { text-align: right; font-family: var(--display); font-weight: 800; font-size: 15px; }

.nb-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 16px; color: var(--muted-2); font-size: 12px; }
.nb-key > span:first-child { font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 10.5px; }
.nb-key span { display: inline-flex; align-items: center; gap: 6px; }
.nb-key i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; border: 1px solid transparent; }

@media (max-width: 860px) {
  .nb-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 640px) {
  .nb-card.b-card { padding: 18px 14px; }
  .nb-strip { gap: 3px; margin-bottom: 16px; }
  .nb-day { padding: 8px 0 7px; border-radius: 10px; }
  .nb-dow { font-size: 9.5px; letter-spacing: 0.02em; }
  .nb-dom { font-size: 16px; }
  .nb-mini { font-size: 11px; }
  .nb-heat-row { grid-template-columns: minmax(48px, 1.3fr) repeat(7, minmax(0, 1fr)) 32px; gap: 2px; }
  .nb-cell { height: 26px; font-size: 11px; border-radius: 6px; }
  .nb-heat-tot { font-size: 13px; }
}
