/* The portal's one stylesheet (design pass, session 36, rewritten from scratch). Dark broadcast look, one accent.
   Every colour is a token on :root. The accent and the team colours come from /brand/league.css (league.json and
   portal/teams.py), loaded after this file; the values here are the defaults. No inline styles in the templates,
   no framework, no build step. Phone first (390 px), desktop from 1000 px, content max 1280 px (data pages 1600). */

@font-face {
  font-family: "Inter";
  src: url("/static/fonts/InterVariable.woff2?v=693b77d4") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  /* surfaces */
  --bg: #0C0E12; --surface: #151920; --raised: #1C222B; --line: #2A323D; --line-strong: #3A4452;
  /* text */
  --text: #F2F4F7; --text-2: #9AA4B2; --muted: #848D99;
  /* the accent ("heat"), overridden by /brand/league.css: the league's on :root, the signed-in GM's team's on
     html.accent-XXX (team accent, session 116; portal/teams.accent_tokens). Only accent uses read these. */
  --heat: #FF5A1F; --heat-hover: #FF713E; --heat-text: #FF5A1F; --heat-soft: #381C14; --on-heat: #0A0A0B;
  --heat-tint: rgba(255, 90, 31, .10); --heat-tint-solid: #291714; --league-accent: #FF5A1F;
  /* semantics: fixed, never per team or per league (team accent, sessions 116; part 2 put the original values back).
     Each reads at 4.5:1 on Ink, on --surface and on its soft tint (tests/test_team_accent.py). A status colour may share
     a hue with a GM's accent (a Warriors GM's amber chip, a Blazers GM's red Veto): every status piece carries its word
     and its shape (the three status families below), so colour is never the only signal (WCAG 2.1 SC 1.4.1).
     --locked is a neutral grey, not a status hue. */
  --ok: #3DD68C; --warn: #FFC542; --bad: #FF4D4D; --live: #FF5A1F; --on-live: #0A0A0B; --locked: #9AA4B2;
  --ok-soft: #12291F; --warn-soft: #2E2612; --bad-soft: #2E1417;
  --hot: #FFAD8F; --cold: #7DB8FF;                   /* run 2: the hot and cold marks */
  /* team colours: set per .team-XXX class in /brand/league.css */
  --team: #3A4452; --team-2: #9AA4B2;
  /* shape */
  --r: 10px; --r-sm: 8px; --r-pill: 999px;
  --shadow: 0 8px 24px rgba(0, 0, 0, .35);
  --t: 150ms;
  /* layout */
  --top-h: 56px; --tab-h: 64px; --bar-h: 64px; --maxw-std: 1280px; --maxw-data: 1600px; --maxw: var(--maxw-std); --gutter: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--font);
       -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: var(--heat-text); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--text); }
/* polish Part 5: a link in running text is told apart by more than its colour: underlined, as player names are. Plain
   links in a sentence (a paragraph, a notice, a banner; a game log's opponent followed by the result) only: a styled
   link, a button or chip, a list's or a table's own link, is drawn as what it is; never in a nav */
main :is(p, dd, .notice, .banner) a:not([class]):not(nav a), main td.nm > a:not([class]) {
  text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--heat); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 24px; }
h2 { font-size: 20px; margin: 32px 0 12px; }
h3 { font-size: 16px; font-weight: 600; margin: 16px 0 8px; }
p { margin: 8px 0; }
img, svg { max-width: 100%; }
td, th, time, .num, [data-countdown], input[type=number] { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.meta { font-size: 13px; color: var(--text-2); }
.small { font-size: 14px; }
.hidden, tr.hidden, [hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* site review run 1: a visible edge on a table that scrolls sideways. base.html's script marks .more-right while
   there is more to the right (the right edge fades) and .more-left once scrolled (a shadow off the sticky first
   column). A table that fits gets neither; without script the table still scrolls. */
.scroll.more-right { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), rgba(0, 0, 0, .25));
                     mask-image: linear-gradient(to right, #000 calc(100% - 32px), rgba(0, 0, 0, .25)); }
.scroll.more-left tr > :first-child { box-shadow: 6px 0 6px -4px rgba(0, 0, 0, .35); }
/* small fixes Part 15: on desktop the box score's and the player page's table headers stick under the top bar. A
   header sticks to its nearest scroll box, so a box whose table fits (base.html marks it .fits) drops its overflow
   and the header sticks to the page; a table that does not fit keeps its sideways scroll and a header that does not
   stick. */
@media (min-width: 1000px) {
  .scroll.sticky-head.fits { overflow: clip; }          /* clip, not a scroll box: the corners stay round */
  .scroll.sticky-head.fits thead th, .scroll.sticky-head.fits tr.box-head th { position: sticky; top: calc(var(--top-h) + 1px); z-index: 3; }
  .scroll.sticky-head.fits thead th.pl, .scroll.sticky-head.fits thead th.nm, .scroll.sticky-head.fits tr.box-head th.pl { z-index: 4; }
}
.ok { color: var(--ok); }
.bad { color: var(--bad); font-weight: 600; }
.warn { color: var(--warn); }

/* ---------------------------------------------------------------- the logo */
.glyph, .icon { width: 24px; height: 24px; flex: none; display: inline-block; vertical-align: middle; }
.brandmark { display: inline-flex; align-items: center; gap: 10px; color: var(--text); min-height: 44px; }
.brandmark .glyph { width: 40px; height: 40px; color: var(--league-accent); }   /* brand: the league's glyph, never the GM's team */
.brandmark .bm-lines { display: flex; flex-direction: column; line-height: 1; text-transform: uppercase; }
.brandmark .bm-1 { font-weight: 500; font-size: 15px; letter-spacing: .16em; }
.brandmark .bm-2 { font-weight: 500; font-size: 8px; letter-spacing: .6em; color: var(--text-2); margin-top: 4px; }
.brandmark .bm-text { font-weight: 700; font-size: 17px; }
.brandmark:hover { color: var(--text); }
/* session 115: platform mode, the kit's wordmark leads (never under 96 px wide), the league's name a quiet label */
.brandmark .bm-word svg { display: block; width: 128px; height: auto; }
.brandmark .bm-label { font-weight: 600; font-size: 13px; line-height: 1.2; color: var(--text-2); padding-left: 10px;
                       border-left: 1px solid var(--line-strong); }
.brandmark.bm-platform, .brandmark .bm-word { flex: none; }       /* the GM's name gives way, never the wordmark */
@media (max-width: 999px) {                                       /* the phone bar: the label under the wordmark */
  .brandmark.bm-platform { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
  .brandmark.bm-platform .bm-label { border-left: 0; padding-left: 0; font-size: 11px; }
}
/* logo brief (B1b, brand/README.md): the platform's wordmark, brand/inline/'s SVG as it is. Letters in the text colour,
   the stem in the league's accent, nothing else coloured. Inline (not block), so the line's text reads as one line.
   Never under 96 px wide; it drops 5/856 of its width below the baseline (the kit's overshoot), so the caps sit on it.
   Session 145: every wordmark carries width and height attributes (portal/platform_logo.sized); the CSS width wins. */
/* session 115: no --bm-stem here; it comes from :root (the accent, /brand/league.css) or the page's .accent-XXX class (team accent, session 116) */
.pm-logo svg { display: inline; height: auto; vertical-align: -.6px; }
/* the lockup (session 145, _lockup.html; docs/signin-journey-brief.md item 3): the footer's ("foot") and the landing
   overlay's ("hero"). Own mode: the league's glyph and name, the tagline, then "on" and the wordmark in the footer's
   muted grey, the stem in the page accent; platform mode: the wordmark and the tagline. Clear space round the wordmark
   at least half its cap height (brand/README.md): 6 px at 96 px wide. */
.lockup { margin: 8px 0 0; color: var(--text); }
.lockup p { margin: 0; }
.lockup-foot .lockup-name { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.lockup-foot .lockup-name .glyph { width: 20px; height: 20px; color: var(--league-accent); }
.lockup-on { color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap; }
.lockup-foot .lockup-on { margin-top: 10px; padding: 6px 0; }
.lockup-foot .lockup-on .pm-logo svg { width: 96px; margin-left: 4px; }
.lockup-foot .platform-foot .pm-logo svg { width: 120px; }
.lockup-foot .tagline { margin-top: 6px; }
.lockup-hero { margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.lockup-hero .lockup-name { display: flex; flex-direction: column; align-items: center; gap: 16px; font-size: 28px;
                            font-weight: 600; line-height: 1.2; letter-spacing: -.01em; color: var(--text); }
.lockup-hero .lockup-name .glyph { width: 72px; height: 72px; color: var(--league-accent); }
.lockup-hero .lockup-on { margin-top: 24px; font-size: 16px; }
.lockup-hero .lockup-on .pm-logo svg { width: 160px; margin-left: 6px; vertical-align: -.9px; }
.lockup-hero .platform-foot .pm-logo svg { width: 200px; vertical-align: 0; }
/* pass 2 (docs/signin-journey-2-brief.md item 2): the landing moment's letters are paper in both modes; the "on" stays
   the muted grey, the stem the page accent */
.pm-paper { color: var(--text); }
/* pass 2 (item 1): a bare page in platform mode draws the wordmark in the card's head, so its footer names it in text */
.lockup-words .platform-words { font-size: 14px; line-height: 1.4; color: var(--muted); }
@media (min-width: 1000px) {
  .lockup-hero .lockup-on { font-size: 20px; }
  .lockup-hero .lockup-on .pm-logo svg { width: 220px; margin-left: 8px; vertical-align: -1.3px; }
  .lockup-hero .platform-foot .pm-logo svg { width: 280px; }
}
/* the landing moment (session 145, item 8): base.html's overlay over the first page after a new sign-in, the page
   ground, nothing to click; the switch-on below plays on its wordmark, then a 300 ms fade (base.html's script) */
.bm-land { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
           padding: 24px; background: var(--bg); pointer-events: none; opacity: 1; transition: opacity .3s ease; }
.bm-land.out { opacity: 0; }
/* session 115: the switch-on (base.html adds .bm-switch; session 145: on the landing overlay's wordmark, once per
   sign-in). The block below is brand/motion/switch-on.css's, text for text (tests/test_platform_brand.py). */
.bm-switch .ring, .bm-switch .stem { transform-box: fill-box; transform-origin: center; }
.bm-switch .ring { animation: bm-rg .55s cubic-bezier(.2,.8,.2,1) .2s both; }
.bm-switch .stem { animation: bm-st .45s cubic-bezier(.3,1.5,.5,1) .55s both, bm-lit .3s ease 1.05s both; }
@keyframes bm-rg { from { opacity: 0; transform: rotate(-120deg) scale(.86); } to { opacity: 1; transform: none; } }
@keyframes bm-st { from { opacity: 0; transform: translateY(-70%); } to { opacity: 1; transform: none; } }
@keyframes bm-lit { from { fill: currentColor; } to { fill: var(--bm-stem, currentColor); } }
@media (prefers-reduced-motion: reduce) { .bm-switch .ring, .bm-switch .stem { animation: none; } }
/* the words the logo stands for: in the text (screen readers, copy-paste, innerText), not on screen. Inline-block,
   not absolute (.sr), so the line's text stays "on <mark>" with no break. */
.pm-words { display: inline-block; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%);
            white-space: nowrap; vertical-align: top; }

/* ---------------------------------------------------------------- top bar and tab bar
   Phone: a slim top bar (logo, GM) and a bottom tab bar (Home, Schedule, League, Me, + Commish).
   Desktop (1000 px up): the same tabs in the top bar, wordmark left, GM and team right. */
/* no backdrop-filter here: it would make the fixed tab bar inside the header position against the header */
/* desktop width (session 122): the content max is 1,280 (standard pages) or 1,600 (data pages, body.kind-data, set by the
   template's page_kind block); the gutter grows with the screen: 16 to 999, 24 from 1,000, 40 from 1,440, 64 from 1,920.
   The top bar's inner width is always the standard max, so the nav sits in one place on every page. */
@media (min-width: 1000px) { :root { --gutter: 24px; } }
@media (min-width: 1440px) { :root { --gutter: 40px; } }
@media (min-width: 1920px) { :root { --gutter: 64px; } }
body.kind-data { --maxw: var(--maxw-data); }
.topbar { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: calc(var(--maxw-std) + 2 * var(--gutter)); margin: 0 auto; height: var(--top-h); padding: 0 var(--gutter);
             display: flex; align-items: center; gap: 24px; }
.topbar .who { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2);
               white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .who .tlogo { flex: none; }   /* accent rule: the GM's team logo, never squashed by the ellipsis */
/* watch-tab (session 218, proposal 3.3): under 1000 px a commish's Commish link is the top bar's shield, not a tab. A
   44 by 44 target after the name block (`order`; before it in the markup): the margins take back the bar's 24 px gap so
   the icon sits 12 px from the name, and the box's own 11 px so the icon's right edge is on the gutter. The count on
   the icon's corner as on a tab. Room, for a commish only: the "· CHA" or "· Commish" goes; under 300 CSS px the name
   block gives way whole. A GM's and a member's top bar are as they were. */
.tabs a.tab-commish { display: none; }
.top-commish { order: 1; position: relative; flex: none; display: flex; align-items: center; justify-content: center;
               width: 44px; height: 44px; margin: 0 -11px 0 -23px; color: var(--muted); transition: color var(--t); }
.top-commish .icon { width: 22px; height: 22px; }
.top-commish:hover { color: var(--text); }
.top-commish[aria-current=page] { color: var(--heat-text); }
.top-commish .badge { position: absolute; top: 3px; left: calc(50% + 5px); }
.top-commish ~ .who .muted { display: none; }
@media (max-width: 299.98px) {
  .top-commish ~ .who { display: none; }
  .top-commish { margin-left: auto; }
}
@media (min-width: 1000px) {
  .top-commish { display: none; }
  .tabs a.tab-commish { display: flex; }
  .top-commish ~ .who .muted { display: inline; }
}
.tabs { position: fixed; left: 0; right: 0; bottom: 0; height: var(--tab-h); z-index: 40; display: flex;
        background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs a { flex: 1 1 0; min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center;
          gap: 3px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .01em;
          transition: color var(--t); }
.tabs a .icon { width: 22px; height: 22px; }
/* trades brief 2: on the phone bar a count sits on the icon's corner, so "Commish" keeps one line at 360 */
.tabs a { position: relative; }
.tabs a .badge { position: absolute; top: 3px; left: calc(50% + 5px); }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current=page] { color: var(--heat-text); }   /* team accent part 2: text reads the text shade */
/* watch-tab (session 218, proposal 3.2): the Watch tab's live dot, the site's .pulse as it stands; on the phone bar on
   the icon's corner, its centre where a count's sits */
.tabs a .tab-live { position: absolute; top: 8px; left: calc(50% + 10px); margin-right: 0; }
/* draft-hype (session 236, decision 9): the Draft tab while it leads (second, from the draft's creation to final):
   the label and icon in the page's accent, a slow sheen across the label about every 6 s; no background, no gold.
   The current page keeps the accent and the normal current mark, the sheen stopped. Reduced motion: the accent alone */
.tabs a.tab-draft.lead { color: var(--heat-text); }
.tabs a.tab-draft.lead span { background: linear-gradient(100deg, var(--heat-text) 40%, color-mix(in srgb, var(--text) 80%, var(--heat-text)) 50%, var(--heat-text) 60%) no-repeat;
  background-size: 300% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; animation: tab-sheen 6s ease-in-out infinite; }
.tabs a.tab-draft.lead[aria-current=page] span { animation: none; background: none; -webkit-text-fill-color: currentColor; }
@keyframes tab-sheen { 0%, 70% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .tabs a.tab-draft.lead span { animation: none; background: none; -webkit-text-fill-color: currentColor; }
}
/* watch-tab-2 item 1: a tab's label stays on one line, so the tab is at least as wide as its label (six tabs at 240 CSS px) */
@media (max-width: 999.98px) { .tabs a span { white-space: nowrap; } }

main { display: block; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 16px var(--gutter);
       padding-bottom: calc(var(--tab-h) + 32px); }
body.has-bar main { padding-bottom: 16px; }   /* r3 item 28: the footer alone clears the save bar */

.site-foot { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) calc(var(--tab-h) + 24px);
             font-size: 13px; color: var(--muted); }
.site-foot-in { border-top: 1px solid var(--line); padding-top: 20px; }
.site-foot p { margin: 4px 0; }
/* footer brief (session 123): links take the body's `a` rule (the page accent); the old .site-foot a override is gone */
.site-foot .tagline { margin: 6px 0 0; font-size: 13px; font-weight: 400; color: var(--text-2); }   /* r3 item 33: the tagline's one home, now under the mark */
.site-foot .disclaimer { font-size: 12px; line-height: 1.5; color: var(--muted); margin-top: 16px; }
body.has-bar .site-foot { padding-bottom: calc(var(--bar-h) + var(--tab-h) + 24px); }
main + .site-foot { margin-top: 0; }

@media (min-width: 1000px) {
  .tabs { position: static; height: var(--top-h); background: none; border: none; padding: 0; gap: 4px; }
  .tabs a { flex: none; flex-direction: row; gap: 8px; padding: 0 12px; font-size: 14px; font-weight: 500;
            color: var(--text-2); border-bottom: 2px solid transparent; }
  .tabs a .icon { width: 18px; height: 18px; }
  .tabs a .badge { position: static; }
  .tabs a .tab-live { position: static; }                  /* watch-tab: after the word */
  .tabs a[aria-current=page] { color: var(--text); border-bottom-color: var(--heat); }
  .tabs a.tab-draft.lead, .tabs a.tab-draft.lead[aria-current=page] { color: var(--heat-text); }   /* draft-hype: the accent kept */
  main { padding: 24px var(--gutter) 48px; }
}
/* watch-tab (session 218, proposal 3.4): from 1000 to 1279 px a nav of seven or more links shows no icons, so the name
   block keeps its room; the counts and the live dot stay. From 1280 px nothing changes */
@media (min-width: 1000px) and (max-width: 1279.98px) {
  .tabs:has(a:nth-of-type(7)) a .icon { display: none; }
}
@media (min-width: 1000px) {
  body.has-bar main { padding-bottom: 24px; }
  .site-foot { padding-bottom: 32px; }
  body.has-bar .site-foot { padding-bottom: calc(var(--bar-h) + 32px); }
}

/* ---------------------------------------------------------------- page head */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap;
             margin: 8px 0 16px; }
.page-head .meta { margin: 4px 0 0; }
.subtabs { display: flex; gap: 4px; overflow-x: auto; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
.subtabs a { padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; color: var(--text-2);
             font-size: 14px; font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.subtabs a[aria-current=page], .subtabs a.on { color: var(--text); border-bottom-color: var(--heat); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
       border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--raised); color: var(--text);
       font: 600 15px/1 var(--font); cursor: pointer; text-decoration: none; white-space: nowrap;
       transition: background var(--t), border-color var(--t), color var(--t); }
.btn:hover { border-color: var(--text-2); color: var(--text); }
.btn .icon { width: 18px; height: 18px; }
.btn.primary { background: var(--heat); border-color: var(--heat); color: var(--on-heat); }
.btn.primary:hover { background: var(--heat-hover); border-color: var(--heat-hover); color: var(--on-heat); }
.btn.ghost { background: none; border-color: transparent; color: var(--heat-text); padding: 0 8px; }
.btn.ghost:hover { color: var(--text); }
.btn.small { min-height: 44px; padding: 0 12px; font-size: 14px; }
.btn.block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled=true] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 16px 0; }
.textlinks { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; margin: 12px 0 0; }
.textlinks a { min-height: 44px; display: inline-flex; align-items: center; }

/* ---------------------------------------------------------------- cards, tiles, rows */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin: 0 0 16px; }
.card-body { padding: 16px; }
/* card-heads (session 248, docs\card-heads.md; docs\brand.md "Heads and labels"): a container's head is the band, its
   own row at the box's top: --raised under a --line rule, edge to edge in the box's top corners, 9 px by the box's
   side padding. A label head's words (`.ch-t`, the macro _heads.html card_head) are small caps 12 px in --text; a
   title head (a team's name, a game, a sentence) keeps its own type in the same row. Neutral always: never the
   accent, a team's colour or a band colour. A long title wraps on whole words and the band grows. */
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 9px 16px;
             background: var(--raised); border-bottom: 1px solid var(--line);
             border-radius: calc(var(--r) - 1px) calc(var(--r) - 1px) 0 0; }
.card-head h2, .card-head h3 { margin: 0; font-size: 15px; }
.card-head .ch-t { margin: 0; min-width: 0; font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: .08em;
                   text-transform: uppercase; color: var(--text); overflow-wrap: normal; }
/* in a padded box (.card-body) the band reaches the box's edges; a <details> card's summary is its band, whole when shut */
.card-body > .card-head:first-child { margin: -16px -16px 12px; }
details.card-body > summary.card-head { margin: -16px; justify-content: flex-start; gap: 8px; padding-block: 0; min-height: 44px; }
details.card-body[open] > summary.card-head { margin-bottom: 12px; }
details.card-body:not([open]) > summary.card-head { border-bottom: 0; border-radius: calc(var(--r) - 1px); }
/* turn-heads (session 252, item 4): a band over a list box that is its own card (`.rows`), outside it: the band takes the
   box's border and top corners and the list joins it, its top edge the band's line (Commish > Trades' groups) */
.card-head.over { margin: 16px 0 0; border: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; }
.card-head.over + .rows { border-top: 0; border-radius: 0 0 var(--r) var(--r); }
.section-title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
                 color: var(--heat-text); margin: 28px 0 10px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 12px; margin: 0 0 16px; }
.tile { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
        padding: 14px 16px; color: var(--text); min-height: 44px; transition: border-color var(--t); }
a.tile:hover { border-color: var(--line-strong); color: var(--text); }
.tile .t-label, .tile .t-value, .tile .t-sub { display: block; }
.tile .t-label, .pl-body dt { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tile .t-value { font-size: 20px; font-weight: 700; margin-top: 4px; }
.tile .t-sub { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.rows { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line);
        border-radius: var(--r); overflow: hidden; }
.rows > li + li { border-top: 1px solid var(--line); }
.rows .row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 56px; color: var(--text); }
a.row:hover { background: var(--raised); color: var(--text); }
.row .grow { flex: 1 1 auto; min-width: 0; }
.row .grow > .meta { display: block; }
.row .rt { display: block; font-weight: 600; }
.row .end { margin-left: auto; text-align: right; flex: none; }

/* ---------------------------------------------------------------- chips and status */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-pill);
        background: var(--raised); border: 1px solid var(--line); color: var(--text-2); font-size: 12px; font-weight: 600;
        white-space: nowrap; }
.chip .icon { width: 14px; height: 14px; }
.chip.heat { color: var(--heat-text); border-color: var(--heat-soft); background: var(--heat-soft); }   /* not a status word: unused today */
.chip.open { color: var(--text-2); }   /* a status is never the accent (accent rule 2): the plain chip look, as Locked without the lock */
.chip.live { color: var(--on-live); background: var(--live); border-color: var(--live); }
.chip.live .pulse { background: var(--on-live); }
.chip.ok, .chip.final { color: var(--ok); background: var(--ok-soft); border-color: var(--ok-soft); }
.chip.warn, .chip.reopened { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-soft); }
.chip.bad, .chip.void { color: var(--bad); background: var(--bad-soft); border-color: var(--bad-soft); }
.chip.locked { color: var(--locked); }
button.chip { cursor: pointer; font-family: var(--font); height: 44px; padding: 0 14px; font-size: 13px; }
button.chip[aria-pressed=true] { color: var(--text); border-color: var(--heat); }
.st-open { color: var(--text); }
.st-locked { color: var(--locked); }
.st-reopened { color: var(--warn); }
.st-live { color: var(--live); }
.st-final { color: var(--text); }
.st-void { color: var(--bad); }
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); margin-right: 2px;
         animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
/* Team accent part 2 (docs/team-accent-2.md, item 3): status reads by word and shape, colour supporting. Three
   families, one treatment each, never the accent's (the accent fills buttons and draws soft chips with no border and no
   mark): (a) waiting and warning: a dashed border and a hollow ring, not done yet; (b) done: a solid border and a
   filled dot; (c) stopped (Veto, Decline, Void, a loss): a solid border and a filled square, and the danger buttons
   are outlined, never filled. The mark is drawn, not text; the chip's word is unchanged. */
.chip.warn, .chip.reopened, .chip.trade-awaiting, .chip.trade-releases { border: 1px dashed var(--warn); }
.chip.ok, .chip.final, .chip.trade-executed, .chip.trade-approved { border: 1px solid var(--ok); }
.chip.bad, .chip.void, .chip.trade-vetoed, .chip.trade-declined { border: 1px solid var(--bad); }
.chip.warn::before, .chip.reopened::before, .chip.trade-awaiting::before, .chip.trade-releases::before,
.plan-st.plan-none::before, .plan-st.plan-draft::before, .st-reopened::before, .lock.reopened::before, .draft::before,
.chip.ok::before, .chip.final::before, .chip.trade-executed::before, .chip.trade-approved::before,
.plan-st.plan-saved::before,
.chip.bad::before, .chip.void::before, .chip.trade-vetoed::before, .chip.trade-declined::before, .st-void::before,
.btn.danger::before {
  content: ""; display: inline-block; flex: none; width: 8px; height: 8px; margin: 0; vertical-align: 1px;
  box-sizing: border-box; background: currentColor; border: 0; transform: none; }   /* not the disclosure chevron */
.plan-st.plan-none::before, .plan-st.plan-draft::before, .plan-st.plan-saved::before,
.st-reopened::before, .lock.reopened::before, .draft::before, .st-void::before { margin-right: 6px; }
/* (the text statuses' gap, each selector as specific as its `margin: 0` above so it wins: deploy brief item A1, the
   bare `.plan-st::before` lost to `.plan-st.plan-none::before` and drew "ONot started"; chips and buttons space the
   mark with their own gap) */
.chip.warn::before, .chip.reopened::before, .chip.trade-awaiting::before, .chip.trade-releases::before,
.plan-st.plan-none::before, .plan-st.plan-draft::before, .st-reopened::before, .lock.reopened::before, .draft::before {
  background: none; border: 2px solid currentColor; border-radius: 50%; }                 /* (a) the hollow ring */
.chip.ok::before, .chip.final::before, .chip.trade-executed::before, .chip.trade-approved::before,
.plan-st.plan-saved::before { border-radius: 50%; }                                        /* (b) the filled dot */
.chip.bad::before, .chip.void::before, .chip.trade-vetoed::before, .chip.trade-declined::before, .st-void::before,
.btn.danger::before { border-radius: 1px; }                                                /* (c) the filled square */

/* ---------------------------------------------------------------- teams: logo, badge, dot, avatar */
.tlogo { width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.tlogo img { width: 100%; height: 100%; object-fit: contain; }
.tlogo.sm { width: 28px; height: 28px; }
.tlogo.xs { width: 20px; height: 20px; }                    /* run 2: a heading's or a dense row's logo */
.tlogo.xs .tbadge { font-size: 7px; border-width: 1px; }
.tlogo.lg { width: 64px; height: 64px; }
.tbadge { width: 100%; height: 100%; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
          background: var(--team); color: #FFFFFF; border: 2px solid var(--team-2); font-size: 11px; font-weight: 700;
          letter-spacing: .02em; }
.tlogo.lg .tbadge { font-size: 18px; }
.tdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--team);
        box-shadow: 0 0 0 1px var(--line-strong); flex: none; }
.avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; display: inline-flex; align-items: center;
          justify-content: center; background: var(--team); color: #FFFFFF; font-size: 13px; font-weight: 700; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* ---------------------------------------------------------------- notices, empty states */
.banner, .notice, .errbox { border-radius: var(--r-sm); padding: 12px 16px; margin: 12px 0; font-size: 15px;
                            border: 1px solid var(--line); background: var(--surface); }
.banner { border-left: 3px solid var(--heat); }
.notice { border: 1px dashed var(--warn); border-left: 3px solid var(--warn); background: var(--warn-soft); }   /* part 2: family (a) */
.errbox { border: 1px solid var(--bad); border-left: 3px solid var(--bad); background: var(--bad-soft); }      /* part 2: family (c) */
.err { color: var(--bad); font-size: 13px; display: block; }
.empty { text-align: center; padding: 32px 16px; color: var(--text-2); background: var(--surface);
         border: 1px dashed var(--line-strong); border-radius: var(--r); font-size: 15px; }
.empty .icon { width: 28px; height: 28px; color: var(--muted); display: block; margin: 0 auto 8px; }

/* ---------------------------------------------------------------- tables */
table { border-collapse: collapse; }
.table { width: 100%; font-size: 14px; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
            background: var(--surface); }
.table td.n, .table th.n { text-align: right; }
.table tbody tr:hover td { background: var(--surface); }

/* ---------------------------------------------------------------- forms */
input, select, textarea, button { font: inherit; }
input[type=text], input[type=url], input[type=number], input[type=search], input[type=date], input[type=datetime-local],
select, textarea {
  background: var(--raised); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  min-height: 40px; padding: 6px 10px; max-width: 100%; transition: border-color var(--t);
}
input:hover, select:hover, textarea:hover { border-color: var(--text-2); }
input[type=number] { width: 5.5em; }
input[type=range] { accent-color: var(--heat); }
label { color: var(--text-2); font-size: 14px; }
.has-err select, .has-err input { border-color: var(--bad); background: var(--bad-soft); }

/* ---------------------------------------------------------------- disclosure */
details > summary { cursor: pointer; list-style: none; min-height: 44px; display: flex; align-items: center; gap: 8px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--text-2);
                            border-bottom: 2px solid var(--text-2); transform: rotate(-45deg); transition: transform var(--t);
                            flex: none; margin: 0 4px; }
details[open] > summary::before { transform: rotate(45deg); }

/* ---------------------------------------------------------------- the card: sign-in, message and error pages
   Session 145 (docs/signin-journey-brief.md items 4 to 6): one column, 400 px at most, read left to right. A bare page
   (the sign-in pages, the 503, the 401, a stranger's 403) has no top bar: a flex column whose main grows, so the lockup
   footer sits at the foot of a tall viewport and after the card on a short one (never over the form with the keyboard
   up). Phone: the card 48 px from the top. From 1000 px: its top at about 28% of the viewport, capped, so it does not
   drop on a tall screen. The accent on four things only: the focus ring, the primary button, the stem, a link. */
body.bare { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body.bare main { flex: 1 0 auto; width: 100%; max-width: 448px; padding: 48px 24px 40px; }
body.bare .site-foot { width: 100%; max-width: 448px; padding: 0 24px calc(32px + env(safe-area-inset-bottom)); }
body.bare .site-foot-in { border-top: 0; padding-top: 0; }
@media (min-width: 1000px) {
  body.bare main { padding-top: min(28vh, 260px); padding-bottom: 48px; }
  body.bare .site-foot { padding-bottom: 40px; }
}
.errpage { max-width: 400px; margin: 0 auto; }
body:not(.bare) .errpage { padding: 24px 0 8px; }
.auth-head { margin: 0 0 16px; }
.auth-head .glyph { display: block; width: 56px; height: 56px; margin: 0 0 12px; color: var(--league-accent); }
.auth-league { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--text); }
/* pass 2 (item 1): platform mode's head is the wordmark in the glyph's place, the same gap to the h1 */
.auth-mark { margin: 0; line-height: 0; color: var(--text); }
.auth-mark .pm-logo svg { width: 140px; vertical-align: top; }
@media (min-width: 1000px) { .auth-mark .pm-logo svg { width: 160px; } }
.auth h1 { margin: 0 0 10px; font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.auth-lead { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.auth-lead b { font-weight: 600; color: var(--text); display: inline-block; max-width: 100%; overflow-x: auto; vertical-align: bottom; white-space: nowrap; scrollbar-width: thin; }   /* the address: one token, scrolls in its own box (no-word-break) */
/* pass 2 (item 3): a status, not copy: above the h1, the muted grey, a grey dot (the done shape; never the accent, never
   a status colour) */
.auth-status { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px; font-size: 14px; line-height: 1.4;
               color: var(--muted); }
.auth-status::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--muted);
                       transform: translateY(-2px); }
.auth-form { margin: 20px 0 0; }
.auth-label { display: block; margin: 0 0 6px; font-size: 14px; line-height: 1.3; color: var(--text-2); }
.auth-input { display: block; width: 100%; height: 48px; margin: 0; padding: 0 14px; font-size: 17px; color: var(--text);
              background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.auth-input:hover { border-color: var(--line); }                 /* nothing moves on hover; the ring says focus */
.auth-input:focus, .auth-input:focus-visible { outline: 2px solid var(--heat); outline-offset: 2px; border-radius: 10px; }
.auth-code { height: 56px; padding: 0 0 0 .4em; font-size: 28px; font-weight: 500; text-align: center;
             letter-spacing: .4em; font-variant-numeric: tabular-nums; }
.auth-err { position: relative; margin: 10px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.45; color: var(--bad); }
.auth-err::before { content: ""; position: absolute; left: 0; top: .4em; width: 10px; height: 10px; border-radius: 1px;
                    background: var(--bad); }                    /* the square: colour is never the only signal */
.auth-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; margin: 12px 0 0;
            padding: 0 16px; border: 0; border-radius: 10px; background: var(--heat); color: var(--on-heat);
            font-size: 16px; font-weight: 600; line-height: 1; cursor: pointer;
            transition: background-color 100ms ease, transform 100ms ease; }
.auth-btn:hover { background: var(--heat-hover); color: var(--on-heat); }
.auth-btn:active { transform: scale(.99); }
.auth-btn:focus-visible { outline: 2px solid var(--heat); outline-offset: 2px; border-radius: 10px; }
.auth-btn:disabled { cursor: progress; opacity: .7; }
.errpage > .auth-btn { margin-top: 24px; }
.auth-hint { margin: 16px 0 0; font-size: 14px; line-height: 1.4; color: var(--text-2); }
.auth-more { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin: 8px 0 0; font-size: 15px; }
.auth-more a, .auth-act { display: inline-flex; align-items: center; min-height: 44px; color: var(--heat-text); }
.auth-act { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.auth-act:hover, .auth-more a:hover { color: var(--text); }
.auth-act:disabled { color: var(--muted); cursor: default; font-variant-numeric: tabular-nums; }
.auth-dot { color: var(--muted); }
@media (max-width: 479px) {                 /* a phone: one action a line, no dot left hanging at a wrap */
  .auth-more { flex-direction: column; align-items: flex-start; }
  .auth-dot { display: none; }
}
@media (prefers-reduced-motion: reduce) { .auth-btn { transition: none; } .auth-btn:active { transform: none; } }
/* pass 2 (item 4): Today's Sign out is the links line's last item, in the links' look (the body's `a` rule: the page
   accent, the footer's size, no underline) and the links' gap. One rule for the button; the links keep theirs. */
.foot-links .linkish { display: inline; min-height: 0; margin-left: 16px; color: var(--heat-text); text-decoration: none;
                       transition: color var(--t); }

/* ==================================================================================================================
   PAGES. Until each page is redesigned (steps 3 to 7), its existing classes are styled here on the new tokens.
   ================================================================================================================== */

/* legacy tables inside pages not yet redesigned */
main th, main td { border: 1px solid var(--line); padding: 4px 8px; text-align: left; vertical-align: top; }
main th { background: var(--surface); font-weight: 600; }
main .table th, main .table td { border-width: 0 0 1px 0; padding: 10px 12px; }

/* ---------------------------------------------------------------- the plan page (design pass, step 4)
   Sections: a stepper strip on phone (one open at a time, html.js), a sticky rail on desktop (one scroll).
   The timeline is the rotation chart (static/plan.js). */
.plan-head { display: flex; gap: 16px; align-items: center; margin: 8px 0 4px; }
.plan-head h1 { font-size: 22px; }
.plan-head .meta { margin: 4px 0 0; }
.plan-page p.lock { font-size: 20px; font-weight: 700; margin: 12px 0 2px; color: var(--text); }
.plan-page p.lock .lock-at, .plan-page p.lock .cd { display: block; font-size: 13px; font-weight: 400; color: var(--text-2);
                                                    margin-top: 2px; }
.plan-page p.lock .lock-at.one-line { display: inline; }      /* small fixes Part 6: the lock on one line */
.plan-page p.lock.unset { color: var(--text-2); font-size: 17px; font-weight: 600; }
.plan-page p.lock.locked { color: var(--locked); font-size: 17px; font-weight: 600; }
.plan-page p.lock.reopened { color: var(--warn); font-size: 17px; font-weight: 600; }
.lock.locked { color: var(--locked); }
.lock.reopened, .reopened { color: var(--warn); font-weight: 600; }
/* r3 item 17: the reason on its own line, normal weight and colour */
.ov-reason { display: block; color: var(--text); font-weight: 400; font-size: 15px; margin: 4px 0 0; }
p.ov-reason { margin: 0 0 8px; }
.load-team { margin: 0 0 12px; }
.load-line { margin: 0 0 4px; }
.load-detail > summary, .region-names > summary { color: var(--text-2); font-size: 14px; min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.ro { white-space: nowrap; }
.ro-text { white-space: pre-wrap; }
#saved { margin: 4px 0 12px; }
/* session 68: a draft is never the saved colour; the warning colour, the words say what it is */
.draft { color: var(--warn); font-weight: 600; }
/* the actions on their own line under the words: a 44 px target inside the text opened a gap between its lines */
.draft-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; margin: 0; }
.draft-acts #discard { text-decoration: underline; text-underline-offset: 3px; color: var(--text-2); }
/* small fixes Part 8: under 1280 the bar says "Draft, N problems"; this line keeps the second sentence only */
#saved .draft-status, #saved .first-prob { display: none; }
#bar .first-prob .long { display: none; }
#bar .first-prob .short { display: inline; }
@media (min-width: 600px) { #bar .first-prob .long { display: inline; } #bar .first-prob .short { display: none; } }
/* under 360 CSS px (a phone with enlarged text) the bar can't hold it beside the count; the count, already the link to
   the first problem, moves the focus there too (plan.js) */
@media (max-width: 359px) { #bar .first-prob { display: none; } }
/* 360 to 399 (session 121): "Draft, N problems", First problem and Save plan need 389 px of viewport (measured), so
   at 360 the chip ran under First problem and at 390 it fit by 1 px. While First problem shows, Save takes its short
   label (the aria-label still says Save plan) and the text button's padding tightens; from 400 the bar is unchanged */
@media (min-width: 360px) and (max-width: 399px) {
  #bar:has(#bar-first:not([hidden])) .btn.primary .long { display: none; }
  #bar:has(#bar-first:not([hidden])) .btn.primary .short { display: inline; }
  #bar:has(#bar-first:not([hidden])) .btn.text { padding: 0 6px; }
}
.discard-dlg .sheet-body { padding: 16px; }
.discard-dlg p { margin: 0 0 14px; }
.discard-dlg .actions { display: flex; gap: 12px; flex-wrap: wrap; }

.plan-layout { margin-top: 8px; }
.stepper { position: sticky; top: var(--top-h); z-index: 20; background: var(--bg); display: flex; gap: 6px;
           overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 16px; padding: 8px var(--gutter);
           border-bottom: 1px solid var(--line); scrollbar-width: none; }
.stepper::-webkit-scrollbar { display: none; }
.stepper a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
             border-radius: var(--r-pill); color: var(--text-2); font-size: 14px; font-weight: 600; white-space: nowrap;
             background: var(--surface); border: 1px solid var(--line); }
.stepper a:hover { color: var(--text); }
.stepper a[aria-current=step] { color: var(--text); border-color: var(--heat); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; border: 2px solid var(--muted); }
.dot-ok { background: var(--ok); border-color: var(--ok); }
.dot-bad { background: var(--bad); border-color: var(--bad); }
.plan-sec { margin-bottom: 24px; }
.plan-sec > h2 { display: flex; align-items: center; gap: 10px; margin: 8px 0 12px; }
/* round two: one scroll on both widths, the strip is a sticky jump bar */
.plan-sec { padding-bottom: 28px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--top-h) + 72px); }
.plan-sec:last-child { border-bottom: 0; }
.sub-h { margin: 20px 0 10px; font-size: 15px; color: var(--text); }
.plan-sec > h2 + .sub-h, .plan-sec > h2 + .set-cols > .set-col:first-child > .sub-h:first-child { margin-top: 4px; }
/* site review brief, Part 0 item 2: Settings' two columns are desktop's; under 1000 px they draw no box at all */
.set-cols, .set-col { display: contents; }
@media (min-width: 1000px) { .stepper { margin: 0 0 16px; padding: 8px 0; } }
/* r3 item 28: on a wide screen the plan page is up to 1500 px, so the Defense matrix and the 48 minutes get the room */
/* desktop: the ratings icon back beside the last name (the name column has the room) */
@media (min-width: 1000px) { .chart .ch-name { flex-direction: row; align-items: center; gap: 4px; }
                             .chart .ch-name .nm { flex: 0 0 auto; max-width: 100%; }
                             /* run 2: the Starter mark gives way (an ellipsis) before the name does */
                             .chart .ch-name .ps { flex: 0 1 auto; min-width: 0; } }

/* fields */
.fields { display: grid; gap: 14px; }
.fields.two { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
#move-form .fields.two { grid-template-columns: 1fr; }   /* session 100: the Player select a full row, so a long name fits */
@media (max-width: 299.98px) { #move-form select { padding-left: 6px; padding-right: 4px; font-size: 15px; } }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
/* round two (item 8): the label small, muted, caps-spaced; the value at body size in text (the control is the value) */
.fld > span:first-child { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.plan-page .ro, .plan-page .ro-text { font-size: 16px; color: var(--text); }
main table.kv th { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
                   background: none; }
.prio-k { font-size: 12px; color: var(--muted); font-weight: 600; }
.fld .field { display: block; }
.fld select, .fld input[type=text], .fld input[type=search] { width: 100%; min-height: 44px; }
/* small fixes Part 7: the playbook picker (plan.js): a combobox over the hidden select, its list under it */
.pb-combo { position: relative; display: block; --pb-h: 44px; }
.pb-combo .pb-input { padding-right: 32px; }
.pb-combo::after { content: ""; position: absolute; right: 14px; top: calc(var(--pb-h) / 2 - 6px); width: 7px; height: 7px;
                   border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(45deg);
                   pointer-events: none; }               /* a select's chevron: it opens a list */
.pb-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; max-height: 280px; overflow: auto; margin: 4px 0 0;
           padding: 4px 0; list-style: none; background: var(--surface); border: 1px solid var(--line-strong);
           border-radius: var(--r-sm); box-shadow: var(--shadow); }
.pb-opt { display: flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 14px; cursor: pointer; }
.pb-opt.active { background: var(--raised); }
.pb-opt.on { font-weight: 600; }
.has-err .pb-input { border-color: var(--bad); background: var(--bad-soft); }
.pb-grp { padding: 8px 12px 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
/* session 101: the wrapping picker (Commish > Move): closed, the chosen text in full in a block that wraps; the input
   lies over it, clear until focused, then it shows only what is typed. Long names wrap in the list too. */
.pk-wrap .pk-chosen { display: block; min-height: 44px; padding: 10px 32px 10px 14px; background: var(--raised);
                      color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
                      line-height: 1.35; }
.pk-wrap .pb-input { position: absolute; left: 0; top: 0; width: 100%; height: 100%; min-height: 0; padding-left: 14px; opacity: 0; }
.pk-wrap.typing .pb-input { opacity: 1; }
.pk-wrap.typing .pk-chosen { visibility: hidden; }
.pk-wrap:hover .pk-chosen { border-color: var(--text-2); }
.pk-wrap .pb-opt { padding-top: 6px; padding-bottom: 6px; }
.slider .field { display: flex; align-items: center; gap: 12px; }
.slider input[type=range] { flex: 1; min-height: 44px; }
.slider output { width: 3ch; text-align: right; font-weight: 700; }
.icon-btn { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
            background: none; border: 1px solid transparent; color: var(--text-2); border-radius: var(--r-sm);
            cursor: pointer; font-size: 14px; }
.icon-btn:hover { color: var(--text); border-color: var(--line); }
.linkish { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer;
           text-decoration: underline; text-decoration-color: var(--line-strong); min-height: 44px;
           display: inline-flex; align-items: center; }
.linkish:hover { color: var(--text); }

/* the rows' order (the rotation redesign, run 2): the grid's handle and Starter mark */
.ch-name .st-mark, table.tg .tg-nm .st-mark { color: var(--text-2); font-weight: 600; }
.st-who select { width: 100%; }
.phone-only { display: block; }

/* the rotation chart */
.chart { margin: 8px 0; }
.ch-tools { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.ch-tools .spacer { flex: 1; }
.ch-tools .btn.small { padding: 0 10px; font-size: 13px; }
@media (max-width: 400px) { .ch-tools { gap: 6px; } .seg-toggle .btn.small { padding: 0 8px; } }
.seg-toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; }
.seg-toggle .btn { border: 0; border-radius: 0; min-height: 44px; background: var(--surface); }
.seg-toggle .btn.on { background: var(--heat-soft); color: var(--text); }
.ch-grid { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 2px 0; }
.ch-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 30px; align-items: center; gap: 6px;
          min-height: 48px; padding: 0 8px; }
.chart.editable .ch-row { grid-template-columns: 112px minmax(0, 1fr) 24px 40px; }   /* 112: the headshot, Part C */
.ch-row + .ch-row { border-top: 1px solid var(--line); }
.ch-name { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; position: relative; }
.ch-name .nm { font-size: 13px; font-weight: 600; min-width: 0; line-height: 1.2; }   /* session 100: never cut (names.js) */
.ch-name .nm a.pl-link { min-width: 0; }
.ch-name .ps { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
               display: flex; align-items: center; gap: 4px; }
@media (max-width: 480px) { .ch-name .nm { font-size: 12px; letter-spacing: -.01em; } }
.ch-name .adj { font-size: 10px; color: var(--warn); text-transform: uppercase; letter-spacing: .06em; }
.ch-row.out .nm { color: var(--bad); }
.ch-track { position: relative; height: 28px; background: var(--bg); border-radius: 4px; }
.ch-seg { position: absolute; top: 4px; bottom: 4px; background: var(--pos); border-radius: 4px; color: var(--on-pos);
          font: 700 10px/20px var(--font); text-align: center; overflow: hidden; white-space: nowrap;
          box-shadow: inset -1px 0 0 rgba(12, 14, 18, .55);
          /* all five hatched alike (round two): the C orange next to the accent Save button read as the same thing.
             Light stripes, so the dark label keeps its contrast. Problems stay the red gap hatch and the red outline. */
          background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(255, 255, 255, .16) 6px 9px); }
.ch-seg.sel { outline: 2px solid var(--text); outline-offset: 1px; z-index: 3; }
.ch-seg .lbl { display: inline-block; padding: 0 2px; pointer-events: none; }
.ch-seg .lbl[hidden] { display: none; }
.chart.editable .ch-track:not(.ch-scale) { cursor: pointer; }
.ch-q { position: absolute; top: -4px; bottom: -4px; width: 1px; background: var(--line-strong); }
.ch-q.half { width: 2px; background: var(--text-2); }
.ch-gap { position: absolute; top: 0; bottom: 0;
          background: repeating-linear-gradient(45deg, rgba(255, 77, 77, .4) 0 4px, transparent 4px 8px); }
.ch-bad { position: absolute; top: 2px; bottom: 2px; border: 2px solid var(--bad); border-radius: 4px; pointer-events: none; }
/* r3 item 15: a clashed minute is a white diagonal stripe over the bar (the bar keeps its colour), plus a red tick on
   the scale row at that minute */
.ch-clash { position: absolute; top: 4px; bottom: 4px; z-index: 2; pointer-events: none; border-radius: 3px;
            background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .95) 0 3px, transparent 3px 7px); }
.ch-ctick { position: absolute; bottom: 0; height: 4px; background: var(--bad); border-radius: 2px 2px 0 0; min-width: 3px; }
/* r3 item A: the coverage strip, five thin lanes under the chart */
.ch-cover { margin-top: 8px; padding: 4px 0; }
.ch-cover .cov-row { min-height: 18px; }
.ch-cover .ch-row + .ch-row { border-top: 0; }
.ch-cover .nm { font-size: 11px; color: var(--text-2); }
.cov-track { height: 10px; background: var(--bg); border-radius: 2px; }
.cov { position: absolute; top: 0; bottom: 0; }
.cov-ok { background: var(--pos); }
.cov-gap { background: repeating-linear-gradient(45deg, rgba(255, 77, 77, .75) 0 3px, transparent 3px 6px); }
.cov-twice { background: var(--bad); }
/* r3 item 9: the changes view marks a changed minute one way, a yellow line over it; its bars are solid there (the
   hatch is the editor's, so the C bar never reads as the Save button; the changes view has no Save button) */
.ch-chg { position: absolute; top: -4px; height: 3px; background: var(--warn); border-radius: 2px; pointer-events: none; }
.chart-static .ch-seg, .chart-static .ch-legend .sw { background-image: none; }
.ch-flash { position: absolute; top: 0; bottom: 0; background: rgba(255, 197, 66, .4); pointer-events: none; }
.ch-min { justify-self: end; font: 700 15px var(--font); display: flex; align-items: center; justify-content: flex-end; }
.ch-add { min-width: 40px; min-height: 44px; padding: 0; font-size: 20px; line-height: 1; }
.ch-scale-row .ch-min, .ch-scale-row .ch-name { font-size: 11px; font-weight: 600; }
.ch-scale-row { min-height: 36px; position: sticky; top: calc(var(--top-h) + 61px); z-index: 5; background: var(--surface);
                border-radius: var(--r) var(--r) 0 0; }
.ch-track.ch-scale { background: none; height: 32px; }
.ch-ql { position: absolute; top: 0; font-size: 11px; color: var(--muted); padding-left: 4px;
         border-left: 1px solid var(--line-strong); line-height: 14px; }
body.dragging { cursor: ew-resize; user-select: none; }
.chart.stale .ch-seg { opacity: .4; }
.ch-status { font-size: 13px; color: var(--text-2); margin: 8px 0 0; min-height: 1.4em; }
.ch-status.bad { color: var(--bad); }
.tl-sum { margin: 12px 0 4px; }
.tl-errs { list-style: none; }
ul.checks { list-style: none; padding: 0; margin: 4px 0; font-size: 13px; }
.seglists { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); gap: 8px; }
.seglist { margin: 4px 0; padding-left: 18px; font-size: 13px; }
.build-msg { font-size: 14px; }
/* round two: stints coloured by position, the league xls palette. Text on every one is dark (each is at least
   4.5:1 against #0C0E12; white fails on four of the five). */
.pos-PG { --pos: #E53935; } .pos-SG { --pos: #43A047; } .pos-SF { --pos: #FFC107; } .pos-PF { --pos: #4285F4; }
.pos-C { --pos: #FF6D00; }
.pos-PG, .pos-SG, .pos-SF, .pos-PF, .pos-C { --on-pos: #0C0E12; }
.ch-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 8px; font-size: 13px; }
.ch-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.ch-legend .sw { width: 14px; height: 14px; border-radius: 3px; background: var(--pos);
                background-image: repeating-linear-gradient(135deg, transparent 0 3px, rgba(255, 255, 255, .16) 3px 5px); }
.ch-legend .lg-n { color: var(--text-2); }
@media (max-width: 600px) { .ch-legend .lg-n { display: none; } .ch-legend { gap: 6px 16px; } }
.pdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--pos); margin-right: 6px;
        vertical-align: 1px; flex: none; }
.ch-tick { position: absolute; top: 18px; transform: translateX(-50%); font-size: 10px; color: var(--muted); }
.ch-scale-row .ch-add-h { min-height: 1px; }
/* session 74: the phone chart's bench rows carry up and down (44 px) under the name; a row with no minutes is slim,
   its name and arrows on one line, no bar */
.ch-mv { display: flex; gap: 2px; margin-top: 2px; }
.ch-mv .icon-btn { width: 44px; min-width: 44px; min-height: 44px; padding: 0; border-color: var(--line); }
.ch-mv .icon-btn[disabled] { visibility: hidden; }
.ch-row.slim { min-height: 48px; }
.ch-row.slim .ch-name { grid-column: 1 / -2; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; }
.ch-row.slim .ch-name .nm { color: var(--text-2); }
.ch-row.slim .ch-mv { margin-top: 0; }
.chart:not(.editable) .ch-row.slim .ch-name { grid-column: 1 / -1; }
.pos-chips { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.btn.pos-chip { min-height: 48px; padding: 0; background: var(--pos); color: var(--on-pos); border: 2px solid transparent;
                font-weight: 700; opacity: .55; }
.btn.pos-chip.on { opacity: 1; border-color: var(--text); }
.stint-mins { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.stint-mins .min-row { gap: 4px; justify-content: flex-start; }
.stint-mins .min-step { min-width: 44px; min-height: 48px; padding: 0; font-size: 22px; }
.stint-mins .min-input { width: 52px; font-size: 20px; min-height: 48px; padding: 0; }
.stint-sheet .fld > span:first-child { margin-bottom: 2px; }
.stint-len { margin: 8px 0 12px; }
/* r3 item 13: stint length chips; the kept one is marked, the one matching this stint is on */
.len-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.len-chip.on { border-color: var(--heat); color: var(--text); }
.len-chip.kept:not(.on) { border-style: dashed; }
/* r3 item 12, Build from minutes (run 2): the preset beside the intro, Build stuck to the sheet's bottom */
.draft-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.draft-head p { margin: 0; flex: 1 1 12rem; }
.draft-foot { position: sticky; bottom: -16px; margin: 0 -16px -16px; padding: 8px 16px 16px; background: var(--surface);
              border-top: 1px solid var(--line); z-index: 2; }
.draft-foot p { margin: 4px 0 8px; }
.scm-foot, .tl-foot { font-size: 13px; }
.stint-acts { display: flex; justify-content: space-between; gap: 8px; }
/* session 46 (Matt): the stint sheet on a phone, compact (about 40% of a 390 x 844 screen); every target 40 px */
@media (max-width: 999px) {
  dialog.sheet.compact .sheet-head { padding: 0 2px 0 12px; }
  dialog.sheet.compact .sheet-head h3 { font-size: 15px; min-width: 0; }   /* session 100: a name in it wraps, never cut; names-fit: never inside a word */
  dialog.sheet.compact .sheet-head .icon-btn { min-width: 40px; min-height: 40px; }
  dialog.sheet.compact .sheet-body { padding: 8px 12px 10px; }
  .stint-sheet.compact .st-lab { display: none; }
  .stint-sheet.compact .btn.pos-chip { min-height: 40px; }
  .stint-sheet.compact .stint-mins { margin-top: 8px; gap: 8px; }
  .stint-sheet.compact .stint-mins .fld { display: flex; align-items: center; gap: 6px; }
  .stint-sheet.compact .stint-mins .fld > span:first-child { margin: 0; font-size: 13px; color: var(--text-2); }
  .stint-sheet.compact .stint-mins .min-row { gap: 2px; }
  .stint-sheet.compact .stint-mins .min-step { min-width: 40px; min-height: 40px; font-size: 20px; }
  .stint-sheet.compact .stint-mins .min-input { width: 42px; min-height: 40px; font-size: 18px; }
  .stint-sheet.compact .len-chips { margin-top: 8px; }
  .stint-sheet.compact .len-chip { min-height: 40px; padding: 0 4px; }
  .stint-sheet.compact .stint-len { margin: 6px 0 8px; font-size: 12px; }
  .stint-sheet.compact .stint-acts { margin: 0; }
  .stint-sheet.compact .stint-acts .btn { flex: 1; min-height: 40px; }
  /* run 2: on a phone the stint's player picker shares the Delete / Done row, so the sheet stays under 40% */
  .stint-sheet.compact .stint-acts .st-player { flex: 1.6; min-width: 0; min-height: 40px; padding: 0 8px; font-size: 14px; }
}
.btn.danger { color: var(--bad); border-color: var(--bad); background: transparent; font-weight: 700; }   /* part 2: outlined, never filled */
.btn.danger:hover { color: var(--bad); border-color: var(--bad); background: var(--bad-soft); }
.draft-list { list-style: none; margin: 0 0 8px; padding: 0; }
.draft-row { display: flex; align-items: center; gap: 6px; min-height: 52px; border-bottom: 1px solid var(--line); }
.draft-row .grow { flex: 1; min-width: 0; line-height: 1.25; }   /* session 100: never cut; names-fit: never inside a word */
.min-step.sm { min-width: 44px; min-height: 44px; font-size: 20px; }
.draft-row .min-step.sm { flex: none; width: 44px; padding: 0; }
input.draft-in { flex: none; width: 52px; padding: 0; min-width: 0; text-align: center; font-size: 18px; font-weight: 700; min-height: 44px; -moz-appearance: textfield; appearance: textfield; }
.draft-in::-webkit-inner-spin-button, .draft-in::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
@media (min-width: 1000px) {
  .ch-scale-row { top: calc(var(--top-h) + 61px); }
  .ch-row { grid-template-columns: 160px minmax(0, 1fr) 44px; min-height: 40px; }
  .chart.editable .ch-row { grid-template-columns: 160px minmax(0, 1fr) 36px 44px; }
  .ch-track { height: 24px; }
  .ch-seg { top: 3px; bottom: 3px; line-height: 18px; }
}

/* the changes view */
.diff-chart { margin-bottom: 16px; }
.diff-chart h3 { margin: 0 0 6px; }
.dtable table { width: 100%; font-size: 14px; }
main .dtable th, main .dtable td { border: 0; border-bottom: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
main .dtable th { background: var(--surface); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.dmins td:nth-child(n+2):nth-child(-n+4) { text-align: right; font-variant-numeric: tabular-nums; }
meter.dbar { width: 96px; height: 10px; }
meter.dbar::-webkit-meter-bar { background: var(--raised); border: 0; border-radius: 5px; }
meter.dbar.up::-webkit-meter-optimum-value { background: var(--ok); border-radius: 5px; }
meter.dbar.down::-webkit-meter-optimum-value { background: var(--bad); border-radius: 5px; }
meter.dbar.up::-moz-meter-bar { background: var(--ok); }
meter.dbar.down::-moz-meter-bar { background: var(--bad); }

/* the sheet: a bottom sheet on phone, a card on desktop (live sheets sit at the side so the chart stays in view) */
dialog.sheet { position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: 100%; max-height: 80vh;
               overflow: auto; padding: 0; border: 1px solid var(--line-strong); border-radius: 16px 16px 0 0;
               background: var(--surface); color: var(--text); box-shadow: var(--shadow); z-index: 60; }
dialog.sheet::backdrop { background: rgba(0, 0, 0, .55); }
.sheet-head { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line);
              position: sticky; top: 0; background: var(--surface); z-index: 1; }
.sheet-head h3 { margin: 0; flex: 1; font-size: 16px; }
.sheet-body { padding: 16px; }
.sheet-body h4 { margin: 14px 0 6px; font-size: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }
.min-row { display: flex; align-items: center; gap: 12px; justify-content: center; margin: 4px 0 8px; }
.min-step { min-width: 56px; min-height: 56px; font-size: 24px; }
.min-input::-webkit-inner-spin-button, .min-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.min-input { -moz-appearance: textfield; appearance: textfield; width: 96px; text-align: center; font-size: 28px; font-weight: 700; min-height: 56px; }
.min-total { text-align: center; }
.sub-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pick { list-style: none; margin: 0 0 12px; padding: 0; border: 1px solid var(--line); border-radius: var(--r-sm); }
.pick li + li { border-top: 1px solid var(--line); }
.pick > li.meta { padding: 12px; }
.pick-row { display: flex; width: 100%; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; background: none;
            border: 0; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.pick-row:hover, .pick-row.on { background: var(--raised); }
.pick-row.on { box-shadow: inset 3px 0 0 var(--heat); }
.pick-filter { width: 100%; margin-bottom: 12px; min-height: 44px; }
.ask .actions { margin-bottom: 0; }
/* mobile layout (session 50): a card's head wraps (a long GM name, a status chip), an action button's words wrap
   rather than run past the screen */
.card-head { flex-wrap: wrap; row-gap: 4px; }
.card-head > .meta { min-width: 0; }
@media (max-width: 599px) {
  .actions .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.25; padding-top: 8px; padding-bottom: 8px; }
  form.inline .btn { max-width: 100%; white-space: normal; line-height: 1.25; }
}
@media (min-width: 1000px) {
  dialog.sheet { inset: auto auto 24px 50%; transform: translateX(-50%); width: 440px; border-radius: 12px; }
  dialog.sheet.live { inset: auto 24px 88px auto; transform: none; }
  dialog.sheet.live.beside { inset: auto; bottom: auto; right: auto; width: 400px; max-height: calc(100vh - 160px); }
}

/* coaching, priorities */
.prio-grid { display: grid; gap: 8px; }
.prio-head { display: none; }
.prio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; background: var(--surface); border: 1px solid var(--line);
        border-radius: var(--r); padding: 12px; }
.prio .pname { grid-column: 1 / -1; font-weight: 600; }
.prio-cell { display: flex; align-items: center; gap: 6px; min-width: 0; }
.prio-cell .field { flex: 1; min-width: 0; }
.prio-cell select { width: 100%; min-height: 44px; }
.prio-dup { grid-column: 1 / -1; }
.prio-cell .ro { min-width: 0; }
/* small fixes Part 5: below 1000 px each player is one closed row (details): the name, then his four plays short on
   one line (under the name below 600 px, beside it from 600); open, the row's block as before inside the same card */
@media (max-width: 999px) {
  .prio-d { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
  .prio-d > .prio { background: none; border: 0; border-radius: 0; padding: 0 12px 12px; }
  .prio-sum { padding: 6px 4px 6px 2px; gap: 6px; }
  .ps-text { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; min-width: 0; flex: 1; }
  .ps-name { font-weight: 600; flex: 0 0 100%; min-width: 0; }   /* session 100: wraps, never cut; names-fit: never inside a word */
  .ps-plays { color: var(--text-2); font-size: 13px; min-width: 0; }
  .ps-p { white-space: nowrap; }                    /* a long set breaks between plays, never inside one */
  /* run 2 Part 0: the open row doesn't repeat the summary's name; its source line and any error stay */
  .prio-d > .prio .pname > .rt { display: none; }
  .prio-d > .prio .pname:not(:has(> .prio-src:not([hidden]), > .err, > .prio-ln)) { display: none; }
}
@media (min-width: 600px) and (max-width: 999px) {
  .ps-name { flex: 0 0 180px; }
  .ps-plays { flex: 1 1 0; }
}
/* from 1000 px the row is the table row it was: no summary, the content shown open or closed */
@supports selector(::details-content) {
  @media (min-width: 1000px) {
    .prio-sum { display: none; }
    details.prio-d::details-content { content-visibility: visible; }
  }
}
@media (min-width: 1000px) {
  .prio-head { display: grid; grid-template-columns: 180px repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0 12px;
               font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
  .prio { grid-template-columns: 180px repeat(4, minmax(0, 1fr)); padding: 8px 12px; align-items: center; }
  .prio .pname { grid-column: auto; }
  .prio-k { display: none; }
}

/* defense: the matrix on desktop (sticky first column and header), cards on a phone */
.def-wrap { max-height: 70vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--r); margin-top: 12px; }
.def-matrix { font-size: 13px; }
main .def-matrix th, main .def-matrix td { border: 0; border-bottom: 1px solid var(--line); padding: 6px 8px;
                                            white-space: nowrap; background: var(--bg); vertical-align: middle; }
main .def-matrix thead th { position: sticky; top: 0; z-index: 2; background: var(--surface); }
main .def-matrix .def-k { position: sticky; left: 0; z-index: 1; background: var(--surface); text-align: left; }
main .def-matrix thead .def-k { z-index: 3; }
.def-matrix select { min-height: 36px; font-size: 13px; width: 100%; min-width: 9.5em; max-width: 13em; }
/* session 100: the Matchup selects name players: as wide as their longest option, so a chosen name is never cut */
main .def-matrix tr[data-k="matchup"] select { width: auto; max-width: none; }
/* round two (item 9): one matrix on both widths; a blank select shows nothing (the option still reads "same as
   Global" / "game default" in the list and to a screen reader) */
.def-matrix select.blank { color: transparent; }
.def-matrix select option { color: var(--text); background: var(--surface); }
.def-note { margin-top: 8px; }
/* session 99 (fix 10): an opponent's full name in the Defense head at every width; a long one wraps to a second line
   (at a hyphen first; names-fit: never inside a word), never cut */
main .def-matrix thead th[data-uid] .pl-n { display: inline-block; max-width: 8.5em; white-space: normal;
                                            line-height: 1.25; text-align: left; }
@media (max-width: 999px) {
  .def-matrix select { min-width: 8.5em; }
  .def-wrap { max-height: 75vh; }
  main .def-matrix th.def-k { white-space: normal; min-width: 6.5em; max-width: 7.5em; font-size: 12px; line-height: 1.25; }
}
/* session 76: defensive archetypes. The tools row (My archetypes, Undo, the status line) above the matrix; in each
   column header the player's Archetype button, the quiet line naming the archetype his tiles equal, and "Update <name>"
   once they differ from the one applied; the player's panel in the sheet (a bottom sheet on a phone). */
.def-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 10px; }
.def-tools #arch-note { font-size: 13px; }
.arch-list { margin-top: 6px; border: 1px solid var(--line); border-radius: var(--r); padding: 2px 12px; }
.arch-list > .meta { margin: 10px 0; }
.arch-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 48px; padding: 2px 0; }
.arch-row + .arch-row { border-top: 1px solid var(--line); }
.arch-row .arch-rn { flex: 1 1 10em; font-weight: 600; min-width: 0; }
.arch-row .arch-rn .meta { font-weight: 400; margin-left: 6px; }
.arch-row .arch-name { flex: 1 1 10em; min-height: 40px; }
.arch-row .arch-confirm { flex: 1 1 12em; }
.arch-err { color: var(--bad); font-size: 13px; margin: 6px 0 0; }
.arch-err:empty { display: none; }
main .def-matrix thead th .arch-line { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; color: var(--muted);
                                        max-width: 13em; overflow: hidden; text-overflow: ellipsis; }
main .def-matrix thead th .arch-line[hidden], .arch-upd[hidden] { display: none; }
.arch-btn, .arch-upd { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 4px; padding: 0 10px;
                       min-height: 44px; width: 100%; max-width: 13em; border: 1px solid var(--line-strong);
                       border-radius: var(--r-sm); background: var(--raised); color: var(--text-2); font: 600 13px var(--font);
                       cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arch-btn::after { content: ""; flex: none; width: 0; height: 0; border: 4px solid transparent; border-top-color: currentColor;
                   border-bottom: 0; margin-left: 2px; }
.arch-btn:hover, .arch-upd:hover { color: var(--text); border-color: var(--text-2); }
.arch-upd { color: var(--warn); border-color: var(--warn-soft); background: var(--warn-soft); }
.arch-panel .arch-from { margin: 0 0 4px; }
.arch-panel .arch-h:first-child { margin-top: 0; }
.arch-apply { display: flex; flex-wrap: wrap; gap: 8px; }
.arch-apply .arch-pick { min-height: 44px; font-weight: 600; }
.arch-apply .arch-n { font-size: 12px; font-weight: 400; color: var(--muted); }
.arch-update { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.arch-update .arch-confirm { flex: 1 1 100%; margin: 0; }
.arch-new { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.arch-new .arch-lab { font-size: 13px; color: var(--text-2); }
.arch-new .arch-name { flex: 1 1 12em; min-height: 44px; }
@media (min-width: 1000px) {
  /* desktop: the header's controls compact, the matrix as it was */
  .arch-btn, .arch-upd { min-height: 26px; padding: 0 8px; margin-top: 3px; font-size: 12px; }
  .def-tools .btn.small { min-height: 32px; font-size: 13px; }
  .arch-row { min-height: 40px; }
  .arch-row .btn.small, .arch-new .btn.small, .arch-update .btn.small { min-height: 34px; }
  .arch-new .arch-name, .arch-row .arch-name { min-height: 34px; }
  .arch-apply .arch-pick { min-height: 36px; }
}
/* uniforms: a dropdown and an image slot per side (item 10) */
.uni-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }   /* 340: the plan page's wide column from 1280 (timeline grid) would fit four at 300, too narrow for the longest name */
.uni { display: flex; gap: 12px; align-items: flex-start; }
.uni .fld { flex: 1; min-width: 0; }
.uni .uni-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin: 0 0 4px; }
.uni select.uni-sel { width: 100%; font-size: 14px; }       /* 14 px as when it sat in a label: the longest name fits at 360 */
/* uniforms portal brief (session 53): the Light / Dark chip says the jersey's tone in its own colours */
.uni-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; font-size: 14px; }
.chip.tone { height: 22px; padding: 0 9px; }
.chip.tone-light { background: #F4F5F7; color: #14181F; border-color: #F4F5F7; }
.chip.tone-dark { background: #14181F; color: #F4F5F7; border-color: var(--line-strong); }
.uni-meta { margin-top: 2px; }
.uni-meta:empty { display: none; }        /* small fixes Part 6: an away slot has no chip and no "See the pictures" */
button.uni-img { padding: 0; cursor: pointer; font: inherit; color: inherit; }
button.uni-img:hover { border-color: var(--line-strong); }
.uni-rule { margin-top: 12px; }
/* the picture chooser, in the sheet dialog: every option of one select */
.uni-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.uni-choice { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; min-width: 0;
              background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--text);
              font: inherit; font-size: 13px; line-height: 1.25; text-align: center; cursor: pointer; }
.uni-choice:hover { border-color: var(--line-strong); }
.uni-choice.on { border-color: var(--heat); box-shadow: 0 0 0 1px var(--heat); }
.uni-choice .uni-img { width: 100%; max-width: 132px; }
.uni-choice .uni-cn { min-width: 0; }
/* overnight brief (session 41): a real jersey shot, 450 x 600 on white, shown 140 px wide on every width */
.uni-img { flex: none; width: 140px; aspect-ratio: 3 / 4; border-radius: var(--r-sm); overflow: hidden; display: flex;
           background: var(--raised); border: 1px solid var(--line); }
.uni-img:has(img) { background: #fff; }
.uni-img img { width: 100%; height: 100%; object-fit: contain; }
/* the narrowest phones: the dropdown keeps room for the longest 2K name ("Classic Home  '45 - '55") */
@media (max-width: 379px) { .uni { gap: 10px; } .uni-img { width: 116px; } }
.uni-card { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 8px;
            background: var(--team); box-shadow: inset 0 -6px 0 var(--team-2); color: #fff; }
.uni-card .uni-t { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
/* r3 item 27: words wrap whole ("Association" on one line), never inside a word */
.uni-card .uni-n { font-size: 11px; font-weight: 600; line-height: 1.2; text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
                   margin-bottom: 6px; overflow-wrap: normal; word-break: normal; hyphens: manual; }
/* priorities (session 75, Part P): where an untouched player's four came from, under his name; "Reset to Game defaults" */
.prio-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.prio-src { display: block; font-size: 12px; font-weight: 400; line-height: 1.3; }
.prio-src[hidden] { display: none; }
.prio-src .short { display: none; }
@media (max-width: 599px) { .prio-src .long { display: none; } .prio-src .short { display: inline; } }

/* the sticky save bar: minutes, problems, Check plan, Save plan. Sits on the tab bar under 1000 px. */
.bar { position: fixed; left: 0; right: 0; bottom: var(--tab-h); min-height: var(--bar-h); display: flex; gap: 8px;
       align-items: center; padding: 8px var(--gutter); background: var(--surface);
       border-top: 1px solid var(--line); z-index: 35; }
.bar .spacer { margin-left: auto; }
/* polish Part 2: Save found no network: a line of its own across the bar, above the minutes and Save */
.bar:has(.save-net:not([hidden])) { flex-wrap: wrap; }
.bar .save-net { flex: 1 0 100%; margin: 0; color: var(--bad); font-size: 13px; line-height: 1.35; }
.bar .save-net[hidden] { display: none; }
.bar .btn[disabled] { opacity: .7; cursor: progress; }
/* r3 item 31: minutes over the problem count, one tap target; nothing in the bar wraps or shrinks */
.bar-stats { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px;
             min-height: 44px; min-width: 0; color: var(--text); line-height: 1.1; font-size: 13px; }
.bar-stats:hover { color: var(--text); }
.bar-min, #bar-sum { white-space: nowrap; }
.bar-l { color: var(--text-2); display: none; }
.bar .chip { height: 22px; font-size: 12px; padding: 0 8px; white-space: nowrap; }
.bar .btn { flex: none; }
.btn.text { background: none; border-color: transparent; color: var(--heat-text); padding: 0 8px; font-size: 14px; }
.btn.text:hover { color: var(--text); border-color: transparent; }
.bar .btn .short { display: none; }
@media (min-width: 480px) {
  .bar-stats { flex-direction: row; align-items: center; gap: 12px; }
  .bar-l { display: inline; }
  .bar .chip { height: 32px; font-size: 13px; padding: 0 12px; }
}
@media (min-width: 1000px) { .bar { bottom: 0; } }
/* the save bar's ends line up with the content column on a wide screen */
@media (min-width: 1000px) { .bar { padding-left: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
                                   padding-right: max(var(--gutter), calc((100vw - var(--maxw)) / 2)); } }

/* Home: the matchup card (Sleeper), my last game, the league pulse */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 24px; }
.home-side .section-title:first-child { margin-top: 28px; }
.mu-card { position: relative; overflow: hidden; }
.matchup { display: block; position: relative; padding: 20px 16px 16px; color: var(--text); }
.matchup:hover { color: var(--text); background: var(--raised); }
.mu-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; text-align: center; }
.mu-team { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.mu-team .tlogo.lg { width: 48px; height: 48px; }   /* accent rule: the logos carry the matchup (was the 64 default) */
.mu-team b { font-size: 20px; letter-spacing: .02em; }
.mu-team small { color: var(--text-2); font-size: 13px; }
.mu-at { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.al-me { font-weight: 700; }
.mu-team b.mu-n { font-weight: 500; }
.mu-team b.mu-n.me { font-weight: 700; }
.mu-when { display: block; text-align: center; margin-top: 14px; color: var(--text-2); font-size: 14px; }
.mu-status { display: block; text-align: center; margin-top: 6px; font-size: 20px; font-weight: 700; }
.mu-status.st-locked, .mu-status.st-reopened, .mu-status.st-capturing, .mu-status.st-final, .mu-status.st-void,
.mu-status.st-unset { font-size: 16px; font-weight: 600; }
.st-unset { color: var(--text-2); }
.st-capturing { color: var(--live); }
.mu-body { padding: 4px 16px 16px; border-top: 1px solid var(--line); }
.mu-body #plan { margin: 12px 0 16px; }
.mu-body .textlinks { justify-content: center; margin-top: 4px; }
/* small fixes Part 18: Home on desktop. The card's header one compact row (small logos, the names and records, the
   tip-off), the status and the one button as the card's point; Your week in the side column. The phone unchanged. */

@media (min-width: 1000px) {

  .your-week .rows + .rows { margin-top: 8px; }
  .matchup { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; padding: 14px 20px 12px; }
  .mu-teams { display: flex; align-items: center; gap: 10px; text-align: left; flex-wrap: wrap; }
  .mu-team { flex-direction: row; align-items: center; gap: 8px; }
  .mu-team .tlogo.lg { width: 48px; height: 48px; }
  .mu-team b { font-size: 20px; }
  .mu-when { margin: 0 0 0 auto; text-align: right; font-size: 13px; }
  .mu-status { flex-basis: 100%; text-align: left; margin-top: 10px; }
}
@media (min-width: 1000px) {
  .home-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
  .home-side .section-title:first-child { margin-top: 0; }
  .home-side .tiles { grid-template-columns: minmax(0, 1fr); }
}

/* Me, My plans */
.me-col, .hist { max-width: 760px; }
.me-head { position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; padding: 20px 20px 20px 24px; }
.me-head h1 { font-size: 24px; }
.me-head .meta { margin: 4px 0 0; }
#me-links, #me-league { margin-bottom: 16px; }
.rows .row > .icon:first-child { color: var(--text-2); }
.rows span.row { color: var(--text); }
.hist-head { color: var(--text); }
.hist-head:hover { color: var(--text); background: var(--line); }   /* card-heads: the band is --raised at rest */
.hist-head .grow { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }   /* r3 item 24: left, by the logo */
ul.saves { list-style: none; margin: 0; padding: 0; }
ul.saves li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; flex-wrap: wrap; }
ul.saves li + li { border-top: 1px solid var(--line); }
ul.saves .grow { display: flex; flex-direction: column; flex: 1 1 12rem; }
.save-no { font-weight: 700; width: 2.5em; color: var(--text-2); }
.save-links { display: flex; gap: 16px; font-size: 14px; }
.save-links a { min-height: 44px; display: inline-flex; align-items: center; }
.st-locked .icon { width: 14px; height: 14px; vertical-align: -2px; }

/* the game page: the score header, the embed (desktop), the blocks, the plans, the files */
.score-head { position: relative; overflow: hidden; padding: 20px 16px 16px; text-align: center; }
.sh-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
/* polish Part 5: the score header's matchup is the game page's h1, drawn as the block it was */
h1.sh-teams { margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; letter-spacing: inherit;
              overflow-wrap: normal; }
.sh-team { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
/* game-banner-links (session 246): the logo, name and city are one link to the team page, laid out as .sh-team laid
   them out at every width (the score after it, outside it); white like The teams table's links, the name underlined
   on hover, the site's :focus-visible ring. A box, never display: contents: the ring and the tap target need one. */
.sh-teamlink { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; max-width: 100%; }
a.sh-teamlink, a.sh-teamlink:hover { color: var(--text); text-decoration: none; }
a.sh-teamlink:hover b { text-decoration: underline; text-underline-offset: 3px; }
.sh-team b { font-size: 18px; }
.sh-team small { color: var(--text-2); font-size: 13px; }
.sh-pts { font-size: 40px; font-weight: 700; line-height: 1.1; color: var(--text-2); margin-top: 4px; }
.sh-pts.won { color: var(--text); }
.sh-mid { color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.sh-status { font-size: 17px; font-weight: 600; margin: 14px 0 2px; }
.sh-status .cd { display: block; font-size: 13px; font-weight: 400; color: var(--text-2); }
.st-locked { color: var(--locked); }
.sh-when { margin: 2px 0 0; }
.sh-actions { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.sh-actions:empty { display: none; }
.sh-actions .btn { min-width: 12rem; }
.embed { display: none; }
.tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#teams-before .tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
#teams-before .t-value { font-size: 16px; }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 12px 16px; }
.plan-card { margin: 0; }
.plan-card .card-head h3 { font-size: 16px; }
.plan-card .card-head a { font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
/* desktop-align finding 6 (from 1000 px; the phone's single column is as it was): one head shape for every plan card:
   the logo, the team's name beside it on the left, "The full plan" at the right edge when there is one; the head 56 px
   with or without the link (the link's 44 px tap target sits inside it, so the head never grows for it) */
@media (min-width: 1000px) {
  .plan-card .card-head { justify-content: flex-start; flex-wrap: nowrap; min-height: 56px; padding-top: 0; padding-bottom: 0; }
  .plan-card .card-head h3 { flex: 1 1 auto; min-width: 0; }
  .plan-card .card-head a { margin-left: auto; flex: none; }
}
.plan-card .card-body p { margin-top: 0; }
table.mins { width: 100%; font-size: 14px; }
main table.mins th, main table.mins td { border: 0; border-bottom: 1px solid var(--line); padding: 4px 0; }
main table.mins th { background: none; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
table.mins td:last-child, table.mins th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.artifact { border-top: 1px solid var(--line); padding: 6px 0 12px; }
.artifact:first-of-type { border-top: 0; }
.artifact h3 { font-size: 15px; }
details.region { margin: 4px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 12px; }
details.region > summary { font-size: 14px; }
table.diff td:nth-child(2), table.diff td:nth-child(3) { text-align: right; }
/* desktop-align finding 12: the run log's Steps table, Start, End and Exit right aligned, headers with their cells */
table.diff.steps th:nth-child(n+2), table.diff.steps td:nth-child(n+2) { text-align: right; }
.fileline { font-size: 13px; color: var(--text-2); padding: 8px 0; border-top: 1px solid var(--line); margin: 0; }
/* a full sha256 is one token: it scrolls in its own box rather than break inside (no-word-break; sha_short is the short form) */
code.sha { font-size: 12px; color: var(--muted); display: inline-block; max-width: 100%; overflow-x: auto; vertical-align: bottom; white-space: nowrap; scrollbar-width: thin; }
details.files { margin-top: 32px; }
details.files > summary { margin: 0 0 8px; }
.kv th { white-space: nowrap; }
@media (min-width: 1000px) {
  .score-head { padding: 28px 24px 24px; }
  .sh-team b { font-size: 22px; }
  .sh-pts { font-size: 48px; }
  .embed { display: block; position: relative; aspect-ratio: 16 / 9; margin: 0 0 24px; border-radius: var(--r);
           overflow: hidden; border: 1px solid var(--line); background: #000; }
  .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
}

/* box score, NBA app shape: one tab per team, the wide table scrolls sideways inside its own box */
.boxtabs { display: flex; gap: 8px; margin: 8px 0; }
.kind-box_score h3.final { font-size: 15px; color: var(--text-2); }
.boxtab.on { background: var(--heat); color: var(--on-heat); border-color: var(--heat); }
/* small fixes Part 14: from 1000 px both teams, one above the other, no switch; the phone keeps the switch.
   desktop-align item 0: one table, a row group (tbody.boxpane) per team, so both teams share one set of column widths */
table.box tr.box-team { display: none; }
@media (min-width: 1000px) {
  .kind-box_score .boxtabs { display: none; }
  .kind-box_score .boxpane[hidden] { display: table-row-group !important; }
  table.box tr.box-team { display: table-row; }
  table.box tr.box-team th { text-align: left; font-size: 15px; font-weight: 600; color: var(--text); background: var(--bg);
                             padding: 20px 8px 6px; border-bottom: 0; }
  table.box tr.box-team.first th { padding-top: 4px; }
}
/* small fixes Part 14: the game page's top on desktop, one compact row: the teams and the score (or "at"), the lock
   or status and the tip-off, the one button. The phone's card is unchanged. */
@media (min-width: 1000px) {
  .score-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "teams status actions"
                "teams when actions"; align-items: center; column-gap: 32px; padding: 16px 24px; text-align: left; }
  .score-head .sh-teams { grid-area: teams; display: flex; align-items: center; gap: 16px; }
  .score-head .sh-team { flex-direction: row; align-items: center; gap: 10px; }
  .score-head .sh-team:last-child { flex-direction: row-reverse; }
  .score-head .sh-teamlink { flex-direction: row; align-items: center; gap: 10px; }      /* game-banner-links */
  .score-head .sh-team:last-child .sh-teamlink { flex-direction: row-reverse; }
  .score-head .sh-team .tlogo.lg { width: 40px; height: 40px; }
  .score-head .sh-team b { font-size: 18px; }
  .score-head .sh-team small { display: none; }
  .score-head .sh-pts { font-size: 32px; margin: 0; }
  .score-head .sh-status { grid-area: status; margin: 0; align-self: end; }
  .score-head .sh-when { grid-area: when; margin: 2px 0 0; align-self: start; }
  .score-head .sh-status + .sh-when { align-self: start; }
  .score-head .sh-actions { grid-area: actions; margin: 0; }
  .score-head .sh-actions .btn { min-width: 0; }
  /* desktop-align finding 5: a played game has no status line (FINAL sits between the scores), so its tip-off spans both
     rows and centres on the teams; the story links, when there are any, are the status line (same cell, stacked) */
  .score-head .sh-story { grid-area: status; margin: 0; align-self: end; }
  .score-head:not(:has(.sh-status, .sh-story)) .sh-when { grid-row: 1 / span 2; align-self: center; margin: 0; }
}
table.box { font-size: 14px; white-space: nowrap; }
table.box td, table.box th { text-align: right; padding: 6px 8px; border-width: 0 0 1px 0; }
table.box .pl { text-align: left; position: sticky; left: 0; background: var(--bg); z-index: 1; }
table.box tr.box-head th { background: var(--surface); font-weight: 600; }   /* what main th gives a thead cell */
table.box tr.box-head th.pl { background: var(--surface); }
table.box tr.grp td { background: var(--raised); font-weight: 600; text-align: left; }
/* Starters / Bench: the label cell sticks with the player column (same rule) */
table.box tr.grp td.pl { text-align: left; position: sticky; left: 0; background: var(--raised); z-index: 1; border-right: none; }
table.box tr.grp td + td { border-left: none; }
table.box tr.tot td { font-weight: 600; border-top: 2px solid var(--text-2); }
table.fid tr.off td { color: var(--bad); }

/* schedule: day groups of full-width rows, results and unscheduled games collapsed */
.sched-col, .page-head.sched-head { max-width: 760px; }   /* r3 item 22: the My games chip on the column's edge */
.sched .row { gap: 12px; }
.sched li.mine .row { box-shadow: inset 3px 0 0 var(--heat); }
/* session 99 (fix 6): the matchup's logos side by side with a gap, never overlapping (busy logos blended into one) */
.gr-logos { display: inline-flex; flex: none; gap: 4px; }
.gr-teams { display: block; font-weight: 600; }
/* site review run 1: the player page's How this works, styled as the plan page's */
.section-title.with-howto { display: flex; align-items: center; gap: 12px; }
.howto-t.pl-howto { display: inline-flex; align-items: center; margin-left: auto; min-height: 28px; font-size: 13px;
                    font-weight: 500; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px;
                    text-transform: none; letter-spacing: normal; }
.howto-t.pl-howto[hidden] { display: none; }
@media (max-width: 999px) { .howto-t.pl-howto { min-height: 44px; margin-block: -8px; } }
h3.day, h2.day { margin: 16px 0 8px; font-weight: 600; font-size: 14px; }
h2.day { text-transform: none; letter-spacing: normal; }  /* post-launch fixes A4: "Tuesday, October 27", as written */
ol.sched + h2.day { margin-top: 28px; }        /* polish Part 6: 28 px above a section heading that follows content */
details.sched-more { margin-top: 8px; }
details.sched-more > summary { margin: 20px 0 10px; }
a.chip.toggle { height: 44px; padding: 0 16px; font-size: 13px; }
a.chip.toggle[aria-current=true] { color: var(--text); border-color: var(--heat); }   /* polish Part 5: links mark "on" with aria-current */
a.chip.toggle .icon { width: 14px; height: 14px; }

/* League: standings, results, leaders, teams, the team page */
.seg-links { display: flex; gap: 8px; margin: 0 0 16px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
.seg-links .chip { flex: none; }
.standings-wrap { padding: 0; }
.standings { white-space: nowrap; }
main .standings th, main .standings td { border-width: 0 0 1px 0; }
.standings tr.mine td { background: var(--heat-soft); }
.st-team a { display: inline-flex; align-items: center; gap: 8px; color: var(--text); min-height: 32px; }
main .standings .st-team { position: sticky; left: 0; background: var(--surface); }
.results .row { gap: 16px; }
.res-side { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); min-width: 7.5rem; }
.res-side .num { font-size: 18px; font-weight: 700; }
.res-side.won { color: var(--text); }
.leaders .rank { width: 1.6em; color: var(--muted); font-weight: 700; text-align: right; }
.lead-v { font-size: 18px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 10px; }
.team-tile { display: flex; align-items: center; gap: 12px; position: relative; overflow: hidden; }
.team-tile .t-value { font-size: 16px; }
.team-head { display: flex; align-items: center; gap: 16px; padding: 20px 20px 20px 24px; position: relative; overflow: hidden; }
.team-head h1 { font-size: 24px; }
.team-head .meta { margin: 4px 0 0; }
.team-head .grow, .me-head .grow { min-width: 0; }
/* mobile layout (session 50): under 360 CSS px (a phone with enlarged text) the heads take a smaller logo and title,
   and a matchup stacks its teams one per line: two columns cut "Timberwolves" in half */
@media (max-width: 359px) {
  .team-head, .me-head { gap: 12px; padding: 16px 16px 16px 20px; }
  .team-head .tlogo.lg, .me-head .tlogo.lg { width: 48px; height: 48px; }
  .team-head .tlogo.lg .tbadge, .me-head .tlogo.lg .tbadge { font-size: 14px; }
  .team-head h1, .me-head h1 { font-size: 20px; }
  .mu-teams, .sh-teams { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .mu-team, .sh-team { flex-direction: row; flex-wrap: wrap; justify-content: center; column-gap: 10px; }
  /* game-banner-links: the link wraps its three as .sh-team did; 2 px more above and below for a 44 px tap target, the
     same taken back by the margin, so nothing moves */
  .sh-teamlink { flex-direction: row; flex-wrap: wrap; justify-content: center; column-gap: 10px; padding: 2px 0;
             margin: -2px 0; }
  .mu-team .tlogo.lg, .sh-team .tlogo.lg { width: 40px; height: 40px; }
  .mu-team .tlogo.lg .tbadge, .sh-team .tlogo.lg .tbadge { font-size: 13px; }
  .sh-team .sh-pts { margin: 0; font-size: 32px; }
}
.form { display: flex; gap: 4px; }
.pill { display: inline-flex; width: 26px; height: 26px; border-radius: 6px; align-items: center; justify-content: center;
        font-size: 13px; font-weight: 700; }
.pill.w { background: var(--ok-soft); color: var(--ok); }
.pill.l { background: var(--bad-soft); color: var(--bad); }
.team-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 24px; }
.roster { padding: 4px 0; }
.roster-pos { margin: 12px 16px 4px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.rows.flat { border: 0; border-radius: 0; background: none; }
.rows.flat .row { min-height: 52px; }
@media (min-width: 1000px) { .team-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 600px) { .hide-sm { display: none; } }

/* commish dashboard, audit */
.strip { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.strip .tile p { margin: 4px 0 0; font-size: 14px; font-weight: 400; }
.strip .tile p.ok { color: var(--text); }
.strip .t-sub { display: block; }
/* site review run 1: the commish's five status tiles two across under 1000 px, the last one full width */
@media (max-width: 999px) {
  #runner.strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #runner.strip > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.tile-bad { border-color: var(--bad); background: var(--bad-soft); }
.tile-warn { border-color: var(--warn-soft); }
.tile-warn .t-value { color: var(--warn); }
.panel { margin-bottom: 20px; }
.panel > details > summary .section-title { margin: 20px 0 10px; }
.filter-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin: 0 0 12px; }
.filter-row .fld { flex: 0 1 16rem; }
.filter-row input[type=text] { width: 100%; min-height: 44px; }
main .dash td { vertical-align: top; }
.dash td.acts { min-width: 12rem; }
details.inline-form { display: inline-block; margin: 0 4px 4px 0; vertical-align: top; }
details.inline-form > summary { display: inline-flex; min-height: 44px; }
details.inline-form > summary::before { display: none; }
details.inline-form[open] > summary { border-color: var(--heat); }
.ovform, .streamform, .resolve { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.ovform input[type=text], .resolve input[type=text] { min-width: 14em; }
.streamform input[type=url] { width: 18em; }
.mins-in input { width: 5em; }
/* r3 item 21: the audit as rows on both widths */
.audit-rows > li + li { border-top: 1px solid var(--line); }
.audit-rows .row { border: 0; align-items: flex-start; }
.au-row .chip { white-space: nowrap; flex: none; margin-top: 1px; }
.au-row .grow { display: flex; flex-direction: column; gap: 2px; }
.au-on { font-weight: 600; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.au-id { color: var(--muted); }
.audit-rows .why { font-weight: 600; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.audit-rows .row-detail { padding: 0 16px 8px; }
.audit-rows .row-detail code { font-size: 12px; white-space: normal; display: block; margin: 0 0 4px; overflow-x: auto; scrollbar-width: thin; }
/* small fixes Part 16: the audit trail as a table from 1000 px: When, Who, What (the chip and the reason), Game or
   player; the Detail opens inline under its row. The same markup as the phone's list (display: contents). */
.au-head { display: none; }
@media (max-width: 999px) { .audit-rows > li.au-head + li { border-top: 0; } }   /* the phone's list as it was */
@media (min-width: 1000px) {
  .audit-rows > li.au-head { display: grid; }
  .audit-rows > li.au-head, .audit-rows .au-row { grid-template-columns: 190px 200px minmax(0, 1fr) minmax(0, 220px);
                                                  column-gap: 16px; align-items: start; }
  .audit-rows > li.au-head { padding: 8px 16px; font-size: 12px; font-weight: 600; color: var(--muted);
                             text-transform: uppercase; letter-spacing: .06em; }
  .audit-rows .au-row { display: grid; grid-template-areas: "when who what on" "when who why on"; padding-top: 10px;
                        padding-bottom: 10px; }
  .audit-rows .au-row .grow, .audit-rows .au-row .meta { display: contents; }
  .audit-rows .au-row .chip { grid-area: what; justify-self: start; margin: 0; }
  .audit-rows .au-row .why { grid-area: why; }
  .audit-rows .au-row .au-on { grid-area: on; }
  .audit-rows .au-row .au-when { grid-area: when; color: var(--text-2); font-size: 14px; }
  .audit-rows .au-row .au-who { grid-area: who; color: var(--text-2); font-size: 14px; }
  .audit-rows .au-row .au-sep { display: none; }
  .audit-rows .row-detail { padding: 0 16px 6px calc(16px + 190px + 16px + 200px + 16px); margin-top: -4px; }
  .audit-rows .row-detail > summary { min-height: 28px; font-size: 13px; }
  .audit-rows .au-row:has(+ .row-detail) { padding-bottom: 4px; }
}

/* phone width (390 px target): nothing wider than the screen except tables that scroll inside their own box */
@media (max-width: 600px) {
  h1 { font-size: 20px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .sh-actions .btn { flex: 1; min-width: 0; }
  .streamform input[type=url], .ovform input[type=text], .resolve input[type=text] { width: 100%; min-width: 0; }
  .bar { gap: 8px; padding: 8px 12px; }
}

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

/* ---------------------------------------------------------------- round two */
/* labels and values look different (item 8): the label small, muted, caps-spaced; the value at body size in text */
.fl { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.fv { display: block; font-size: 16px; color: var(--text); }
/* Home: the league pulse as one card of rows, label left, value right */
.pulse-rows .row { min-height: 52px; }
.pulse-rows .fl { flex: none; }
.fl.inl { display: inline; margin-right: 2px; }
.warn-t { color: var(--warn); }
/* r3: a run log's stall reason carries Windows paths with no break point; found in the shots at 360 */
.runlog-line { overflow-x: auto; scrollbar-width: thin; }
/* r3 item 29: the startup checks panel, a verdict row with its Detail */
.checks .row-detail { padding: 0 16px 12px; }
.row-detail > summary { color: var(--text-2); font-size: 14px; min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.pulse-rows .end { text-align: right; min-width: 0; font-size: 15px; }
@media (min-width: 600px) { .rows.pulse-rows .row { flex-wrap: nowrap; } }   /* the label and its value side by side */
/* Schedule: one line per game (marks, DEN at SAC, 7:30 PM, chip) */
.row.one .grow { display: flex; align-items: baseline; gap: 0 10px; flex-wrap: wrap; }   /* the time under the teams if it must */
.row.one .gr-teams, .row.one .gr-time { white-space: nowrap; }
.row.one .gr-teams { display: inline; }
.row.one .gr-time { display: inline; margin: 0; }
.row.one .chip { white-space: nowrap; }
/* Commish: games as rows on both widths, the actions under each row */
.dash-rows > li { padding-bottom: 8px; }
.dash-rows .row { padding-bottom: 4px; }
.dash-rows .gr-teams .meta { font-weight: 400; margin-left: 4px; }
.dash-rows .plans-line { display: block; }
.row-acts { display: flex; flex-wrap: wrap; gap: 0 8px; padding: 0 16px 0 72px; }
/* small fixes Part 17: the commish page on desktop, two columns and the games as a table (the same markup; the
   phone's wrappers are display: contents and its date cells and table header hidden) */
.cm-cols, .cm-left, .cm-right { display: contents; }
/* turn-heads (session 252, item 6): Commish > Draft from 1100 px, its cards (the lottery, the pool, the pick clock, the
   room) in two columns the browser balances, in that order down the first and on down the second, a card never split;
   so no column stands empty beside a stack, whichever card is tall in the draft's state (before the draw the pick
   clock, after it the drawn order and the room). Under 1100 px one column */
@media (min-width: 1100px) {
  .cd-cols { columns: 2; column-gap: 24px; }
  .cd-cols > .card { break-inside: avoid; }
}
.cg-head { display: none; }
@media (min-width: 1000px) {
  .cm-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 0 32px; align-items: start; }
  .cm-left, .cm-right { display: block; min-width: 0; }
  /* the date: each day's heading, a group row above its games */
  #games .day { margin: 12px 0 0; padding: 6px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
  #games .cg-head, #games .dash-rows > li { display: grid; grid-template-columns: 110px minmax(0, 1fr) 110px 140px 110px;
                                            grid-template-areas: "time match status plans stream"
                                                                 "time match reopen plans stream";
                                            column-gap: 12px; align-items: start; }
  #games .cg-head { padding: 8px 12px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase;
                    letter-spacing: .06em; border-bottom: 1px solid var(--line); }
  #games .dash-rows { margin: 0; }
  #games .dash-rows > li { padding: 8px 12px; border-bottom: 1px solid var(--line); }
  #games .dash-rows .row, #games .dash-rows .row .grow, #games .row-acts { display: contents; }
  #games .dash-rows .gr-logos { display: none; }
  #games .cg-time { grid-area: time; font-size: 14px; }
  #games .gr-teams { grid-area: match; }
  #games .dash-rows .end { grid-area: status; justify-self: start; margin: 0; }
  #games .plans-line { grid-area: plans; font-size: 13px; }
  #games .cg-reopen { grid-area: reopen; justify-self: start; }
  #games .cg-stream { grid-area: stream; justify-self: start; }
  #games .row-acts details.inline-form[open] { grid-column: 1 / -1; }
}
.row-acts details.inline-form[open] { display: block; flex-basis: 100%; }
.hb-detail { margin-top: 6px; font-size: 13px; }
.hb-detail > summary { color: var(--text-2); cursor: pointer; min-height: 32px; }
/* session 126 (stall-resume item 2): the commish's pad on the Runner tile, and the last five commands under the strip */
.pad-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.pad-row form.inline { display: inline; margin: 0; }
.pad-row .btn.small { min-height: 36px; padding: 0 10px; }
.pad-more { display: inline-block; }
.pad-more > summary { list-style: none; display: inline-flex; align-items: center; }
.pad-more > summary::-webkit-details-marker { display: none; }
.pad-more[open] > .pad-row { margin-top: 6px; }
.pad-note { margin: 6px 0 0; font-size: 12px; }
.pad-log { list-style: none; margin: -8px 0 16px; padding: 0; font-size: 13px; }
.pad-log li { padding: 2px 0; overflow-x: auto; scrollbar-width: thin; }
.strip .fv { font-weight: 600; }
@media (max-width: 600px) { .row-acts { padding-left: 16px; } }
.dash-rows .gr-teams .meta { white-space: nowrap; }
/* player names link to the ratings site, new tab (round two, item 5) */
a.pl-link { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a.pl-link:hover { color: var(--heat-text); text-decoration-color: currentColor; }
.icon.ext { width: 12px; height: 12px; margin-left: 4px; vertical-align: -1px; color: var(--muted); }
a.pl-ext { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; color: var(--muted); }
a.pl-ext .icon.ext { margin: 0; width: 14px; height: 14px; }
/* mobile layout (session 50): a player row's name on one line. The name takes the ellipsis where it cannot fit, the
   link icon stays beside it at full size (max-width: none: inside a squeezed column 100% had drawn it 0 px wide). */
.rt.one .icon.ext { max-width: none; flex: none; }
.rt.one { display: block; min-width: 0; }      /* session 100: never cut; names.js shortens a name that would wrap */
/* session 100: a player's name wraps rather than spill or clip, wherever it sits (a cell that keeps its text on one
   line included); where it may take the short form, static/names.js does that first */
[data-pn] { white-space: normal; }       /* names-fit: a name wraps at its spaces, never inside a word */
/* in a table the name's box keeps its width (its own max-width the cap) so a wrapping name never squeezes the column
   to one word a line: names.js then shows the short form instead */
td.nm .rt.one, th.nm .rt.one { width: max-content; flex: none; }
table.st-table td.nm .cmp-pick + .nm-in { max-width: none; }   /* the cap is the name box's own (a % here let it squeeze) */
table.box [data-pn] { white-space: nowrap; }     /* the box score keeps a name on one line: its column grows, the table scrolls */
.rt.one a.pl-link { display: inline-flex; align-items: center; max-width: 100%; vertical-align: top; text-decoration: none; }
.rt.one a.pl-link .pl-n { min-width: 0; text-decoration: underline;
                          text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.rt.one a.pl-link:hover .pl-n { text-decoration-color: currentColor; }
.pl-stats > span { white-space: nowrap; }                    /* minutes and points break between, never inside */
.rows .row.roster-row { padding-top: 8px; padding-bottom: 8px; }
.roster-row .rt { line-height: 1.3; }
.roster-row .pl-stats { line-height: 1.35; }
.rows .row.roster-row { flex-wrap: nowrap; }
.rows .row.roster-row > .grow { min-width: 0; }
.roster-row .block-toggle { flex: none; }
/* a chip's short label on a phone (Trade block becomes Block), the long one from 600 px; under 360 CSS px (a phone
   with enlarged text) the icon alone, the words kept for screen readers (the button's aria-label names it) */
.chip .short, .chip.compact > .icon { display: none; }
/* session 68: while the page shows a draft the bar's chip says so; under 600 px the short "Draft" (shorter than
   "7 problems", so the bar keeps its fit), "Kept as a draft, 7 problems" from 600 */
@media (max-width: 599px) { .chip.compact .long { display: none; } .chip.compact .short { display: inline; }
                            button.chip.compact { padding: 0 12px; } }
@media (max-width: 359px) {
  .rows .row.roster-row { padding-left: 12px; padding-right: 12px; gap: 10px; }
  /* the save bar: Check and Save, the full names in their aria-labels */
  .bar .btn .long { display: none; } .bar .btn .short { display: inline; } .bar .btn.text { padding: 0 6px; }
  .bar .btn.primary { padding: 0 14px; }
  /* priorities: one play type a line */
  .prio { grid-template-columns: minmax(0, 1fr); }
  .tiles.two { grid-template-columns: minmax(0, 1fr); }
  /* the timeline chart: a narrower name column and no headshot, so the minutes keep most of the row (at 260 CSS px
     the 112 px column had left the bars 16 px) */
  .ch-row { grid-template-columns: 68px minmax(0, 1fr) 24px; gap: 4px; padding: 0 6px; }
  .chart.editable .ch-row { grid-template-columns: 92px minmax(0, 1fr) 22px 40px; }   /* session 74: the arrows */
  .ch-name .hs { display: none; }
  .chip.compact .short { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .chip.compact > .icon { display: inline-block; width: 18px; height: 18px; }
  button.chip.compact { width: 44px; padding: 0; justify-content: center; }
  span.chip.compact { padding: 0 8px; }
}
/* mobile layout (session 50): a list row whose middle column would be squeezed under 7.5 rem moves its end column
   (a score, a chip, a count) to a line of its own instead of drawing it over the text */
.rows .row { flex-wrap: wrap; row-gap: 4px; }
.rows .row > .grow { flex: 1 1 7.5rem; min-width: 0; }
.rows .row > .end { max-width: 100%; }                         /* on a line of its own, its words wrap */
.rows .row > .end > .chip { max-width: 100%; height: auto; min-height: 26px; white-space: normal; line-height: 1.25;
                            padding-top: 3px; padding-bottom: 3px; }
/* session 100: the name flows after the headshot and dot, and a second line starts at the row's left edge, so a long
   word (Antetokounmpo, Niederhäuser) has the whole column instead of breaking mid-word */
.ch-name .nm { display: block; }
.ch-name .nm > .hs, .ch-name .nm > .pdot { vertical-align: middle; }
.ch-name .nm a.pl-link, .ch-name .nm a.pl-link .pl-n { display: inline; }
.ch-name a.pl-ext { min-width: 24px; min-height: 24px; }
/* the game page before tip-off: the teams as scouting (round two, item 12) */
.tile.scout { display: flex; flex-direction: column; gap: 2px; color: var(--text); }
.tile.scout .scout-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tile.scout .scout-head .t-value { margin: 0; font-size: 16px; }
.tile.scout .fl { margin-top: 8px; }
.tile.scout .fv { font-size: 15px; }
.tile.scout .form { display: flex; gap: 4px; flex-wrap: wrap; }
.sh-status .lock-at { display: block; font-size: 13px; font-weight: 400; color: var(--text-2); margin-top: 2px; }
a.textlink { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 600; }
a.textlink .icon { width: 16px; height: 16px; }

/* trades brief, Part B: trades */
.trade-sides { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 760px) { .trade-sides { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.trade-side .card-head h2 { font-size: 16px; margin: 0; flex: 1 1 auto; }
.pick-players, .releases { max-height: none; }
.pick-player { cursor: pointer; gap: 10px; }
.pick-player input { width: 22px; height: 22px; flex: none; accent-color: var(--heat); }
.plain-list { list-style: none; margin: 4px 0 12px; padding: 0; }
.plain-list li { display: flex; align-items: center; gap: 8px; min-height: 32px; flex-wrap: wrap; }
.trade-note textarea { width: 100%; }
.checklist { padding-left: 20px; }
.checklist li { margin: 8px 0; }
.checklist li.done { color: var(--text-2); }
form.inline { display: inline-block; margin: 0 8px 0 0; max-width: calc(100% - 8px); }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px;
         border-radius: var(--r-pill); background: var(--heat); color: var(--on-heat); font-size: 11px; font-weight: 700; }
.chip.trade-awaiting, .chip.trade-releases { color: var(--warn); background: var(--warn-soft); border: 1px dashed var(--warn); }
.chip.trade-executed, .chip.trade-approved { color: var(--ok); background: var(--ok-soft); border: 1px solid var(--ok); }
.chip.trade-vetoed, .chip.trade-declined { color: var(--bad); background: var(--bad-soft); border: 1px solid var(--bad); }
.chip.trade-expired { color: var(--locked); }                     /* session 122 (hub-e): unanswered for trade_days */
.chip.trade-closed { color: var(--locked); }                    /* session 86: an open trade past the deadline */
.guide { border-color: var(--line-strong); }
/* Part C: a player's headshot, small and round; the silhouette when there is none */
.hs { display: inline-flex; flex: none; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: var(--raised);
      align-items: center; justify-content: center; vertical-align: middle; }
.hs img { width: 100%; height: 100%; object-fit: cover; }
.hs-sil { width: 70%; height: 70%; fill: var(--muted); }
.hs.xs { width: 20px; height: 20px; margin-right: 6px; }
.hs.md { width: 36px; height: 36px; }
.hs img { object-position: 50% 0; }
/* session 161 (headshots-everywhere): player_row puts the face inside the name's link; the badge is the OVR under it, never on its pixels (session 168, layout-reds) */
.pl-link:has(> .hs, > .hsb) { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; }
.pl-link:has(> .hs, > .hsb) > .pl-n { min-width: 0; }
.pl-link > .hs.xs { margin-right: 0; }
.hsb { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; flex: none; }
.hsb > .hs { margin: 0; }
.hs-badge { min-width: 18px; padding: 0 3px; border-radius: 9px; background: var(--surface, var(--bg));
  border: 1px solid var(--line-strong); color: var(--text); font-size: 10px; font-weight: 700; line-height: 15px; text-align: center; }
.hsb.lg > .hs-badge { font-size: 12px; line-height: 18px; min-width: 22px; }
.plw-nohs { display: inline-flex; align-items: center; gap: 8px; }
/* the Matchups row: the face (with the OVR badge) leads in the name's link, hanging down beside the sub lines */
.mx-nm .pl-link:has(> .hsb) { align-items: flex-start; }
.mx-nm .hsb { margin-bottom: -19px; }
.mx-who > .mx-sub, .mx-who > .mx-sub-ph { margin-left: 44px; }
.ps-nm > .hs { margin-right: 8px; }
.prio .pname .pl-link:has(> .hs) { gap: 10px; }
.dh-full .pl-link:has(> .hs), .dh-short .pl-link:has(> .hs) { gap: 6px; }
.ch-name .hs { width: 20px; height: 20px; margin-right: 4px; }

/* trades brief 2: trades of 3 or 4 teams (a side per team; a destination per player on the form) */
@media (min-width: 1200px) { .trade-sides.multi { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); } }
select.dest { flex: none; width: auto; max-width: 9.5em; min-height: 44px; }
.pick-player select.dest { margin-left: auto; }

/* small fixes Part 12: the trade form with script (static/trade.js): one roster at a time, the deal beside it from
   1000 px (in view as the roster scrolls), under it on the phone with a slim count line at the bottom */
.season-line { display: block; font-size: 12px; }
.tf-switch { display: inline-flex; flex-wrap: wrap; max-width: 100%; margin: 0 0 12px; }
.tf-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 12px; }
.tf-on .trade-sides, .tf-on .trade-sides.multi { grid-template-columns: minmax(0, 1fr); }
.tf-deal { display: grid; gap: 4px; align-content: start; }
.tf-team h3 { font-size: 15px; margin: 4px 0 0; }
.tf-team .fl { margin: 6px 0 0; }
.tf-list { margin: 0; min-width: 0; }
.tf-rule { margin: 8px 0 0; font-weight: 600; }
.tf-rule.ok { color: var(--ok); }
.tf-rule.bad { color: var(--bad); }
.tf-count { position: fixed; left: 0; right: 0; bottom: var(--tab-h); z-index: 30; min-height: 44px; display: flex;
            align-items: center; justify-content: center; background: var(--surface); border-top: 1px solid var(--line);
            color: var(--text); font-size: 14px; font-weight: 600; }
.tf-count[hidden] { display: none; }
body.has-tf-count .site-foot { padding-bottom: calc(var(--tab-h) + 68px); }
@media (min-width: 1000px) {
  .tf-grid { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .tf-deal { position: sticky; top: calc(var(--top-h) + 12px); }
  .tf-count { display: none !important; }
}

/* trades brief 2: the end-of-day batch on the Commish page */
.batch-row { flex-wrap: wrap; gap: 8px; }
.batch-row label { display: flex; align-items: center; gap: 8px; min-height: 44px; min-width: 0; }
.batch-row input[type=checkbox] { width: 22px; height: 22px; flex: none; }

/* trades brief 2: the trade block toggle */
.block-toggle { margin: 0; flex: none; }
button.chip.toggle { height: 44px; padding: 0 14px; font: 600 13px var(--font); cursor: pointer; background: var(--surface); color: var(--text-2); }
.chip.toggle.on { color: var(--warn); border-color: var(--warn); background: var(--warn-soft); }

/* trades brief, Part A: the GMs panel on Commish */
.gm-row.off .rt { color: var(--text-2); }
.gmform { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.sync-failed, .sync-no-token { color: var(--warn); }
.gm-add { margin-top: 12px; }
/* session 40: Sync policy; an address is one token: it scrolls in its own box rather than push the page wide (no-word-break) */
#sync-extra .rt, #sync-missing .meta { display: block; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
#sync-extra .row-acts { padding-left: 16px; }

/* 4b part two: the runner's last shot on the Commish page's recovery panel */
.recovery-shot { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }
/* desktop-align finding 9 (from 1000 px): the recovery commands as one two-column grid, the buttons in a column as wide as
   the widest button, every description at one left edge (each row is a subgrid of the list's two columns) */
@media (min-width: 1000px) {
  #recovery-commands { display: grid; grid-template-columns: max-content minmax(0, 1fr); }
  #recovery-commands > li { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; align-items: center; column-gap: 16px; }
}

/* demo brief T7: the copy-this-post block on a played game */
.share-post textarea { width: 100%; box-sizing: border-box; resize: vertical; overflow: hidden; font: inherit; font-size: 15px; line-height: 1.45;
  color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; white-space: pre-wrap; }

/* post-demo item 1: the integrity line (every viewer) and the frozen plan's hash on the plan page and History */
.integrity { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.integrity-sha, .saves .sha-line { display: block; }
/* small fixes Part 4: on desktop the sha's Copy is text on the line, no padding, so the line keeps its height (phones
   keep the 44 px tap target) */
@media (min-width: 1000px) {
  .btn.copy-sha { display: inline; min-height: 0; padding: 0; border: 0; font: inherit; font-weight: 600;
                  vertical-align: baseline; }
}
.integrity .fidelity-done { color: var(--text-2); }       /* small fixes Part 9: in the line, in its plain colour */

/* stats pages (session 52): a name with a uid links to the player's season page; the ratings site is its own small
   link beside it. In a one-line row the name takes the ellipsis, the icon keeps its size on the name's line. */
.plw { display: inline-flex; align-items: flex-end; max-width: 100%; vertical-align: bottom; }
.plw > a.pl-link { min-width: 0; flex: 0 1 auto; }              /* a long name wraps inside the link, the icon stays */
.rt.one .plw { align-items: center; vertical-align: top; }
.plw > a.pl-ext { min-width: 24px; min-height: 24px; flex: none; }
a.pl-ext-text { gap: 4px; min-width: 0; min-height: 32px; color: var(--text-2); font-size: 13px; }
.hs.lg { width: 64px; height: 64px; }
.pl-head h1 { min-width: 0; }
@media (max-width: 480px) { .pl-head { gap: 12px; padding: 16px 16px 16px 20px; } .pl-head .hs.lg { width: 44px; height: 44px; }
                            .pl-head h1 { font-size: 20px; } }
.pl-head .chip { vertical-align: middle; }

/* opposition research and the player page: sortable stat tables. Every column at every width (site review run 1: no
   column views under 1000 px), the name column sticky, the table scrolls inside its own box. */
.st-views { margin: 0 0 8px; display: flex; max-width: 100%; }
.st-views .btn { flex: 1 1 auto; min-width: 0; padding: 0 10px; }
.st-wrap { margin: 0 0 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
table.st-table { width: 100%; font-size: 14px; white-space: nowrap; }
main table.st-table th, main table.st-table td { padding: 6px 8px; border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
main table.st-table .n { text-align: right; font-variant-numeric: tabular-nums; }
main table.st-table thead th { background: var(--surface); font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
table.st-table th a { color: inherit; display: inline-flex; align-items: center; gap: 2px; min-height: 32px; text-decoration: none; }
table.st-table th.sorted, table.st-table th.sorted a { color: var(--text); }
table.st-table td.sorted { background: var(--surface); }
.sort-mark { font-size: 9px; }
main table.st-table .nm { position: sticky; left: 0; z-index: 1; background: var(--bg); max-width: 210px; }
main table.st-table thead .nm { background: var(--surface); z-index: 2; }
table.st-table .nm .rt.one { max-width: 200px; }
table.st-table .nm .meta { display: block; font-size: 12px; white-space: normal; }
table.st-table tbody tr:last-child td { border-bottom: 0; }
table.st-table tr.tot td { font-weight: 600; }
table.st-table tr.tot:first-of-type td, table.st-table tr.tot + tr.tot td { border-top: 0; }
table.st-table tr.rank td { color: var(--muted); font-size: 12px; }
table.st-table tr.dnp td { color: var(--muted); }
table.st-table tr.dnp td b { color: var(--text-2); font-weight: 600; }
table.st-table .res { font-size: 12px; white-space: nowrap; }
table.st-table .nm .ph-only { white-space: nowrap; }
table.st-table .res.w { color: var(--ok); }
table.st-table .res.l { color: var(--bad); }
.foot { margin: 8px 0 16px; }
.section-sub { font-size: 15px; margin: 20px 0 8px; }
/* round two: on a phone the team groups are one compact table; the research names take the short form */
.perf-tbl { display: none; }
.nm-short { display: none; }
table.st-table .incl { white-space: nowrap; }
.ph-only, .dnp-sh { display: none; }
table.st-table tr.grp-h th { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding-top: 8px; padding-bottom: 0;
                             border-bottom: 0; text-align: left; }
table.st-table tr.grp-h th + th { border-left: 1px solid var(--line); }
.tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1000px) { .st-views { display: none; } table.st-table { font-size: 13px; }
                             main table.st-table th, main table.st-table td { padding: 6px 5px; } }
@media (max-width: 999px) {
  table.st-table th a { min-height: 44px; }
  main table.st-table .nm { max-width: 140px; }
  table.st-table .nm .rt.one { max-width: 130px; }
  table.st-table .pos-c, table.st-table .tm-c, table.st-table tr.grp-h { display: none; }
  body.stats-page .perf { display: none; }
  table.st-table .plw > a.pl-ext { display: none; }   /* the name gets the room; 2kratings is on the player page */
  table.perf-tbl { display: table; width: 100%; font-size: 14px; margin: 0 0 8px; background: var(--surface);
                   border: 1px solid var(--line); border-radius: var(--r); border-collapse: separate; border-spacing: 0; }
  main table.perf-tbl th, main table.perf-tbl td { padding: 6px 8px; border: 0; border-bottom: 1px solid var(--line); }
  main table.perf-tbl tbody tr:last-child th, main table.perf-tbl tbody tr:last-child td { border-bottom: 0; }
  main table.perf-tbl thead th { font-size: 12px; font-weight: 600; color: var(--muted); background: none; }
  main table.perf-tbl tbody th { text-align: left; font-weight: 600; font-size: 13px; }
  table.perf-tbl td.n { text-align: right; font-variant-numeric: tabular-nums; }
  table.perf-tbl .v { display: block; font-weight: 700; }
  table.perf-tbl .r { display: block; font-size: 12px; color: var(--muted); }
  table.st-table .nm-full { display: none; }
  table.st-table .nm-short { display: inline; }
  table.st-table .ph-only { display: inline; }
  .tiles.three, .perf { gap: 8px; }
  .perf-g { padding: 10px 12px; }
  .tiles.three .tile { padding: 10px 12px; }
  .tiles.three .t-label { letter-spacing: .04em; }
}
/* the team performance block: four groups, for, against and diff, each with its league rank */
.perf { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 12px; margin: 0 0 8px; }
.perf-g { padding: 12px 16px; margin: 0; }
.perf-g h3 { margin: 0 0 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.perf-cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.perf-cells dt { font-size: 12px; color: var(--text-2); }
.perf-cells dd { margin: 0; }
.perf-cells dd.num { font-size: 18px; font-weight: 700; }
.tile.scout .scout-go { display: flex; align-items: center; gap: 2px; color: var(--heat-text); margin-top: 10px; font-weight: 600; }
.tile.scout .scout-go .icon { width: 14px; height: 14px; }
.plan-research { margin-top: 4px; }
.plan-research .icon.ext { flex: none; }
/* session 52: a long button label wraps on the narrowest phones rather than push the page wide (trade releases) */
.btn.wrap { white-space: normal; max-width: 100%; text-align: center; line-height: 1.25; padding-top: 6px; padding-bottom: 6px; }
@media (max-width: 340px) { main table.perf-tbl th, main table.perf-tbl td { padding: 6px 3px; } table.perf-tbl { font-size: 13px; }
                            main table.perf-tbl tbody th { font-size: 12px; }
                            main table.st-table .nm { max-width: 134px; } table.st-table .nm .rt.one { max-width: 124px; } }
/* session 100: 124 px (was 106, with an ellipsis): a short form such as "K. Caldwell-Pope" on one line */

/* the timeline grid (desktop, timeline grid brief): one row per player, one cell per minute, a position in each.
   Cells solid in the league xls colours (no hatch: the white clash stripes must read on every colour), quarter lines
   heavier than minute lines, the half line heaviest, a check row under the grid. */
:root { --c-PG: #E53935; --c-SG: #43A047; --c-SF: #FFC107; --c-PF: #4285F4; --c-C: #FF6D00; }
.tg-palette { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; }
.tg-now { font-size: 13px; color: var(--text-2); min-width: 118px; }
.tg-now b { color: var(--text); }
.btn.tg-paint { min-width: 52px; font-weight: 700; }
.btn.tg-paint.pos-PG, .btn.tg-paint.pos-SG, .btn.tg-paint.pos-SF, .btn.tg-paint.pos-PF, .btn.tg-paint.pos-C {
  background: var(--pos); color: var(--on-pos); border-color: transparent; }
.btn.tg-paint.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
.btn.tg-erase.on { border-color: var(--text); color: var(--text); }
.tg-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 0; }
table.tg { border-collapse: separate; border-spacing: 0; width: 100%; table-layout: fixed; min-width: 1180px; user-select: none; }
main table.tg th, main table.tg td { padding: 0; border: 0; background: none; }
/* session 100: 176 px (was 150, names clipped; 176 keeps the grid inside the docked plan column at 2560): most full names fit on one line, a longer one takes its short form
   (names.js), none is cut */
main table.tg .tg-nm { width: 176px; position: sticky; left: 0; z-index: 2; background: var(--surface); text-align: left;
                       padding: 0 4px 0 6px; white-space: nowrap; }
main table.tg .tg-tot { width: 44px; text-align: right; padding: 0 8px; font: 700 14px var(--font); font-variant-numeric: tabular-nums; }   /* desktop-align finding 11: after the shorthand, which resets it */
/* polish Part 5: the quarter row's Minutes cell holds a visually hidden label (.sr, absolute); the cell is its box, so it
   stays inside the grid's scroll box instead of widening the page */
main table.tg .tg-qrow .tg-tot { position: relative; }
main table.tg thead th { font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: 0; text-transform: none; height: 18px; }
main table.tg .tg-ql { text-align: left; padding-left: 4px; font-size: 11px; }
main table.tg .tg-mh { text-align: center; }
main table.tg tbody tr { height: 30px; }
main table.tg td.tg-c { height: 28px; background: var(--bg); border-left: 1px solid var(--surface); border-bottom: 2px solid var(--surface);
                        text-align: center; font: 700 10px/1 var(--font); color: var(--on-pos); position: relative; }
table.tg.editable td.tg-c { cursor: crosshair; }
main table.tg td.tg-c.filled { background: var(--pos); }
main table.tg .q-start { border-left: 2px solid var(--line-strong); }
main table.tg .half { border-left: 3px solid var(--text-2); }
table.tg td.tg-c.clash::after { content: ""; position: absolute; top: 3px; bottom: 3px; left: 1px; right: 1px; pointer-events: none;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .95) 0 3px, transparent 3px 7px); }
table.tg td.tg-c:focus { outline: 2px solid var(--text); outline-offset: -2px; z-index: 1; }
table.tg .tg-nm .nm { display: inline-flex; align-items: center; max-width: 157px; min-height: 24px; font-size: 13px; font-weight: 600;
                      vertical-align: middle; }
/* run 2: a row's handle (drag it, or Alt+Up / Alt+Down) and where a dragged row will land */
table.tg .tg-drag { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 24px; padding: 0;
                    margin: 0 1px 0 -6px; border: 0; background: none; color: var(--line-strong);
                    cursor: grab; vertical-align: middle; border-radius: var(--r-sm); }
/* run 3: the handle is a grip of six dots, quiet at rest; it shows on the row's hover and on keyboard focus in the muted
   text colour (never the accent) */
table.tg .tg-drag .grip { display: block; width: 8px; height: 12px;
  background: radial-gradient(circle, currentColor 1.1px, transparent 1.4px) 0 0 / 4px 4px; }
main table.tg tbody tr:hover .tg-drag, table.tg .tg-drag:focus-visible { color: var(--muted); }
table.tg .tg-drag:hover, table.tg .tg-drag:focus-visible { color: var(--text-2); background: var(--raised); }
table.tg .tg-nm .ps.st-mark { padding-left: 12px; }
table.tg .tg-drag-sp { display: inline-block; width: 9px; }   /* session 74: a starter has no handle; his name stays in line */
/* run 3: the name cell's own gaps narrowed so a long last name reads in full (the cell keeps its 150 px, the minutes theirs);
   the name line keeps 24 px (the 2kratings icon's box had held it), so a read-only row's Starter mark stays under it */
table.tg .tg-nm .hs.xs { margin-right: 3px; }
table.tg .tg-nm .pdot { margin-right: 4px; }
main table.tg tr.tg-moving { opacity: .55; }
main table.tg tr.tg-drop > * { box-shadow: inset 0 2px 0 var(--heat); }
main table.tg tr.tg-drop-end > * { box-shadow: inset 0 -2px 0 var(--heat); }
body.dragging table.tg .tg-drag { cursor: grabbing; }
table.tg .tg-nm .nm a.pl-link { min-width: 0; line-height: 1.2; }     /* session 100: never cut (names.js) */
table.tg .tg-nm .ps { display: block; font-size: 10px; color: var(--muted); line-height: 1; margin-top: -2px; }
table.tg tr.out .tg-nm .nm { color: var(--bad); }
main table.tg tfoot th { font-size: 11px; color: var(--muted); font-weight: 600; height: 16px; }
main table.tg td.tg-k { height: 12px; border-left: 1px solid var(--surface); border-top: 4px solid var(--surface); }
main table.tg td.tg-k.ok { background: var(--ok); }
main table.tg td.tg-k.bad { background: var(--bad); }
main table.tg .tg-flash { box-shadow: inset 0 0 0 100px rgba(255, 197, 66, .45); }
main table.tg td.tg-none { padding: 12px; }

/* ==================================================================================================================
   The desktop plan page, round one (docs/desktop-plan-brief.md). Same form, same fields, different controls: from
   1000 px the controls (number fields, compact rows, help behind a toggle), from 1280 the layout (the rail; run 2:
   one column, Timeline first). Under 1000 px nothing here applies.
   ================================================================================================================== */
.desk-only, .dh-short, .tl-howto { display: none; }
.plan-rail { display: contents; }
.rail-top, .rail-bar { display: none; }
/* site review brief, Part 0 item 1 (Matt, session 74): the Timeline shows one instruction sentence on the phone too;
   its longer help goes behind the same "How this works" toggle as desktop's, in the heading. A 44 px target that
   does not grow the heading (the negative margin). */
@media (max-width: 999px) {
  #sec-timeline .help, #sec-priorities .help, #sec-defense .help { display: none; }    /* Part 6: the same toggle */
  #sec-timeline.howto-open .help, #sec-priorities.howto-open .help, #sec-defense.howto-open .help { display: block; }
  .howto-t.tl-howto { display: inline-flex; align-items: center; margin: -10px 0 -10px auto;
                                     min-height: 44px; font-size: 13px; font-weight: 500; color: var(--text-2);
                                     text-decoration: underline; text-underline-offset: 3px; }
}

@media (min-width: 1000px) {
  /* help: one line of lead per section at most, the rest behind "How this works" */
  .plan-sec .help { display: none; }
  .plan-sec.howto-open .help { display: block; }
  .howto-t.desk-only, .howto-t.tl-howto { display: inline-flex; align-items: center; margin-left: auto; min-height: 28px; font-size: 13px;
                       font-weight: 500; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
  .plan-sec > h2 { margin: 4px 0 10px; }
  /* small fixes Part 13: the Timeline heading's row: the heading, the palette, Build from minutes and Undo, How this
     works (plan.js makes it when the grid is on) */
  .tl-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 4px 0 10px; }
  .tl-head > h2 { display: flex; align-items: center; gap: 10px; margin: 0; }
  .tl-headtools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; flex: 1 1 auto; }
  .tl-headtools .tg-palette { margin: 0; }
  .tl-headtools .ch-tools { margin: 0 0 0 auto; }
  .tl-head > .howto-t { margin-left: 0; }
  /* Build from minutes beside the grid, the grid narrower while it is open */
  #timeline-section.bm-open { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
  .bm-panel { position: sticky; top: calc(var(--top-h) + 12px); overflow: auto; padding: 0; }   /* height: plan.js */
  .bm-panel .sheet-body { padding: 12px 16px 16px; }
  .bm-panel[hidden] { display: none; }
  /* the Defense fold */
  .def-matrix tr.def-folded { display: none; }
  .def-matrix tr.def-more td { text-align: left; }
  .def-more-b { min-height: 32px; color: var(--heat-text); font-size: 13px; text-decoration: underline;
                text-underline-offset: 3px; }
  .plan-sec { padding-bottom: 20px; margin-bottom: 20px; }

  .phone-only { display: none; }

  /* settings: label left, control right; the four coach settings as number fields with a reading bar */
  #sec-settings .sub-h { margin: 14px 0 8px; }
  #sec-settings .fields { gap: 8px; }
  #sec-settings .fields:not(.two) > .fld { display: grid; grid-template-columns: 170px minmax(0, 1fr); column-gap: 12px;
                                           row-gap: 4px; align-items: center; }
  #sec-settings .fields:not(.two) > .fld > span:first-child { grid-column: 1; text-transform: none; letter-spacing: 0;
                                                              font-size: 14px; color: var(--text-2); font-weight: 500; }
  #sec-settings .fields:not(.two) > .fld > :not(:first-child) { grid-column: 2; }
  .pb-opt { min-height: 32px; }
  #sec-settings .pb-combo { --pb-h: 34px; }
  #sec-settings select, #sec-settings input[type=search], #sec-settings input[type=number], #sec-settings .pb-input { min-height: 34px;
                                                                                          padding: 4px 10px; font-size: 14px; }
  .slider .field { gap: 10px; }
  .slider input[type=number] { width: 72px; flex: none; }
  .slider input[type=number] + output { display: none; }
  .cs-bar.desk-only { display: block; flex: 1; max-width: 260px; height: 6px; border-radius: 3px; background: var(--raised);
                      overflow: hidden; }
  .cs-bar > span { display: block; height: 100%; background: var(--heat); border-radius: 3px; }
  .slider input[type=range] ~ .cs-bar { display: none; }      /* no script: the slider itself is the reading */
  .cs-note.desk-only { display: block; font-size: 12px; color: var(--warn); }
  /* points of emphasis: the brief's 3 x 2 (offense row, defense row) where three columns fit the longest option
     ("Neutral Defensive Aggression", about 234 px a select); narrower, as beside Rotation from 1280, the same six as
     2 x 3 (an Offense column and a Defense column), so no option is cut */
  #sec-settings { container-type: inline-size; }
  /* site review brief, Part 0 item 2 (Matt, session 77): Coaching left, Points of emphasis and Uniforms right, equal
     columns, top aligned. Each column is its own container, so the points of emphasis size to their column */
  .set-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .set-col { display: block; min-width: 0; container-type: inline-size; }
  .set-right .uni-grid { grid-template-columns: minmax(0, 1fr); }  /* two side by side cut the select (measured to 2560) */
  #sec-settings .fields.two { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, auto);
                              grid-auto-flow: column; gap: 8px 12px; }
  #sec-settings .fields.two > .fld { gap: 3px; }
  #sec-settings .fields.two > .fld > span:first-child { font-size: 11px; }
  /* uniforms: a smaller jersey, the chip on the select's line */
  .uni-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px 20px; }
  .uni { gap: 10px; align-items: center; }
  .uni-img { width: 54px; }
  .uni > .uni-img .uni-card { padding: 6px 4px; align-items: center; justify-content: center; }
  .uni > .uni-img .uni-n { display: none; }          /* the select beside it names the uniform; the card shows the team */
  .uni .fld { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label browse" "sel chip" "err err";
              column-gap: 10px; row-gap: 2px; align-items: center; }
  .uni .fld:has(> .ro-text) { grid-template-columns: minmax(0, max-content) auto; justify-content: start; }   /* read only: the chip beside the name */
  .uni .uni-label { grid-area: label; margin: 0; }
  .uni .fld > .field, .uni .fld > .ro-text { grid-area: sel; }
  .uni .fld > .err { grid-area: err; }
  .uni .uni-meta { display: contents; }
  .uni .uni-meta .chip.tone { grid-area: chip; }
  .uni-rule { margin-top: 8px; }

  /* priorities: a dense table, the header sticky, the last plan as a title and a per-row action */
  .prio-tools { margin: 0 0 8px; }
  .prio-tools .btn { min-height: 32px; }
  .prio-grid { gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
  .prio-head { position: sticky; top: var(--top-h); z-index: 3; background: var(--surface); padding: 6px 12px;
               grid-template-columns: 200px repeat(4, minmax(0, 1fr)) 30px; gap: 6px; border-bottom: 1px solid var(--line);
               border-radius: var(--r) var(--r) 0 0; }
  .prio { grid-template-columns: 200px repeat(4, minmax(0, 1fr)) 30px; gap: 6px; padding: 2px 12px; background: none;
          border: 0; border-radius: 0; }
  .prio + .prio, .prio-d + .prio-d > .prio { border-top: 1px solid var(--line); }
  .prio-cell select { min-height: 28px; padding: 2px 8px; font-size: 14px; }
  .prio .pname { font-size: 14px; }
  .prio-dup { display: none !important; }
  .prio .pname .prio-src { font-size: 11px; margin-top: -1px; }
  .prio.dup { box-shadow: inset 0 0 0 1px var(--bad); }
  .prio-apply.desk-only { display: inline-flex; min-width: 28px; min-height: 28px; font-size: 15px; }
  .prio-apply[disabled] { visibility: hidden; }

  /* defense: tight cells, short names with headshots, blank cells quiet, the Global column tinted */
  #sec-defense > .fld { flex-direction: row; align-items: center; gap: 12px; }
  #sec-defense > .fld > span:first-child { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text-2);
                                           font-weight: 500; }
  #sec-defense > .fld select { width: auto; min-width: 14em; min-height: 32px; padding: 2px 10px; font-size: 14px; }
  .def-wrap { margin-top: 8px; }
  main .def-matrix th, main .def-matrix td { padding: 3px 5px; }
  .def-matrix select { min-height: 28px; padding: 2px 6px; min-width: 8.5em; }
  .def-matrix select.blank { background: transparent; border-color: var(--line); }
  .def-matrix select:not(.blank) { background: var(--raised); border-color: var(--line-strong); color: var(--text);
                                   font-weight: 600; }
  main .def-matrix td[data-uid="global"], main .def-matrix thead th:nth-child(2) { background: var(--raised); }
  .dh-full { display: none; }
  .dh-short { display: inline-flex; align-items: center; gap: 6px; }
  /* run 2 Part 0 (d): the short form is the full form's link (new tab), the headshot inside it; no 2kratings icon */
  .dh-short .pl-link { display: inline-flex; align-items: center; gap: 6px; }
  .dh-short .nm-full, .dh-short .pl-ext { display: none; }
  .dh-short .nm-short { display: inline; }
}

@media (min-width: 1280px) {
  /* the frame: the rail on the left, nothing sticky across the top or bottom of the page */
  .plan-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); column-gap: 28px; align-items: start; }
  .plan-rail { display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--top-h) + 12px);
               max-height: calc(100vh - var(--top-h) - 24px); overflow-y: auto; padding-bottom: 8px; }
  .rail-top, .rail-bar { display: block; }
  .rail-top:empty, .rail-bar:empty { display: none; }
  .rail-top p { margin: 0 0 4px; }
  .rail-top p.lock { font-size: 18px; margin: 0; }
  /* small fixes Part 6: the 210 px rail can't hold the lock on one line (about 275 px): the time keeps its own line */
  .rail-top p.lock .lock-at.one-line { display: block; }
  .rail-top p.lock .lock-sep { display: none; }
  .rail-top p.lock.locked, .rail-top p.lock.reopened { font-size: 15px; line-height: 1.35; }
  .rail-top .meta { font-size: 13px; }
  .plan-rail .stepper { position: static; flex-direction: column; gap: 2px; overflow: visible; margin: 0; padding: 0;
                        background: none; border: 0; }
  .plan-rail .stepper a { min-height: 34px; padding: 0 10px; border-radius: var(--r-sm); background: none; }
  .plan-rail .stepper a[aria-current=step] { background: var(--surface); }
  .rail-bar .bar { position: static; display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 0;
                   min-height: 0; background: none; border: 0; box-shadow: none; }
  .rail-bar .bar .spacer { display: none; }
  .rail-bar .bar .bar-stats { flex-direction: column; align-items: flex-start; gap: 6px; padding: 0; }
  .rail-bar .bar .bar-l { display: inline; }
  .rail-bar .bar .btn { width: 100%; min-height: 40px; }
  /* small fixes Part 8: in the rail the status line says the draft (and has Show the first problem); no chip */
  .rail-top #saved .draft-status { display: inline; }
  .rail-top #saved .first-prob:not([hidden]) { display: block; margin: 4px 0; min-height: 32px; font-size: 13px; }
  .rail-bar #bar[data-draft] #bar-problems, .rail-bar #bar .first-prob { display: none; }
  html.js body.has-bar main { padding-bottom: 24px; }
  html.js body.has-bar .site-foot { padding-bottom: 32px; }
  /* the arrangement (run 2: the Rotation section is gone): Timeline, then Settings full width (its points of emphasis
     3 x 2 by the container query below), then Priorities and Defense, one column */
  .plan-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
  .plan-grid > * { grid-column: 1 / -1; }
  /* the header on one line */
  .plan-head { margin: 4px 0 8px; gap: 12px; }
  .plan-head .tlogo.lg { width: 40px; height: 40px; }
  .plan-head .grow { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 16px; }
  .plan-head h1 { margin: 0; font-size: 20px; }
  .plan-head .meta, .plan-head .plan-research { margin: 0; }
  .plan-head .plan-research a { min-height: 0; }
  .plan-page .notice, .plan-page .banner { padding: 6px 12px; margin: 6px 0; font-size: 14px; }
}
@media (min-width: 1280px) {
  html.js body.has-bar #tl-sum-line { display: none; }      /* the minutes are in the rail (an editable plan's) */
  /* the grid fits its box from 1280 (the rail took 238 px): all 48 minutes and the Min column, no sideways scroll.
     The cells share what is left after the names and the total (about 17 px a minute at 1280, 19 at 1366, 20 at 1440) */
  table.tg { min-width: 0; }
  .tg-wrap { container-type: inline-size; }
}
/* a cell narrower than the position letters ("PG", bold 10 px, about 13 px plus its border) shows the colour alone:
   below a 916 px box (150 px names + 44 px total + 48 x 15 px). Not reached at the plan page's widths today. */
@container (max-width: 915px) {
  main table.tg td.tg-c { color: transparent; }
}
@container (min-width: 740px) {
  #sec-settings .fields.two { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; grid-auto-flow: row; }
}
/* site review brief, Part 0 item 2: in the right column, two across while the longest option ("Neutral Defensive
   Aggression", 197 px) reads in full (a 490 px column: 1280 is 494), else one */
@container (max-width: 489.98px) {
  #sec-settings .set-right .fields.two { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
}

/* ================================================================ run 2: the structure (docs/structure-brief.md) */
/* working pages go wide from 1280 (Stats, the team page, the matchup, the plan page); reading pages keep 1,120 */

/* the hot or cold mark: an arrow after the name, its numbers in the title */
.hc { position: relative; display: inline-flex; align-items: center; margin-left: 4px; vertical-align: -2px; }  /* its .sr stays inside the scroll box */
.hc .icon { width: 14px; height: 14px; stroke-width: 2.5; }
.hc-hot { color: var(--hot); }
.hc-cold { color: var(--cold); }
.nm-in { display: inline-flex; align-items: center; max-width: 100%; min-width: 0; }
.nm-in .rt.one { min-width: 0; }

/* the block toggle: one small button, filled when he's on the block */
.blk-f { display: inline; margin: 0; }
.blk-t { min-height: 32px; padding: 0 10px; border-radius: var(--r-pill); border: 1px solid var(--line-strong);
         background: none; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.blk-t:hover { color: var(--text); border-color: var(--text-2); }
.blk-t.on { background: var(--heat-soft); border-color: var(--heat-soft); color: var(--heat-text); }
.blk-chip { margin-right: 6px; }

/* Stats > Players: the filters (one GET form), the table, the pages */
.sp-form { margin: 0 0 12px; }
.sp-search { display: flex; gap: 8px; align-items: center; }
.sp-q-wrap { position: relative; flex: 1 1 auto; min-width: 0; display: flex; }
.sp-q-wrap .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.sp-q-wrap input { width: 100%; min-height: 44px; padding-left: 36px; }
.sp-open .badge { margin-left: 2px; }
.sp-form .sp-filters { margin-top: 8px; }
.sp-filters { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-end; }
.sp-f { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; border: 0; min-width: 0; }
.sp-l { font-size: 12px; color: var(--muted); font-weight: 600; padding: 0; }
.sp-team select, .sp-badge select, .sp-tier select { min-height: 44px; }
.fchips { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px; }
.fchips legend { width: 100%; margin-bottom: 4px; }
.fchip { position: relative; display: inline-flex; }
.fchip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fchip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong);
              border-radius: var(--r-pill); font-size: 14px; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.fchip input:checked + span { background: var(--heat-soft); border-color: var(--heat-soft); color: var(--text); font-weight: 600; }
.fchip input:focus-visible + span { outline: 2px solid var(--focus, var(--heat)); outline-offset: 2px; }
.fchip span:hover { color: var(--text); }
.sp-count, .sp-note { margin: 0 0 8px; }
/* run 3: the finder's views and the download beside them; the wide views' headers wrap (the full label is the title) */
.sp-views { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap;
            margin: 0 0 8px; }
.sp-csv { font-size: 14px; }
.sp-asof, .sp-noread { margin: 0 0 8px; }
table.pd-wide th.pd-h a { white-space: normal; display: block; min-width: 56px; max-width: 92px; line-height: 1.2;
                          text-align: right; }
table.pd-wide td .tier { font-size: 11px; line-height: 18px; padding: 0 6px; }
table.st-table td.ovr-c, table.rs-tbl td.ovr-c { font-weight: 700; }
/* session 245 (ratings-rest item 3): the plan page's Research and Matchups OVR cells are the kit's small tile, its
   reader word (absolute) kept inside the cell */
table.rs-tbl td.ovr-c, table.mu-ptbl td.ovr-c { position: relative; }
table.sp-table td.act { white-space: nowrap; text-align: right; }
table.sp-table th.act { position: relative; }      /* its .sr stays inside the scroll box */
table.sp-table td.act .btn.small { min-height: 32px; padding: 0 10px; font-size: 13px; }
table.sp-table td.unq { color: var(--muted); }
/* rank-marks (session 125): the league rank in a stat cell's top right corner, grey, small; the value does not move */
/* session 126: padding-top 8 so a four-character mark (10th) sits above the number's line box, never over it */
td.mk { position: relative; padding-top: 8px; }
small.lr { position: absolute; top: 0; right: 2px; font-size: 9px; line-height: 1; font-weight: 400; color: var(--muted);
           font-variant-numeric: tabular-nums; background: none; border: 0; pointer-events: auto; }
table.sp-table .tm-c a { color: inherit; }
/* session 92: the windowed pager (templates/_pager.html), one line at every width: from 600 px words and numbers,
   under 600 glyph steps and "Page N of M" in place of the numbers */
.pager { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; margin: 12px 0; }
.pager .pg { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
             border-radius: var(--r-sm); color: var(--text-2); }
.pager .pg.on { color: var(--text); font-weight: 700; background: var(--surface); }
.pager .pg-step { flex: none; }
/* session 92: the Move form's pool-rule override (one version of a player a season) */
.move-override { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 4px 0; color: var(--text-2); }
.move-override input { width: 20px; height: 20px; flex: none; }
.pager .pg-g { display: none; }
.pager .pg-of { margin-left: 8px; white-space: nowrap; }
@media (max-width: 599px) {
  .pager .pg-step { min-width: 44px; padding: 0; justify-content: center; font-size: 18px; }
  .pager .pg-w, .pager .pg { display: none; }
  .pager .pg-g { display: inline; }
  .pager .pg-of { margin: 0 8px; }
}
/* session 89: the game's groups on Ratings, Tendencies and Badges (chips; on a phone one row that scrolls sideways,
   or a select when a kind has more than seven choices), rows a page, the "Sorted by" line; in the table Player and
   OVR are pinned (fixed widths, so OVR sticks beside the name) and so is a sorted column of another group; the All
   view's group row, an edge before each group. */
.sp-groups { margin: 0 0 8px; }
.sp-gsel { display: none; align-items: center; gap: 8px; margin: 0 0 8px; }
.sp-gsel select { flex: 1 1 auto; min-width: 0; min-height: 44px; }
.sp-size { display: inline-flex; align-items: center; gap: 2px; }
.sp-size .meta { margin-right: 4px; }
.sp-size .pg { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px;
               border-radius: var(--r-sm); color: var(--text-2); font-size: 14px; }
.sp-size .pg.on { color: var(--text); font-weight: 700; background: var(--surface); }
.sp-pinned { margin: 0 0 8px; }
.sp-unpin { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px;
            font-size: 18px; color: var(--text-2); text-decoration: none; }
/* session 100: 240 px (was 190): the pick and the longest full names on one line at desktop widths. list-faces (session
   246): the name column is one number, --pd-nm (the cell's rule is with the face's, below), and the pinned OVR and sorted
   column take their `left` from it, so the three cannot drift apart again (they had: under 1000 px the pick's min-width
   drew the cell 178 px while OVR stuck at 140 and covered the name's end) */
table.pd-wide { --pd-nm: 274px; --pd-ovr: 48px; }
main table.pd-wide .ovr-c { position: sticky; left: var(--pd-nm); z-index: 1; background: var(--bg); width: var(--pd-ovr);
                            min-width: var(--pd-ovr); max-width: var(--pd-ovr); box-sizing: border-box; }
main table.pd-wide .pin-c { position: sticky; left: calc(var(--pd-nm) + var(--pd-ovr)); z-index: 1; width: 80px;
                            min-width: 80px; max-width: 80px; box-sizing: border-box; border-right: 2px solid var(--line-strong); }
main table.pd-wide thead .ovr-c, main table.pd-wide thead .pin-c { background: var(--surface); z-index: 2; }
main table.pd-wide td.ovr-c.sorted, main table.pd-wide td.pin-c { background: var(--surface); }
main table.pd-wide .g-start { border-left: 2px solid var(--line-strong); }
main table.pd-wide thead th.pd-gh { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
                                    color: var(--text-2); height: 30px; box-sizing: border-box; padding-top: 4px;
                                    padding-bottom: 4px; }
@media (min-width: 1000px) {
  .scroll.sticky-head.fits table.pd-all thead tr.pd-fr th { top: calc(var(--top-h) + 31px); }
}
@media (max-width: 999px) {
  .sp-groups { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .sp-groups .fchip { flex: none; }
  .sp-groups.many { display: none; }
  .sp-gsel { display: flex; }
  .sp-countbar { flex-wrap: wrap; }
  .sp-size { order: 3; flex: 1 0 100%; }              /* its own line under the count and Compare players */
}
html.js .sp-go { display: none; }                  /* with script a change applies at once */
html.js .sp-sheet .sp-go { display: block; }        /* in the phone's sheet: Show applies them together */
@media (min-width: 1000px) {
  .sp-form { display: flex; flex-direction: row-reverse; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 16px; }
  .sp-search { flex: 0 1 220px; }
  .sp-form .sp-filters { margin: 0; flex: 1 1 0; min-width: 0; gap: 8px 12px; }
  .sp-open { display: none; }
  .fchip span { min-height: 34px; padding: 0 9px; font-size: 13px; }
  .sp-team select { max-width: 170px; }
  .sp-team select, .sp-badge select, .sp-tier select, .sp-q-wrap input { min-height: 34px; }
  table.sp-table td.act .btn.small, table.sp-table .blk-t { min-height: 26px; padding: 0 9px; font-size: 12px; }
  table.sp-table td { padding-top: 4px; padding-bottom: 4px; }
}
@media (max-width: 999px) {
  html.js .sp-form .sp-filters { display: none; }   /* the phone's filters live behind the Filters button */
  .sp-sheet .sp-filters { padding: 12px 16px 16px; flex-direction: column; align-items: stretch; }
  .sp-sheet .sp-team select, .sp-sheet .sp-badge select, .sp-sheet .sp-tier select { width: 100%; }
  .sp-sheet .sp-go .btn { width: 100%; }
  table.sp-table td.act { padding-left: 4px; }
  table.sp-table td.act .btn.small, table.sp-table .blk-t { min-height: 44px; }   /* phone tap targets */
}

/* Stats' two views: Players and Teams (a two-item switch under the heading) */
.stats-switch { margin-top: -4px; }
.stats-mark { margin: -8px 0 12px; font-size: 12px; color: var(--muted); }   /* mark brief: under the switch */

/* Stats > Teams: each stat with its league rank; the cell coloured by the rank colour, the rank always written */
table.tt-table td.rk { white-space: nowrap; }
table.tt-table td.rk .r { display: inline-block; min-width: 3.2em; margin-left: 4px; font-size: 11px; color: var(--muted); text-align: left; }
table.tt-table td.rk.good { background: var(--ok-soft); }
table.tt-table td.rk.good .v, table.tt-table td.rk.good .r { color: var(--ok); }
table.tt-table td.rk.bad { background: var(--bad-soft); }
table.tt-table td.rk.bad .v, table.tt-table td.rk.bad .r { color: var(--bad); }
table.tt-table .rk-c { width: 2.5em; color: var(--muted); text-align: right; }
table.tt-table th.nm { text-align: left; }
table.tt-table tbody th.nm { font-weight: 500; }      /* polish Part 6: the Team header reads as the other headers */
table.tt-table .tt-team { display: inline-flex; align-items: center; gap: 8px; color: var(--text); min-height: 32px; }
table.tt-table .tt-team .tlogo { flex: none; }
table.tt-table tr.mine > * { box-shadow: inset 0 0 0 9999px var(--heat-tint); }
table.tt-table tr.mine > .rk-c { box-shadow: inset 3px 0 0 var(--heat), inset 0 0 0 9999px var(--heat-tint); }
table.tt-table .form .pill { width: 20px; height: 20px; font-size: 11px; border-radius: 4px; }
table.tt-table tr.grp-h th { text-align: center; }
/* session 225 (standings-status item 4): the standings statuses, as Today's (the chips are app.css's .st-chip and
   .st-next): a Status column after GB, left-aligned, the chips 4 px apart and the cell wrapping between them when the
   table is tight; an eliminated row's name, GM, W, L and GB in the muted text, its logo and Last 5 faded, the rank
   colours kept; the bands as row groups, the caption pinned to the table's left edge when it scrolls sideways. */
main table.tt-table .st-c { padding-left: 10px; text-align: left; }
table.tt-table td.st-c { white-space: normal; line-height: 1; }
table.tt-table tr.st-gone .tt-team, table.tt-table tr.st-gone .gm-c, table.tt-table tr.st-gone td.n:not(.rk) {
  color: var(--muted); }
table.tt-table tr.st-gone .tlogo { opacity: .4; }
table.tt-table tr.st-gone .form .pill { opacity: .55; }
main table.tt-table tr.band-cap th { font-size: 11px; font-weight: 400; line-height: 14px; color: var(--muted);
  text-align: left; padding: 8px 8px 4px; border-top: 1px solid var(--line-strong); border-bottom: 0; background: none;
  text-transform: none; letter-spacing: 0; }
table.tt-table tr.band-cap th > span { position: sticky; left: 8px; display: inline-block; }
.tt-race { margin: 6px 0 0; }
.tt-race + h2, .tt-race + .section-title { margin-top: 20px; }
.tt-back { margin: 0 0 8px; }
table.st-table tbody tr:last-child th { border-bottom: 0; }
@media (min-width: 1000px) {
  table.tt-table td, table.tt-table tbody th { padding-top: 3px; padding-bottom: 3px; }
  table.tt-table .tt-team { min-height: 30px; }
}
@media (max-width: 999px) {
  table.tt-table .gm-c { display: none; }
  table.tt-table tr.grp-h { display: table-row; }                  /* "Allowed" reads under its group on the phone too */
  main table.tt-table .rk-c { position: sticky; left: 0; z-index: 1; background: var(--bg); min-width: 32px; width: 32px; }
  main table.tt-table thead .rk-c { background: var(--surface); z-index: 2; }
  main table.tt-table .nm { left: 32px; }                          /* the team column fixed beside the rank */
  table.tt-table tr.mine > .rk-c, table.tt-table tr.mine > .nm { background: var(--heat-tint-solid); }
}

/* the Games page (session 122, games-schedule): the schedule, one line per game, no column headers. The time (a fixed
   width, so the matchups line up), the matchup (full names from 1000 px, abbreviations below), the plan's state on the
   GM's own games, and on today's rows one trailing cell (Live and Watch, the score, Void), both pushed right. A
   wrapping row: one line wherever it fits; with enlarged text the chip or the cell drops under, never over, the
   matchup. */
ol.sched { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line);
           border-radius: var(--r); overflow: hidden; font-size: 14px; }
ol.sched .gs { position: relative; display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 2px;
               padding: 4px 12px; min-height: 44px; }
ol.sched .gs + .gs { border-top: 1px solid var(--line); }
ol.sched .gs:hover { background: var(--raised); }
ol.sched .gs.mine { box-shadow: inset 3px 0 0 var(--heat); }
.gs-time { flex: none; min-width: 78px; color: var(--text-2); white-space: nowrap; }
.gs-match { flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 36px; color: var(--text); }
.gs-match::after { content: ""; position: absolute; inset: 0; }                    /* the whole row opens the game */
.gs-teams { white-space: nowrap; }
.gs-abbr { display: none; }
.gs-plan { flex: none; margin-left: auto; white-space: nowrap; }
.gs-end { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.gs-end:empty { display: none; }
.gs-watch { position: relative; z-index: 1; }                                       /* above the row's link */
.gs-end .btn.small { min-height: 28px; padding: 0 10px; }
.gs-score { color: var(--text-2); }
.gs-score .won { color: var(--text); font-weight: 700; }
.gs-final, .gs-void { color: var(--text-2); }
/* session 207 (sim-rest decision 6): beside a simmed game's score "Final, simmed"; on a phone the row keeps one line
   with "simmed" alone, smaller (the score already says final) */
.gs-sim { font-size: 13px; }
@media (max-width: 599px) { .gs-sim { font-size: 12px; } .gs-sim-long { display: none; } }
/* postseason-pages item 3: a postseason row's series line (its own link to the series page, above the row's link) and
   the projected "if needed" rows, muted, no time, no link */
.gs-series { position: relative; z-index: 1; flex: 0 1 auto; min-width: 0; font-size: 13px; color: var(--text-2); }
ol.sched .gs.gs-if { color: var(--muted); min-height: 36px; }
ol.sched .gs.gs-if:hover { background: none; }
.gs-if .gs-match { font-size: 13px; font-weight: 400; color: var(--muted); min-height: 28px; }
.gs-if .gs-match::after { content: none; }
/* all-star-rows (session 233, decision 10): an All-Star row, the name over its line (the tournament's format, after it
   its four scores), wrapping as text; the trailing cell as a game's.
   all-star-rows-fix (session 233, item 1): the name never narrower than its longest word (min-width auto, so the row's
   wrap sees it), so when the name and the trailing cell cannot sit side by side the cell wraps under the name, on the
   row's left edge (no margin), its own words wrapping between words; on one line the name grows and the cell stays right.
   The 9em basis: the cell drops before the name is squeezed to one word a line ("Slam / Dunk / Contest" at 150%) */
.gs-match.gs-star-a { flex: 1 1 9em; min-width: auto; flex-direction: column; align-items: flex-start; justify-content: center;
                      gap: 0; padding: 4px 0; }
ol.sched .gs-star .gs-end { flex: 0 1 auto; min-width: auto; margin-left: 0; white-space: normal; flex-wrap: wrap; }
.gs-star-name { font-weight: 600; }
.gcard-star .gc-star-name { font-weight: 600; white-space: normal; }
.gcard-star .gc-star-win { font-size: 13px; color: var(--text-2); white-space: normal; }
.gs-star-line { font-size: 13px; font-weight: 400; color: var(--text-2); white-space: normal; }
/* all-star-rows (session 233, decision 13): the All-Star page, one column at every width */
.as-line { margin: 0 0 6px; color: var(--text-2); }
.as-when { margin: 0 0 2px; font-size: 17px; font-weight: 600; }
.as-card { margin-top: 14px; }
.as-card .card-body p { margin: 0 0 8px; }
.as-card .card-body p:last-child { margin-bottom: 0; }
ol.as-games { list-style: none; margin: 8px 0 0; padding: 0; }
ol.as-games li { padding: 6px 0; border-top: 1px solid var(--line); }
.as-gh { display: inline-block; min-width: 64px; color: var(--text-2); }
.as-gs .won { font-weight: 700; }
/* all-star-runner-site item 2: a game's Replay at the line's end (under it when the line is full), a 44 px target */
ol.as-games li { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; }
.as-gs { flex: 1 1 auto; min-width: 0; }
.as-gs > span { white-space: nowrap; }               /* a team and its points never split over two lines */
.as-greplay { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-left: auto; }
.as-greplay .icon { width: 16px; height: 16px; }
.as-of { margin-left: 8px; color: var(--text-2); }
@media (max-width: 599px) {          /* a phone: the game's name and its Replay on one line, the score under them */
  ol.as-games li { row-gap: 2px; }
  .as-greplay { order: 1; margin-block: -11px; }      /* the 44 px target, laid out at the line's height */
  .as-gs { order: 2; flex-basis: 100%; }
}
.sh-series { margin: 10px 0 0; font-weight: 600; }
@media (min-width: 1000px) { .score-head .sh-series { grid-column: 1 / -1; grid-row: 3; margin: 8px 0 0; } }
/* season-day-one (session 230, item 5): Games' season card before the first game day, black, white and grey, no accent
   of its own; one column at every width, its lines wrapping as text */
.season-card .card-body p { margin: 0 0 6px; }
.season-card .card-body p:last-child { margin-bottom: 0; }
.season-card .sc-lead { font-size: 17px; font-weight: 700; color: var(--text); }
.plan-st { font-size: 13px; color: var(--text-2); }
.plan-st.plan-none, .plan-st.plan-draft { color: var(--warn); }
.plan-st.plan-saved { color: var(--ok); }
@media (max-width: 999px) {
  .gs-full, .gs-lock { display: none; }
  .gs-abbr { display: inline; }
  ol.sched .gs { column-gap: 8px; padding: 6px 10px; min-height: 52px; }
  ol.sched .gs.is-live .gs-time { display: none; }              /* a live row's tip is past: the matchup takes its room */
  .gs-time { width: auto; min-width: 56px; font-size: 13px; }   /* "10:30 AM" widens its own row, never overruns */
  .gs-match { font-size: 15px; font-weight: 600; gap: 8px; }
}
@media (max-width: 399.98px) {                                    /* 360: "CHA at MEM" and "No plan yet" on one line */
  ol.sched .gs { column-gap: 6px; }
  .gs-match { font-size: 14px; gap: 6px; }
}
@media (max-width: 299.98px) {                                    /* 240 CSS px (360 at 150%) */
  .gs-teams { white-space: normal; }
  table.rs-tbl .n { width: 32px; padding-left: 0; padding-right: 2px; font-size: 12px; }   /* the research column's numbers give the name room */
  table.rs-tbl th { font-size: 10px; padding: 2px 2px; }
}

/* run 2 Part 4: the team page. A header strip (no card, no tiles); the team's numbers as four compact groups on
   desktop, research's compact table on the phone, each value with its rank and the rank colour */
.team-strip { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin: 4px 0 8px; }
.team-strip .ts-id { min-width: 0; }
.team-strip h1 { margin: 0; font-size: 22px; }
.team-strip .ts-id .meta { margin: 2px 0 0; }
.team-strip .ts-facts { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin-left: auto; font-size: 14px; }
.team-strip .ts-rec b { font-size: 16px; }
.team-strip .form .pill { width: 22px; height: 22px; font-size: 11px; }
.team-strip .ts-next, .team-strip .ts-propose { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; }
.team-strip .ts-next { color: var(--text); }
.tperf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; }   /* polish Part 6: Players 28 px below */
.tperf-g { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; }
.tperf-g h3 { margin: 0 0 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tperf-g dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 0; }
.tperf-c { border-radius: var(--r-sm); padding: 4px 6px; }
.tperf-c dt { font-size: 11px; color: var(--text-2); }
.tperf-c dd { margin: 0; }
.tperf-c dd.v { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tperf-c dd.r { font-size: 11px; color: var(--muted); }
.tperf-c.good, table.perf-tbl td.good { background: var(--ok-soft); }
.tperf-c.good dd, table.perf-tbl td.good .v, table.perf-tbl td.good .r { color: var(--ok); }
.tperf-c.bad, table.perf-tbl td.bad { background: var(--bad-soft); }
.tperf-c.bad dd, table.perf-tbl td.bad .v, table.perf-tbl td.bad .r { color: var(--bad); }
.tp-form { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 0 0 8px; }
.tp-help p { margin: 0 0 6px; }
.tp-nogames { margin: 0 0 8px; }
.tp-nogames .plw { display: inline; }
.tp-nogames .plw > a.pl-ext { display: none; }   /* the names get the line; 2kratings is on the player page */
@media (min-width: 1000px) {
  .tp-form .fchip span { min-height: 34px; padding: 0 9px; font-size: 13px; }
}
@media (max-width: 999px) {
  .tperf { display: none; }
  .team-strip { gap: 4px 12px; }
  .team-strip .tlogo.lg { width: 44px; height: 44px; }
  .team-strip h1 { font-size: 19px; }
  .team-strip .ts-facts { margin-left: 0; width: 100%; gap: 4px 12px; font-size: 13px; }
}

/* team-stats (session 182): two lines side by side (_team_compare.html), the game page's Team comparison and the team
   page's Season stats. Every width the same shape: the values at the ends, the label centred, the mirrored bars under,
   meeting at the centre; nothing scrolls sideways. The better side white and bold, the other grey. The bars are SVG:
   a team's colour is its fill attribute (data); .mute and .accent are the grey and the page's accent. */
.tcmp { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 16px 8px;
        margin: 0 0 16px; }
.tc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0;
           border-bottom: 1px solid var(--line); }
.tc-side { display: inline-flex; align-items: center; gap: 8px; flex: 1 1 0; min-width: 0; font-size: 14px; }
.tc-side.r { justify-content: flex-end; text-align: right; }
.tc-side b { min-width: 0; }
.tc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; column-gap: 8px;
          padding: 8px 0 6px; }
.tc-row + .tc-row { border-top: 1px solid var(--line); }
.tc-lab { grid-column: 2; grid-row: 1; max-width: 9.5em; text-align: center; font-size: 12px; font-weight: 600;
          line-height: 1.3; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tc-v { grid-row: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; min-width: 0;
        color: var(--text-2); font-variant-numeric: tabular-nums; }
.tc-v.l { grid-column: 1; justify-content: flex-start; }
.tc-v.r { grid-column: 3; justify-content: flex-end; text-align: right; }
.tc-v b { font-size: 15px; font-weight: 500; white-space: nowrap; }
.tc-v.win { color: var(--text); }
.tc-v.win b { font-weight: 700; }
.tc-pct { flex-basis: 100%; font-size: 12px; }
.tc-r { font-size: 11px; color: var(--muted); border-radius: var(--r-sm); padding: 0 4px; white-space: nowrap; }
.tc-r.good { color: var(--ok); background: var(--ok-soft); }
.tc-r.bad { color: var(--bad); background: var(--bad-soft); }
.tc-row.plain .tc-v b { font-weight: 700; color: var(--text); }
.tc-bars { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 6px; }
.tc-bar { display: block; width: 100%; height: 6px; }
.tc-track { fill: var(--raised); }
.tc-fill.mute { fill: var(--muted); }
.tc-fill.accent { fill: var(--heat); }
.ts-count { margin: -8px 0 16px; }
/* Games: one row per final, the whole row the link (the .rows .row shape); the date, the W/L pill, "x at y", the score */
.team-games { margin: 0 0 24px; }
.team-games .tg-row { gap: 8px; padding: 8px 12px; }
.team-games .grow { flex: 1 1 8rem; min-width: 0; }   /* on a phone "x at y" may drop to a second line under the chip, never cut or clipped */
@media (min-width: 600px) { .team-games .tg-row { flex-wrap: nowrap; } .team-games .grow { white-space: nowrap; } }
.team-games .tg-dt { flex: none; width: 44px; }
.team-games .chip { flex: none; min-width: 24px; justify-content: center; }
.team-games .tg-sc { white-space: nowrap; }
.team-games a.row:focus-visible { outline-offset: -2px; }
@media (max-width: 599px) {                     /* a phone: the label above, the two values at the ends, the bars under */
  .tc-lab { grid-column: 1 / -1; grid-row: 1; max-width: none; }
  .tc-v { grid-row: 2; }
  .tc-bars { grid-row: 3; }
}

/* ---------------------------------------------------------------- run 2 Part 5: the player card (static/card.js)
   Desktop: a panel on the right over the page, the page dimmed behind it (the dim takes no clicks, so the list stays
   live: another name updates the panel, a click outside closes it). Phone: the bottom sheet (dialog.sheet). The card
   control after each name: hidden without script, shown only while it has keyboard focus. */
.pl-card { display: none; }
html.js-card .plw { position: relative; }
html.js-card .pl-card { display: block; border: 0; padding: 0; margin: 0; background: none; color: inherit; font: inherit; }
html.js-card .pl-card:focus-visible::after { content: "Card"; }   /* the word is drawn, not text: a name reads as the name */
html.js-card .pl-card:focus-visible { width: auto; height: auto; clip: auto; overflow: visible; right: 0; top: 50%;
  transform: translateY(-50%); z-index: 5; padding: 2px 8px; border-radius: var(--r-pill); background: var(--heat);
  color: var(--on-heat); font-size: 12px; font-weight: 700; line-height: 18px; min-height: 22px; }
html.js-card [data-card-uid]:not(.pl-card):not([data-card-off]) { cursor: pointer; }
.pcard-dim { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); pointer-events: none; z-index: 58; }
dialog.pcard { padding: 0; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow); }
dialog.pcard.panel { position: fixed; inset: var(--top-h) 0 0 auto; margin: 0; width: 400px; max-width: 100vw;
  height: auto; max-height: none; overflow: auto; border-radius: 12px 0 0 12px; border-right: 0; z-index: 61; }
dialog.pcard.sheet { padding: 0; }
.pcard-bar { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: 4px 4px 0; background: var(--surface);
  z-index: 1; height: 0; overflow: visible; }
.pcard-bar .icon-btn { min-width: 44px; min-height: 44px; font-size: 22px; }
.pc { padding: 16px 16px 12px; }
.pc-head { display: flex; align-items: center; gap: 12px; padding-right: 40px; }
.pc-id { min-width: 0; }
.pc-name { margin: 0; font-size: 18px; line-height: 1.3; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pc-id .meta { margin: 2px 0 0; }
.pc-line { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 14px 0 0; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.pc-line > div { background: var(--raised); padding: 6px 8px; }
.pc-line dt { font-size: 11px; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; }
.pc-line dd { margin: 0; font-weight: 700; font-size: 15px; }
.pc-none { margin: 14px 0 0; }
.pc-h { margin: 16px 0 6px; font-size: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }
.pc-games, .pc-moves { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.pc-games li, .pc-moves li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0;
  border-top: 1px solid var(--line); }
.pc-games li:first-child, .pc-moves li:first-child { border-top: 0; }
.pc-games a { color: var(--text); }
.pc-games .res { margin-left: 4px; color: var(--text-2); white-space: nowrap; }   /* "L 118-121" never breaks at its hyphen (ratings-kit-2 item 2) */
.pc-games .res.w { color: var(--ok); }
.pc-games .res.l { color: var(--bad); }
.pc-g-line { color: var(--text-2); white-space: nowrap; }
.pc-games li.dnp .pc-g-line { color: var(--muted); }
.pc-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.pc-acts .blk-f { display: inline-flex; }
.pc-acts .btn, .pc-acts .blk-t { min-height: 40px; }
/* run 3's section (ratings, badges, tendencies): the layout waits for its content */
.pc-extra { margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
@media (max-width: 999px) {
  .pc-acts .btn, .pc-acts .blk-t { min-height: 44px; }
}
/* names drawn as text that open the card: the open Priorities row's name on the phone, a Matchup choice read as text */
html.js-card .ro[data-card-uid], html.js-card .prio-d[open] > summary .ps-nm {
  text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
html.js-card .ro[data-card-uid]:hover, html.js-card .prio-d[open] > summary .ps-nm:hover { color: var(--heat-text); }
/* the timeline and the chart's name cells hold the card control: a box for it */
.ch-name .nm, table.tg .tg-nm .nm { position: relative; }

/* run 2 Part 5: the player page. The header as a strip; one averages block under Per game / Per 36. Session 156: four
   tabs under the strip (Performance, Ratings, Badges, Tendencies) at every width; the 1280 side column is gone */
.pl-strip { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin: 4px 0 8px; }
.pl-strip .ps-id { min-width: 0; }
.pl-strip h1 { margin: 0; font-size: 22px; }
.pl-strip .ps-id .meta { margin: 2px 0 0; }
.pl-strip .ps-2k { margin-left: auto; }
.pl-grid { display: block; }
/* the tabs: the site's .subtabs, the active underline the page's accent (--heat: the league's, or the GM's team's on
   his own player's page); the Badges count quiet beside its word. A phone fits the four in one row at 390 px: tighter
   padding and no count under 480 px */
.pl-tabs { margin: 8px 0 16px; }
.pl-tabs .pl-tc { margin-left: 6px; color: var(--muted); font-weight: 400; }
.pl-tabs a[aria-current=page] .pl-tc { color: var(--text-2); }
.pl-pane[hidden], .pd[hidden] { display: none; }
.pd-grp > summary { padding: 10px 0; }
@media (max-width: 479px) {
  /* one row at 390 and 360; under enlarged text the tabs wrap to a second row rather than run off the screen */
  .pl-tabs { gap: 0; overflow-x: visible; flex-wrap: wrap; }
  .pl-tabs a { padding: 10px 8px; font-size: 13px; flex: 1 1 auto; justify-content: center; }
  .pl-tabs .pl-tc { display: none; }
}
@media (max-width: 379px) {
  .pl-tabs a { padding: 10px 6px; }
}
@media (max-width: 999px) {
  .pl-strip { gap: 4px 12px; }
  .pl-strip h1 { font-size: 19px; }
  .pl-strip .ps-2k { margin-left: 0; }
}

/* run 3: ratings, badges and tendencies (templates/_pdata.html). The game's values only; the badge tier as a word and a
   colour; a LIKELY field's quiet "Unverified" mark. The card's section and the full page's parts are <details>. */
:root { --tier-1: #C98A5B; --tier-2: #B7C0CC; --tier-3: #E8B93A; --tier-4: #B98CFF; --tier-5: #FF7B6B; }
.pd-ovr { font-weight: 700; color: var(--text); }
.tier { display: inline-block; padding: 0 8px; border: 1px solid currentColor; border-radius: var(--r-pill);
        font-size: 12px; line-height: 20px; font-weight: 600; white-space: nowrap; color: var(--muted); }
.tier-1 { color: var(--tier-1); } .tier-2 { color: var(--tier-2); } .tier-3 { color: var(--tier-3); }
.tier-4 { color: var(--tier-4); } .tier-5 { color: var(--tier-5); }
.tier-0 { border-color: transparent; padding: 0; font-weight: 400; }
.unv { margin-left: 4px; font-size: 11px; font-weight: 400; color: var(--muted); border-bottom: 1px dotted var(--muted);
       cursor: help; white-space: nowrap; }
.pd-asof { margin: 0 0 8px; }
.pd-card > summary, .pd-sec > summary { font-weight: 600; }   /* the site's details chevron (details > summary) */
.pd-card .pd-asof { margin: 0; }
.pd-top { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; margin: 0; font-size: 14px; }
.pd-top > div { display: contents; }
.pd-top dt { color: var(--text-2); }
.pd-top dd { margin: 0; font-weight: 700; text-align: right; }
.pd-badges { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.pd-badges li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 3px 0; }
.pd-more { margin: 12px 0 0; }
.pd-sec { border-top: 1px solid var(--line); }
.pd-sec:last-child { border-bottom: 1px solid var(--line); }
.pd-sec > summary .meta { font-weight: 400; }
.pd-g { margin: 12px 0 4px; font-size: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }
/* the long lists flow into columns as the column widens (one on the phone, two at 1280, three at 1920) */
.pd-list { list-style: none; margin: 0 0 12px; padding: 0; columns: 220px; column-gap: 24px; font-size: 14px; }
.pd-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0;
              border-top: 1px solid var(--line); break-inside: avoid; }
.pd-v { white-space: nowrap; }
.pd-v.num { font-weight: 700; }
/* tendency-site: a league-set value: the value, then 2K's own beside it in grey (no colour, no accent) */
.pd-v > .num { font-weight: 700; }
.pd-2k { margin-left: 8px; font-size: 12px; font-weight: 400; }
.pd-league { border-bottom: 0; cursor: default; }
.lgm { margin-left: 3px; font-size: 10px; font-weight: 400; color: var(--muted); cursor: help; }
.pd-list li.pd-none .pd-l { color: var(--muted); }
.pd-t { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 12px; }
.pd-t th, .pd-t td { padding: 4px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.pd-t td { text-align: right; padding-left: 12px; white-space: nowrap; }
.pd-t td.num { font-weight: 700; }
.pd-ch thead th { font-size: 12px; color: var(--text-2); border-top: 0; }
.pd-ch thead th.num, .pd-ch thead th.pd-at { text-align: right; }
.pd-t th, .pd-t td { background: none; border-left: 0; border-right: 0; }
.pd-t td.pd-at { padding-left: 16px; }

/* session 245 (ratings-kit, docs/ratings-pages-proposal.md 3.3 and 3.4): the five rating bands and the kit that draws
   them (templates/_pdata.html: ovr_tile, rt_cell, meter, rt_card). Fixed data colours like the tiers: never an accent,
   never text, never on a tendency or a box score number. The number is always --text; the colour sits only in a bar,
   a tint behind a number and a tile's bottom edge (tests/test_rating_bands.py: 3:1 as a bar, 4.5:1 for the text on
   each tint, the tints the 22% mix over --surface, no --rt- outside these rules). */
:root { --rt-5: #2DD4BF; --rt-4: #1E9E8E; --rt-3: #667080; --rt-2: #E0A63A; --rt-1: #E5534B;
        --rt-5-soft: #1A4243; --rt-4-soft: #173638; --rt-3-soft: #272C35; --rt-2-soft: #423826; --rt-1-soft: #432629; }
.rt-b5 { --rt: var(--rt-5); --rt-soft: var(--rt-5-soft); }
.rt-b4 { --rt: var(--rt-4); --rt-soft: var(--rt-4-soft); }
.rt-b3 { --rt: var(--rt-3); --rt-soft: var(--rt-3-soft); }
.rt-b2 { --rt: var(--rt-2); --rt-soft: var(--rt-2-soft); }
.rt-b1 { --rt: var(--rt-1); --rt-soft: var(--rt-1-soft); }
/* the OVR tile: lg in a page header (the word under the number), md on the card, sm in a row (the word for readers) */
.ovr-tile { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; flex: none;
            background: var(--rt-soft, var(--raised)); border-bottom: 3px solid var(--rt, var(--line-strong));
            border-radius: var(--r-sm); color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums;
            line-height: 1; }
.ovr-tile.lg { min-width: 60px; height: 60px; padding: 0 8px; font-size: 26px; border-bottom-width: 4px; }
.ovr-tile.lg .ovr-w { margin-top: 4px; font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--text-2); }
.ovr-tile.md { min-width: 42px; height: 38px; padding: 0 6px; font-size: 18px; }
.ovr-tile.sm { min-width: 32px; height: 26px; padding: 0 4px; font-size: 14px; border-radius: 6px; }
/* a number on its tint, for strips and tables */
.rt-cell { display: inline-block; min-width: 2.4em; padding: 2px 6px; border-radius: 6px; text-align: center;
           background: var(--rt-soft, var(--raised)); color: var(--text); font-weight: 700;
           font-variant-numeric: tabular-nums; line-height: 1.4; }
/* a meter row: the game's label left, the number right, a 3 px bar under both (a native <progress>, aria-hidden: the
   number is the value; no inline style) */
.rt-rows { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.meter { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 12px;
         padding: 6px 0 5px; }
.meter + .meter { border-top: 1px solid var(--line); }
.meter .pd-l { min-width: 0; }
.meter .pd-v { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.meter .pd-v .pd-2k { font-weight: 400; }
.meter progress { grid-column: 1 / -1; display: block; width: 100%; height: 3px; margin: 5px 0 0; border: 0;
                  border-radius: 2px; -webkit-appearance: none; appearance: none; background: var(--line);
                  color: var(--rt, var(--line-strong)); overflow: hidden; }
.meter progress::-webkit-progress-bar { background: var(--line); border-radius: 2px; }
.meter progress::-webkit-progress-value { background: var(--rt, var(--line-strong)); border-radius: 2px; }
.meter progress::-moz-progress-bar { background: var(--rt, var(--line-strong)); border-radius: 2px; }
/* a tendency's bar: --muted on the --line track, 3.9:1 (ratings-kit-2 item 1; --line-strong was 1.3:1); never a band */
.meter.plain progress { color: var(--muted); }
.meter.plain progress::-webkit-progress-value { background: var(--muted); }
.meter.plain progress::-moz-progress-bar { background: var(--muted); }
/* a group's card: a title and its number, then its meters */
.rt-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0 14px 6px;
           min-width: 0; }   /* a strip link lands it under the top bar: html's scroll-padding-top under 1000 px */
/* from 1000 px the sticky top bar has no scroll padding: the card's own margin (ratings-kit-2; packed, a card heads a
   column and the page can scroll it to the very top) */
@media (min-width: 1000px) { .rt-card { scroll-margin-top: calc(var(--top-h) + 8px); } }
/* its head is the band (card-heads, session 248): 14 px a side as the card's own; the number keeps its 15 px and
   reaches 4 px into the band's padding, so the band is no taller than the title's line */
.rt-card > .card-head { margin: 0 -14px; padding-inline: 14px; gap: 8px; }
.rt-card > .card-head .rt-cell { margin-block: -4px; font-size: 15px; }
/* the cards pack in columns (ratings-kit-2 item 0; a grid's rows left holes beside the tall cards): at most three,
   none under 320 px (three from 984 px of content, two from 652, one on a phone), the browser balancing their heights;
   a card never splits; the source order runs down each column */
.rt-cards { display: block; columns: 3 320px; column-gap: 12px; margin: 0; }
.rt-cards > .rt-card { break-inside: avoid; margin: 0 0 12px; }
/* the six groups as links to their cards: three by two under 1000 px, six across from it */
.rt-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; padding: 0;
            list-style: none; }
@media (min-width: 1000px) { .rt-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.rt-strip a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
              min-height: 44px; padding: 8px 4px; background: var(--surface); border: 1px solid var(--line);
              border-radius: var(--r-sm); color: var(--text-2); font-size: 12px; text-align: center; line-height: 1.2; }
.rt-strip a:hover { border-color: var(--line-strong); color: var(--text); }
.rt-strip .rt-cell { font-size: 16px; }
/* session 245 (ratings-rest item 5): 390 at 150% text (260 CSS px): "Rebounding" and "Playmaking" met their box's
   border; a narrower gap and an 11 px name keep each 4 px clear, a two-word name on two lines, still three by two */
@media (max-width: 299.98px) { .rt-strip { gap: 4px; } .rt-strip a { font-size: 11px; padding-left: 2px; padding-right: 2px; } }
.rt-note { margin: 0 0 8px; }
/* session 246 (player-vitals item 1): the Ratings tab's measurements, one quiet row above the strip: a pair the site's
   small label (the tiles' rule) then the value as a rating row's number; pairs wrap whole, no box, tint or link */
.pl-body { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0 0 12px; }
.pl-body[hidden] { display: none; }
.pl-body > div { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.pl-body dt .unv { text-transform: none; letter-spacing: normal; }
.pl-body dd { margin: 0; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
/* a phone: 16 px between pairs, 6 inside, so the three fit one line at 390 (two at 150% text) */
@media (max-width: 599px) { .pl-body { column-gap: 16px; } .pl-body > div { gap: 6px; } }
/* the player page's header: the OVR tile at the strip's right end, the badge count by tier under the meta lines */
.pl-strip .ovr-tile.lg { order: 3; margin-left: auto; }
.pl-strip .ps-2k { order: 2; }
.pl-strip .ps-2k + .ovr-tile.lg { margin-left: 0; }   /* the link's own auto margin pushes both to the right */
.pl-tiers { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0; }
.pl-tiers .num { font-weight: 700; }
@media (max-width: 999px) {
  /* the tile stays on the name's row at the right; the 2kratings link takes its own line under them */
  .pl-strip .ps-id { flex: 1 1 12em; }   /* enlarged text on a narrow phone: the tile wraps under, never over */
  .pl-strip .ovr-tile.lg { order: 2; min-width: 52px; height: 52px; font-size: 22px; }
  .pl-strip .ps-2k { order: 3; flex-basis: 100%; }
}
/* the Badges tab (session 245): a chip a group with its held count, then the held badges as cards, the hexagon the
   tier's colour (the tiers' own tokens, never a band) */
.bg-chips { display: flex; margin: 0 0 12px; }
.bg-chips a { color: var(--text-2); }
.bg-chips a[aria-current] span { background: var(--heat-soft); border-color: var(--heat-soft); color: var(--text); font-weight: 600; }
.bg-chips .fchip .bg-n { display: inline; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none;
                         margin-left: 6px; color: var(--muted); font-weight: 400; }
.bg-chips a[aria-current] .bg-n { color: var(--text-2); background: none; }
.bdg-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
@media (min-width: 600px) { .bdg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .bdg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bdg { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface);
       border: 1px solid var(--line); border-radius: var(--r-sm); min-width: 0; }
.bdg[hidden] { display: none; }
/* badge-icons (session 246): one box for the mark, the game's icon or the hexagon, so cards line up: 35 by 40 under
   600 px, 42 by 48 from it; the icon fills the height and keeps its shape, never stretched */
.bdg-m { flex: none; display: flex; align-items: center; justify-content: center; width: 35px; height: 40px; }
@media (min-width: 600px) { .bdg-m { width: 42px; height: 48px; } }
.bdg-m img { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.bdg-m .bdg-hex { display: block; width: 100%; height: 100%; }
.bdg-t { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.bdg-n { font-weight: 600; }
.bdg-g { font-size: 12px; }
#bdg-not-held { margin-top: 4px; }
/* the player card (session 245): the six numbers always shown under the head */
.pc-head .ovr-tile { margin-left: auto; }
.pc-groups { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin: 12px 0 0; padding: 0;
             list-style: none; }
.pc-groups li { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.pc-groups .rt-g { font-size: 11px; color: var(--text-2); letter-spacing: .05em; }
.pc-groups .rt-cell { min-width: 0; width: 100%; padding: 3px 2px; }
/* session 245 (ratings-rest item 5): a verified height on the name line, not where it would wrap the line: measured
   with the longest team words (a city, "Not on a roster", a pool version "All-Time Warriors"), it fits from 375 px */
.pc-ht { white-space: nowrap; }
@media (max-width: 374.98px) { .pc-ht { display: none; } }

/* ---------------------------------------------------------------- run 2 Part 6: the matchup (a game page before tip-off)
   The teams: one table. Phone: the label column first, the two teams as columns. Desktop: away | label | home, so the
   two teams line up row for row either side of the label. Each value with its rank, coloured by thirds. Then their best
   players: two tables, side by side from 1000 px. */
.mu-wrap { margin: 0 0 4px; }
table.mu-tbl { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); }
table.mu-tbl th, table.mu-tbl td { padding: 6px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
table.mu-tbl thead th { border-top: 0; }
.mu-lp { text-align: left; font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.mu-ld { display: none; }
.mu-t { text-align: right; font-weight: 400; }
.mu-t a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 700; }
.mu-t .meta { display: block; font-size: 12px; }
td.mu-c { text-align: right; white-space: nowrap; }
td.mu-c .v { font-weight: 700; font-variant-numeric: tabular-nums; }
td.mu-c .r { display: block; font-size: 11px; color: var(--muted); }
td.mu-c.good { background: var(--ok-soft); }
td.mu-c.good .v, td.mu-c.good .r { color: var(--ok); }
td.mu-c.bad { background: var(--bad-soft); }
td.mu-c.bad .v, td.mu-c.bad .r { color: var(--bad); }
td.mu-f { text-align: right; }
.mu-g { display: inline-flex; align-items: center; gap: 3px; margin: 2px 0 2px 6px; color: var(--text); font-size: 12px;
  white-space: nowrap; }
.mu-g .pill { width: 18px; height: 18px; font-size: 10px; }
.mu-note { margin: 0 0 8px; }
.mu-ph { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 15px; }
.mu-p { margin: 0 0 12px; min-width: 0; }
table.mu-ptbl { width: 100%; }
@media (min-width: 1000px) {
  /* desktop-align finding 4: The teams is the column's full width (it was 960 px at most), its 200 px centre label on the
     column's midline, so the away side sits over the away team's Best players table and the home side over the home
     team's; the numbers keep their sides of the label, the extra width is air on the outer edges */
  table.mu-tbl { table-layout: fixed; }
  .mu-lp { display: none; }
  .mu-ld { display: table-cell; width: 200px; text-align: center; font-size: 13px; font-weight: 600; color: var(--text-2); }
  .mu-t.away, td.mu-c.away, td.mu-f.away { text-align: right; }
  .mu-t.home, td.mu-c.home, td.mu-f.home { text-align: left; }
  .mu-g { margin: 2px 6px 2px 0; }
  td.mu-f.away .mu-g { margin: 2px 0 2px 6px; }
  .mu-players { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  /* finding 4: the two Best players tables, one set of stat column widths (the widest real value is "100.0" in 13 px
     tabular figures, about 37 px, plus 5 px either side = 47 px: 3.25rem = 52 px; OVR holds two digits: 3rem = 48 px);
     the Player column takes the rest, so every stat column starts at the same x in both tables */
  table.mu-ptbl { table-layout: fixed; }
  table.mu-ptbl col.mu-c-ovr { width: 3rem; }
  table.mu-ptbl col.mu-c-n { width: 3.25rem; }
}

/* ---------------------------------------------------------------- run 2 Part 7: research on the plan page
   The planning column (#rs): docked as a third column from the docking width (research.js sets body.rs-docked), else
   in #research-dlg over the plan: a panel on desktop (as the player card's), a sheet on the phone. */
.plan-research { margin: 6px 0 0; }
.rs-open .icon { width: 16px; height: 16px; }
body.rs-docked .rs-open { display: none; }
.research-dock[hidden] { display: none; }
body.rs-docked.plan-page { --maxw: 1800px; }
body.rs-docked .plan-layout { grid-template-columns: 210px minmax(0, 1fr) 328px; column-gap: 24px; }   /* layout-reds-2: 1664 has a 40 px gutter, the plan box must keep 1280's 994 */
body.rs-docked .plan-layout > .plan-body { margin-right: 4px; }
.research-dock { position: sticky; top: calc(var(--top-h) + 12px); max-height: calc(100vh - var(--top-h) - 24px);
  overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
dialog.research-dlg { padding: 0; }
dialog.research-dlg .pcard-bar { height: 44px; margin-bottom: -44px; background: none; pointer-events: none; }
dialog.research-dlg .pcard-bar .icon-btn { pointer-events: auto; }   /* X over the column's head, the head readable */
dialog.research-dlg.panel { position: fixed; inset: var(--top-h) 0 0 auto; margin: 0; width: 400px; max-width: 100vw;
  height: auto; max-height: none; overflow: auto; border-radius: 12px 0 0 12px; border-right: 0; transform: none;
  background: var(--surface); }
dialog.research-dlg::backdrop { background: rgba(0, 0, 0, .45); }
.rs { padding: 12px 14px 14px; }
.rs-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-right: 40px; }
.research-dock .rs-head { padding-right: 0; }
.rs-head h2 { margin: 0; font-size: 16px; }
.rs-head a { font-size: 14px; }
.rs-switch { display: none; }
.rs-th { display: flex; align-items: center; gap: 6px; margin: 14px 0 4px; font-size: 13px; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-2); }
table.rs-tbl { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }   /* fits any width: the name gives way */
table.rs-tbl th { font-size: 11px; font-weight: 600; color: var(--muted); text-align: left; padding: 2px 6px; }
table.rs-tbl td { padding: 0 6px; border-top: 1px solid var(--line); height: 36px; }
table.rs-tbl .n { text-align: right; width: 42px; padding-left: 2px; padding-right: 4px; }
table.rs-tbl th.nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.rs-tbl td.nm { line-height: 1.2; }     /* session 100: a name is never cut (names.js); names-fit: and never broken inside a word */
a.rs-row { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a.rs-row:hover { color: var(--heat-text); }
.rs-back { margin: 10px 0 0; min-height: 32px; }
.rs-card .pc { padding: 8px 0 0; }
.rs-card .pc-head { padding-right: 0; }
/* numbers at the point of choice: Defense's head, Priorities' rows */
.dh-line { display: block; margin-top: 2px; font-size: 11px; font-weight: 400; color: var(--text-2); white-space: nowrap; }
.dh-line .hc { margin-left: 3px; }
.prio-ln { margin-left: 8px; font-size: 12px; white-space: nowrap; }
@media (max-width: 999px) {
  #research-dlg .rs-switch { display: flex; gap: 8px; margin: 10px 0 0; }
  #research-dlg .rs-switch .fchip-b { flex: 1; min-height: 44px; border-radius: var(--r-pill); border: 1px solid var(--line-strong);
    background: none; color: var(--text-2); font: 600 14px/1 var(--font); }
  #research-dlg .rs-switch .fchip-b.on { background: var(--heat-soft); border-color: var(--heat-soft); color: var(--heat-text); }
  #research-dlg .rs-team:not(.on) { display: none; }
  #research-dlg .rs-th { display: none; }
  table.rs-tbl td { height: 44px; }
  .prio-d > .prio .pname > .prio-ln { margin-left: 0; }
}

/* ---------------------------------------------------------------- run 2 Part 8: My team
   Rebuilt round the roster (session 166, docs/my-team-brief.md): the data width (body.kind-data, 1,600), the team
   page's header strip, the roster as one table in the wide main column, the lists in a 360 px side column (320 from
   1000 to 1279). The DOM is the phone's order (header, What needs you, Roster, Where you stand, Trades, My plans, the
   draft, Autopilot); from 1000 px the grid places each section by area. What needs you, Where you stand and Trades
   sit in auto rows beside the roster, which spans them down to a 1fr row, so a long roster grows that row alone and My
   plans starts right under it; Autopilot sits beside My plans and the draft. A grid couples the two columns' rows, so
   when the side's three are taller than the roster, My plans starts under Trades instead (no masonry, one DOM). My plans: a table on desktop (one row a game, earlier saves under it),
   History's list on the phone. */
.me-h { margin: 4px 0 2px; font-size: 22px; }
.me-sub { margin: 0 0 12px; }
.me-strip h1 a { color: var(--text); }
.me-strip h1 a:hover { color: var(--heat-text); }
.me-cols > section, .me-cols > div { min-width: 0; margin: 0; }
.me-cols > .me-week, .me-cols > .me-main, .me-cols > .me-side { margin-top: 24px; }   /* the phone: plain blocks in the phone's order */
.me-cols > .team-strip + .me-week { margin-top: 16px; }
.me-main > section, .me-side > section { min-width: 0; margin: 0; }
.me-main > section + section, .me-side > section + section { margin-top: 24px; }
/* a section's own title opens it with no margin: the gaps between sections are the sections' (24 side, 32 main);
   Where you stand is a card, its title inside as the partial draws it */
.me-cols section:not(.stand) > .section-title:first-child { margin-top: 0; }
/* the title line: the chips centred on the title, their margins negative so the title alone sets the line's height
   (its top level with the side's first title); the chips are 44 px on a phone, 32 from 1000 */
.me-roster-h { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 18px; }
.me-roster-h .section-title { margin: 0; }
.me-roster-h .fchips { margin: -12px 0; }
@media (min-width: 1000px) { .me-roster-h { margin-bottom: 14px; } .me-roster-h .fchips { margin: -10px 0; } }
/* the team's tiles: as many as fit at 66 px on a phone (five a row at 390, four on a 275 px screen), five a row from
   1000 (two rows), ten from 1280 */
.mt-team { margin: 0 0 12px; }
dl.mt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(66px, 1fr)); gap: 1px; margin: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--line); overflow: hidden; }
dl.mt-grid > div { padding: 8px 4px; background: var(--surface); text-align: center; min-width: 0; }
dl.mt-grid dt { font-size: 11px; font-weight: 600; color: var(--muted); }
dl.mt-grid dd { margin: 0; font-size: 14px; font-weight: 700; }
dl.mt-grid small.rk { display: block; margin: 0; font-weight: 400; }
dl.mt-grid small.rk[hidden] { display: none; }
.mt-note { margin: 6px 0 0; }
#mt-empty { margin: 0 0 12px; }
/* the roster table: the Player cell a flex row (the face and name with the mark over the meta line, the Block toggle at
   its end); under 1000 px it scrolls in its own box behind a sticky Player column */
table.mt-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
main table.mt-tbl th { font-size: 11px; font-weight: 600; color: var(--muted); text-align: left; padding: 4px 6px; border: 0; white-space: nowrap; }
main table.mt-tbl td { padding: 4px 6px; border: 0; border-top: 1px solid var(--line); white-space: nowrap; height: 44px; }
main table.mt-tbl td.mk { padding-top: 10px; }                 /* session 126: clear of the rank mark */
table.mt-tbl .n { text-align: right; }
table.mt-tbl small.lr[hidden] { display: none; }
table.me-roster .mt-pc { min-width: 200px; max-width: 200px; }   /* session 166 (my-team-2, item 1): 200 px on a phone, so five stat columns show beside it */
main table.me-roster td { vertical-align: middle; }
table.me-roster tr.mt-none td { color: var(--muted); }
/* session 245 (ratings-rest item 2): OVR's small tile after Player, and in the picks tables in place of the bold number;
   its reader word (absolute) kept inside its cell */
table.me-roster td.ovr-c, table.me-pk-tbl td.mpk-ovrc, .mpk-ovr { position: relative; }
table.me-roster td.ovr-c { text-align: center; }
@media (max-width: 999px) {   /* the phone: OVR's cell as narrow as the tile allows, so OVR and four stats show beside
                                 the 200 px Player column */
  main table.me-roster th.n.ovr-c, main table.me-roster td.n.ovr-c { padding-left: 2px; padding-right: 2px; }
  table.me-roster td.ovr-c .ovr-tile { box-sizing: border-box; min-width: 26px; padding: 0 3px; }
}
@media (min-width: 1000px) and (max-width: 1279px) {   /* OVR's 44 px: the stat cells take the phone's padding here, so
                                                          the roster still fits its column at 1000 (no sideways scroll) */
  main table.me-roster th.n, main table.me-roster td.n { padding-left: 4px; padding-right: 4px; }
}
.mpk-end .mpk-ovr { display: inline-flex; margin-bottom: 2px; }
.mt-cell { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mt-who { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.mt-who .rt.one { display: flex; align-items: center; min-width: 0; }
.mt-meta { margin-left: 36px; font-size: 12px; line-height: 1.3; }   /* under the name: the face (28) and the gap (8) */
.mt-cell { position: relative; }
.mt-cell .blk-f { position: absolute; right: 0; bottom: -2px; margin: 0; }   /* the pill sits on the meta line (my-team-2, item 1) */
.mt-cell .blk-t { position: relative; min-height: 28px; padding: 0 10px; font-size: 12px; }
.mt-cell .blk-t::before { content: ""; position: absolute; inset: -9px -4px; }   /* the 44 px tap target, not the pill's height */
.blk-note { display: none; }
.mt-cell:has(.blk-t.on) .blk-note { display: inline; }        /* the chip follows the toggle, even after an htmx swap */
.blk-chip { height: 18px; padding: 0 6px; font-size: 11px; vertical-align: 1px; }
.me-dm { white-space: nowrap; }
@media (max-width: 999px) {
  table.me-roster th.mt-pc, table.me-roster td.mt-pc { position: sticky; left: 0; z-index: 1; background: var(--bg);
    box-shadow: inset -1px 0 0 var(--line); }
  main table.me-roster td.mt-pc { padding-top: 2px; padding-bottom: 2px; }
  main table.me-roster th.n, main table.me-roster td.n { padding-left: 4px; padding-right: 4px; }   /* five stat columns beside the 200 px Player column */
  .mt-who .rt.one { height: 24px; }                              /* the face (28) overflows the line a little */
  .mt-who .mt-meta { display: block; height: 24px; line-height: 24px; padding-right: 56px; white-space: nowrap; overflow: hidden; text-overflow: clip; }
  .mt-cell:has(.blk-t.on) .blk-note { display: none; }           /* the filled pill says it on a phone */
  table.me-roster .blk-t { min-width: 52px; min-height: 44px; }   /* layout-reds-2: a measured 44 px tap target, not the ::before halo */
}
@media (min-width: 1000px) {
  main table.mt-tbl td { height: 40px; }
  table.me-roster .mt-pc { min-width: 240px; max-width: none; }
  .mt-cell .blk-f { top: 50%; bottom: auto; transform: translateY(-50%); }
  .mt-who { padding-right: 56px; }   /* desktop-align finding 3: the 54 px Block pill and 2 px; at 1000 the name was 2 px short of "Y. Konan Niederhäuser" (141 px) */
  /* quiet at rest: 15 pills must not read as a column of buttons; the border and text colour on hover and focus */
  .mt-cell .blk-t:not(.on) { border-color: transparent; color: var(--muted); }
  .mt-cell .blk-t:not(.on):hover, .mt-cell .blk-t:not(.on):focus-visible { border-color: var(--line-strong); color: var(--text); }
}
@media (min-width: 1000px) { dl.mt-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1280px) {
  dl.mt-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  table.me-roster .mt-pc { min-width: 260px; }
}
/* desktop-align finding 8 (from 1000 px): My team's trade list: one logo slot of one width on every row (60 px: a pair of 28 px
   logos with the pair's 4 px gap, as the game rows draw it, never overlapped: tests/test_logo_pair_names_browser.py; a
   one-team row's logo sits at the slot's left), the text beside the slot at one x, the state chip always on its own line
   under the text */
@media (min-width: 1000px) {
  #trade-list .row { display: grid; grid-template-columns: 60px minmax(0, 1fr); column-gap: 12px; row-gap: 4px; align-items: center; }
  #trade-list .row > .gr-logos { grid-column: 1; grid-row: 1 / span 2; }
  #trade-list .row > .grow { grid-column: 2; grid-row: 1; }
  #trade-list .row > .end { grid-column: 2; grid-row: 2; margin-left: 0; text-align: left; max-width: 100%; }
}
table.me-plans { display: none; }
/* session 166 (item 4): My plans names a draft; the phone card's draft line and its what-loads line */
.hist-card .hist-draft, .hist-card .hist-loads { margin: 10px 16px; }
.hist-card .hist-draft { color: var(--warn); }
/* draft-room-3e: the compact draft card, under My plans from 1000 px */
.me-draft-tiles { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.me-draft-tiles li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.me-dt-who { display: flex; flex-direction: column; min-width: 0; }
.me-draft-sum { margin: 0; }
@media (min-width: 1000px) {
  .me-draft-tiles { flex-direction: row; gap: 12px; }
  .me-draft-tiles li { flex: 1 1 0; border: 1px solid var(--line); border-radius: var(--r); padding: 8px; background: var(--surface); }
}
/* session 228 (my-team-draft item 2): the roster before the game has it. The count right of the title; the pick numbers
   five across at every width; the position strip grey only (no position colour); the picks one row a player, the
   rating and pick at the row's end on a phone, a table (Player, Position, Rating, Pick) from 1000 px; the slot rows a
   dashed empty face; the sort chips 44 px at every width. The one accent: "On the clock". */
.team-strip .ts-acc { color: var(--heat-text); font-weight: 600; }
.me-pk-count { margin-left: auto; }
.me-picks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.me-picks li { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 8px 2px; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--surface); }
.me-picks small { font-size: 11px; white-space: nowrap; }
.me-picks b { font-size: 16px; }
.me-pk-note { margin: 0 0 10px; }
.me-pk-sort { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.me-pk-sort .fchip span { min-height: 44px; }
dl.me-pos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; margin: 0 0 12px; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--line); overflow: hidden; }
dl.me-pos > div { padding: 6px 2px; background: var(--surface); text-align: center; min-width: 0; }
dl.me-pos dt { font-size: 11px; font-weight: 600; color: var(--muted); }
dl.me-pos dd { margin: 0; font-size: 15px; font-weight: 700; }
.mpk-cap { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 2px; font-size: 11px; font-weight: 600; }
table.me-pk-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.me-pk-tbl thead, table.me-pk-tbl .mpk-d { display: none; }
main table.me-pk-tbl td { padding: 4px 0; border: 0; border-top: 1px solid var(--line); vertical-align: middle; }
.mpk-cell { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px; }
.mpk-id { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.mpk-meta { margin-left: 36px; font-size: 12px; line-height: 1.3; }   /* under the name: the face (28) and the gap (8) */
.mpk-end { display: flex; flex-direction: column; align-items: flex-end; flex: 0 0 auto; text-align: right; line-height: 1.25; }
.mpk-ovr { font-size: 15px; }
.mpk-rp { font-size: 12px; white-space: nowrap; }
.mpk-face { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; border: 2px dashed var(--line-strong); box-sizing: border-box; }
.mpk-otc { margin-left: auto; }
.mpk-rest { margin: 8px 0 0; }
/* item 3: What needs you's on-the-clock card, the accent's tint with an accent edge; paused it is grey (a pause is no
   call to act) */
.wk-clock { margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--heat-soft); border-left: 4px solid var(--heat);
  border-radius: var(--r); background: var(--heat-soft); }
.wk-clock p { margin: 0; }
.wk-clock .wk-clock-h { font-weight: 700; font-size: 16px; }
.wk-clock .meta { margin-top: 2px; color: var(--text-2); }
.wk-clock .btn { margin-top: 10px; min-height: 44px; }
.wk-clock.wk-paused { border-color: var(--line); border-left-color: var(--line-strong); background: var(--surface); }
#wk-draft { margin-bottom: 12px; }
.tp-pk-h { margin-bottom: 10px; }                   /* item 5: the team page's note and count on one line */
.tp-pk-h .me-pk-note { margin: 0; }
@media (min-width: 1000px) {
  .mpk-cap { display: none; }
  table.me-pk-tbl thead { display: table-header-group; }
  table.me-pk-tbl .mpk-d { display: table-cell; }
  table.me-pk-tbl .mpk-end, .mpk-meta .mpk-pos, .mpk-meta .mpk-sep { display: none; }
  main table.me-pk-tbl th { font-size: 11px; font-weight: 600; color: var(--muted); text-align: left; padding: 4px 8px; border: 0; white-space: nowrap; }
  main table.me-pk-tbl td { padding: 2px 8px; }
  main table.me-pk-tbl td:first-child, main table.me-pk-tbl th:first-child { padding-left: 0; }
  table.me-pk-tbl .n { text-align: right; white-space: nowrap; }
  table.me-pk-tbl .mpk-posc { white-space: nowrap; }
  .mpk-id { flex-direction: row; align-items: center; flex-wrap: wrap; column-gap: 8px; }
  .mpk-meta { margin-left: 0; }
}
@media (min-width: 1000px) {
  /* my-team-2, item 2: three wrappers. .me-main spans both rows; .me-week and .me-side stack beside it. No row of one
     column is set by the other, so a taller side leaves no hole in the main column and the reverse. my-team-3: three
     rows, the side's the 1fr one, so a short side sits under the week instead of at the foot of a stretched week row */
  .me-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; column-gap: 32px; align-items: start;
    grid-template-rows: auto auto 1fr; grid-template-areas: "head head" "main week" "main side"; }
  .me-cols > .team-strip { grid-area: head; margin-bottom: 16px; }
  .me-cols > .me-main { grid-area: main; }
  .me-cols > .me-week { grid-area: week; }
  .me-cols > .me-week, .me-cols > .team-strip + .me-week, .me-cols > .me-main { margin-top: 0; }
  .me-cols > .me-side { grid-area: side; align-self: start; margin-top: 24px; }
  .me-main > section + section { margin-top: 32px; }
  .me-side > section + section, .me-side > .stand-card + section { margin-top: 24px; }
  .me-cols > .me-week > .your-week { margin-top: 0; }
  /* the side's first title and the roster's sit level: no top margin on either */
  .me-cols > .me-week > .your-week > .section-title:first-child, .me-roster-h .section-title { margin-top: 0; }
  table.me-plans { display: table; width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 8px; }
  table.me-plans th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 4px 8px; }
  table.me-plans td { padding: 6px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
  table.me-plans td a { color: var(--text); }
  table.me-plans td:first-child a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
  table.me-plans td.pl-game .pl-when { display: block; margin-top: 2px; font-size: 13px; white-space: nowrap; }   /* my-team-2, item 3: the date under the matchup */
  table.me-plans td a .tlogo { flex: none; }       /* polish Part 6: the standard small logo (28 px, an 11 px badge) */
  table.me-plans td.meta { white-space: nowrap; font-size: 13px; }
  table.me-plans td.pl-last { white-space: normal; min-width: 150px; }   /* session 166: the draft's line wraps under the save */
  table.me-plans .pl-since { display: block; }
  table.me-plans td.pl-loads { white-space: nowrap; }
  table.me-plans td.pl-st { white-space: nowrap; }
  table.me-plans td.pl-loads .meta { white-space: normal; font-size: 13px; }
  table.me-plans .n { text-align: right; }
  table.me-plans td.links { white-space: nowrap; text-align: right; }
  table.me-plans td.links a { color: var(--heat-text); }
  table.me-plans td.links a + a { margin-left: 12px; }
  table.me-plans tr.older td { border-top: 0; padding-top: 0; }
  table.me-plans tr.older summary { font-size: 13px; color: var(--text-2); cursor: pointer; min-height: 28px; }
  table.me-plans tr.older .saves { margin: 4px 0 0; }
  .hist.ph-list { display: none; }
}
@media (min-width: 1280px) { .me-cols { grid-template-columns: minmax(0, 1fr) 360px; } }
@media (min-width: 1440px) { .me-cols { column-gap: 40px; grid-template-columns: minmax(0, 1fr) 400px; } }
@media (min-width: 1600px) { .me-cols { grid-template-columns: minmax(0, 1fr) 440px; } }   /* my-team-3: the side with room */
.foot-links a + a { margin-left: 16px; }

/* ---------------------------------------------------------------- session 121 (docs/hub-b-brief.md): Today, the hub.
   Phone first, one column: the title with its freshness time; the league today as cards scrolling sideways (live or
   up next first); Your next game; Needs you; Since you last looked; Where you stand; then the rest of the news.
   From 1000 px: the cards wrap full width, then two columns (the card and Needs you left; Since you last looked and
   Where you stand right), the feed below. One accent (the GM's team); colour on status only. */
.today-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 4px 0 12px; }
.today-head h1 { margin: 0; font-size: 22px; }
.today-head .meta { white-space: nowrap; }
.gday { display: grid; gap: 18px; margin: 0 0 8px; }
.ggroup { display: grid; gap: 8px; }
.gcap { display: flex; align-items: baseline; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-2); margin: 0; }
.gcap .n { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.gcards { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px; scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch; }
.gcard { flex: 0 0 156px; display: flex; flex-direction: column; gap: 6px; padding: 10px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); scroll-snap-align: start; }
.gcard:hover { border-color: var(--line-strong); color: var(--text); }
.gcard .gc-main { display: flex; flex-direction: column; gap: 6px; color: var(--text); }
.gcard.live { border-color: var(--live); }
.gcard.mine { outline: 2px solid var(--heat-soft); outline-offset: -1px; }
.gc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; min-height: 24px; }
.gc-row .gc-t { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; min-width: 0; }
.gc-row .gc-s { font-variant-numeric: tabular-nums; color: var(--text-2); }
.gc-row .gc-s.won { color: var(--text); font-weight: 700; }
.gc-when { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12px;
  color: var(--text-2); min-height: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gc-when .me { font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--heat-text); }
.gc-st { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--text-2);
  min-height: 28px; margin-top: 2px; }
.gc-st .btn.small { min-height: 28px; padding: 0 10px; }
/* watch-tab (session 218, item 6): the 28 px buttons on Today's cards and the Games rows (Watch, while a game is live)
   keep a 44 px tap target, a box drawn over the control as .blk-t's; the layout seed had no stream link until now, so
   the matrix had never drawn them */
.gc-st .btn.small { position: relative; }
.gc-st .btn.small::before, .gs-end .btn.small::before { content: ""; position: absolute; inset: -9px 0; }
.today-line { margin: 0 0 16px; }
/* today-game-day: the block's header names the game day, a step each side (links; an empty cell holds the place) */
.day-nav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; margin: 0 0 10px; font-size: 14px; }
.day-nav .day-name { grid-column: 1 / -1; grid-row: 1; text-align: center; }
.day-nav .day-step { grid-row: 2; color: var(--text-2); white-space: nowrap; }
.day-nav #day-prev { grid-column: 1; }
.day-nav #day-next { grid-column: 3; text-align: right; }
@media (min-width: 700px) { .day-nav .day-name { grid-column: 2; grid-row: 1; } .day-nav .day-step { grid-row: 1; } }
.today-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 24px; }
.today-grid .section-title:first-child { margin-top: 0; }
/* hub-d: Earlier is in the left column; below 1000 px the columns dissolve and Earlier goes last, the phone order hub-b set */
@media (max-width: 999px) { .tg-left, .tg-right { display: contents; } .tg-earlier { order: 9; } }
/* hub-e: League talk is the right column's first block; on the phone it follows Since you last looked and comes
   before Standings (the wrappers carry the order; the headings keep their margin inside them) */
.today-grid .tg-since > .section-title:first-child, .today-grid .tg-standings > .section-title:first-child { margin-top: 28px; }
@media (max-width: 999px) { .tg-since { order: 1; } .tg-talk { order: 2; } .tg-standings { order: 3; }
  .today-grid .tg-talk > .talk { margin-top: 28px; } }
/* chat-look (session 251), decisions 3, 4 and 8: every room is this one block on every page: the band (card-heads'
   `.card-head`, the room's title its label, one icon link to the room's page in the right slot), the pinned line,
   the list, the composer. One padding for every page's block (was four per-page rules): 12 px a side, the band and
   the pinned line edge to edge. A column, so where the block is given a height the list takes the room left. */
.talk { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 0 12px 10px; margin: 0 0 16px; }
.talk > .tk-band { flex: none; margin: 0 -12px; padding: 9px 12px; }
.tk-band .tk-open { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  margin: -13px -10px -13px 0; color: var(--text-2); border-radius: var(--r-sm); }      /* a 44 px target in a 37 px band */
.tk-band .tk-open:hover { color: var(--text); }
.tk-band .tk-open .icon { width: 18px; height: 18px; }
/* /watch with a game on: one card, one band, the two rooms its tabs (the shown one --text over a 2 px accent line,
   the other --text-2, its unseen count a small mark); each room inside is the block without its own card */
.talk-two { padding: 0; }
.talk-two > .tk-band { margin: 0; padding: 0 12px; align-items: stretch; flex-wrap: nowrap; }
.talk-two > .tk-band .tk-open { align-self: center; margin-block: 0; }
.talk-two > .watch-room { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.talk.talk-bare { flex: 1 1 auto; min-height: 0; border: 0; border-radius: 0; background: none; margin: 0; }
.tk-tabs { display: flex; flex-wrap: wrap; gap: 0 18px; min-width: 0; flex: 1 1 auto; }   /* two lines where both do not fit (360 at 150%) */
.tk-tab { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-bottom: -1px; font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: var(--text-2); border-bottom: 2px solid transparent; }
.tk-tab:hover { color: var(--text); }
.tk-tab[aria-current=true] { color: var(--text); border-bottom-color: var(--heat); }
.tk-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-size: 11px; line-height: 16px; letter-spacing: 0;
  text-align: center; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); }
/* the pinned message: one line under the band (a pin, the name, the words clipped); pressed, the message whole */
.tk-pin { flex: none; margin: 0 -12px; border-bottom: 1px solid var(--line); }
.tk-pin > summary.tk-pin-line { min-height: 36px; padding: 0 12px; gap: 6px; font-size: 13px; color: var(--text); }
.tk-pin > summary.tk-pin-line::before { content: none; display: none; }
.tk-pin-line .icon { flex: none; width: 14px; height: 14px; color: var(--muted); }
.tk-pin-line .tk-name { flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-pin-words { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-pin-label { display: none; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tk-pin[open] > summary .tk-name, .tk-pin[open] > summary .tk-pin-words { display: none; }
.tk-pin[open] > summary .tk-pin-label { display: inline; }
.tk-pin > .tk-pinbar { padding: 0 12px 10px; }
@media (hover: none) { .tk-pin > summary.tk-pin-line { min-height: 44px; } }
/* a room's own page: the block's shape, as tall as the window under the top bar, so the composer sits at the window's
   bottom (over the phone's tab bar) and the list scrolls inside; 720 px wide as before */
.talk-shell { display: flex; flex-direction: column; max-width: 720px; min-height: 22rem;
  height: calc(100vh - var(--top-h) - var(--tab-h) - 24px); height: calc(100dvh - var(--top-h) - var(--tab-h) - 24px - env(safe-area-inset-bottom)); }
.talk-shell > .today-head { flex: none; }
.talk-page { flex: 1 1 auto; min-height: 0; margin: 0; }
.talk-page ul.tk-scroll { flex: 1 1 auto; min-height: 0; max-height: none; }
.talk-page .tk-empty { flex: 1 1 auto; }
@media (min-width: 1000px) { .talk-shell { height: calc(100vh - var(--top-h) - 40px); height: calc(100dvh - var(--top-h) - 40px); } }
/* chat-look (session 251, decision 11): the composer is one shell, --raised with a 1 px --line-strong border and the
   site's radius, the accent on its border while focus is inside. The text area is one line (44 px) and grows to
   five; 16 px, so a phone does not zoom. The tools sit at the shell's bottom right: Emoji, then Send, a 44 px
   target whose mark is the accent when there are words and --line with a --muted arrow when empty. */
.tk-box { display: block; margin: 0; flex: none; }
.tk-shell { background: var(--raised); border: 1px solid var(--line-strong); border-radius: var(--r); transition: border-color var(--t); }
.tk-shell:focus-within { border-color: var(--heat); box-shadow: 0 0 0 1px var(--heat); }
.tk-compose { display: flex; align-items: flex-end; min-width: 0; }
.tk-box textarea.tk-text { display: block; flex: 1 1 auto; min-width: 0; width: 100%; min-height: 44px; max-height: 132px; margin: 0;
  padding: 11px 4px 11px 12px; font: inherit; font-size: 16px; line-height: 22px; color: var(--text); background: none; border: 0;
  border-radius: 0; resize: none; overflow-y: auto; scrollbar-width: thin; }
/* the field's own focus ring is kept and drawn clear: the shell's accent border and ring show the focus (above), and
   a forced-colours mode still draws this one (the house rule: no rule removes an outline, tests\test_design.py) */
.tk-box textarea.tk-text:focus-visible { outline-color: transparent; outline-offset: -2px; }
.tk-box textarea.tk-text::placeholder { color: var(--muted); }
.tk-tools { display: flex; align-items: center; flex: none; }
.tk-tool, .tk-send { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 0; padding: 0;
  margin: 0; background: none; border: 0; border-radius: var(--r-sm); color: var(--text-2); cursor: pointer; }
.tk-tool[hidden] { display: none; }
.tk-tool:hover { color: var(--text); }
.tk-tool .icon { width: 22px; height: 22px; }
.tk-send-in { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 16px;
  background: var(--heat); color: var(--on-heat); transition: background var(--t), color var(--t); }
.tk-send-in .icon { width: 18px; height: 18px; }
.tk-send:hover .tk-send-in { background: var(--heat-hover); }
.tk-text:placeholder-shown ~ .tk-tools .tk-send-in { background: var(--line); color: var(--muted); }
.tk-send[disabled] { cursor: default; opacity: .6; }
.tk-left { align-self: flex-end; flex: none; padding: 0 4px 13px; font-size: 12px; line-height: 18px; color: var(--muted);
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.tk-left.full { color: var(--warn); }
/* the edit form's field inside a row */
.tk-text { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 12px; font: inherit; color: var(--text); background: var(--raised);
  border: 1px solid var(--line-strong); border-radius: var(--r); }
.tk-err { margin: 4px 0 6px; color: var(--bad); font-size: 13px; }
ul.tk-list { list-style: none; margin: 0; padding: 0; }
/* chat-look (session 251, docs\chat-look.md; docs\brand.md "Chat"), decisions 5 to 7: a message is two columns, the
   team's logo at 28 px and the body; the body's first line is the head (the name 13 px 600 --text-2, the role mark
   11 px in a hairline pill, the time 12 px --muted, the clock alone), the words under it at 15 px in --text. One
   person's messages within 5 minutes are a group: a follow-on row (`tk-follow`) draws no logo and no head, 1 px
   under the one before; groups are 12 px apart; no divider between rows. A day line sits between two days. */
.tk-post { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 10px; margin: 12px 0 0; padding: 0; }
.tk-post.tk-follow { margin-top: 1px; }
.tk-logo { padding-top: 3px; }
.tk-follow > .tk-logo > *, .tk-follow .tk-head { display: none; }
.tk-body { min-width: 0; }
.tk-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; margin: 0; line-height: 18px; }
.tk-name { font-size: 13px; font-weight: 600; color: var(--text-2); min-width: 0; }   /* card-heads: the name is the label, the words the content */
.tk-role { font-size: 11px; line-height: 14px; padding: 0 6px; color: var(--muted); border: 1px solid var(--line-strong);
  border-radius: var(--r-pill); white-space: nowrap; }
.tk-when { font-size: 12px; color: var(--muted); white-space: nowrap; }
.tk-line { margin: 0; font-size: 15px; line-height: 1.4; color: var(--text); overflow-x: auto; scrollbar-width: thin; }   /* no-word-break: a URL breaks at its `/ ? & .` (wbr_urls), any other long word scrolls in the line's own box */
.tk-text-line { white-space: pre-wrap; }
.tk-edited { font-size: 11px; color: var(--muted); white-space: nowrap; }
.tk-jumbo .tk-text-line { font-size: 30px; line-height: 1.2; }  /* one to three emoji and nothing else */
.tk-day { display: flex; justify-content: center; margin: 12px 0 0; font-size: 11px; font-weight: 600; line-height: 16px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
/* chat-look (session 251, decisions 9 and 10): a message's actions are one bar: the quick reactions, the picker,
   Reply, More (a small menu: Edit, Delete, Pin or Unpin). Without script (no `tk-js` on the block) it is a plain row
   of those forms under the message and Edit is its own disclosure. With script: with a mouse the bar floats at the
   row's top right on hover or focus within (and while one of its menus is open); on touch no row sits under a
   message, and pressing its words opens the bar under it (`tk-open`), one at a time. */
.tk-a { font: inherit; font-size: 12px; line-height: 20px; color: var(--muted); background: none; border: 0; padding: 0; margin: 0;
  cursor: pointer; list-style: none; min-height: 0; border-radius: 0; }
.tk-a:hover, .tk-a:focus-visible { color: var(--text); text-decoration: underline; }
summary.tk-a::-webkit-details-marker, summary.tk-act::-webkit-details-marker { display: none; }
summary.tk-a::before, summary.tk-act::before { content: none; display: none; }   /* no global details chevron here */
.tk-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 4px 0 0; }
.tk-acts form { margin: 0; }
.tk-quick { display: inline-flex; gap: 2px; }
.tk-act { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 32px; height: 32px; min-height: 0; padding: 0 6px;
  margin: 0; font: inherit; font-size: 13px; line-height: 1; color: var(--text-2); background: none; border: 0; border-radius: 6px; cursor: pointer;
  list-style: none; }
.tk-act:hover, .tk-act:focus-visible { color: var(--text); background: var(--raised); text-decoration: none; }
.tk-act .icon { width: 18px; height: 18px; }
.tk-qr { font-size: 18px; }
.tk-more { position: relative; display: inline-flex; }
.tk-menu { display: flex; flex-direction: column; min-width: 9rem; padding: 4px; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); box-shadow: var(--shadow); }
.tk-mi { display: flex; align-items: center; width: 100%; min-height: 36px; padding: 0 10px; margin: 0; font: inherit; font-size: 14px;
  text-align: left; color: var(--text); background: none; border: 0; border-radius: 6px; cursor: pointer; }
.tk-mi:hover, .tk-mi:focus-visible { background: var(--raised); }
/* Edit: without script its own disclosure under the words; with script the field takes the words' place */
.tk-edit form { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.tk-edit .tk-text { flex: 1 1 12rem; min-height: 40px; font-size: 15px; border-radius: var(--r-sm); }
.tk-edit-btn, .tk-add, .tk-actions-btn, .tk-pick { display: none; }
/* ---- with script */
.tk-js .tk-acts { display: none; margin: 0; }
.tk-js .tk-post.tk-open > .tk-body > .tk-acts { display: flex; }
.tk-js .tk-act-w { display: none; }                              /* the bar's Reply is its icon (labelled); the word is no script's */
.tk-js .tk-edit > summary { display: none; }
.tk-js .tk-edit:not([open]) { display: none; }
.tk-js .tk-post:has(.tk-edit[open]) > .tk-body > .tk-line { display: none; }
.tk-js .tk-edit-btn { display: flex; }
.tk-js .tk-add, .tk-js .tk-pick { display: inline-flex; }
.tk-js .tk-qr-nojs { display: none; }                           /* talk-2's sixth, one press away only where there is no picker */
.tk-js .tk-actions-btn { display: block; position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tk-js .tk-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 7; }
.tk-js .tk-more.up .tk-menu { top: auto; bottom: calc(100% + 4px); }
.tk-add .tk-pv { gap: 1px; color: var(--muted); }
.tk-add .icon { width: 15px; height: 15px; }
.tk-add .icon + .icon { width: 10px; height: 10px; }
@media (hover: hover) {
  .tk-js .tk-acts { position: absolute; top: -6px; right: 0; z-index: 6; flex-wrap: nowrap; padding: 2px; background: var(--surface);
    border: 1px solid var(--line-strong); border-radius: var(--r-sm); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
  .tk-js .tk-post:hover > .tk-body > .tk-acts, .tk-js .tk-post:focus-within > .tk-body > .tk-acts,
  .tk-js .tk-post:has(.tk-acts details[open]) > .tk-body > .tk-acts { display: flex; }
  .tk-js .tk-qr-more { display: none; }                          /* three quick reactions with a mouse, five on touch */
}
/* touch: every control of the open bar is a 44 px target (the house rule the layout matrix checks on phones) */
@media (hover: none) {
  .tk-act { min-width: 44px; height: 44px; }
  .tk-qr { font-size: 22px; }
  .tk-mi { min-height: 44px; }
  .tk-a { display: inline-flex; align-items: center; min-height: 44px; line-height: 1; font-size: 13px; }
  .tk-edit .tk-text { min-height: 44px; font-size: 16px; }
  /* the open bar takes the card's whole width (under the logo and into the list's side padding): eight 44 px
     controls are 352 px, which a 390 px phone has there and the words' column alone does not; narrower, it wraps */
  .tk-js .tk-post.tk-open > .tk-body > .tk-acts { margin: 4px -12px 0 -50px; gap: 0; flex-wrap: wrap; justify-content: space-between; }
  .tk-js .tk-post.tk-open .tk-quick { gap: 0; }
  .tk-js .tk-pinbar .tk-post.tk-open > .tk-body > .tk-acts { margin-right: -12px; }
  .tk-js .tk-post.tk-open > .tk-body > .tk-line { background: var(--raised); border-radius: 6px; box-shadow: 0 0 0 4px var(--raised); }
  /* the words answer a press themselves (a pressed look). A phone's browser moves a tap that is on nothing tappable
     to the nearest thing that is (touch adjustment): without this a press on a message's words under another
     message's pills landed on a pill (measured, docs\chat-look.md item 6). */
  .tk-js .tk-post > .tk-body > .tk-line:active { background: var(--raised); border-radius: 6px; }
}
/* talk-2 item 1: the box scrolls like a messenger window. The list is newest first in the DOM and drawn
   column-reverse, so the newest sits at the bottom and the box opens scrolled to it with no script; the pinned
   message is a line above the box (outside the scroller, so always in view); the composer under the box. */
.tk-pinbar { list-style: none; margin: 0; }
.tk-pinbar .tk-post { margin: 0; }
/* decision 8: a block's box on a phone is clamp(18rem, 55dvh, 30rem) (was 16 rem); from 1000 px 22 rem, Today 26 */
ul.tk-scroll { display: flex; flex-direction: column-reverse; overflow-y: auto; overscroll-behavior: contain;
  max-height: clamp(18rem, 55vh, 30rem); max-height: clamp(18rem, 55dvh, 30rem); margin: 0 -12px; padding: 0 12px 6px; }
ul.tk-scroll:focus-visible { outline: 2px solid var(--line-strong); outline-offset: -2px; }
.talk .tk-box { margin: 8px 0 0; }
@media (min-width: 1000px) { ul.tk-scroll { max-height: 22rem; } .tg-talk ul.tk-scroll { max-height: 26rem; } }
/* the page's old section title over a chat gave it 28 px of air where the chat follows other content in one column;
   the band is inside the block, so the block takes that margin itself (none where it heads a side column) */
.game-talk > .talk, .lot-talk > .talk { margin-top: 28px; }
.story-talk > .talk { margin-top: 4px; }                          /* the story's own grid gap is over it already */
.game-live .game-talk > .talk { margin-top: 0; }
@media (min-width: 1000px) { .lot-talk > .talk, .story-talk > .talk { margin-top: 0; } }
/* talk-rooms (session 188): a closed room's line in the composer's place; talk.js's "3 new" pill over the box's
   bottom edge while the reader is scrolled up (the page accent its border, a 44 px target), centred, half over it */
.tk-closed { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--line); }
.tk-empty + .tk-closed { border-top: 0; padding-top: 0; }
.tk-empty { margin: 12px 0 4px; }
.tk-new { display: block; position: relative; z-index: 1; min-height: 44px; margin: -22px auto 0; padding: 0 16px;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--text); background: var(--surface);
  border: 1px solid var(--heat); border-radius: 22px; cursor: pointer; box-shadow: var(--shadow); }
.tk-new[hidden] { display: none; }
.tk-new:focus-visible { outline: 2px solid var(--line-strong); outline-offset: 2px; }
/* talk-2 item 2: a quote reply's line above the text (the name bold, the text muted, one line, clipped), and the same
   line above the composer in reply mode with an × back out */
.tk-quote { margin: 1px 0 2px; display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12px; line-height: 18px; }
.tk-q { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted);
  padding-left: 8px; border-left: 2px solid var(--line-strong); }
.tk-q b { color: var(--text-2); font-weight: 600; }
a.tk-q { text-decoration: none; }
a.tk-q:hover .tk-q-text, a.tk-q:focus-visible .tk-q-text { color: var(--text-2); text-decoration: underline; }
/* chat-look (decision 11): a reply's line sits inside the composer's shell, on top; its cancel is a 44 px target */
.tk-reply-to { margin: 0; padding: 0 0 0 12px; min-height: 36px; justify-content: space-between; border-bottom: 1px solid var(--line); }
.tk-reply-to .tk-q { padding-left: 0; border-left: 0; }
.tk-q-x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -4px 0; padding: 0;
  color: var(--muted); }
.tk-q-x .icon { width: 16px; height: 16px; }
.tk-q-x:hover, .tk-q-x:focus-visible { color: var(--text); text-decoration: none; }
/* talk-2 item 3: the reaction pills under the text (the emoji and the count; the viewer's own with a thin border in
   the page accent, never a fill) and the "+" picker in the actions row (six emoji buttons in a row) */
/* chat-look (decision 7): a pill is 26 px tall (28 on touch), the count 13 px 600 in --text-2 on --raised, the emoji
   15 px; the reader's own takes the accent's border, its tint as the fill and --text */
.tk-pills { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 0; }
.tk-pills form { margin: 0; display: inline-flex; }
.tk-pill { display: inline-flex; align-items: center; height: 26px; padding: 0; margin: 0; font: inherit; font-size: 13px;
  font-weight: 600; line-height: 1; color: var(--text-2); background: none; border: 0; cursor: default; min-height: 0; }
.tk-pv { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px; background: var(--raised);
  border: 1px solid var(--line); border-radius: 13px; font-size: 15px; }
button.tk-pill { cursor: pointer; }
button.tk-pill:hover .tk-pv, button.tk-pill:focus-visible .tk-pv { border-color: var(--line-strong); color: var(--text); }
button.tk-pill:focus-visible .tk-pv { outline: 2px solid var(--line-strong); outline-offset: 1px; }
.tk-pill.mine .tk-pv { border-color: var(--heat); background: var(--heat-tint); color: var(--text); }
.tk-pill .tk-n { font-size: 13px; font-variant-numeric: tabular-nums; }
/* touch: the drawn pill is 28 px; its hit area is the 44 px box drawn over it (the layout matrix reads a control's
   absolute ::before as its target, my-team-2), so a row of pills costs 28 px of the list, not 44 */
@media (hover: none) {
  .tk-pill, .tk-pv { height: 28px; }
  .tk-pv { border-radius: 14px; padding: 0 9px; }
  button.tk-pill { position: relative; }
  button.tk-pill::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
}
/* chat-look (session 251, decision 14): the one emoji picker (portal/static/emoji.js): a field, the groups as tabs,
   a grid of 40 px buttons. With a mouse a popover by what opened it, 352 by 360 px (`ek-pop`, fixed, placed by the
   script inside the window); on a phone a panel in the block between the list and the composer (`ek-panel`), the
   list shortened while it is open so the composer stays in view. The emoji are the device's own. */
.ek { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r);
  box-shadow: var(--shadow); color: var(--text); }
.ek[hidden] { display: none; }
.ek-pop { position: fixed; z-index: 60; width: 352px; height: 360px; max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
.ek-panel { flex: none; height: 17rem; margin: 8px 0 0; box-shadow: none; }
.talk.ek-open:not(.talk-page) ul.tk-scroll { max-height: 9rem; }
.ek-top { flex: none; padding: 8px 8px 4px; }
.ek-search { display: block; width: 100%; min-height: 40px; padding: 0 10px; font-size: 16px; }
.ek-tabs { flex: none; display: flex; padding: 0 4px; border-bottom: 1px solid var(--line); }
.ek-tab { flex: 1 1 0; height: 40px; min-height: 0; padding: 0; font-size: 18px; line-height: 1; background: none; border: 0;
  border-bottom: 2px solid transparent; border-radius: 0; cursor: pointer; opacity: .55; }
.ek-tab:hover, .ek-tab:focus-visible { opacity: 1; }
.ek-tab[aria-selected=true] { opacity: 1; border-bottom-color: var(--heat); }
.ek-grid { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 8px 8px; scrollbar-width: thin; }
.ek-h { margin: 8px 0 2px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ek-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); }
.ek-e { width: 100%; height: 40px; min-height: 0; padding: 0; font-size: 24px; line-height: 1; background: none; border: 0; border-radius: 6px;
  cursor: pointer; }
.ek-e:hover, .ek-e:focus-visible { background: var(--raised); }
.ek-none { margin: 0; padding: 16px 12px; font-size: 14px; color: var(--muted); }
.ek-none[hidden] { display: none; }
@media (hover: none) { .ek-search, .ek-tab { min-height: 44px; height: 44px; } }
/* a story's reactions keep talk-2's six in their own small menu (_story.html), as they were */
.tk-react { display: inline-flex; align-items: center; }
.tk-react summary.tk-a { font-size: 14px; padding: 0 2px; }
.tk-react[open] { flex: 1 1 100%; flex-wrap: wrap; gap: 4px; }
.tk-react-menu { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 2px; }
.tk-react-menu button { font: inherit; font-size: 18px; line-height: 1; min-width: 36px; height: 32px; padding: 0 4px; background: var(--raised);
  border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.tk-react-menu button:hover, .tk-react-menu button:focus-visible { border-color: var(--line-strong); }
@media (hover: none) { .tk-react-menu button { min-width: 44px; min-height: 44px; } }
@media (min-width: 1000px) { .today-grid .tg-talk > .talk { margin-top: 0; } }
.plan-chip { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; flex-wrap: wrap; }
.plan-chip .chip.locked { border: 1px solid var(--line-strong); }
.plan-chip .chip.live { border-color: var(--live); }
ul.needs { list-style: none; margin: 0 0 16px; padding: 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
ul.needs li + li { border-top: 1px solid var(--line); }
/* the phone: the deadline under the verb, the time under the news line (nothing side by side can overlap at 360) */
ul.needs a { display: grid; grid-template-columns: 8px minmax(0, 1fr); align-items: center; column-gap: 10px; row-gap: 2px;
  min-height: 52px; padding: 10px 0; color: var(--text); }
ul.needs .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); grid-row: 1; }
/* hub-c item 1: the verb and the game on the first line (wrapping, never overlapping), the date and the deadline on
   the second; from 1000 px the deadline moves to the right of the first line, the date stays under the game */
ul.needs .nhead { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
ul.needs .nv { font-weight: 600; min-width: 0; }
ul.needs .nmu { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; min-width: 0; color: var(--text); }
ul.needs .nvs { color: var(--muted); font-size: 13px; }
ul.needs .nsub { grid-column: 2; display: flex; flex-wrap: wrap; gap: 0 12px; color: var(--text-2); font-size: 13px; min-width: 0; }
ul.needs .nby { color: var(--text-2); font-size: 13px; }
.calm { display: flex; align-items: center; gap: 10px; padding: 14px 16px; margin: 0 0 16px; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.calm .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
ul.news { list-style: none; margin: 0 0 16px; padding: 0 16px; font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
ul.news li { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; column-gap: 10px; padding: 9px 0;
  border-top: 1px solid var(--line); line-height: 1.35; }
ul.news li:first-child { border-top: 0; }
ul.news a { color: var(--text); min-width: 0; }
ul.news a:hover { color: var(--heat-text); }
ul.news .nk { width: 26px; height: 26px; border-radius: 7px; background: var(--raised); display: inline-flex; align-items: center;
  justify-content: center; font-size: 11px; font-weight: 700; color: var(--text-2); }
ul.news .meta { grid-column: 2; font-size: 12px; }
.since-sub { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.stand { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 12px 10px; margin: 0 0 16px; }
table.home-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.home-tbl th { font-size: 11px; font-weight: 600; color: var(--muted); text-align: left; padding: 6px 6px 2px; }
main table.home-tbl th { border: 0; }
main table.home-tbl td { padding: 0 6px; height: 36px; border: 0; border-top: 1px solid var(--line); line-height: 1.2;
  vertical-align: middle; }
main table.home-tbl td a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
table.home-tbl .n { text-align: right; width: 44px; }
table.home-tbl tr.mine td { background: var(--raised); font-weight: 700; }
table.home-tbl tr.mine td:first-child { box-shadow: inset 3px 0 0 var(--heat); }
main table.home-tbl tr.cut td { border-top: 2px dashed var(--text-2); }
/* today-links: the one end-link component (the line that leads to the full view of what a section shows): 13 px, the
   meta grey, left (the chat's own link is the icon in its band, chat-look) */
.home-more { margin: 8px 0 0; font-size: 13px; text-align: left; }
.home-more, .home-more a { color: var(--text-2); }
.stand .meta { margin: 8px 0 0; }
/* hub-c item 2: Standings' switch (Stats' view chips, three plain segments) over the whole table; the page scrolls,
   never the table */
.stand-switch { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 4px; }
.stand-view[hidden] { display: none; }
table.home-tbl th.n abbr { text-decoration: none; }
/* at 360 with large text the four columns must fit 300 px: the numbers never wrap and take only their width, a long
   name ("Timberwolves") may break as a last resort */
main .stand table.home-tbl .n { width: 1%; white-space: nowrap; padding: 0 4px; }
main .stand table.home-tbl td a { min-width: 0; }
main .stand table.home-tbl .tn { min-width: 0; }
/* session 168 (layout-reds): Where you stand on a 240 px screen (360 at 150%). Tightened first (the card's padding, the
   cells', the gap); the four columns still need more than the card has, so the table scrolls in its own box (the page
   never does) with # and the team sticky at the left, every column kept. */
@media (max-width: 260px) {
  .stand.stand-card { padding: 4px 8px 10px; }
  main .stand table.home-tbl { display: block; overflow-x: auto; scrollbar-width: thin; }
  main .stand table.home-tbl td, main .stand table.home-tbl th { padding-left: 3px; padding-right: 3px; }
  main .stand table.home-tbl td a { gap: 4px; }
  main .stand table.home-tbl th:first-child, main .stand table.home-tbl td:first-child { position: sticky; left: 0; z-index: 1; width: 26px; min-width: 26px; max-width: 26px;
    box-sizing: border-box; background: var(--surface); }
  main .stand table.home-tbl th:nth-child(2), main .stand table.home-tbl td:nth-child(2) { position: sticky; left: 26px; z-index: 1;
    background: var(--surface); }
  main .stand table.home-tbl tr.mine td:first-child, main .stand table.home-tbl tr.mine td:nth-child(2) { background: var(--raised); }
}
/* session 225, standings-status item 2 (was session 201's grey pill with no mark, Out unmarked, the phrase a sentence
   under the name): the statuses in the site's status shapes (Team accent part 2): secured a solid chip with the --ok
   dot, in reach a dashed chip with its count, in danger the dashed chip with the --warn count, Out a grey square;
   never the accent. The cell takes its natural width, the chips left-aligned and 4 px apart; the name cell gives way
   as it does for GB. The header's word shows when a row has a chip (status_head). */
main table.home-tbl td.st, table.home-tbl th.st { width: 1%; text-align: left; white-space: nowrap; padding-left: 8px; }
main table.home-tbl th.st:not(.st-on), main table.home-tbl td.st:empty { padding: 0; }  /* no status takes no width */
/* the header's sr word sits at the table's right end: kept inside the cell, so a table that scrolls in its own box
   (240 px, the layout-reds rule) does not push the page sideways */
table.home-tbl th.st { position: relative; }
main table.home-tbl td.st { line-height: 1; }
td.st > * + *, td.st-c > * + * { margin-left: 4px; }
.st-chip { display: inline-flex; align-items: center; gap: 5px; height: 18px; padding: 0 7px 0 6px; font-size: 11px;
           font-weight: 500; line-height: 16px; white-space: nowrap; color: var(--text); background: var(--raised);
           border: 1px solid var(--line-strong); border-radius: var(--r-pill); box-sizing: border-box;
           vertical-align: middle; }
.st-chip::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.st-chip.st-out { font-weight: 400; color: var(--muted); background: none; border-color: var(--line); }
.st-chip.st-out::before { border-radius: 1px; background: var(--muted); }
.st-next { display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 7px; font-size: 11px;
           font-weight: 400; line-height: 16px; white-space: nowrap; color: var(--text-2);
           border: 1px dashed var(--line-strong); border-radius: var(--r-pill); box-sizing: border-box;
           vertical-align: middle; }
.st-next b { font-weight: 700; color: var(--text); }
.st-next.st-down { border-color: var(--warn); }
.st-next.st-down b { color: var(--warn); }
table.home-tbl tr.mine .st-chip { background: var(--surface); }      /* the chips set their own weight: never bold */
/* an eliminated row dims: its name, rank and numbers in the muted text, its logo faded; nothing else changes */
table.home-tbl tr.st-gone td, main table.home-tbl tr.st-gone td a { color: var(--muted); }
table.home-tbl tr.st-gone .tlogo { opacity: .4; }
/* the card's tie line under a name (Today's race rows carry the in-reach chip instead, item 3) */
.st-why { display: block; font-size: 11px; font-weight: 400; line-height: 1.3; margin: 1px 0 2px; }
.stand .stand-race { margin: 6px 0 0; }
/* session 204 (stretch-run item 1): the three bands, each after the first its own row group opening with a caption
   row: a hairline rule above it and the caption in the muted 11 px text, never a background, never the accent; no
   taller than a team row. The first team row under a caption keeps no rule of its own (the band's rule is the one). */
main .stand table.home-tbl tr.band-cap th { font-size: 11px; font-weight: 400; line-height: 14px; color: var(--muted);
  text-align: left; padding: 8px 6px 4px; border-top: 1px solid var(--line-strong); background: none;
  position: static; width: auto; min-width: 0; max-width: none; white-space: nowrap; }
main .stand table.home-tbl tr.band-cap + tr td { border-top: 0; }
/* session 225 (standings-status item 3; was session 204's phrase under a race row's name): Today's East and West draw
   the in-reach chip twice, in the status cell and under the name, and show one: from 600 px the cell's (every row one
   height), below 600 px the one under the name, the cell then holding the secured chips alone, stacked and
   right-aligned. Both copies are hidden from the screen reader (clinch_sr speaks). */
.st-next-under { display: none; }
/* session 204 (item 3): Today's season line under Your next game; its link never splits */
.season-line { margin: 0 0 16px; line-height: 1.45; }
.season-line a { white-space: nowrap; color: var(--text-2); }
@media (max-width: 599px) {
  main table.home-tbl td.st { text-align: right; }
  main table.home-tbl td.st > * + * { margin: 2px 0 0; }
  main table.home-tbl td.st .st-chip { display: flex; width: max-content; margin-left: auto; }
  main table.home-tbl td.st .st-next { display: none; }
  main table.home-tbl td.st:not(:has(.st-chip)) { padding: 0; }
  /* under the name it may break between words as a last resort (360 at 150%: the longest, "2 wins from Home court",
     would push the table past the card), as a long team name does */
  main table.home-tbl td .st-next-under { display: block; width: fit-content; max-width: 100%; height: auto;
    min-height: 18px; white-space: normal; margin: 1px 0 3px; border-radius: var(--r-sm); }
  main table.home-tbl th.st.st-on { text-align: right; }
}
@media (min-width: 1000px) {
  .today-head h1 { font-size: 26px; }
  .gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 10px; overflow: visible;
    scroll-snap-type: none; padding: 2px; margin: 0 -2px; }
  .gcard { flex: none; max-width: none; }
  .today-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  ul.needs a { grid-template-columns: 8px minmax(0, 1fr) auto; }
  ul.needs .nsub { display: contents; }
  ul.needs .nwhen { grid-column: 2; grid-row: 2; }
  ul.needs .nby { grid-column: 3; grid-row: 1; white-space: nowrap; }
  ul.news li { grid-template-columns: 26px minmax(0, 1fr) auto; }
  ul.news .meta { grid-column: 3; white-space: nowrap; }
}

/* ---------------------------------------------------------------- run 2 Part 10: the plan page on the phone opens as
   a review (static/review.js; below 1000 px only: nothing here is drawn on desktop). A section shows its summary and
   Edit; .editing shows its editor and Done. Priorities' summary is one line per player (polish Part 3). */
.sec-sum, .sum-done { display: none; }
@media (max-width: 999px) {
  body.review .sec-sum { display: block; margin: 4px 0 0; }
  body.review .sec-sum .sum-text p { margin: 0 0 4px; font-size: 14px; line-height: 1.4; }
  body.review .sec-sum .sum-text b { font-weight: 600; color: var(--text-2); margin-right: 4px; }
  body.review .sec-sum .sum-edit { margin-top: 6px; }
  body.review .plan-sec:not(.editing) > :not(h2):not(.sec-sum) { display: none; }
  /* polish Part 3: Priorities' summary, one line per player (the rows on Edit) */
  body.review .sec-sum .sum-prio { display: grid; grid-template-columns: minmax(8em, 1fr) minmax(0, max-content); gap: 2px 8px;   /* names-fit: his four plays keep their room (cut with an ellipsis only on the smallest phones), the name has the rest, 8.5em at least ("Antetokounmpo" whole), so names.js measures it */
                                   font-size: 13px; line-height: 1.35; margin: 0 0 4px; }
  body.review .sec-sum .sum-prio b { margin: 0; color: var(--text); }
  body.review .sum-prio .sp-plays { color: var(--text-2); font-size: 12px; white-space: nowrap; overflow: hidden;
                                    text-overflow: ellipsis; }
  @media (max-width: 420px) { body.review .sum-prio .sp-plays { font-size: 11px; } }   /* names-fit: the plays 20 px narrower, the name 8em */
  body.review .plan-sec:not(.editing) h2 .howto-t { display: none; }
  body.review .plan-sec.editing > .sec-sum { display: none; }
  body.review .plan-sec.editing > .sum-done { display: inline-flex; margin: 12px 0 0; }
}

/* ---------------------------------------------------------------- polish Part 3: a touch screen at any width (a tablet
   held flat gets the desktop's layout and its dense controls): the phone's 44 px tap targets. A mouse (hover: hover)
   keeps the desktop's sizes. Under 1000 px every width already has the phone's 44 px targets, so this starts at 1000.
   Each selector matches the desktop rule it overrides, prefixed with :root to win. */
@media (hover: none) and (min-width: 1000px) {
  :root .btn.small, :root table.sp-table td.act .btn.small, :root table.sp-table .blk-t, :root .blk-t,
  :root .howto-t.desk-only, :root .howto-t.tl-howto, :root .howto-t.pl-howto,
  :root .arch-btn, :root .arch-upd, :root .def-tools .btn.small, :root .prio-tools .btn, :root .def-more-b,
  :root .arch-row .btn.small, :root .arch-new .btn.small, :root .arch-update .btn.small, :root .textlinks a,
  :root .rail-top #saved .first-prob:not([hidden]) { min-height: 44px; }
  /* the timeline grid's handle: 44 px tall, its row grows with it (the cells are easier to paint with a finger too) */
  :root table.tg .tg-drag { width: 24px; height: 44px; margin: 0 1px 0 -6px; }
  /* a submission's Copy stays on its line: the target is 44 px tall, the line's height unchanged */
  :root .btn.copy-sha { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; padding: 0 6px;
                        vertical-align: middle; }
}

/* ---------------------------------------------------------------- polish Part 6: one page-title size per width, the size
   most pages use: 24 px, and 20 px on a phone (to 600 px). The game page's h1 is its score header (Part 5), drawn as
   it was. */
main h1:not(.sh-teams):not(.sr) { font-size: 24px; }
@media (max-width: 600px) { main h1:not(.sh-teams):not(.sr) { font-size: 20px; } }

/* ---------------------------------------------------------------- polish Part 8: Stats > Teams' views and sorting. The
   view switch is two links drawn as Stats > Players' chips; a sortable header shows a faint two-way mark at rest. */
a.fchip { text-decoration: none; }
a.fchip[aria-current=true] span { background: var(--heat-soft); border-color: var(--heat-soft); color: var(--text); font-weight: 600; }
.tt-views { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0 0 4px; }   /* wraps on a 240 px screen */
.tt-views .tt-standings { display: inline-flex; align-items: center; min-height: 44px; margin-left: 8px; font-size: 14px; }
.sort-mark.rest { opacity: .45; margin-left: 2px; }
table.st-table th.st-sort a { cursor: pointer; }
@media (hover: none) and (min-width: 1000px) { :root .fchip span, :root .tt-views .tt-standings { min-height: 44px; } }
/* polish Part 8: the team page's phone table: each cell names its number (Scored, Allowed, Committed, Forced, Diff) */
table.perf-tbl td .lab { display: block; font-size: 11px; line-height: 1.2; }
/* polish Then: a visually hidden header label (.sr, absolute) must stay inside its table's scroll box, or it widens the
   page on a 240 px screen: its cell is its box (Stats > Teams' group row, Part 5; the team page's phone table, Part 8) */
table.tt-table tr.grp-h th, table.perf-tbl thead th { position: relative; }

/* run 3 Part 4: compare (templates/compare.html). One label column and a column per player, fixed widths so every
   part's table lines up; the best value in a row marked (bold, the accent's underline) */
.cmp-wrap { position: relative; margin: 0 0 4px; }   /* layout-reds-2: the sticky first column no longer widens the page (a wide column floor) */   /* layout-reds-2: the sticky first column no longer widens the page (a wide column floor) */
table.cmp-t { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14px; }
table.cmp-t col.cmp-l { width: 34%; }
main table.cmp-t th, main table.cmp-t td { padding: 5px 6px; border: 0; border-top: 1px solid var(--line); text-align: left;
                                           font-weight: 400; background: none; vertical-align: middle; }
main table.cmp-t tr:first-child > * { border-top: 0; }
table.cmp-t td.n { text-align: right; white-space: nowrap; }
table.cmp-t td.best { font-weight: 700; color: var(--text); box-shadow: inset 0 -2px 0 var(--heat); }
main table.cmp-who th.cmp-p { vertical-align: top; text-align: left; }
/* no-word-break decision 6: the stat labels stay in view while the tables scroll sideways inside their .scroll box */
main table.cmp-t tbody th[scope="row"], main table.cmp-who thead td:first-child { position: sticky; left: 0; z-index: 1; background: var(--bg); }
table.cmp-who .cmp-nm { display: block; margin-top: 4px; font-weight: 600; }
table.cmp-who .meta { display: block; }                   /* the site's meta size (run 3 Then: 12 px made a one-page bold) */
.cmp-sec > summary { font-weight: 600; }
/* session 89: compare's groups (the game's), each one folds */
.cmp-g { margin: 0 0 4px; }
.cmp-g > summary { display: flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; font-size: 12px;
                   color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }
/* session 245 (ratings-rest item 0): OVR's small tile on its own line under the name; a rating is the kit's cell on its
   band, the best in a row still the weight and the underline (so the others are not bold) */
table.cmp-who .cmp-ovr { display: block; margin-top: 4px; }
#cmp-rating table.cmp-t td.n { text-align: center; }   /* centred as a list's rating, clear of a long label */
table.cmp-t td .rt-cell { font-weight: 400; }
table.cmp-t td.best .rt-cell { font-weight: 700; }
.cmp-rt > .rt-note { margin: 0 0 4px; }
@media (min-width: 1000px) {
  table.cmp-t col.cmp-l { width: 28%; }
  .cmp-wrap, .cmp-sec, #cmp-asof { max-width: 1100px; }
}
/* run 3 Part 4: the pick in Stats > Players' name cell, and Compare players beside the count */
.sp-countbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.sp-countbar .sp-count { margin: 0; }
.cmp-form { margin: 0; }
td.nm .cmp-pick { display: inline-flex; align-items: center; justify-content: center; width: 28px; min-height: 32px;
                  margin: -4px 4px -4px -4px; vertical-align: middle; cursor: pointer; float: left; }
td.nm .cmp-pick input { width: 18px; height: 18px; margin: 0; cursor: pointer; }
@media (max-width: 999px) { td.nm .cmp-pick { min-height: 44px; } }
@media (max-width: 999px) {
  table.cmp-who .nm-full { display: none; }                  /* the phone's compare heads: "D. Sabonis", as Stats */
  table.cmp-who .nm-short { display: inline; }
}
@media (max-width: 999px) {
  table.cmp-t col.cmp-l { width: 24%; }                       /* four players' columns wide enough for "D. Sabonis" */
  /* session 245 (ratings-rest item 0): never 0. Where the players' columns pass the screen (four at 390) a fixed table
     gave the 24% label column nothing, so the sticky labels had no width and spilled over the first player's cells.
     112: "Miscellaneous", the longest word a label carries, in one line; a fixed table spreads any room left over all
     columns */
  table.cmp-t col.cmp-l { width: 112px; }
  /* no-word-break decision 6: each player's column takes at least the width of the longest word in a head
     (compare.html sets --cmp-w); where the columns pass the screen the table scrolls in its .scroll box (fixed layout:
     the table is as wide as its columns when they pass 100%) */
  table.cmp-t col:not(.cmp-l) { width: var(--cmp-w, 64px); }
  colgroup.cmp-w64 { --cmp-w: 64px; } colgroup.cmp-w72 { --cmp-w: 72px; } colgroup.cmp-w80 { --cmp-w: 80px; }
  colgroup.cmp-w88 { --cmp-w: 88px; } colgroup.cmp-w96 { --cmp-w: 96px; } colgroup.cmp-w104 { --cmp-w: 104px; }
  colgroup.cmp-w112 { --cmp-w: 112px; } colgroup.cmp-w120 { --cmp-w: 120px; } colgroup.cmp-w128 { --cmp-w: 128px; }
  colgroup.cmp-w136 { --cmp-w: 136px; } colgroup.cmp-w144 { --cmp-w: 144px; } colgroup.cmp-w152 { --cmp-w: 152px; }
  colgroup.cmp-w160 { --cmp-w: 160px; }
  table.cmp-who .cmp-nm { font-size: 13px; }
  main table.cmp-t th, main table.cmp-t td { padding: 5px 4px; }
}
/* session 86: below 1000 px the top bar and the tab bar are fixed over the page; anything scrolled into view (focus, an
   anchor, the browser's own scrolling) lands clear of both. Found by the claim sheet test once the Stats > Players count
   row grew by 24 px (run 3 Part 4): its Claim link landed under the tab bar. */
@media (max-width: 999px) {
  html { scroll-padding-top: calc(var(--top-h) + 8px); scroll-padding-bottom: calc(var(--tab-h) + 8px); }
}
/* run 3 Part 5: the opponent's four tendencies under his season line in Defense's head, two to a line */
.dh-tend { display: grid; grid-template-columns: auto auto; gap: 0 6px; justify-content: start; margin-top: 2px;
           font-size: 11px; font-weight: 400; color: var(--text-2); white-space: nowrap; }
.dh-t { cursor: help; }
/* the pick takes 32 px of the name cell (its 210 px cap): the name gives them up, so a long one ends in an ellipsis in
   its own cell instead of running into Team (seen on the live read: Shai Gilgeous-Alexander, Giannis Antetokounmpo) */
table.st-table td.nm .cmp-pick + .nm-in .rt.one { max-width: 168px; }
/* session 100: from 1000 px the name box takes 200 px (was 168): the longest full names fit on one line (Olivier-Maxence
   Prosperini, Yanic Konan Niederhäuser); the short form stays for the phones */
/* phones: the cell holds the pick and the name box (130 px, 124 under 340): the old 140 px cell cap made it spill */
table.st-table td.nm { white-space: nowrap; }     /* the pick and the name box side by side: the cell holds both */
@media (max-width: 999px) { main table.st-table .nm { max-width: none; }
                            table.st-table td.nm .cmp-pick + .nm-in .rt.one { max-width: 130px; }
                            main table.st-table td.nm:has(.cmp-pick) { min-width: 178px; } }   /* pick 32 + 130 + padding */
@media (max-width: 340px) { table.st-table td.nm .cmp-pick + .nm-in .rt.one { max-width: 124px; }
                            main table.st-table td.nm:has(.cmp-pick) { min-width: 172px; } }
@media (min-width: 1000px) { main table.st-table .nm { max-width: 240px; }
                             table.st-table td.nm .cmp-pick + .nm-in .rt.one { max-width: 200px; } }
/* overnight 16 Oct, item 1: the players table's face (28 px and a 6 px gap) before the name. The name box keeps its
   caps (200, 130, 124), so the cell grows by the face's 34 px and no name wraps or shortens that did not before; the
   meta line under the name starts where the name does */
table.sp-table td.nm .nm-in > .hs { margin-right: 6px; }
/* session 125 (team-roster-row): a margin, not padding, so the meta box itself starts where the name box does (the text sat
   there already; the layout matrix measures the box edge) */
table.sp-table:not(.pd-wide) td.nm .meta { margin-left: 34px; }
table.sp-table:not(.pd-wide) td.nm:has(.cmp-pick) .meta { margin-left: 62px; }   /* the pick's 28 and the face's 34 */
@media (max-width: 999px) { main table.sp-table:not(.pd-wide) td.nm:has(.cmp-pick) { min-width: 212px; } }
@media (max-width: 340px) { main table.sp-table:not(.pd-wide) td.nm:has(.cmp-pick) { min-width: 206px; } }
@media (min-width: 1000px) { main table.sp-table:not(.pd-wide) .nm { max-width: 274px; } }
/* list-faces (session 246): Ratings, Tendencies and Badges (pd_table) lead each row with the same face. The name box keeps
   its caps; the column (--pd-nm, set on table.pd-wide) is the cell it had plus the face and its 6 px gap: 240 + 34 from
   1000 px, 178 + 34 to 600 (the pick's min-width above drew 178), 178 + 26 under 600 where the face is 20 px (these
   tables pin the name and OVR on a phone: a face's pixel is a rating's), 172 + 26 under 340. After the pick's rules so
   it wins over them; the meta line under the name starts where the name does */
main table.sp-table.pd-wide td.nm, main table.sp-table.pd-wide th.nm { width: var(--pd-nm); min-width: var(--pd-nm);
                                                                       max-width: var(--pd-nm); box-sizing: border-box; }
table.sp-table.pd-wide td.nm .meta { margin-left: 34px; }
table.sp-table.pd-wide td.nm:has(.cmp-pick) .meta { margin-left: 62px; }
@media (max-width: 999px) { table.pd-wide { --pd-nm: 212px; } }
@media (max-width: 599px) { table.pd-wide { --pd-nm: 204px; }
                            table.sp-table.pd-wide td.nm .nm-in > .hs { width: 20px; height: 20px; }
                            table.sp-table.pd-wide td.nm .meta { margin-left: 26px; }
                            table.sp-table.pd-wide td.nm:has(.cmp-pick) .meta { margin-left: 54px; } }
@media (max-width: 340px) { table.pd-wide { --pd-nm: 198px; } }
/* ratings-lists (session 245): the lists in the kit. Every view: Player, Team, Pos, OVR (the small tile, centred), the
   pin, the fields; OVR sticks at the name's width, so Team and Pos scroll away under it. The row's place (.rn) on the
   Overview and All from 600 px, muted. A rating or a group's number outside the Overview is the band a class on the
   cell (the page's weight at 50 rows) and the cell draws the rating cell's tint behind its number: the same 2.4em by
   1.4em + 4px, 6 px corners, the band's soft colour, the number --text; a dash no tint. The tint sits over the cell's
   own background (isolation), so a sorted column keeps its background behind it. */
main table.pd-wide td.ovr-c { text-align: center; }
/* the tile's word for a reader (.sr, absolute) stays in its cell, so inside the table's scroll box: the Stats view's OVR
   is not sticky, and without this the word of a row scrolled far right widened the page (360 at 150% text) */
main table.st-table:not(.pd-wide) td.ovr-c { position: relative; }
main table.pd-wide th.rn, main table.pd-wide td.rn { width: 32px; min-width: 32px; max-width: 32px; box-sizing: border-box;
                                                       padding-right: 4px; text-align: right; color: var(--muted);
                                                       position: sticky; left: 0; z-index: 1; background: var(--bg); }
main table.pd-wide thead th.rn { background: var(--surface); z-index: 2; }
main table.pd-wide td.rn { font-size: 12px; }
/* the row's place is pinned with the name (--pd-rn: its width, 0 where it is not drawn), so the name never moves */
table.pd-wide { --pd-rn: 0px; }
table.pd-wide:has(.rn) { --pd-rn: 32px; }
main table.pd-wide th.nm, main table.pd-wide td.nm { left: var(--pd-rn); }
main table.pd-wide .ovr-c { left: calc(var(--pd-rn) + var(--pd-nm)); }
main table.pd-wide .pin-c { left: calc(var(--pd-rn) + var(--pd-nm) + var(--pd-ovr)); }
.scroll.more-left table.pd-wide tr > .rn, .scroll.more-left table.pd-wide tr > .rn + .nm { box-shadow: none; }
.scroll.more-left table.pd-wide tr > .rn + .nm { box-shadow: 6px 0 6px -4px rgba(0, 0, 0, .35); }
table.pd-wide td.rt-c, table.pd-wide td.rt-b1, table.pd-wide td.rt-b2, table.pd-wide td.rt-b3, table.pd-wide td.rt-b4,
table.pd-wide td.rt-b5 { position: relative; isolation: isolate; text-align: center; color: var(--text); font-weight: 700;
                         font-variant-numeric: tabular-nums; }
table.pd-wide td.rt-b1::before, table.pd-wide td.rt-b2::before, table.pd-wide td.rt-b3::before,
table.pd-wide td.rt-b4::before, table.pd-wide td.rt-b5::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 2.4em; height: calc(1.4em + 4px);
  transform: translate(-50%, -50%); border-radius: 6px; background: var(--rt-soft); }
main table.pd-wide td.pin-c { position: sticky; }   /* a pinned rating keeps its sticky (relative would shift it) */
main table.pd-wide .gk { border-right: 2px solid var(--line-strong); }   /* a group's view: its number, then its ratings */
table.pd-wide th.rt-h { text-align: center; }
table.pd-wide th.rt-h a { text-align: center; margin: 0 auto; }
/* the Overview: OVR and the six group numbers (Ratings) or a count a tier and Total (Badges), equal columns
   (--gn-w); the actions take the slack, a chip over a button. Measured with the face, the pick, Team's logo and a
   chip and a button (the record, item 2): 96 px from 1280, 80 from 1140, 52 from 760; a group's head is its name
   from 1140 px (two lines where it needs them), its short under it (the name the title and what a screen reader
   hears); under 760 the row stacks (below). A tier's head is its chip. */
.g-s { display: none; }
table.pd-ov { --gn-w: 52px; }
@media (min-width: 1140px) { table.pd-ov { --gn-w: 80px; } }
@media (min-width: 1280px) { table.pd-ov { --gn-w: 96px; } }
main table.pd-ov th.gn-h, main table.pd-ov td.gn, main table.pd-ov th.tc-h, main table.pd-ov td.tc {
  width: var(--gn-w); min-width: var(--gn-w); max-width: var(--gn-w); box-sizing: border-box; text-align: center; }
main table.pd-ov th.gn-h a, main table.pd-ov th.tc-h a { justify-content: center; white-space: normal; line-height: 1.2;
                                                         text-align: center; }
main table.pd-ov td.gn .rt-cell { min-width: 40px; box-sizing: border-box; }
main table.pd-ov th.tc-h .tier { padding: 0 5px; }
main table.pd-ov th.act { width: 100%; }
main table.pd-ov td.act > * { display: flex; width: max-content; margin-left: auto; }
main table.pd-ov td.act > * + * { margin-top: 4px; }
@media (max-width: 1139px) {
  table.pd-ov .g-w { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.pd-ov .g-s { display: inline; }
}
/* a tier's chip: its word from 1280 px, its initials under it ("HoF"; the word what a screen reader hears) */
@media (max-width: 1279px) {
  table.pd-ov.pd-badges .g-w { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
                               white-space: nowrap; }
  table.pd-ov.pd-badges .g-s { display: inline; }
}
@media (max-width: 999px) {
  table.pd-wide .ht-c { display: none; }
}
@media (max-width: 759px) {
  main table.pd-wide.pd-ov .rn { display: none; }
}
@media (max-width: 599px) {
  main table.pd-wide .rn { display: none; }
  table.pd-wide:has(.rn) { --pd-rn: 0px; }
}
/* under 760 px an Overview row stacks (the brief said 600: the one line needs 709 px of box with the face, the pick
   and the actions): the name line (the pick, the face, the name, the line under it) with the row's
   actions at its right end, then OVR and the six (or the counts) in seven equal columns the table's width, under a
   head of the seven sort links that sticks under the top bar (the box lets go of its sideways scroll: nothing is
   wider than it). One <table>; its parts carry their ARIA roles (the template), so a screen reader still hears a
   table once display changes them. */
@media (max-width: 759px) {
  .scroll.pd-ov-wrap { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  main table.pd-wide.pd-ov, main table.pd-wide.pd-ov > thead, main table.pd-wide.pd-ov > tbody { display: block; width: 100%; }
  main table.pd-wide.pd-ov tr { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: 4px;
                                align-items: center; position: relative; border-bottom: 1px solid var(--line); }
  main table.pd-wide.pd-ov tbody tr:last-child { border-bottom: 0; }
  main table.pd-wide.pd-ov th, main table.pd-wide.pd-ov td { border-bottom: 0; }
  main table.pd-wide.pd-ov .tm-c, main table.pd-wide.pd-ov .pos-c, main table.pd-wide.pd-ov .ht-c { display: none; }
  main table.pd-wide.pd-ov th.nm, main table.pd-wide.pd-ov th.act {
    position: absolute; width: 1px; min-width: 0; max-width: none; height: 1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; }
  main table.pd-wide.pd-ov td.nm { grid-row: 1; grid-column: 1 / -1; position: static; width: auto; min-width: 0;
                                   max-width: none; padding: 8px 0 2px; }
  /* the actions at the name line's right end, in its own columns (the name's cell ends where they start, so names.js
     gives a name that does not fit beside them its short form): two of the seven, three for a chip at 340 px and
     under, three for any action under 281 (390 at 150% text) */
  main table.pd-wide.pd-ov tr:has(> td.act.has) > td.nm { grid-column: 1 / span 5; }
  main table.pd-wide.pd-ov td.act { grid-row: 1; grid-column: 6 / -1; justify-self: end; display: flex;
                                    flex-direction: column; align-items: flex-end; gap: 4px; padding: 8px 0 2px;
                                    min-width: 0; width: max-content; z-index: 2; }   /* over the name's z-index 1 */
  main table.pd-wide.pd-ov td.act > * + * { margin-top: 0; }
  main table.pd-wide.pd-ov td.act:not(.has) { display: none; }
  main table.pd-wide.pd-ov td.ovr-c, main table.pd-wide.pd-ov td.gn, main table.pd-wide.pd-ov td.tc {
    grid-row: 2; position: static; width: auto; min-width: 0; max-width: none; padding: 2px 0 8px; text-align: center; }
  main table.pd-wide.pd-ov th.ovr-c, main table.pd-wide.pd-ov th.gn-h, main table.pd-wide.pd-ov th.tc-h {
    position: static; width: auto; min-width: 0; max-width: none; padding: 0; text-align: center; }
  main table.pd-wide.pd-ov > thead { position: sticky; top: var(--top-h); z-index: 5; background: var(--surface); }
  main table.pd-wide.pd-ov th a { display: flex; align-items: center; justify-content: center; width: 100%;
                                  min-height: 44px; }
  main table.pd-wide.pd-ov td.gn .rt-cell { min-width: 0; width: 100%; max-width: 44px; padding: 2px 0; }
  main table.pd-wide.pd-ov td.ovr-c .ovr-tile { min-width: 0; width: 100%; max-width: 44px; }
  main table.pd-wide.pd-ov th.tc-h .tier { padding: 0 4px; font-size: 11px; }
}
/* the narrowest (320, and 390 at 150% text: 260 CSS px): 2 px between the seven, the heads 11 px with the sort's mark
   under the word, so "OVR" and its mark stay in their column */
@media (max-width: 340px) {
  main table.pd-wide.pd-ov tr:has(> td.act .chip) > td.nm { grid-column: 1 / span 4; }
  main table.pd-wide.pd-ov tr:has(> td.act .chip) > td.act { grid-column: 5 / -1; }
  main table.pd-wide.pd-ov tr { column-gap: 2px; }
  main table.pd-wide.pd-ov th a { flex-direction: column; gap: 0; font-size: 11px; letter-spacing: 0; }
  main table.pd-wide.pd-ov th.tc-h .tier { padding: 0 2px; }
}
/* 390 at 150% text (260 CSS px): a name and its actions do not share 226 px; the actions take their own line under
   the name, at its right end, and the numbers the third */
@media (max-width: 280px) {
  main table.pd-wide.pd-ov tr:has(> td.act.has) > td.nm { grid-column: 1 / -1; }
  main table.pd-wide.pd-ov tr:has(> td.act.has) > td.act { grid-row: 2; grid-column: 1 / -1; padding-top: 0; }
  main table.pd-wide.pd-ov tr:has(> td.act.has) > td.ovr-c, main table.pd-wide.pd-ov tr:has(> td.act.has) > td.gn,
  main table.pd-wide.pd-ov tr:has(> td.act.has) > td.tc { grid-row: 3; }
}
table.rs-tbl tr.rs-nmrow { display: none; }      /* session 100: shown under 300 px (below) */
/* run 3 Then: the 240 px rule above (run 2, Then 3) sat before the base `table.rs-tbl .n` rule, so it never applied;
   four columns of 42 px fitted anyway, the fifth (OVR) does not. The same rule again, after the base one. */
@media (max-width: 299.98px) {
  table.rs-tbl .n { width: 32px; padding-left: 0; padding-right: 2px; font-size: 12px; }
  table.rs-tbl th { font-size: 10px; padding: 2px 2px; }
  /* session 100: the name on its own line above his numbers (the name column had 19 px left) */
  table.rs-tbl .nm { display: none; }
  table.rs-tbl tr.rs-nmrow { display: table-row; }
  table.rs-tbl tr.rs-nmrow td { height: auto; padding: 6px 6px 0; border-top: 1px solid var(--line); font-weight: 600; }
  table.rs-tbl tr.rs-nmrow + tr td { border-top: 0; }
}
/* names-fit (session 166): the name column of a research list beside six numbers has under 140 px below a container of
   about 430 px (the phone's sheet, the docked 360 px column, the 400 px panel): the short "G. Antetokounmpo" spilled
   into OVR and wrapped at every space. There the full name takes its own line above his numbers, as under 300 px. */
.rs-lists { container-type: inline-size; }
@container (max-width: 429.98px) {
  table.rs-tbl .nm { display: none; }
  table.rs-tbl tr.rs-nmrow { display: table-row; }
  table.rs-tbl tr.rs-nmrow td { height: auto; padding: 6px 6px 0; border-top: 1px solid var(--line); font-weight: 600; }
  table.rs-tbl tr.rs-nmrow + tr td { border-top: 0; }
}

/* Photo credits (classics brief, session 116): one line per Commons face; a long file name wraps on a phone */
.credit-rows .cr-main { min-width: 0; }
.credit-rows .cr-name, .credit-rows .cr-by { margin: 0; }
.credit-rows .cr-by { min-width: 0; }

/* session 123 (commish-1): League settings panel, the Rules page, the GM activity line. No new colour tokens. */
#settings-form .fld input[type=number], #settings-form .fld input[type=url], #settings-form .fld input[type=datetime-local],
#settings-form .fld input[type=text], #settings-form .fld textarea { width: 100%; min-height: 44px; box-sizing: border-box; }
#settings-form .fld textarea { resize: vertical; }
#settings-form > .fld { margin-top: 14px; }
.gm-activity { display: block; }
.chip.quiet-chip { height: 22px; padding: 0 8px; font-size: 12px; color: var(--muted); background: transparent; }
.rules-col { max-width: 760px; }
.rules-card { margin-bottom: 14px; }
.rules-card p { margin: 6px 0; }
.rules-changes li { padding: 8px 0; border-top: 1px solid var(--line, var(--border)); }
.rules-changes li:first-child { border-top: 0; }
.rules-changes .rt, .rules-changes .meta { display: block; }

/* session 126 (commish-split): the Teams top-level tab and its under-340 rule are gone; the commish has one tab with
   four views under the Stats switch's component (.subtabs) */
.commish-switch { margin-top: -4px; }

/* session 126 (team-less-commish item 2): Teams, the commish's row per team. Phone: two lines (the team and its GM; the
   rest wraps under them, nothing clipped). From 1000 px one line in columns. No new colour tokens. */
.tm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 16px; min-height: 56px; }
.tm-team { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--text); text-decoration: none; }
.tm-name { min-width: 0; }
.tm-gm { min-width: 0; color: var(--text-2); }
.tm-br { flex-basis: 100%; height: 0; }
.tm-row .tm-rec, .tm-row .tm-next, .tm-row .tm-plan, .tm-row .tm-wait, .tm-row .tm-last { font-size: 14px; }
.tm-next a { color: var(--text); }
.tm-next .meta { white-space: nowrap; }
.tm-plan:empty { display: none; }
@media (min-width: 1000px) {
  /* autopilot (session 126): an eighth cell, the form; the gap and three fixed columns trimmed so the row fits at 1280
     (the matrix's default views found it cut sideways with the old widths plus the button) */
  .tm-row { display: grid; grid-template-columns: minmax(10.5rem, 1fr) minmax(12rem, 1.6fr) 3.5rem minmax(13rem, 1.4fr)
            7.5rem 8rem 7.5rem 4.5rem; column-gap: 12px; font-size: 14px; }
  .tm-br { display: none; }
  .tm-plan:empty { display: block; }
  /* one line: a cell too narrow for a long name ends in an ellipsis (the full name in its title) */
  .tm-row > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tm-gm-name { overflow: hidden; text-overflow: ellipsis; }
  .tm-row > .tm-plan { overflow: visible; }
  /* commish-split item 2: More sits in the eighth cell; open, the GM's facts and actions take the whole row */
  .tm-row > .tm-open { overflow: visible; white-space: normal; grid-column: -2 / -1; }
  .tm-row > .tm-open[open] { grid-column: 1 / -1; }
  .tm-gmonly > .tm-last { grid-column: 4 / 8; }
}
/* commish-split item 2 (the Teams view): the conference chips, the badge, the open row. No new colour tokens. */
.tm-confs { margin: 4px 0 12px; }
.tm-conf { font-size: 12px; }
.tm-open { margin-left: auto; }
.tm-open[open] { flex-basis: 100%; margin-left: 0; }
.tm-open > summary { list-style: none; }
.tm-open > summary::-webkit-details-marker { display: none; }
.tm-more { padding: 8px 0 2px; }
.tm-more p { margin: 0 0 4px; }
.tm-more details.inline-form { margin: 0; }
.tm-inactive > summary { cursor: pointer; }

/* people-roles (session 186, docs/people-roles-brief.md item 2): People, one row per person. The Teams row's classes
   (tm-row) with its own four columns from 1000 px (the person, the chips, the last visit, More); the open row's three
   groups (Team, Role, Access), a label and the actions on one wrapping line each. No new colour tokens. */
.pp-filter { margin: 4px 0 12px; }
.pp-chips { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pp-team { text-decoration: none; }
.pp-role { margin: 0 0 4px; }
.pp-acts { display: grid; gap: 6px; margin: 8px 0 0; }
.pp-group { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.pp-group > b { flex: 0 0 4.5rem; font-size: 13px; font-weight: 600; color: var(--text-2); }
.pp-group details.inline-form[open] { flex-basis: 100%; }
@media (min-width: 1000px) {
  .tm-row.pp-row { grid-template-columns: minmax(12rem, 1.6fr) minmax(8rem, 1fr) minmax(9rem, 1fr) 4.5rem; }
  .tm-row.pp-row > .pp-chips { overflow: visible; }
}

/* session 126 (autopilot, docs/autopilot-brief.md): the switch's forms. My team's block under What needs you; the
   GMs panel's and the Teams row's inline form (a date, a reason, one button). No new colour tokens: the on-line is
   the warn notice family, like a reopened plan. */
.autopilot { margin: 0 0 20px; }
.ap-form { margin: 8px 0 0; }
.ap-form .fld { margin: 0; }
.ap-form .fld span { font-size: 13px; }
/* session 166 (my-team item 5): My team's form on one row, the date field and Turn on the same 44 px, bottoms level */
#ap-set-form { flex-wrap: nowrap; align-items: flex-end; }
#ap-set-form .fld input[type=date] { box-sizing: border-box; height: 44px; min-height: 44px; }
#ap-set-form .btn { height: 44px; min-height: 44px; flex: none; }
.ap-help { margin: 0; }
.ap-commish .gmform input[type="text"] { min-width: 12rem; flex: 1 1 12rem; }

/* session 126 (run-sheet-integrity): the run sheet and the integrity report. A row is two lines on a phone (the
   matchup and its time; the rest wraps under), one line from 1000 px. Status colours only from the status tokens. */
.rs-days { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rs-card { margin-bottom: 16px; padding: 12px 16px; }
/* turn-heads (session 252, item 2): a card's head is the band, edge to edge in the card (was its section title) */
.card.rs-card > .card-head:first-child { margin: -12px -16px 12px; }
.rs-row, .ir-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 16px; min-height: 56px; }
.rs-match, .ir-match { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--text); flex-wrap: wrap; }
.rs-plans, .ir-teams { display: flex; flex-wrap: wrap; gap: 6px 12px; min-width: 0; }
.rs-plan, .ir-team { white-space: nowrap; }
.ir-team { white-space: normal; }
.rs-lines { list-style: none; margin: 0; padding: 0; }
.rs-lines li { padding: 8px 0; border-top: 1px solid var(--line); }
.rs-lines li:first-child { border-top: 0; }
.rs-lines .tlogo { margin-right: 6px; vertical-align: middle; }
.ir-summary { margin: 8px 0; }
.ir-list .ir-teams { flex-basis: 100%; }
@media (min-width: 1000px) {
  .rs-row { display: grid; grid-template-columns: minmax(12rem, 1.2fr) minmax(11rem, 1fr) 8rem minmax(16rem, 1.8fr) 7rem 6rem;
            column-gap: 16px; }
  .rs-row .tm-br { display: none; }
  .rs-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* gated-stream (session 126, docs/gated-stream-brief.md item 2): /watch. Phones first: the line, the player at the
   page's width, League talk under it; from 1000 px the talk beside the player. The player keeps 16:9 and never
   overflows; the game page's inline player (desktop only) uses the same box as the Twitch embed. */
.watch-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.watch-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 10px; min-width: 0; }
.watch-line a { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.sp { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r); overflow: hidden;
      border: 1px solid var(--line); }
.sp-video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.sp-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0;
          padding: 16px; text-align: center; color: #fff; }
.sp-msg[hidden] { display: none; }
/* cast item 3 (session 226, docs/cast-brief.md): the cast button at the box's top right, 8 px in, a 44 px target
   with a 24 px icon, white in both states on a dark translucent disc (over any picture; the box's own #000 at 55%);
   while a TV plays, the block centred on black: "Playing on <the TV>" in the message style and Stop casting. No
   accent: the launcher's colours are the player's own white. */
.sp-cast { position: absolute; top: 8px; right: 8px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
           background: rgb(0 0 0 / 55%); }
.sp-cast[hidden] { display: none; }
.sp-cast google-cast-launcher { display: block; width: 44px; height: 44px; padding: 10px; box-sizing: border-box;
                                cursor: pointer; border: 0; background: none; --connected-color: #fff;
                                --disconnected-color: #fff; }
.sp-cast google-cast-launcher:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 50%; }
.sp-casting { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center;
              justify-content: center; gap: 12px; padding: 16px; text-align: center; background: #000; color: #fff; }
.sp-casting[hidden] { display: none; }
.sp-casting-line { margin: 0; padding: 0 52px; color: #fff; }   /* cast-replay: its words clear the launcher's corner */
.sp-casting .btn { min-height: 44px; }
/* cast-replay item 5 (session 227, call 7): while a replay plays on a TV the block carries the remote: Pause (Play),
   the elapsed time, a seek bar, the length; the site's secondary button, the times in the player's message style,
   white and grey, no accent, 44 px targets. The bar wraps under the button where the box is narrow. While a file is on
   the TV the block is in the box's flow at 16:9 at least, so where it needs more height (360 at 150%) the box grows
   instead of clipping. */
.sp.sp-tv { aspect-ratio: auto; }
.sp.sp-tv .sp-casting { position: relative; inset: auto; aspect-ratio: 16 / 9; }
.sp-remote { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; width: 100%;
             max-width: 560px; }
.sp-remote[hidden] { display: none; }
.sp-remote-play { min-width: 88px; }
.sp-remote-bar { display: flex; align-items: center; gap: 8px; flex: 1 1 220px; min-width: 0; }
.sp-remote-at, .sp-remote-len { color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-remote-seek { flex: 1 1 auto; min-width: 0; height: 44px; margin: 0; accent-color: #fff; cursor: pointer; }
/* cast-replay item 3 (session 227): the replay page, the line then the player; on a wide screen the player stops at
   1000 px (562 px tall) so the whole of it, its controls included, sits in a laptop's window under the title */
.watch-replay { max-width: 1000px; }
.watch-replays .row a { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.watch-replays .row { justify-content: space-between; gap: 8px; }
/* talk-rooms (session 188, item 2): /watch's This game | League switch over the aside's two blocks; the game page's
   live grid (the player left, Game talk right from 1000 px; on a phone the player is the Watch button and the talk
   follows the score header) */
.watch-room[hidden] { display: none; }
.game-live { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0 0 24px; }
.game-live .embed { margin: 0; }
.game-live-main:empty { display: none; }
.game-talk { max-width: 720px; }                    /* a line of talk reads at /talk's width; in the live grid its column is 22 rem */
/* talk-rooms (session 188, item 3): the lottery page's grid (the page's content, Lottery talk under it on a phone and
   a 22 rem column beside the tiles from 1000 px, its box 28 rem there); the draft room's Talk tab count */
.lot-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.room-tabs .rt-n { margin-left: 6px; padding: 0 6px; min-width: 20px; height: 20px; border-radius: 10px; font-size: 12px;
  line-height: 20px; text-align: center; background: var(--raised); border: 1px solid var(--line-strong); color: var(--text); }
@media (min-width: 1000px) {
  .lot-grid.with-talk { grid-template-columns: minmax(0, 1fr) 22rem; align-items: start; }
  .lot-talk ul.tk-scroll { max-height: 28rem; }
}
@media (min-width: 1000px) {
  .game-live.with-talk { grid-template-columns: minmax(0, 1fr) 22rem; align-items: start; }
  .watch-grid { grid-template-columns: minmax(0, 1fr) 22rem; align-items: start; }
  /* chat-look (session 251, decision 8): beside a player the chat is as tall as the player, at least 24 rem, and
     its list takes the room left. The chat is laid over its cell (absolute), so its own messages never make the row
     taller than the player. The game page's live grid: its main cell is the player alone, the row stretches. /watch:
     the main column's pieces become the grid's own rows (display: contents; the poll swaps the same elements as
     before) and the chat spans the line and the player. */
  .game-live.with-talk { align-items: stretch; }
  .game-live.with-talk > .game-talk, .watch-grid:has(.watch-main > .sp) > .watch-talk { position: relative; min-height: 24rem; }
  .game-live.with-talk > .game-talk > .talk, .watch-grid:has(.watch-main > .sp) > .watch-talk > .talk { position: absolute; inset: 0; margin: 0; }
  .game-live.with-talk .talk ul.tk-scroll, .watch-grid:has(.watch-main > .sp) > .watch-talk ul.tk-scroll { flex: 1 1 auto; min-height: 0; max-height: none; }
  .game-live.with-talk .talk .tk-empty, .watch-grid:has(.watch-main > .sp) > .watch-talk .tk-empty { flex: 1 1 auto; }
  .watch-grid:has(.watch-main > .sp) { row-gap: 0; }
  .watch-grid:has(.watch-main > .sp) > .watch-main { display: contents; }
  .watch-grid:has(.watch-main > .sp) > .watch-main > * { grid-column: 1; }
  .watch-grid:has(.watch-main > .sp) > .watch-main > .watch-line { grid-row: 1; }
  .watch-grid:has(.watch-main > .sp) > .watch-main > .sp { grid-row: 2; }
  .watch-grid:has(.watch-main > .sp) > .watch-talk { grid-column: 2; grid-row: 1 / 3; align-self: stretch; }
  .embed.embed-player { border: 0; background: none; aspect-ratio: auto; }
}

/* ---- draft-core (session 127, docs/draft-core-brief.md item 4): the lottery page and Today's card. The accent rule:
   a tile's number, a status line and a fingerprint are white or grey; headers, links and buttons take the accent. ---- */
.lottery .lot-when { margin: 0 0 12px; }
.lot-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 8px; list-style: none;
  margin: 0 0 16px; padding: 0; }
.lot-teams li { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px; font-size: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.lot-teams .tn, .lot-tile .tn { min-width: 0; overflow-wrap: normal; }   /* a name wraps at its spaces, never inside a word */
ol.lot-teams { counter-reset: team; }
ol.lot-teams li::before { counter-increment: team; content: counter(team); font-size: 12px; color: var(--muted); min-width: 1.4em;
  font-variant-numeric: tabular-nums; }
.lot-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 8px; list-style: none;
  margin: 0 0 16px; padding: 0; }
.lot-tile { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); align-items: center; gap: 8px; min-height: 56px;
  padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); min-width: 0;
  transition: border-color var(--t), background var(--t); }
.lot-tile .lt-pick { font-size: 20px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.lot-tile .lt-team { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--text-2); font-size: 14px; }
.lot-tile.due .lt-pick { color: var(--text); }
.lot-tile.due .lt-team { color: var(--text); font-weight: 600; }
.lot-tile.due { border-color: var(--line-strong); }
.lot-tile.lt-top .lt-pick { font-size: 26px; }
.lot-tile.lt-top { min-height: 64px; }
/* ---- draft-hype (session 236, decisions 3 to 7): the reveal. A tile due at render is drawn settled (no motion); one
   that turns live on the open page gets .turn from draft.js for about 0.7 s: a flip on its vertical axis with a slight
   overshoot, a grow to --g (draft.js caps it so the tile never passes the screen's edge; transforms never reflow the
   grid), a raised shadow while it is up, one sheen across its face (a moving gradient, nothing outside the tile), the
   logo popping a beat after the name. Picks 3 to 1 grow more and pulse one ring (box-shadow: never a scroll bar). The
   next tile to turn breathes (.next, one at a time). The GM's own tile: .moment below. ---- */
.lot-tile { position: relative; }
.lot-tile.next { animation: lot-breathe 2.4s ease-in-out infinite; }
@keyframes lot-breathe { 0%, 100% { border-color: var(--line); } 50% { border-color: color-mix(in srgb, var(--text) 55%, var(--line)); } }
.lot-tile.turn { z-index: 2; animation: lot-turn 620ms cubic-bezier(.3, 1.3, .5, 1) both; }
.lot-tile.turn.lt-top { animation: lot-turn 620ms cubic-bezier(.3, 1.3, .5, 1) both, lot-ring 900ms ease-out 300ms; }
.lot-tile.turn::before, .lot-tile.moment::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, color-mix(in srgb, var(--text) 55%, transparent) 50%, transparent 65%) no-repeat;
  background-size: 300% 100%; background-position: 100% 0; opacity: 0; animation: lot-sheen 520ms ease-out 260ms; }
.lot-tile.turn .tlogo, .lot-tile.moment .tlogo { animation: lot-pop 320ms cubic-bezier(.3, 1.6, .5, 1) 240ms both; }
@keyframes lot-turn {
  0% { transform: perspective(700px) rotateY(-90deg) scale(1); box-shadow: none; }
  55% { transform: perspective(700px) rotateY(8deg) scale(var(--g, 1.08)); box-shadow: 0 10px 26px rgba(0, 0, 0, .45); }
  80% { transform: perspective(700px) rotateY(-2deg) scale(var(--g, 1.08)); box-shadow: 0 10px 26px rgba(0, 0, 0, .45); }
  100% { transform: none; box-shadow: none; } }
@keyframes lot-sheen { 0% { opacity: 1; background-position: 100% 0; } 100% { opacity: 1; background-position: 0 0; } }
@keyframes lot-pop { 0% { transform: scale(0); opacity: 0; } 70% { transform: scale(1.18); opacity: 1; } 100% { transform: scale(1); } }
@keyframes lot-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--text) 45%, transparent); }
  100% { box-shadow: 0 0 0 14px transparent; } }
@media (prefers-reduced-motion: reduce) {
  .lot-tile.next, .lot-tile.turn, .lot-tile.turn.lt-top, .lot-tile.turn .tlogo { animation: none; }
  .lot-tile.turn::before, .lot-tile.moment::before { display: none; }
}
.lot-wait { padding: 12px 16px; margin: 0 0 16px; border-radius: var(--r); }
.lot-card .lot-facts, .lot-proof .lot-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 12px; margin: 12px 0; font-size: 14px; }
.lot-card .lot-facts dt, .lot-proof .lot-facts dt { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-top: 8px; }
.lot-card .lot-facts dd, .lot-proof .lot-facts dd { margin: 0; min-width: 0; }
.lot-card code, .lot-today code, .lot-proof code { font-size: 12px; display: inline-block; max-width: 100%; overflow-x: auto; vertical-align: bottom; white-space: nowrap; scrollbar-width: thin; }   /* a proof code is one token: it scrolls in its own box (no-word-break) */
.lot-order .row { gap: 10px; }
.lot-order .lo-pick { min-width: 2em; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.lot-order li.mine .row { box-shadow: inset 3px 0 0 var(--heat); }
.lot-order li.mine .grow { font-weight: 600; }
.lot-today .lt-line { margin: 0; }
/* draft-hype (session 236, decisions 10 to 12): Today's card before the draft opens: a small eyebrow, the moment large,
   its countdown, one line, one button */
.lot-today { display: grid; gap: 8px; }
.lot-today > * { margin: 0; }
.lot-today .lt-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lot-today .lt-big { font-size: clamp(22px, 6vw, 28px); font-weight: 700; line-height: 1.15; color: var(--text); }
.lot-today .lt-big.num { font-size: clamp(34px, 10vw, 44px); font-variant-numeric: tabular-nums; }
.lot-today .lt-count { font-size: 16px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.lot-today .lt-live { display: flex; align-items: center; gap: 8px; }
.lot-today .btn.block { margin-top: 4px; }
/* talk-rooms (session 188, item 4): the draft card's talk line, a 44 px link and its muted count */
.lot-today .lt-talk { margin: 0; font-size: 14px; }
.lot-today .lt-talk a { min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 1000px) {
  .lot-card .lot-facts, .lot-proof .lot-facts { grid-template-columns: max-content minmax(0, 1fr); }
  .lot-card .lot-facts dt, .lot-proof .lot-facts dt { margin-top: 0; align-self: center; }
}
/* a phone: one column of tiles (two columns broke "Timberwolves" mid-word at 390); the board starts at 600 px */
@media (max-width: 599px) { .lot-tiles { grid-template-columns: 1fr; } .lot-tile { min-height: 48px; } .lot-tile.lt-top { min-height: 56px; } }

/* ---- lottery-page (session 159, docs/lottery-page-brief.md): the countdown, "Your pick", the GM's own tile and its
   moment, the Desk's proof. The own tile's colour is data: league.css's --team or --team-2 (.team-XXX on the tile),
   which one by pages.own_line (own-line-1 or -2); outlined in it, tinted with it toward --text, the words in --bg
   (AA on every team's tint, tests/test_lottery_page.py). No colour is typed here. The moment, only when the tile turns
   live on the open page (draft.js adds .moment for 900 ms): a grow to 1.06 and back, a shine across, a few sparkles;
   prefers-reduced-motion keeps the shading alone. ---- */
/* draft-hype (session 236, decision 15): the big countdown of the last 5 minutes on the lottery page and in the draft
   room, the stream rolls' count at the page's scale (roll.css .count: the label's small caps and wide spacing, the
   digits heavy, tight and tabular, "04:59"). In the last 10 seconds each second lands with a small pulse (.tick) */
.big-count { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 18px; margin: 0 0 16px; }
.big-count[hidden] { display: none; }
.big-count .bc-lab { flex: none; max-width: 11em; padding-bottom: .55em; font-size: 13px; font-weight: 600; line-height: 1.35;
  letter-spacing: .2em; text-transform: uppercase; color: var(--text-2); }
.big-count .bc-num { font-size: clamp(3rem, 12vw, 5.5rem); font-weight: 700; line-height: .95; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text); }
.big-count .bc-num.tick { animation: bc-tick 420ms ease-out; }
.big-count .bc-say { flex-basis: 100%; font-size: 16px; font-weight: 600; color: var(--text-2); }
.big-count .bc-say[hidden] { display: none; }
@keyframes bc-tick { 0% { transform: scale(1.08); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .big-count .bc-num.tick { animation: none; } }
.lot-countdown { margin: -4px 0 12px; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lot-yourpick { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px; color: var(--text-2); font-size: 16px; }
.lot-yourpick b { color: var(--text); font-size: 24px; font-variant-numeric: tabular-nums; }
.lot-tile.own-line-1 { --own: var(--team); }
.lot-tile.own-line-2 { --own: var(--team-2); }
/* draft-hype (decision 5): the own tile holds a soft glow in his colour once settled (on a reload too); no overflow:
   hidden, so the chip can sit on its top edge */
.lot-tile.own { border: 2px solid var(--own); padding: 7px 9px; background: color-mix(in srgb, var(--own) 22%, var(--text));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--own) 35%, transparent), 0 0 18px color-mix(in srgb, var(--own) 30%, transparent); }
.lot-tile.own .lt-pick, .lot-tile.own .lt-team, .lot-tile.own .lt-team .tn { color: var(--bg); }
.lot-tile.own { animation: none; }       /* after the moment, and on a late open: the shading at once, the flip not replayed */
.lt-chip { position: absolute; top: 0; right: 10px; transform: translateY(-55%); padding: 2px 8px; border-radius: var(--r-pill);
  background: var(--bg); color: var(--text); border: 1px solid var(--own); font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; line-height: 1.4; white-space: nowrap; pointer-events: none; }
/* the big beat (draft.js adds .moment for MOMENT_MS, about 2.6 s): the flip with a grow to --g (1.22, capped to the
   screen), his colour flooding in, the sheen twice, the chip landing, then three soft glow pulses and the hold. The
   rings and the sparks are spans in a fixed layer the script makes and removes (#lot-fx: clipped to the screen) */
.lot-tile.own.moment { z-index: 3; animation: lot-turn 760ms cubic-bezier(.3, 1.3, .5, 1) both, lot-flood 520ms ease-out 180ms both,
  lot-glow 500ms ease-in-out 1100ms 3; }
.lot-tile.own.moment::before { animation: lot-sheen 520ms ease-out 300ms 2; }
.lot-tile.own .lt-chip.land { animation: lot-chip 420ms cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes lot-flood { from { background: var(--surface); } to { background: color-mix(in srgb, var(--own) 22%, var(--text)); } }
@keyframes lot-glow { 0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--own) 35%, transparent), 0 0 18px color-mix(in srgb, var(--own) 30%, transparent); }
  50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--own) 60%, transparent), 0 0 30px color-mix(in srgb, var(--own) 55%, transparent); } }
@keyframes lot-chip { 0% { transform: translateY(-160%) scale(.4); opacity: 0; } 100% { transform: translateY(-55%) scale(1); opacity: 1; } }
.lot-fx { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 40; }
.lot-fx .fx-ring { position: absolute; border: 2px solid var(--own); border-radius: var(--r); opacity: 0;
  animation: lot-burst 820ms ease-out forwards; }
.lot-fx .fx-ring + .fx-ring { animation-delay: 160ms; }
.lot-fx .fx-spark { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--own);
  box-shadow: 0 0 6px var(--own); animation: lot-spark 760ms cubic-bezier(.2, .8, .4, 1) forwards; }
@keyframes lot-burst { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35, 1.9); } }
@keyframes lot-spark { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.4); } }
/* "Your pick" takes its number with a pop and an underline that draws itself (.got: on a reload it is drawn) */
.lot-yourpick b { position: relative; }
.lot-yourpick b.got::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; border-radius: 1px;
  background: var(--heat); transform-origin: left; }
.lot-yourpick b.pop { animation: lot-pop 420ms cubic-bezier(.3, 1.6, .5, 1) both; }
.lot-yourpick b.pop::after { animation: lot-draw 420ms ease-out 300ms both; }
@keyframes lot-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .lot-tile.own.moment, .lot-tile.own .lt-chip.land, .lot-yourpick b.pop, .lot-yourpick b.pop::after { animation: none; }
  .lot-fx { display: none; }
}
.lot-proof { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 4px; }
.lot-proof summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; }

/* ---------------------------------------------------------------- the draft room (session 127, docs/draft-brief.md item 4)
   Phones first: the clock strip, the pick strip, then one tab at a time (.rp.on). Session 165 (docs/draft-room-3-brief.md):
   from 1100 px two views, Room (Players and My team in two columns, the Ticker under them; three columns from 1600) and
   Board (its lenses, the full width); the page grows to 2200 px from a 1600 px window (the top bar stays the standard
   width). The accent: the Draft button, the current pick's outline, the GM's own picks and row ("You're on the clock"
   until turn-heads, session 252: his turn's words are --text, his team's colour the strip's edge, tint and beat);
   the paused and window lines, the countdown and the Autopilot chip are the fixed warn family; the GM's own moment
   is his team's colours (data: league.css's --team and --team-2, which one by pages.own_line). */
@media (min-width: 1600px) { body.room-page { --maxw: 2200px; } }
.room { --rv-act: 4.8rem; }
.room.on-clock { --rv-act: 9.6rem; }          /* Draft and Queue side by side */
.room-strip { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; margin: 0 0 12px; }
.room-strip p { margin: 6px 0 0; }
.room-strip > p:first-child { margin-top: 0; }      /* room-scroll: the strip's own children (.rs-rest's are not first) */
.rs-main { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
/* today-links (session 141): the draft room strip's names are scoped to the draft room; unscoped, `.rs-team` made the research
   column's team <section> a flex row (heading beside the table, 260 px for the rows) and `.rs-switch` showed the phone switch
   on every width (docs/deploy-oct23.md Open 6) */
.rs-main .rs-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rs-label { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.rs-time { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.rs-state { color: var(--warn); font-size: 14px; }
.rs-auto, .rs-auto-mine { color: var(--warn); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rs-you { color: var(--text); }       /* turn-heads (session 252): his turn's words are --text; was --heat-text */
.rs-banner, form.rs-switch, .rs-seen { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0 0; font-size: 14px; }
.rs-banner { border-left: 3px solid var(--warn); padding-left: 10px; }
form.rs-switch input[type=number] { width: 4.5em; min-height: 44px; }
.rs-note { font-size: 14px; color: var(--text-2); }
.rs-nudge { font-size: 14px; color: var(--text-2); }
/* draft-fast (session 241, decisions 6 and 7): his turn without a reload. The Draft buttons are in every row and show
   under .on-clock (the draft open); his turn's words in both forms, shown by .my-turn and .two-picks; the own lines'
   box keeps the strip's spacing; the result line says what an in-place post answered */
.room:not(.on-clock) .rv-draft, .room:not(.on-clock) .rq-draft { display: none; }
.room:not(.my-turn) #strip-you, .room.my-turn #strip-until, .room:not(.two-picks) .rs-two { display: none; }
.room-strip .rs-own > p:first-child { margin-top: 6px; }
.rs-result { font-size: 14px; color: var(--text); }
/* draft-start (session 242, decisions 11 to 15): "You're on the clock". His team's colour is data (the strip's
   .team-XXX and own-line-N, pages.own_line), lifted toward --text for the edge so a dark team colour still reads on
   the dark surface. The settled look hangs off .on-clock (a reload draws it): one edge, the left inset and the border,
   and a faint tint. The beat is .beat on #room for about 1.8 s (draft_room.js): the strip floods with the colour and
   settles, "You're on the clock" lands with an overshoot (to 1.12 and back) and one sheen, the digits pulse once, one
   ring leaves the edge (a box-shadow: it adds no scroll and moves nothing). Under 1100 px on the strip; from 1100 px
   the strip has no box (room-scroll), so on the pinned clock line, .rs-main, which replaces its accent edge there.
   Reduced motion: the edge and the words, no animation. */
.room-strip.own-line-1 { --own: var(--team); }
.room-strip.own-line-2 { --own: var(--team-2); }
.room-strip { --own-edge: color-mix(in srgb, var(--own, var(--heat)) 72%, var(--text));
  --own-tint: color-mix(in srgb, var(--own, var(--heat)) 12%, var(--surface));
  --own-flood: color-mix(in srgb, var(--own, var(--heat)) 48%, var(--surface)); }
.room.on-clock .room-strip { border-color: var(--own-edge); box-shadow: inset 3px 0 0 var(--own-edge); background: var(--own-tint); }
.rs-you { display: inline-block; position: relative; overflow: hidden; vertical-align: bottom; transform-origin: left center; }
.room.on-clock.beat .room-strip { animation: beat-flood 1800ms ease-out both, beat-ring 900ms ease-out 250ms both; }
.room.on-clock.beat #strip-you { animation: beat-land 560ms cubic-bezier(.3, 1.4, .5, 1) both; }
.room.on-clock.beat #strip-you::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%; animation: beat-sheen 700ms ease-out 380ms both; }
.room.on-clock.beat #strip-time { animation: beat-pulse 480ms ease-out 520ms both; }
@keyframes beat-flood { 0% { background-color: var(--surface); } 22% { background-color: var(--own-flood); }
  100% { background-color: var(--own-tint); } }
@keyframes beat-ring { 0% { box-shadow: inset 3px 0 0 var(--own-edge), 0 0 0 0 var(--own-edge); }
  100% { box-shadow: inset 3px 0 0 var(--own-edge), 0 0 0 14px color-mix(in srgb, var(--own-edge) 0%, transparent); } }
@keyframes beat-land { 0% { transform: scale(.9); opacity: .2; } 55% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); opacity: 1; } }
@keyframes beat-sheen { 0% { background-position: 120% 0; opacity: 1; } 100% { background-position: -40% 0; opacity: 0; } }
@keyframes beat-pulse { 0% { transform: scale(1); } 45% { transform: scale(1.1); } 100% { transform: scale(1); } }
/* room-asks (session 248, decision 14): the line pins at every width now, so his colour's edge and the beat are on it at
   every width (was from 1100 px; under it on the strip's card) */
.room.on-clock.my-turn .rs-main { border-color: var(--own-edge); box-shadow: inset 3px 0 0 var(--own-edge);
  background: var(--own-tint); }           /* above room-scroll's .room.my-turn .rs-main: one edge, his colour */
.room.on-clock.beat .room-strip:has(> .rs-main) { animation: none; }
.room.on-clock.beat .rs-main { animation: beat-flood 1800ms ease-out both, beat-ring 900ms ease-out 250ms both; }
@media (prefers-reduced-motion: reduce) {
  .room.on-clock.beat .room-strip, .room.on-clock.beat .rs-main, .room.on-clock.beat #strip-you,
  .room.on-clock.beat #strip-you::after, .room.on-clock.beat #strip-time { animation: none; }
}
.room-mine[hidden] { display: none; }
/* room-asks (session 248, decision 20): My team's row is By team's (Round, Pick, the player by `who`, OVR); under 360
   CSS px it is two lines as room-fit's rows: the player the full width, then "R2 P37" and the tile at the right, the
   heads gone (no columns to head) */
.rm-rd { color: var(--muted); }
@media (max-width: 359px) {
  .room-mine thead { display: none; }
  .room-mine tbody tr { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto;
    grid-template-areas: "who who who who" "rd no . ovr"; align-items: center; border-bottom: 1px solid var(--line); }
  .room-mine tbody tr:last-child { border-bottom: 0; }
  .room-mine td { border-bottom: 0; }
  .room-mine td.rm-who { grid-area: who; padding-bottom: 2px; }
  .room-mine td.rm-rd { grid-area: rd; padding-top: 0; padding-right: 2px; }
  .room-mine td.rm-no { grid-area: no; padding-top: 0; padding-left: 2px; }
  .room-mine td.rm-ovr { grid-area: ovr; padding-top: 0; }
  .room-mine .rm-rd::before { content: "R"; }
  .room-mine .rm-no::before { content: "P"; }
}
.ap-chip { height: 22px; padding: 0 8px; font-size: 11px; font-weight: 600; color: var(--warn);
  border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.ap-chip[hidden] { display: none; }

/* the pick strip (session 165, item 2): a phone, the last picks as lines and one Up next line; from 1100 px one row,
   the last picks oldest first, the pick on the clock outlined, the next ones; never a sideways scroll */
.pick-strip { margin: 0 0 16px; }
.ps-h { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.ps-row { display: none; list-style: none; margin: 0; padding: 0; }
.ps-lines { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.ps-lines:empty { display: none; }
.psl { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px; font-size: 14px; min-width: 0; }
.psl + .psl { border-top: 1px solid var(--line); }
.ps-tm { display: inline-flex; align-items: center; gap: 4px; }
.ps-code { color: var(--text-2); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.psl-no { min-width: 4.6em; white-space: nowrap; color: var(--muted); font-size: 12px; }
.psl-who { flex: 1 1 auto; min-width: 0; }
.psl-ovr { font-weight: 700; }
.psl.mine { box-shadow: inset 3px 0 0 var(--heat); }
.ps-next { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; font-size: 14px; color: var(--text-2); }
.ps-nx { display: inline-flex; }
.ps-nx.mine { outline: 2px solid var(--heat); outline-offset: 2px; border-radius: 50%; }
.ps-you-in { color: var(--heat-text); }
@media (min-width: 1100px) {
  .ps-lines, .ps-next { display: none; }
  .ps-row { display: flex; gap: 6px; align-items: stretch; }
  .psc { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 6px 8px; font-size: 12px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
  .ps-back { flex: 1.5 1 0; }
  .ps-cur { flex: 1.2 1 0; border: 2px solid var(--heat); padding: 5px 7px; }
  .ps-ahead { flex: .8 1 0; }
  .ps-top { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
  .ps-back .ps-top .ps-tm { margin-left: auto; }
  .ps-ovr { font-weight: 700; font-size: 13px; }
  .ps-no { color: var(--text-2); font-size: 11px; }
  .ps-name { font-weight: 600; color: var(--text); overflow-wrap: normal; line-height: 1.25; }
  .ps-label { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
  .psc.mine { box-shadow: inset 0 -3px 0 var(--heat); }
  .ps-you { color: var(--heat-text); font-weight: 700; font-size: 11px; }
  .psc .ap-chip { height: 18px; padding: 0 6px; font-size: 10px; align-self: flex-start; }
}

/* the moment (session 165, item 2): over the top of the room, not a dialog; a rise and fade in 240 ms, none with reduced
   motion. The GM's own team's pick in his team's colours, as the lottery's own tile: outlined in the darker of the two,
   tinted with it toward --text, the words in --bg */
.pick-moment { position: fixed; z-index: 40; top: calc(var(--top-h) + 12px); left: 50%; width: min(460px, calc(100vw - 2 * var(--gutter)));
  transform: translate(-50%, 10px); opacity: 0; transition: opacity 240ms ease-out, transform 240ms ease-out; cursor: pointer;
  padding: 14px 16px; background: var(--raised); border: 1px solid var(--line-strong); border-radius: var(--r); box-shadow: 0 12px 32px rgba(0, 0, 0, .45); }
.pick-moment[hidden] { display: none; }
.pick-moment.in { opacity: 1; transform: translate(-50%, 0); }
.pm-in { display: flex; align-items: center; gap: 14px; min-width: 0; }
.hs.pm-face { width: 96px; height: 96px; }
.pm-body { min-width: 0; }
.pm-body p { margin: 0; }
.pm-pick { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.pm-name { font-size: 22px; font-weight: 700; line-height: 1.2; overflow-wrap: normal; }
.pm-ver { color: var(--text-2); font-size: 14px; }
.pick-moment .pm-team { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 600; }
.pick-moment .pm-flag { margin-top: 6px; font-size: 12px; color: var(--muted); font-style: italic; }
.pick-moment .pm-more { margin-top: 4px; font-size: 13px; color: var(--text-2); }
.pick-moment.own-line-1 { --own: var(--team); }
.pick-moment.own-line-2 { --own: var(--team-2); }
.pick-moment.own { border: 2px solid var(--own); padding: 13px 15px; background: color-mix(in srgb, var(--own) 22%, var(--text)); }
.pick-moment.own .pm-body, .pick-moment.own .pm-body p, .pick-moment.own .pm-body b { color: var(--bg); }
@media (prefers-reduced-motion: reduce) { .pick-moment { transition: none; transform: translate(-50%, 0); } }
@media (max-width: 599px) { .hs.pm-face { width: 72px; height: 72px; } .pm-name { font-size: 19px; } }

/* the confirm (session 165, item 6): a modal dialog; without script it shows open, inline, at the top */
dialog.room-confirm { width: min(480px, calc(100vw - 2 * var(--gutter))); max-width: none; padding: 0; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); }
dialog.room-confirm[open]:not(:modal) { position: static; width: auto; margin: 0 0 16px; }
dialog.room-confirm::backdrop { background: rgba(0, 0, 0, .6); }
.rc-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.room-confirm h2 { margin: 0 0 4px; font-size: 20px; overflow-wrap: normal; }
.room-confirm .rc-facts { margin: 0; color: var(--text-2); font-size: 14px; }
.room-confirm .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.room-confirm .actions .btn { min-height: 44px; }
.room-confirm .rc-say { margin: 8px 0 0; font-size: 14px; color: var(--warn); }       /* draft-fast: a refusal, "Checking" */
.room-confirm .actions .btn[hidden] { display: none; }

.room-tabs a[data-tab], .room-views a[data-tab] { min-height: 44px; display: inline-flex; align-items: center; }
.room-views { display: none; }
.rp { display: none; min-width: 0; }
.rp.on { display: block; }
.room-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 0 0 8px; }
.room-filter .rf-f { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.room-filter .rf-f:first-of-type { flex: 1 1 12em; }
.room-filter input[type=search] { width: 100%; min-height: 44px; min-width: 0; }
.room-filter select { min-height: 44px; max-width: 100%; }
.room-filter .btn { min-height: 44px; }
.room-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.room-kinds a.chip { height: 36px; }
.room-kinds a.chip.on { color: var(--text); border-color: var(--heat); }
/* the Players list's columns (session 165, item 7): Player; Version and position; OVR, the versions under them */
.rpl-cols { padding: 0 13px 6px; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.rpl-cols .rc-rest { display: grid; grid-template-columns: minmax(0, 1fr) 2.6em var(--rv-act); gap: 8px; padding-left: 36px; }
.rpl-cols .rc-ovr { text-align: right; }
.room-players > li.rpl { padding: 10px 12px; }
.rpl-head { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }
.rpl-name { min-width: 0; overflow-wrap: normal; }
.rpl-versions { list-style: none; margin: 6px 0 0; padding: 0 0 0 36px; }
.rv { display: grid; grid-template-columns: minmax(0, 1fr) 2.6em var(--rv-act); align-items: center; gap: 8px; min-height: 44px; }
.rv + .rv { border-top: 1px solid var(--line); }
.rv-label { min-width: 0; font-size: 14px; color: var(--text-2); }
/* session 156: a player's name opens his page (a new tab): the text's own colour, a quiet underline; on a phone the
   version's and the person's links are 44 px tall, beside (never over) the Draft and Queue buttons */
.rm-link { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.rm-link:hover { color: var(--text); text-decoration-color: currentColor; }
@media (max-width: 1099px) {
  .rv-label .rm-link, .rpl-name .rm-link { display: inline-flex; align-items: center; min-height: 44px; }
}
/* ratings-room (session 245, item 2): OVR is the kit's small tile wherever a player shows in the room, drawn the same by
   the server and the script. Its reader word (.sr) is absolutely placed, so the tile is its own positioned box (ratings-
   rest Open 3a); in a sentence-like line (the confirm, the moment) it sits on the text's middle; in a Grid cell it is
   the cell's size, 18 px tall, so a row grows by 4 px, not the tile's 26 */
.room .ovr-tile, .pick-moment .ovr-tile { position: relative; }
.rv-ovr { display: flex; justify-content: flex-end; }
.room td .ovr-tile, .rc-facts .ovr-tile, .pm-ver .ovr-tile, .g-sub .ovr-tile { vertical-align: middle; }
.g-sub .ovr-tile.sm { min-width: 24px; height: 18px; padding: 0 3px; font-size: 11px; border-bottom-width: 2px; border-radius: 4px; }
/* ratings-room (item 3): a Players row's six group numbers from 1000 px, between OVR and the buttons, under their six
   heads; the lists' cell (ratings-lists): the number bold on its band's tint, a dash plain. In the markup at every
   width and not displayed under 1000 px, so a phone's row is the version, the tile and two buttons */
.rv-six, .rc-six { display: none; }
.rv-six > b { display: inline-block; box-sizing: border-box; width: 40px; padding: 2px 0; border-radius: 6px; text-align: center;
  color: var(--text); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; line-height: 1.4; }
.rv-six > .rt-b1, .rv-six > .rt-b2, .rv-six > .rt-b3, .rv-six > .rt-b4, .rv-six > .rt-b5 { background: var(--rt-soft); }
.rc-six > span { width: 40px; text-align: center; }
/* where they show: from 1000 px, and only while the Players pane has room for them beside a version's label (650 px:
   a 110 px label, the tile, the six and Draft and Queue side by side; measured, the record's item 3). In the room's two
   columns that is from about 1180 px; from 1600 a list with the six keeps the name above its versions, as below 1600,
   since the six do not fit beside the name's 15em column until about 2200 px */
.rp-players { container: rpl / inline-size; }
@media (min-width: 1000px) {
  @container rpl (min-width: 650px) {
    .rv-six, .rc-six { display: flex; gap: 4px; }
    .room-players.six .rv, .rpl-cols.six .rc-rest { grid-template-columns: minmax(0, 1fr) 2.6em calc(6 * 40px + 5 * 4px) var(--rv-act); }
  }
}
/* a phone's tables: the tile 26 px in a 2 px cell (as My team's, ratings-rest), so a name keeps its room */
@media (max-width: 599px) {
  .room td .ovr-tile.sm { box-sizing: border-box; min-width: 26px; padding: 0 3px; }
  .lens-table td.bp-ovr, .room-mine td.rm-ovr, .room-queue td.rq-ovr,
  .room-queue thead th:nth-child(3) { padding-left: 2px; padding-right: 2px; }      /* room-fit: the head over them too */
}
.rv-act { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; min-width: 0; }
.rv-act form { margin: 0; }
.rv-act .btn { min-height: 40px; padding: 0 12px; }

/* My team and My queue, tables (session 165, item 7): Pick, Player, OVR; #, Player, OVR and the buttons */
.room-mine, .room-queue { margin: 0 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  border-collapse: separate; border-spacing: 0; }
.room-mine th, .room-mine td, .room-queue th, .room-queue td { padding: 8px 10px; }
.room-mine tbody tr:last-child td, .room-queue tbody tr:last-child td { border-bottom: 0; }
.rm-no, .rq-no { color: var(--muted); }
.rm-who .hs, .rq-who .rq-grip { vertical-align: middle; margin-right: 8px; }
.rm-name { display: inline-block; vertical-align: middle; min-width: 0; }
.rm-name .meta { display: block; }
.room-queue .rq-grip { color: var(--muted); cursor: grab; }
.room-queue .rq-act { text-align: right; white-space: nowrap; }
.room-queue .rq-btns { display: inline-flex; gap: 4px; margin: 0; }
.room-queue .rq-btns .btn { min-height: 40px; min-width: 40px; padding: 0 8px; }
.room-queue .rq-btns .rq-draft { padding: 0 12px; }
.room-queue tr.dragging { opacity: .5; }
.rv-act .rv-twin { height: auto; min-height: 26px; padding: 3px 10px; white-space: normal; text-align: right; }
/* a phone: the queue's buttons under the name inside the row (session 163), the row a grid of the same columns */
@media (max-width: 599px) {
  .room-queue thead tr, .room-queue tbody tr { display: grid; grid-template-columns: 2.2em minmax(0, 1fr) 2.8em; align-items: center; }
  .room-queue thead th:last-child { display: none; }
  .room-queue tbody tr { border-bottom: 1px solid var(--line); }
  .room-queue tbody tr:last-child { border-bottom: 0; }
  .room-queue td { border-bottom: 0; }
  .room-queue td.rq-act { grid-column: 2 / -1; padding-top: 0; text-align: left; }
}
/* room-fit (session 246, item 1): every button on a room row is a 44 px tap target at any width. The button keeps its
   40 px look, so a row keeps its rhythm and Draft stays a button inside it, not the row's full height; a box 2 px
   wider each way takes the tap (its ::before, as my-team-2's pills; placed against the padding box, so 3 px past the
   1 px border). Draft and Queue are 6 px apart and the queue's arrows 4, so two targets never overlap */
.rv-act .btn, .room-queue .rq-btns .btn { position: relative; }
.rv-act .btn::before, .room-queue .rq-btns .btn::before { content: ''; position: absolute; left: -3px; right: -3px;
  top: calc(50% - 22px); height: 44px; }
/* room-fit (item 2): under 360 CSS px (320 px, and every phone at 130% and 150% text) a row has no room for a version's
   label beside its tile and buttons, so a row is two lines: the label the full width above, the tile and the buttons
   level on the line under it, at the right as on one line. The versions lose their indent and the columns' heads go
   (there are no columns to head); the label wraps at its spaces. The strip's last picks the same way: the name and
   version beside the face, the pick and the team under them, the tile at the right; the queue's Draft the row's width
   above its arrows */
@media (max-width: 359px) {
  .rpl-cols { display: none; }
  .rpl-versions { padding-left: 0; }
  .rv { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "label label label" ". ovr act"; row-gap: 0; }
  .rv-label { grid-area: label; }
  .rv-ovr { grid-area: ovr; }
  .rv-act { grid-area: act; }
  .psl { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "face who who ovr" "face no tm ovr";
    gap: 2px 8px; }
  .psl > .hs { grid-area: face; }
  .psl-who { grid-area: who; }
  .psl-no { grid-area: no; min-width: 0; }
  .psl > .ps-tm { grid-area: tm; }
  .psl-ovr { grid-area: ovr; }
  .room-queue .rq-btns { display: flex; flex-wrap: wrap; }
  .room-queue .rq-btns .rq-draft { flex: 1 1 100%; }
}
.room-ticker .chip { height: 22px; font-size: 11px; }

/* the Board's lenses (session 165, item 4). .lens-auto: By round below the Grid's breakpoint, the Grid from it; the
   Grid asked for below it reads By round. The breakpoint (Matt, session 165) is the narrowest window at which the
   pools' widest unbreakable run (a word or a part up to its hyphen: "Antetokounmpo", 92.9 px at the cell's 12 px) plus 4 px
   fits the cell, so no name breaks inside a word: measured in Chromium, docs/draft-room-3b.md; room.GRID_FROM is the same number (tests/test_draft_room_3.py checks).
   The Grid: teams down, rounds across, the page's width (table-layout fixed), the round heads sticky under the top bar
   (no inner scroll box); a name wraps only at its spaces, never inside a word */
.lens-switch { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.lens-switch a.chip { height: 36px; }
.lens-switch a.chip.on { color: var(--text); border-color: var(--heat); }
.lens-switch .lens-grid-link { display: none; }
.bl { display: none; }
.lens-auto .bl-round, .lens-round .bl-round, .lens-team .bl-team, .lens-grid .bl-round { display: block; }
.lens-pick { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 0 0 12px; }
.lens-pick .lp-f { display: flex; flex-direction: column; gap: 2px; font-size: 12px; font-weight: 600; color: var(--muted); }
.lens-pick select, .lens-pick .btn { min-height: 44px; }
.lens-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); border-collapse: separate; border-spacing: 0; }
.lens-table th, .lens-table td { padding: 8px 10px; }
.lens-table tbody tr:last-child td { border-bottom: 0; }
.bp-team .tlogo { vertical-align: middle; margin-right: 6px; }
.bp-w { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bp-name { min-width: 0; }
.bp-team .ap-chip { margin-left: 4px; vertical-align: middle; }
.bp-name .meta { white-space: normal; }
.bp-wait { color: var(--muted); }
.bp.now td:first-child { box-shadow: inset 3px 0 0 var(--heat); }
.bp.now .bp-wait { color: var(--heat-text); font-weight: 600; }
.bp.mine td { background: var(--heat-tint); }
/* pick-times (session 248, decisions 15, 17 and 18): a pick's published deadline. By round's Due column and By team's
   "Pick 37, due <when>" in the muted line colour; the strip's line under the clock, his own words on his turn */
.bp-due-h { white-space: nowrap; }
.bp-due-c { color: var(--text-2); font-size: 14px; font-variant-numeric: tabular-nums; min-width: 7.5em; }
.bp-due { color: var(--muted); }
.bl-times-if { margin: 0 0 8px; }
/* room-asks (session 248, decision 16): on a round other than the live one, one line above the table, a real link back
   to it (a 44 px target) */
.bl-live { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.bl-live a { display: inline-block; padding: 12px 0; line-height: 20px; }   /* 44 px tall; one run of text */
.bl-live[hidden] { display: none; }
/* a phone: By round's deadline reads in the Player cell as By team's does, the column gone (it pushed the table past
   its box at 390) */
.bp-due-in { display: none; }
@media (max-width: 599px) { #round-table .bp-due-h, #round-table .bp-due-c { display: none; } .bp-due-in { display: inline; } }
/* room-asks (session 248, decisions 5 and 6): the GM's name beside his team's wherever the room names a team, always
   the quiet second (the muted grey, the body's weight); a team with no GM draws nothing. The clock line, By round's
   Team cell (a second line under the name and its via), By team's head, the list before the lottery, the moment, the
   Grid's team column (whole words in at most two lines; room.grid_team_w widens the column for a long name) */
.rs-gm, .lt-gm { color: var(--muted); font-weight: 400; }
.pm-gm { font-weight: 400; opacity: .72; }      /* the moment: on his team's own colours too, so the line's colour, quieter */
.lt-gm { text-transform: none; letter-spacing: 0; }
.bp-tn:has(> .bp-gm) { display: inline-block; vertical-align: middle; }
.bp-gm, .bt-gm { display: block; font-size: 12px; color: var(--muted); }
.g-gm { display: block; font-size: 10px; font-weight: 500; line-height: 1.2; color: var(--muted);
  overflow-wrap: normal; word-break: normal; hyphens: manual; }
/* the team picker's options carry the GM's name ("7. Charlotte Hornets · Matt"): a select is as wide as its widest
   option, so it keeps to the form's width and the open list shows them whole */
.lens-pick .lp-f { min-width: 0; max-width: 100%; }
.lens-pick select { max-width: 100%; }
.grid.gtw-72 { --g-team: 72px; } .grid.gtw-80 { --g-team: 80px; } .grid.gtw-88 { --g-team: 88px; }
.grid.gtw-96 { --g-team: 96px; } .grid.gtw-104 { --g-team: 104px; } .grid.gtw-112 { --g-team: 112px; }
.grid.gtw-120 { --g-team: 120px; } .grid.gtw-128 { --g-team: 128px; } .grid.gtw-136 { --g-team: 136px; }
.grid.gtw-144 { --g-team: 144px; } .grid.gtw-152 { --g-team: 152px; } .grid.gtw-160 { --g-team: 160px; }
.rs-due { font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.room:not(.my-turn) .rs-due-m, .room.my-turn .rs-due-o, .room.my-turn #mine-due { display: none; }
/* room-fit (session 246, item 3): By round and By team scroll sideways in their own box on a phone at big text, the
   first column (the pick, the round) pinned as the site's other wide tables; opaque, so a row's tint stays a tint */
.bl .scroll .lens-table tr > :first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.bl .scroll .lens-table tr.bp.mine > :first-child { background: linear-gradient(var(--heat-tint), var(--heat-tint)), var(--surface); }
@media (max-width: 599px) { .lens-table th, .lens-table td { padding: 8px 6px; } }
.grid { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 11px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.grid th, .grid td { padding: 4px 3px; vertical-align: top; text-align: left; border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line); overflow-wrap: normal; }
.grid thead th { position: sticky; top: var(--top-h); z-index: 2; background: var(--raised); color: var(--muted); font-weight: 600; text-align: center; }
.grid .g-corner { width: var(--g-team, 64px); text-align: left; }    /* room-asks: wider for a long GM's name */
.grid .g-team { background: var(--raised); font-weight: 600; color: var(--text-2); }
.g-team .tlogo { vertical-align: middle; }
.g-abbr { margin-left: 4px; vertical-align: middle; }
.g-team .ap-chip { display: flex; width: max-content; height: 18px; margin-top: 3px; padding: 0 5px; font-size: 10px; }
.g-team .ap-chip[hidden] { display: none; }
.grid tr.mine .g-team { color: var(--text); box-shadow: inset 3px 0 0 var(--heat); }
.grid tr.mine td { background: var(--heat-tint); }
.g-cell > span { display: block; }
.g-name { color: var(--text); font-weight: 600; font-size: 12px; line-height: 1.25; }
.g-sub { color: var(--text-2); }
.g-wait { color: var(--muted); }
.g-via { color: var(--muted); font-style: italic; }
.g-cell.now { box-shadow: inset 0 0 0 2px var(--heat); }

@media (min-width: 1100px) {
  .room-tabs { display: none; }
  .room-views { display: flex; }
  .room-grid { display: grid; gap: 16px; align-items: start; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
               grid-template-areas: "players team" "ticker ticker"; }
  .rp-players { grid-area: players; } .rp-team { grid-area: team; } .rp-ticker { grid-area: ticker; } .rp-board { grid-area: board; }
  .room.view-room .rp { display: block; }
  .room.view-room .rp-board, .room.view-board .rp { display: none; }
  .room.view-board .rp-board { display: block; }
  .room.view-board .room-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "board"; }
  .room-grid:not(:has(.rp-players)):has(.rp-team) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "team ticker"; }
  .room-grid:not(:has(.rp-players)):not(:has(.rp-team)) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "ticker"; }
  /* the Board view wins over the two rules above (same specificity, so listed after them; draft-room-3c): with no
     Players pane the team/ticker rule left the Board in an implicit column and an empty row. By round and By team read
     at most 1100 px wide; the Grid keeps the width */
  .room.view-board .room-grid:not(:has(.rp-players)):has(.rp-team),
  .room.view-board .room-grid:not(:has(.rp-players)):not(:has(.rp-team)) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "board"; }
  .room.view-board .bl-round .lens-table, .room.view-board .bl-team .lens-table { max-width: 1100px; }
  .room-ticker { max-height: 40vh; overflow-y: auto; }
  /* talk-rooms (session 188, item 3): Draft talk takes the Ticker's row beside it (1100 to 1599: the row is the page's
     width, so the two halves of it); with Draft talk the Ticker's box and the talk's are both 40vh. No talk in Board */
  .rp-talk { grid-area: talk; }
  .room-grid:has(.rp-talk) { grid-template-areas: "players team" "ticker talk"; }
  .room-grid:has(.rp-talk):not(:has(.rp-players)):has(.rp-team) { grid-template-areas: "team ticker" "team talk"; }
  .room-grid:has(.rp-talk):not(:has(.rp-players)):not(:has(.rp-team)) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "ticker talk"; }
  .room.view-board .room-grid:has(.rp-talk) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "board"; }
  .rp-talk ul.tk-scroll { max-height: 40vh; }
}
@media (min-width: 1600px) {
  .room-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, .8fr); grid-template-areas: "players team ticker"; }
  .room-ticker { max-height: 70vh; }
  /* the third column holds the Ticker above and Draft talk below: the Ticker capped at 32vh, the talk's box 30vh */
  .room-grid:has(.rp-talk) { grid-template-areas: "players team ticker" "players team talk"; grid-template-rows: auto 1fr; }
  .room-grid:has(.rp-talk) .room-ticker { max-height: 32vh; }
  .rp-talk ul.tk-scroll { max-height: 30vh; }
  /* one line a version: the face and name, then the version, position, OVR and buttons beside them */
  .rpl-cols:not(.six), .room-players:not(.six) > li.rpl { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 0 12px; align-items: start; }
  .rpl-cols:not(.six) .rc-rest, .room-players:not(.six) .rpl-versions { margin: 0; padding-left: 0; }
  .rpl-head { min-height: 44px; }
}
/* room-scroll (session 247, docs/room-scroll-brief.md Part B): from 1100 px the Players list has no box of its own, the
   page scrolls it, and what the box kept in view is pinned. Under 1100 px the three wrappers are display: contents
   (.rs-rest in the strip, .room-side and .room-feed in the grid), so a phone's room is as it was.
   1. The clock line (.rs-main) pins under the top bar for the whole room: the strip is display: contents, so the room
      is the line's containing block; at the page's top the line is the top of the strip's card and .rs-rest its
      bottom, the line's bottom border the card's divider. One line, --clock-h tall; on his turn the accent's edge.
   2. The search (the filter form) and the column heads pin under it, the width of the Players column; the heading and
      the kind chips scroll away under them. --pin is the top bar and the clock line; --rf-h the form's height.
   3. The side column (My team, the queue, then the Ticker and Draft talk from 1100 to 1599) pins under the clock line
      and scrolls by itself when taller than the window, as .research-dock. From 1600 My team and the feed (the Ticker,
      Draft talk) are the second and third columns, each pinned the same way. Without a Players pane the room is laid
      out as before (the wrappers display: contents), the clock line pinned. */
.room-side, .room-feed { display: contents; }
/* room-asks (session 248, decisions 11 to 14; Matt, 27 Nov: overrules room-scroll's Open 1): the clock line pins under
   the top bar at every width, by room-scroll's means (one clock, no copy; nothing collapsed or measured by script, the
   line the same box pinned or not, so nothing jumps). Under 1100 px it is the short form, at most 52 px: the logo, the
   three-letter code, "N picks until you" and the time; the words it drops are .rs-rest's first line (#strip-sub), which
   scrolls away with the rest. From 1100 px the line as room-scroll left it, 60 px, with the GM's name and the count. His
   turn's one edge is on the line at every width (draft-start's, above). Under 360 CSS px (320, and 130% and 150% text)
   the count reads "3 until you", so the time is never cut */
.room { --clock-h: 0px; }
.room:has(.rs-main) { --clock-h: 52px; }
.room-strip:has(> .rs-main) { display: contents; }
.room-strip > .rs-main { position: sticky; top: var(--top-h); z-index: 8; box-sizing: border-box; height: var(--clock-h);
  flex-wrap: nowrap; margin: 0; padding: 0 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r) var(--r) 0 0; }
.room-strip:has(> .rs-main) > .rs-dry { margin: 0; padding: 12px 16px 8px; background: var(--surface); border: 1px solid var(--line);
  border-bottom: 0; border-radius: var(--r) var(--r) 0 0; }
.room-strip:has(> .rs-main) > .rs-dry ~ .rs-main { border-radius: 0; }
.rs-main .rs-team { flex: 1 1 auto; overflow: hidden; }
.rs-main .rs-who { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rs-main .rs-time { flex: none; }
/* turn-heads (session 252, Now 143): the line's words are --text on his turn as off it; his team's colour is the edge,
   the tint and the beat, never the words (was: on his turn the count and the time in --heat-text, so a quiet accent,
   the Kings' grey, read dimmer on his turn than off it) */
.rs-until { flex: none; font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rs-code { font-weight: 700; }
.room.my-turn .rs-main { border-color: var(--heat); box-shadow: inset 3px 0 0 var(--heat);
  background: linear-gradient(var(--heat-tint), var(--heat-tint)), var(--surface); }
.room-strip > .rs-rest { display: flow-root; margin: 0 0 12px; padding: 4px 16px 12px; background: var(--surface);
  border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r) var(--r); }
.rs-rest > .rs-sub { margin-top: 2px; font-size: 14px; }
.room:not(.my-turn) .rs-own > .rs-mine:not(:has(> :not(#strip-you):not([hidden]))) { display: none; }   /* off his turn, nothing to say */
@media (max-width: 1099px) {
  .rs-main .rs-who { display: none; }
}
@media (min-width: 1100px) {
  .rs-code, .rs-sub { display: none; }
}
@media (max-width: 359px) {
  .pu-w { display: none; }
  .room-strip > .rs-main { gap: 6px; padding: 0 8px; }
  .rs-main .rs-team { gap: 6px; }
  .rs-main .rs-time { font-size: 20px; }
  .rs-until { font-size: 13px; }
}
.rs-main .rs-code { flex: none; }                 /* the code is never cut: the line's words give way first */
/* under 300 CSS px (130% and 150% text on a phone) the logo alone names the team: the code is not drawn, never cut */
@media (max-width: 299px) { .rs-main .rs-code { display: none; } }
/* nothing of the rest shows (a GM with no team, no line under the clock): the line alone is the card; from 1100 px the
   rest's #strip-sub is not drawn, so it does not count */
.room-strip > .rs-rest:not(:has(> :not([hidden]))) { display: none; }
.room-strip > .rs-main:has(+ .rs-rest:not(:has(> :not([hidden])))) { margin-bottom: 12px; border-radius: var(--r); }
@media (min-width: 1100px) {
  .room-strip > .rs-rest:not(:has(> :not([hidden]):not(.rs-sub))) { display: none; }
  .room-strip > .rs-main:has(+ .rs-rest:not(:has(> :not([hidden]):not(.rs-sub)))) { margin-bottom: 12px; border-radius: var(--r); }
}
@media (min-width: 1100px) {
  .room { --rf-h: 74px; --pin: calc(var(--top-h) + var(--clock-h)); }
  .room:has(.rs-main) { --clock-h: 60px; }
  .room-strip > .rs-main { padding: 0 16px; }

  .rp-players .room-filter { position: sticky; top: var(--pin); z-index: 6; box-sizing: border-box; height: var(--rf-h);
    flex-wrap: nowrap; margin: 0; padding: 8px 0 10px; background: var(--bg); }
  .rp-players .room-filter .rf-f { flex: 1 1 0; }
  .rp-players .room-filter .rf-f:first-of-type { flex: 2 1 0; }
  .rp-players .room-filter select { width: 100%; }
  .rp-players .room-filter .btn { flex: none; }
  .rp-players .room-kinds { margin-top: 2px; }
  .rp-players .rpl-cols { position: sticky; top: calc(var(--pin) + var(--rf-h)); z-index: 6; padding-top: 6px;
    background: var(--bg); box-shadow: 0 1px 0 var(--line); }

  /* the side column: My team and the feed (1100 to 1599) */
  .room-grid:has(> .rp-players) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-areas: "players side"; }
  .room-grid:has(> .rp-players) > .room-side, .room-grid:has(> .rp-players) .room-feed { display: flex; flex-direction: column;
    gap: 16px; min-width: 0; }
  /* draft-start (session 242, item 6): --room-tail is the page's height under the room's grid (main's padding, the
     footer; draft_room.js measures it). A sticky column cannot go below its grid area, so at the list's end a column
     taller than the window less the line and that tail was pushed up under the clock line, the queue with it */
  .room-grid:has(> .rp-players) > .room-side { grid-area: side; position: sticky; top: calc(var(--pin) + 12px);
    max-height: calc(100vh - var(--pin) - 24px - var(--room-tail, 0px)); overflow-y: auto; overscroll-behavior: contain; }
  .room-grid:has(> .rp-players) .room-side .rp-team, .room-grid:has(> .rp-players) .room-feed .rp { grid-area: auto; }
  .room.view-board .room-grid > .room-side { display: none; }
  /* the Board view: the Grid's round heads under the clock line (from 1720; 1100 to 1719 they pin in the Grid's own
     box, which fits under the line) */
  .room .grid thead th { top: var(--pin); }
}
@media (min-width: 1100px) and (max-width: 1719px) {
  .room .grid-box { max-height: calc(100vh - var(--pin) - 24px); }
  .room .grid-box .grid thead th { top: 0; }
}
@media (min-width: 1600px) {
  .room-grid:has(> .rp-players) { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, .8fr);
    grid-template-areas: "players team feed"; grid-template-rows: auto; }
  .room-grid:has(> .rp-players) > .room-side { display: contents; }
  .room-grid:has(> .rp-players) .room-side .rp-team { grid-area: team; }
  .room-grid:has(> .rp-players) .room-feed { grid-area: feed; }
  .room-grid:has(> .rp-players) .room-side .rp-team, .room-grid:has(> .rp-players) .room-feed { position: sticky;
    top: calc(var(--pin) + 12px); max-height: calc(100vh - var(--pin) - 24px - var(--room-tail, 0px)); overflow-y: auto;
    overscroll-behavior: contain; }
  .room.view-board .room-grid > .room-side { display: none; }
}
/* turn-heads (session 252, item 3; chat-look Open 3 (b)): from 1100 px the room's panels sit in a column (My team, the
   queue, the Ticker, Draft chat), so each panel's head is the band, as Draft chat's is: four of one kind (was a section
   title over each, the band on the chat alone). The band's look is .card-head's with .ch-t's words. A band over a box
   joins it, its line the box's top edge; My team's leads no box of its own, so it is a band alone and the panel gains
   none. Under 1100 px (the tabs) the heads are as they were. */
@media (min-width: 1100px) {
  .room :is(#team-h, #queue, #mine-h, #ticker-h) { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px;
    padding: 9px 16px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); font-size: 12px;
    font-weight: 600; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
  .room :is(#team-h, #ticker-h) { margin-top: 28px; }   /* a panel's first head level with the Players title (.section-title's) */
  .room :is(#team-h, #queue, #mine-h):has(+ :is(.room-queue, .room-mine:not([hidden]), .calm)),
  .room :is(#team-h, #mine-h):has(+ .room-mine[hidden] + .calm), .room #ticker-h:has(+ .room-ticker) {
    margin-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .room :is(#team-h, #queue, #mine-h) + :is(.room-queue, .room-mine:not([hidden]), .calm),
  .room :is(#team-h, #mine-h) + .room-mine[hidden] + .calm, .room #ticker-h + .room-ticker {
    margin-top: 0; border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
}
/* the Grid from the room's two-view breakpoint (Matt, 22 Nov 2026, session 237, grid-scroll; room.GRID_MIN): the chip, and
   the Grid when asked for, but By round stays the default below GRID_FROM. From GRID_MIN to GRID_FROM - 1 every round column
   keeps the width it has at 1720 (room.GRID_CELL_MIN, a cell with its padding and border), so each name lays out as at 1720
   and the Grid scrolls sideways in its own box: the team column pinned left, the round heads pinned on top of the box
   (a box that scrolls sideways is also the heads' scroll parent, so it has a height of its own); the page never scrolls sideways */
@media (min-width: 1100px) {             /* the Grid's minimum: room.GRID_MIN */
  .lens-switch .lens-grid-link { display: inline-flex; }
  .lens-grid .bl-round { display: none; }
  .lens-grid .bl-grid { display: block; }
}
@media (min-width: 1100px) and (max-width: 1719px) {      /* GRID_MIN to GRID_FROM - 1 */
  .grid-box { overflow: auto; max-height: calc(100vh - var(--top-h) - 24px); overscroll-behavior-x: contain;
    border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
  .grid-box .grid { border: 0; border-radius: 0; min-width: calc(var(--g-team, 64px) + var(--rounds) * 105px); }   /* 105: room.GRID_CELL_MIN */
  .grid-box .grid thead th { top: 0; z-index: 3; }
  .grid-box .grid .g-corner, .grid-box .grid .g-team { position: sticky; left: 0; }
  .grid-box .grid .g-corner { z-index: 4; }
  .grid-box .grid .g-team { z-index: 2; }
}
@media (min-width: 1720px) {             /* the Grid's breakpoint: room.GRID_FROM */
  .lens-switch .lens-grid-link { display: inline-flex; }
  .lens-auto .bl-round, .lens-grid .bl-round { display: none; }
  .lens-auto .bl-grid, .lens-grid .bl-grid { display: block; }
}
/* the draft room's commish controls (item 5, the Draft view) */
#draft-room .room-ctl { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
#draft-room .room-ctl form { margin: 0; }
#draft-room label.chk { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
#draft-room select { max-width: 100%; }
/* draft-start (session 242, decision 1): how the draft starts, two radios under the opening time, a 44 px row each */
.room-start-mode { border: 0; margin: 0; padding: 0; min-width: 0; }
.room-start-mode legend { padding: 0; margin-bottom: 2px; font-size: 12px; color: var(--muted); font-weight: 600;
                          text-transform: uppercase; letter-spacing: .08em; }
.room-start-mode label { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.room-pace-wrap { overflow-x: auto; max-width: 100%; }
/* a sha256 scrolls inside its own line rather than the page sideways, never broken inside (session 165) */
#draft-pool code, #draft-room code { display: inline-block; max-width: 100%; overflow-x: auto; white-space: nowrap; vertical-align: bottom; }
/* session 211 (docs/pick-clock-brief.md item 3): the pick clock card, black, white and grey (the accent only on the
   primary button, when Save has something to save); a row a tier, its menu beside its words; the box of estimates */
.pc .pc-intro { margin: 0 0 12px; }
.pc-rows { list-style: none; margin: 0; padding: 0; }
.pc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap;
          padding: 10px 0; border-top: 1px solid var(--line); }
.pc-row:first-child { border-top: 0; padding-top: 0; }
.pc-label { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 10em; font-size: 15px;
            color: var(--text); text-transform: none; letter-spacing: 0; font-weight: 400; }
.pc-name { font-weight: 600; font-size: 15px; color: var(--text); }
.pc-words { font-size: 13px; color: var(--muted); }
.pc-span label { font-size: 15px; color: var(--text); text-transform: none; letter-spacing: 0; font-weight: 400; }
.pc-finish { font-weight: 600; font-size: 15px; }
.pc-row select { min-height: 44px; flex: 0 0 auto; min-width: 8em; max-width: 100%; }
.pc-value { font-weight: 600; font-variant-numeric: tabular-nums; }
.pc-span { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 12px; }
.pc-span[hidden] { display: none; }
.pc-to-zone { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 8px; white-space: nowrap; }
.pc-span select { min-height: 44px; min-width: 6.5em; }
.pc-warn { color: var(--warn); margin: 0 0 12px; font-size: 14px; }
.pc-box { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--raised); padding: 12px 14px;
          margin: 12px 0 8px; }
.pc-box p { margin: 0 0 6px; }
.pc-box p:last-child { margin-bottom: 0; }
.pc-eyebrow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.pc-mode { font-weight: 600; }
.pc-est { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0 0 6px; }
.pc-est div { display: flex; flex-direction: column; }
.pc-est dt { font-size: 12px; color: var(--muted); }
.pc-est dd { margin: 0; font-size: 18px; font-weight: 600; }
.pc-under, .pc-last { margin: 0 0 8px; }
/* session 248 (pick-times, decision 2): the rule's two radios under the clocks, a 44 px row each, the words wrapping */
.pc-times { border: 0; border-top: 1px solid var(--line); margin: 0 0 12px; padding: 10px 0 0; min-width: 0; }
.pc-times legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; }
.pc-times legend + * { clear: both; }
.pc-time-opt { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 0; font-size: 15px;
               color: var(--text); text-transform: none; letter-spacing: 0; font-weight: 400; }
.pc-time-opt input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; }
.pc-time-opt span { min-width: 0; }
.pc-mode-note, #pc-times-locked { margin: 0 0 4px 30px; }
.pc-mode-note[hidden] { display: none; }
.pc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
/* session 165 (docs/draft-room-3-brief.md item 8): an irreversible action, one unit (_confirm.html): the consequence,
   the tick right above the button, the button; with script that card inside a modal dialog of the room's confirm's
   shape (static/confirm.js). Not red: the status tokens stay for status. */
.cf-card { display: grid; gap: 8px; justify-items: start; margin: 8px 0 0; padding: 12px 14px; background: var(--raised);
  border: 1px solid var(--line-strong); border-radius: var(--r); }
.cf-card p { margin: 0; }
.cf-card .cf-what { font-size: 14px; }
.cf-card label.chk { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.cf-card .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cf-card .actions .btn, .cf-open { min-height: 44px; }
dialog.cf-dlg { width: min(480px, calc(100vw - 2 * var(--gutter))); max-width: none; padding: 0; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); }
dialog.cf-dlg::backdrop { background: rgba(0, 0, 0, .6); }
dialog.cf-dlg:modal, dialog.room-confirm:modal { margin: auto; }      /* .card's margin would pin it top left */
dialog.cf-dlg h2 { margin: 0 0 8px; font-size: 20px; }
dialog.cf-dlg .cf-card { margin: 0; background: none; border: 0; padding: 0; }
.lo-cols { display: flex; gap: 10px; padding: 0 16px 6px; font-size: 11px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; }
.lo-cols span:first-child { min-width: 2em; }

/* session 146 (docs/invites-messages-brief.md item 3): the commish's announcement above Needs you. Black, white, grey; the
   page's accent on the left rule only. The body wraps and keeps its line breaks. */
.announce { border-left: 3px solid var(--heat); margin: 0 0 12px; display: flex; gap: 12px; align-items: flex-start; }
/* session 179 (today-announcements): "From the commish" is a section (a list of cards, avatar left, text right) above Needs you */
.fc-list { list-style: none; margin: 0 0 16px; padding: 0; }
.fc-list .announce:last-child { margin-bottom: 0; }
.fc-logo { flex: none; padding-top: 1px; }
.fc-main { min-width: 0; flex: 1; }
.fc-name { font-weight: 600; }
.announce .an-body a { text-decoration: underline; }
.announce .an-subject { margin: 0 0 4px; font-size: 20px; line-height: 1.3; overflow-wrap: normal; }   /* card-heads: a title head, 4 px over its body */
.announce .an-body { margin: 0 0 8px; white-space: pre-line; overflow-x: auto; scrollbar-width: thin; }   /* a URL breaks at its `/ ? & .` (wbr_urls), any other long word scrolls in its own box */
.announce .an-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.announce .an-foot form { margin: 0; }

/* ---------------------------------------------------------------- the plan page's Defense in three parts
   (docs/plan-defense-brief.md, session 161): Matchups, Settings, Archetypes. Black, white and grey; the accent only for
   a picked defender and the selected tab or chip; warning and danger are the fixed status tokens. */
.def-seg:not([hidden]) { display: inline-flex; max-width: 100%; gap: 2px; padding: 2px; margin: 4px 0 10px; border: 1px solid var(--line);
  border-radius: var(--r-pill); background: var(--surface); }
.def-seg [role=tab] { min-height: 44px; padding: 0 clamp(4px, 2.5vw, 16px); border: 0; border-radius: var(--r-pill); background: none;
  color: var(--text-2); font: 600 clamp(12px, 3.6vw, 14px)/1 var(--font); cursor: pointer; flex: 0 1 auto; min-width: 0; }   /* layout-reds-2: three tabs fit 228 px (390 at 150%) */
.def-seg [role=tab]:hover { color: var(--text); }
.def-seg [role=tab][aria-selected=true] { background: var(--raised); color: var(--text); box-shadow: inset 0 -2px 0 var(--heat); }
@media (max-width: 1279px) {
  #sec-defense.def-tabs[data-part="matchups"] .def-part:not([data-part="matchups"]),
  #sec-defense.def-tabs[data-part="settings"] .def-part:not([data-part="settings"]),
  #sec-defense.def-tabs[data-part="archetypes"] .def-part:not([data-part="archetypes"]) { display: none; }
}
.def-part + .def-part { margin-top: 24px; }
@media (max-width: 1279px) {      /* the tab names the part; its h3 stays for the ids and screen readers */
  #sec-defense.def-tabs .def-sub-head .sub-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; }
  #sec-defense.def-tabs .def-part + .def-part { margin-top: 0; }
}
.def-sub-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
.def-sub-head .sub-h { margin: 12px 0 8px; }
.def-sub-head .def-switch { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--text-2); }
.def-sub-head .def-switch select { min-height: 36px; font-size: 13px; }
#sec-defense.def-js:not(.def-all) .mx-extra { display: none !important; }
.def-pill { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line-strong);
  border-radius: var(--r-pill); background: none; color: var(--text); font: 600 13px/1 var(--font); cursor: pointer; }
.def-pill:hover { border-color: var(--text-2); }
.def-pill[hidden] { display: none; }

/* Matchups */
.mx-sum { display: inline-flex; align-items: center; gap: 10px; }
.mx-bars { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; min-width: 0; gap: 3px; }   /* layout-reds-2: a long roster wraps at 150% */
.mx-bar { width: 14px; height: 4px; border-radius: 2px; background: var(--line-strong); }
.mx-bar.on { background: var(--text); }       /* never the accent: gold reads as the warning, purple as grey */
.mx-bar.dbl { background: var(--warn); }
.mx-dbl-head { margin: 0; }
.mx-dbl-head span { display: block; color: var(--warn); font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.mx-wrap { border: 1px solid var(--line); border-radius: var(--r); }
.mx-table { width: 100%; font-size: 13px; }
main .mx-table th, main .mx-table td { border: 0; border-bottom: 1px solid var(--line); padding: 8px 8px; vertical-align: middle; }
main .mx-table thead th { background: var(--surface); color: var(--text-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
main .mx-table tbody tr:last-child td { border-bottom: 0; }
.mx-table td.mx-p { min-width: 16em; }
.mx-pc { display: flex; align-items: center; gap: 10px; }
.mx-t { white-space: nowrap; }
.mx-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mx-nm { font-weight: 600; }
.mx-nm .hc { margin-left: 4px; }
.mx-sub, .mx-sub-ph { font-size: 12px; color: var(--text-2); }
.mx-sub-ph, .mx-h, .mx-gl { display: none; }
.mx-table .mx-s { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); white-space: nowrap; }
#sec-defense:not(.def-all) .mx-s.lead, #sec-defense.def-all .mx-s.lead-all { color: var(--text); font-weight: 600; }
.mx-gs { display: block; }
.mx-gs select { min-height: 36px; min-width: 13em; font-size: 13px; }
.mx-gs.auto select { border-style: dashed; color: var(--text-2); background: transparent; }
.mx-row.dbl .mx-gs select { border-color: var(--warn); border-style: solid; }
.mx-also { display: block; margin-top: 4px; color: var(--warn); font-size: 12px; }
.mx-also[hidden] { display: none; }
.mx-nogames { margin: 8px 0 0; }
.mx-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 10px; }
.mx-reset { display: inline-flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; }

/* Settings */
.def-gh .dg-t { display: block; }
.def-gh .dg-sub { display: block; font-size: 11px; font-weight: 400; }
.dh-guard { display: block; margin-top: 3px; font-size: 11px; font-weight: 500; color: var(--text); white-space: normal; }
.dh-guard.auto { color: var(--text-2); }
.dh-ovr { display: none; }
.arch-btn .arch-line { display: inline; margin: 0; font-size: inherit; font-weight: 600; color: var(--text); }
.arch-btn .arch-none { color: var(--text-2); }
.arch-btn .arch-line[hidden], .arch-btn .arch-none[hidden] { display: none; }
main .def-matrix .dgrp-h th { position: static; padding: 0; background: var(--bg); text-align: left; }
.dgrp-b { display: flex; align-items: center; width: 100%; min-height: 40px; padding: 6px 10px; border: 0; background: none;
  color: var(--text); font: 600 13px/1.3 var(--font); text-align: left; cursor: pointer; }
.dgrp-b > span { position: sticky; left: 10px; }
.dgrp-b::before { content: ""; flex: none; width: 0; height: 0; margin-right: 8px; border: 5px solid transparent;
  border-left-color: currentColor; transform: translateX(3px); transition: transform var(--t); position: sticky; left: 0; }
.dgrp-b[aria-expanded=true]::before { transform: translate(0, 2px) rotate(90deg); }
.dgrp-b .meta { margin-left: 4px; font-weight: 400; color: var(--text-2); }
.dgrp-b:hover .dgrp-t { text-decoration: underline; }
tbody.def-grp.closed tr[data-k] { display: none; }
.def-matrix select.blank { color: var(--text-2); }
.def-matrix select.blank option { color: var(--text); }
.def-matrix .ro, .mx-table .ro { font-size: 13px; }
.def-matrix .ro.inh { color: var(--text-2); }
.def-matrix .ro.ovr { display: inline-block; padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: 6px;
  background: var(--raised); color: var(--text); }
.def-legend { margin: 8px 0 0; font-size: 12px; }
.def-legend .lg-box { display: inline-block; width: 14px; height: 12px; margin-right: 4px; vertical-align: -1px;
  border: 1px solid var(--line-strong); border-radius: 3px; background: var(--raised); }
.def-legend .lg-inh { margin-left: 14px; color: var(--text-2); }
.def-chips { display: none; }

/* Archetypes */
.arch-intro { margin: 0; }
.arch-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 10px 0 0; padding: 4px 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--raised); font-size: 13px; }
.arch-bar.err { color: var(--bad); }
.arch-bar[hidden] { display: none; }
.arch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 12px; }
.arch-card { display: flex; flex-direction: column; gap: 6px; min-height: 168px; padding: 14px; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--surface); color: var(--text); }
.ac-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ac-name { margin: 0; font-size: 15px; min-width: 0; }
.ac-n { flex: none; font-size: 12px; }
.ac-on { margin: 0; font-size: 13px; color: var(--text); }
.ac-on.muted { color: var(--text-2); }
.ac-rows { display: grid; gap: 2px; margin: 4px 0 0; }
.ac-row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.ac-row dt { color: var(--text-2); }
.ac-row dd { margin: 0; text-align: right; }
.ac-more { margin: 0; font-size: 12px; }
.ac-acts { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: auto; }
.ac-confirm { margin: 0; font-size: 14px; }
.arch-add { align-items: center; justify-content: center; text-align: center; border-style: dashed; background: none;
  color: var(--text-2); font: 400 13px/1.4 var(--font); cursor: pointer; }
.arch-add:hover { border-color: var(--text-2); }
.arch-add .aa-t { color: var(--text); font-size: 15px; font-weight: 600; }
dialog.arch-sheet { position: fixed; inset: 0 0 0 auto; width: min(600px, 100vw); max-width: 100vw; height: 100%;
  max-height: 100%; margin: 0; padding: 0; border: 0; border-left: 1px solid var(--line); background: var(--surface);
  color: var(--text); }
dialog.arch-sheet[open] { display: flex; flex-direction: column; }
dialog.arch-sheet::backdrop { background: rgba(0, 0, 0, .6); }
.as-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 20px;
  border-bottom: 1px solid var(--line); }
.as-head h3 { margin: 0; font-size: 17px; }
.as-body { flex: 1 1 auto; overflow: auto; padding: 16px 20px; }
.as-body .fld { display: flex; flex-direction: column; gap: 4px; margin: 0 0 6px; }
.as-body .fld > span { font-size: 13px; color: var(--text-2); }
.as-body .arch-name, .as-from-sel { min-height: 44px; }
.as-note { margin: 4px 0 12px; }
.as-in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }
.seg2 { display: inline-flex; gap: 2px; padding: 2px; margin: 4px 0 4px; border: 1px solid var(--line); border-radius: var(--r-pill); }
.seg2 .btn { border: 0; border-radius: var(--r-pill); background: none; color: var(--text-2); }
.seg2 .btn[aria-pressed=true] { background: var(--raised); color: var(--text); }
.as-g { margin: 16px 0 4px; font-size: 13px; color: var(--text-2); }
.as-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 220px) 44px; align-items: center; gap: 8px;
  min-height: 48px; border-bottom: 1px solid var(--line); }
.as-row label { font-size: 14px; }
.as-row select { min-height: 40px; width: 100%; }
.as-row select.blank { color: var(--text-2); }
.as-add { display: block; margin-top: 12px; }
.as-add select { width: 100%; min-height: 44px; border-style: dashed; background: transparent; color: var(--text-2); }
.as-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 20px;
  border-top: 1px solid var(--line); }
.as-foot .spacer { flex: 1 1 auto; }
.as-foot .btn.as-del::before { content: none; }      /* text only: the stopped-action square read as a stray glyph here */
.as-foot .ac-confirm { flex: 1 1 100%; }

/* the rail, from 1280: Defense's three sub-links (the jump bar under 1280 has the segmented control instead) */
.step-subs { display: none; }
@media (min-width: 1280px) {
  .def-seg:not([hidden]) { display: none; }
  .plan-rail .step-subs { display: flex; flex-direction: column; margin: 0 0 4px 22px; }
  .plan-rail .stepper a.step-sub { min-height: 30px; padding: 0 10px; gap: 6px; border: 0; color: var(--text-2); font-size: 13px; }
  .plan-rail .stepper a.step-sub:hover { color: var(--text); }
  .step-sub .ss-n { color: var(--text-2); font-size: 12px; }
}

/* the phone: Matchups as one card per opponent, Settings one column at a time */
@media (max-width: 699px) {
  .mx-wrap { border: 0; }
  .mx-table, .mx-table tbody { display: block; }
  .mx-table thead { display: none; }
  .mx-table tr.mx-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0 0 10px;
    padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
  main .mx-table td { display: block; padding: 0; border: 0; }
  main .mx-table td.mx-p { grid-column: 1 / -1; min-width: 0; margin-bottom: 4px; }
  .mx-sub { display: none; }
  .mx-sub-ph { display: block; }
  main .mx-table td.mx-s { display: none; }
  main .mx-table td.mx-s[data-k="pts"], main .mx-table td.mx-s[data-k="reb"], main .mx-table td.mx-s[data-k="ast"],
  main .mx-table td.mx-s[data-k="fg"], main .mx-table td.mx-s[data-k="fg3"] { display: flex; flex-direction: column;
    align-items: center; padding: 6px 2px; border-radius: var(--r-sm); background: var(--raised); font-size: 15px; }
  .mx-h { display: block; font-size: 11px; font-weight: 600; color: var(--text-2); }
  main .mx-table td.mx-g { grid-column: 1 / -1; margin-top: 6px; }
  .mx-gl { display: block; margin-bottom: 4px; font-size: 12px; color: var(--text-2); }
  .mx-gs select { width: 100%; min-width: 0; min-height: 44px; font-size: 15px; }
  .mx-sum { width: 100%; justify-content: space-between; }
  .def-pill { min-height: 44px; }
  .mx-reset .btn { min-height: 44px; }
  .def-sub-head .def-switch { width: 100%; flex-direction: column; align-items: stretch; gap: 4px; }
  .def-sub-head .def-switch select { min-height: 44px; }
  .def-chips:not([hidden]) { display: flex; gap: 6px; overflow-x: auto; margin: 4px -16px 10px; padding: 0 16px 4px;
    scrollbar-width: none; }
  .chip-b { flex: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r-pill);
    background: none; color: var(--text-2); font: 600 13px/1 var(--font); white-space: nowrap; cursor: pointer; }
  .chip-b[aria-pressed=true] { border-color: var(--heat); background: var(--heat-tint); color: var(--text); }
  #def-matrix.def-wrap { max-height: none; overflow: visible; border: 0; margin-top: 0; }
  #def-matrix .def-matrix, #def-matrix .def-matrix thead, #def-matrix .def-matrix tbody, #def-matrix .def-matrix tr { display: block; }
  #def-matrix .def-matrix .ph-off { display: none !important; }
  #def-matrix .def-matrix thead th.def-k { display: none; }
  main #def-matrix .def-matrix thead th[data-uid], main #def-matrix .def-matrix thead th[data-col] { display: block; position: static; padding: 12px; border: 1px solid var(--line);
    border-radius: var(--r); background: var(--surface); text-align: left; }
  #def-matrix .dh-full { display: inline; }
  #def-matrix .dh-short { display: none; }
  #def-matrix .def-matrix .dh-ovr { display: block; margin-top: 6px; font-size: 12px; }
  #def-matrix .arch-btn { width: 100%; min-height: 44px; justify-content: space-between; margin-top: 8px; font-size: 14px; }
  main #def-matrix .def-matrix .dgrp-h th { display: block; margin-top: 12px; border-bottom: 1px solid var(--line); }
  .dgrp-b { min-height: 44px; padding: 6px 0; }
  main #def-matrix .def-matrix tr[data-k] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 55%);
    align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); }
  main #def-matrix .def-matrix tbody.def-grp.closed tr[data-k] { display: none; }
  main #def-matrix .def-matrix tr[data-k] th.def-k { position: static; display: block; max-width: none; padding: 6px 0;
    border: 0; background: none; font-size: 14px; font-weight: 500; }
  main #def-matrix .def-matrix tr[data-k] td { display: block; padding: 4px 0; border: 0; text-align: right; }
  #def-matrix .def-matrix select { width: 100%; max-width: none; min-width: 0; min-height: 44px; font-size: 14px; text-align: right; }
  #def-matrix .def-matrix select.blank { border-color: transparent; background-color: transparent; }
  dialog.arch-sheet { width: 100vw; border-left: 0; }
  .as-row { grid-template-columns: minmax(0, 1fr) minmax(0, 52%) 44px; }
  .ac-acts .icon-btn { min-width: 44px; min-height: 44px; }
}
@media (max-width: 250px) {   /* layout-reds-2: 360 at 150% is 240 px; the longest option (152 px) has to fit the select, so the card and the select give back 16 px */
  main .mx-table tr.mx-row { padding: 12px 6px; }
  .mx-gs select { padding-left: 8px; padding-right: 8px; }
}

/* ---------------------------------------------------------------- game sliders (session 185, docs/sliders-portal-brief.md)
   One list sectioned by the game's tabs; a row is the label then one cell a side shown (User, CPU: two columns from
   768, the side as a chip within the row under it). Status words are the fixed tokens, never the accent. */
.sl-tabs { position: sticky; top: var(--top-h); z-index: 20; background: var(--bg); }
.sl-tab { scroll-margin-top: calc(var(--top-h) + 56px); margin: 0 0 16px; }
.sl-tab-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sl-rows .sl-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px 16px; padding: 10px 16px; }
.sl-label { font-weight: 600; }
.sl-cell { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.sl-ctl { display: flex; align-items: center; gap: 10px; flex: 1 1 100%; min-width: 0; }   /* the status line always under it: the fields align */
.sl-range { flex: 1 1 auto; min-width: 0; accent-color: var(--text-2); }
.sl-num { width: 72px; min-height: 44px; flex: none; }
.sl-st { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; }
.sl-st .sl-game[hidden], .sl-st .sl-reset[hidden], .sl-bar[hidden] { display: none; }
.panel.sliders { max-width: 960px; }
.sl-pend { color: var(--text-2); }
.sl-val { min-width: 32px; }
.sl-heads { display: none; }
.sl-bar-l { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sl-bar-l .meta { line-height: 1.3; }
.sl-trail { margin-top: 24px; }
.sl-read th .sl-was { display: block; font-weight: 400; }
.sl-read td.num, .sl-read th.num { text-align: right; }
.sl-read-tab { margin: 16px 0 8px; font-size: 15px; }
.sl-read tr.sl-grp th { text-align: left; background: none; border-bottom: 0; padding-left: 0; padding-right: 0; }
.sl-shots { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0; list-style: none; }
@media (min-width: 768px) {
  .sl-rows .sl-row { grid-template-columns: minmax(160px, 260px) minmax(0, 1fr); align-items: center; }
  .sl-rows.two .sl-row { grid-template-columns: minmax(160px, 240px) repeat(2, minmax(0, 1fr)); }
  .sl-rows.two .sl-side { display: none; }
  .sl-heads { display: grid; grid-template-columns: minmax(160px, 240px) repeat(2, minmax(0, 1fr)); gap: 16px;
              padding: 0 16px 6px; font-size: 12px; font-weight: 600; color: var(--text-2); text-transform: uppercase; }
}

/* ---------------------------------------------------------------- league news (session 194, docs/news-1-brief.md)
   The commish's stories: the composer (story-edit), the story page (story-page), /news (stories-*), Today's News
   section, More news. app.css's tokens only: no new colour; the kind chip is the page's accent on the pinned story
   alone; status colours never the accent. The story's text column is never wider than 720 px. */
.story-edit { max-width: 720px; }
.story-back { margin: 0 0 8px; }
.story-back a, .story-edit-news { min-height: 44px; display: inline-flex; align-items: center; }
.story-edit-h { margin: 0 0 12px; }
.story-form { display: grid; gap: 16px; }
.story-field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.story-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); padding: 0; }
.story-label .muted { text-transform: none; letter-spacing: 0; font-weight: 400; }
.story-field input[type=text], .story-field select, .story-cap-in, .story-text-in { width: 100%; min-height: 44px; }
.story-text-in { min-height: 140px; resize: vertical; line-height: 1.5; }
.story-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.story-kinds legend { flex: 0 0 100%; margin-bottom: 6px; }
.chip.story-kind { position: relative; height: auto; min-height: 44px; padding: 0 14px; font-size: 14px; cursor: pointer; }
.chip.story-kind input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip.story-kind:has(input:checked) { color: var(--text); border-color: var(--text-2); background: var(--line); }
.chip.story-kind:has(input:focus-visible) { outline: 2px solid var(--heat); outline-offset: 2px; }
.story-blocks { display: grid; gap: 12px; min-width: 0; }
.story-blk { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0 12px 12px;
             min-width: 0; scroll-margin-top: calc(var(--top-h) + 12px); }
.story-blk-h { display: flex; align-items: center; gap: 4px; min-height: 48px; }
.story-blk-h > b { font-size: 14px; }
.story-blk-acts { margin-left: auto; display: flex; gap: 2px; }
.story-ib { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
            border: 1px solid transparent; border-radius: var(--r-sm); background: none; color: var(--text-2);
            cursor: pointer; font-size: 14px; }
.story-ib:hover { color: var(--text); border-color: var(--line-strong); }
.story-ib[disabled] { opacity: .35; cursor: default; }
.story-hint { margin: 6px 0 0; }
.story-thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.story-thumb { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--raised); }
.story-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-thumb-x { position: absolute; top: 0; right: 0; background: rgba(12, 14, 18, .72); color: var(--text); }
.story-upload { margin-top: 10px; }
.story-file { position: absolute; width: 1px; height: 1px; opacity: 0; }
.story-blk:has(.story-file:focus-visible) .story-upload { outline: 2px solid var(--heat); outline-offset: 2px; }
.story-progress { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--text-2); }
.story-progress .bad { font-weight: 400; }
.story-cap-in { margin-top: 2px; }
.story-blk .story-label { display: block; margin-top: 12px; }
.story-err { margin: 6px 0 0; }
.story-addbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.story-check { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); font-size: 15px; cursor: pointer; }
.story-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--text-2); }
.story-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-top: 4px; }
.story-bar #story-publish { margin-left: auto; }
.story-off { margin: 0; }
.story-status:empty { display: none; }
/* the story page: a 720 px column; from 1000 px Story talk and More news in a 22 rem aside, as /watch */
.story-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.story-main { min-width: 0; max-width: 720px; }
.story-band { margin: 0 0 12px; padding: 10px 14px; border: 1px dashed var(--line-strong); border-radius: var(--r-sm);
              background: var(--surface); color: var(--text-2); font-size: 14px; }
.story-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 6px; }
.chip.story-chip, .chip.story-pin-chip { height: 22px; padding: 0 9px; }
.story-title { font-size: 26px; line-height: 1.2; margin: 4px 0 8px; }
.story-dek { margin: 0 0 8px; color: var(--text-2); font-size: 16px; line-height: 1.45; }
.story-page-dek { font-size: 17px; }
.story-by { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 6px 0 14px; font-size: 14px; }
.story-by-name { color: var(--text); }
.story-final { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px 12px;
               padding: 14px 16px; margin: 0 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.sf-team { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; text-align: center; font-size: 14px; }
.sf-score { font-size: 28px; font-weight: 700; white-space: nowrap; color: var(--text-2); }
.sf-score .won { color: var(--text); }
.sf-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 16px; margin: 4px 0 0; }
.sf-links a { min-height: 44px; display: inline-flex; align-items: center; }
.story-blocks-read { display: grid; gap: 16px; margin: 0 0 16px; }
.story-text p { margin: 0 0 12px; font-size: 17px; line-height: 1.6; }
.story-text p:last-child { margin-bottom: 0; }
.story-photos { margin: 0; }
.story-gal { display: grid; gap: 4px; border-radius: var(--r); overflow: hidden; }
.story-cell { position: relative; display: block; min-height: 44px; background: var(--raised); overflow: hidden; }
.story-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-gal.n1 .story-cell { height: 100%; }
.story-gal.n2 { grid-template-columns: 1fr 1fr; }
.story-gal.n2 .story-cell { aspect-ratio: 4 / 5; }
.story-gal.n3 { grid-template-columns: 1fr 1fr; }
.story-gal.n3 .story-cell:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.story-gal.n3 .story-cell { aspect-ratio: 1; }
.story-gal.n4 { grid-template-columns: 1fr 1fr; }
.story-gal.n4 .story-cell { aspect-ratio: 1; }
.story-gal.n5 { grid-template-columns: repeat(6, 1fr); }
.story-gal.n5 .story-cell { grid-column: span 2; aspect-ratio: 1; }
.story-gal.n5 .story-cell:nth-child(-n+2) { grid-column: span 3; aspect-ratio: 4 / 3; }
/* the fifth cell's "+N" is a pseudo-element over the photo (no text node over an <img>: the layout matrix's overlap rule) */
.story-cell[data-more]::after { content: "+" attr(data-more); position: absolute; inset: 0; display: flex; align-items: center;
              justify-content: center; background: rgba(12, 14, 18, .6); color: var(--text); font-size: 24px; font-weight: 700; }
/* a single photo's frame, its aspect clamped to 2:1 and 3:4 in five steps (stories.gallery) */
.story-gal.n1.r-2x1 { aspect-ratio: 2 / 1; } .story-gal.n1.r-16x9 { aspect-ratio: 16 / 9; } .story-gal.n1.r-4x3 { aspect-ratio: 4 / 3; }
.story-gal.n1.r-1x1 { aspect-ratio: 1; } .story-gal.n1.r-3x4 { aspect-ratio: 3 / 4; }
.story-cap { margin: 6px 0 0; }
/* captures-portal (session 199): a played game's Photos strip: the player of the game card, then a 3-column grid of
   the runner's captures (16:9 frames, the first six, "+N" on the sixth by the ::after above), in the main column */
.game-photos { display: grid; gap: 12px; margin: 0 0 16px; min-width: 0; }
.game-photos > .section-title { margin: 0; }
.story-gal.game-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.story-gal.game-strip .story-cell { aspect-ratio: 16 / 9; }
.game-photos-cap { margin: -6px 0 0; }
/* captures-portal: Commish > Media. Grey and white; the page's accent on the active chip and a ticked cell's edge
   only; the kind mark a grey word; 3 columns on a phone, 6 from 1000 px; every target 44 px */
.media-storage { margin: 0 0 12px; }
.media-chips .chip { height: auto; min-height: 44px; padding: 0 14px; font-size: 14px; }
.media-chips .chip.on { color: var(--text); border-color: var(--heat); background: var(--line); }
.media-tools { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 0 0 12px; }
.media-search { display: flex; gap: 8px; flex: 1 1 280px; min-width: 0; margin: 0; }
.media-search input[type=search] { flex: 1 1 auto; min-width: 0; min-height: 44px; }
.media-search .btn, .media-upload .btn, .media-bar .btn { min-height: 44px; }
.media-upload { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; margin: 0; }
.media-file { max-width: 100%; min-height: 44px; font-size: 14px; }
.media-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; }
.media-pick { margin: 0; }
.media-main { display: grid; gap: 16px; min-width: 0; }
.media-days { min-width: 0; }
.media-day { margin: 0 0 20px; min-width: 0; }
.media-day-h { margin: 0 0 6px; }
.media-game { margin: 0 0 14px; min-width: 0; }
.media-gh { font-size: 15px; font-weight: 600; margin: 8px 0 4px; line-height: 1.35; }
.media-pickline { margin: 0 0 6px; }
.media-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
              gap: 6px; }
.media-cell { min-width: 0; display: flex; flex-direction: column; border: 2px solid transparent; border-radius: var(--r-sm); }
.media-cell:has(input:checked) { border-color: var(--heat); }
.media-thumb { display: block; aspect-ratio: 16 / 9; min-height: 44px; background: var(--raised); overflow: hidden;
               border-radius: var(--r-sm); }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-cell.is-hidden .media-thumb img { opacity: .45; }
.media-foot { display: flex; align-items: center; justify-content: space-between; gap: 2px; min-height: 44px; min-width: 0; }
.media-kind { font-size: 12px; line-height: 1.25; min-width: 0; padding-left: 4px; }
.media-tick { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 44px;
              min-height: 44px; cursor: pointer; }
.media-tick input { width: 20px; height: 20px; margin: 0; }
.media-detail { display: grid; gap: 12px; min-width: 0; }
.media-detail-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.media-detail-h .section-title { margin: 0; }
.media-full { width: 100%; height: auto; display: block; border-radius: var(--r); background: var(--raised); }
.media-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; margin: 0; font-size: 14px; }
.media-facts dt { color: var(--text-2); }
.media-facts dd { margin: 0; min-width: 0; }
.media-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.media-acts form { margin: 0; }
.media-acts .btn { min-height: 44px; }
.media-detail.as-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
@media (min-width: 1000px) {
  .media-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .media-main.has-panel { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
  .media-main.has-panel .media-side { grid-column: 2; grid-row: 1; position: sticky; top: 16px; }
  .media-main.has-panel .media-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.story-react { margin: 0 0 8px; align-items: center; }
.story-react form { display: inline; }
.story-tools { margin: 8px 0 0; }
.story-tools form { display: inline; }
.story-aside { min-width: 0; }
.story-aside .section-title:first-child { margin-top: 0; }
.story-confirm { max-width: 720px; }
/* /news and Today: the card and the rows */
.stories-page { max-width: 720px; }
.stories-head { align-items: center; }
.stories-chips { margin: 0 0 12px; }
.stories-chips .chip { height: auto; min-height: 44px; padding: 0 14px; font-size: 14px; }
.stories-chips .chip.on { color: var(--text); border-color: var(--text-2); background: var(--line); }
.stories-sub { margin: 0 0 12px; }
.stories-sub a { min-height: 44px; display: inline-flex; align-items: center; }
.story-card { overflow: hidden; }
.story-cover { display: block; aspect-ratio: 16 / 9; background: var(--raised); }
.story-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-card-b { padding: 12px 16px 14px; min-width: 0; }
.story-card-t { font-size: 20px; line-height: 1.25; margin: 4px 0 6px; }
.story-card-t a { color: var(--text); display: block; }
.story-card-t a:hover { color: var(--heat-text); }
.story-card .story-by { margin: 8px 0 0; }
.story-foot { margin: 8px 0 0; }
.story-counts { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; }
.story-rows { list-style: none; margin: 0 0 16px; padding: 0; background: var(--surface); border: 1px solid var(--line);
              border-radius: var(--r); overflow: hidden; }
.story-rows > li + li { border-top: 1px solid var(--line); }
.story-row-a { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 16px;
               color: var(--text); min-height: 56px; }
.story-row-a:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.story-row-a:hover { background: var(--raised); color: var(--text); }
.story-thumb-img { width: 112px; height: 76px; object-fit: cover; border-radius: 6px; display: block; }
.story-row.small .story-row-a { grid-template-columns: 72px minmax(0, 1fr); }
.story-row.small .story-row-a:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.story-row.small .story-thumb-img { width: 72px; height: 54px; }
.story-row-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.story-row-k { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.story-row-t { font-weight: 600; line-height: 1.3; }
.story-row-c { display: block; }
.stories-pages { display: flex; justify-content: center; gap: 8px; }
.sh-story { margin: 6px 0 0; }
.sh-story a { min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 1000px) {
  .story-title { font-size: 32px; }
  .story-page.with-aside { grid-template-columns: minmax(0, 720px) 22rem; justify-content: space-between; align-items: start; }
}
/* the lightbox (news.js): a native <dialog>, the full image, "3 / 7" and the caption over the bottom, 44 px buttons */
.story-lb { padding: 0; border: 0; background: #000; color: var(--text); width: 100vw; height: 100vh; max-width: 100vw;
            max-height: 100vh; margin: 0; }
.story-lb::backdrop { background: rgba(0, 0, 0, .9); }
.story-lb-in { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.story-lb-img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; user-select: none;
                -webkit-user-drag: none; }
.story-lb-in { touch-action: pan-y; }
.story-lb-cap { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 12px 16px 16px;
                background: linear-gradient(transparent, rgba(0, 0, 0, .8)); font-size: 14px; }
.story-lb-n { font-weight: 700; font-variant-numeric: tabular-nums; }
.story-lb-b { position: absolute; width: 44px; height: 44px; border: 0; border-radius: var(--r-pill);
              background: rgba(28, 34, 43, .85); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; }
.story-lb-b[disabled] { display: none; }
.story-lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.story-lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.story-lb-x { right: 8px; top: 8px; font-size: 16px; }
.tg-news { min-width: 0; }
.tg-news .story-card { margin-bottom: 8px; }
.tg-news .story-rows { margin-bottom: 0; }
/* a composer thumbnail: the photo, the remove button in a row under it (never over the photo) */
.story-thumb { display: flex; flex-direction: column; aspect-ratio: auto; overflow: visible; background: none; }
.story-thumb img { aspect-ratio: 1; height: auto; border-radius: var(--r-sm); }
.story-thumb .story-thumb-x { position: static; width: 100%; background: none; color: var(--text-2); }
.tg-news .home-more a { min-height: 44px; display: inline-flex; align-items: center; }
.story-blk input.story-cap-in { min-height: 44px; width: 100%; }
.story-react .story-react-pick > summary { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
.story-react .tk-pill { min-height: 44px; }
@media (max-width: 359px) {           /* a phone at 130 to 150%: the small thumb, so a row's words keep their room */
  .story-row-a { grid-template-columns: 72px minmax(0, 1fr); padding: 12px; }
  .story-thumb-img { width: 72px; height: 54px; }
}
/* ---------------------------------------------------------------- league news, part 2 (session 195, docs/news-2-brief.md)
   The Player, Team and List cards on the story page and in the composer's preview. Tokens only; the movement marks are
   the fixed status colours (--ok up, --bad down), never the accent. */
.story-pl, .story-tm { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px;
                       min-width: 0; }
.story-dlabel { margin: 0 0 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
                color: var(--text-2); }
.story-pl-who { font-size: 20px; font-weight: 700; line-height: 1.25; }
.story-pl-who a.pl-link { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.story-pl-who .plw-nohs { align-items: center; gap: 12px; }
.story-pl .hs.lg { width: 64px; height: 64px; }
.story-pl-team { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 10px 0 0; font-size: 14px; }
.story-pl-span { margin: 10px 0 0; }
.story-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 8px 0 0; }
.story-fig { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.story-fig b { font-size: 24px; line-height: 1.1; white-space: nowrap; color: var(--text); }
.story-fig span { font-size: 12px; color: var(--text-2); }
.story-tm { display: flex; align-items: center; gap: 16px; }
.story-tm-b { min-width: 0; }
.story-tm-name { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.25; }
.story-tm-label { margin: 4px 0 0; font-size: 16px; color: var(--text); }
.story-tm-gms { margin: 4px 0 0; }
.story-list { min-width: 0; }
.story-list-h { font-size: 18px; margin: 0 0 4px; }
.story-list-over { margin: 0 0 8px; }
.story-rk { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line);
            border-radius: var(--r); font-size: 14px; }
.story-rk th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-2); padding: 8px 10px;
               border-bottom: 1px solid var(--line); }
.story-rk td { padding: 8px 10px; vertical-align: middle; border-top: 1px solid var(--line); }
.story-rk tbody tr:first-child td { border-top: 0; }
.story-rk .rk-n { width: 1%; text-align: right; color: var(--text-2); }
.story-rk .rk-who { min-width: 0; }
.story-rk .rk-who a.pl-link { display: inline-flex; align-items: center; gap: 8px; }
.story-rk .rk-team { display: inline-flex; align-items: center; gap: 8px; }
.story-rk .rk-sub { display: block; margin-top: 2px; font-size: 12px; }
.story-rk .rk-f, .story-rk .rk-m { text-align: right; white-space: nowrap; }
.story-rk th.rk-f, .story-rk th.rk-m { text-align: right; }
.story-rk .rk-in { display: none; }
.story-rk .rk-fig { white-space: nowrap; }
@media (max-width: 599px) {          /* a phone: the Move under the rank, the figures and last week under the name */
  .story-rk .rk-wide { display: none; }
  .story-rk .rk-in { display: block; }
  .story-rk .rk-n .rk-in { font-size: 12px; margin-top: 2px; white-space: nowrap; }
  .story-rk .rk-figs { margin-top: 4px; font-size: 13px; color: var(--text); }
}
.story-mv.up { color: var(--ok); }
.story-mv.down { color: var(--bad); }
.story-mv.none { color: var(--muted); }
/* the composer's data blocks: the picker row, the span chips, the List's rows with arrows and Move, the confirm */
.sh-story { display: flex; flex-wrap: wrap; gap: 0 16px; }
.story-preview { margin-top: 12px; }
.story-row-g { display: block; margin: 0; }
.story-card-b > .story-row-g { margin: 2px 0 0; }
.story-held { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }
.story-held > span { flex: 1 1 16rem; }
.story-preview .story-pl, .story-preview .story-tm { background: var(--raised); }
.story-pick-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; }
.story-pick-row > .story-label { flex: 0 0 100%; margin: 0; }
.story-pick-row select { flex: 1 1 14rem; min-width: 0; min-height: 44px; }
.story-pick-row .pb-combo { flex: 1 1 14rem; min-width: 0; }
.story-pick-row .pb-input { min-height: 44px; width: 100%; }
.story-spans { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; border: 0; min-width: 0; }
.story-spans legend { flex: 0 0 100%; margin-bottom: 6px; }
.story-line { margin: 10px 0 0; }
.story-lrows { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.story-lrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "n who mv" "acts acts acts";
              align-items: center; gap: 4px 10px; padding: 6px 8px; background: var(--raised); border-radius: var(--r-sm);
              scroll-margin-top: calc(var(--top-h) + 12px); }
.story-lrow-n { grid-area: n; color: var(--text-2); min-width: 1.5em; text-align: right; }
.story-lrow-who { grid-area: who; display: flex; flex-direction: column; min-width: 0; }
.story-lrow-who > b, .story-lrow-who > .pl-n { font-weight: 600; }
.story-lrow-who .tlogo { margin-right: 6px; }
.story-lrow-mv { grid-area: mv; }
.story-blk input.story-mv-in { width: 5.5em; min-height: 44px; height: 44px; text-align: right; }
.story-blk select { min-height: 44px; height: 44px; max-width: 100%; }
.story-lrow-acts { grid-area: acts; display: flex; justify-content: flex-end; gap: 2px; }
.story-confirm-line { margin: 12px 0 0; padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: var(--r-sm);
                      display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.story-confirm-line p { flex: 0 0 100%; margin: 0; }
.story-pick-open { margin-top: 10px; }
.story-pick-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px;
                   grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.story-pick-cell { display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
/* captures-portal: the picker's kind chips and its groups (This game, the game days, Your uploads); the grid is a
   grid item of .story-form, so min-width 0 keeps the chips' scrolling row from widening the page */
.story-pickgrid { min-width: 0; }
.story-pick-chips { margin: 0 0 8px; min-width: 0; max-width: 100%; }
.story-pick-chips .chip { height: auto; min-height: 44px; padding: 0 14px; font-size: 14px; }
.story-pick-chips .chip.on { color: var(--text); border-color: var(--heat); background: var(--line); }
.story-pick-group { margin: 12px 0 0; min-width: 0; }
.story-pick-gh { font-size: 15px; font-weight: 700; margin: 0; }
.story-pick-sub { margin: 8px 0 0; }
.story-pick-kind { font-size: 12px; line-height: 1.25; }
.story-pick-img { display: block; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--raised); }
.story-pick-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-pick-foot { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.story-pick-foot input { width: 20px; height: 20px; margin: 0; accent-color: var(--text-2); }
.story-pick-cell:has(input:checked) .story-pick-img { outline: 2px solid var(--text); outline-offset: -2px; }
.story-pick-dlg { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 16px; border: 1px solid var(--line);
                  border-radius: var(--r); background: var(--surface); color: var(--text); }
.story-pick-dlg::backdrop { background: rgba(0, 0, 0, .7); }
.story-pick-dlg .story-bar { position: sticky; bottom: -16px; background: var(--surface); padding: 8px 0 0; }
@media (min-width: 600px) {
  .story-lrow { grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "n who mv acts"; }
}
@media (max-width: 479px) {          /* a phone: the strip wraps to two rows of three; the figures stay on one line */
  .story-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 10px; }
  .story-rk td, .story-rk th { padding: 8px 6px; }
}
@media (min-width: 1000px) {
  .story-pl .hs.lg { width: 96px; height: 96px; }
  .story-pl-who { font-size: 24px; }
}
/* session 204 (docs/stretch-run-brief.md item 4): the Playoffs page, projected. One column, the GM's conference first;
   from 1000 px West left and East right. A card is two team rows (seed, logo, nickname, W-L, the row's chips) in Game
   1's order, a placeholder row muted with no logo; the play-in's flow in words under its cards. No lines, no tree.
   A name never splits: the row wraps its chips onto a second line before it squeezes the name. */
.po-today { font-size: 18px; font-weight: 600; margin: 4px 0 4px; }
.po-lead { margin: 0 0 16px; }
.po-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.po-conf { min-width: 0; }
.po-conf > .section-title { margin: 0 0 4px; }
.po-sub { font-size: 12px; font-weight: 600; color: var(--muted); margin: 12px 0 8px; }
.po-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.po-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.po-card-h { margin: 0; padding: 8px 12px 0; font-size: 11px; color: var(--muted); }
.po-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 44px; padding: 6px 12px;
  color: var(--text); text-decoration: none; }
a.po-row:hover .po-name { text-decoration: underline; }
.po-row + .po-row { border-top: 1px solid var(--line); }
.po-seed { flex: none; width: 20px; text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; }
.po-name { flex: 1 1 auto; white-space: nowrap; }
.po-ph { color: var(--muted); }
.po-ph .po-seed { width: 48px; }                /* the seed and the logo's room: the words line up with the names */
.po-wl { flex: none; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.po-chips { flex: none; margin-left: auto; display: inline-flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.po-chips .st-chip + .st-chip { margin: 0; }
.po-note { margin: 0; padding: 8px 12px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.4;
  color: var(--text-2); }
.po-ties { margin: 12px 0 0; }
@media (min-width: 1000px) {
  .po-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  #po-west { grid-column: 1; grid-row: 1; }
  #po-east { grid-column: 2; grid-row: 1; }
}
/* session 205 (docs/postseason-pages-brief.md items 1 and 5): the real bracket. One card (_series_card.html) in two
   layouts, chosen by CSS alone: under 1000 px a list grouped by round; from 1000 px the tree, seven columns (West's
   three rounds, the Finals, East's three) and eight equal rows, each card centred in the rows it spans, so the grey
   rules meet at the card centres; the play-in under each side. A name never splits and is never cut: a tree row puts
   the name on its own line under the seed, the logo and the wins (the card wraps to two lines, decision 5: a seventh
   of the 1280 px column is too narrow for "Timberwolves" beside a seed, a logo and the wins). Both rows of a card are
   the same height (grid-auto-rows: 1fr). */
.brk-stage { font-size: 18px; font-weight: 600; margin: 4px 0 4px; }
.brk-read { margin: 0 0 16px; }
.brk-group + .brk-group { margin-top: 24px; }
.brk-group > .section-title { margin: 0 0 4px; }
.brk-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.brk-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; width: 100%;
  position: relative; }
.brk-link { display: block; color: var(--text); text-decoration: none; border-radius: var(--r); }
a.brk-link:hover .brk-name { text-decoration: underline; }
.brk-card-h { margin: 0; padding: 8px 12px 0; font-size: 11px; color: var(--muted); }
.brk-rows { display: grid; grid-auto-rows: 1fr; }
.brk-row { display: grid; grid-template-columns: 20px auto minmax(0, 1fr) auto; grid-template-areas: "seed logo name w";
  align-items: center; column-gap: 8px; min-height: 44px; padding: 6px 12px; }
.brk-row + .brk-row { border-top: 1px solid var(--line); }
.brk-seed { grid-area: seed; text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; }
.brk-logo { grid-area: logo; display: inline-flex; }
.brk-name { grid-area: name; min-width: 0; white-space: normal; overflow-wrap: normal; word-break: keep-all; }
.brk-w { grid-area: w; font-weight: 600; font-variant-numeric: tabular-nums; }
.brk-row.won .brk-name, .brk-row.won .brk-w { font-weight: 700; }
.brk-row.lost { color: var(--text-2); }
.brk-ph { color: var(--muted); grid-template-areas: "seed name name name"; }
.brk-ph .brk-name { grid-column: 2 / -1; }
.brk-words { margin: 0; padding: 8px 12px 0; font-weight: 600; }
.brk-next { margin: 0; padding: 4px 12px 8px; font-size: 12px; line-height: 1.4; color: var(--text-2); }
.brk-words + .brk-next { padding-top: 2px; }
.brk-rows + .brk-next { padding-top: 8px; }
.brk-watch { margin: 0; padding: 0 12px 8px; }
.brk-note { margin: 0; padding: 8px 12px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.4;
  color: var(--text-2); }
.brk-tree, .brk-tree-pi { display: none; }
@media (min-width: 1000px) {
  .brk-list { display: none; }
  .brk-tree { --brk-gap: 16px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-rows: auto repeat(8, 1fr); column-gap: var(--brk-gap); }
  .brk-c1 { grid-column: 1; } .brk-c2 { grid-column: 2; } .brk-c3 { grid-column: 3; } .brk-c4 { grid-column: 4; }
  .brk-c5 { grid-column: 5; } .brk-c6 { grid-column: 6; } .brk-c7 { grid-column: 7; }
  .brk-y1 { grid-row-start: 2; } .brk-y3 { grid-row-start: 4; } .brk-y5 { grid-row-start: 6; } .brk-y7 { grid-row-start: 8; }
  .brk-s2 { grid-row-end: span 2; } .brk-s4 { grid-row-end: span 4; } .brk-s8 { grid-row-end: span 8; }
  .brk-col-h { grid-row: 1; margin: 0 0 8px; font-size: 11px; font-weight: 600; color: var(--muted); line-height: 1.3; }
  .brk-slot { display: flex; align-items: center; position: relative; padding: 4px 0; min-width: 0; }
  :is(.brk-tree, .brk-tree-pi) .brk-card-h { padding: 6px 8px 0; }
  :is(.brk-tree, .brk-tree-pi) .brk-row { grid-template-columns: 16px auto minmax(0, 1fr) auto; grid-template-areas: "seed logo . w" "name name name name";
    column-gap: 4px; row-gap: 2px; min-height: 0; padding: 4px 8px; font-size: 13px; }
  :is(.brk-tree, .brk-tree-pi) .brk-ph { grid-template-areas: "name name name name"; }
  :is(.brk-tree, .brk-tree-pi) .brk-ph .brk-name { grid-column: 1 / -1; }
  :is(.brk-tree, .brk-tree-pi) .brk-ph .brk-seed { display: none; }
  :is(.brk-tree, .brk-tree-pi) .brk-seed { font-size: 11px; }
  :is(.brk-tree, .brk-tree-pi) .brk-words { padding: 6px 8px 0; font-size: 12px; }
  :is(.brk-tree, .brk-tree-pi) .brk-next { padding: 2px 8px 6px; font-size: 11px; }
  :is(.brk-tree, .brk-tree-pi) .brk-rows + .brk-next { padding-top: 6px; }
  :is(.brk-tree, .brk-tree-pi) .brk-watch { padding: 0 8px 6px; }
  :is(.brk-tree, .brk-tree-pi) .brk-note { padding: 6px 8px; font-size: 11px; }
  /* the rules: a stub from each card's centre into the gap toward the Finals, a stub back from each inner card, and the
     join: a vertical on an inner card's outer side from the centre of its first feeder (25%) to its second (75%) */
  .brk-slot.brk-w::after, .brk-slot.brk-f::after, .brk-slot.brk-e::before, .brk-slot.brk-f::before,
  .brk-slot.brk-w:not(.brk-r1)::before, .brk-slot.brk-e:not(.brk-r1)::after {
    content: ""; position: absolute; top: 50%; width: calc(var(--brk-gap) / 2); border-top: 1px solid var(--line); }
  .brk-slot::after { right: calc(var(--brk-gap) / -2); }
  .brk-slot::before { left: calc(var(--brk-gap) / -2); }
  .brk-join { position: absolute; top: 25%; bottom: 25%; border-left: 1px solid var(--line); }
  .brk-w .brk-join { left: calc(var(--brk-gap) / -2); }
  .brk-e .brk-join { right: calc(var(--brk-gap) / -2); }
  .brk-tree-pi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 24px; }
  .brk-pi-side .brk-col-h { margin: 0 0 8px; }
  .brk-pi-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: start; }
}
/* session 205 (docs/postseason-pages-brief.md items 4 and 7): the champions card (Today's top and the Playoffs page's
   header), the season-over line's second line */
.champ-card { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; margin: 0 0 16px; }
.champ-card > .tlogo { flex: none; }
/* postseason-pages-fix item 1: too narrow for the logo beside the words (360 at 150% text), the words go under it */
.champ-id { flex: 1 1 200px; min-width: 0; }
.champ-h { margin: 0 0 4px; font-size: 20px; line-height: 1.3; }
.champ-word { color: var(--heat); }
.champ-team, .champ-score { white-space: nowrap; }
.champ-gm, .champ-leader { margin: 4px 0 0; }
.champ-leader { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.champ-card .textlinks { margin: 8px 0 0; }
.season-line-2 { display: block; }
/* session 205 (item 7): every postseason team's finish under the bracket */
.brk-finishes { margin-top: 24px; }
.brk-fin-list { list-style: none; margin: 0; padding: 0; columns: 1; }
.brk-fin-list li { padding: 6px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
@media (min-width: 1000px) { .brk-fin-list { columns: 2; column-gap: 32px; } }
/* session 205 (item 6): the Desk's Postseason card */
.brk-desk-stage { margin: 0 0 4px; }
.brk-desk-slate, .brk-desk-mm { margin: 0 0 8px; padding-left: 20px; }
.brk-desk-slate li, .brk-desk-mm li { margin: 2px 0; }
#ps-desk-read { margin: 8px 0 4px; font-weight: 600; }
/* session 205 (item 5): /stream/bracket, the tree alone on black at 1920 x 1080 (an OBS browser source) */
html.stream-bracket, .sb-body { background: #000; margin: 0; }
.sb-main { box-sizing: border-box; width: 1920px; height: 1080px; padding: 64px 96px; overflow: hidden; }
.sb-stage { margin: 0 0 24px; font-size: 36px; font-weight: 700; color: var(--text); }
.sb-main .brk-tree { --brk-gap: 32px; }
.sb-main .brk-tree .brk-row { font-size: 18px; }
.sb-main .brk-tree .brk-words { font-size: 16px; }
.sb-main .brk-tree .brk-next, .sb-main .brk-tree .brk-col-h { font-size: 14px; }
.sb-calm { margin: 0; font-size: 28px; color: var(--text-2); }
.team-finish { margin: 2px 0 0; font-size: 13px; color: var(--text-2); }
.team-finish.is-champ { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; }
.team-finish.is-champ .icon { width: 16px; height: 16px; color: var(--heat); }
/* session 205 (docs/postseason-pages-brief.md item 2): the series page. The teams, the sentence large, home court and
   the format small; the games one row each (played rows link, "if needed" muted); the leaders three a stat. */
.srs-teams { margin: 0 0 4px; font-size: 16px; }
.srs-words { margin: 8px 0 4px; font-size: 24px; font-weight: 700; line-height: 1.2; }
.srs-note { margin: 0 0 4px; color: var(--text-2); }
.srs-meta { margin: 0 0 24px; }
.srs-list { list-style: none; margin: 0 0 24px; padding: 0; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); }
.srs-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 12px; min-height: 44px; }
.srs-row + .srs-row { border-top: 1px solid var(--line); }
.srs-a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; flex: 1 1 auto; min-width: 0; padding: 10px 0;
  color: var(--text); text-decoration: none; }
a.srs-a:hover .srs-m { text-decoration: underline; }
.srs-h { flex: none; width: 64px; font-weight: 600; }
.srs-m { flex: 1 1 auto; min-width: 0; }
.srs-s { flex: none; color: var(--text-2); }
.srs-if-needed { color: var(--muted); }
.srs-if-needed .srs-h { font-weight: 400; }
.srs-lead-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 24px; }
.srs-lead-list { list-style: none; margin: 0; padding: 0; }
.srs-lead-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px;
  border-bottom: 1px solid var(--line); }
.srs-lead-who { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
.srs-lead-v { flex: none; font-weight: 600; }
@media (min-width: 1000px) {
  .srs-lead-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}
@media (min-width: 1280px) {
  .brk-tree { --brk-gap: 20px; }
  :is(.brk-tree, .brk-tree-pi) .brk-row { font-size: 14px; }
}
/* session 230 (docs/schedule-view-brief.md item 3): the commish's Schedule view. The form is the pick clock's card
   (.pc rows); the preview beside it from 1000 px, under it on a phone. Black, white and grey: the accent only on the
   primary button. A day ruler is midnight to midnight in league time: the hours the game machine cannot play hatched
   grey, each game a block; a moved tip in the warn token and a tip not played in the bad token, each with its line in
   words under the ruler (colour is never the only signal). */
.sched-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 4px; }
.sched-head .section-title { margin: 0; }
.sched-from { font-weight: 600; margin: 0 0 12px; }
.sched-grid { display: grid; gap: 16px; }
.sched-grid > .card { margin: 0; min-width: 0; }
@media (min-width: 1000px) {
  .sched-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
}
.sched-card .pc-row input[type=date] { min-height: 44px; max-width: 100%; }
.sched-days { display: flex; flex-wrap: wrap; gap: 6px; }
.sched-day-toggle { position: relative; display: inline-flex; }
.sched-day-toggle input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sched-day-toggle span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px;
  min-height: 44px; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: line-through; }
.sched-day-toggle input:checked + span { background: var(--raised); color: var(--text); border-color: var(--text-2);
  text-decoration: none; }
.sched-day-toggle input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }
.sched-pair { display: flex; flex-wrap: wrap; gap: 8px; max-width: 100%; }
.sched-pair select { min-height: 44px; min-width: 7em; }
.sched-offs-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 100%; }
.sched-offs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sched-offs:empty { display: none; }
.chip.sched-off { height: auto; min-height: 44px; padding: 0 0 0 12px; }
.sched-drop { min-width: 44px; min-height: 44px; border: 0; background: none; color: var(--text-2); font-size: 18px;
  cursor: pointer; }
.sched-add { display: flex; flex-wrap: wrap; gap: 8px; }
.sched-add input[type=date] { min-height: 44px; max-width: 100%; }
.sched-reason { margin: 12px 0 0; }
.sched-back { margin: 8px 0 0; }
.sched-back > summary { display: inline-flex; min-height: 44px; list-style: none; cursor: pointer; }
.sched-back > summary::-webkit-details-marker { display: none; }
.sched-preview { min-width: 0; }
.sched-h { font-size: 15px; margin: 0 0 4px; }
.sched-day + .sched-day, .sched-season { margin-top: 18px; }
.ruler { display: block; width: 100%; height: 36px; margin: 8px 0 2px; border: 1px solid var(--line);
  border-radius: var(--r-sm); overflow: hidden; box-sizing: border-box; }
.ruler-bg { fill: var(--raised); }
.ruler-hatch { fill: var(--line-strong); }
.ruler-block { fill: var(--text-2); stroke: var(--surface); stroke-width: 1; }
.ruler-block.moved { fill: var(--warn); }
.ruler-block.dropped { fill: var(--bad-soft); stroke: var(--bad); stroke-dasharray: 3 2; }
.ruler-n { fill: var(--surface); font-size: 11px; font-weight: 700; }
.ruler-n.moved { fill: #0A0A0B; }
.ruler-marks { display: flex; font-size: 11px; color: var(--muted); }
.ruler-marks span { flex: 0 0 25%; }
.sched-tips { margin: 6px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.sched-yours { margin: 2px 0 0; }
.sched-lines { list-style: none; margin: 6px 0 0; padding: 0; font-size: 14px; }
.sched-lines li { position: relative; margin: 3px 0; padding-left: 16px; }
.sched-lines li::before { content: ""; position: absolute; left: 0; top: .4em; width: 9px; height: 9px; border-radius: 2px; }
.sched-lines .sched-moved::before { background: var(--warn); }
.sched-lines .sched-dropped { color: var(--bad); }
.sched-lines .sched-dropped::before { border: 1px dashed var(--bad); background: var(--bad-soft); }
.sched-season p { margin: 0 0 6px; }
.sched-bad { border: 1px solid var(--bad); border-left: 3px solid var(--bad); background: var(--bad-soft);
  border-radius: var(--r-sm); padding: 10px 12px; }
.sched-bad-h { margin: 0 0 4px; font-weight: 600; }
.sched-bad ul { margin: 0; padding-left: 18px; }
