:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --text: #1c2330;
  --muted: #667085;
  --line: #dde1e8;
  --accent: #2456c9;
  --none-bg: #f6c1c1;   --none-text: #7a1f1f;
  --one-bg: #cfeccf;    --one-text: #1d4d24;
  --many-bg: #2f8f4e;   --many-text: #ffffff;
  --ok: #1f7a3d;
  --bad: #b3261e;
  --trace: #e08a00;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151b;
    --panel: #1b2029;
    --text: #e6e9ef;
    --muted: #98a2b3;
    --line: #2d3442;
    --accent: #7fa6ff;
    --none-bg: #5a2326;  --none-text: #f3c6c6;
    --one-bg: #234a2c;   --one-text: #cdeccd;
    --many-bg: #3fae63;  --many-text: #08210f;
    --ok: #5fd08a;
    --bad: #ff8a80;
    --trace: #ffb84d;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.top {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 10px 20px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; font-size: 16px; }
.nav { display: flex; gap: 4px; }
.nav a {
  padding: 6px 12px; border-radius: 6px;
  color: var(--muted); text-decoration: none; font-weight: 600;
}
.nav a.active { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.status { margin-left: auto; font-size: 13px; font-weight: 600; }
.status.ok { color: var(--ok); }
.status.bad { color: var(--bad); }

main { padding: 20px; max-width: 1400px; margin: 0 auto; }
h1 { font-size: 20px; margin: 0 0 4px; }
h2 { font-size: 16px; margin: 28px 0 8px; }
.muted { color: var(--muted); }
.error { color: var(--bad); font-weight: 600; }

.controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 14px 0; }
.tabs { display: flex; gap: 4px; }
.tabs button {
  padding: 6px 14px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  font: inherit; font-weight: 600;
}
.tabs button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .tabs button[aria-pressed="true"] { color: #0b1220; } }
label.trace { display: flex; align-items: center; gap: 6px; color: var(--muted); }
select {
  padding: 5px 8px; border-radius: 6px; font: inherit;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
}

.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }

.scroll { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
thead th { font-size: 12px; color: var(--muted); font-weight: 600; background: var(--panel); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
th.owner, td.owner { text-align: left; font-weight: 600; position: sticky; left: 0; background: var(--panel); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tfoot td, tfoot th { border-top: 2px solid var(--line); border-bottom: 0; font-size: 12px; color: var(--muted); }

.grid td.pick { border: 2px solid var(--panel); font-size: 13px; min-width: 62px; }
.grid td.c0 { background: var(--none-bg); color: var(--none-text); }
.grid td.c1 { background: var(--one-bg);  color: var(--one-text); }
.grid td.c2 { background: var(--many-bg); color: var(--many-text); font-weight: 600; }
.grid td.traced { outline: 3px solid var(--trace); outline-offset: -3px; }
.grid tr.traced-row th.owner { color: var(--trace); }
.grid tfoot td.bad { color: var(--bad); font-weight: 700; }

input[type="search"] {
  padding: 5px 8px; border-radius: 6px; font: inherit; width: 180px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
}

.trade-list { display: grid; gap: 10px; }
.trade { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; }
.trade-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.side + .side { border-left: 1px solid var(--line); padding-left: 14px; }
.side ul { list-style: none; margin: 6px 0 0; padding: 0; }
.side li { padding: 2px 0; }
.side p { margin: 6px 0 0; }
.tv-tag { margin-left: 8px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; cursor: help; }
.tv-tag strong { color: var(--text, inherit); }
.tv-sum { margin-top: 4px; font-size: 12px; }
.tv-verdict { margin-bottom: 3px; }
.verdict { display: inline-block; padding: 0 6px; border-radius: 4px; font-weight: 600; font-size: 11px; border: 1px solid var(--line); }
.verdict.steal { color: var(--ok); border-color: var(--ok); }
.verdict.overpay { color: var(--bad); border-color: var(--bad); }
.verdict.fair { color: var(--muted); }
.tip-line { white-space: normal; padding: 1px 0; }
.drill { cursor: help; border-bottom: 1px dotted var(--muted); }
.drill:focus { outline: 1px solid var(--accent); outline-offset: 1px; }
.drill.boom { color: var(--ok); }
.drill.bust { color: var(--bad); }
.tip-sub { margin: 6px 0 2px; font-size: 12px; font-weight: 600; white-space: normal; }
.grade-scale tr.here td { font-weight: 700; }
.grade-scale td { padding: 1px 6px; }
.dyn-chart { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.dyn-chart p { margin: 0 0 6px; font-size: 13px; }
.dyn-holder { min-width: 0; height: 190px; overflow: hidden; }
/* Player page header: team-colored band with photo, name, bio, and value tiles. */
.player-hero { --team1: var(--accent); --team2: #0b1220; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin: 16px 0 8px; padding: 16px 20px; border-radius: 14px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(115deg, var(--team1) 0%, var(--team1) 58%, color-mix(in srgb, var(--team2) 85%, var(--team1)) 58.2%, var(--team2) 100%); }
.player-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.18)); }
.player-hero > * { position: relative; z-index: 1; }
.ph-photo { width: 96px; height: 96px; flex: none; border-radius: 50%; background: rgba(255,255,255,0.9); border: 3px solid #fff;
  overflow: hidden; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,0.25); position: relative; }
.ph-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ph-initials { font-size: 30px; font-weight: 800; color: var(--team1); }
.ph-main { flex: 1 1 220px; min-width: 0; }
.ph-top { display: flex; gap: 8px; align-items: center; }
.ph-pos { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; background: rgba(255,255,255,0.22); padding: 2px 8px; border-radius: 6px; }
.ph-num { font-size: 13px; font-weight: 700; opacity: 0.85; }
.ph-name { margin: 4px 0 2px; font-size: 28px; line-height: 1.1; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.25); }
.ph-bio { font-size: 13px; opacity: 0.9; }
.ph-tiles { display: flex; gap: 8px; flex-wrap: wrap; }
.ph-tile { min-width: 84px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,0.14); backdrop-filter: blur(2px); text-align: center; }
.ph-tile-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.85; }
.ph-tile-value { font-size: 24px; font-weight: 800; line-height: 1.15; }
.ph-tile-sub { font-size: 11px; opacity: 0.85; }
.ph-tile.jc { background: #fff; color: var(--team1); cursor: help; }
.ph-tile.jc .ph-tile-value { font-family: "Bahnschrift", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif; font-size: 28px; }
.ph-tile.jc .ph-tile-sub, .ph-tile.jc .ph-tile-label { color: #334; }
@media (max-width: 600px) {
  .player-hero { padding: 14px; gap: 12px; }
  .ph-photo { width: 72px; height: 72px; }
  .ph-name { font-size: 22px; }
  .ph-tiles { width: 100%; }
  .ph-tile { flex: 1; min-width: 0; padding: 6px 8px; }
}
/* Weekly page */
/* First six columns (ranks, projections, status) shrink to their content. */
table.weekly td:nth-child(-n+6) { width: 1%; padding-left: 6px; padding-right: 6px; }
table.weekly td.gap.up { color: var(--ok); font-weight: 700; }
table.weekly td.gap.down { color: var(--bad); font-weight: 700; }
table.weekly tr.lean-higher td:first-child { box-shadow: inset 3px 0 0 var(--ok); }
table.weekly tr.lean-lower td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
/* Our projection: same heavy condensed accent as JC's value, so it stands out from FantasyPros' number. */
.wk-proj { font-family: "Bahnschrift", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif; font-weight: 800; font-size: 1.15em;
  color: var(--accent); font-variant-numeric: tabular-nums; border-bottom: 0; }
.advice { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.advice.start { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.advice.flex, .advice.borderline { background: rgba(201, 178, 107, 0.25); color: #8a6d1a; }
.advice.sit, .advice.bye { background: rgba(127, 127, 127, 0.15); color: var(--muted); }
.inj-chip.game.live { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.live-pts { font-size: 12px; }
.inj-chip.game.prog-early { background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); }
.inj-chip.game.prog-mid { background: rgba(201, 178, 107, 0.3); color: #8a6d1a; }
.inj-chip.game.prog-late { background: color-mix(in srgb, #c0392b 18%, transparent); color: #b03a2e; }
table.weekly th.sorted { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); box-shadow: inset 0 -3px 0 var(--accent); }
table.weekly th.sorted::after { content: " ▼"; font-size: 0.75em; }
.vs-col { font-weight: 800; }
.vs-col.up { color: #1e8a3e; }
.vs-col.down { color: #c0392b; }
.live-pts.vs-beat { color: #1e8a3e; }
.live-pts.vs-met { color: var(--accent); }
.live-pts.vs-miss { color: #c0392b; }
.promo { color: var(--ok); font-weight: 700; }
.offchart { color: var(--bad); font-size: 11px; font-weight: 700; }
.refresh-scores { margin-left: 12px; font: inherit; font-size: 13px; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; }
.inj-chip.game.final { background: rgba(127, 127, 127, 0.15); color: var(--muted); }
.inj-chip.prac { background: rgba(127, 127, 127, 0.15); color: var(--muted); }
.advice.out { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); }
.inj-chip { display: inline-block; font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 4px; cursor: help; }
.inj-chip.questionable { background: rgba(232, 160, 40, 0.22); color: #a66a00; }
.inj-chip.doubtful, .inj-chip.out { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); }
.match-chip { font-size: 11px; font-weight: 700; padding: 1px 5px; border-radius: 4px; cursor: help; }
.match-chip.good { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.match-chip.mid { background: rgba(127, 127, 127, 0.12); color: var(--muted); }
.match-chip.bad { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--bad); }
.why-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 6px; }
.why-final { font-size: 22px; font-weight: 800; color: var(--accent); }
.why-table { border-collapse: collapse; font-size: 13px; min-width: 520px; }
.why-table th { font-size: 11px; font-weight: 600; color: var(--muted); text-align: left; padding: 0 6px 4px; border-bottom: 1px solid var(--border, #e3e7ee); }
.why-table th.num { text-align: right; }
.why-table td { padding: 4px 6px; white-space: nowrap; vertical-align: middle; }
.why-table tr + tr td { border-top: 1px solid var(--border, #eef1f5); }
.why-label { font-weight: 600; }
.why-up { color: var(--ok); font-weight: 600; }
.why-down { color: var(--bad); font-weight: 600; }
.why-flat { color: var(--muted); }
.why-pct { font-size: 12px; font-weight: 500; }
.why-barcell { width: 90px; }
.why-bar { display: block; height: 8px; border-radius: 4px; }
.why-bar.start { background: var(--muted); opacity: 0.35; }
.why-bar.up { background: var(--ok); }
.why-bar.down { background: var(--bad); }
.why-total { font-weight: 700; }
.why-foot { margin-top: 6px; font-size: 12px; }
.grade-why { min-width: 0; max-width: 560px; }
.grade-why td.muted { white-space: normal; }
.why-warn { margin-top: 8px; padding: 6px 8px; border-radius: 6px; background: rgba(232, 131, 58, 0.12); font-size: 12px; max-width: 540px; }
div.grade-scale { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 8px; font-size: 12px; white-space: pre; }
div.grade-scale .here { font-weight: 700; }
.drill:has(.grade) { border-bottom: 0; }
/* JC's Value on the Players list: heavy, condensed, accent color so it stands apart from the FantasyPros columns. */
.jc-value { font-family: "Bahnschrift", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif; font-weight: 800; font-size: 1.15em; color: var(--accent); font-variant-numeric: tabular-nums; border-bottom: 0; }
.dyn-now-num.drill { cursor: help; display: inline-block; }
.gl-holder { min-width: 0; height: 230px; overflow: hidden; }
.gl-band-boom { fill: var(--ok); opacity: 0.08; }
.gl-band-start { fill: #6fbf86; opacity: 0.07; }
.gl-line { fill: none; stroke: var(--muted); stroke-width: 1.5; opacity: 0.6; }
.gl-dot { stroke: var(--card, #fff); stroke-width: 1.5; }
.gl-dot.boom, .gl-k.boom { fill: var(--many-bg); background: var(--many-bg); }
.gl-dot.start, .gl-k.start { fill: #6fbf86; background: #6fbf86; }
.gl-dot.meh, .gl-k.meh { fill: #c9b26b; background: #c9b26b; }
.gl-dot.bust, .gl-k.bust { fill: var(--bad); background: var(--bad); }
.gl-miss { fill: var(--muted); font-size: 13px; }
.gl-key { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 6px; }
.gl-pred { fill: none; stroke: #e07a1f; stroke-width: 1.5; stroke-dasharray: 5 4; opacity: 0.85; }
.gl-pred-dot { fill: var(--bg, #fff); stroke: #e07a1f; stroke-width: 1.5; }
.gl-k.pred { background: transparent; border: 1.5px dashed #e07a1f; }
.pv { font-weight: 600; font-size: 0.85em; padding: 1px 6px; border-radius: 9px; white-space: nowrap; }
.pv.beat { color: #1d7a3a; background: #e3f4e8; }
.pv.met { color: var(--muted); background: rgba(127,127,127,0.12); }
.pv.missed { color: #b3261e; background: #fbe6e4; }
.gl-k { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-left: 8px; }
/* Table/Graph switch: a small segmented pill, orange when on, so it doesn't read as another year button. */
.view-toggle { display: inline-flex; margin-left: 16px; padding: 2px; border-radius: 999px; background: var(--border, #e3e7ee); align-self: center; }
.view-toggle button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; padding: 3px 12px; border-radius: 999px; cursor: pointer; }
.view-toggle button[aria-pressed="true"] { background: #e8833a; color: #fff; font-weight: 600; }
.view-toggle button:focus-visible { outline: 2px solid #e8833a; outline-offset: 1px; }
.dyn-fp-key { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--trace); margin-right: 5px; vertical-align: 1px; }
.dyn-svg { display: block; }
.dyn-line { fill: none; stroke: var(--accent); stroke-width: 2; }
.dyn-ref { stroke: var(--line); stroke-dasharray: 3 3; }
.dyn-sep { stroke: var(--line); }
.dyn-axis { fill: var(--muted); font-size: 11px; }
.dyn-trade { stroke: var(--trace); stroke-dasharray: 4 3; }
.dyn-mark { font-size: 11px; fill: var(--muted); }
.dyn-mark.trade { fill: var(--trace); font-weight: 600; }
/* Rental value line (rest of season): teal, dashed, under the dynasty line. */
.dyn-rent { fill: none; stroke: #14a3a3; stroke-width: 1.75; stroke-dasharray: 4 3; }
.dyn-rent-now { margin-top: 8px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.dyn-rent-key { display: inline-block; width: 14px; height: 0; border-top: 2px dashed #14a3a3; margin-right: 2px; }
.rent-num, .why-final.rent { color: #14a3a3; }
.rent-num { font-size: 18px; border-bottom: 0; }
.rent-cell { color: #0f8a8a; font-weight: 700; border-bottom: 0; }
.ph-tile.rent { cursor: help; }
.dyn-boom { fill: var(--ok); }
.dyn-bust { fill: var(--bad); }
.dyn-miss { fill: var(--muted); opacity: 0.6; }
.dyn-fp { fill: var(--trace); stroke: var(--panel); stroke-width: 1.5; }
.dyn-cursor { stroke: var(--muted); stroke-width: 1; }
.dyn-hit { fill: transparent; }
.dyn-body { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 12px; align-items: center; }
.dyn-now { border-left: 1px solid var(--line); padding-left: 14px; }
.dyn-now-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.dyn-now-num { font-size: 44px; font-weight: 700; line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; }
.dyn-now-picks { font-size: 16px; font-weight: 600; margin: 2px 0; }
.dyn-now-asof { margin-top: 6px; }
@media (max-width: 700px) {
  .dyn-body { grid-template-columns: 1fr; }
  .dyn-now { border-left: 0; border-top: 1px solid var(--line); padding: 8px 0 0; }
}
.dyn-trade-hit { cursor: pointer; }
.dyn-trade-hit:hover .dyn-mark.trade, .dyn-trade-hit:focus .dyn-mark.trade { text-decoration: underline; }
.dyn-trade-hit:focus { outline: none; }
.dyn-trade-box .trade { margin-top: 8px; }
.dyn-trade-close { display: flex; justify-content: flex-end; margin-top: 8px; }
.dyn-trade-close button { font: inherit; font-size: 12px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--text); cursor: pointer; }
.team { font-size: 12px; color: var(--muted); }
.chip {
  display: inline-block; min-width: 36px; margin-right: 8px; padding: 1px 5px; border-radius: 4px;
  text-align: center; font-size: 11px; font-weight: 700;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
}
.chip.pick { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
@media (max-width: 640px) {
  main { padding: 16px; }
  .sides { grid-template-columns: 1fr; }
  .side + .side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 8px; }
}

th.left, td.left { text-align: left; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.two-col > div { min-width: 0; }
.mg-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.mg-tile { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.mg-tile-v { font-size: 22px; font-weight: 700; margin: 2px 0; }
.mg-chart { max-width: 100%; height: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.mg-playoff { fill: color-mix(in srgb, var(--ok) 9%, transparent); }
.mg-grid { stroke: var(--line); stroke-width: 1; }
.mg-axis { fill: var(--muted); font-size: 11px; }
.mg-lbl { fill: var(--text); font-size: 12px; font-weight: 700; }
.mg-line { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.mg-line.live { stroke-dasharray: 5 4; stroke-width: 2; }
.mg-dot { fill: var(--accent); stroke: var(--panel); stroke-width: 2; }
.mg-dot.champ { fill: #d4a017; }
.mg-dot.live { fill: var(--panel); stroke: var(--accent); stroke-dasharray: 3 2; }
.mg-bars { display: grid; gap: 5px; max-width: 720px; }
.mg-bar-row { display: grid; grid-template-columns: 90px 1fr 90px; align-items: center; gap: 10px; }
.mg-bar-track { position: relative; height: 16px; background: color-mix(in srgb, var(--muted) 10%, transparent); border-radius: 4px; }
.mg-bar { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--accent); opacity: 0.85; }
.mg-bar.ledger { background: var(--trace); }
.mg-bar-base { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--text); opacity: 0.6; }
.mg-bar-v { text-align: right; }
.mg-wrap { white-space: normal; min-width: 160px; max-width: 320px; }
.mg-overview tr.mg-here td { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.mg-odds { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.mg-odds-cell { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.mg-odds-cell svg { max-width: 100%; height: auto; }
.mg-matrix th, .mg-matrix td { padding: 4px 6px; font-size: 13px; }
.mg-h2h { text-align: center; white-space: nowrap; }
.mg-h2h.win { background: color-mix(in srgb, var(--ok) calc(8% + var(--s) * 30%), transparent); }
.mg-h2h.loss { background: color-mix(in srgb, var(--bad) calc(8% + var(--s) * 30%), transparent); }
.mg-h2h.self { background: color-mix(in srgb, var(--muted) 15%, transparent); }
.mg-matrix tr.mg-here th, .mg-matrix tr.mg-here td { font-weight: 700; outline: 1px solid var(--accent); }
.mg-roster tr.mg-bench td { opacity: 0.8; }
.mg-trend { font-size: 12px; font-weight: 700; padding: 1px 6px; border-radius: 4px; }
.mg-trend.up { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.mg-trend.down { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); }
tr.mg-cutline td { border-bottom: 2px solid var(--accent); }
.mg-gcell { display: inline-grid; grid-template-columns: 2.6em 3.4em; gap: 8px; align-items: center; text-align: left; font-variant-numeric: tabular-nums; }
.mg-gcell.three { grid-template-columns: 2.6em 3.4em 5.6em; }
.mg-gcell > .num { text-align: right; }
table.mg-compact th, table.mg-compact td { font-size: 12px; padding: 2px 8px; line-height: 1.3; }
table.mg-compact .mg-trend { font-size: 11px; padding: 0 5px; }
table.luck-tip { margin: 6px 0; font-size: 12px; }
table.luck-tip td, table.luck-tip th { padding: 1px 6px; }
table.luck-tip tr.luck-good td { background: color-mix(in srgb, var(--ok) 14%, transparent); }
/* Projection luck hovers: compact, columns only as wide as their content (2026-11-26). */
.pl-tip { max-width: 440px; font-size: 12px; }
.game-tip table.luck-tip.pl { width: auto; border-collapse: collapse; margin: 4px 0; font-size: 12px; }
.game-tip table.luck-tip.pl td, .game-tip table.luck-tip.pl th { padding: 1px 5px; min-width: 0; white-space: nowrap; }
.game-tip table.luck-tip.pl td.num, .game-tip table.luck-tip.pl th.num { text-align: right; }
.pl-dim { color: var(--muted, #6b7280); }
.pl-flag { margin-left: 4px; padding: 0 4px; border-radius: 3px; font-size: 10px; background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.pl-hamlin { margin: 4px 0; padding: 4px 6px; border-radius: 4px; background: color-mix(in srgb, var(--bad) 12%, transparent); font-size: 11px; white-space: normal; }
.pl-title { margin-left: 5px; padding: 0 5px; border-radius: 4px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.pl-title.down { background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); }
.pl-title.up { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.fin-hover { cursor: help; }
table.mg-overview td.fin-top { background: color-mix(in srgb, var(--ok) 22%, transparent); font-weight: 600; }
table.mg-overview td.fin-po { background: color-mix(in srgb, var(--ok) 9%, transparent); }
table.mg-overview td.fin-low { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
table.mg-overview td.mg-champ { background: color-mix(in srgb, #d4a017 20%, transparent); }
table.mg-overview td.fin-last { background: #dc2626; color: #fff; font-weight: 700; }
table.mg-overview td.fin-now { opacity: 0.75; }
table.mg-overview td.rec-good { color: var(--ok); font-weight: 600; }
table.mg-overview td.rec-bad { color: var(--bad); }
.game-tip td.up { color: var(--ok); } .game-tip td.down { color: var(--bad); }
.sacko-mark { font-size: 12px; }
.luck-champ { margin-left: 4px; font-size: 12px; }
.game-tip table.luck-tip.pl td.wrap { white-space: normal; min-width: 200px; }
.pl-note { margin-top: 4px; font-size: 11px; color: var(--muted, #6b7280); white-space: normal; }
table.luck-tip tr.luck-bad td { background: color-mix(in srgb, var(--bad) 14%, transparent); }
.mg-gcell.rank { grid-template-columns: 2.6em 2.4em; }
.chip.keep-lock { background: var(--ok); color: #fff; }
.chip.keep-good { background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); }
.chip.keep-weak { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--bad); }
.chip.keep-extra { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.mg-pct { font-weight: 700; }
.mg-pct.up { color: var(--ok); }
.mg-pct.down { color: var(--bad); }
.mg-grid-t td { text-align: center; white-space: nowrap; }
.trophies { white-space: nowrap; }
.half-trophy { display: inline-block; width: 0.6em; overflow: hidden; vertical-align: bottom; }
.mg-zero { stroke: var(--muted); stroke-width: 1.2; }
.mg-mbar.won { fill: var(--ok); opacity: 0.75; }
.mg-mbar.lost { fill: var(--bad); opacity: 0.75; }
.mg-mbar.tie { fill: var(--muted); opacity: 0.6; }
.mg-luck { font-size: 12px; font-weight: 700; }
.mg-luck.up { color: var(--ok); }
.mg-luck.down { color: var(--bad); }
.mg-champ {font-weight: 700; color: #b8860b; }
.draft-analysis {margin: 12px 0 16px; border: 1px solid var(--line, #e2e5ea); border-radius: 8px; padding: 8px 14px; }
.draft-analysis > summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.draft-analysis[open] > summary { margin-bottom: 8px; }
@media (max-width: 1100px) { .two-col { grid-template-columns: 1fr; } }
.grade { display: inline-block; box-sizing: border-box; min-width: 34px; padding: 1px 5px; border-radius: 4px; font-size: 12px; font-weight: 700; text-align: center; }
.grade.gA { background: var(--many-bg); color: var(--many-text); }
.grade.gB { background: var(--one-bg); color: var(--one-text); }
.grade.gC { background: color-mix(in srgb, var(--muted) 18%, transparent); color: var(--text); }
.grade.gD { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); }
.grade.gF { background: var(--none-bg); color: var(--none-text); }

tr.row-gAplus td { background: color-mix(in srgb, var(--many-bg) 38%, var(--panel)); }
tr.row-gA td { background: color-mix(in srgb, var(--many-bg) 20%, var(--panel)); }
tr.row-gB td { background: color-mix(in srgb, var(--one-bg) 55%, var(--panel)); }
tr.row-gD td { background: color-mix(in srgb, var(--none-bg) 40%, var(--panel)); }
tr.row-gF td { background: color-mix(in srgb, var(--none-bg) 80%, var(--panel)); }
.inj { margin-left: 6px; padding: 0 4px; border-radius: 3px; font-size: 10px; font-weight: 700;
  background: color-mix(in srgb, var(--trace) 22%, transparent); color: var(--trace); vertical-align: 1px; }

.results { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.results button {
  padding: 4px 10px 4px 4px; border-radius: 6px; cursor: pointer; font: inherit;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
}
.results button:hover { border-color: var(--accent); }
.player-name { font-size: 20px; margin-top: 16px; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 2px 0; }
.score-cards { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; margin-top: 10px; }
@media (max-width: 800px) { .score-cards { grid-template-columns: 1fr; } }
.score-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; min-width: 0; }
.score-label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.score-big { font-size: 26px; font-weight: 700; margin: 2px 0; }
.grade.big { font-size: 20px; padding: 2px 10px; }
.small { font-size: 12px; margin-top: 4px; }
table.mini { margin-top: 6px; width: auto; }
table.mini td { padding: 3px 10px 3px 0; font-size: 13px; }
.age { display: inline-block; min-width: 28px; padding: 1px 6px; border-radius: 4px; font-weight: 700; text-align: center; }
.age.young { background: #d6e6ff; color: #1d4ea8; }
.age.middle { background: #fff1b8; color: #7a5a00; }
.age.older { background: #ffd9b8; color: #9a4400; }
@media (prefers-color-scheme: dark) {
  .age.young { background: #1f3560; color: #b9d2ff; }
  .age.middle { background: #4d4214; color: #ffe58a; }
  .age.older { background: #5a3216; color: #ffc08a; }
}
table.players tr.tier-row td { background: #1f6fe0; color: #fff; text-align: left; font-size: 12px; font-weight: 700;
  padding: 3px 12px; border-bottom: 0; }
@media (prefers-color-scheme: dark) { table.players tr.tier-row td { background: #2c5fb8; } }
/* Faint row tint by position on the player list */
table.players tr.pos-RB td, table.mg-roster tr.pos-RB td { background: color-mix(in srgb, #8a4fd1 7%, var(--panel)); }
table.players tr.pos-WR td, table.mg-roster tr.pos-WR td { background: color-mix(in srgb, #2f6fd6 7%, var(--panel)); }
table.players tr.pos-TE td, table.mg-roster tr.pos-TE td { background: color-mix(in srgb, #e07a1f 8%, var(--panel)); }
table.players tr.pos-QB td, table.mg-roster tr.pos-QB td { background: color-mix(in srgb, #d6b400 9%, var(--panel)); }
table.players tr.pos-DST td, table.mg-roster tr.pos-DST td { background: color-mix(in srgb, #d6b400 9%, var(--panel)); }
table.players tr.pos-K td, table.mg-roster tr.pos-K td { background: color-mix(in srgb, #14a3a3 8%, var(--panel)); }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
table.players a { color: var(--text); text-decoration: none; }
/* First three columns (FP rank, FP pos, JC's value): two-line small headers, tight padding, for phones. */
table.players th.tight { white-space: pre-line; font-size: 11px; line-height: 1.15; padding: 6px 4px; vertical-align: bottom; }
table.players td.tight { padding-left: 4px; padding-right: 4px; width: 1%; }
@media (max-width: 700px) {
  table.players th, table.players td { padding-left: 5px; padding-right: 5px; }
  table.players td { font-size: 14px; }
}
.back { margin: 0 0 6px; }
.back-alt { margin-left: 14px; font-size: 13px; }
.contract-line { margin: 4px 0 8px; }
.small-pct { font-size: 12px; }
.single-card { display: inline-block; min-width: 320px; max-width: 100%; }
h3 { font-size: 14px; margin: 16px 0 6px; }
td.games-cell { cursor: help; font-weight: 600; }
td.games-cell.boom { color: var(--ok); }
td.games-cell.bust { color: var(--bad); }
.game-tip { position: absolute; z-index: 50; display: none; max-width: min(720px, calc(100vw - 16px)); padding: 8px 10px;
  background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18); font-size: 12px; pointer-events: none; }
.game-tip-title { font-weight: 700; margin-bottom: 4px; }
.game-tip .game-tip-title ~ .game-tip-title { margin-top: 8px; }
.game-tip td.muted { white-space: normal; min-width: 260px; }
td.pick.has-tip { cursor: help; }
a.plain-link { color: inherit; text-decoration: none; }
a.plain-link:hover { text-decoration: underline; }
.tip-pick { margin-top: 10px; padding-top: 8px; border-top: 2px solid var(--line, #ddd); }
.tip-pick-head { font-weight: 700; font-size: 1.05em; margin: 0 -10px 6px; padding: 4px 10px; background: rgba(31, 111, 224, 0.1); border-left: 3px solid #1f6fe0; }
.tip-trade { margin: 6px 0 8px; }
.tip-trade + .tip-trade { padding-top: 6px; border-top: 1px dashed var(--line, #ddd); }
.tip-step { margin-bottom: 4px; }
table.tip-sides { border-collapse: collapse; }
.game-tip table.tip-sides th, .game-tip table.tip-sides td { padding: 3px 10px; border: 1px solid var(--line, #ddd); text-align: left; vertical-align: top; white-space: nowrap; }
table.tip-sides thead th { font-weight: 700; }
table.tip-sides tbody th { font-weight: 600; color: var(--muted, #6b7280); }
ul.tip-list { margin: 0; padding: 0; list-style: none; }
ul.tip-list li.this-pick { font-weight: 700; background: #fff3b0; border-radius: 3px; padding: 0 3px; margin: 0 -3px; }
@media (prefers-color-scheme: dark) { ul.tip-list li.this-pick { background: #5a4a00; } }
.game-tip td { padding: 2px 6px; border: 0; text-align: left; white-space: nowrap; }
.game-tip td.num { text-align: right; font-weight: 700; }
.page-notes { margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--line); }
.page-notes p { margin: 0 0 6px; }
table.gamelog td { padding: 4px 8px; }
table.gamelog td.bar-cell { width: 160px; min-width: 120px; }
.bar { display: block; height: 10px; border-radius: 3px; background: var(--muted); }
.bar.boom { background: var(--many-bg); } .bar.start { background: #6fbf86; }
.bar.meh { background: #c9b26b; } .bar.bust { background: var(--bad); }
.wk-tag { display: inline-block; min-width: 42px; padding: 0 5px; border-radius: 4px; font-size: 12px; font-weight: 700; text-align: center; }
.wk-tag.boom { background: var(--many-bg); color: var(--many-text); }
.wk-tag.start { background: var(--one-bg); color: var(--one-text); }
.wk-tag.meh { background: color-mix(in srgb, var(--muted) 18%, transparent); color: var(--text); }
.wk-tag.bust { background: var(--none-bg); color: var(--none-text); }
table.gamelog tr.dnp td { color: var(--muted); font-style: italic; }
table.mini.contract { margin: 0; }
table.mini.contract th, table.mini.contract td { padding: 4px 12px; }
table.mini.contract tr.current-year td { font-weight: 700; background: color-mix(in srgb, var(--accent) 8%, var(--panel)); }
.dyn-note { font-size: 14px; font-weight: 500; }
.trade-note { margin: 0 0 4px; font-size: 13px; color: var(--muted); }
a { color: var(--accent); }

.trace-summary { margin: 10px 0 0; }
.trace-summary p { margin: 2px 0; }
.pos { color: var(--ok); font-weight: 600; }
.neg { color: var(--bad); font-weight: 600; }
/* Quality of Chances (0-100) */
.qoc { font-weight: 800; font-variant-numeric: tabular-nums; }
.qoc-hi { color: #1e8a3e; }
.qoc-mid { color: var(--accent); }
.qoc-lo { color: #a07a12; }
.qoc-min { color: var(--muted); }
.ph-tile.qoc-tile { cursor: help; }
.qoc-early { opacity: 0.55; }
.qoc-splits { margin-top: 8px; }
table.qoc-split { border-collapse: collapse; font-size: 12px; width: auto; margin: 2px 0 4px; }
table.qoc-split th, table.qoc-split td { padding: 2px 6px; line-height: 1.3; }
table.qoc-split .qs-title { font-weight: 700; color: var(--text, inherit); white-space: nowrap; padding-left: 0; }
table.qoc-split .qs-group { text-align: center; font-weight: 700; }
table.qoc-split .qs-row { font-weight: 600; white-space: nowrap; padding-left: 0; }
table.qoc-split .qs-g { border-left: 1px solid rgba(127, 127, 127, 0.3); }
table.qoc-split .qs-worth th { font-weight: 400; font-size: 11px; padding-top: 0; }
table.qoc-split .qs-heat { background: color-mix(in srgb, var(--accent) calc(var(--h) * 70%), transparent); }
table.qoc-games { font-size: 12px; }
table.qoc-games th, table.qoc-games td { padding: 1px 8px; }
table.qoc-split td.qs-dim { color: var(--muted); font-weight: 400; }
table.qoc-games { width: auto; }
table.qoc-games tr.qoc-tot td { border-top: 1px solid rgba(127,127,127,0.35); font-weight: 700; }
.inj-chip.likely-out { background: rgba(192, 57, 43, 0.18); color: #b03a2e; }
.game-tip td.qs-box { white-space: nowrap; font-weight: 400; color: var(--muted); }
/* QoC weekly bar chart */
.qoc-bar { fill: currentColor; }
.qoc-bar.qoc-hi { color: #1e8a3e; }
.qoc-bar.qoc-mid { color: var(--accent); }
.qoc-bar.qoc-lo { color: #c9a227; }
.qoc-bar.qoc-min { color: #9aa0a6; }
.qoc-bar.short { opacity: 0.4; }
.qoc-bar-lbl { font-size: 11px; font-weight: 700; fill: var(--text, #222); }
.qoc-avg { stroke: var(--muted); stroke-dasharray: 5 4; stroke-width: 1.5; }
.gl-k.qoc-k { background: currentColor; }
.gl-k.qoc-k.qoc-hi { color: #1e8a3e; } .gl-k.qoc-k.qoc-mid { color: var(--accent); } .gl-k.qoc-k.qoc-lo { color: #c9a227; } .gl-k.qoc-k.qoc-min { color: #9aa0a6; }
.nowrap { white-space: nowrap; }
/* Injury / practice tags beside a player's name */
.inj-chip.name-tag { margin-left: 6px; vertical-align: 2px; }
.inj-chip.prac.dnp { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.inj-chip.prac.ltd { background: rgba(232, 160, 40, 0.18); color: #a66a00; }
.inj-chip.prac.full { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.ph-inj .inj-chip { font-size: 13px; padding: 2px 8px; vertical-align: 6px; background: rgba(255, 255, 255, 0.85); }
/* Model history (Weekly review) */
.rv-tiles { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 14px; }
.rv-tile { background: var(--panel, #fff); border: 1px solid var(--line, #ddd); color: inherit; min-width: 150px; }
.rv-tile .ph-tile-label, .rv-tile .ph-tile-sub { color: var(--muted); }
.rv-tile .ph-tile-value { color: var(--accent); }
.rv-line { fill: none; stroke-width: 2.2; }
.rv-line.now, .rv-dot.now { stroke: var(--accent); } .rv-dot.now { fill: var(--accent); }
.rv-line.then, .rv-dot.then { stroke: #e07a1f; } .rv-dot.then { fill: #e07a1f; }
.rv-line.fp, .rv-dot.fp { stroke: #8a8f98; stroke-dasharray: 5 4; } .rv-dot.fp { fill: #8a8f98; }
.gl-k.rv-k.now { background: var(--accent); } .gl-k.rv-k.then { background: #e07a1f; } .gl-k.rv-k.fp { background: #8a8f98; }
.dyn-axis.rv-sel { font-weight: 800; fill: var(--accent); }
.pv.missed { } 
.rv-actual { font-family: "Bahnschrift", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif; font-weight: 800; font-size: 1.15em; padding: 1px 7px; border-radius: 5px; font-variant-numeric: tabular-nums; }
.rv-actual.beat { color: #1e8a3e; background: color-mix(in srgb, #1e8a3e 12%, transparent); }
.rv-actual.met { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.rv-actual.missed { color: #c0392b; background: color-mix(in srgb, #c0392b 10%, transparent); }
.rv-line.base, .rv-dot.base { stroke: #8e44ad; stroke-dasharray: 2 3; } .rv-dot.base { fill: #8e44ad; }
.gl-k.rv-k.base { background: #8e44ad; }
table.rv-table { width: auto; }
table.rv-table th, table.rv-table td { padding-left: 7px; padding-right: 7px; }
table.rv-table td:nth-child(5), table.rv-table th:nth-child(5) { padding-left: 18px; }
table.rv-table { width: auto; }
table.rv-table th, table.rv-table td { padding-left: 6px; padding-right: 6px; }
table.rv-table td:nth-child(5), table.rv-table th:nth-child(5) { padding-left: 16px; }
.model-proj { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.wk-proj.late-news { color: #c0392b; }
.rv-line.model, .rv-dot.model { stroke: #5dade2; stroke-dasharray: 6 3; } .rv-dot.model { fill: #5dade2; }
.gl-k.rv-k.model { background: #5dade2; }
tr.gl-upcoming td { background: color-mix(in srgb, var(--accent) 7%, transparent); font-style: italic; }
.refresh-note { margin-left: 12px; white-space: nowrap; }
.refresh-note.busy { color: var(--accent); font-weight: 600; }
.refresh-note.busy::before { content: "⟳ "; display: inline-block; }
/* Weekly table: dense columns (my request 2026-11-22) */
table.weekly { width: auto; }
table.weekly th, table.weekly td { padding: 5px 6px; white-space: nowrap; }
table.weekly th.tight, table.weekly td.tight { padding-left: 4px; padding-right: 4px; }
table.weekly th { white-space: pre-line; line-height: 1.15; }
table.weekly td:nth-child(n+1):nth-child(-n+6) { padding-left: 4px; padding-right: 4px; }
.vsfp { font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
.vsfp.won { background: color-mix(in srgb, #1e8a3e 14%, transparent); color: #1e8a3e; }
.vsfp.lost { background: color-mix(in srgb, #c0392b 12%, transparent); color: #c0392b; }
.vsfp.tie { color: var(--muted); }
.inj-chip.game.has-why { box-shadow: inset 0 -2px 0 currentColor; }
.inj-chip.game.has-why::after { content: " ?"; font-size: 10px; opacity: 0.7; }
/* "Why we missed" bubble */
.why-call { margin: 4px 0 2px; }
.why-box { margin-top: 8px; padding: 8px 10px; border-radius: 6px; max-width: 560px; white-space: normal; }
.why-box.beat { background: color-mix(in srgb, #1e8a3e 9%, transparent); border-left: 3px solid #1e8a3e; }
.why-box.miss { background: color-mix(in srgb, #c0392b 8%, transparent); border-left: 3px solid #c0392b; }
.why-main { font-weight: 800; margin-bottom: 2px; }
.why-list { margin: 6px 0 0; padding-left: 18px; }
.why-list li { margin: 2px 0; line-height: 1.35; }
/* Live games: always a green tint (my request 2026-11-22; replaces the green/gold/red game-progress colors). */
.inj-chip.game.live, .inj-chip.game.live.prog-early, .inj-chip.game.live.prog-mid, .inj-chip.game.live.prog-late {
  background: color-mix(in srgb, #1e8a3e 16%, transparent); color: #1e8a3e; }
.why-causes { margin-top: 8px; padding-top: 6px; border-top: 1px dashed rgba(127,127,127,0.35); }
.why-sub { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.why-sum { font-weight: 800; font-size: 1.05em; margin-bottom: 4px; }
.why-main.sub { font-weight: 600; font-size: 0.92em; }
.why-sum { font-weight: 800; font-size: 1.05em; margin-bottom: 4px; }
.why-main.sub { font-weight: 600; font-size: 0.92em; }

/* League site: player pages don't exist there, so player links are plain text. */
body.league a[href^="#players"] { pointer-events: none; color: inherit; text-decoration: none; }
.pub-grade { margin-left: 8px; font-size: 12px; }
.pub-count { margin-right: 8px; white-space: nowrap; }

/* Records page */
.rec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(520px, 1fr)); gap: 8px 28px; }
.rec-block h2 { margin-top: 18px; }
table.rec-table { width: auto; font-size: 13px; }
table.rec-table td, table.rec-table th { padding: 3px 8px; white-space: nowrap; }
.rec-scoring { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: color-mix(in srgb, var(--ok) 12%, transparent); }
.rec-scoring.std { background: color-mix(in srgb, #d4a017 20%, transparent); }
.rec-tip { max-width: 520px; }
.rec-weeks { display: flex; flex-wrap: wrap; gap: 3px; margin: 6px 0; }
.rec-wk { font-size: 11px; padding: 1px 5px; border-radius: 4px; background: color-mix(in srgb, var(--muted, #888) 12%, transparent); }
.rec-wk.win { background: color-mix(in srgb, var(--ok) 18%, transparent); }
.rec-wk.loss { background: color-mix(in srgb, var(--bad) 15%, transparent); }

/* ---- Phones (2026-11-26, my request: the site was hard to use on mobile) ---- */
/* Compact pick grid: Picks count first, X's only, tight columns so 5+ rounds fit on a phone. */
/* Cells are 40px tap targets with 2px gaps (my rule 2026-11-26: each cell must be easy to tap on its own); ~6 rounds fit. */
.grid.compact th, .grid.compact td { padding: 6px 3px; font-size: 13px; }
.grid.compact td.pick { min-width: 40px; height: 40px; padding: 0 3px; border-width: 2px; }
.grid.compact th.owner { font-size: 12px; padding-left: 6px; padding-right: 4px; }
.grid.compact td.num, .grid.compact th.num { padding-right: 6px; }
@media (max-width: 700px) {
  .top { gap: 6px 10px; padding: 8px 12px; }
  .brand { font-size: 15px; width: 100%; }
  .nav { flex-wrap: wrap; gap: 2px; }
  .nav a { padding: 5px 9px; font-size: 14px; }
  .status { margin-left: 0; font-size: 12px; }
  .refresh-note { display: none; }
  main { padding: 12px; }
  h1 { font-size: 18px; }
  h2 { font-size: 15px; margin-top: 20px; }
  th, td { padding: 5px 6px; }
  .controls { gap: 8px; }
  .tabs { flex-wrap: wrap; }
  .tabs button { padding: 4px 9px; font-size: 13px; }
  .rec-grid { grid-template-columns: 1fr; }
  table.rec-table { font-size: 12px; }
  .game-tip { font-size: 12px; max-width: calc(100vw - 16px); }
  .pl-tip, .rec-tip { max-width: calc(100vw - 36px); }
}
