/* fantasy.css - follows the raegune.ca homepage theme ("line", 2026-10-22) as the box pool does:
   dark by default, light from the system setting, Syne headings, IBM Plex text, yellow only to
   mark what is selected. Legibility comes first on this page, so it keeps red and green for good
   and bad, a second (cyan) accent for information, and compact tables.
   Strict CSP: no inline style or script; bar heights are set through the CSSOM in fantasy.js. */

@font-face { font-family: "Syne"; src: url("/site/fonts/syne-latin-wght-normal.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/site/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/site/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/site/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600 800; font-display: swap; }

:root {
  --build: "2026-11-20";   /* matches BUILD in fantasy.js and update-fantasy.py */
  --y: #ffff00; --on-y: #0b0b0b;
  --bg: #0b0b0b;
  --fg: #ececec;
  --dim: #8d8d8d;
  --line: #262626;
  --card: #161616;
  --accent: #ffff00;        /* the selection marker: current tab, today, hover */
  --accent2: #5ad7e8;       /* information: links, power-play units, keepers, core */
  --on-accent2: #0b0b0b;
  --good: #4cc38a; --on-good: #0b0b0b;
  --bad: #ff6b5b; --on-bad: #0b0b0b;
  --amber: #ffb020;
  --amber-bg: #2a2008;
  --h1: #14281c; --h2: #1b3d29; --h3: #245a3a;
  --l1: #2e1a15; --l2: #47231a; --l3: #63291d;
  --on: #5ad7e8;
  --bar: #3a3a3a; --bar-in: #8d8d8d;
  --gutter: clamp(1rem, 4vw, 3rem);
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f3ee;
    --fg: #121212;
    --dim: #6a6a66;
    --line: #d6d5cf;
    --card: #ffffff;
    --accent: #121212;      /* yellow is only ever a fill behind dark text in light mode */
    --accent2: #006f80;
    --on-accent2: #ffffff;
    --good: #1a7a46; --on-good: #ffffff;
    --bad: #c0281b; --on-bad: #ffffff;
    --amber: #9a6400;
    --amber-bg: #f7ecd2;
    --h1: #dcefe1; --h2: #bfe2c9; --h3: #93cea4;
    --l1: #f6e1da; --l2: #efc6b8; --l3: #e3a08b;
    --on: #006f80;
    --bar: #d6d5cf; --bar-in: #6a6a66;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.55 "Plex", system-ui, -apple-system, "Segoe UI", sans-serif;
}
[hidden] { display: none !important; }
::selection { background: var(--y); color: var(--on-y); }

.top, main, footer { max-width: 1800px; margin: 0 auto; padding: 0 var(--gutter); }
.top { padding-top: 1.25rem; }
.meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; align-items: baseline;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.meta a { color: inherit; text-decoration: none; padding: 0.1em 0.3em; margin: 0 -0.3em; }
.meta a:hover, .meta a:focus-visible { background: var(--y); color: var(--on-y); outline: none; }
.pages { margin-left: auto; display: flex; gap: 1.25rem; }
.pages a[aria-current] { color: var(--fg); box-shadow: inset 0 -2px 0 var(--accent); }
.pages a[aria-current]:hover { box-shadow: none; }
/* Syne's default digits are old-style; force lining figures */
h1, h2, .big { font-family: "Syne", "Plex", sans-serif; letter-spacing: -0.03em; font-variant-numeric: lining-nums; }
h1 { font-size: clamp(1.9rem, 6vw, 3.2rem); line-height: 1; margin: 1rem 0 0.4rem; font-weight: 800; }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.15; margin: 2rem 0 0.75rem; font-weight: 700; }
h3 { font-size: 0.8rem; margin: 1.25rem 0 0.5rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
.card h3 { margin-top: 0; }
.sub { margin: 0; color: var(--dim); font-size: 0.9rem; padding-top: 0.6rem; border-top: 1px solid var(--line); }
.dim { color: var(--dim); }
.status { color: var(--dim); padding: 30px 0; }
.hint { color: var(--dim); font-size: 0.86rem; margin: 10px 0; max-width: 78ch; }

/* sections are separated by rules, as on the homepage; a warning keeps a tinted panel */
.card { padding: 1rem 0; margin: 0.75rem 0; border-top: 1px solid var(--line); }
.card.warn { border: 0; border-left: 3px solid var(--amber); background: var(--amber-bg); padding: 0.75rem 1rem; }
.banner { background: var(--amber-bg); border-left: 3px solid var(--amber); color: var(--fg); padding: 10px 14px; margin: 14px 0 0; font-size: 14px; }

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 1px solid var(--dim); background: transparent; border-radius: 0; padding: 7px 12px; font-weight: 500; }
@media (hover: hover) { button:hover:not([disabled]) { background: var(--y); color: var(--on-y); border-color: var(--y); } }
@media (prefers-color-scheme: light) and (hover: hover) { button:hover:not([disabled]) { border-color: var(--fg); } }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
input, select { border: 1px solid var(--line); background: var(--card); border-radius: 0; padding: 7px 10px; min-width: 0; }
.ghost { background: transparent; }
.small { font-size: 13px; padding: 3px 9px; }
.link { border: 0; background: none; padding: 0; color: var(--fg); text-align: left; font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--dim); text-underline-offset: 3px; }
@media (hover: hover) { .link:hover:not([disabled]) { background: var(--y); color: var(--on-y); text-decoration: none; border: 0; } }

/* PIN gate */
.gate { max-width: 340px; margin-top: 40px; border-top: 0; }
.gate label { display: block; font-weight: 700; margin-bottom: 6px; }
.gate .row { display: flex; gap: 8px; }
.gate input { flex: 1; font-size: 20px; letter-spacing: 0.2em; }
.gate button { background: var(--y); color: var(--on-y); border-color: var(--y); font-weight: 600; }
@media (prefers-color-scheme: light) { .gate button { border-color: var(--fg); } }
.error { color: var(--bad); min-height: 1.5em; margin: 8px 0 0; font-size: 14px; }

/* tabs */
.tabs { display: flex; gap: 4px; margin: 18px 0 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
@media (hover: hover) { .tabs button:hover:not([disabled]) { background: none; color: var(--fg); border-color: transparent; border-bottom-color: var(--dim); } }
.tabs button { border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: none; padding: 9px 12px; color: var(--dim); font-weight: 500; white-space: nowrap; }
.tabs button[aria-selected="true"], .tabs button[aria-selected="true"]:hover { color: var(--fg); border-bottom-color: var(--accent); font-weight: 600; }

/* matchup */
.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.side { min-width: 0; }
.side.right { text-align: right; }
.tname { font-weight: 600; font-size: 17px; line-height: 1.25; }
.trec { color: var(--dim); font-size: 13.5px; white-space: nowrap; }
.tally { text-align: center; }
.big { font-size: 46px; font-weight: 800; line-height: 1; }
.tsub { color: var(--dim); font-size: 13px; margin-top: 4px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 14px 0 6px; padding: 10px 0 0; border-top: 1px solid var(--line); }
.facts div { display: flex; gap: 8px; align-items: baseline; }
.facts dt { color: var(--dim); font-size: 13px; }
.facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.plan p { margin: 6px 0; }
.plan-adds { margin: 4px 0 8px; padding-left: 18px; }
.plan-adds li { margin: 4px 0; }
.plan .bad { color: var(--bad); }
.plan > button, .swing button { background: var(--y); border-color: var(--y); color: var(--on-y); font-weight: 600; }
@media (prefers-color-scheme: light) { .plan > button, .swing button { border-color: var(--fg); } }
.plan-older { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.plan-entry { border-left: 3px solid var(--line); padding: 2px 0 2px 10px; margin: 10px 0; }
.plan-entry p { margin: 3px 0; }
.subtabs { display: flex; gap: 4px; margin: 4px 0 8px; border-bottom: 1px solid var(--line); }
.subtabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; padding: 6px 10px; color: var(--dim); font-weight: 600; }
@media (hover: hover) { .subtabs button:hover:not([disabled]) { background: none; color: var(--fg); border-color: transparent; border-bottom-color: var(--dim); } }
.subtabs button.on, .subtabs button.on:hover { color: var(--fg); border-bottom-color: var(--accent); }
.swing { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.swing p { margin: 0; flex: 1 1 320px; }
.others { margin: 10px 0 0; padding-left: 18px; }
summary { cursor: pointer; font-weight: 600; }

.chip { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.chip.win { background: var(--good); color: var(--on-good); }
.chip.loss { background: var(--bad); color: var(--on-bad); }
.chip.win.mid { background: var(--h3); color: var(--fg); border-color: var(--good); }
.chip.loss.mid { background: var(--l3); color: var(--fg); border-color: var(--bad); }
.chip.win.soft { background: transparent; color: var(--good); border-color: var(--good); }
.chip.loss.soft { background: transparent; color: var(--bad); border-color: var(--bad); }
.chip.toss { background: transparent; color: var(--amber); border-color: var(--amber); }
.chip.none { color: var(--dim); }

/* tables */
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* a second scroll bar above a table too wide for its box; touch screens swipe instead */
.scroll-top { overflow-x: auto; overflow-y: hidden; }
.scroll-top > div { height: 1px; }
@media (pointer: coarse) { .scroll-top { display: none; } }
/* the player stays in view while the rest of a wide table scrolls */
table.data td.player, table.data:not(.cats) thead th:nth-child(2) { position: sticky; left: 0; background: var(--bg); z-index: 1; }
table.data { border-collapse: collapse; width: 100%; font-size: 14px; }
table.data th, table.data td { padding: 6px 7px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
table.data thead th { font-size: 11.5px; font-weight: 500; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; vertical-align: bottom; }
table.data tbody th { font-weight: 600; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; }
.strong { font-weight: 600; }
table.cats { max-width: 620px; }
table.cats td, table.cats th { padding: 7px 8px; }
td.player { min-width: 150px; white-space: normal !important; }
.pname { font-weight: 600; }
.pname.unmatched { color: var(--dim); font-style: italic; }
.tm, .slot { color: var(--dim); font-size: 12.5px; }
.slot { font-weight: 600; }
tr.bench td { background: color-mix(in srgb, var(--line) 28%, transparent); }
tr.mine td { background: color-mix(in srgb, var(--accent2) 14%, transparent); }
table.data tr.mine td.player { background: color-mix(in srgb, var(--accent2) 14%, var(--bg)); }
.missed { color: var(--bad); }
.up { color: var(--good); font-weight: 700; }
.down { color: var(--bad); }
td.cat { min-width: 44px; }
td.cat.off { opacity: 0.35; }
.h1 { background: var(--h1); } .h2 { background: var(--h2); } .h3 { background: var(--h3); }
.l1 { background: var(--l1); } .l2 { background: var(--l2); } .l3 { background: var(--l3); }

th.sortable button { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; }
@media (hover: hover) { th.sortable button:hover:not([disabled]) { background: var(--y); color: var(--on-y); } }
th.sorted button { color: var(--fg); font-weight: 600; }
th.sorted button::after { content: " \25BE"; }

.tag { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 3px; font-size: 11px; font-weight: 600; vertical-align: 1px; }
.tag.inj { background: var(--bad); color: var(--on-bad); }
.tag.wv { border: 1px solid var(--accent2); color: var(--accent2); }
.tag.pp1 { background: var(--accent2); color: var(--on-accent2); margin: 0 6px 0 0; }
.tag.pp2 { border: 1px solid var(--accent2); color: var(--accent2); margin: 0 6px 0 0; }
.trend { display: inline-block; width: 12px; margin-left: 3px; font-size: 9px; vertical-align: 1px; }
.trend.up { color: var(--good); }
.trend.down { color: var(--bad); }
td.ice { min-width: 62px; }
.tag.gs.yes { background: var(--good); color: var(--on-good); }
.tag.gs.no { border: 1px solid var(--bad); color: var(--bad); font-weight: 650; }
.tag.fresh { background: var(--good); color: var(--on-good); }
.tag.keep { background: var(--accent2); color: var(--on-accent2); }
.tag.stream { border: 1px dashed var(--accent2); color: var(--accent2); font-weight: 650; }
button.lock { font: inherit; font-size: 12px; min-width: 3.4em; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line); background: transparent; color: var(--dim); cursor: pointer; }
button.lock.on { background: var(--accent2); border-color: var(--accent2); color: var(--on-accent2); font-weight: 600; }
table.pairs td.player { white-space: normal; min-width: 14em; }
.tag.luck.hot { border: 1px solid var(--bad); color: var(--bad); font-weight: 650; }
.tag.luck.cold { border: 1px solid var(--accent2); color: var(--accent2); font-weight: 650; }
.tag.brk { border: 1px solid var(--good); color: var(--good); font-weight: 650; }
.tag.thin { border: 1px solid var(--amber); color: var(--amber); font-weight: 650; }

/* games strip: one square per day of the week */
.strip { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 13px; gap: 3px; vertical-align: middle; }
.strip .d { width: 13px; height: 13px; border-radius: 3px; border: 1px solid var(--line); font-style: normal; }
.strip .d.on { background: var(--on); border-color: var(--on); }
.strip .d.done { border-color: var(--dim); background: color-mix(in srgb, var(--dim) 35%, transparent); }
.strip .d.today { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--accent); }
.strip .d.b2b { border: 2px dashed var(--amber); }
.strip.head .d { border: 0; font-size: 10px; line-height: 13px; text-align: center; color: var(--dim); font-weight: 700; box-shadow: none; }
.strip.head .d.today { color: var(--accent); }
/* weeks strip (multi-week Add value view): one box per matchup week, holding the games he would start */
.wstrip { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 19px; gap: 3px; vertical-align: middle; }
.wstrip .w { width: 19px; height: 19px; border-radius: 3px; border: 1px solid var(--line); font-style: normal; font-size: 11px; line-height: 17px; text-align: center; font-variant-numeric: tabular-nums; }
.wstrip .w.g0 { color: var(--dim); }
.wstrip .w.g1 { background: color-mix(in srgb, var(--on) 14%, transparent); }
.wstrip .w.g2 { background: color-mix(in srgb, var(--on) 30%, transparent); }
.wstrip .w.g3 { background: color-mix(in srgb, var(--on) 55%, transparent); }
.wstrip .w.g4 { background: var(--on); border-color: var(--on); color: var(--on-accent2); font-weight: 600; }
.wstrip .w.short { border-color: var(--bad); }
.wstrip.head .w { border: 0; font-size: 10px; color: var(--dim); font-weight: 700; }

/* free-agent controls */
.controls { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; }
.ctl { display: flex; flex-direction: column; gap: 4px; min-width: 0; max-width: 100%; }
.ctl.grow { flex: 1 1 260px; }
.ctl-label { font-size: 11.5px; font-weight: 500; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
.seg { display: inline-flex; flex-wrap: wrap; max-width: 100%; border: 1px solid var(--dim); overflow: hidden; }
.seg button { flex: 1 1 auto; border: 0; border-radius: 0; padding: 6px 11px; background: transparent; }
.seg button + button { border-left: 1px solid var(--dim); }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chipbtn { padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--dim); border-color: var(--line); }
.chipbtn[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); font-weight: 600; }
.more { text-align: center; }
.chipbtn[disabled] { opacity: 0.4; cursor: default; }
.chipbtn[disabled]:hover { border-color: var(--line); background: transparent; color: var(--dim); }
.lead { margin: 14px 0 0; font-weight: 600; max-width: 90ch; }
.smalltext { font-size: 12.5px; }
table.data td.wrap { white-space: normal; min-width: 150px; }
.warnText { color: var(--bad); font-weight: 600; }
table.narrow { width: auto; min-width: min(100%, 560px); }
table.lineup { max-width: 760px; }
.today { margin: 0 0 10px; }
.changes { margin: 0; padding-left: 18px; }
.changes li + li { margin-top: 5px; }
.changes .mineline { font-weight: 600; }
.changes .mineline::marker { color: var(--accent); }
.hints { margin: 0; padding-left: 18px; }
.hints li + li { margin-top: 6px; }
.prose p { max-width: 78ch; margin: 0 0 10px; }

footer { margin-top: 40px; padding-bottom: 28px; color: var(--dim); font-size: 13.5px; border-top: 1px solid var(--line); padding-top: 14px; }
footer p { margin: 4px 0; }
.attrib a { color: var(--fg); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.attrib a:hover { text-decoration: underline; }
.ylogo { height: 22px; width: auto; }
.small { font-size: 12.5px; }

@media (max-width: 640px) {
  h1 { font-size: 26px; }
  .big { font-size: clamp(24px, 7.5vw, 36px); white-space: nowrap; }
  button.tally-btn { padding: 4px 0; }
  .tname { font-size: 15px; }
  /* names and records side by side above a full-width score */
  .vs { grid-template-columns: 1fr 1fr; grid-template-areas: "me opp" "score score"; row-gap: 10px; }
  .vs > .side:first-child { grid-area: me; }
  .vs > .side.right { grid-area: opp; }
  .vs > .tally { grid-area: score; justify-self: center; }
  .tsub { font-size: 11.5px; }
  .vs { gap: 8px; }
  table.data { font-size: 13px; }
  table.data th, table.data td { padding: 6px 5px; }
  .controls { gap: 10px 14px; }
  .card.warn { padding: 10px 12px; }
  table.cats { font-size: 13px; }
  table.cats td, table.cats th { padding: 7px 4px; }
  table.cats thead th { letter-spacing: 0; }
  .chip { font-size: 11.5px; padding: 1px 7px; }
  table.cats.full .winp { display: none; }   /* six columns is all a phone fits; the chip carries the call */
  table.cats .stopp { display: none; }   /* the opponent's start figure is in the Start cell's tooltip */
}
tr.cmp td { background: color-mix(in srgb, var(--line) 35%, var(--bg)); }
tr.cmp.end td { border-bottom: 2px solid var(--line); }
tr.cmp.split td { font-size: 0.92em; }
tr.cmp.split td.player { font-style: italic; }
/* Add value views: the view's own horizon, and the other horizons' Δ for the same swap */
th.cur { box-shadow: inset 0 -2px 0 var(--accent); }
td.side { font-weight: 400; opacity: 0.85; }
/* the "drops" button under a free agent's name, and the drop table it opens */
.dtbtn { display: inline-block; margin-left: 6px; padding: 0 5px; border: 1px solid var(--line); border-radius: 3px; background: none; color: var(--dim); font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; vertical-align: 1px; }
.dtbtn:hover, .dtbtn.open { color: var(--fg); border-color: var(--dim); }
tr.droprow > td { padding: 6px 8px 10px 18px; white-space: normal; }
tr.droprow .dtwrap { position: sticky; left: 18px; max-width: min(760px, calc(100vw - 2 * var(--gutter) - 24px)); }
tr.droprow .hint { margin: 0 0 6px; white-space: normal; }
table.droptab { border-collapse: collapse; width: auto; }
table.droptab th, table.droptab td { padding: 3px 10px 3px 0; border-bottom: 1px solid var(--line); text-align: left; }
table.droptab th.num, table.droptab td.num { text-align: right; }
table.data table.droptab th, table.data table.droptab td { position: static; background: none; }
table.droptab td.player { padding-left: 0; }
table.droptab tr.open td { background: color-mix(in srgb, var(--accent2) 12%, transparent); }
table.droptab td.best { outline: 1px solid currentColor; outline-offset: -3px; border-radius: 3px; }
.tag.core { border: 1px solid var(--accent2); color: var(--accent2); }
tr.cmp td.h1, tr.bench td.h1 { background: var(--h1); } tr.cmp td.h2, tr.bench td.h2 { background: var(--h2); } tr.cmp td.h3, tr.bench td.h3 { background: var(--h3); }
tr.cmp td.l1, tr.bench td.l1 { background: var(--l1); } tr.cmp td.l2, tr.bench td.l2 { background: var(--l2); } tr.cmp td.l3, tr.bench td.l3 { background: var(--l3); }
table.data tr.cmp td.player { background: color-mix(in srgb, var(--line) 35%, var(--bg)); padding-left: 18px; }
.link.open { text-decoration: underline; }

.trade-pick select { max-width: 100%; }
.trade-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; margin: 8px 0 12px; }
.trade-list h3 { font-size: 14px; margin: 0 0 4px; }
.trade-row { display: flex; gap: 8px; align-items: baseline; padding: 3px 0; border-bottom: 1px solid var(--line); }
.trade-row label { cursor: pointer; }
@media (max-width: 640px) { .trade-cols { grid-template-columns: 1fr; } }
ul.alerts { list-style: none; padding: 0; margin: 8px 0; max-width: 78ch; }
ul.alerts li { padding: 6px 0 6px 10px; border-left: 3px solid var(--line); margin-bottom: 4px; }
ul.alerts li.high { border-left-color: var(--bad); }
td.nowrap { white-space: nowrap; }
.tag.when { margin-left: 0; border: 1px solid currentColor; }
.tag.when.now { color: var(--good); }
.tag.when.wait { color: var(--dim); }
.tag.when.claim { color: var(--accent2); }
.plan .warnline { border-left: 3px solid var(--bad); padding-left: 8px; }

/* the score on a matchup card opens how the week could end */
button.tally-btn { border: 0; background: none; padding: 4px 8px; color: inherit; text-align: center; font-weight: inherit; }
button.tally-btn:hover:not([disabled]) { background: none; color: inherit; border: 0; }
button.tally-btn .cue { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--dim); border-bottom: 1px solid var(--dim); }
button.tally-btn[aria-expanded="true"] .cue { color: var(--on-y); background: var(--y); border-bottom-color: var(--y); }
@media (prefers-color-scheme: light) { button.tally-btn[aria-expanded="true"] .cue { border-bottom-color: var(--fg); } }
@media (hover: hover) { button.tally-btn:hover .cue { color: var(--on-y); background: var(--y); border-bottom-color: var(--y); } }
.spread { margin: 12px auto 4px; max-width: 560px; }
.spread-line { margin: 0 0 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 1.25rem; font-variant-numeric: tabular-nums; }
.spread-line span { white-space: nowrap; }
.spread-line strong { font-weight: 600; }
.spread-chart { display: flex; align-items: stretch; gap: 2px; height: 96px; }
.scol { flex: 1 1 0; display: flex; flex-direction: column; min-width: 0; }
.sbar-wrap { flex: 1; display: flex; align-items: flex-end; border-bottom: 1px solid var(--line); position: relative; }
/* the start of the week's range, outlined over today's bars */
.sghost { position: absolute; left: 0; right: 0; bottom: 0; border: 1.5px solid var(--accent2); border-bottom: 0; pointer-events: none; }
.sghost.mid { border-width: 2.5px; border-bottom: 0; }
.spread-line .slbl { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); margin-right: -0.6rem; }
.spread-line.st { color: var(--dim); font-size: 0.92em; }
.spread-line.st strong { color: var(--accent2); }
.skey { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 16px; margin: 4px 0 0; font-size: 12px; color: var(--dim); }
.skey .sw { display: inline-block; width: 10px; height: 10px; margin-right: 5px; vertical-align: -1px; background: var(--bar-in); }
.skey .sw.st { background: none; border: 1.5px solid var(--accent2); box-sizing: border-box; }
table.cats td.st { color: var(--accent2); }
.spread-tbl { display: none; margin: 0 auto 10px; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 14px; }
.spread-tbl th, .spread-tbl td { padding: 2px 8px; text-align: center; white-space: nowrap; }
.spread-tbl thead th { font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.spread-tbl tbody th { font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); text-align: left; padding-left: 0; }
.spread-tbl tbody td { font-weight: 600; }
.spread-tbl tr.st td { color: var(--accent2); }
@media (max-width: 640px) { .spread-line.wide { display: none; } .spread-tbl { display: table; } }
.sbar { width: 100%; background: var(--bar); }
.sbar.in { background: var(--bar-in); }
.sbar.mid { background: var(--fg); }
.slab { height: 16px; font-size: 11px; line-height: 16px; text-align: center; color: var(--dim); font-variant-numeric: tabular-nums; overflow: visible; white-space: nowrap; }
.slab-axis { margin: 2px 0 0; font-size: 11.5px; color: var(--dim); text-align: center; }
.spread .hint { margin: 8px auto 0; }

/* a general upgrade: the same drop gains this week, next week and over the long term */
.tag.upg { background: var(--good); color: var(--on-good); }
.plan-adds .tag.upg { margin-left: 0; }
table.data tr.upg td.player { box-shadow: inset 3px 0 0 var(--good); }

/* alerts: collapsible list and groups */
details.fold { border-top: 1px solid var(--line); }
details.fold > summary { padding: 8px 0; list-style-position: outside; }
details.fold.top { border-top: 0; margin-top: 1rem; }
details.fold.top > summary { font-family: "Syne", "Plex", sans-serif; font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 700; letter-spacing: -0.03em; }
details.fold.top > summary .dim { font-family: "Plex", sans-serif; font-size: 0.9rem; letter-spacing: 0; font-weight: 400; }
.folds { padding-left: 14px; }
details.fold.subfold > summary { font-size: 0.95rem; }
details.fold.gone > summary { color: var(--dim); }
ul.alerts.dead li { color: var(--dim); }
ul.alerts.dead li strong { color: var(--dim); }
ul.alerts .why { color: var(--fg); }
ul.alerts button.dismiss { margin-left: 8px; vertical-align: baseline; }

/* injured and unrostered: a tapped name opens his categories in a row under him */
td.catsrow { padding: 4px 6px 8px 18px; }
table.data.mini { width: auto; margin: 0; }
table.data.mini th, table.data.mini td { padding: 2px 8px; }
table.stash tr.opened td { border-bottom-color: transparent; }

/* scorecard: the calibration table under the weekly one */
.scroll.gap { margin-top: 18px; }

/* compare and watch list (2026-11-17) */
.marks { display: inline-flex; gap: 2px; margin-left: 6px; vertical-align: 1px; }
.marks .mk { border: 0; padding: 0 3px; min-width: 1.4em; font-size: 13px; line-height: 1.3; color: var(--dim); background: none; font-weight: 600; }
.marks .mk[aria-pressed="true"] { color: var(--accent2); }
@media (pointer: coarse) { .marks .mk { padding: 2px 6px; font-size: 15px; } }
.cmp-pick .ctl.grow { min-width: min(100%, 320px); }
.cmp-hits { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cmp-chips { margin: 8px 0; }
.cmp-chips button.pick, .cmp-chips button.watch { font-size: 13px; padding: 3px 9px; font-weight: 500; }
.cmp-chips button.watch { border-style: dashed; }
.cmp-chips button.watch[aria-pressed="true"] { border-style: solid; border-color: var(--accent2); }
.cmp-chips button.pick b, .dot-n { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent2); color: var(--bg); font-size: 11px; margin-right: 6px; }
.small-text { font-size: 12.5px; }
.warn-text { color: var(--amber); }
table.cmp th.ranked { text-decoration: underline; text-underline-offset: 3px; }
table.cmp tr.sep td { border-top: 2px solid var(--dim); color: var(--dim); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 10px; }
table.cmp tr.ref td { color: var(--dim); }
table.cmp tr.ref td.player .pname { color: var(--fg); font-weight: 500; }
table.cmp tr.avg td { color: var(--fg); font-weight: 600; }
.cmp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 0 0 12px; }
.cmp-card { border: 1px solid var(--line); background: var(--card); padding: 8px 10px; font-size: 14px; }
.cmp-card .big { font-size: 24px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.cmp-strips { max-width: 900px; margin-bottom: 8px; }
.strip-row { display: grid; grid-template-columns: 3.4rem 1fr 4.6rem; align-items: center; gap: 8px; }
.strip-row .c { font-size: 13px; font-weight: 600; }
.strip-row .v { font-size: 12px; color: var(--dim); text-align: right; font-variant-numeric: tabular-nums; }
.strip-row .axis { position: relative; height: 42px; border-bottom: 1px solid var(--line); margin: 0 10px; }
.strip-row .band { position: absolute; top: 12px; height: 12px; background: var(--bar, #3a3a3a); }
.strip-row .tick { position: absolute; top: 10px; width: 2px; height: 16px; margin-left: -1px; background: var(--dim); }
.strip-row .avgm { position: absolute; top: 6px; width: 2px; height: 24px; margin-left: -1px; background: var(--fg); }
.strip-row .dot { position: absolute; top: 0; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--accent2);
  color: var(--bg); font-size: 10.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); box-sizing: content-box; }
.strip-row .dot.lo { top: 18px; }
