@import url("/static/resource/brand.css");
/* Player design system: dark, broadcast-style, built for one hand on a phone. Layers are separated by surface
   colour (a hairline only between the rows of a list), not by outlines or shadows. The colours themselves (navy, gold, white) and the wordmark are the brand's,
   in brand.css above, which tools/build_brand.py makes from common/brand/brand.json. */
@font-face{font-family:"Barlow Condensed";font-weight:600;font-display:swap;src:url(/static/resource/fonts/barlow-condensed-600.woff2) format("woff2")}
@font-face{font-family:"Barlow Condensed";font-weight:700;font-display:swap;src:url(/static/resource/fonts/barlow-condensed-700.woff2) format("woff2")}
@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(/static/resource/fonts/inter-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{
  --display:"Barlow Condensed","Arial Narrow",system-ui,sans-serif;
  --body:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  /* sizes: the tap target (small, normal, large), the page gutter, and list row heights (60 is the standard row).
     The gutter grows to clear a notch or Dynamic Island when a phone is on its side; it takes the larger side on both sides,
     so what is centred stays centred. */
  --box-grey:#8A97AB;--gutter:max(16px,env(safe-area-inset-left,0px),env(safe-area-inset-right,0px));
  /* control heights, four sizes (x-small 32 and small 36 get a 44 px tap area from a ::before; see "Button sizes" at the foot):
     xs: quiet in-card actions (reaction chips, number pills, 1 s steps); sm: in-row choices (Going, filters, chips); default: every button, icon button, segmented control; lg: the one main action of a screen */
  --ctl-xs:32px;--ctl-sm:36px;--ctl:44px;--ctl-lg:52px;--tap:var(--ctl);--tap-sm:var(--ctl-sm);--tap-lg:var(--ctl-lg);
  --row:60px;--row-tight:52px;--row-tall:76px;
  /* the reading column and the wide (grid, two-column) column: every screen and panel lays out in one of the two, from the same left edge */
  --content:760px;--content-wide:1040px;
  --header-h:52px;--sched-head-h:calc(var(--tap) + var(--sp-4) + var(--sp-3) + var(--ctl-xs) + var(--sp-4));--dayhead-h:40px;--tabs-h:58px;--tabs-bump:0px;
  /* spacing, on a 4 px grid: 4 (sp-2), 8 (sp-4), 12 (sp-6), 16 (sp-7), 20 (sp-9), 24 (sp-8), 32 (sp-10), 40 (sp-11). By intent: card padding 16 (sp-7),
     gap between sections 24 (sp-8), between lists or cards 12 (sp-6), inside a row of controls 8 (sp-4); a flat row keeps its 14 px / 0 padding.
     sp-1 (2) and sp-3 (6) are for gaps inside an icon or a tag only. sp-5 (10) is off the grid: only the replay page, which is being redone, still uses it. */
  --sp-1:2px;--sp-2:4px;--sp-3:6px;--sp-4:8px;--sp-5:10px;--sp-6:12px;--sp-7:16px;--sp-8:24px;--sp-9:20px;--sp-10:32px;--sp-11:40px;
  /* three corner sizes (controls and thumbnails; cards and lists; sheets), a small one for tags, and the pill */
  --r-ctl:10px;--r-card:14px;--r-sheet:20px;--r-tag:6px;--r-sm:8px;--r-pill:999px;
  /* buttons are pills; controls you type in keep --r-ctl */
  --r-btn:var(--r-pill);
  /* one type scale, in rem so the phone's or browser's text size setting applies (12 to 40 px at the default 16 px root; iPhones below) */
  --fs-12:.75rem;--fs-13:.8125rem;--fs-14:.875rem;--fs-16:1rem;--fs-20:1.25rem;--fs-28:1.75rem;--fs-32:2rem;--fs-40:2.5rem;
  /* text styles, used as font:var(--t-label); only combinations that repeat are named */
  --t-caption:600 var(--fs-12) var(--body);--t-caption-strong:700 var(--fs-12) var(--body);
  --t-label:600 var(--fs-14) var(--body);--t-label-strong:700 var(--fs-14) var(--body);
  /* the one section label (overline): 12 px, 600, tracked, muted */
  --t-overline:600 var(--fs-12)/1.2 var(--body);
  --t-body-semi:600 var(--fs-16) var(--body);--t-body-strong:700 var(--fs-16) var(--body);
  --t-title:700 var(--fs-20) var(--display);--t-number:700 var(--fs-28)/1 var(--display);--t-heading:700 var(--fs-28) var(--display);--t-hero:700 var(--fs-40) var(--display);
  --hair:rgba(184,197,217,.12);
  /* the edge of a control you type in or tick (fields, unticked boxes): strong enough to find at a glance (3:1 or more on --bg and --surface).
     Hairlines between the rows of a list stay --hair and --line. Sideline mode (below) also outlines cards and lists with it. */
  --line-strong:#5F80AD;
  /* a 1 px light along the top of a list or card, so it still lifts off the page in sunlight */
  --edge-light:inset 0 1px 0 rgba(255,255,255,.06);
  /* your own chat bubbles: white text on it is 5.9:1, and it stands 1.7:1 apart from everyone else's (--raised) */
  --mine:#2B62B8;
  /* status pills (.pill): the tinted backgrounds, and the lighter text where the tone itself is too dark on its tint */
  --tint-good:rgba(91,211,140,.16);--tint-gold:rgba(255,199,44,.16);--tint-info:rgba(91,194,231,.16);--tint-violet:rgba(167,139,250,.2);
  /* event types (the Events band, the type chips, the search tags): a tint and its text colour for each */
  --ty-practice-bg:#222E3E;--ty-practice-fg:#D5DEEA;--ty-league-bg:#214D42;--ty-league-fg:#A3F2C4;--ty-nonleague-bg:#10272E;--ty-nonleague-fg:#B4D6C2;
  --ty-playoffs-bg:#343425;--ty-playoffs-fg:#FFD666;--ty-tournament-bg:#2E3157;--ty-tournament-fg:#D9CCFF;--ty-other-bg:#34302E;--ty-other-fg:#FFC891;
  --tint-danger:rgba(255,138,138,.16);--tint-warn:rgba(255,176,97,.16);--tint-live:rgba(225,29,46,.22);
  --on-tint-good:var(--good);--on-tint-gold:var(--accent-text);--on-tint-warn:var(--warn);
  --on-tint-info:#9BDDF3;--on-tint-violet:#D2C4FF;--on-tint-danger:#FFB8B8;--on-tint-live:#FFA3AA;
  /* what you chose, where a white fill would be too loud (your reaction on a message) */
  --tint-chosen:rgba(255,255,255,.2);
  /* the safe areas: the status bar and home bar, and on a phone on its side the notch and the rounded corners */
  --vb-h:0px;--top:calc(env(safe-area-inset-top,0px) + var(--vb-h));--bottom:env(safe-area-inset-bottom,0px);--left:env(safe-area-inset-left,0px);--right:env(safe-area-inset-right,0px);
  /* over video: white text, the black behind a picture, and the dark glass controls and the score bug are drawn in.
     Each strength in use has its own token, as merging them would change the pixels. */
  --on-video:#fff;--video-bg:#000;--ink:#0A0E14;
  --glass:rgba(10,14,20,.86);--glass-navy:rgba(11,31,58,.78);
  --veil-60:rgba(5,12,23,.6);--veil-72:rgba(5,12,23,.72);--veil-75:rgba(5,12,23,.75);--veil-82:rgba(5,12,23,.82);--veil-92:rgba(5,12,23,.92);
  --scrim:rgba(0,0,0,.6);
  /* the light pop-up on the replay timeline: a white card with its own darker green and red */
  --paper:#fff;--on-paper:var(--navy);--on-paper-muted:#3B4D66;--good-on-paper:#2BAE66;--danger-on-paper:#D64550;
  /* sports: each has a colour, used for its icon wherever it appears (.sport-* sets --sport) */
  --sport-hockey:#4CC2FF;--sport-baseball:#C4A1FF;--sport-softball:#D4EE5A;--sport-american-football:#D9955F;
  --sport-basketball:#FF8A3D;--sport-soccer:#5EDC8B;--sport-lacrosse:#FF7AC6;
  --sport-volleyball:#F5C542;--sport-flag-football:#2DD4BF;--sport-field-hockey:#F2706B;
  /* the family schedule's team colours, assigned by index (a person can also pick a custom colour; text on a team colour then is --on-c, set by colours.js) */
  --team-0:#5BC2E7;--team-1:#F2A65A;--team-2:#5BD38C;--team-3:#A78BFA;--team-4:#D5DCE6;--team-5:#E8D44D;--team-6:#2DD4BF;--team-7:#FF8A8A;--team-8:#F472B6;
  /* the replay's marks: a play that is not a score, ours (sky blue) and theirs (grey); scores stay green and red */
  --tick-us:#5BC2E7;--tick-them:#9AA5B5;
  /* Coaches Corner line colours (.lc-0 to .lc-4) and the crowd-noise levels */
  --lc-0:#5FA8FF;--lc-1:#F2A65A;--lc-2:#7BD88F;--lc-3:#C792EA;--lc-4:#FF8A8A;
  --heat-1:#9AD1F5;--heat-2:var(--gold);--heat-3:#FF5A36;
  /* rings (selected or focused), small lifts, menus and sheets */
  --ring:inset 0 0 0 2px var(--accent);--ring-fg:inset 0 0 0 2px var(--fg);--ring-line:inset 0 0 0 2px var(--line);
  --lift:0 1px 4px rgba(0,0,0,.5);--lift-md:0 2px 10px rgba(0,0,0,.5);--lift-lg:0 2px 12px rgba(0,0,0,.55);
  --pop:0 10px 28px rgba(0,0,0,.55);--dock:0 -6px 24px rgba(0,0,0,.5);
  /* a sheet's footer, while the sheet scrolls behind it */
  --foot-shadow:0 -8px 18px rgba(0,0,0,.35);
  /* motion: sheets and panels come in fast and settle; they move only when reduced motion is not asked for */
  --ease-settle:cubic-bezier(.2,.8,.2,1);
  /* layers: header and bars 20, panels 40 (the inbox, thread and scorebook sit at 41 and 42 above them), the editor 45,
     sheets 50 (media screens 51 to 56 above), toasts 60, the mark tray 70, the legal gate 80; small local ones stay 1 to 8 */
  --z-header:20;--z-panel:40;--z-panel-top:45;--z-sheet:50;--z-toast:60;--z-mode:70;--z-top:80;--z-viewas:90;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
/* iPhone and iPad: Safari ignores the phone's Text Size for rem, but font:-apple-system-body follows it (17 px at the default size). The root
   takes that size and the scale is divided by 17, so the default stays 12 to 40 px and a larger Text Size grows it. (-webkit-touch-callout is
   iOS only: Safari on a Mac knows -apple-system-body too, at 13 px, and must keep the plain rem scale.) */
@supports (font:-apple-system-body) and (-webkit-touch-callout:none){
  html{font:-apple-system-body}
  :root{--fs-12:calc(12rem / 17);--fs-13:calc(13rem / 17);--fs-14:calc(14rem / 17);--fs-16:calc(16rem / 17);--fs-20:calc(20rem / 17);--fs-28:calc(28rem / 17);--fs-32:calc(32rem / 17);--fs-40:calc(40rem / 17)}
}
body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--body);font-size:var(--fs-16);line-height:1.4;-webkit-tap-highlight-color:transparent}
h1,h2,h3{font-family:var(--display);font-weight:700;letter-spacing:.02em;text-transform:uppercase;margin:0;line-height:1.1}
h1,.as-h1{font-size:var(--fs-28)}h2{font-size:var(--fs-20)}h3{font-size:var(--fs-20);text-transform:none}
p{margin:0}
a{color:var(--fg)}
.muted{color:var(--muted)}.small{font-size:var(--fs-14)}.tiny{font-size:var(--fs-14)}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
/* Focus moved by the page itself (a sheet's heading) is not something to draw a ring round. */
[tabindex="-1"]:focus{outline:0}
svg.icon{width:24px;height:24px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
svg.icon.fill{fill:currentColor;stroke:none}
/* Icon sizes: three, 16 (.icon-sm), 20 (.icon-md) and 24 (the default above). A component that sizes its icon from the surroundings lists its
   selector here instead of setting a width and height of its own; 16 also takes the heavier 2.25 stroke. Kept outside these three on purpose
   (each beside its own rule): the team avatar's pin and the Hall avatar (they scale with the avatar), the Mark play tile (34), the big play
   buttons on a still (28, 32), the tab bar (its Watch disc, 32), the stage card's backdrop, the thumbnail badges (11) and the replay's duration and seen ticks (10, 12). */
svg.icon.icon-sm,
.ev-said .ev-ic,
.ph-badge .icon,
.thumb-wrap .pin .icon,
.team-label .icon,
.thumb-play .play-badge .icon,
.icon.tiny,
.chat-name .icon,
.radio-dot .icon,
.check-box .icon,
.cmark .icon,
.gif-cue svg,
.gif-send svg,
.gp-credit .icon,
.mg-play .icon,
.mg-check .icon,
.chat-seen .icon,
.tp-chip .icon,
.tp-group .icon,
.rp-step svg.icon,
.rp-soon svg.icon,
.rp-done svg.icon,
.filter-pill .icon,
.ev-tile .icon,
.tr-season .icon,
.wl-still .play-badge .icon,
.wl-pin .icon,
.tl-group .icon,
.tl-pin .icon,
.btn.xs .icon{width:16px;height:16px;stroke-width:2.25}
svg.icon.icon-md,
svg.icon.chev,
.chat-more .icon,
.chat-new .icon,
.today-btn.add-btn .icon,
.pin-btn .icon,
.sport-group .icon,
.top-btn .icon.sport,.top-btn .icon.hub-ic,
.mark-btn .icon,
.chat-react-btn .icon,
.cam-btn .icon,
.score-btn .icon,
.strip .mark-btn .icon,.strip .score-btn .icon,
.chat-composer .chat-tools .icon-btn .icon,
.chat-fmenu button .icon,
.inbox-fmenu .chat-tile.plain .icon,
.tp-star .icon,
.lv-actions>.btn .icon,
.lv-actions #viewersBtn .icon,
.tl-search>.icon,
.tl-switch .icon,
.gw .btn .icon,
.gl-ic .icon,
.btn.sm .icon,
.tp-pill .icon,
.wl-back .icon{width:20px;height:20px}

/* ---- Sideline mode: more contrast for bright sun ----
   html[data-contrast="more"] is set before the page is drawn by the small script in every page's head (src/lib/contrast.js): this phone's
   choice in Settings › This phone, else the phone's own "more contrast" setting. Surfaces step further apart from the navy, cards and lists
   get a light edge (an outline, so nothing moves), grey text turns nearly white, hairlines and icon strokes get heavier. */
html[data-contrast="more"]{--surface:#1D3C66;--raised:#2A4D80;--muted:#E6ECF5;--subtle:#B8C5D9;--hair:rgba(230,236,245,.32)}
/* ... and the tokens built on them: control edges 3:1 or more even on --raised, a brighter top light, your own bubbles a step lighter
   (white text 4.6:1, 1.9:1 from --raised), and the pills' text lighter so it stays 4.5:1 or more on its tint on any surface. */
html[data-contrast="more"]{--line-strong:#8AA8D0;--edge-light:inset 0 1px 0 rgba(255,255,255,.14);--mine:#3A74D0;--tint-chosen:rgba(255,255,255,.3);--on-tint-good:#9BEABB;--on-tint-gold:#FFDD7A;--on-tint-warn:#FFD2A3;--on-tint-danger:#FFD1D1;--on-tint-info:#C4ECF9;--on-tint-violet:#E6DDFF;--on-tint-live:#FFC2C7}
html[data-contrast="more"] :is(.list,.card,.hero,.notice,.sheet,.chat-card,.chat-bubble,.chat-menu,.chat-bar,.mcard,.team-card,.hall-tile,.plan-opt,.sb-card,.reply-card,.mg-tile,.fold,.wv-marks){outline:1px solid var(--line-strong);outline-offset:-1px}
/* ... but not round the flat boards of Home, Watch and the game page (direction A): a box round a row with no padding pressed it against
   its text. They keep their rules, drawn in the strong line; a bare reply row keeps its edge and gets room inside it. */
html[data-contrast="more"] :is(#homeList .list,.wv-plays .list,.wv-marks,.gp-list){outline:none}
html[data-contrast="more"] :is(#homeList .list,.wv-plays .list,.wv-marks,.gp-list){border-top-color:var(--line-strong);border-bottom-color:var(--line-strong)}
html[data-contrast="more"] .reply-card.bare{padding:var(--sp-2) var(--sp-6)}
html[data-contrast="more"] .chat-bubble.big-emoji{outline:0}
html[data-contrast="more"] svg.icon{stroke-width:2.5}
/* (the edge above is an outline, which would hide the focus ring: it comes back on top) */
html[data-contrast="more"] :focus-visible{outline:3px solid var(--accent);outline-offset:2px}

/* ---- Day theme ----
   html[data-theme="day"] is set before the page is drawn by theme-init.js (night is the default, and the controller never sets it). brand.css
   gives the day colours of the brand's own tokens; these are the ones that live here. By day a card lifts by a border and a soft shadow, not a
   top light, and the shadows are lighter. Video stays black in both themes, so what lies over it is kept (see "Day theme: exceptions" at the end). */
html[data-theme="day"]{--hair:rgba(11,31,58,.12);--line-strong:#6B7B94;--edge-light:0 0 0 1px #D3DBE6,0 1px 2px rgba(11,31,58,.06);
  --tint-good:#DDF5E6;--tint-gold:#FFF3C4;--tint-info:#DCEBFF;--tint-violet:#E9E2FF;--tint-danger:#FDE2E4;--tint-warn:#FFE9CC;--tint-live:#FDE2E4;
  --on-tint-good:#0F6B3A;--on-tint-gold:#5A4300;--on-tint-warn:#7A4A00;--on-tint-info:#1F4F9E;--on-tint-violet:#4B32A8;--on-tint-danger:#9E1B28;--on-tint-live:#9E1B28;
  --ty-practice-bg:#DCE3EE;--ty-practice-fg:#2A3A52;--ty-league-bg:#BFE6CF;--ty-league-fg:#0B4D2A;--ty-nonleague-bg:#E4F1EA;--ty-nonleague-fg:#3A5E4A;
  --ty-playoffs-bg:#FFEDB8;--ty-playoffs-fg:#6E4F00;--ty-tournament-bg:#E4DBFF;--ty-tournament-fg:#4527A0;--ty-other-bg:#FFE3CC;--ty-other-fg:#7F4300;
  --tint-chosen:rgba(11,31,58,.12);
  --lift:0 1px 4px rgba(11,31,58,.18);--lift-md:0 2px 10px rgba(11,31,58,.18);--lift-lg:0 2px 12px rgba(11,31,58,.2);
  --pop:0 10px 28px rgba(11,31,58,.2);--dock:0 -6px 24px rgba(11,31,58,.18);--foot-shadow:0 -8px 18px rgba(11,31,58,.14)}
/* Sideline mode by day: darker text and a dark edge on white. */
html[data-theme="day"][data-contrast="more"]{--surface:#FFFFFF;--raised:#DCE3EE;--muted:#2A3A52;--subtle:#3E4E66;--hair:rgba(11,31,58,.4);--line-strong:#3B5B8A;--edge-light:0 0 0 1px #3B5B8A;--mine:#1F4FA0;--tint-chosen:rgba(11,31,58,.2);
  --on-tint-good:#0A4F2A;--on-tint-gold:#3D2D00;--on-tint-warn:#5A3500;--on-tint-danger:#7A1019;--on-tint-info:#123B7A;--on-tint-violet:#35208A;--on-tint-live:#7A1019}

/* ---- frame: header, scrolling view, bottom tabs ---- */
.top{position:sticky;top:0;z-index:var(--z-header);display:flex;align-items:center;justify-content:space-between;gap:var(--sp-4);min-height:calc(var(--header-h) + var(--top));padding:var(--top) max(8px,var(--right)) 0 max(8px,var(--left));background:var(--bg)}
/* Once the page has scrolled, a hairline under the header shows where the content goes under it (frame.js sets .scrolled). */
.top.scrolled,.chat-head.scrolled{box-shadow:0 1px 0 var(--hair)}
h1.title.span-title{line-height:inherit;display:inline}   /* (a page's header title that used to be a span: an h1 for the crawler, drawn as before) */
.top .title{font-family:var(--display);font-weight:700;font-size:var(--fs-20);letter-spacing:.02em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 8px}
/* ---- large title (UI-20; lib/largetitle.js) ----
   A sub-screen's title (a team's page, Past seasons, the You panels) is drawn large at the top of its scrolling content (.lt). While it is
   on show the header has .lt-big and its own compact 20 px title (.top .ct, a panel's h2) is clear; once it has scrolled up under the header
   the compact title fades in. Reduced motion: the same swap, no fade. The wordmark screens (Home, Events, You, the Watch and Teams landings) have none. */
.lt{margin:0 0 var(--sp-6);font:700 var(--fs-32)/1.08 var(--display);letter-spacing:.02em;text-transform:uppercase;overflow-wrap:anywhere}
.wl-lt{padding-top:var(--sp-4);padding-bottom:0}
.wl-lt .lt{margin:0}
.team-card-name .lt{margin:0}
.top .ct,.chat-head h2{transition:opacity .18s ease}
.top.lt-big .ct,.chat-head.lt-big h2{opacity:0}
@media (prefers-reduced-motion:reduce){.top .ct,.chat-head h2{transition:none}}
.top-btn{display:flex;align-items:center;gap:var(--sp-2);min-height:var(--tap);min-width:0;padding:0 8px;border:0;border-radius:var(--r-ctl);background:none;color:var(--fg);font:inherit;cursor:pointer;text-decoration:none}
.top-btn .title{padding:0}
/* An icon button has two looks. Bare (this rule) on a page surface: sheet heads, headers, rows, the live screen's ···. Glass (.icon-btn.glass)
   over video: a dark disc with the on-video colour, for the buttons that sit on the picture (.fs-corner, .sbv-btn). Sizes: --tap by default,
   .xs 32 and .sm 36 (their 44 px tap area is the ::before at the end of this file). */
.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:var(--tap);height:var(--tap);flex:none;border:0;border-radius:var(--r-btn);background:none;color:var(--fg);cursor:pointer}
.icon-btn.glass,.fs-corner{border-radius:var(--r-pill);background:rgba(10,14,20,.6);color:var(--on-video)}
.icon-btn.glass[aria-pressed="true"]{background:var(--glass)}
.view{max-width:var(--content);margin:0 auto;padding-bottom:calc(var(--tabs-h) + var(--bottom) + var(--tabs-bump) + var(--sp-8))}
.view.no-tabs{padding-bottom:calc(var(--bottom) + var(--sp-8))}
.pad{padding:0 var(--gutter)}
.section{display:flex;flex-direction:column;gap:var(--sp-6);margin-top:var(--sp-8)}
/* The bottom tab bar: Home, Events, Watch, Teams, You. Every tab is a pill; the open one is a dark (--raised) pill with a white bold label.
   Nothing live: the bar is flat and Watch is a tab like the others (the play icon and its label). On a computer screen (1024 px and up) it stays so; a live team
   puts a red LIVE tag on the rail's Watch item. Under 1024 px, while a team is live (body.tabs-live, .tabs.is-live), Watch becomes a gold disc with the play icon,
   8 px above the bar and no visible label (its name is still Watch), sitting in a round notch cut in the bar's top edge, with a red ring and a LIVE tag.
   --tabs-bump is the extra room things above the bar keep for the disc and its LIVE tag (18 px on a phone while live, none otherwise). */
.tabs{position:fixed;left:0;right:0;bottom:0;z-index:var(--z-header);display:flex;justify-content:center;background:var(--surface);padding:0 var(--right) var(--bottom) var(--left)}
.tabs :is(button,a){position:relative;flex:1;min-width:0;max-width:220px;margin:var(--sp-3) var(--sp-1);height:calc(var(--tabs-h) - 12px);padding:0 var(--sp-1);border-radius:var(--r-pill);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--sp-1);border:0;background:none;color:var(--muted);font:var(--t-label);cursor:pointer;text-decoration:none}
.tabs :is(button[aria-selected="true"],a[aria-current="page"]){background:var(--raised);color:var(--fg);font-weight:700}
.tabs .tabs-bg,.tabs .tab-disc,.tabs .tab-live,.tabs .rail-mark,.tabs .rail-support{display:none}
.tabs [data-live] .tab-live{position:absolute;top:2px;right:2px;display:block;padding:1px var(--sp-3);border:2px solid var(--surface);border-radius:var(--r-tag);background:var(--live);color:var(--on-video);font:700 var(--fs-12)/14px var(--display);letter-spacing:.06em;pointer-events:none}
@media (max-width:1023px){
  .tabs :is(button,a){height:46px}
  body.tabs-live{--tabs-bump:18px;--tabs-h:calc(58px + max(0px,8px - var(--bottom)))}   /* (the notch is 62 px deep: with no home bar the bar gets 8 px below its row so the notch never cuts it in two) */
  .tabs.is-live{background:none;padding:0 max(var(--left),var(--right)) max(var(--bottom),var(--sp-4))}
  .tabs-bg{position:absolute;left:0;right:0;top:0;bottom:0;pointer-events:none}
  .tabs.is-live .tabs-bg{display:block}
  /* the bar is a flat left side, a flat right side and a fixed 120 px piece between them with the notch (a 38 px circle whose centre is 24 px below the top edge,
     22 px round fillets either side), always centred, so it never stretches. The glass fills the notch's gap (blurred page, no tint). */
  .tb-side,.tb-fill{position:absolute;top:0;bottom:0;background:var(--surface)}
  .tb-l{left:0;width:calc(50% - 59px)}
  .tb-r{right:0;width:calc(50% - 59px)}
  .tb-fill{left:calc(50% - 60px);width:120px;top:61px}
  .tb-notch,.tb-glass{position:absolute;left:calc(50% - 59.9665px);top:0}
  .tb-notch{display:block;fill:var(--surface)}
  .tb-glass{width:119.933px;height:62px;clip-path:path('M0 0A22 22 0 0 1 21.988 22.733A38 38 0 1 0 97.945 22.733A22 22 0 0 1 119.933 0Z');-webkit-backdrop-filter:blur(10px) saturate(120%);backdrop-filter:blur(10px) saturate(120%)}
  .tabs.is-live [data-tab="watch"]{flex:none;width:84px;height:58px;margin:0;padding:0;background:none}
  .tabs.is-live [data-tab="watch"][aria-selected="true"],.tabs.is-live [data-tab="watch"][aria-current="page"]{background:none}
  .tabs.is-live .tab-wicon{display:none}
  .tabs.is-live .tab-lbl{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .tabs.is-live .tab-disc{position:absolute;top:-8px;left:10px;display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:var(--accent);color:var(--accent-fg);box-shadow:0 2px 6px rgba(0,0,0,.35)}
  .tabs .tab-play{width:32px;height:32px;margin-left:var(--sp-2);fill:currentColor;stroke-linejoin:round}
  .tabs.is-live :is([aria-selected="true"],[aria-current="page"]) .tab-disc{box-shadow:inset 0 0 0 3px var(--fg),0 2px 6px rgba(0,0,0,.35)}
  .tabs.is-live [data-live] .tab-disc{box-shadow:inset 0 0 0 3px var(--live),0 2px 6px rgba(0,0,0,.35)}
  .tabs.is-live :is([aria-selected="true"],[aria-current="page"])[data-live] .tab-disc{box-shadow:inset 0 0 0 3px var(--live),0 0 0 2px var(--fg),0 2px 6px rgba(0,0,0,.35)}
  .tabs.is-live [data-live] .tab-live{position:absolute;top:-14px;left:60px;right:auto;display:block;padding:1px var(--sp-3);border:2px solid var(--surface);border-radius:var(--r-tag);background:var(--live);color:var(--on-video);font:700 var(--fs-12)/14px var(--display);letter-spacing:.06em;pointer-events:none}
}
/* A small phone (under 360 px): 12 px labels and 4 px of padding, so Events and Teams fit beside the 84 px Watch slot. */
@media (max-width:359px){
  .tabs :is(button,a){padding:0 var(--sp-2);font-size:var(--fs-12)}
}
/* On a computer screen (1024 px wide and 501 px tall and up, the same test as the live player's two columns) the bar is a rail down the left edge, 104 px wide
   (more by the left safe area): the Tailgate mark, then the five tabs stacked, icon over label; Watch is a tab like the others. The page lays out in the width right of
   it (body's left padding), so the 760 and 1040 px columns centre there, and nothing keeps room for a bar below (--tabs-h is 0). --rail-w is that width (0 where there is no rail:
   a phone, the replay page, pages without tabs), and what is fixed to the page's bottom or centre (toast, cookie notice, orphan bar, media tray) starts at it.
   Full screen, the theater and the sheets sit above the rail (they have higher layers). */
:root{--rail-w:0px;--col-edge:max(var(--gutter),calc((100% - var(--rail-w) - var(--content)) / 2 + var(--gutter)))}   /* (--col-edge: a fixed button's distance from the viewport edge to sit on the reading column's gutter) */
@media (min-width:1024px) and (min-height:501px){
  :root{--tabs-h:0px}
  body:not(.rpage):has(>nav.tabs:not([hidden])){--rail-w:calc(104px + var(--left));padding-left:var(--rail-w)}
  body>nav.tabs{left:0;right:auto;top:0;width:var(--rail-w);box-sizing:border-box;flex-direction:column;justify-content:flex-start;align-items:center;gap:var(--sp-4);padding:var(--sp-9) 0 calc(var(--sp-9) + var(--bottom)) var(--left);overflow-y:auto}
  body>nav.tabs .rail-mark{display:grid;place-items:center;flex:none;width:48px;height:48px;margin-bottom:var(--sp-7);border-radius:var(--r-card);background:var(--navy)}
  body>nav.tabs .rail-mark>span{display:grid;place-items:center;width:28px;height:28px;border-radius:var(--r-tag);background:var(--accent)}
  body>nav.tabs .rail-mark svg{width:11px;height:12px;fill:var(--accent-fg)}
  body>nav.tabs :is(button,a){flex:none;width:80px;max-width:none;height:60px;margin:0;padding:0;border-radius:var(--r-card);gap:var(--sp-2);line-height:1.15}
  body>nav.tabs .tab-badge{top:6px}
  body>nav.tabs .rail-support:not([hidden]){display:flex;flex-direction:column;align-items:center;justify-content:center;margin-top:auto;color:var(--accent-text);font:var(--t-caption-strong);text-decoration:none}
  body>nav.tabs .rail-support .icon{width:22px;height:22px}
}

/* ---- status ---- */
.dot{flex:none;width:11px;height:11px;margin-right:var(--sp-2);border-radius:50%;background:var(--muted)}
.dot.live{background:var(--live-text)}.dot.standby{background:var(--standby)}
.badge{display:inline-flex;align-items:center;gap:var(--sp-3);height:26px;padding:0 var(--sp-4);border-radius:var(--r-tag);font:var(--t-label-strong);white-space:nowrap;background:var(--raised);color:var(--muted)}
.badge::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor}
.badge.live{background:var(--live);color:var(--on-video);font-family:var(--display);letter-spacing:.06em;text-transform:uppercase}
.badge.standby{background:var(--standby);color:var(--standby-fg)}
/* the small one, inline at the start of a row's second line (the Hub's team rows), so the name above keeps the whole width */
.badge.sm{height:18px;padding:0 var(--sp-3);gap:var(--sp-2);font:var(--t-caption-strong);vertical-align:1px;margin-right:var(--sp-3)}
.badge.sm::before{width:6px;height:6px}
.badge.sm.live{font-family:var(--display)}
/* Status pills. One meaning per look: solid = act now, or it is happening now (LIVE, Reply, Answer); tint = a state worth knowing
   (In progress, Going, Mine, W and L, whose space); quiet = a neutral fact (Cancelled, Can't go, Manager). No outlines: an outline reads as a button.
   A tone class (live, gold, good, info, violet, danger, warn, neutral) picks the colours; older tags (.tag, .badge.progress, .space-tag,
   .gp-res, .role-tag) are drawn the same way below. */
.pill{--tone:var(--muted);--on:var(--bg);--tint:var(--raised);--on-tint:var(--fg);display:inline-flex;align-items:center;gap:var(--sp-2);flex:none;padding:1px var(--sp-4);border-radius:var(--r-tag);font:var(--t-label-strong);white-space:nowrap;background:var(--tint);color:var(--on-tint)}
.pill.live{--tone:var(--live);--on:var(--on-video);--tint:var(--tint-live);--on-tint:var(--on-tint-live)}
.pill.gold{--tone:var(--accent);--on:var(--accent-fg);--tint:var(--tint-gold);--on-tint:var(--on-tint-gold)}
.pill.good{--tone:var(--good);--on:var(--on-good);--tint:var(--tint-good);--on-tint:var(--on-tint-good)}
.pill.info{--tone:var(--info);--on:var(--navy);--tint:var(--tint-info);--on-tint:var(--on-tint-info)}
.pill.violet{--tone:var(--team-3);--on:var(--navy);--tint:var(--tint-violet);--on-tint:var(--on-tint-violet)}
.pill.danger{--tone:var(--danger);--on:var(--on-danger);--tint:var(--tint-danger);--on-tint:var(--on-tint-danger)}
.pill.warn{--tone:var(--warn);--on:var(--navy);--tint:var(--tint-warn);--on-tint:var(--on-tint-warn)}
.pill.neutral{--tone:var(--fg);--on:var(--bg);--tint:var(--raised);--on-tint:var(--fg)}
.pill.solid{background:var(--tone);color:var(--on)}
.pill.tint{background:var(--tint);color:var(--on-tint)}
.pill.quiet{background:var(--raised);color:var(--muted)}

/* ---- video ---- */
.stage{position:relative;z-index:0;background:var(--video-bg);aspect-ratio:16/9;width:100%;max-height:78vh;overflow:hidden}
.stage video{display:block;width:100%;height:100%;background:var(--video-bg);object-fit:contain}
.sound-chip{position:absolute;left:12px;bottom:12px;z-index:2;display:flex;align-items:center;gap:var(--sp-4);min-height:var(--tap);padding:0 var(--sp-7);border:0;border-radius:var(--r-pill);background:var(--glass);color:var(--on-video);font:var(--t-body-strong);cursor:pointer}
.strip{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:0 var(--sp-4);min-height:56px;padding:var(--sp-2) var(--gutter);border-bottom:1px solid var(--hair)}

/* ---- buttons and controls ---- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--sp-4);min-height:var(--tap);padding:0 var(--sp-7);border:0;border-radius:var(--r-btn);background:var(--raised);color:var(--fg);font:var(--t-body-strong);text-decoration:none;cursor:pointer}
.btn.primary{background:var(--accent);color:var(--accent-fg)}
.btn.danger{background:var(--tint-danger);border:0;color:var(--on-tint-danger)}
.btn.block{display:flex;width:100%}
.btn.big{min-height:var(--tap-lg);font-size:var(--fs-16)}
/* A button that cannot be pressed yet is drawn flat and grey whatever its kind, not faded: a faded gold button still reads as the one to press. */
.btn:disabled,.btn.primary:disabled,.btn.danger:disabled,.sq:disabled,.sq.play:disabled{background:var(--raised);color:var(--muted);opacity:1;cursor:default}
.link-btn{display:inline-flex;align-items:center;gap:var(--sp-2);min-height:var(--tap);padding:0;border:0;background:none;color:var(--accent-text);font:var(--t-body-semi);cursor:pointer;text-decoration:none}
/* A link is gold; a back control, the strip's buttons and the scorebook's Call out toggle (gold only when on) keep the text colour. */
.back-row .link-btn,.strip .link-btn,.chat-head .link-btn,.sb-log .link-btn{color:var(--fg)}
.chips{display:flex;gap:var(--sp-4);flex-wrap:wrap}
.chip{min-height:var(--tap);min-width:60px;padding:0 var(--sp-7);border:0;border-radius:var(--r-pill);background:var(--raised);color:var(--fg);font:var(--t-body-strong);cursor:pointer}
.chip[aria-pressed="true"]{background:var(--fg);color:var(--bg)}
/* The two switches (one look each; the page's markup says which state it keeps: aria-pressed, aria-checked, aria-selected or aria-current).
   .seg: a switch between views of the same content, or a choice of one: the chosen item is filled (--fg on a --raised track), 44 px, .sm 36 px.
   .tabs-inline: tabs over different content panes: the chosen tab has the gold underline. */
.seg{display:flex;background:var(--raised);border-radius:var(--r-ctl);overflow:hidden}
.seg>*{flex:1;min-width:0;text-align:center;min-height:var(--tap);padding:0 var(--sp-4);border:0;border-radius:var(--r-ctl);background:none;color:var(--fg);font:var(--t-body-strong);text-decoration:none;cursor:pointer}
.seg>:not(button),.tabs-inline>:not(button){display:flex;align-items:center;justify-content:center}   /* (a button centres its own text; a link or span needs the flex, and a button must not have it: its count pill would drop to a line of its own) */
.seg>*>span:not([class]){display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.seg [aria-pressed="true"],.seg [aria-checked="true"],.seg [aria-selected="true"],.seg [aria-current="true"],.seg [aria-current="page"]{background:var(--fg);color:var(--bg)}
.seg.sm>*{min-height:var(--tap-sm);padding:0 var(--sp-6);font:var(--t-label)}
.tabs-inline{display:flex;border-bottom:1px solid var(--hair)}
.tabs-inline>*{flex:1;min-width:0;text-align:center;min-height:var(--tap);padding:0 var(--sp-4);border:0;border-bottom:3px solid transparent;border-radius:0;background:none;color:var(--muted);font:var(--t-label-strong);text-decoration:none;cursor:pointer}
.tabs-inline [aria-pressed="true"],.tabs-inline [aria-checked="true"],.tabs-inline [aria-selected="true"],.tabs-inline [aria-current="true"],.tabs-inline [aria-current="page"]{border-bottom-color:var(--accent);color:var(--fg)}
.tabs-inline .c{font-variant-numeric:tabular-nums}
.transport{display:flex;gap:var(--sp-4)}
.transport button{flex:1;min-height:var(--tap-lg);border:0;border-radius:var(--r-btn);background:var(--raised);color:var(--fg);font:var(--t-body-strong);display:flex;align-items:center;justify-content:center;gap:var(--sp-3);cursor:pointer}
.switch{position:relative;flex:none;width:52px;height:32px;padding:0;border:0;border-radius:var(--r-pill);background:var(--raised);cursor:pointer}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:var(--muted);transition:transform .15s}
.switch[aria-checked="true"]{background:var(--good)}
.switch[aria-checked="true"]::after{transform:translateX(20px);background:var(--on-good)}
.switch:disabled{opacity:1;cursor:default}
.switch:disabled::after{background:var(--subtle)}
.switch[aria-checked="true"]:disabled{background:var(--subtle)}
.switch[aria-checked="true"]:disabled::after{background:var(--raised)}
/* Every press shows at once that it landed (the tap highlight is off, and rink Wi-Fi can be slow to answer): what you press brightens, and a
   button or chip also dips a little. The dip uses the scale property, not transform, so it adds to transforms already set (a toast, a sheet,
   the scorebook keys). On a desktop the pointer resting on it brightens it the same way. Nothing that is disabled responds. */
:is(.btn,.chip,.row:not(.static),.icon-btn,.link-btn,.top-btn,.tabs button):not(:disabled,[aria-disabled="true"]):active{filter:brightness(1.15)}
@media (hover:hover){:is(.btn,.chip,.row:not(.static),.icon-btn,.link-btn,.top-btn,.tabs button):not(:disabled,[aria-disabled="true"]):hover{filter:brightness(1.15)}}
@media (prefers-reduced-motion:no-preference){.btn,.chip{transition:scale 80ms,filter 80ms}:is(.btn,.chip):not(:disabled,[aria-disabled="true"]):active{scale:.98}}

/* ---- lists and cards ---- */
.list{background:var(--surface);border-radius:var(--r-card);overflow:hidden;box-shadow:var(--edge-light)}
.row{display:flex;align-items:center;gap:var(--sp-6);width:100%;min-height:var(--row);padding:var(--sp-4) var(--sp-6);border:0;border-bottom:1px solid var(--hair);background:none;color:var(--fg);font:inherit;text-align:left;text-decoration:none;cursor:pointer}
.list>:last-child,.list>:last-child>.row:last-child{border-bottom:0}
.row.static{cursor:default}
.row.part{min-height:var(--row)}
.row .grow{flex:1;min-width:0}
[data-open]:is(.hero,.card,.row){cursor:pointer}
.row .replay-play{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--tap);height:var(--tap);margin:-8px -12px -8px 0;color:var(--accent-text)}
.row .name,.row .sub{display:block}
.row .name{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row .sub{color:var(--muted);font-size:var(--fs-14);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row .sub.wrap{white-space:normal;overflow:visible}
.row.accent{font-weight:700}
.row.danger{color:var(--danger);font-weight:700}
/* Lists: no box inside a box. Each game or day is a plain header row (what it is, how many) over one list card of rows. */
.top-left{display:flex;align-items:center;flex-wrap:nowrap;min-width:0}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.page-head{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-6);flex-wrap:wrap}
.thumb{flex:none;width:96px;aspect-ratio:16/9;border-radius:var(--r-ctl);object-fit:cover;background:var(--raised)}
.thumb.sm{width:64px}
/* No picture: a plain tinted tile with the round play badge in the middle. */
.thumb.ph{display:grid;place-items:center}
.ph-badge{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--glass-navy);border:2px solid var(--white);color:var(--white)}
.ph-badge .icon{margin-left:var(--sp-1)}
.thumb.sm .ph-badge{width:24px;height:24px}
.thumb.sm .ph-badge .icon{width:11px;height:11px}
/* Sports: each has a colour, used for its icon wherever it appears. */
.sport-hockey{--sport:var(--sport-hockey)}.sport-baseball{--sport:var(--sport-baseball)}.sport-softball{--sport:var(--sport-softball)}.sport-american-football{--sport:var(--sport-american-football)}
.sport-basketball{--sport:var(--sport-basketball)}.sport-soccer{--sport:var(--sport-soccer)}.sport-lacrosse{--sport:var(--sport-lacrosse)}.sport-volleyball{--sport:var(--sport-volleyball)}.sport-flag-football{--sport:var(--sport-flag-football)}.sport-field-hockey{--sport:var(--sport-field-hockey)}
.icon.sport{color:var(--sport,var(--muted))}
/* A team's picture with its sport pinned to the corner. */
.thumb-wrap{position:relative;flex:none;display:flex;margin-right:var(--sp-3)}
.thumb-wrap .pin{position:absolute;right:-8px;bottom:-8px;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--bg);box-shadow:0 0 0 2px var(--surface)}
.sport-group{display:flex;align-items:center;gap:var(--sp-3);margin:var(--sp-7) var(--sp-1) var(--sp-4);font:var(--t-label);letter-spacing:0;text-transform:none;color:var(--sport,var(--muted))}
.sport-group:first-child{margin-top:0}
.list+.list{margin-top:var(--sp-6)}
.top-btn .icon.sport,.top-btn .icon.hub-ic{flex:none;margin-right:2px}
.meta{display:block;color:var(--muted);font-size:var(--fs-14);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card .grow{flex:1;min-width:0}
.card .name{display:block;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card{display:flex;align-items:center;gap:var(--sp-6);padding:var(--sp-6);border-radius:var(--r-card);background:var(--surface);color:var(--fg);text-decoration:none;box-shadow:var(--edge-light)}
/* A box the exact shape of the video inside the stage, whatever shape the stage is, so things can be placed on the picture. */
.stage{container-type:size}
.stage-fit{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;width:min(100cqw,100cqh*16/9);aspect-ratio:16/9;z-index:1;pointer-events:none;container-type:size}
/* Covers the caption panel drawn into each sport's standby clip (PANEL in tools/build_standby_clips.py), a touch larger so no edge shows. */
.standby-caption{position:absolute;left:2.2%;right:2.2%;top:68.6%;bottom:3.4%;margin:0;padding:0 4%;display:flex;align-items:center;justify-content:center;text-align:center;background:var(--ink);color:#F4F6F8;font:700 var(--fs-13)/1.3 var(--body);font-size:clamp(11px,3.4cqw,44px);text-wrap:balance}
/* ---- roster, player pages and tags (roster.js) ---- */
.head-row{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-6)}
.roster{display:flex;flex-direction:column;gap:var(--sp-6)}
.roster .label{margin-top:var(--sp-4)}
.stack{display:flex;flex-direction:column;gap:var(--sp-6)}
.stack:empty{display:none}
.pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-6)}
.pair .field{min-width:0}
.num{flex:none;display:grid;place-items:center;min-width:44px;height:44px;padding:0 var(--sp-3);border-radius:var(--r-ctl);background:var(--raised);font:700 var(--fs-20)/1 var(--display);font-variant-numeric:tabular-nums}
.num.big{min-width:60px;height:60px;font-size:var(--fs-28)}
.player-head{flex:1;min-width:0;min-height:0;padding:0;border:0}
.player-head .name{font:700 var(--fs-20)/1.1 var(--display);letter-spacing:.02em;white-space:normal}
.tag{flex:none;padding:1px var(--sp-4);border-radius:var(--r-tag);background:var(--tint-good);color:var(--on-tint-good);font:var(--t-label-strong)}
.tag.wait{background:var(--standby);color:var(--standby-fg)}
.star{flex:none;color:var(--standby);font-size:var(--fs-20)}
.link-btn.danger{color:var(--danger)}
/* Jersey numbers at the end of a row, the viewer's own player picked out. */
.pips{display:flex;gap:var(--sp-2);flex:none}
.pip{display:inline-grid;place-items:center;min-width:26px;height:22px;padding:0 var(--sp-2);border-radius:var(--r-tag);background:var(--raised);font:700 var(--fs-14)/1 var(--display);font-variant-numeric:tabular-nums}
.pip.me{background:var(--fg);color:var(--bg)}
.chip.static{min-height:var(--tap-sm);min-width:0;padding:0 var(--sp-6);display:inline-flex;align-items:center;gap:var(--sp-3);cursor:default;font-size:var(--fs-14)}
.chip b{font:700 var(--fs-16)/1 var(--display)}
/* What is waiting for a manager, at the top of Team. */
.notice.waiting,#tagBanner{display:flex;flex-direction:column;gap:var(--sp-6);align-items:flex-start}
.notice .sheet-actions{margin-top:var(--sp-6)}
.notice .link-btn{text-align:left;min-height:0}
.request{display:flex;flex-direction:column;gap:var(--sp-4);width:100%;font-weight:400}
.request .sheet-actions{margin-top:0}
/* The tag pad: a key per player, number large with the name beneath. */
.keys{display:grid;grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:var(--sp-4)}
.key{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--sp-2);min-height:60px;padding:var(--sp-3) var(--sp-2);border:0;border-radius:var(--r-ctl);background:var(--raised);color:var(--fg);cursor:pointer}
.key b{font:var(--t-number);font-variant-numeric:tabular-nums}
.key small{font:600 var(--fs-12)/1.1 var(--body);color:var(--muted);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.key[aria-pressed="true"]{background:var(--fg);color:var(--bg)}
.key[aria-pressed="true"] small{color:var(--bg)}
select.input{appearance:auto}
/* ---- playback pages (a recording): compact controls under the video ---- */
.section.tight{gap:var(--sp-4);margin-top:var(--sp-6)}
.list .row.current{background:var(--raised)}
.ctl{display:flex;align-items:center;gap:var(--sp-4)}
.ctl .grow{flex:1}
.ctl.even>*{flex:1;min-width:0}
.sq{flex:none;display:grid;place-items:center;width:var(--tap-lg);height:var(--tap);padding:0;border:0;border-radius:var(--r-ctl);background:var(--raised);color:var(--fg);font:var(--t-body-strong);font-variant-numeric:tabular-nums;cursor:pointer}
.sq.play{width:var(--ctl-lg);height:var(--ctl-lg);background:var(--accent);color:var(--accent-fg)}
.parts-strip{display:flex;gap:var(--sp-4);margin:0 calc(-1 * var(--gutter));padding:0 var(--gutter);overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.parts-strip::-webkit-scrollbar{display:none}
.parts-strip a,.parts-strip span{flex:none;display:flex;flex-direction:column;justify-content:center;gap:1px;min-height:var(--tap);padding:var(--sp-3) var(--sp-7);border:0;border-radius:var(--r-ctl);background:var(--raised);color:var(--fg);text-decoration:none;white-space:nowrap;font-variant-numeric:tabular-nums}
.parts-strip b{font-size:var(--fs-14)}
.parts-strip small{font-size:var(--fs-12);color:var(--muted)}
.parts-strip [aria-current="true"]{background:var(--fg);color:var(--bg)}
.parts-strip [aria-current="true"] small{color:var(--bg)}
/* Arrows over the ends of the parts row, shown by the page only for a mouse and only when there is more that way. */
.strip-wrap{position:relative}
.strip-arrow{position:absolute;top:0;bottom:0;z-index:1;display:grid;place-items:center;width:40px;padding:0;border:0;color:var(--fg);cursor:pointer}
.strip-arrow.prev{left:calc(-1 * var(--gutter));background:linear-gradient(90deg,var(--bg) 55%,transparent)}
.strip-arrow.next{right:calc(-1 * var(--gutter));background:linear-gradient(270deg,var(--bg) 55%,transparent)}
.strip-arrow:hover{color:var(--muted)}
/* A row in a tick list with something to press at its end (deleting a recording). */
.checks .check-row{display:flex;align-items:center;border-bottom:1px solid var(--hair)}
.checks .check-row:last-child{border-bottom:0}
.checks .check-row label{flex:1;min-width:0;border-bottom:0}
.icon-btn.danger{color:var(--danger)}
.chip.add{min-height:var(--tap-sm);font-size:var(--fs-14)}
#tags{align-items:center}
/* ---- Home: the next event or the live card, what is waiting, the newest replay (home.js) ---- */
.hero{display:flex;flex-direction:column;gap:var(--sp-4);padding:var(--sp-7);border-radius:var(--r-card);background:var(--surface);box-shadow:var(--edge-light)}
.hero .count{font:var(--t-number);letter-spacing:.02em;color:var(--accent-text)}
/* On Home the top card runs edge to edge (the Next up card, and the live card, which Home draws straight into #homeList; the Schedule's copy of it sits in a .tl-item and does not bleed). Sideline mode's outline is a hairline top and bottom here. */
.hero.bleed,#homeList>.hero{margin:0 calc(-1 * var(--gutter));border-radius:0;padding:var(--sp-9) var(--gutter) var(--sp-8);background:linear-gradient(180deg,var(--surface),var(--bg));box-shadow:none}
.hero.bleed .game-title,#homeList>.hero .game-title{font:var(--t-hero);text-wrap:balance;line-height:1}
.hero.bleed .count,#homeList>.hero .count{font-size:var(--fs-40);line-height:1}
html[data-contrast="more"] :is(.hero.bleed,#homeList>.hero){outline:0;box-shadow:none}      /* (edge to edge, rules above and below read as stripes: Sideline's lighter surface sets it apart) */
html[data-theme="day"]:not([data-contrast="more"]) :is(.hero.bleed,#homeList>.hero){background:var(--surface);box-shadow:0 1px 0 var(--line),0 -1px 0 var(--line)}      /* (by day the white card sits on a darker page: solid white with a rule above and below, so it does not fade into the page) */
.link-btn.quiet{justify-content:center}
/* Home's feed (feed.js): the team a card is about, written small above its title; another team's next event; the other teams' replays; unread chats */
.team-label{display:flex;align-items:center;gap:var(--sp-3);min-width:0;font:var(--t-label);letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.team-label>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.team-label .icon{flex:none}
.card.next{flex-direction:column;align-items:stretch;gap:var(--sp-4)}
.card.next .game-open{gap:var(--sp-2)}
.card.next .game-title{font:var(--t-title);line-height:1.1}
.list.replays .row>.icon{flex:none;color:var(--accent-text)}
.list.chats .chat-row:last-child{border-bottom:0}
/* Home's last line: whether the team is live, then the link to the watch screen under it */
.watch-line{display:flex;flex-direction:column;align-items:center;text-align:center}
.back-row{padding-top:var(--sp-3);padding-bottom:0}
.back-row .link-btn{min-height:var(--tap-sm)}
/* ---- Schedule: the season as one timeline (schedule.js) ---- */
.timeline{display:flex;flex-direction:column}
.month-head{position:sticky;top:calc(var(--header-h) + var(--top));z-index:2;margin:0 calc(-1 * var(--gutter));padding:var(--sp-6) var(--gutter) var(--sp-3);background:var(--bg);font-size:var(--fs-20);letter-spacing:.08em;color:var(--muted)}
.tl-item{display:flex;align-items:center;border-bottom:1px solid var(--hair);content-visibility:auto;contain-intrinsic-size:auto 72px}
.tl-item .row{flex:1;min-width:0;border-bottom:0;padding-left:0}
.tl-item .thumb-play{margin-left:0;margin-right:var(--sp-6)}
.tl-item.past .name,.tl-item.past .sub{opacity:.78}
.tl-item{scroll-margin-top:calc(var(--header-h) + var(--top) + var(--fl-h,0px) + var(--sched-head-h) + var(--dayhead-h))}   /* (+ the sticky day header: the row scrolled to, the one above Today, stays whole under it) */
.tl-item.livecard{display:block;border-bottom:0;padding:var(--sp-3) 0 var(--sp-6)}
.tl-item.livecard .hero{width:100%}
.today-line{display:flex;align-items:center;gap:var(--sp-4);padding:var(--sp-6) 0;scroll-margin-top:calc(var(--header-h) + var(--top) + var(--fl-h,0px) + var(--sched-head-h));font:var(--t-label);color:var(--muted)}
.today-line::before,.today-line::after{content:"";flex:1;height:1px;background:var(--line)}
.today-btn{position:fixed;right:var(--col-edge);bottom:calc(var(--tabs-h) + var(--bottom) + var(--tabs-bump) + 12px);z-index:15;min-height:var(--ctl-sm);padding:0 var(--sp-7);border:0;border-radius:var(--r-pill);background:var(--fg);color:var(--bg);font:var(--t-label-strong);box-shadow:var(--lift-md);cursor:pointer}
.today-btn.add-btn{right:auto;left:calc(var(--rail-w) + var(--col-edge));display:inline-flex;align-items:center;gap:var(--sp-3)}   /* (+ Add, bottom left, the Today button's twin) */
#scheduleMain::after{content:"";display:block;height:calc(var(--ctl) + 24px)}   /* (room under the last row for the two floating buttons) */
/* ---- a played game's picture plays it; who is coming, as three counts ---- */
.thumb-play{position:relative;flex:none;display:flex;margin-left:var(--sp-6)}
.thumb-play .play-badge{position:absolute;inset:0;margin:auto;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--glass-navy);border:2px solid var(--white);color:var(--white)}
.thumb-play .play-badge .icon{margin-left:var(--sp-1)}
.rsvp{display:inline-flex;align-items:center;gap:var(--sp-6);margin-top:var(--sp-2);font:var(--t-label-strong);font-variant-numeric:tabular-nums;color:var(--muted)}
.rsvp>span{display:inline-flex;align-items:center;gap:var(--sp-2)}
.rsvp svg{width:18px;height:18px;padding:var(--sp-1);border-radius:50%;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;border:1.500px solid currentColor}
.rsvp .me{color:var(--fg)}
.rsvp .me svg{background:var(--fg);border-color:var(--fg);color:var(--bg)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* ---- the page a game is added on ---- */
.form-page{padding-bottom:calc(var(--bottom) + 96px)}
.form-page .form{margin-top:var(--sp-7)}
.form-page .form>.label{margin-top:var(--sp-6);padding-top:var(--sp-7);border-top:1px solid var(--hair)}
.form-page .form>.label:first-child{margin-top:0;padding-top:0;border-top:0}
.trio{display:grid;grid-template-columns:minmax(0,1.500fr) minmax(0,1.200fr) minmax(0,.800fr);gap:var(--sp-6)}
.trio .field{min-width:0}
.form-foot{position:fixed;left:0;right:0;bottom:0;z-index:var(--z-header);display:flex;justify-content:center;gap:var(--sp-4);padding:var(--sp-6) var(--gutter) calc(var(--sp-6) + var(--bottom));background:var(--surface)}
.form-foot .btn{flex:1;max-width:370px}
.form-foot .btn.primary{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Native date and time boxes shrink to their column (iOS gives them a width of their own otherwise). */
.form-page .field{min-width:0}
.form-page .input[type=date],.form-page .input[type=time]{display:block;min-width:0;max-width:100%;-webkit-appearance:none;appearance:none}
.pair.arrive{align-items:end}
.pair.arrive>.muted{padding-bottom:var(--sp-6)}
/* Quick add on the new event form: a card to describe the event in words, then a strip with Undo; the fields it filled have a gold edge until edited, a missing one a dashed orange edge */
.qa{display:flex;flex-direction:column;gap:var(--sp-6)}
.qa[hidden],.qa [hidden]{display:none}
.qa-card{display:flex;flex-direction:column;gap:var(--sp-4);padding:var(--sp-7);border-radius:var(--r-card);background:var(--surface)}
.qa-card textarea{resize:vertical;min-height:calc(var(--tap)*2);line-height:1.4}
.qa-actions{display:flex;justify-content:flex-end;align-items:center;gap:var(--sp-4)}
.qa-actions #qaGo{margin-left:auto}
.qa-attach{display:inline-flex;align-items:center;justify-content:center;width:var(--tap);height:var(--tap);border:0;border-radius:50%;background:var(--raised);color:var(--fg);box-shadow:var(--shadow-1,none);cursor:pointer}
.qa-pics{display:flex;flex-direction:column;gap:var(--sp-2)}
.qa-pics p{margin:0}
.qa-pic{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-4)}
.qa-pic-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qa-attach:disabled{opacity:.5;cursor:default}
.qa-tip{margin:0;font-size:var(--fs-14)}
.qa-strip{display:flex;align-items:center;gap:var(--sp-6);padding:var(--sp-2) var(--sp-7);border-radius:var(--r-card);background:var(--surface)}
.qa-from{flex:none;font:var(--t-overline);color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.qa-strip-text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.qa-note{display:flex;align-items:flex-start;gap:var(--sp-4);margin:0;font-size:var(--fs-14);line-height:1.4}
.qa-dot{flex:none;width:8px;height:8px;margin-top:var(--sp-3);border-radius:50%;background:var(--accent)}
.qa-dup{display:flex;justify-content:space-between;align-items:center;gap:var(--sp-6)}
.qa-or{display:flex;align-items:center;gap:var(--sp-6);color:var(--muted);font-size:var(--fs-14)}
.qa-or::before,.qa-or::after{content:"";flex:1;height:1px;background:var(--hair)}
.form-page .form>.qa+.label{margin-top:0;padding-top:0;border-top:0}
.qa-filled{border:2px solid var(--accent)!important}
.qa-missing{border:2px dashed var(--warn)!important}
.draft-was{margin:var(--sp-2) 0 0;color:var(--muted);font-size:var(--fs-14)}   /* (the line under a field Ask drafted: "was 5:00 PM" or "from Ask"; the gold edge is qa-filled) */
.chips.qa-filled,.seg.qa-filled{border:0!important;outline:2px solid var(--accent);outline-offset:2px;border-radius:var(--r-card)}
.field.qa-missing-field>label::after{content:" · not given";color:var(--warn);font-weight:600}
/* The team the event is for, pinned under the header. */
.team-banner{position:sticky;top:calc(var(--header-h) + var(--top));z-index:calc(var(--z-header) - 1);display:flex;align-items:center;gap:var(--sp-4);padding:var(--sp-4) var(--gutter);background:var(--surface);border-top:1px solid var(--hair);border-bottom:1px solid var(--hair)}
.team-banner[hidden]{display:none}
.team-banner .tav{margin-right:0}
.team-banner .tav .pin{display:none}
.tb-text{display:flex;flex-direction:column;flex:1;min-width:0}
.tb-cap{font:var(--t-label);letter-spacing:.05em;color:var(--muted)}
.tb-name{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tb-sport{flex:none;font-size:var(--fs-14)}
.suggest-field{position:relative}
.suggestions{display:flex;flex-direction:column;border:1px solid var(--line-strong);border-radius:var(--r-ctl);background:var(--surface);overflow:hidden}
.suggestions button{display:flex;flex-direction:column;gap:1px;min-height:var(--tap);padding:var(--sp-4) var(--sp-6);border:0;border-bottom:1px solid var(--hair);background:none;color:var(--fg);font:inherit;text-align:left;cursor:pointer}
.suggestions button:last-child{border-bottom:0}
.suggestions button:hover,.suggestions button:focus{background:var(--raised);outline:0}
.suggestions b{font-size:var(--fs-16)}
.suggestions span{font-size:var(--fs-14);color:var(--muted)}
.suggestions .sug-row{display:flex;border-bottom:1px solid var(--hair)}
.suggestions .sug-row:last-child{border-bottom:0}
.suggestions .sug-row .opt{flex:1;min-width:0;border-bottom:0}
.suggestions .sug-x{flex:none;width:var(--tap);align-items:center;justify-content:center;padding:0;border-bottom:0;color:var(--muted);font-size:var(--fs-14)}
.suggestions .sug-tag{font-size:var(--fs-12);font-weight:600;color:var(--muted)}
.suggestions .sug-note{padding:var(--sp-6);color:var(--muted);font-size:var(--fs-14)}
.suggestions .sug-pin{color:var(--fg);font-size:var(--fs-14)}
.suggestions .sug-credit{display:block;padding:var(--sp-3) var(--sp-6);border-top:1px solid var(--hair);color:var(--muted);font-size:var(--fs-12);text-align:right}
/* The event form's map (Leaflet, vendored in resource/leaflet): tap it or drag the pin to set the spot. */
.pin-map{height:240px;border-radius:var(--r-card);background:var(--raised);z-index:0}
.pin-icon{background:none;border:0}
.pin-icon span{display:block;box-sizing:border-box;width:24px;height:24px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:var(--live);border:3px solid var(--on-video);box-shadow:var(--lift);cursor:grab}
/* ---- schedule: upcoming games, a game's page, the map (schedule.js) ---- */
.when{margin:0;color:var(--muted);font-weight:700;font-size:var(--fs-14)}
.when .cd{color:var(--accent-text)}
.game-title{font:700 var(--fs-28)/1.1 var(--display);letter-spacing:.02em;text-transform:uppercase;margin:0}
.game-card{flex-direction:column;align-items:stretch;gap:var(--sp-4)}
.game-open{display:flex;flex-direction:column;gap:var(--sp-1);padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.btn.yes{background:var(--good);color:var(--on-good)}
.btn.no{background:var(--raised);border:1px solid var(--fg)}
.tag.no{background:var(--raised);color:var(--muted)}
.now-game{margin:0;padding:var(--sp-3) var(--gutter) 0}
.now-game .link-btn{min-height:0;text-align:left}
textarea.input{resize:vertical;line-height:1.4}
/* The map is nine OpenStreetMap picture tiles, slid so the spot is in the middle, with a pin on it. */
.game-map{position:relative;display:block;height:150px;overflow:hidden;border-radius:var(--r-card);background:var(--raised)}
.game-map .tiles{position:absolute;left:50%;top:50%;width:768px;height:768px}
.game-map .tiles img{position:absolute;width:256px;height:256px;max-width:none}
.game-map .pin-mark{position:absolute;left:50%;top:50%;width:22px;height:22px;margin:-22px 0 0 -11px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:var(--live);border:3px solid var(--on-video);box-shadow:var(--lift)}
.game-map .credit{position:absolute;right:0;bottom:0;padding:1px var(--sp-3);background:rgba(255,255,255,.8);color:#222;font-size:var(--fs-12)}
/* Pinch to zoom into a video (pinchZoom in common.js): the box clips the enlarged picture. */
.zoom-box{position:relative;overflow:hidden;border-radius:var(--r-ctl);background:var(--video-bg);line-height:0}
video.zoomed{transform-origin:0 0;will-change:transform;touch-action:none;cursor:grab}
.zoom-chip{position:absolute;top:10px;right:10px;z-index:2;min-height:var(--tap-sm);padding:0 var(--sp-7);border:0;border-radius:var(--r-pill);background:var(--glass);color:var(--on-video);font:700 var(--fs-14)/1 var(--body);cursor:pointer}
.top.goal{animation:goal 1.9s ease-out}
@keyframes goal{0%,30%,60%{background:var(--live)}15%,45%,100%{background:var(--bg)}}
.notice{padding:var(--sp-6) var(--sp-7);margin-bottom:var(--sp-7);border-left:4px solid var(--standby);border-radius:var(--r-ctl);background:var(--surface);font-weight:600}
/* Where a video the media worker is making stands ("Preparing your clip · 3rd in line…"), with "Notify me when it's ready". */
.job-box{display:flex;flex-direction:column;gap:var(--sp-6);align-items:flex-start}
.job-box[hidden]{display:none}
.empty{padding:var(--sp-8) var(--sp-7);border:0;background:var(--surface);border-radius:var(--r-card);text-align:center;color:var(--muted);display:flex;flex-direction:column;align-items:center;gap:var(--sp-6)}
#homeList .empty,.sheet .empty,.chat-body .empty{background:none}   /* already on a surface */
.label{font:var(--t-overline);letter-spacing:.08em;color:var(--muted)}

/* ---- forms ---- */
.field{display:flex;flex-direction:column;gap:var(--sp-3)}
.field label{font-weight:600;font-size:var(--fs-14)}
.input{width:100%;min-height:var(--tap);padding:var(--sp-6) var(--sp-6);border:1px solid var(--line-strong);border-radius:var(--r-ctl);background:var(--bg);color:var(--fg);font:inherit;font-size:var(--fs-16)}
.input::placeholder{color:var(--subtle)}
.with-toggle{position:relative}
.with-toggle .input{padding-right:76px}
.with-toggle button{position:absolute;right:4px;top:0;height:var(--tap);padding:0 var(--sp-6);border:0;background:none;color:var(--fg);font:var(--t-label);cursor:pointer}
.form{display:flex;flex-direction:column;gap:var(--sp-7)}
.pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-6)}
.error-box{padding:var(--sp-6);border:1px solid var(--danger);border-radius:var(--r-ctl);color:var(--danger);font-weight:600}
.checks{max-height:230px;overflow:auto;background:var(--surface);border-radius:var(--r-card)}
.sheet .checks,.sheet .opts{background:var(--bg)}
.checks label{display:flex;align-items:center;gap:var(--sp-6);min-height:var(--tap);padding:var(--sp-3) var(--sp-6);border-bottom:1px solid var(--hair);font-weight:400;font-size:var(--fs-16)}
.checks label:last-child{border-bottom:0}
.checks input{width:22px;height:22px;flex:none;accent-color:var(--fg)}
/* Tick boxes and radio buttons are drawn here, not by the browser: unticked is an empty square (or circle) with a --line-strong edge,
   ticked is filled with a navy tick (the data: image cannot read a token, so it repeats --navy). */
:is(.checks,.opt,label.agree,.pr-choice) input:is([type="checkbox"],[type="radio"]){-webkit-appearance:none;appearance:none;display:inline-grid;place-items:center;border:2px solid var(--line-strong);border-radius:var(--r-tag);background:transparent center/16px no-repeat;cursor:pointer}
:is(.checks,.opt,label.agree,.pr-choice) input[type="radio"]{border-radius:50%}
:is(.checks,.opt,label.agree) input[type="checkbox"]:checked{border-color:var(--fg);background-color:var(--fg);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='%230B1F3A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
:is(.checks,.opt,label.agree) input[type="radio"]:checked{border-color:var(--fg);background:radial-gradient(circle,var(--fg) 0 5px,transparent 5.5px)}
.pr-choice input[type="radio"]:checked{border-color:var(--accent);background:radial-gradient(circle,var(--accent) 0 5px,transparent 5.5px)}
.pr-choice input[type="checkbox"]:checked{border-color:var(--accent);background-color:var(--accent);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='%230B1F3A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
:is(.checks,.opt,label.agree,.pr-choice) input:disabled{border-color:var(--line);cursor:default}

/* ---- bottom sheets, toast ---- */
.scrim{position:fixed;inset:0;overscroll-behavior:contain;z-index:var(--z-sheet);display:none;align-items:flex-end;justify-content:center;background:var(--scrim)}
.scrim.open{display:flex}
.sheet{width:min(560px,100%);max-height:calc(100dvh - 32px - var(--top));overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:var(--sp-7);padding:var(--sp-6) var(--gutter) calc(var(--sp-9) + var(--bottom));border-radius:var(--r-sheet) var(--r-sheet) 0 0;background:var(--surface)}
.sheet>*{flex-shrink:0}   /* a long sheet scrolls; its lists must not be squashed and clipped to fit */
.scrim.open~.scrim.open{background:transparent}   /* a second sheet over the first does not darken the page again */
.sheet .grab{position:relative;align-self:center;width:40px;height:4px;border-radius:var(--r-pill);background:var(--line)}
/* The handle is for a thumb, not a mouse. */
@media (min-width:700px) and (pointer:fine){.sheet .grab{display:none}}
.sheet .grab::before{content:"";position:absolute;inset:-20px -60px}   /* a 44 px tall place to take hold of, the handle looks the same */
.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-4)}
.sheet-head>:is(h2,h3){min-width:0}
.sheet-head .sheet-x{margin-left:auto}   /* the × (sheets.js adds it to a head that has none) */
/* the top of a sheet drags it down (sheets.js), so the browser must not scroll or zoom from there */
.sheet .grab,.sheet-head,.sheet>.grab+h2,.sheet>.grab+h3{touch-action:none}
/* every sheet's title: one style, mixed case (more specific than a heading's own class, as on the event sheet's date) */
:where(.sheet)>:is(h2,h3),.sheet-head :is(h2,h3){font:var(--t-title);line-height:1.1;letter-spacing:.02em;text-transform:none}
.sheet .list{background:var(--bg)}
.copyrow{display:flex;align-items:center;gap:var(--sp-4);margin:var(--sp-6) 0}
.copyrow .grow{flex:1;min-width:0}
.copyrow code{display:block;overflow-wrap:anywhere;font-size:var(--fs-14)}
.copyrow+.btn.block{margin-top:var(--sp-7)}
label.copyrow{cursor:pointer;border-top:1px solid var(--hair);padding-top:var(--sp-7)}
.sheet-actions{display:flex;gap:var(--sp-4)}
.sheet-actions:has(>[hidden]:only-child),.sheet-actions:not(:has(>:not([hidden]))){display:none}
.sheet .btn.block,.sheet .sheet-actions{margin-top:var(--sp-6)}
.sheet-actions .btn{flex:1}
/* the passkey offer: a big icon over the title (48, outside the three icon sizes on purpose) */
.offer-icon{display:flex;justify-content:center;margin-bottom:var(--sp-4);color:var(--accent)}
.offer-icon svg.icon{width:48px;height:48px}
/* A long sheet's last actions stay in reach: the footer sticks to the bottom of the sheet, over its padding (the safe area
   stays below the buttons), and casts a shadow up only while there is more of the sheet behind it (a scroll-driven
   animation: no scroll, no shadow; a browser without them shows none). A sticky box stays inside the sheet's padding, so its
   bottom is minus that padding: it sits flush on the sheet's edge, with nothing showing under it. */
.sheet .sheet-foot{position:sticky;bottom:calc(-20px - var(--bottom));z-index:2;margin:var(--sp-6) calc(-1 * var(--gutter)) calc(-20px - var(--bottom));padding:var(--sp-6) var(--gutter) calc(var(--sp-9) + var(--bottom));background:var(--surface);animation:foot-lift linear both;animation-timeline:scroll(nearest block)}
@keyframes foot-lift{0%,96%{box-shadow:var(--foot-shadow)}100%{box-shadow:none}}
body.sheet-open{overflow:hidden}
@media (min-width:700px){.sheet .grab{display:none}.scrim{align-items:center}.sheet{border-radius:var(--r-sheet)}.sheet .sheet-foot{border-radius:0 0 var(--r-sheet) var(--r-sheet)}}
/* Motion (sheets.js): a sheet slides up as the dark comes in; closing, it is no longer .open (to code and tests it is closed)
   but keeps .closing while it slides down. No `from` / `to` on the far side, so a sheet let go mid-drag moves on from there. */
@media (prefers-reduced-motion:no-preference){
  .scrim.open{animation:scrim-in 240ms ease-out}
  .scrim.open>.sheet{animation:sheet-in 240ms var(--ease-settle)}
  .scrim.closing{display:flex;pointer-events:none;animation:scrim-out 200ms ease-in forwards}
  .scrim.closing>.sheet{animation:sheet-out 200ms ease-in forwards}
}
@keyframes scrim-in{from{background-color:transparent}}
@keyframes scrim-out{to{background-color:transparent}}
@keyframes sheet-in{from{transform:translateY(100%)}}
@keyframes sheet-out{to{transform:translateY(100%)}}
/* The toast sits above the tab bar only on a page that shows one (--toast-tabs); elsewhere it keeps to the bottom edge. */
body:has(>.tabs:not([hidden])){--toast-tabs:calc(var(--tabs-h) + var(--tabs-bump))}
.toast{position:fixed;left:calc(var(--rail-w) + var(--gutter));right:var(--gutter);bottom:calc(var(--toast-tabs,0px) + var(--bottom) + 16px);z-index:var(--z-toast);box-sizing:border-box;max-width:520px;margin:0 auto;display:flex;align-items:center;gap:var(--sp-4);padding:var(--sp-6) var(--sp-7);border-radius:var(--r-card);border-left:4px solid var(--good);background:var(--raised);color:var(--fg);box-shadow:0 6px 20px rgba(0,0,0,.28);font-weight:600;text-align:left;cursor:pointer}
.toast[hidden]{display:none}
.toast .toast-icon{width:20px;height:20px;color:var(--good)}
.toast.toast-error{border-left-color:var(--danger)}
.toast.toast-error .toast-icon{color:var(--danger)}

/* ---- sign-in and sign-up ---- */
/* One screen: the sign-in page (with the passkey button) is about 620 px tall, so it fits a phone without scrolling; the footer sits at the
   bottom, and on a wide screen the lockup and the form are centred in what is left. */
.auth{min-height:100dvh;display:flex;flex-direction:column;align-items:center;gap:var(--sp-6);padding:0 0 calc(var(--sp-4) + var(--bottom))}
.auth .panel{width:min(420px,100%);box-sizing:border-box;padding:0 var(--gutter);display:flex;flex-direction:column;gap:var(--sp-6)}
.auth .form{gap:var(--sp-6)}
.si-hero{align-self:stretch;display:flex;flex-direction:column;align-items:center;gap:var(--sp-4);padding:calc(var(--sp-8) + var(--top)) var(--gutter) var(--sp-6);background:linear-gradient(180deg,var(--surface) 0%,var(--bg) 100%);text-align:center}
.si-hero .tg-lockup{flex-direction:row;gap:var(--sp-6);text-align:left}   /* (the mark beside the wordmark, the tagline under the wordmark) */
.si-hero .tg-lockup img{width:48px;height:48px}
.si-hero .tg-lockup .tg-brand{font-size:36px}
.si-hero .tg-tagline{margin-top:var(--sp-1);font:600 var(--fs-12) var(--body);letter-spacing:.08em;color:var(--muted)}
.si-line{margin:0;font-size:var(--fs-14);color:var(--muted)}
@media (min-width:600px) and (min-height:620px){.si-hero{margin-top:auto;background:none}.auth>.panel{margin-bottom:auto}}
.auth .field label{font-size:var(--fs-12);font-weight:600;letter-spacing:.08em;color:var(--muted)}
.auth .input{height:48px;padding:0 var(--sp-7);border-radius:var(--r-card)}
.auth label.agree{align-items:center;min-height:var(--tap-sm);font-size:var(--fs-16)}
.auth .panel a,.auth .link-btn{color:var(--fg);text-decoration:underline}
.auth .panel p>a,.auth .panel p.center>.link-btn{display:inline-block;padding:var(--sp-4) 0;font-weight:600}
.auth .si-new{margin-top:0;padding-top:var(--sp-4);border-top:1px solid var(--hair)}
.auth .si-gd{margin-top:calc(-1 * var(--sp-4))}
.auth .legal-foot{margin-top:auto;padding-top:var(--sp-4);gap:0;font-size:var(--fs-13)}
.auth .legal-foot a{display:inline-block;padding:var(--sp-4) var(--sp-2)}
.su-step{display:flex;flex-direction:column;gap:var(--sp-7)}.su-step[hidden]{display:none}
.field-err{display:block;color:var(--danger);font-size:var(--fs-14);line-height:1.4}.field-err[hidden]{display:none}
.auth .input[aria-invalid="true"]{border:2px solid var(--danger)}
.auth .input.yob{width:100%}
.agree-field.bad{padding:var(--sp-6);border:2px solid var(--danger);border-radius:var(--r-ctl)}
.su-mail{width:64px;height:64px;display:grid;place-items:center;border-radius:var(--r-card);background:var(--surface);color:var(--accent-text)}.su-mail .icon{width:32px;height:32px}
.auth .input.su-code{height:56px;font:var(--t-heading);letter-spacing:.3em}
.su-altcha{display:flex;align-items:center;justify-content:center;gap:var(--sp-3);margin:0}.su-altcha[hidden]{display:none}.su-altcha .icon{width:14px;height:14px;color:var(--good)}
.inv-card{flex-direction:column;align-items:center;text-align:center;gap:var(--sp-4);padding:var(--sp-8) var(--sp-7)}.inv-card .avatar{margin-bottom:var(--sp-3)}.inv-card h1{margin:0}
.wordmark{font:var(--t-hero);letter-spacing:.03em;text-transform:uppercase;line-height:1}
.invite{padding:var(--sp-7) var(--sp-7);border-left:4px solid var(--muted);border-radius:var(--r-ctl);background:var(--surface);font-size:var(--fs-16)}
.center{text-align:center}

.plan{display:flex;flex-direction:column;gap:var(--sp-4);min-width:0;padding:var(--sp-9);border-radius:var(--r-card);background:var(--bg)}
.plan.featured{border:1px solid var(--standby)}
.plan .amount{font:var(--t-heading);letter-spacing:.02em;line-height:1.05}
.plan .frequency{font-size:var(--fs-14);color:var(--muted)}
.plan .fine{margin-top:auto;padding-top:var(--sp-6);border-top:1px solid var(--hair);font-size:var(--fs-14);color:var(--muted)}
.plan .btn{margin-top:var(--sp-3)}

/* ---- going live from a phone ---- */
.cast{position:fixed;inset:0;background:var(--video-bg);overflow:hidden}
.cast video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:var(--video-bg)}
.cast-setup{position:absolute;inset:0;overflow:auto;display:flex;align-items:flex-start;justify-content:center;padding:calc(var(--sp-8) + var(--top)) var(--gutter) calc(var(--sp-8) + var(--bottom));background:var(--glass)}
.cast-setup .panel{width:min(460px,100%);margin:auto 0;display:flex;flex-direction:column;gap:var(--sp-7)}
.check{flex:none;width:22px;height:22px;border-radius:50%;border:2px solid var(--line-strong)}
.check[data-state="ok"]{border-color:var(--good);background:var(--good)}
.check[data-state="warn"]{border-color:var(--standby);background:var(--standby)}
.check[data-state="bad"]{border-color:var(--danger);background:var(--danger)}
.quality{display:flex;flex-direction:column;align-items:flex-start;gap:var(--sp-2);width:100%;min-height:var(--row-tall);padding:var(--sp-6) var(--sp-7);border:2px solid transparent;border-radius:var(--r-card);background:var(--surface);color:var(--fg);font:inherit;text-align:left;cursor:pointer}
.quality strong{font:var(--t-heading);letter-spacing:.02em;line-height:1}
.quality.rec{border-color:var(--fg)}
.quality:disabled{opacity:.5;cursor:default}
.quality .tag{padding:1px var(--sp-4);border-radius:var(--r-tag);background:var(--raised);color:var(--fg);font:var(--t-label)}
.cast-hud{position:absolute;z-index:2;display:flex;align-items:center;gap:var(--sp-4);padding:var(--sp-4) var(--sp-6);border-radius:var(--r-ctl);background:rgba(10,14,20,.74);font-weight:600;font-size:var(--fs-14);font-variant-numeric:tabular-nums}
.hud-tl{top:calc(10px + var(--top));left:calc(10px + env(safe-area-inset-left,0px))}
.hud-tr{top:calc(10px + var(--top));right:calc(10px + env(safe-area-inset-right,0px))}
.hud-bl{bottom:calc(84px + var(--bottom));left:calc(10px + env(safe-area-inset-left,0px));max-width:calc(100% - 20px)}
.hud-zoom{bottom:calc(84px + var(--bottom));right:calc(10px + env(safe-area-inset-right,0px));font-size:var(--fs-14)}
.cast{touch-action:none}
.cast-setup{touch-action:pan-y}
.hud-hint{top:calc(60px + var(--top));left:50%;transform:translateX(-50%);white-space:nowrap;font-size:var(--fs-14)}
.bars{display:inline-flex;align-items:flex-end;gap:var(--sp-2);height:18px}
.bars i{width:5px;border-radius:1px;background:#4B5563}
.bars i:nth-child(1){height:7px}.bars i:nth-child(2){height:12px}.bars i:nth-child(3){height:18px}
.bars[data-level="1"] i:nth-child(1){background:var(--danger)}
.bars[data-level="2"] i:nth-child(-n+2){background:var(--standby)}
.bars[data-level="3"] i{background:var(--good)}
.cast-controls{position:absolute;z-index:2;left:0;right:0;bottom:calc(14px + var(--bottom));display:flex;justify-content:center;gap:var(--sp-4);flex-wrap:wrap;padding:0 var(--sp-6)}
.cast-controls .btn{background:rgba(10,14,20,.8)}
.cast-controls .btn.end{background:var(--live);border-color:var(--live);color:var(--on-video)}
.cast-controls .btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-fg)}

/* ---- error page ---- */
.oops{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:calc(var(--sp-8) + var(--top)) var(--gutter) calc(var(--sp-8) + var(--bottom))}
.oops-panel{width:min(520px,100%);display:flex;flex-direction:column;gap:var(--sp-7)}
.oops .mark{font:var(--t-heading);letter-spacing:.03em;text-transform:uppercase;color:var(--muted)}
.scoreboard{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:var(--sp-6);padding:var(--sp-7);border-radius:var(--r-card);background:var(--surface);text-align:center}
.scoreboard .side{display:block;font:var(--t-label-strong);letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.scoreboard .num{display:block;font:var(--t-hero);line-height:1;font-variant-numeric:tabular-nums}
.scoreboard .num.bad{color:var(--standby)}
.scoreboard .code{font:700 var(--fs-16) var(--display);letter-spacing:.08em;line-height:1.15;text-transform:uppercase;color:var(--muted)}
.oops h1{font-size:var(--fs-40)}
.oops .detail{padding:var(--sp-6) var(--sp-7);border-left:4px solid var(--standby);border-radius:var(--r-ctl);background:var(--surface);font-weight:600;overflow-wrap:anywhere}
.oops .quip{font-size:var(--fs-16);color:var(--muted);min-height:2.8em}
.oops .actions{display:flex;gap:var(--sp-4);flex-wrap:wrap}
.quip-next{min-height:0;margin-top:var(--sp-3);padding:var(--sp-3) 0;border:0;background:none;color:var(--fg);font:var(--t-label);cursor:pointer}
.quip-next span{color:var(--muted);font-weight:400}

/* A phone on its side is for watching: give the whole screen to the video. */
@media (orientation:landscape) and (max-height:500px){
  .watching .top,.watching .tabs{display:none}
  .watching .stage{aspect-ratio:auto;height:100dvh;max-height:none}
  .watching .view{padding-bottom:0}
  /* full means the video alone: no chat line, no message box, no cookie bar; a toast rides above the controls */
  .watching .cookie-notice{display:none!important}
  .watching .toast{bottom:calc(72px + var(--bottom))}
}
body.theater .cookie-notice{display:none!important}
body.theater .toast{bottom:calc(72px + var(--bottom))}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* ---------- Hall of Fame ---------- */
.avatar{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:hsl(var(--hue,212) 45% 38%);color:var(--white);font:var(--t-title)}
.avatar.big{width:68px;height:68px;font-size:var(--fs-28)}
.hall-head{display:flex;align-items:center;gap:var(--sp-6)}
.hall-head h1{margin:0;font:italic 800 var(--fs-28)/1 var(--display);text-transform:uppercase}
.hall-head .sub,.row .sub .icon.tiny{display:inline-flex;align-items:center;gap:var(--sp-2)}
.hall-head .sub{display:block}
.icon.tiny{vertical-align:-2px;margin-right:var(--sp-2)}
.role-tag{flex:none;font:var(--t-caption);padding:var(--sp-2) var(--sp-4);border-radius:var(--r-tag);background:var(--raised);color:var(--fg)}
.role-tag.reply{background:var(--accent);color:var(--accent-fg)}
.kind{display:inline-block;font:var(--t-caption-strong);padding:1px var(--sp-3);margin-right:var(--sp-3);border-radius:var(--r-tag);background:var(--raised);color:var(--muted);vertical-align:1px}
.thumb-wrap .len{position:absolute;right:3px;bottom:3px;font:var(--t-caption);padding:0 var(--sp-2);border-radius:var(--r-tag);background:rgba(11,31,58,.8);color:var(--white)}
.meter{display:flex;height:9px;border-radius:var(--r-pill);background:var(--raised);overflow:hidden}
.meter b{background:var(--muted)}
.meter b.add{background:var(--fg)}
.meter b.over{background:var(--danger)}
.ring{flex:none;display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:conic-gradient(var(--fg) calc(var(--p)*1%),var(--raised) 0)}
.ring span{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--surface);font:700 var(--fs-14) var(--display)}
.space-card{margin-bottom:var(--sp-6)}
.space-card .name,.space-card .sub,.hall-empty .name,.hall-empty .sub{display:block}
.space-card .name{font-weight:700}
.space-card .sub,.hall-empty .sub{color:var(--muted);font-size:var(--fs-14)}
.hall-empty .sub{white-space:normal}
.filter-row{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-4);flex-wrap:wrap}
.season-head{display:flex;justify-content:space-between;align-items:baseline}
.season-head .small{font:500 var(--fs-14) var(--body);letter-spacing:0;text-transform:none}       /* the count is a detail, not a heading */
.team-row{margin-bottom:var(--sp-4)}
.team-row .plain{display:flex;flex-direction:column;align-items:flex-start;gap:var(--sp-1);padding:0;border:0;background:none;color:var(--fg);font:inherit;text-align:left;cursor:pointer}
.kept{display:flex;flex-direction:column;gap:var(--sp-1);padding:var(--sp-6) var(--sp-6);border-radius:var(--r-card);background:var(--surface)}
.pin-size{display:flex;flex-direction:column;gap:var(--sp-3)}
.pin-size .row-line{display:flex;justify-content:space-between;gap:var(--sp-4);flex-wrap:wrap}
.notice.bad{border-color:var(--danger)}
.stretch,.two-col{display:grid;grid-template-columns:1fr 1fr;gap:var(--sp-6)}
.space-total{display:flex;align-items:baseline;gap:var(--sp-3)}
.space-total .big{font:var(--t-number)}
.row-pair{display:flex;align-items:center;border-bottom:1px solid var(--hair)}
.row-pair .row{border-bottom:0;flex:1;min-width:0;width:auto}
.row-pair .icon-btn{flex:none}
.mem-team{border-bottom:1px solid var(--hair)}
.mem-team .row{border-bottom:0}
.mem-actions{display:flex;flex-wrap:wrap;gap:var(--sp-4);padding:0 0 var(--sp-6)}
.team-space{margin-bottom:var(--sp-6)}
.sug-video{display:block;width:100%;max-height:50vh;margin:var(--sp-4) 0;border-radius:var(--r-ctl);background:#000}
.team-row .name{font-weight:700}
.role-tag.add{background:var(--tint-good);color:var(--on-tint-good)}
.role-tag.view{background:var(--raised);color:var(--muted)}
.family-invite{display:flex;flex-direction:column;gap:var(--sp-6);margin-bottom:var(--sp-6)}
.family-link{align-self:flex-start;margin-top:var(--sp-2)}
.share-row{display:flex;align-items:center;gap:var(--sp-4);padding:var(--sp-4) 0;border-bottom:1px solid var(--hair)}
.share-row select{width:auto;min-height:var(--ctl);padding:var(--sp-2) var(--sp-4)}
.chip small{font-weight:500;color:inherit;opacity:.8}
.hall-role{display:block;margin-top:var(--sp-2)}
.member-row .bar-mini{height:6px;border-radius:var(--r-pill);background:var(--raised);overflow:hidden;margin-top:var(--sp-2)}
.member-row .bar-mini b{display:block;height:100%;background:var(--fg)}
.share-row b,.share-row .sub{display:block}
.share-row .sub{color:var(--muted);font-size:var(--fs-14);overflow-wrap:anywhere}
.sub-head{margin-top:var(--sp-6)}
.plans-link{align-self:flex-start;margin:-4px 0 var(--sp-2)}
.ring.over{background:conic-gradient(var(--danger) calc(var(--p)*1%),var(--raised) 0)}
.meter b.over{background:var(--danger)}
.role-tag.archive{background:var(--danger);color:var(--on-danger)}
.space-pick{display:flex;flex-direction:column;gap:var(--sp-3);padding:var(--sp-7);border:2px solid transparent;border-radius:var(--r-card);background:var(--surface);margin-bottom:var(--sp-4)}
.space-pick.on{border-color:var(--fg)}
.space-pick .row-line{display:flex;justify-content:space-between;gap:var(--sp-4);flex-wrap:wrap}
.slots{display:grid;grid-template-columns:repeat(6,1fr);gap:var(--sp-3)}
.slots span{height:30px;border-radius:var(--r-ctl);background:var(--raised);display:grid;place-items:center;font:700 var(--fs-14) var(--display)}
.slots span.f{background:var(--fg);color:var(--bg)}
.plan-card .grow{display:flex;flex-direction:column;gap:var(--sp-3)}
.plan-list{display:flex;flex-direction:column;gap:var(--sp-6)}
.card.plan{flex-direction:column;align-items:stretch;gap:var(--sp-3)}
.card.plan.current{box-shadow:var(--ring-fg)}
.card.plan .row-line{display:flex;justify-content:space-between;align-items:center;gap:var(--sp-4)}
.tier{font:italic 800 var(--fs-20)/1 var(--display)}
.price{display:flex;align-items:baseline;gap:var(--sp-4);flex-wrap:wrap}
.price b{font:var(--t-number)}
.price span{color:var(--muted);font-size:var(--fs-14)}
.plan-actions{display:grid;grid-template-columns:1fr 1fr;gap:var(--sp-4)}
.card.plan .sub{color:var(--muted);font-size:var(--fs-14)}

/* ---------- legal pages, footer, cookie notice ---------- */
.legal-foot{display:flex;flex-direction:column;align-items:center;gap:var(--sp-2);margin:var(--sp-8) auto var(--sp-4);padding:var(--sp-7) var(--gutter) 0;border-top:1px solid var(--hair);color:var(--muted);font-size:var(--fs-14);text-align:center;max-width:760px;width:100%}
.legal-foot nav{display:flex;align-items:baseline;gap:var(--sp-3);flex-wrap:wrap;justify-content:center}   /* (baseline: the " · " between the links sits on the line, not above it) */
.legal-foot a{color:var(--fg);text-decoration:underline}
.legal-foot p{margin:0}
.auth .legal-foot{border-top:0}
.legal-doc{line-height:1.55}
.legal-doc h2{font:var(--t-title);letter-spacing:.04em;text-transform:uppercase;margin:var(--sp-7) 0 0}
.legal-doc p,.legal-doc li{max-width:70ch}
.legal-doc ul{margin:0;padding-left:var(--sp-9);display:flex;flex-direction:column;gap:var(--sp-3)}
.legal-doc a{color:var(--fg);text-decoration:underline}
.legal-doc .why{color:var(--muted)}
.legal-doc table{border-collapse:collapse;width:100%;min-width:480px;font-size:var(--fs-14)}
.legal-doc th,.legal-doc td{text-align:left;padding:var(--sp-4) var(--sp-4);border-bottom:1px solid var(--hair);vertical-align:top}
.legal-doc th{font-size:var(--fs-12);color:var(--muted)}
.table-scroll{overflow-x:auto}
.short-version{flex-direction:column;align-items:flex-start}
.short-version p,.legal-toc p{margin:var(--sp-2) 0 0}
.legal-toc a{color:var(--fg);text-decoration:underline}
.cookie-notice{position:fixed;left:calc(var(--rail-w) + var(--gutter));right:var(--gutter);bottom:calc(var(--tabs-h,0px) + var(--bottom) + var(--tabs-bump) + 8px);z-index:var(--z-toast);box-sizing:border-box;max-width:560px;height:48px;margin:0 auto;display:flex;align-items:center;gap:var(--sp-4);padding:0 var(--sp-4) 0 var(--sp-6);background:var(--surface);border-radius:var(--r-card);box-shadow:var(--lift-md);font-size:var(--fs-14);line-height:1.2}
.cookie-notice p{flex:1;min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cookie-notice a{display:inline-block;padding:var(--sp-6) 0;color:var(--fg);text-decoration:underline}
.cookie-actions{flex:none;display:flex;gap:var(--sp-4)}
.cookie-notice .btn{flex:none;min-height:var(--tap)}
:root{--cookie-h:56px}
html.has-cookie .view,html.has-cookie .watching:not(.rpage) .view{margin-bottom:var(--cookie-h)}
html.has-cookie .auth{padding-bottom:calc(var(--sp-8) + var(--bottom) + var(--cookie-h))}
.viewing-as{--vb-h:var(--ctl-sm)}
/* View as (lib/viewas.js): the red bar over every page while an admin looks at the app as someone else. Above every layer (--z-viewas), and --top grows by its height so headers and sticky rows start below it. */
.viewas{position:fixed;top:0;left:0;right:0;z-index:var(--z-viewas);display:flex;align-items:center;justify-content:space-between;gap:var(--sp-4);height:calc(env(safe-area-inset-top,0px) + var(--vb-h));padding:env(safe-area-inset-top,0px) max(var(--sp-4),var(--right)) 0 max(var(--sp-4),var(--left));background:var(--live);color:var(--white);font:var(--t-label-strong)}
.va-text{display:flex;min-width:0;white-space:nowrap}
.va-name{min-width:0;overflow:hidden;text-overflow:ellipsis}
.va-rest{flex:none}
.va-form{margin:0;flex:none}
.va-stop{min-height:var(--ctl-xs);padding:0 var(--sp-7);border:0;border-radius:var(--r-pill);background:var(--paper);color:var(--on-paper);font:var(--t-label-strong);cursor:pointer}
.va-stop:focus-visible{outline:2px solid var(--paper);outline-offset:2px;box-shadow:0 0 0 4px var(--on-paper)}
.legal-gate{position:fixed;inset:0;z-index:var(--z-top);display:flex;align-items:flex-end;justify-content:center;background:rgba(5,13,26,.75)}
.legal-gate .sheet{width:min(560px,100%);display:flex;flex-direction:column;gap:var(--sp-6);padding:var(--sp-9) var(--gutter) calc(var(--sp-9) + var(--bottom));background:var(--surface);border-radius:var(--r-sheet) var(--r-sheet) 0 0}
.legal-gate a{color:var(--fg);text-decoration:underline}
/* On a phone the gate's text scrolls inside the sheet and its buttons stay in view at the bottom. */
.legal-gate .sheet{max-height:calc(100dvh - var(--top) - var(--sp-9));overflow-y:auto;overscroll-behavior:contain;padding-bottom:0}
.legal-gate .sheet-actions{position:sticky;bottom:0;margin-top:auto;padding:var(--sp-6) 0 calc(var(--sp-9) + var(--bottom));background:var(--surface)}
/* A changed Privacy Policy, cookie page or Refund Policy: one line under the header, shown until it is closed or read. */
.legal-note{display:flex;align-items:center;gap:var(--sp-4);padding:var(--sp-2) var(--sp-2) var(--sp-2) var(--gutter);background:var(--surface);border-bottom:1px solid var(--hair);color:var(--muted);font-size:var(--fs-14)}
.legal-note a{color:var(--fg);text-decoration:underline}
label.agree{display:flex;gap:var(--sp-4);align-items:flex-start;font-size:var(--fs-14);line-height:1.4}
label.agree input{width:20px;height:20px;flex:none;margin-top:1px;accent-color:var(--fg)}
label.agree a{color:var(--fg);text-decoration:underline}

/* ---------- marks ---------- */
.mark-btn{min-height:var(--tap);padding:0 var(--sp-7);background:var(--accent);color:var(--accent-fg);margin-left:auto}
.mark-mode{position:fixed;left:0;right:0;bottom:0;top:45vh;z-index:var(--z-mode);display:flex;flex-direction:column;gap:var(--sp-6);padding:var(--sp-7) var(--gutter) calc(var(--sp-7) + var(--bottom));background:var(--bg);box-shadow:0 -12px 30px rgba(0,0,0,.45);border-radius:var(--r-sheet) var(--r-sheet) 0 0;overflow:auto}
body.marking .tabs{visibility:hidden}
.mark-head{display:flex;align-items:center;gap:var(--sp-4);font-weight:700}
.mark-big{flex:1;min-height:120px;max-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--sp-2);border:0;border-radius:var(--r-card);background:var(--accent);color:var(--accent-fg);font:italic 800 var(--fs-40)/1 var(--display);cursor:pointer;box-shadow:0 0 0 6px rgba(255,199,44,.22);touch-action:manipulation}
.mark-big .icon{width:34px;height:34px}
.mark-big small{font:var(--t-label);text-transform:none;font-style:normal}
.mark-big.flash{animation:markflash .35s ease-out}
@keyframes markflash{0%{transform:scale(.96);box-shadow:0 0 0 18px rgba(255,199,44,.45)}100%{transform:none}}
@media (prefers-reduced-motion:reduce){.mark-big.flash{animation:none}}
.mark-count{margin:0;text-align:center}
/* What was it? Under Mark after each tap, with a bar running down the 10 seconds it stays without a touch. */
.mark-ask{position:relative;display:flex;flex-direction:column;gap:var(--sp-6);padding:var(--sp-6) var(--sp-6) var(--sp-7);border-radius:var(--r-card);background:var(--surface);overflow:hidden;flex:none}
.mark-ask-head{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-4)}
.mark-ask-head .icon-btn{width:var(--ctl);height:var(--ctl);margin:-6px -8px -6px 0}
.mark-words{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sp-4)}
.mark-words button{min-height:var(--tap);padding:0 var(--sp-3);border:0;border-radius:var(--r-ctl);background:var(--raised);color:var(--fg);font:700 var(--fs-16) var(--display);letter-spacing:.04em;cursor:pointer;touch-action:manipulation;overflow-wrap:anywhere}
.mark-words button:active{background:var(--fg);color:var(--bg)}
.mark-ask-note{display:flex;gap:var(--sp-4)}
.mark-ask-note .input{flex:1;min-width:0}
.mark-ask-foot{display:flex;justify-content:space-between;gap:var(--sp-6)}
.mark-timer{position:absolute;left:0;right:0;bottom:0;height:4px;background:var(--line)}
.mark-timer i{display:block;height:100%;background:var(--accent);transform-origin:left}
.mark-timer.run i{animation:marktimer 10s linear forwards}
.mark-timer.held{visibility:hidden}
@keyframes marktimer{from{transform:scaleX(1)}to{transform:scaleX(0)}}
@media (prefers-reduced-motion:reduce){.mark-timer.run i{animation:none}}
.mark-mode.asking .mark-big{min-height:96px}
.mark-mode.asking .mark-big small{font-size:var(--fs-12)}
.mark-mode.full.asking .mark-big{min-height:30vh}
.mark-banner{display:flex;align-items:center;gap:var(--sp-4);padding:var(--sp-6) var(--sp-6);margin-bottom:var(--sp-4);border-radius:var(--r-card);background:var(--surface);color:var(--fg)}
.mark-banner .flag{color:var(--fg);font-size:var(--fs-20)}
.mark-banner a,.mark-banner span.grow{color:var(--fg);text-decoration:none;display:flex;flex-direction:column}
.mark-banner .sub{color:var(--muted);font-size:var(--fs-14)}
.mark-card{flex-direction:column;align-items:stretch;gap:var(--sp-4);margin-top:var(--sp-4)}
.mark-chip[aria-pressed="true"]{background:var(--fg);color:var(--bg)}
#marksBox .chips{flex-wrap:nowrap;overflow-x:auto;padding-bottom:var(--sp-1)}
#marksBox .chip{flex:none;min-height:var(--tap-sm);font-size:var(--fs-14)}
.mark-mode.full{top:0;border-top:0;border-radius:0;padding-top:calc(var(--sp-7) + var(--top))}
.mark-mode.full .mark-big{max-height:none;min-height:46vh}
.mark-head .sub{display:block;font-weight:400;font-size:var(--fs-14);color:var(--muted)}
/* one gold action across the card, the others side by side under it (or across, when alone) */
.live-actions{display:grid;grid-template-columns:1fr 1fr;gap:var(--sp-4)}
.live-actions>.primary,.live-actions>.btn:only-child,.live-actions>.btn:nth-child(2):last-child{grid-column:1/-1}

/* ---------- messages (chat.js) ---------- */
.chat-btn{position:relative}
.chat-badge{position:absolute;top:3px;right:1px;box-sizing:content-box;min-width:16px;height:16px;padding:0 var(--sp-2);border:2px solid var(--bg);border-radius:var(--r-pill);background:var(--live);color:var(--on-video);font:700 var(--fs-12)/16px var(--body);text-align:center;pointer-events:none}
body.chat-open{overflow:hidden}
body.chat-open .toast{bottom:calc(var(--bottom) + 88px)}
.chat-panel{--pad-x:max(var(--gutter),calc((100% - var(--content)) / 2));position:fixed;left:0;right:0;top:0;height:100vh;height:100dvh;z-index:var(--z-panel);display:flex;flex-direction:column;background:var(--bg);overflow:hidden}
/* A panel pushes in from the right as it shows; once hidden it keeps .leaving while it slides back out (chat.js chatPanelMotion).
   Transform only: the thread's keyboard fitting sets its top and height. */
@media (prefers-reduced-motion:no-preference){
  .chat-panel:not([hidden]){animation:panel-in 280ms var(--ease-settle)}
  .chat-panel.leaving[hidden]{display:flex!important;pointer-events:none;animation:panel-out 240ms ease-in forwards}
}
@keyframes panel-in{from{transform:translateX(100%)}}
@keyframes panel-out{to{transform:translateX(100%)}}
#chatThread{z-index:41}
.chat-head{flex:none;display:flex;align-items:center;gap:var(--sp-3);min-height:calc(var(--header-h) + var(--top));padding:var(--top) max(var(--sp-4),var(--right),calc(var(--pad-x) - var(--sp-4))) 0 max(var(--sp-4),var(--left),calc(var(--pad-x) - var(--sp-4)));background:var(--bg)}
.chat-head h2{flex:1;min-width:0;padding:0 var(--sp-2);font-size:var(--fs-20);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-head h2:focus{outline:0}
.chat-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:var(--sp-6) var(--pad-x) calc(var(--bottom) + var(--sp-8))}
.chat-body .pad{padding:0}
/* inbox */
.chat-row{display:flex;align-items:center;gap:var(--sp-6);width:100%;min-height:var(--row-tall);padding:var(--sp-6) var(--sp-6);border:0;border-bottom:1px solid var(--hair);background:none;color:var(--fg);font:inherit;text-align:left;cursor:pointer;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}
.chat-row:active{background:var(--raised)}
.chat-row .grow{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.chat-tile{flex:none;display:grid;place-items:center;width:48px;height:48px;border:2px solid var(--sport,var(--line));border-radius:var(--r-ctl);background:var(--raised);color:var(--sport,var(--fg));font:var(--t-title);letter-spacing:.02em}
.chat-name{display:flex;align-items:center;gap:var(--sp-3);min-width:0}
.chat-name .n{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-name .icon{color:var(--muted)}
.chat-prev{color:var(--muted);font-size:var(--fs-14);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-prev.unread{color:var(--fg)}
.chat-note{color:var(--muted);font-size:var(--fs-14)}
.chat-side{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:var(--sp-3);min-width:var(--tap)}
.chat-when{color:var(--muted);font-size:var(--fs-14);white-space:nowrap}
.chat-pill{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 var(--sp-4);border-radius:var(--r-pill);background:var(--live);color:var(--on-video);font:var(--t-label-strong)}
.chat-pill.off{background:var(--raised);color:var(--muted)}
.chat-pill.req-pill{background:var(--standby);color:var(--standby-fg)}
.chat-hint{margin:var(--sp-6) var(--sp-2) 0;text-align:center}
/* thread */
.chat-filters{flex:none;display:flex;gap:var(--sp-4);padding:var(--sp-4) var(--pad-x)}
.chat-filters .chip{flex:1;min-width:0;padding:0 var(--sp-4)}
.chat-stage{position:relative;flex:1;min-height:0;display:flex}
.chat-scroll{flex:1;min-width:0;overflow-y:auto;overscroll-behavior:contain;padding:var(--sp-4) var(--pad-x) var(--sp-6)}
.chat-scroll .empty{margin-top:var(--sp-8)}
.chat-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--sp-4)}
.chat-day{align-self:center;margin:var(--sp-6) 0 var(--sp-1);padding:var(--sp-1) var(--sp-6);border-radius:var(--r-pill);background:var(--surface);color:var(--muted);font:var(--t-label)}
.chat-msg{display:flex;flex-direction:column;align-items:flex-start;gap:var(--sp-1);max-width:86%;min-width:0;align-self:flex-start}
.chat-msg.mine{align-self:flex-end;align-items:flex-end}
.chat-who{display:flex;align-items:center;gap:var(--sp-3);padding:0 var(--sp-2);font-size:var(--fs-14);font-weight:700;color:var(--muted)}
.chat-mgr{padding:0 var(--sp-3);border-radius:var(--r-tag);background:var(--raised);color:var(--fg);font:600 var(--fs-12)/16px var(--body)}
.chat-line{display:flex;align-items:center;gap:0;max-width:100%;min-width:0}
.chat-bubble{min-width:0;padding:var(--sp-4) var(--sp-6);border-radius:var(--r-card) var(--r-card) var(--r-card) var(--r-tag);background:var(--raised);white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}
.mine .chat-bubble{border-radius:var(--r-card) var(--r-card) var(--r-tag) var(--r-card);background:var(--mine);color:var(--fg)}
.mine .chat-more{order:-1}
.chat-more{position:relative;flex:none;display:grid;place-items:center;width:var(--ctl-xs);height:var(--ctl-xs);margin:0;padding:0;border:0;border-radius:var(--r-ctl);background:none;color:var(--muted);cursor:pointer}
/* The "···" opens the same menu as a long press (or a right-click). With a mouse it shows while the pointer or the focus is on the message;
   on a touch screen the long press is the way in, so it is drawn only while it has the keyboard's focus. It stays in the page for screen readers. */
@media (hover:hover){.chat-more{opacity:0}.chat-msg:hover .chat-more,.chat-event:hover .chat-more,.chat-msg:focus-within .chat-more,.chat-event:focus-within .chat-more,.chat-focus .chat-more,.chat-more:focus-visible{opacity:1}}
@media (hover:none){.chat-more:not(:focus-visible){position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip-path:inset(50%)}}
.chat-stamp{padding:0 var(--sp-2);color:var(--muted);font-size:var(--fs-12)}
/* (a run of messages from one person shows its time once, under the last: the others' times are .sr-only, see chatStamps in chat.js) */
/* undo send: your message while the server holds it (a few seconds), muted, with Undo under it */
.chat-held .chat-bubble{opacity:.6}
.chat-held-foot{display:flex;align-items:center;gap:var(--sp-2)}
.chat-undo{display:inline-flex;align-items:center;min-height:var(--tap);margin:-10px 0;padding:0 var(--sp-4);border:0;border-radius:var(--r-ctl);background:none;color:var(--fg);font:700 var(--fs-14)/1 var(--body);text-decoration:underline;cursor:pointer}
.chat-undo:disabled{color:var(--subtle);cursor:default}
.chat-event{align-self:stretch}
.chat-card{display:flex;flex-direction:column;gap:var(--sp-2);padding:var(--sp-6) var(--sp-3) var(--sp-6) var(--sp-7);border-left:6px solid var(--edge,var(--muted));border-radius:var(--r-card);background:var(--surface);overflow-wrap:anywhere}
.chat-card.tone-good{--edge:var(--good)}.chat-card.tone-accent{--edge:var(--muted)}.chat-card.tone-danger{--edge:var(--danger)}
.chat-ev-top{display:flex;align-items:center;gap:var(--sp-4);min-height:20px}
.chat-ev-label{flex:1;font:var(--t-label);color:var(--edge,var(--muted))}
.chat-ev-title{font-weight:700;font-size:var(--fs-16);padding-right:var(--sp-4)}
.chat-ev-when,.chat-ev-place{color:var(--muted);font-size:var(--fs-14);padding-right:var(--sp-4)}
.chat-ev-when s{opacity:.8}
.chat-ev-foot{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-4);flex-wrap:wrap;padding-right:var(--sp-4)}
.chat-ev-by{color:var(--muted);font-size:var(--fs-14)}
.chat-ev-link{display:inline-flex;align-items:center;min-height:var(--tap);margin-bottom:-8px;font-weight:700;font-size:var(--fs-14);color:var(--fg)}
.chat-new{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);display:inline-flex;align-items:center;gap:var(--sp-3);min-height:var(--ctl);padding:0 var(--sp-7);border:0;border-radius:var(--r-pill);background:var(--accent);color:var(--accent-fg);font:var(--t-label-strong);cursor:pointer;box-shadow:var(--lift-md)}
.chat-composer{flex:none;display:flex;align-items:flex-end;gap:var(--sp-4);padding:var(--sp-4) var(--pad-x) calc(var(--sp-4) + var(--bottom));background:var(--surface)}
.chat-composer textarea{flex:1;min-width:0;max-height:140px;resize:none;overflow-y:auto;line-height:1.35}
.chat-composer .btn{flex:none;width:var(--tap);padding:0}
/* notification sheet */
.opt{display:flex;align-items:center;gap:var(--sp-6);min-height:var(--row);padding:var(--sp-4) var(--sp-6);border-bottom:1px solid var(--hair);cursor:pointer}
.opt input{flex:none;width:22px;height:22px;margin:0;accent-color:var(--fg)}
.opt .grow{flex:1;min-width:0}
.opt .name,.opt .sub{display:block}
.opt .name{font-weight:700}
.opt .sub{color:var(--muted);font-size:var(--fs-14)}
.dur{display:flex;gap:var(--sp-4);flex-wrap:wrap}
.dur label{position:relative;display:inline-flex}
.dur input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.dur input:disabled{cursor:default}
.dur span{display:inline-flex;align-items:center;min-height:var(--tap);padding:0 var(--sp-7);border:0;border-radius:var(--r-pill);background:var(--raised);font:var(--t-body-strong)}
.dur input:checked+span{background:var(--fg);color:var(--bg)}
.dur input:focus-visible+span{outline:3px solid var(--accent);outline-offset:2px}
.dur input:disabled+span{opacity:.45}

/* ---------- the one-bar replay (recording page) ---------- */
.ctl.one{gap:var(--sp-3)}
.ctl.one .sq{width:var(--tap);height:var(--tap)}
.ctl.one .sq.play{width:var(--ctl-lg);height:var(--ctl-lg)}
.ctl.one .sq.slow{width:auto;min-width:56px;padding:0 8px}
.ctl .clock{flex:1;min-width:0;text-align:center;font:600 var(--fs-14)/1.25 var(--body);font-variant-numeric:tabular-nums;color:var(--muted)}
.stage:fullscreen{aspect-ratio:auto;max-height:none;height:100%}
.stage:-webkit-full-screen{aspect-ratio:auto;max-height:none;height:100%}
.stage .ripple{position:absolute;top:0;bottom:0;z-index:3;width:40%;display:grid;place-items:center;background:rgba(255,255,255,.22);color:var(--on-video);font:800 italic var(--fs-20) var(--display);text-shadow:0 1px 3px rgba(0,0,0,.6);pointer-events:none;animation:ripple .6s ease-out forwards}
.stage .ripple.l{left:0;border-radius:0 50% 50% 0/0 50% 50% 0}
.stage .ripple.r{right:0;border-radius:50% 0 0 50%/50% 0 0 50%}
@keyframes ripple{0%{opacity:0}20%{opacity:1}100%{opacity:0}}
@media (prefers-reduced-motion:reduce){.stage .ripple{animation:none}}
/* The one bar: the whole game. Inset so the knob and markers at either end stay on screen. */
.timeline{display:flex;flex-direction:column;gap:var(--sp-1);margin:0 14px}
.chapters{position:relative;height:var(--ctl-xs)}
.chapters button{position:absolute;top:0;min-width:0;min-height:var(--ctl-xs);padding:4px 0 4px 4px;border:0;border-left:1px solid var(--line);background:none;color:var(--muted);font:600 var(--fs-13) var(--body);text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.chapters button:first-child{border-left-color:transparent}
.chapters button[aria-current="true"]{color:var(--fg)}
.bar-wrap{position:relative}
.bar{position:absolute;inset:0;touch-action:pan-y;cursor:pointer;border-radius:var(--r-ctl)}   /* (a horizontal drag is the bar's; a vertical swipe still scrolls the page) */
.bar .rail{position:absolute;left:0;right:0;top:28px;height:6px;border-radius:var(--r-pill);background:var(--raised)}
.bar .rail i{display:block;height:100%;width:0;border-radius:var(--r-pill);background:var(--muted)}
.plane .notch{position:absolute;top:22px;width:3px;height:14px;margin-left:-1px;background:var(--bg)}
.bar .knob{position:absolute;top:31px;left:0;width:18px;height:18px;margin:-9px 0 0 -9px;border-radius:50%;background:var(--fg);border:3px solid var(--live);pointer-events:none}
.markers{position:absolute;inset:0;pointer-events:none}
.mk{position:absolute;width:var(--ctl-xs);height:var(--ctl-xs);margin-left:-16px;padding:0;border:0;border-radius:50%;background:none;display:grid;place-items:center;color:var(--fg);pointer-events:auto;cursor:pointer}
.mk svg{width:22px;height:22px;fill:currentColor;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mk.done{color:var(--good)}
.mk[aria-pressed="true"]{background:rgba(255,255,255,.2)}
.legend{display:flex;flex-wrap:wrap;gap:var(--sp-1) var(--sp-6);font-size:var(--fs-14);color:var(--muted)}
.legend svg{width:14px;height:14px;vertical-align:-2px;fill:currentColor;stroke:currentColor;stroke-width:2}
.legend .flag{color:var(--fg)}
.mcard{display:flex;flex-direction:column;gap:var(--sp-4);padding:10px 12px;border-radius:var(--r-card);background:var(--surface)}
.mcard.on{background:var(--raised)}
.mcard .mc-top{display:flex;align-items:center;gap:var(--sp-4)}
.mcard .mc-k{flex:1;min-width:0;font:var(--t-body-semi);color:var(--fg)}
.mcard .pager{display:flex;align-items:center;gap:var(--sp-1);color:var(--muted);font-size:var(--fs-14);font-variant-numeric:tabular-nums;white-space:nowrap}
.mcard .pager .sq{width:var(--tap)}
.mcard .mc-act{display:flex;gap:var(--sp-4)}
.mcard .mc-act .btn{flex:1;min-width:0;padding:0 10px}
.mcard .link-btn{align-self:flex-start;min-height:var(--tap-sm);text-align:left}
/* The trimmer: a screen of its own, over the replay. */
body.trim-open{overflow:hidden}
.trim{position:fixed;inset:0;z-index:var(--z-panel);display:flex;flex-direction:column;padding-top:var(--top);background:var(--bg)}
.trim-head{display:flex;align-items:center;gap:var(--sp-4);min-height:var(--header-h);padding:0 var(--gutter) 0 max(8px,var(--left))}
.trim-head h2{flex:1;min-width:0}
.trim-body{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:var(--sp-6);padding-bottom:12px}
.trim-stage{position:relative;background:var(--video-bg);aspect-ratio:16/9;width:100%;max-height:40dvh;flex:none}
.trim-gap{position:absolute;inset:0;display:grid;place-items:center;background:var(--video-bg);color:var(--on-video);font:var(--t-body-strong)}
.trim-gap[hidden]{display:none}
.film .notches{position:absolute;inset:0;pointer-events:none}
.film .notches .notch{position:absolute;top:0;bottom:0;width:2px;margin-left:-1px;background:var(--bg)}
.trim-stage video{display:block;width:100%;height:100%;object-fit:contain}
.trim-foot{padding:10px var(--gutter) calc(10px + var(--bottom));background:var(--surface)}
.film{position:relative;height:56px;margin:30px 28px 0;touch-action:none}
.frames{position:absolute;inset:0;display:flex;gap:1px;overflow:hidden;border-radius:var(--r-ctl);background:var(--line)}
.frames canvas{flex:1;min-width:0;height:100%;object-fit:cover;background:var(--raised)}
.film .veil{position:absolute;top:0;bottom:0;background:rgba(5,13,25,.7);pointer-events:none}
.film .selbox{position:absolute;top:0;bottom:0;border-top:3px solid var(--accent);border-bottom:3px solid var(--accent);pointer-events:none}
.film .handle{position:absolute;top:-3px;bottom:-3px;width:26px;display:grid;place-items:center;background:var(--accent);cursor:ew-resize;touch-action:none;pointer-events:auto}
.film .handle.s{right:100%;border-radius:var(--r-ctl) 0 0 var(--r-ctl)}
.film .handle.e{left:100%;border-radius:0 var(--r-ctl) var(--r-ctl) 0}
.film .handle::after{content:"";width:3px;height:18px;border-radius:2px;background:var(--accent-fg);opacity:.7}
.film .handle::before{content:"";position:absolute;top:0;bottom:0;left:-8px;right:-8px}
.film .handle.s::before{left:-18px}
.film .handle.e::before{right:-18px}
.film .head{position:absolute;top:-4px;bottom:-4px;left:0;width:2px;margin-left:-1px;background:var(--fg);pointer-events:none}
.film .bubble{position:absolute;top:-30px;padding:3px 8px;border-radius:var(--r-tag);background:var(--fg);color:var(--bg);font:var(--t-label-strong);white-space:nowrap;transform:translateX(-50%);pointer-events:none}
.nudge{display:grid;grid-template-columns:52px 48px 1fr 48px;gap:var(--sp-3);align-items:center}
.nudge .k{font:var(--t-label);color:var(--muted)}
.nudge .v{text-align:center;font:var(--t-body-strong);font-variant-numeric:tabular-nums}
.nudge .v small{display:block;font-weight:400;font-size:var(--fs-14);color:var(--muted)}
.nudge .sq{width:var(--ctl)}
.frame-src{position:fixed;left:0;top:0;width:2px;height:2px;opacity:0;pointer-events:none}
/* Where the clip goes. */
.save-top{display:flex;gap:var(--sp-6);align-items:flex-start}
.save-top img{flex:none;width:96px;aspect-ratio:16/9;object-fit:cover;border-radius:var(--r-ctl);background:var(--raised)}
.save-top .field{flex:1;min-width:0}
.save-range{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-4);color:var(--muted);font-variant-numeric:tabular-nums}
.save-range .link-btn{min-height:var(--tap-sm)}
.opts{display:flex;flex-direction:column;background:var(--surface);border-radius:var(--r-card);overflow:hidden}
.opt{display:flex;align-items:flex-start;gap:var(--sp-6);min-height:var(--tap);padding:10px 12px;border-bottom:1px solid var(--hair);cursor:pointer}
.opt input{flex:none;width:22px;height:22px;margin:1px 0 0;accent-color:var(--fg)}
.opt span{display:flex;flex-direction:column;min-width:0;font-weight:700}
.opt small{font-weight:400;font-size:var(--fs-14);color:var(--muted)}
.opts>:last-child{border-bottom:0}
.opts .chips{padding:10px 12px;border-bottom:1px solid var(--hair)}
.done-list{display:flex;flex-direction:column;gap:var(--sp-3);margin:0;padding:0;list-style:none;font-weight:700}
.done-list .tick{color:var(--good)}
.trim .chip{flex:1;min-width:0;padding:0 8px}
.nudge .sq{touch-action:manipulation;-webkit-user-select:none;user-select:none}
.mcard .mc-act .btn.primary{flex:1.4}
.mcard .mc-act .btn:not(.primary):not(.danger){background:var(--surface)}
.mcard .chips{align-items:center}
.mcard .notice{margin-bottom:0}
.trim .chip:disabled{opacity:.45;cursor:default}
#stage{margin-top:12px}
@media (orientation:landscape) and (max-height:500px){.watching #topInfo{display:none}#stage{margin-top:0}}
#player:fullscreen,#player:-webkit-full-screen{display:flex;flex-direction:column;background:var(--video-bg);width:100%;height:100%}
#player:fullscreen #stage,#player:-webkit-full-screen #stage{flex:1;min-height:0;margin:0;aspect-ratio:auto;max-height:none;height:auto}
#player:fullscreen #deck,#player:-webkit-full-screen #deck{margin:0;padding:6px max(var(--gutter),env(safe-area-inset-right)) calc(6px + var(--bottom)) max(var(--gutter),env(safe-area-inset-left));gap:0;background:var(--video-bg)}
#player:fullscreen .legend,#player:-webkit-full-screen .legend{display:none}

/* ---------- All teams (no team open): Home's Hub, Watch, Team; the archive ---------- */
/* The count of what is waiting on the You tab (inbox.js): a small gold pill on the corner of its icon. */
.tabs .tab-badge{position:absolute;top:2px;left:calc(50% + 4px);box-sizing:content-box;min-width:14px;height:14px;padding:0 var(--sp-2);border:2px solid var(--surface);border-radius:var(--r-pill);background:var(--live);color:var(--on-video);font:700 var(--fs-12)/14px var(--body);text-align:center;pointer-events:none}
.tabs [aria-selected="true"] .tab-badge{border-color:var(--raised);background:var(--live);color:var(--on-video)}
.hub-live{display:flex;flex-direction:column;gap:var(--sp-6)}
.hub-live .hero .game-title{font:700 var(--fs-20)/1.1 var(--display);text-transform:uppercase}
.up-row{display:flex;align-items:center;gap:var(--sp-6);width:100%;min-height:var(--row);padding:var(--sp-4) var(--sp-6);border:0;border-bottom:1px solid var(--hair);background:none;color:var(--fg);font:inherit;text-align:left;cursor:pointer}
.up-row .day{flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;width:48px;height:52px;border-radius:var(--r-ctl);background:var(--raised);font-family:var(--display);line-height:1}
.up-row .day b{font-size:var(--fs-20)}.up-row .day span{font-size:var(--fs-14);color:var(--muted)}
.up-row .grow{flex:1;min-width:0}
.up-row .name,.up-row .sub{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.up-row .name{font-weight:700}
.up-row .sub{color:var(--muted);font-size:var(--fs-14)}
.list>.up-row:last-child{border-bottom:0}
.row.tall .sub{white-space:normal}
.row.tall{padding-top:var(--sp-6);padding-bottom:var(--sp-6)}
.hub-head{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-6)}
.fold{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-6);width:100%;min-height:var(--tap);padding:0 var(--sp-7);border:0;border-radius:var(--r-card);background:var(--surface);color:var(--fg);font:var(--t-body-strong);cursor:pointer}
.fold .icon{transition:transform .15s}
.fold[aria-expanded="true"] .icon{transform:rotate(180deg)}
.archived-box{display:flex;flex-direction:column;gap:var(--sp-6)}
.archived-box .row-pair .btn{flex:none;margin-right:var(--sp-4)}
.archive-notice{display:flex;flex-direction:column;gap:var(--sp-6);align-items:flex-start;margin:0}
.archive-notice .sheet-actions{margin-top:0}
.toast .undo-btn{margin:-8px -12px -8px auto;min-height:var(--tap);padding:0 var(--sp-7);border:0;background:none;color:var(--fg);font:var(--t-body-strong);cursor:pointer}
.meters{display:flex;flex-direction:column;gap:var(--sp-6)}
.meter-card{flex-direction:column;align-items:stretch;gap:var(--sp-4)}
.meter-card .row-line{display:flex;justify-content:space-between;gap:var(--sp-4);flex-wrap:wrap}
.meter-card .name{font-weight:700}
.meter-card .sub{color:var(--muted);font-size:var(--fs-14)}
.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-6)}
.hall-tile{display:flex;flex-direction:column;align-items:flex-start;gap:var(--sp-2);min-height:48px;padding:var(--sp-7);border-radius:var(--r-card);background:var(--surface);color:var(--fg);text-decoration:none;min-width:0}
.hall-tile .avatar.big{width:100%;height:84px;border-radius:var(--r-ctl);margin-bottom:var(--sp-3)}
.hall-tile .name{font-weight:700;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hall-tile .sub{color:var(--muted);font-size:var(--fs-14);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pick-list .opt{opacity:1}
.pick-list .opt.off{opacity:.55;cursor:default}
.pick-list .opt .why{white-space:normal;color:var(--danger)}
.pick-list .opt .sub{white-space:normal}
.move-confirm{display:flex;flex-direction:column;gap:var(--sp-6);margin:0;padding:0;list-style:none}
.move-confirm li{padding:var(--sp-6) var(--sp-6);border-radius:var(--r-card);background:var(--bg)}
.chat-archived{flex:none;font:var(--t-caption);padding:1px var(--sp-3);border-radius:var(--r-tag);background:var(--raised);color:var(--muted)}
.hub-live .btn{white-space:nowrap;padding:0 var(--sp-4);gap:var(--sp-3)}
.hall-tile .avatar.big{background:hsl(var(--hue,212) 45% 38%);color:var(--white)}
.archived-box .row .sub{white-space:normal}

/* ---- team pictures (teamAvatar in common.js): a rounded square with the sport pinned to its corner ---- */
.tav{position:relative;flex:none;display:inline-flex;margin-right:var(--sp-3)}
.tav-img{display:block;border-radius:var(--r-ctl);object-fit:cover;background:var(--raised)}
.tav-md .tav-img{width:48px;height:48px}
.tav-xs .tav-img{width:30px;height:30px}
.tav-big .tav-img{width:96px;height:96px;border-radius:var(--r-card)}
.tav .pin{position:absolute;right:-8px;bottom:-8px;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--bg);box-shadow:0 0 0 2px var(--surface)}
.tav .pin .icon{width:16px;height:16px;margin:0}
.top-btn .tav-xs .pin,.chat-head .tav-xs .pin{right:-5px;bottom:-5px;width:17px;height:17px}
.top-btn .tav-xs .pin .icon,.chat-head .tav-xs .pin .icon{width:11px;height:11px;margin:0}
.tav-xs .chat-tile{width:30px;height:30px;border-radius:var(--r-ctl);border-width:1px;font-size:var(--fs-14)}
.tav-big{margin-right:var(--sp-6)}
.tav-big .chat-tile{width:96px;height:96px;border-radius:var(--r-card);font-size:var(--fs-40)}
.tav-big .pin{right:-8px;bottom:-8px;width:34px;height:34px}
.tav-big .pin .icon{width:22px;height:22px}
.top-btn .tav-xs{margin-right:8px}
.chat-head-av{flex:none;display:inline-flex;margin-left:var(--sp-1)}
.chat-head-av .tav{margin-right:var(--sp-4)}
.chat-head-av+h2{padding-left:0}
/* The Team tab's card */
.team-card{display:flex;flex-direction:column;gap:var(--sp-6);padding:var(--sp-7);border-radius:var(--r-card);background:var(--surface)}
.team-card:empty{display:none}
.team-card-main{display:flex;align-items:center;gap:var(--sp-6);min-width:0}
.team-card-text{flex:1;min-width:0}
.team-card-name{display:flex;align-items:center;gap:var(--sp-2);min-width:0}
.team-card-name h1{min-width:0;overflow-wrap:anywhere}
.team-card-name .icon-btn{margin:-6px 0}
.team-card{position:relative}
.team-card-tools{position:absolute;top:4px;right:calc(var(--gutter) - 8px);display:flex}
.team-card-main:has(+.team-card-tools) .team-card-text{padding-right:48px}
.team-card-main:has(+.team-card-tools.two) .team-card-text{padding-right:92px}
.team-record{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2) var(--sp-4);margin-top:var(--sp-3)}
.rec-one{display:flex;align-items:center;gap:var(--sp-2)}
.rec-tile{display:grid;place-items:center;width:22px;height:22px;border-radius:var(--r-tag);font:800 var(--fs-16)/1 var(--display)}
.rec-w{background:var(--good);color:var(--on-good)}.rec-l{background:var(--danger);color:var(--on-danger)}.rec-t{background:var(--muted);color:var(--navy)}
.rec-n{font:700 var(--fs-20)/1 var(--display);font-variant-numeric:tabular-nums}
.rec-word{font:800 var(--fs-14)/1 var(--display);color:var(--muted)}
.team-top{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--sp-1) var(--sp-3);margin-top:var(--sp-3);padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer;min-height:44px}
.team-top-l{font:800 var(--fs-14)/1 var(--display);color:var(--muted)}
.team-top-v{font:600 var(--fs-16)/1.3 var(--body)}
.team-card-actions{display:flex;flex-wrap:wrap;gap:var(--sp-4)}
/* Team settings and the panels over it (Stream setup, Roster and links): the team card at the top, then lists and labelled blocks */
#teamSetHead{margin-bottom:var(--sp-6)}
#teamSetPanel .list+.list,#streamPanel .list{margin-top:var(--sp-6)}
#streamPanel .stream-keys+p+.list{margin-top:0}
#streamPanel .chat-body>div>.label,#rosterPanelBody>.label{display:block;margin-top:var(--sp-7)}
#streamPanel .chat-body>div:first-child>.label:first-child{margin-top:0}
.stream-keys,.dest-card,#clipsForm{flex-direction:column;align-items:stretch;gap:var(--sp-6)}
.stream-keys .copyrow{margin:0}
.stream-keys .copyrow code{word-break:break-all}
.copyrow .btn{flex:none}
.dest-card .sub{display:block;overflow-wrap:anywhere}
.dest-state{display:block;font:var(--t-label-strong);color:var(--muted)}
.dest-state.sending{color:var(--good)}
.dest-state.failed,.dest-error{color:var(--on-tint-danger)}
.dest-card+.dest-card,.dest-all+.dest-card{margin-top:var(--sp-6)}
.dest-all{margin-bottom:var(--sp-6)}
.dest-log{max-height:50vh;overflow:auto;margin:var(--sp-6) 0;padding:var(--sp-6);border-radius:var(--r-ctl);background:var(--bg);font-size:var(--fs-14);white-space:pre-wrap;overflow-wrap:anywhere}
#clipsForm .row{padding:0;border-bottom:0}
.rl-edit{flex:none;min-width:var(--tap);justify-content:center;padding:0 var(--sp-4)}
#rosterPanelBody .row-pair .row.static{flex:1;min-width:0}
#rosterPanelBody>.sheet-actions{margin-bottom:var(--sp-6)}
.inv-head{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-4)}
.inv-head h3{flex:1;min-width:0;overflow-wrap:anywhere}
.inv-code{flex:1;min-width:0;font:var(--t-title);letter-spacing:2px;overflow-wrap:anywhere}
.sheet .card:has(.inv-code){flex-direction:column;align-items:stretch;gap:var(--sp-3);margin:var(--sp-6) 0}
.sheet .card:has(.inv-code) .copyrow{margin:0}
.qr-box{width:min(100%,260px);margin:var(--sp-6) auto 0;padding:var(--sp-6);border-radius:var(--r-card);background:#fff;color:#000}
.qr-box svg{display:block;width:100%;height:auto}
/* A team's page (teampage.js): quick link pills (Invite, Media, Team Hall) under the team card, the next event and latest replay cards, then Players | Managers and fans.
   Archive sits at the foot for someone who does not manage the team. */
.tp-pills{display:flex;flex-wrap:wrap;gap:var(--sp-4);margin:var(--sp-6) 0}
.tp-pills:not(:has(.tp-pill:not([hidden]))){display:none}
.tp-pill{flex:1 1 0;min-width:0;display:inline-flex;align-items:center;justify-content:center;padding:0 var(--sp-6);white-space:nowrap;text-decoration:none}
.tp-pill[hidden]{display:none}
#rosterTabs button{flex:1 1 auto;padding:0 var(--sp-4);line-height:1.2;font-size:var(--fs-14)}
.tp-card{display:flex;flex-direction:column;margin:0;padding:var(--sp-2) 0 var(--sp-6);border-top:1px solid var(--hair)}
#teamLatest .tp-card{border-bottom:1px solid var(--hair)}
#teamNext:empty+#teamLatest .tp-card,#teamNext .tp-card{border-top:1px solid var(--hair)}
#teamNext:not(:empty)+#teamLatest .tp-card{border-top:0}
#teamNext:has(.tp-card)+#teamLatest:empty{border-bottom:1px solid var(--hair)}
.tp-head{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-4);min-height:var(--tap)}
.tp-more{flex:none}
.tp-replay{display:flex;min-width:0;padding:0;border:0;background:none;color:var(--fg);font:inherit;text-align:left;text-decoration:none;cursor:pointer}
.tp-replay{align-items:center;gap:var(--sp-4);min-height:var(--tap)}
.tp-words{display:flex;flex-direction:column;gap:var(--sp-1);min-width:0}
.tp-title{font:var(--t-body-strong);overflow-wrap:anywhere}
.tp-sub{font:var(--t-label);color:var(--muted);overflow-wrap:anywhere}
.tp-thumb{position:relative;flex:none;display:grid;place-items:center;width:96px;aspect-ratio:16/9;border-radius:var(--r-tag);background:var(--raised);color:var(--muted);overflow:hidden}
.tp-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
#teamFoot{margin-top:var(--sp-8)}
#teamFoot:empty{display:none}
/* ---- Season stats (engines/teamstats.js, playerstats.js): the Team | Stats switch on a team's page, the Stats view, and a player's page (a tall sheet) ----
   Stats takes the place of the pills, cards and roster below the team card (#teamMain.show-stats). Tables scroll inside their own box, never the page. */
#teamSegRow[hidden]{display:none}
#teamSegRow .seg{flex:1 1 100%;min-width:0;margin:0}      /* (the Team | Stats switch is the full width of the page) */
#teamSeg>:focus-visible{outline-offset:-3px}      /* (the keyboard ring sits inside the segment: the .seg clips anything outside, which left gold slivers at the corners where the segments meet) */
#teamSegRow{margin-bottom:var(--sp-6)}
#teamMain.show-stats>:is(#teamQuick,#teamNext,#teamLatest,.roster-head,#rosterList,#othersList,#teamFoot){display:none}
#teamMain:not(.show-stats)>#teamStats{display:none}
.st-view{display:flex;flex-direction:column;gap:var(--sp-6);min-width:0}
.st-record{display:flex;align-items:baseline;gap:var(--sp-4);flex-wrap:wrap}
.st-big{font:var(--t-number);font-variant-numeric:tabular-nums}
.st-leaders{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sp-4)}
.st-lead{display:flex;flex-direction:column;align-items:flex-start;gap:var(--sp-2);min-width:0;min-height:var(--tap);padding:var(--sp-6);border:0;border-radius:var(--r-card);background:var(--surface);box-shadow:var(--edge-light);color:var(--fg);text-align:left;font:inherit;cursor:pointer}
.st-lead[aria-pressed="true"]{box-shadow:var(--ring-fg)}
.st-who{font:var(--t-label-strong);overflow-wrap:anywhere;min-height:2lh}      /* (two lines high even when there is one name or none: the three cards stay the same height) */
.st-then{font:var(--t-caption);color:var(--muted);overflow-wrap:anywhere;min-height:2lh}
.st-head{margin-top:var(--sp-4);flex-wrap:wrap}      /* (Players, the Table | Shapes switch and the Players | Pitching switch wrap at 320 px) */
.st-head .seg{flex:none}
.st-scroll{overflow-x:auto;overscroll-behavior-x:contain;border-radius:var(--r-card);background:var(--surface);box-shadow:var(--edge-light)}
.st-table{width:100%;border-collapse:separate;border-spacing:0;font:var(--t-label);font-variant-numeric:tabular-nums}
.st-table th,.st-table td{padding:var(--sp-2) var(--sp-6);border-bottom:1px solid var(--hair);text-align:right;white-space:nowrap;font-weight:inherit;background:var(--surface)}
.st-table thead th{color:var(--muted);font:var(--t-caption-strong);vertical-align:middle}
.st-table tbody tr:last-child>*{border-bottom:0}
.st-table .st-num{position:sticky;left:0;z-index:1;min-width:44px;text-align:center;color:var(--muted)}
.st-table .st-name{position:sticky;left:44px;z-index:1;text-align:left}
.st-teamtable .st-name{position:static;white-space:normal}
.st-teamtable th.st-name{font:var(--t-label)}
.st-table tbody tr[data-stat-player]{cursor:pointer}
.st-sort,.st-player{display:inline-flex;align-items:center;gap:var(--sp-2);padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer}
.st-sort{min-height:var(--tap);white-space:nowrap}
.st-sort span{font-size:var(--fs-12)}
.st-player{min-height:var(--tap);color:var(--fg);font:var(--t-body-strong);text-align:left}
.st-team{overflow-x:auto}
.st-empty{padding:var(--sp-8) 0;text-align:center}
.st-foot,.ps-foot{margin:0}
.ps-sheet{min-height:calc(100dvh - 32px - var(--top))}
.ps-back{align-self:flex-start}
.ps-who{display:flex;align-items:center;gap:var(--sp-6);min-width:0}
.ps-who h3{overflow-wrap:anywhere}
.ps-who .sub{display:block}
.ps-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sp-4)}
.ps-tile{display:flex;flex-direction:column;align-items:flex-start;gap:var(--sp-1);min-width:0;min-height:var(--tap-lg);padding:var(--sp-6);border:0;border-radius:var(--r-card);background:var(--raised);color:var(--fg);font:inherit;text-align:left}
button.ps-tile{cursor:pointer}
.ps-tv{font:var(--t-number);font-variant-numeric:tabular-nums}
.ps-tl{font:var(--t-caption);color:var(--muted);overflow-wrap:anywhere}
.ps-tn{font:var(--t-caption);color:var(--muted);overflow-wrap:anywhere}      /* ("from 2 of 3 games": a stat counted from advanced football games only) */
.st-adv{margin:var(--sp-4) 0 0}
.st-adv-note{display:block;font-weight:400}
.bx-team{margin:0}
.ps-bars{display:flex;align-items:stretch;gap:var(--sp-3);height:132px;color:var(--accent-text)}
.ps-col{flex:1 1 0;height:100%;max-width:48px;min-width:0;display:grid;grid-template-rows:1fr auto;justify-items:center;gap:var(--sp-2)}
.ps-col i{align-self:end;width:100%;min-height:2px;border-radius:4px 4px 0 0;background:currentColor}
.ps-col b{font:var(--t-caption-strong);color:var(--fg);font-variant-numeric:tabular-nums}
.ps-game{flex-wrap:wrap;align-items:center;gap:var(--sp-3) var(--sp-6);cursor:default}
.ps-game-main{display:flex;flex-direction:column;gap:var(--sp-1);flex:1 1 140px;min-width:0;min-height:var(--tap);padding:0;border:0;background:none;color:var(--fg);font:inherit;text-align:left;cursor:pointer}
.ps-stats{display:flex;flex-wrap:wrap;gap:var(--sp-3);justify-content:flex-end;min-width:0}
.st-actions{display:flex;flex-wrap:wrap;gap:var(--sp-4)}
.sc-group{display:flex;flex-direction:column;gap:var(--sp-3);min-width:0}
.sc-group p{margin:0}
.sc-chips{display:flex;flex-wrap:wrap;gap:var(--sp-4);min-width:0}
.sc-chips .chip{max-width:100%;overflow-wrap:anywhere}
.sc-chips .chip:disabled{opacity:.45;cursor:default}
.sc-prev{display:flex;align-items:center;justify-content:center;min-height:120px;padding:var(--sp-4);border-radius:var(--r-card);background:var(--raised);min-width:0}
.sc-prev img{display:block;max-width:100%;max-height:44dvh;width:auto;height:auto;border-radius:var(--r-ctl);object-fit:contain}
.sc-prev[data-f="feed"] img{aspect-ratio:4/5}
.sc-prev[data-f="story"] img{aspect-ratio:9/16}
.sc-prev[data-f="square"] img{aspect-ratio:1/1}
.sc-prev[aria-busy="true"] img{opacity:.6}
.sc-prev .field-err{text-align:center}
.sc-actions{display:flex;flex-wrap:wrap;gap:var(--sp-4)}
.sc-actions .btn{flex:1 1 140px}
.seg>button:disabled{color:var(--muted);cursor:default}
input[type="file"].input{padding:var(--sp-4) var(--sp-6)}
.st-actions .btn{flex:1 1 140px}
.st-reg{display:flex;flex-direction:column;gap:var(--sp-3);min-width:0}
.st-reg p,.st-era{margin:0}
.st-reg-chips{display:flex;flex-wrap:wrap;gap:var(--sp-4);min-width:0}
.ld-head{display:flex;flex-direction:column;min-width:0}
.ld-head h3{overflow-wrap:anywhere}
.ld-range{align-self:stretch}
.ld-body{display:flex;flex-direction:column;gap:var(--sp-6);min-width:0}
.ld-cards,.ld-trends{display:flex;flex-direction:column;gap:var(--sp-6);min-width:0}
.ld-card-head{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:var(--sp-2) var(--sp-6);margin-bottom:var(--sp-3)}
.ld-row{min-height:var(--tap);cursor:pointer;text-align:left;font:inherit}
.ld-rank{flex:none;min-width:24px;font:var(--t-number);font-size:var(--fs-20);font-variant-numeric:tabular-nums;text-align:center;color:var(--muted)}
.ld-val{flex:none;font:var(--t-body-strong);font-variant-numeric:tabular-nums;text-align:right}
.ld-unranked .name{font-weight:400}
.ld-scroll{overflow-x:auto;padding:calc(var(--tap)/2);scroll-behavior:auto;overscroll-behavior-x:contain}
.ld-plot{position:relative;height:96px;min-width:calc(var(--n,1)*var(--tap))}
.ld-plot svg{display:block;width:100%;height:100%;overflow:visible}
.ld-line{fill:none;stroke:var(--shp-c,var(--accent));stroke-width:2;stroke-linejoin:round}
.ld-avgline{stroke:var(--fg);stroke-width:1;stroke-dasharray:4 3;opacity:.7}
.ld-avg{font-variant-numeric:tabular-nums}
.ld-pt{position:absolute;display:grid;place-items:center;width:var(--tap);height:var(--tap);padding:0;border:0;background:transparent;transform:translate(-50%,-50%);cursor:pointer}
.ld-pt i{width:10px;height:10px;border-radius:50%;background:var(--shp-c,var(--accent));box-shadow:0 0 0 2px var(--surface)}
button.st-opt{width:100%;border:0;background:none;color:var(--fg);font:inherit;text-align:left;cursor:pointer}
.st-radio{flex:none;width:22px;height:22px;border:2px solid var(--line-strong);border-radius:50%;background:transparent}
.st-opt[aria-checked="true"] .st-radio{border-color:var(--fg);background:radial-gradient(circle,var(--fg) 0 5px,transparent 5.5px)}
.st-opt .name,.st-opt .sub{display:block}
.bx-pl .num{flex:none;min-width:28px;color:var(--muted);font:var(--t-label-strong);text-align:center}
.bx-pstats{text-align:right;min-width:0;overflow-wrap:anywhere}
#gpScoring .row.them .name{color:var(--muted)}
.roster-head #addPlayer{flex:none;min-height:var(--tap);padding:0 var(--sp-2)}
.pic-preview{display:grid;place-items:center;margin:var(--sp-2) 0 var(--sp-4)}
.pic-preview img{width:min(100%,240px);aspect-ratio:1;border-radius:var(--r-card);object-fit:cover}
.sheet-actions+.sheet-actions{margin-top:var(--sp-6)}
/* ---- @mentions and emoji in a chat thread ---- */
.chat-composer{position:relative}
.chat-composer .icon-btn{width:var(--tap)}
.chat-at{flex:none;display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--accent);color:var(--accent-fg);font:700 var(--fs-14)/1 var(--body)}
.chat-mention{font-weight:700;color:var(--fg)}
.mine .chat-mention{color:inherit;text-decoration:underline}
.chat-msg.mentions-me .chat-bubble{border-left:4px solid var(--fg)}
.chat-bubble.big-emoji{background:none;padding:0 var(--sp-2);font-size:var(--fs-28);line-height:1.2}
.mine .chat-bubble.big-emoji{background:none}
/* ---- reactions and typing in a chat thread ---- */
.chat-line,.chat-card{position:relative}
.chat-bubble{-webkit-touch-callout:none}
.chat-react-btn{position:absolute;top:-24px;right:-6px;z-index:2;display:grid;place-items:center;width:var(--ctl-xs);height:var(--ctl-xs);padding:0;border:0;border-radius:var(--r-pill);background:var(--surface);color:var(--muted);cursor:pointer;box-shadow:0 1px 4px rgba(0,0,0,.45)}
.chat-react-btn::before{content:"";position:absolute;inset:-8px -8px -2px}
.mine .chat-react-btn{right:auto;left:-6px}
@media (hover:hover){.chat-react-btn{opacity:0}.chat-msg:hover .chat-react-btn,.chat-event:hover .chat-react-btn,.chat-react-btn:focus-visible,.chat-react-btn[aria-expanded="true"]{opacity:1}}
/* On a touch screen the long press is the way in; the button stays for screen readers and a keyboard. */
@media (hover:none){.chat-react-btn{opacity:0;pointer-events:none}.chat-react-btn:focus-visible{opacity:1;pointer-events:auto}}
.chat-bar{position:absolute;bottom:calc(100% + 4px);left:0;z-index:4;display:flex;padding:var(--sp-1);border-radius:var(--r-pill);background:var(--surface);box-shadow:var(--lift-lg)}
.mine .chat-bar{left:auto;right:0}
.chat-bar.below{bottom:auto;top:calc(100% + 4px)}
.chat-bar-btn{display:grid;place-items:center;width:var(--tap);height:var(--tap);padding:0;border:0;border-radius:var(--r-pill);background:none;font:var(--fs-20)/1 var(--body);cursor:pointer}
.chat-bar-btn:active{background:var(--raised)}
.chat-bar-btn[aria-pressed="true"]{background:var(--tint-chosen)}
.chat-bar-btn:focus-visible,.chat-chip:focus-visible,.chat-react-btn:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.chat-reacts{display:flex;flex-wrap:wrap;gap:0 var(--sp-1);max-width:100%;margin:-4px 0}
.mine .chat-reacts{justify-content:flex-end}
.chat-chip{display:inline-flex;align-items:center;min-width:var(--tap);min-height:var(--tap);padding:0 var(--sp-1);border:0;background:none;color:var(--fg);cursor:pointer;-webkit-touch-callout:none}
.chat-chip-in{display:inline-flex;align-items:center;justify-content:center;gap:var(--sp-2);min-width:var(--ctl);height:var(--ctl-xs);padding:0 var(--sp-6);border-radius:var(--r-pill);background:var(--raised);font:600 var(--fs-13)/1 var(--body)}
/* your own reaction: a light tint, not a ring (a ring is keyboard focus only; see the style guide's States) */
.chat-chip-in.on{background:var(--tint-chosen);color:var(--fg)}
.chat-chip-e{font-size:var(--fs-14);line-height:1}
.chat-typing{flex:none;display:flex;align-items:center;gap:var(--sp-4);min-height:28px;padding:var(--sp-1) var(--pad-x);background:var(--surface);color:var(--muted);font-size:var(--fs-14)}
.chat-typing:empty{display:none}
/* Gameday (chatgameday.js): the heading under the thread's header; the cheer and play lines */
.chat-gdhead{flex:none;padding:var(--sp-3) var(--pad-x);background:var(--bg);color:var(--accent-text);font:var(--t-caption-strong);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-gdhead[hidden]{display:none}
.chat-cheer{align-self:flex-start;max-width:100%;padding:0 var(--sp-2);color:var(--muted);font-size:var(--fs-14);overflow-wrap:anywhere}
.chat-cheer b{color:var(--fg)}
.chat-dots{display:inline-flex;gap:var(--sp-2)}
.chat-dots i{width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.3;animation:chat-dot 1.2s infinite ease-in-out}
.chat-dots i:nth-child(2){animation-delay:.2s}
.chat-dots i:nth-child(3){animation-delay:.4s}
@keyframes chat-dot{0%,80%,100%{opacity:.3}40%{opacity:1}}
@media (prefers-reduced-motion:reduce){.chat-dots i{animation:none;opacity:.7}}
.chat-sug,.chat-emoji{position:absolute;left:0;right:0;bottom:100%;z-index:5;background:var(--surface);box-shadow:0 -6px 14px rgba(0,0,0,.35)}
.chat-sug{padding:var(--sp-2) var(--pad-x)}
.chat-sug-row{display:flex;align-items:center;gap:var(--sp-4);width:100%;min-height:var(--tap);padding:0 var(--sp-4);border:0;border-radius:var(--r-ctl);background:none;color:var(--fg);font:inherit;text-align:left;cursor:pointer}
.chat-sug-row[aria-selected="true"]{background:var(--raised);box-shadow:inset 3px 0 0 var(--fg)}
.chat-sug-at{color:var(--fg);font-weight:700}
.chat-sug-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-emoji{max-height:min(42vh,300px);overflow-y:auto;overscroll-behavior:contain;padding:var(--sp-2) var(--pad-x) var(--sp-4)}
.chat-emoji-label{margin:var(--sp-3) var(--sp-2) var(--sp-1);color:var(--muted);font:var(--t-label)}
.chat-emoji-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(var(--tap),1fr))}
.chat-emoji-btn{display:grid;place-items:center;min-height:var(--tap);padding:0;border:0;border-radius:var(--r-ctl);background:none;font:var(--fs-28)/1 var(--body);cursor:pointer}
.chat-emoji-btn:active{background:var(--raised)}
/* ---- Videos, Settings and the notifications sheet ---- */
/* The switch between two lists. */
.vseg{margin:var(--sp-6) 0 var(--sp-7)}   /* (a .seg that sits between a form's label and the next field: only its place is here, the look is .seg) */
/* Settings reuses the Messages panel; its sections are lists under small labels. */
#youBody .row .tav,#youTeamsPanel .row .tav{margin-right:0}
#youBody form .row{border-bottom:0}
.row .tav-xs .pin,.notify-team .tav-xs .pin{right:-5px;bottom:-5px;width:17px;height:17px}
.row .tav-xs .pin .icon,.notify-team .tav-xs .pin .icon{width:11px;height:11px;margin:0}
.row.dim{opacity:.65}
.row.dim .name{color:var(--muted)}
/* The notifications sheet's header: the team's picture and name, and what the sheet is for. */
.notify-team{display:flex;align-items:center;gap:var(--sp-4);min-width:0;flex:1}
.notify-team .tav{margin-right:var(--sp-3)}
.notify-team h3{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.notify-team p{margin:0}
#notifySheet .label{display:block;margin:var(--sp-7) 0 var(--sp-4)}
#notifySheet .archive-notice{margin:var(--sp-6) 0 0}
#notifySheet .row .switch{margin-left:auto}
#teamsSheetList .label{display:block;margin:var(--sp-7) var(--sp-2) var(--sp-4)}
#notifySheet .field{margin-top:var(--sp-6)}
#notifySheet .sheet>*{flex:none}   /* the sheet scrolls; its lists must not squash to fit */

/* On the narrowest phones the header gives the team's name more room: a smaller picture and name, closer together. */
@media (max-width:360px){
  .top-btn .tav-xs{margin-right:5px}
  .top-btn .tav-xs .tav-img,.top-btn .tav-xs .chat-tile{width:24px;height:24px}
  .top-btn .tav-xs .pin{right:-4px;bottom:-4px;width:14px;height:14px}
  .top-btn .tav-xs .pin .icon{width:9px;height:9px}
}

/* ---------- Halls, Family and Storage (the Hall of Fame redesign) ---------- */
/* A space's colour tag: sky for your own, purple for a family's storage, plain for none. A 22px pill with a dot. */
.space-tag{display:inline-flex;align-items:center;gap:var(--sp-3);height:22px;max-width:100%;min-width:0;padding:0 var(--sp-4);border-radius:var(--r-tag);background:var(--raised);color:var(--muted);font:var(--t-caption)}
.space-tag i{flex:none;width:7px;height:7px;border-radius:50%;background:currentColor}
.space-tag span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.space-tag.you{background:var(--tint-info);color:var(--on-tint-info)}
.space-tag.fam{background:var(--tint-violet);color:var(--on-tint-violet)}
.space-tag.none{background:var(--raised);color:var(--muted)}
/* A Hall's face: its photo, or its first letter (a team's sport icon) on a colour of its own, in a rounded square. */
.hall-av{position:relative;flex:none;display:grid;place-items:center;overflow:hidden;background:hsl(var(--hue,212) 45% 38%);color:var(--white);font:var(--t-title)}
.hall-av.s36{width:36px;height:36px;border-radius:var(--r-ctl);font-size:var(--fs-16)}
.hall-av.s48{width:48px;height:48px;border-radius:var(--r-card)}
.hall-av.s88{width:88px;height:88px;border-radius:var(--r-sheet);font-size:var(--fs-40)}
.hall-av img{display:block;width:100%;height:100%;object-fit:cover}
.hall-av .icon{width:55%;height:55%;color:var(--white)}
.avatar.more{background:var(--raised)}
.tab-head{display:flex;flex-direction:column;gap:var(--sp-4)}
.tab-head p{max-width:46ch}
.group-head{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-4);margin-top:var(--sp-4)}
.hall-row>.icon{color:var(--muted)}
.sub.wrap,.name.wrap{white-space:normal}
.btn.sm{min-height:var(--tap-sm);padding:0 var(--sp-6);font-size:var(--fs-14)}
.chip.sm{min-height:var(--tap-sm);min-width:0;padding:0 var(--sp-6);font-size:var(--fs-14);display:inline-flex;align-items:center;gap:var(--sp-3)}
.fam-list{display:flex;flex-direction:column;gap:var(--sp-6)}
.card.family-invite{flex-direction:column;align-items:stretch}
.card.family-invite .sheet-actions{margin-top:var(--sp-1)}
.fam-card{flex-direction:column;align-items:stretch;gap:var(--sp-4)}
.fam-top{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-4)}
.fam-top h2{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fam-card .sub{color:var(--muted);font-size:var(--fs-14)}
.fam-card .space-tag{align-self:flex-start}
.faces{display:flex;flex:none;padding-left:var(--sp-4)}
.faces .avatar{width:32px;height:32px;margin-left:-8px;font-size:var(--fs-14);box-shadow:0 0 0 2px var(--surface)}
.note-box{display:flex;flex-direction:column;gap:var(--sp-2);padding:var(--sp-7);border:0;border-radius:var(--r-card);background:var(--surface)}
/* Create a Hall: a tall sheet with a progress bar, one question at a time and Back / Next below. */
.sheet.tall{min-height:min(640px,calc(100dvh - 32px - var(--top)))}
.create-prog{display:flex;gap:var(--sp-3)}
.create-prog i{flex:1;height:4px;border-radius:var(--r-pill);background:var(--raised)}
.create-prog i.on{background:var(--fg)}
.create-body{flex:1;display:flex;flex-direction:column;gap:var(--sp-6)}
.pick-list{display:flex;flex-direction:column;gap:var(--sp-6)}
.pick-card{display:flex;align-items:center;gap:var(--sp-6);width:100%;min-height:var(--row);padding:var(--sp-6);border:0;border-radius:var(--r-card);background:var(--bg);color:var(--fg);font:inherit;text-align:left;cursor:pointer}
.pick-card .grow{flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--sp-1)}
.pick-card .name{font-weight:700}
.pick-card .sub{color:var(--muted);font-size:var(--fs-14)}
.pick-card[aria-pressed="true"]{background:var(--raised);box-shadow:var(--ring-fg)}
.pick-card:disabled{opacity:.55;cursor:default}
.pick-meta{display:flex;align-items:center;gap:var(--sp-4);flex-wrap:wrap;margin-top:var(--sp-2)}
.radio-dot{flex:none;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--raised);color:transparent}
.pick-card[aria-pressed="true"] .radio-dot{background:var(--fg);color:var(--bg)}
.name-row{display:flex;align-items:flex-end;gap:var(--sp-6)}
.name-row .grow{flex:1;min-width:0}
.photo-pick{flex:none;display:grid;place-items:center;width:80px;height:80px;padding:0;overflow:hidden;border:2px dashed var(--line);border-radius:var(--r-card);background:none;color:var(--muted);cursor:pointer}
.photo-pick img{display:block;width:100%;height:100%;object-fit:cover}
.add-sport{display:flex;gap:var(--sp-4);margin-top:var(--sp-4)}
.add-sport .input{flex:1;min-width:0}
.summary{flex-direction:column;align-items:stretch;gap:var(--sp-6);background:var(--bg)}
.sum-top{display:flex;align-items:center;gap:var(--sp-6)}
.sum-top .grow{flex:1;min-width:0}
.sum-top .name,.sum-top .sub{display:block}
.sum-top .sub{color:var(--muted);font-size:var(--fs-14)}
.sum-row{display:flex;flex-direction:column;gap:var(--sp-2)}
/* A Hall's page: the big face with its camera, what it is, where it is kept, who it is on now. */
.hero-av{position:relative;flex:none}
.cam-btn{position:absolute;right:-6px;bottom:-6px;display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:var(--accent);color:var(--accent-fg);box-shadow:0 0 0 3px var(--bg);cursor:pointer}
.cam-btn::after{content:"";position:absolute;inset:-6px}
.hall-hero{display:flex;align-items:center;gap:var(--sp-7)}
.hall-hero .grow{flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--sp-3);align-items:flex-start}
.hall-hero h1{font:italic 800 var(--fs-28)/1 var(--display);overflow-wrap:anywhere}
.hall-hero .sub{color:var(--muted);font-size:var(--fs-14)}
.num-pill{flex:none;display:grid;place-items:center;min-width:40px;height:32px;padding:0 var(--sp-4);border-radius:var(--r-ctl);background:var(--raised);font:700 var(--fs-16) var(--display)}
.row .btn.sm{flex:none}
.row.linkrow .name{font-weight:700}
.row.linkrow>.icon:first-child{color:var(--muted)}
/* Storage: one card for each space. */
.store-card{flex-direction:column;align-items:stretch;gap:var(--sp-6)}
.card-top{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-4);flex-wrap:wrap}
.store-num{display:flex;align-items:baseline;gap:var(--sp-4)}
.store-num b{font:var(--t-number);letter-spacing:.02em}
.store-num.over b,.bad-text{color:var(--danger)}
.usage{display:flex;gap:var(--sp-1);height:10px;border-radius:var(--r-pill);background:var(--raised);overflow:hidden}
.usage b{display:block;height:100%;background:hsl(var(--hue,212) 60% 62%)}
.usage.over b{background:var(--danger)}
.store-card .using{background:var(--bg)}
.store-card .sheet-actions .btn{flex:1}
/* Notes that say what a choice does: amber to take care, red for an ending, green for more room. */
.callout{display:flex;flex-direction:column;gap:var(--sp-3);padding:var(--sp-6) var(--sp-7);border-radius:var(--r-ctl);background:var(--raised);font-size:var(--fs-14)}
.callout b{font-size:var(--fs-16)}
.callout p{margin:0}
.callout.warn{background:rgba(255,176,97,.14);box-shadow:inset 4px 0 0 var(--warn)}
.callout.bad{background:rgba(255,138,138,.14);box-shadow:inset 4px 0 0 var(--danger)}
.callout.good{background:rgba(91,211,140,.14);box-shadow:inset 4px 0 0 var(--good)}
.ways{display:flex;flex-direction:column;gap:var(--sp-4)}
.ways .btn{height:auto;padding:var(--sp-4) var(--sp-7);text-align:center}
/* The Pin sheet: Halls in groups by space, a square to tick on each. */
.pin-group{display:flex;flex-direction:column;gap:var(--sp-4)}
.pin-group-head{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-4);flex-wrap:wrap}
.pin-row{display:flex;align-items:center;gap:var(--sp-6);width:100%;min-height:var(--row);padding:var(--sp-4) var(--sp-6);border:0;border-bottom:1px solid var(--hair);background:none;color:var(--fg);font:inherit;text-align:left;cursor:pointer}
.pin-row .grow{flex:1;min-width:0}
.pin-row .name,.pin-row .sub{display:block}
.pin-row .name{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pin-row .sub{color:var(--muted);font-size:var(--fs-14)}
.list>.pin-row:last-child{border-bottom:0}
.check-box{flex:none;display:grid;place-items:center;width:24px;height:24px;border:2px solid var(--line-strong);border-radius:var(--r-tag);background:transparent;color:var(--accent-fg)}
.check-box .icon{opacity:0}
.pin-row[aria-pressed="true"] .check-box{border-color:var(--accent);background:var(--accent)}
.pin-row[aria-pressed="true"] .check-box .icon{opacity:1}
.plus-av{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:var(--r-ctl);background:var(--raised);color:var(--muted)}
/* A family's page, its leave sheet, and the Change plan page. */
.consequence{display:flex;gap:var(--sp-6);align-items:flex-start}
.consequence .grow{flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--sp-1)}
.consequence .sub{color:var(--muted);font-size:var(--fs-14)}
.cmark{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%}
.cmark.yes{background:rgba(91,211,140,.2);color:var(--good)}
.cmark.no{background:rgba(255,138,138,.2);color:var(--danger)}
.btn.leave{background:none;color:var(--danger)}
.fam-title{display:flex;align-items:center;gap:var(--sp-3)}
.fam-title h1{min-width:0;overflow-wrap:anywhere}
.store-line{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-4);flex-wrap:wrap}
.plan-opt{display:flex;align-items:center;gap:var(--sp-6);width:100%;min-height:var(--row);padding:var(--sp-6);border:0;border-radius:var(--r-card);background:var(--surface);color:var(--fg);font:inherit;text-align:left;cursor:pointer}
.plan-opt .grow{flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--sp-1)}
.plan-opt .name{font-weight:700}
.plan-opt .sub{color:var(--muted);font-size:var(--fs-14)}
.plan-opt[aria-pressed="true"]{background:var(--raised);box-shadow:var(--ring-fg)}
.plan-opt .price-right{flex:none;text-align:right;font-weight:700}
.plan-opt .price-right small{display:block;font-weight:400;font-size:var(--fs-12);color:var(--muted)}
.plan-opt.end .name{color:var(--danger)}
.hall-hero #spaceLine{display:flex;max-width:100%;min-width:0}
#pinSpaces{display:flex;flex-direction:column;gap:var(--sp-6)}
.callout.warn{background:rgba(255,176,97,.2)}
.family-invite .name{font-weight:400}
.family-invite .sub{display:block;color:var(--muted);font-size:var(--fs-14)}

/* ---- joining a team as one of your Halls (join.js) ---- */
.join-flow{display:flex;flex-direction:column;gap:var(--sp-7)}
.join-head{display:flex;align-items:center;gap:var(--sp-6)}
.join-head .grow{flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--sp-1)}
.join-head h3{overflow-wrap:anywhere}
.join-share{padding:var(--sp-4) var(--sp-6);border-radius:var(--r-card);background:var(--bg)}
.join-share .name{white-space:normal}
.join-notes{display:flex;flex-direction:column;gap:var(--sp-6)}
.join-note{display:flex;gap:var(--sp-6);align-items:flex-start;padding:var(--sp-6);border-radius:var(--r-card);background:var(--bg)}
.join-note .icon{margin-top:1px;color:var(--good)}
.player-photo{flex:none;width:36px;height:36px;border-radius:50%;object-fit:cover;background:var(--raised)}
.player-photo.big{width:60px;height:60px}
.thumbnum{position:relative;flex:none;display:inline-block;line-height:0}
.num-badge{position:absolute;right:-4px;bottom:-4px;min-width:20px;height:20px;padding:0 var(--sp-2);border-radius:var(--r-ctl);background:var(--fg);color:var(--bg);font:700 var(--fs-12)/20px var(--display);font-variant-numeric:tabular-nums;text-align:center;box-shadow:0 0 0 2px var(--bg)}
.thumbnum.big .num-badge{min-width:26px;height:26px;border-radius:var(--r-pill);font-size:var(--fs-14);line-height:26px}

/* ---- the family schedule and calendar (family.js) ---- */
.t-dot{flex:none;display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--c,var(--muted))}
.t-dot.off{opacity:.4}
/* the team's colour as a thin line at the left of a row (Schedule rows with more than one team, every Home row): the row is relative with a 12px left padding */
.t-line{position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:999px;background:var(--c,var(--muted))}
.hm-nx,.hm-rr,.rp-card{position:relative}
.hm-nx,.hm-rr{padding-left:var(--sp-6)}
.inbox-msg-badge{background:var(--accent);color:var(--accent-fg)}   /* yellow: unread messages (red, the default .chat-badge, is updates) */
#inboxButton[data-both] #inboxBadge{right:auto;left:1px}
.ib-pill{display:inline-block;min-width:18px;height:18px;margin-left:var(--sp-2);padding:0 var(--sp-2);border-radius:var(--r-pill);font:700 var(--fs-12)/18px var(--body);text-align:center;font-variant-numeric:tabular-nums;vertical-align:1px;background:var(--live);color:var(--on-video)}
.ib-pill.msg{background:var(--accent);color:var(--accent-fg)}
.ib-tabs{flex:none;margin:var(--sp-2) var(--pad-x,var(--gutter)) var(--sp-6)}   /* the Messages · Updates switch at the top of the one Inbox panel (inbox.js) */
#scheduleMain .vseg{margin:0}
.sched-head{position:sticky;top:calc(var(--header-h) + var(--top) + var(--fl-h,0px));z-index:3;margin:0 calc(-1 * var(--gutter));padding:var(--sp-4) var(--gutter);background:var(--bg);display:flex;flex-direction:column;align-items:stretch;gap:var(--sp-3)}   /* (the switch, then the type chips: 44 + 6 + 32, 8 above and below) */
#scheduleMain .vseg{flex:none;min-width:0}
#scheduleMain .vseg button{padding:0 var(--sp-2);font-size:.9375rem}   /* (four views side by side: 15px text, 4px sides, so they fit at 320px) */
/* the type chips: All, then an icon for each event type; off is the type's tint with its text colour, on is filled with the text colour */
.type-row{display:flex;align-items:center;gap:var(--sp-3);height:var(--ctl-xs);overflow-x:auto;scrollbar-width:none}
.type-row::-webkit-scrollbar{display:none}
.ty-name{display:none}
.ty-chip[aria-pressed="true"]:not(.all){padding:0 var(--sp-6);gap:var(--sp-2)}
.ty-chip[aria-pressed="true"] .ty-name{display:inline}
.type-row.filtered .ty-chip.all{box-shadow:inset 0 0 0 1.5px var(--accent);color:var(--fg)}
.ty-chip{--tb:var(--surface);--tf:var(--muted);position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;box-sizing:border-box;min-width:var(--ctl-xs);height:var(--ctl-xs);padding:0;border:0;border-radius:var(--r-pill);background:var(--tb);color:var(--tf);font:600 var(--fs-13) var(--body);cursor:pointer}
.ty-chip::after{content:"";position:absolute;inset:-6px -3px}   /* (a 44px target around the 32px chip) */
.ty-chip.all{padding:0 var(--sp-6);min-width:44px}
.ty-chip.practice{--tb:var(--ty-practice-bg);--tf:var(--ty-practice-fg)}.ty-chip.league{--tb:var(--ty-league-bg);--tf:var(--ty-league-fg)}.ty-chip.non{--tb:var(--ty-nonleague-bg);--tf:var(--ty-nonleague-fg)}
.ty-chip.playoffs{--tb:var(--ty-playoffs-bg);--tf:var(--ty-playoffs-fg)}.ty-chip.tournament{--tb:var(--ty-tournament-bg);--tf:var(--ty-tournament-fg)}.ty-chip.event{--tb:var(--ty-other-bg);--tf:var(--ty-other-fg)}
.ty-chip.practice .icon{transform:rotate(90deg)}.ty-chip.tournament .icon{transform:rotate(-90deg)}
.ty-chip[aria-pressed="true"]{background:var(--tf);color:var(--bg)}
html[data-theme="day"] .ty-chip[aria-pressed="true"]{color:#fff}
.ty-chip.all[aria-pressed="true"],html[data-theme="day"] .ty-chip.all[aria-pressed="true"]{background:var(--fg);color:var(--bg)}
.ty-chip:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* Search (engines/evsearch.js) */
.srch-field{display:flex;align-items:center;gap:var(--sp-3);height:var(--tap);margin:var(--sp-2) 0 var(--sp-6);padding:0 var(--sp-2) 0 var(--sp-6);border-radius:var(--r-ctl);background:var(--surface)}
.srch-field:focus-within{box-shadow:0 0 0 2px var(--accent)}
.srch-q{flex:1;min-width:0;height:var(--tap);padding:0;border:0;background:none;color:var(--fg);font:inherit;font-size:var(--fs-16);-webkit-appearance:none;appearance:none}
.srch-q::placeholder{color:var(--subtle)}
.srch-q:focus{outline:none}
.srch-q::-webkit-search-cancel-button{display:none}
.srch-x{display:grid;place-items:center;flex:none;width:var(--tap);height:var(--tap);padding:0;border:0;background:none;color:var(--muted);cursor:pointer}
.srch-x[hidden]{display:none}
.srch-head{display:flex;align-items:center;justify-content:space-between}
.srch-head .label{text-transform:uppercase}
.srch-rec{display:block;width:100%;min-height:var(--tap);padding:0;border:0;border-bottom:1px solid var(--hair);background:none;color:var(--fg);font:inherit;text-align:left;cursor:pointer}
.srch-hint,.srch-state{margin:var(--sp-4) 0;font-size:var(--fs-13);color:var(--subtle)}
.srch-label{display:block;margin:var(--sp-6) 0 var(--sp-2);text-transform:uppercase}
.srch-row{border-bottom:1px solid var(--hair)}
.srch-open{display:flex;align-items:center;gap:var(--sp-6);width:100%;min-height:64px;padding:var(--sp-4) 0;border:0;background:none;color:var(--fg);font:inherit;text-align:left;cursor:pointer}
.srch-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:none;box-sizing:border-box;width:48px;height:48px;border-radius:var(--r-ctl);border-left:3px solid var(--c);background:var(--surface)}
.srch-tile small{font:700 11px/1 var(--display);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.srch-tile b{font:700 22px/1.05 var(--display)}
.srch-row.past .srch-tile b{color:var(--muted)}
.srch-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--sp-1)}
.srch-title{font:600 .9375rem/1.25 var(--body);overflow-wrap:anywhere}
.srch-title.game{font:700 17px/1.2 var(--display)}
.srch-title .ev-vs{font-weight:500;color:var(--muted)}
.srch-sub{display:flex;align-items:center;flex-wrap:nowrap;min-width:0;gap:var(--sp-3);font-size:var(--fs-13);color:var(--muted)}
.srch-when{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}   /* (one line: the tag, then the day, time and place, cut short when long) */
.srch-tag{flex:none;padding:1px var(--sp-3);border-radius:var(--r-tag);font:700 11px/1.3 var(--display);letter-spacing:.08em;text-transform:uppercase}
.srch-tag.practice{background:var(--ty-practice-bg);color:var(--ty-practice-fg)}.srch-tag.league{background:var(--ty-league-bg);color:var(--ty-league-fg)}.srch-tag.non{background:var(--ty-nonleague-bg);color:var(--ty-nonleague-fg)}
.srch-tag.playoffs{background:var(--ty-playoffs-bg);color:var(--ty-playoffs-fg)}.srch-tag.tournament{background:var(--ty-tournament-bg);color:var(--ty-tournament-fg)}.srch-tag.event{background:var(--ty-other-bg);color:var(--ty-other-fg)}
.srch-end{flex:none;display:flex;align-items:center}
.srch-in{font-size:var(--fs-13);color:var(--subtle);white-space:nowrap}
.srch-res{display:flex;align-items:center;gap:var(--sp-3)}
.srch-res .ev-tile{flex:none;width:28px;height:28px;font-size:var(--fs-16)}
.srch-sc{font:700 var(--fs-16) var(--display)}
.srch mark{background:var(--tint-gold);color:var(--accent-text);border-radius:2px}
.tl-item .t-dot{margin-right:var(--sp-3)}
.sch-strip .sch-day{cursor:default}
.sch-day-label{display:block;margin:var(--sp-7) var(--sp-1) var(--sp-4)}
.sch-note{margin-top:var(--sp-6);text-align:center}
.sch-month{display:grid;grid-template-columns:var(--tap) 1fr var(--tap) auto;align-items:center;gap:var(--sp-2);margin-bottom:var(--sp-2)}   /* arrows around the centred name, Today at the end */
.sch-today{min-height:var(--ctl-sm);padding:0 var(--sp-6);border:0;border-radius:var(--r-pill);background:var(--raised);color:var(--fg);font:var(--t-label);cursor:pointer}
.sch-today[disabled]{opacity:.45;cursor:default}
.sch-month .icon-btn[disabled]{opacity:.35;cursor:default}
.sch-month-name{text-align:center;font:700 var(--fs-20) var(--body)}
.sch-week,.sch-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:var(--sp-1)}
.sch-week span{text-align:center;color:var(--muted);font:var(--t-caption);padding:var(--sp-2) 0}
.sch-day{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--sp-1);min-height:var(--tap);min-width:0;padding:0;border:0;border-radius:var(--r-ctl);background:none;color:var(--fg);font:600 var(--fs-16)/1 var(--body);cursor:pointer}
.sch-day .dots{display:flex;align-items:center;gap:var(--sp-2);height:8px}
.sch-day .t-dot{width:6px;height:6px}
.sch-day .more{font:700 var(--fs-12)/1 var(--body);color:var(--muted)}
.sch-day.today{box-shadow:var(--ring)}
.sch-day[aria-pressed="true"]{background:var(--fg);color:var(--bg)}
.sch-day[aria-pressed="true"] .more{color:var(--bg)}

/* ---------- scoring: the Score buttons, the scorebook, the score viewers see (scoring.js) ---------- */
.score-btn{min-height:var(--tap);padding:0 var(--sp-7);background:var(--raised)}
.live-actions .score-btn{min-height:var(--tap)}
.score-chip{font:700 var(--fs-16) var(--display);letter-spacing:.02em;font-variant-numeric:tabular-nums;white-space:nowrap}
.hero .score-chip{margin-left:var(--sp-4)}
.res{display:flex;align-items:center;gap:var(--sp-4);flex:none}
.sc{font:700 var(--fs-16) var(--display);letter-spacing:.02em;font-variant-numeric:tabular-nums}
.tag.loss{background:var(--tint-danger);color:var(--on-tint-danger)}
/* The scoreboard over the live video (scoring.js): US, its score, the period, their score, THEM. It sits in a box the shape of the picture
   (.stage-fit), and every size is in units of the bar's height, which follows the picture's width: 46px at 1280 wide for Large, 0.8x for
   Medium, 0.62x for Small. Text on it is graphics on the video, so it is not on the page's type scale. The teams' colours are set inline. */
.sov{--k:1;--bh:calc(34px * var(--k));position:absolute;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:.5em;font-size:calc(var(--bh) * .42);font-family:var(--display);pointer-events:none;white-space:nowrap}
@supports (width:1cqw){.sov{--bh:max(calc(26px * var(--k)),calc(3.6cqw * var(--k)))}}
.sov.sz-medium{--k:.8}.sov.sz-small{--k:.62}
.sov.at-top{top:clamp(12px,1.6cqw,20px)}
.sov.at-bottom{bottom:clamp(60px,6.2cqw,80px);flex-direction:column-reverse}
.sov-bw{position:relative}
.sov-bar{display:flex;align-items:stretch;height:var(--bh);border-radius:.45em;overflow:hidden;background:var(--ink);color:var(--on-video);box-shadow:0 .1em .6em rgba(0,0,0,.45);font-weight:700;line-height:1}
.sov-t{display:flex;align-items:center;padding:0 .9em;background:var(--c);color:var(--ink);font-weight:700;letter-spacing:.08em;font-size:1.05em;text-transform:uppercase}
.sov-n{display:grid;place-items:center;min-width:1.7em;padding:0 .5em;background:var(--navy);color:var(--on-video);font-size:1.6em;font-weight:700;font-variant-numeric:tabular-nums}
.sov-n.flash{animation:sovflash 2.6s ease-out 1}
/* the cell stays solid navy whatever the team colour is; a new score only lights the digits gold */
@keyframes sovflash{0%,16%{color:var(--gold)}8%{color:var(--on-video)}24%,70%{color:var(--gold)}100%{color:var(--on-video)}}
.sov-p{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.15em;min-width:3.6em;padding:0 .7em;background:#05080D}
.sov-p b{color:var(--gold);font-weight:700;font-size:1.05em;letter-spacing:.04em}
.sov-clock{font-style:normal;font-weight:700;font-size:1.1em;font-variant-numeric:tabular-nums}
.sov-ball{display:inline-flex;align-items:center;margin:0 .45em 0 0}
.sov-t .sov-ball:last-child{margin:0 0 0 .45em}
.sov-fb{width:1.5em;height:.9em;display:block}
.sov-pill{max-width:92cqw;overflow:hidden;text-overflow:ellipsis;padding:.25em .8em;border-radius:var(--r-pill);background:#05080D;color:var(--on-video);font-size:.95em;font-weight:700;letter-spacing:.06em;font-variant-numeric:tabular-nums;box-shadow:0 .1em .6em rgba(0,0,0,.45)}
.sov-live{position:absolute;right:100%;top:50%;margin-right:.5em;transform:translateY(-50%);padding:.25em .55em;border-radius:.3em;background:var(--live);color:var(--on-video);font-size:.8em;font-weight:700;letter-spacing:.1em}
.sov-call{max-width:92cqw;overflow:hidden;text-overflow:ellipsis;padding:.3em .9em;border-radius:var(--r-pill);background:var(--c);color:var(--ink);font-size:1.05em;font-weight:700;letter-spacing:.04em;box-shadow:0 .1em .6em rgba(0,0,0,.45);animation:sovcall .35s ease-out 1}
@keyframes sovcall{from{opacity:0;transform:translateY(-.9em)}to{opacity:1;transform:none}}
.sov.at-bottom .sov-call{animation-name:sovcallb}
@keyframes sovcallb{from{opacity:0;transform:translateY(.9em)}to{opacity:1;transform:none}}
.sov-o{color:var(--on-video);font-size:.8em;letter-spacing:.2em;line-height:1}
.sov-c{color:var(--on-video);font-size:.8em;font-weight:700;font-variant-numeric:tabular-nums;line-height:1;margin-right:.4em}
.sov-sub{color:var(--on-video);font-style:normal;font-size:.8em;font-weight:700;font-variant-numeric:tabular-nums;line-height:1;white-space:nowrap}
/* Bottom centre is the score bug's; the sound chip moves up out of the way of it. */
.stage:has(.sov.at-bottom) .sound-chip{bottom:auto;top:12px}
/* Full screen: the box fills the screen; on a phone that cannot, .theater makes it fill the page. */
.stage:fullscreen{max-height:none;aspect-ratio:auto;width:100%;height:100%}
.stage:-webkit-full-screen{max-height:none;aspect-ratio:auto;width:100%;height:100%}
.stage.theater{position:fixed;inset:0;z-index:var(--z-sheet);width:100%;height:100%;max-height:none;aspect-ratio:auto}
body.theater{overflow:hidden}
.theater-x{position:absolute;top:calc(8px + var(--top));right:8px;z-index:4;display:grid;place-items:center;width:var(--tap);height:var(--tap);padding:0;border:0;border-radius:var(--r-pill);background:rgba(10,14,20,.78);color:var(--on-video);cursor:pointer}
.theater-hint{display:none;position:absolute;left:50%;bottom:calc(64px + var(--bottom));z-index:4;margin:0;transform:translateX(-50%);padding:var(--sp-3) var(--sp-7);border-radius:var(--r-pill);background:var(--glass);color:var(--on-video);font-size:var(--fs-14);white-space:nowrap}
@media (orientation:portrait){.theater-hint:not([hidden]){display:block}}
/* The square full screen button at the picture's bottom right: phones only (a tablet or desktop has Full screen in the strip), while the stage is not full. */
.fs-corner{display:none;position:absolute;right:8px;bottom:8px;z-index:3;place-items:center}
@media not all and (min-width:768px) and (min-height:501px){.fs-corner:not([hidden]){display:grid}}
.stage.theater .fs-corner,.stage:fullscreen .fs-corner,.stage:-webkit-full-screen .fs-corner{display:none!important}
/* Fit (the whole picture) or Fill (covers the screen) while the stage is full; the choice is the .fill class (app.js). */
.fill-label{position:absolute;left:50%;top:50%;z-index:4;transform:translate(-50%,-50%);padding:var(--sp-4) var(--sp-7);border-radius:var(--r-pill);background:var(--glass);color:var(--on-video);font:var(--t-body-strong);pointer-events:none}
.fill-label[hidden]{display:none}
.stage.theater.fill :is(video,.stage-frozen),.stage:fullscreen.fill :is(video,.stage-frozen),.stage:-webkit-full-screen.fill :is(video,.stage-frozen){object-fit:cover}
/* Full means the whole screen, under the notch and the home indicator too; the controls stay inside the safe areas. */
#stage.theater{width:100vw;height:100dvh;margin:0;border-radius:0}
#watchView #stage:is(.theater,:fullscreen) :is(.sound-chip,.lv-live){left:calc(12px + var(--left))}
#watchView #stage:is(.theater,:fullscreen) .lv-live{right:auto}   /* (full screen keeps it top left: the scoreboard buttons and Close are on the right) */
@media (orientation:landscape) and (max-height:500px){
  .watching .view{max-width:none}
  .watching .wv-head{display:none}
  .watching #stage{width:100vw;height:100dvh;margin:0;border-radius:0}
  .watching .stage.fill :is(video,.stage-frozen){object-fit:cover}
  .watching .fs-corner{right:calc(8px + var(--right));bottom:calc(8px + var(--bottom))}
  #watchView #stage :is(.sound-chip,.lv-live){left:calc(12px + var(--left))}
  #watchView #stage .lv-live{right:auto}
  .watching .sbv-tools{top:calc(8px + var(--top));right:calc(8px + var(--right))}
}
/* The scoreboard settings sheet: a small picture of the scoreboard over a field, then the choices. */
.ov-prev{position:relative;aspect-ratio:16/9;width:100%;container-type:size;overflow:hidden;border-radius:var(--r-card);background:linear-gradient(160deg,#1E4A34,#0F2A1D 55%,#18382A)}
.sheet .vseg{margin:0}
.sheet.ov>*{flex:none}
.sw-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-4)}
.sw{width:var(--tap);height:var(--tap);padding:0;border:0;border-radius:50%;background:var(--c);cursor:pointer}
.sw[aria-pressed="true"]{box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--fg)}
.sw-custom{position:relative;display:inline-flex;align-items:center;gap:var(--sp-4);min-height:var(--tap);padding:0 var(--sp-7) 0 var(--sp-3);border-radius:var(--r-pill);background:var(--raised);color:var(--fg);font:var(--t-label-strong);cursor:pointer}
.sw-custom input{width:32px;height:32px;padding:0;border:0;border-radius:50%;background:none;cursor:pointer}
.sw-custom.on{background:var(--fg);color:var(--bg)}
.sw-custom input::-webkit-color-swatch-wrapper{padding:0}
.sw-custom input::-webkit-color-swatch{border:0;border-radius:50%}
.sw-custom input::-moz-color-swatch{border:0;border-radius:50%}
/* The scorebook: a full-screen panel (the same look as Messages), above the chat panels and below sheets. */
#scoreBook{z-index:42}
#scoreBook .chat-head .badge{margin-right:0}
#scoreBook .chat-head h2{flex:0 1 auto;padding:0 var(--sp-2)}
#scoreBook #scoreDone,#scoreBook #scoreFix{flex:none}
#scoreBook #scoreGear{margin-left:auto;flex:none}
.sb-nosig{flex:none;margin:0;padding:var(--sp-3) var(--sp-6);text-align:center;font:var(--t-label-strong);background:var(--tint-warn);color:var(--on-tint-warn)}
.sb-nosig[hidden]{display:none}
#scoreBook .sb-log .row.queued{background:var(--tint-warn)}
#scoreBook .chat-body{display:flex;flex-direction:column;gap:var(--sp-6);padding-top:0}
/* In progress: a game being kept with no stream. A gold tint (a state worth knowing), so it never reads as the red LIVE. */
.badge.progress,.tag.progress{background:var(--tint-gold);color:var(--on-tint-gold);box-shadow:none}
.hub-live>.label{margin-bottom:-4px}
.row-pair .up-row{border-bottom:0;flex:1;min-width:0;width:auto}
.row-pair .score-btn{flex:none;margin-right:var(--sp-4)}
.sb-stream{display:flex;flex-direction:column;gap:var(--sp-1);padding:var(--sp-6) var(--sp-6);border-radius:var(--r-ctl);background:var(--surface)}
.sb-card .sb-stream{padding:0;background:none}
.sb-stack{display:flex;flex-direction:column;gap:var(--sp-6)}
.sb-stack:empty{display:none}
.sb-stack>.vseg{margin:0}
.sb-stack .label{display:block}
.sb-card{display:flex;flex-direction:column;gap:var(--sp-6);padding:var(--sp-6);border-radius:var(--r-card);background:var(--surface)}
.sb-card h3{font-size:var(--fs-20)}
.sb-card .field{margin:0}
/* The line score: our team and theirs by period, a total at the end. The team column stays put while the columns scroll. */
.ls{overflow-x:auto;overscroll-behavior-x:contain;border-radius:var(--r-card);background:var(--surface)}
.ls table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.ls th,.ls td{min-width:var(--tap);padding:0 var(--sp-1);text-align:center;font:600 var(--fs-16) var(--display)}
.ls td{height:52px}
.ls thead th{height:36px;font:var(--t-label);color:var(--muted)}
.ls tbody tr+tr>*{border-top:1px solid var(--hair)}
.ls .tm{position:sticky;left:0;z-index:1;min-width:96px;max-width:120px;padding:0 var(--sp-6);text-align:left;background:var(--surface);font:var(--t-body-strong)}
.ls .nm{display:block;max-width:100px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ls .cur{background:var(--raised)}
.ls thead .cur{color:var(--fg)}
.ls .tot{min-width:52px;color:var(--accent-text);font:var(--t-title)}
.ls thead .tot{font:var(--t-label)}
.ls .mute{color:var(--muted);font-weight:400}
.ls-cell{display:block;width:100%;height:var(--tap);min-width:var(--tap);padding:0;border:0;border-radius:var(--r-ctl);background:none;color:var(--fg);font:inherit;cursor:pointer}
.ls td.sel{background:none}
.ls td.sel .ls-cell{background:var(--fg);color:var(--bg)}
.sb-period{display:flex;align-items:center;gap:var(--sp-4);padding:var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-2);border-radius:var(--r-card);background:var(--surface)}
.sb-period .grow{flex:1;min-width:0}
.sb-period b,.sb-fix b{display:block;font-size:var(--fs-16)}
.sb-period .sub,.sb-fix .sub{display:block;color:var(--muted);font-size:var(--fs-14)}
.sb-period .icon-btn:disabled{color:var(--subtle);cursor:default}
.sb-fix .sb-step{display:flex;align-items:center;gap:var(--sp-4)}
.sb-step button:not(.btn){width:var(--tap);height:var(--tap);border:0;border-radius:var(--r-ctl);background:var(--raised);color:var(--fg);font:700 var(--fs-20)/1 var(--body);cursor:pointer}
.sb-step output{min-width:48px;text-align:center;font:var(--t-number)}
.sb-step .btn{margin-left:auto}
.sb-pad{display:grid;grid-template-columns:repeat(var(--cols,2),minmax(0,1fr));gap:var(--sp-4)}
.sb-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--sp-2);min-height:72px;padding:var(--sp-4) var(--sp-2);border:0;border-radius:var(--r-card);background:var(--accent);color:var(--accent-fg);cursor:pointer;touch-action:manipulation}
.sb-btn b{font:800 italic var(--fs-28)/1 var(--display)}
.sb-btn span{font:600 var(--fs-14)/1.1 var(--body);text-align:center}
.sb-btn:active{transform:scale(.97)}
.sb-pad[style*="--cols:1"] .sb-btn{min-height:104px}
.sb-note{margin:0;padding:var(--sp-4) var(--sp-6);border-radius:var(--r-ctl);background:var(--raised);font-weight:600;text-align:center}
.sb-who{position:relative;display:flex;flex-direction:column;gap:var(--sp-6);padding:var(--sp-6) var(--sp-6) var(--sp-7);border-radius:var(--r-card);background:var(--surface);overflow:hidden}
.sb-who-head{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-4)}
.sb-who-head .link-btn{min-height:var(--ctl-sm);padding:0 var(--sp-2)}
.sb-num{display:flex;align-items:center;justify-content:center;min-height:56px;border-radius:var(--r-ctl);background:var(--raised);font:700 var(--fs-40)/1 var(--display);letter-spacing:.06em}
.sb-num.empty{color:var(--muted);font:var(--t-body-semi);letter-spacing:0}
.sb-keys{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sp-4)}
.sb-keys button{min-height:var(--tap-lg);border:0;border-radius:var(--r-ctl);background:var(--raised);color:var(--fg);font:var(--t-number);cursor:pointer;touch-action:manipulation}
.sb-keys .go{background:var(--accent);color:var(--accent-fg);font:var(--t-body-strong)}
.sb-log{max-height:280px;overflow-y:auto;overscroll-behavior:contain}
.sb-log .row{min-height:var(--row-tight);padding-top:var(--sp-3);padding-bottom:var(--sp-3)}
.sb-log .undone .name,.sb-log .undone .sub{text-decoration:line-through;opacity:.6}
.sb-log .link-btn{min-height:var(--ctl-sm)}

/* The scorebook's other entries, the number pad's name match, the assists pad, and the game log's links and filter. */
.sb-others{display:flex;flex-direction:column;gap:var(--sp-4)}
.sb-others .vseg{margin:0}
.sb-oth{grid-template-columns:repeat(3,minmax(0,1fr))}
.sb-ev{display:flex;align-items:center;justify-content:center;min-height:var(--row-tight);padding:var(--sp-3) var(--sp-2);border:0;border-radius:var(--r-card);background:var(--raised);color:var(--fg);font:700 var(--fs-14)/1.15 var(--body);text-align:center;cursor:pointer;touch-action:manipulation}
.sb-ev:active{transform:scale(.97)}
.sb-match{min-height:20px;text-align:center;font:600 var(--fs-14)/20px var(--body)}
.sb-match .ok{color:var(--good)}
.sb-slots{display:grid;grid-template-columns:1fr 1fr;gap:var(--sp-4)}
.sb-slot{display:flex;flex-direction:column;align-items:center;gap:var(--sp-1);min-height:var(--tap);padding:var(--sp-4) var(--sp-2);border:0;border-radius:var(--r-ctl);background:var(--raised);color:var(--fg);cursor:pointer}
.sb-slot .k{font:var(--t-label);color:var(--muted)}
.sb-slot b{font:var(--t-number);letter-spacing:.04em}
.sb-slot .m{min-height:20px;font:600 var(--fs-14)/20px var(--body);max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.sb-slot[aria-pressed="true"]{background:var(--fg);color:var(--bg)}
.sb-slot[aria-pressed="true"] .k,.sb-slot[aria-pressed="true"] .muted{color:#4A5B72}
.sb-slot[aria-pressed="true"] .ok{color:#127A3E}
.sb-keys .alt{font:var(--t-label-strong)}
.sb-links{display:flex;flex-wrap:wrap;gap:0 var(--sp-7)}
.sb-log .sb-links .link-btn{font-size:var(--fs-14);min-height:var(--ctl-sm)}
/* The scorer's pad for a sport without innings (engines/pad.js): depth pill, follow-up strip, play keys, goalie card, jersey tiles, the other team's row, footer, Fix. */
.pad-top{display:flex;justify-content:flex-end}
.pad-depth{display:inline-flex;align-items:center;gap:var(--sp-2)}
.pad-keys{display:grid;grid-template-columns:repeat(var(--cols,3),minmax(0,1fr));gap:var(--sp-4)}
.pad-key{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--sp-1);min-height:56px;padding:var(--sp-3) var(--sp-2);border:0;border-radius:var(--r-card);background:var(--raised);color:var(--fg);font:700 var(--fs-16)/1.1 var(--body);text-align:center;cursor:pointer;touch-action:manipulation}
.pad-key span{font:600 var(--fs-14)/1.1 var(--body);white-space:nowrap}
.pad-key.long{padding-left:var(--sp-1);padding-right:var(--sp-1)}
.pad-key.long span{font-size:var(--fs-13);letter-spacing:-.01em}   /* (a long name stays on one line; the full name is in the key's aria-label or is the key's own text) */
.pad-key.score{min-height:72px;background:var(--accent);color:var(--accent-fg)}
.pad-key.score b{font:800 italic var(--fs-28)/1 var(--display)}
.pad-key:active{transform:scale(.97)}
.pad-key[aria-pressed="true"]{outline:3px solid var(--fg);outline-offset:-3px}
.pad-strip{position:relative;display:flex;flex-direction:column;gap:var(--sp-4);padding:var(--sp-4) var(--sp-6) var(--sp-7);border-radius:var(--r-card);background:var(--surface);overflow:hidden}
.pad-strip-head{display:flex;align-items:center;gap:var(--sp-2)}
.pad-strip-words{flex:1;min-width:0;font:var(--t-body-strong)}
.pad-strip-words .muted{display:block;font-weight:500;font-size:var(--fs-14)}
.pad-star[aria-pressed="true"]{color:var(--accent-text)}
.pad-star[aria-pressed="true"] svg{fill:currentColor}
.pad-strip-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-3)}
.pad-strip-q{font:var(--t-label-strong);color:var(--muted);margin-right:var(--sp-2)}
.pad-strip-note{font-size:var(--fs-14);margin-top:calc(var(--sp-2) * -1)}
.pad-chip{min-width:44px;padding:0 var(--sp-6)}
.pad-faceoff{display:grid;gap:var(--sp-2)}
.pad-goalie{display:flex;align-items:center;gap:var(--sp-4);padding:var(--sp-4) var(--sp-6);border-radius:var(--r-card);background:var(--surface)}
.pad-g-text{flex:1;min-width:0;display:flex;flex-direction:column}
.pad-g-text .label{margin:0}
.pad-g-name{font:var(--t-body-strong);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pad-g-text .sub{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:var(--fs-14);color:var(--muted)}
.pad-save{min-width:72px;min-height:56px;background:var(--accent);color:var(--accent-fg);font-size:var(--fs-20)}
.pad-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(44px,1fr));gap:var(--sp-3)}
.pad-tiles.fb-credit{max-height:calc(3 * 52px + 2 * var(--sp-3));overflow-y:auto;overscroll-behavior:contain}
.pad-jersey{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:52px;padding:var(--sp-2) var(--sp-1);border:0;border-radius:var(--r-ctl);background:var(--raised);color:var(--fg);cursor:pointer;touch-action:manipulation}
.pad-jersey b{font:var(--t-number);font-variant-numeric:tabular-nums}
.pad-jersey span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 var(--fs-12)/1.2 var(--body);color:var(--muted)}
.pad-jersey[aria-pressed="true"]{background:var(--fg);color:var(--bg)}
.pad-jersey[aria-pressed="true"] span{color:inherit}
.pad-jersey.static{flex:none;width:44px;background:var(--raised);pointer-events:none}
.pad-court,.pad-bench{display:flex;flex-direction:column;gap:var(--sp-3)}
.pad-court-head{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-3)}
.pad-court-head .label,.pad-bench .label{margin:0}
.pad-court-tiles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:var(--sp-3)}      /* (the five on court: one row of five) */
.pad-jersey.big{min-height:52px;padding:var(--sp-4) var(--sp-2);gap:var(--sp-1)}
.pad-jersey.big b{font-size:var(--fs-28);line-height:1}
.pad-jersey small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 var(--fs-12)/1.2 var(--body);color:var(--accent-text)}
.pad-jersey[aria-pressed="true"] small{color:inherit}
.pad-bench-row{display:flex;gap:var(--sp-3);overflow-x:auto;padding-bottom:var(--sp-2)}
.pad-bench-row .pad-jersey{flex:none;width:56px}
.pad-slots{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}
.pad-slot{display:flex;flex-direction:column;align-items:flex-start;gap:var(--sp-1);min-width:0;min-height:52px;padding:var(--sp-3) var(--sp-4);border:0;border-radius:var(--r-ctl);background:var(--raised);color:var(--fg);text-align:left;cursor:pointer;touch-action:manipulation}
.pad-slot-q{font:var(--t-label-strong);color:var(--muted)}
.pad-slot b{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:var(--t-body-strong)}
.pad-slot[aria-pressed="true"]{outline:3px solid var(--fg);outline-offset:-3px}
.pad-num{flex:none;min-width:40px;font:var(--t-number);color:var(--accent-text);font-variant-numeric:tabular-nums}
.pad-them{display:flex;align-items:center;gap:var(--sp-4);padding:var(--sp-4) var(--sp-4) var(--sp-4) var(--sp-6);border-radius:var(--r-card);background:var(--surface);box-shadow:inset 3px 0 0 var(--box-grey)}
.pad-them .label{flex:none;max-width:30%;margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.pad-them .pad-keys{flex:1;min-width:0}
.pad-them.wide{flex-direction:column;align-items:stretch;gap:var(--sp-3);padding:var(--sp-4) var(--sp-4) var(--sp-4) var(--sp-6)}
.pad-them.wide .label{max-width:none}
.pad-them.wide .pad-keys{flex:none;gap:var(--sp-3)}
.pad-them.wide .pad-key{padding-left:var(--sp-1);padding-right:var(--sp-1)}
.pad-foot{display:flex;flex-wrap:wrap;gap:var(--sp-4)}
.pad-helpers{display:flex;flex-wrap:wrap;gap:var(--sp-3)}
.sb-helping{flex-direction:row;align-items:center;gap:var(--sp-4)}
.sb-helping .grow{flex:1;min-width:0}
.pad-foot .btn{flex:1 1 0;min-height:var(--tap-lg)}
.pad-finish[aria-pressed="true"]{background:var(--fg);color:var(--bg)}
.pad-pill{display:inline-block;min-width:22px;padding:0 var(--sp-2);margin-left:var(--sp-2);border-radius:var(--r-pill);background:var(--accent);color:var(--accent-fg);font:700 var(--fs-14)/22px var(--body)}
.pad-finish-head{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-4)}
.pad-fix-block{display:flex;flex-direction:column;gap:var(--sp-4);padding:var(--sp-4) var(--sp-6);border-radius:var(--r-card);background:var(--surface)}
.pad-fix-row{display:flex;align-items:center;gap:var(--sp-4)}
.pad-fix-row .grow{flex:1;min-width:0}
.sb-nums.fixable{border:0;background:none;color:inherit;cursor:pointer;padding:var(--sp-2) var(--sp-4);border-radius:var(--r-ctl);min-height:var(--tap)}
.sb-nums.fixable:focus-visible{outline:2px solid var(--accent-text);outline-offset:2px}
.pad-switch{margin-top:var(--sp-2)}
/* football: the mode pick, the setup, the start of a half (engines/footballsetup.js) */
.fbs-card{font:var(--t-body);display:flex;flex-direction:column;align-items:flex-start;gap:var(--sp-2);width:100%;padding:var(--sp-6);border:2px solid var(--line);border-radius:var(--r-card);background:var(--surface);color:var(--fg);text-align:left;cursor:pointer;touch-action:manipulation}
.fbs-card.gold{border-color:var(--accent)}
.fbs-card:active{background:var(--raised)}
.fbs-card>b{font:var(--t-title)}
.fbs-card ul{margin:0;padding-left:var(--sp-6);color:var(--muted);font:var(--t-body-semi)}
.fb-tag{font:var(--t-label-strong);color:var(--accent-text)}
.fb-note{display:block;font:var(--t-label-strong);color:var(--muted)}
.fb-note.yes{color:var(--accent-text)}
.fb-head{display:flex;align-items:center;gap:var(--sp-3)}
.fb-head h3{margin:0}
.fb-row{display:flex;gap:var(--sp-4);align-items:center}
.fb-row .input{flex:1;min-width:0}
.fb-teams>*{min-height:var(--tap-lg)}
.fb-teams>*:disabled{opacity:.55;cursor:default}
.fb-sub{font:600 var(--fs-12)/1.2 var(--body)}
.fb-teams>[aria-pressed="false"] .fb-sub{color:var(--muted)}
.fb-first{display:flex;flex-direction:column;gap:var(--sp-1);padding:var(--sp-4) var(--sp-6);border-radius:var(--r-card);background:var(--surface)}
.fb-group{display:flex;flex-direction:column;gap:var(--sp-2)}
.fb-grouphead{display:flex;align-items:center;justify-content:space-between}
.fbs-qrow{display:flex;align-items:center;gap:var(--sp-3);min-height:var(--tap)}
.fbs-qrow .grow{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fb-pos{width:20px;color:var(--muted);text-align:center}
.fbs-num{min-width:32px;font:var(--t-number);font-variant-numeric:tabular-nums}
.fb-more{align-self:flex-start}
.pad-fix-mid{text-align:center;font:var(--t-body-strong)}
.pad-fix-clock{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--sp-3)}
.pad-fix-clock .btn:last-child{grid-column:1/-1}
@media (prefers-reduced-motion:reduce){.pad-key:active{transform:none}}
/* ---------- the diamond: the scorer's screen for Baseball and Softball (engines/diamond.js, engines/lineup.js); the pad's keys, strip and tiles are reused ---------- */
.dm-duel{display:flex;flex-direction:column;gap:var(--sp-3)}      /* (the pitcher and the batter: one compact line each) */
.dm-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 var(--sp-3);min-width:0;padding:var(--sp-2) var(--sp-4) var(--sp-2) var(--sp-4);border-radius:var(--r-card);background:var(--surface)}
.dm-card>.dm-bar,.dm-card>.dm-note{grid-column:1/-1}
.dm-main{display:flex;align-items:center;gap:var(--sp-4);min-width:0;min-height:var(--ctl);padding:0;border:0;background:none;color:var(--fg);text-align:left;cursor:pointer;touch-action:manipulation}
.dm-card>.dm-main:only-child{grid-column:1/-1}
.dm-text{display:flex;flex-direction:column;min-width:0;flex:1}
.dm-nl{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:var(--sp-4);min-width:0}
.dm-role{font:var(--t-overline);letter-spacing:.05em;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dm-who{display:flex;align-items:center;gap:var(--sp-4);min-width:0}
.dm-tile{flex:none;display:grid;place-items:center;min-width:36px;height:36px;padding:0 var(--sp-2);border-radius:var(--r-ctl);background:var(--raised);color:var(--fg);font:var(--t-title);box-sizing:border-box}
.dm-tile.us{background:var(--fg);color:var(--bg)}
.dm-name{flex:none;max-width:100%;font:var(--t-body-strong);line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dm-line{min-width:0;font:var(--t-caption);color:var(--muted);line-height:1.3}
.dm-note{font:var(--t-label);color:var(--warn);line-height:1.3}
.dm-warn{color:var(--warn)}
.dm-bar{height:6px;border-radius:var(--r-pill);background:var(--raised);overflow:hidden}
.dm-bar i{display:block;height:100%;border-radius:var(--r-pill);background:var(--good)}
.dm-card[data-level="near"]{box-shadow:inset 0 0 0 2px var(--warn)}
.dm-card[data-level="near"] .dm-bar i{background:var(--warn)}
.dm-card[data-level="near"] .dm-line{color:var(--warn)}
.dm-card[data-level="at"],.dm-card[data-level="over"]{box-shadow:inset 0 0 0 2px var(--danger)}
.dm-card[data-level="at"] .dm-bar i,.dm-card[data-level="over"] .dm-bar i{background:var(--danger)}
.dm-card[data-level="at"] .dm-line,.dm-card[data-level="over"] .dm-line{color:var(--danger)}
.dm-steps{display:flex;align-items:center;gap:var(--sp-3)}
.dm-nocount{grid-template-columns:auto minmax(0,1fr)}      /* (a game with no count, T-ball: the diamond and the outs only) */
.dm-chips{display:flex;flex-wrap:wrap;gap:var(--sp-3)}      /* (the game rules sheet: one setting's choices) */
#dmRules .field{margin-bottom:var(--sp-6)}
/* The state of the plate at the top: the count (with Undo pitch) at the left, the small diamond and the outs at the right; a picked runner's panel takes the row below. */
.dm-count{display:grid;grid-template-columns:96px auto minmax(0,1fr);grid-auto-flow:row;gap:var(--sp-3) var(--sp-4);align-items:center}
.dm-cwrap{display:flex;flex-direction:column;align-self:stretch;gap:var(--sp-3)}
.dm-cwrap .btn{width:100%}
.dm-pitch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sp-4)}
.dm-ct{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--sp-1);border-radius:var(--r-ctl);background:var(--surface)}
.dm-ct b{font:var(--t-hero);font-variant-numeric:tabular-nums}
.dm-ct span{font:var(--t-overline);letter-spacing:.05em;color:var(--muted)}
.dm-keys{display:grid;grid-template-columns:repeat(var(--cols,4),minmax(0,1fr));gap:var(--sp-4)}
.dm-key{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--sp-1);min-width:0;min-height:56px;padding:var(--sp-3) var(--sp-2);border:0;border-radius:var(--r-ctl);background:var(--raised);color:var(--fg);font:var(--t-label-strong);line-height:1.2;text-align:center;cursor:pointer;touch-action:manipulation}
.dm-key:active{transform:scale(.97)}
.dm-keys .dm-key.wide{grid-column:1/-1}      /* (the seventh result, Fielder's choice, takes the last row whole: its words stay on one line) */
.dm-key.pitch{min-height:60px;background:var(--fg);color:var(--bg);font:var(--t-title);letter-spacing:.02em}
.dm-key.hit{background:var(--accent);color:var(--accent-fg)}
.dm-key.hit b{font:var(--t-number)}
.dm-key.hit span{font:var(--t-caption-strong)}
.dm-retire{display:flex;align-items:center;gap:var(--sp-4);padding:var(--sp-4) var(--sp-6);border-radius:var(--r-card);background:var(--surface);font:var(--t-body-strong)}
.dm-retire .grow{flex:1}
.dm-field{position:relative;flex:none;width:140px;height:124px}
.dm-dia{position:absolute;left:41px;top:33px;width:58px;height:58px;box-sizing:border-box;border:2px solid var(--line-strong);transform:rotate(45deg)}
.dm-base{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--sp-1);width:44px;height:44px;padding:0;border:0;border-radius:var(--r-ctl);background:var(--bg);box-shadow:inset 0 0 0 2px var(--line-strong);color:var(--muted);cursor:default;touch-action:manipulation}
.dm-base .cap{font:var(--t-caption);line-height:1.1}
.dm-base b{font:var(--t-title);line-height:1}
.dm-base.on{background:var(--fg);color:var(--bg);box-shadow:none;cursor:pointer}
.dm-base.on[aria-pressed="true"]{box-shadow:0 0 0 3px var(--accent)}
.dm-base.can{cursor:pointer;color:var(--fg);box-shadow:inset 0 0 0 2px var(--accent)}
.dm-base.b2{left:48px;top:0}
.dm-base.b3{left:0;top:40px}
.dm-base.b1{left:96px;top:40px}
.dm-base.home{left:48px;top:80px}
.dm-side{min-width:0;display:flex;flex-direction:column;gap:var(--sp-2)}
.dm-side .dm-hint{font-size:var(--fs-12);line-height:1.25}
.dm-side.pick{grid-column:1/-1;gap:var(--sp-3)}
.dm-outs{font-size:var(--fs-20);letter-spacing:.12em;line-height:1;white-space:nowrap}
.dm-rname{font:var(--t-body-strong)}
.dm-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-4)}
.dm-scoreonly{display:flex;flex-direction:column;gap:var(--sp-4)}
.dm-foot{flex-wrap:wrap}
.dm-foot .btn{flex:1 1 auto}
.dm-bases{display:flex;gap:var(--sp-4)}
/* the volleyball court (engines/court.js): the set row, the six as they stand, the bench, the two key groups, End set */
.ct-top{display:flex;align-items:center;gap:var(--sp-4);min-width:0;padding:var(--sp-3) var(--sp-6);border-radius:var(--r-card);background:var(--surface)}
.ct-serving{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:var(--t-label);color:var(--muted)}
.ct-serving b{font:var(--t-body-strong);color:var(--fg)}
.ct-set,.ct-sets{flex:none;display:flex;flex-direction:column;align-items:center;gap:var(--sp-1);line-height:1.1}
.ct-setname,.ct-sets span{font:var(--t-overline);letter-spacing:.05em;color:var(--muted)}
.ct-pts,.ct-sets b{font:var(--t-title);font-variant-numeric:tabular-nums;white-space:nowrap}
.ct-sets{padding-left:var(--sp-4);border-left:1.5px solid var(--line-strong)}
.ct-court{display:flex;flex-direction:column;gap:var(--sp-3)}
.ct-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sp-3)}
.ct-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--sp-1);min-width:0;min-height:60px;padding:var(--sp-2) var(--sp-1);border:0;border-radius:var(--r-ctl);background:var(--raised);color:var(--fg);cursor:pointer;touch-action:manipulation}
.ct-tile b{font:var(--t-number);font-variant-numeric:tabular-nums;line-height:1}
.ct-tile span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 var(--fs-12)/1.2 var(--body);color:var(--muted)}
.ct-tile[aria-pressed="true"]{background:var(--fg);color:var(--bg)}
.ct-tile[aria-pressed="true"] span{color:inherit}
.ct-tile.server{box-shadow:inset 0 0 0 2px var(--accent)}
.ct-tile.can{outline:2px dashed var(--accent);outline-offset:-2px}
.ct-mark,.ct-pos{position:absolute;top:var(--sp-1);font-style:normal}
.ct-mark{right:var(--sp-1);display:grid;place-items:center;min-width:18px;height:18px;border-radius:var(--r-pill);background:var(--accent);color:var(--accent-fg);font:700 var(--fs-12)/1 var(--body)}
.ct-mark.l{right:auto;left:var(--sp-1);background:var(--fg);color:var(--bg)}
.ct-pos{left:var(--sp-2);font:600 var(--fs-12)/1 var(--body);color:var(--muted)}
.ct-tile.slot .ct-mark.l,.ct-r .ct-mark.l,.ct-bench .ct-mark.l{left:auto;right:var(--sp-1)}
.ct-tile.slot.empty{background:none;box-shadow:inset 0 0 0 1.5px var(--line-strong);color:var(--muted)}
.ct-court.six .ct-tile{min-height:64px}
.pad-jersey.ct-r{position:relative}
.pad-jersey.ct-r.placed{opacity:.55}
.pad-jersey.ct-r.placed[aria-pressed="true"]{opacity:1}
.ct-bench{display:flex;flex-direction:column;gap:var(--sp-3)}
.ct-bench .label{margin:0}
.ct-bench-row{display:flex;flex-wrap:wrap;gap:var(--sp-3);max-height:calc(2 * 56px + var(--sp-3));overflow-y:auto;overscroll-behavior:contain}
.ct-bench-row .ct-tile{flex:none;width:56px;min-height:52px}
.ct-bench-row .ct-tile.libero{padding-right:var(--sp-3)}
.ct-group{display:flex;flex-direction:column;gap:var(--sp-3)}
.ct-group .label{margin:0}
.ct-group .pad-key{min-height:56px}
.ct-group .pad-key.score{min-height:64px}
.ct-group .pad-key.score b{font-size:var(--fs-20)}
.ct-group .pad-key span{white-space:normal;text-align:center}
.pad-key.score.lose{background:var(--raised);color:var(--fg)}
.pad-key[aria-disabled="true"]{opacity:.45}
.ct-why{margin:0}
.ct-end{display:flex;align-items:center;gap:var(--sp-4);padding:var(--sp-4) var(--sp-6);border-radius:var(--r-card);background:var(--surface);box-shadow:inset 3px 0 0 var(--accent)}
.ct-end.match{box-shadow:inset 3px 0 0 var(--good)}
.ct-end .grow{flex:1;min-width:0;display:flex;flex-direction:column}
.ct-noSix{display:flex;flex-direction:column;gap:var(--sp-3)}
.ct-six-tools{display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-4)}
/* the lineup sheet */
.lu-top{display:flex;align-items:center;gap:var(--sp-6);margin-bottom:var(--sp-6)}
.lu-top .grow{flex:1;min-width:0;display:flex;flex-direction:column}
.lu-top .sub{font-size:var(--fs-14);color:var(--muted)}
.lu-head{display:flex;justify-content:space-between;gap:var(--sp-4);margin-top:var(--sp-4)}
.lu-head .label{margin:0}
.lu-list{display:flex;flex-direction:column;margin:var(--sp-4) 0 var(--sp-6);border-radius:var(--r-card);background:var(--surface)}
.lu-row{display:flex;align-items:center;gap:var(--sp-3);min-height:var(--ctl-lg);padding:0 var(--sp-4) 0 var(--sp-2);border-bottom:1px solid var(--hair);background:var(--surface)}
.lu-row.now{background:var(--tint-gold)}
.lu-row.dragging{box-shadow:var(--lift-md);position:relative;z-index:1}
.lu-drag{flex:none;display:grid;place-items:center;width:var(--ctl-sm);height:var(--ctl);padding:0;border:0;background:none;color:var(--muted);cursor:grab;touch-action:none}
.lu-slot{flex:none;width:18px;font:var(--t-label);color:var(--muted);font-variant-numeric:tabular-nums}
.lu-num{flex:none;min-width:24px;font:var(--t-title);color:var(--accent-text)}
.lu-name{flex:1;min-width:0;display:flex;flex-direction:column}
.lu-name .name{font:var(--t-body-strong);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lu-tag{font:var(--t-caption-strong);color:var(--accent-text)}
.lu-warn{font:var(--t-caption);color:var(--warn)}
.lu-mv{flex:none;display:grid;place-items:center;width:var(--ctl-sm);height:var(--ctl);padding:0;border:0;background:none;color:var(--fg);cursor:pointer}
.lu-mv:disabled{opacity:.3;cursor:default}
.lu-pos{flex:none;min-width:48px;height:var(--ctl-sm);padding:0 var(--sp-4);border:0;border-radius:var(--r-ctl);background:var(--raised);color:var(--fg);font:var(--t-label-strong);cursor:pointer}
.lu-pos.pitch{background:var(--fg);color:var(--bg)}
.lu-pos.bench{background:none;color:var(--muted);box-shadow:var(--ring-line)}
.lu-wait{display:flex;flex-wrap:wrap;gap:var(--sp-4)}
.lu-add{font:var(--t-label);display:flex;align-items:center;gap:var(--sp-3);min-height:var(--ctl);padding:0 var(--sp-6);border:0;border-radius:var(--r-ctl);background:none;box-shadow:inset 0 0 0 1px var(--line-strong);color:var(--fg);cursor:pointer}
.lu-add b{font:var(--t-title)}
.lu-add span{font:var(--t-label)}
.lu-add small{font:var(--t-caption);color:var(--muted)}
.lu-add.away{color:var(--muted)}
.lu-posgrid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:var(--sp-4)}
.lu-posgrid .chip{min-width:0;padding:0}
@media (prefers-reduced-motion:reduce){.dm-key:active{transform:none}}

.chip.sm{min-height:var(--tap-sm);min-width:0;padding:0 var(--sp-7);font-size:var(--fs-14)}
.head-row .chips{flex:none}
#gpLogBox .row{min-height:var(--row-tight)}
#gpLogBox .row .link-btn{flex:none;font-size:var(--fs-14)}
#gpLogBox .row>.sub{flex:none}
/* Home's Last game card. */
/* ---- Videos from families (videos.js): the Add video sheet, the list on a game's page, Line it up ---- */
.vid-game{display:flex;align-items:center;gap:var(--sp-4);padding:var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-6);border-radius:var(--r-ctl);background:var(--bg)}
.vid-game .grow{flex:1;min-width:0}
.vid-game .name,.vid-game .sub{display:block}
.vid-game .name{font-weight:700}
.vid-game .sub{color:var(--muted);font-size:var(--fs-14)}
.vid-choose{position:relative}
.vid-choose:focus-within{outline:2px solid var(--fg);outline-offset:2px}
.vid-files .row{align-items:flex-start;min-height:var(--row)}
.vid-files .row .sub,.vid-row .sub{white-space:normal}
.vid-files .row .name{white-space:normal}
.vmark{flex:none;display:grid;place-items:center;width:24px;height:24px;margin-top:var(--sp-1);border-radius:50%;background:var(--raised);font:700 var(--fs-14)/1 var(--body)}
.vmark.ok{background:var(--good);color:var(--on-good)}
.vmark.warn{background:var(--standby);color:var(--standby-fg)}
.vnote{display:block;font-size:var(--fs-14)}
.vnote.ok{color:var(--good)}
.vnote.warn{color:var(--fg)}
.chip[role="radio"][aria-checked="true"]{background:var(--fg);color:var(--bg)}
.vbadge{flex:none;padding:var(--sp-2) var(--sp-4);border-radius:var(--r-tag);background:var(--raised);color:var(--fg);font:700 var(--fs-12)/1.2 var(--body)}
.vbadge.good{background:var(--good);color:var(--on-good)}
.vbadge.warn{background:var(--standby);color:var(--standby-fg)}
.vbadge.dim{color:var(--muted)}
.vid-row{flex-wrap:wrap;row-gap:var(--sp-2)}
.vid-row .icon-btn{margin:-6px -6px -6px -4px}
.vid-act{flex:1 0 100%;display:flex;gap:var(--sp-4);padding-bottom:var(--sp-2)}
.vid-act .btn{flex:1;padding:0 var(--sp-6)}
.vid-row.dim .grow{opacity:.65}
.vid-bar{height:10px;border-radius:var(--r-pill);background:var(--bg);overflow:hidden}
.vid-bar>span{display:block;height:100%;background:var(--fg);transition:width .2s}
.vid-prog{display:flex;flex-direction:column;gap:var(--sp-4)}
.vf-body{display:flex;flex-direction:column;gap:var(--sp-6)}
.vf-body .notice{margin:0}
.vf-body>*{flex:none}
.vf-video{aspect-ratio:16/9;border-radius:var(--r-card);overflow:hidden;background:var(--video-bg)}
.vf-video video{display:block;width:100%;height:100%}
.vf-pos{margin:0;font-size:var(--fs-14);color:var(--muted)}
.vf-body p{margin:0}
.vf-log{max-height:40dvh;overflow-y:auto}
.vf-log .row{min-height:var(--row-tight)}
.vf-log .row[aria-checked="true"]{background:var(--raised);box-shadow:inset 3px 0 0 var(--fg)}
.vf-result{display:flex;flex-direction:column;gap:var(--sp-6);padding:var(--sp-6);border-radius:var(--r-card);background:var(--surface)}
.vf-nudge{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--sp-3)}
.vf-nudge .btn{padding:0 var(--sp-2)}
.vf-links{display:flex;justify-content:space-between;gap:var(--sp-6)}
.vf-links .link-btn{font-size:var(--fs-14)}

/* ---------- a game's replay with angles (recording.html, replay.js) ---------- */
.lc-s{--lc:var(--accent)}.lc-m{--lc:#9AA7B8}.lc-0{--lc:var(--lc-0)}.lc-1{--lc:var(--lc-1)}.lc-2{--lc:var(--lc-2)}.lc-3{--lc:var(--lc-3)}.lc-4{--lc:var(--lc-4)}
.rp-pill{position:absolute;left:8px;bottom:8px;z-index:2;max-width:55%;padding:3px 8px;border-radius:var(--r-tag);background:var(--veil-75);color:var(--on-video);font:700 var(--fs-12)/1.3 var(--body);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
.rp-pip{position:absolute;right:8px;bottom:8px;z-index:3;display:flex;align-items:flex-end;width:104px;aspect-ratio:16/9;padding:0;border:2px solid var(--on-video);border-radius:var(--r-ctl);overflow:hidden;background:color-mix(in srgb,var(--lc) 30%,#050C17);color:var(--on-video);cursor:pointer}
.rp-pip img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.rp-pip-name{position:relative;max-width:100%;padding:2px 6px;border-radius:0 var(--r-tag) 0 0;background:var(--veil-75);font:600 var(--fs-12)/1.3 var(--body);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rp-gap{position:absolute;inset:0;z-index:4;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:var(--sp-5) 14px;padding:var(--sp-6);background:rgba(5,12,23,.84);color:var(--on-video);font:var(--t-body-strong);text-align:center}
.rp-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2);margin-top:8px}
.rp-row .sq{width:var(--tap);height:var(--ctl);font-size:var(--fs-14)}
.rp-row :is(#rpBack1,#rpFwd1){width:var(--ctl-sm);height:var(--ctl);margin:0 var(--sp-2);border-radius:var(--r-pill);color:#b8c5d9}   /* (x-small steps: 12 px to a neighbour) */
.rp-row :is(.sq,.rp-next){touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.rp-next{flex:1 1 0;min-width:0;min-height:var(--ctl);padding:0 6px;white-space:nowrap;font-size:var(--fs-14)}
@media (max-width:359px){.rp-row{gap:3px}.rp-row .sq{width:38px}}
.rp-now{flex:1 0 100%;min-width:0;text-align:left;font:600 var(--fs-14)/1.25 var(--body);font-variant-numeric:tabular-nums;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rp-chips{display:flex;flex-wrap:wrap;gap:var(--sp-3);margin-top:8px}
.rp-chips .chip{flex:none;min-width:0;padding:0 14px;font-size:var(--fs-14)}
/* an angle with no video at this moment: quiet text, no fill, so it does not look like a choice */
.rp-chips .chip.off,.rp-chips .chip:disabled{background:none;color:var(--muted);font-weight:600;cursor:default}
.rp-hint{margin-top:6px}
.rp-lanes{position:relative;display:flex;flex-direction:column;gap:var(--sp-2);padding:4px 0 6px;cursor:pointer}
.lane{position:relative;height:10px;border-radius:3px;background:var(--hair)}
.lane i{position:absolute;top:0;bottom:0;border-radius:3px;background:var(--lc);opacity:.45}
.lane.on i,.lane i.seg.on{opacity:1}
.lane.packed i.seg{box-shadow:0 0 0 1px var(--bg,#000);cursor:pointer}
.lane.packed i.seg:focus-visible{outline:2px solid var(--fg);outline-offset:1px}
.rp-lanes .ph{position:absolute;top:0;bottom:0;left:0;width:2px;margin-left:-1px;background:var(--fg);pointer-events:none}
#rpPlays .row .pip{margin-right:2px}
/* The squeezed bar of a game's replay: [plays before] [chapters / bar / ticks / lanes] [plays after]. A hidden end takes no room. */
.plane .gapblk{position:absolute;top:22px;height:14px;border-radius:4px;background:repeating-linear-gradient(135deg,var(--line) 0 4px,var(--raised) 4px 8px);pointer-events:none}
.plane .pdot{position:absolute;top:29px;width:8px;height:8px;margin:-4px 0 0 -4px;border-radius:50%;background:var(--fg);box-shadow:0 0 0 2px var(--bg);pointer-events:none}
.bar-ticks{display:flex;justify-content:space-between;gap:var(--sp-3);overflow:hidden;font-size:var(--fs-12);color:var(--muted);white-space:nowrap}
.bar-ticks .gap{color:var(--fg)}
#player.rp.ovl .bar-ticks{display:none}
/* A phone on its side, or full screen: the bar, the controls and the angles lie over the bottom of the picture (the pip goes to the top). */
#player.rp.ovl{position:relative}
#player.rp.ovl #deck{position:absolute;left:0;right:0;bottom:0;z-index:5;margin:0;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:var(--sp-2) var(--sp-4);padding:24px max(var(--gutter),env(safe-area-inset-right)) calc(8px + var(--bottom)) max(var(--gutter),env(safe-area-inset-left));background:linear-gradient(rgba(5,12,23,.5),rgba(5,12,23,.88))}
#player.rp.ovl #timeline{order:-1;flex:0 0 100%;margin:0}
#player.rp.ovl .chapters,#player.rp.ovl .rp-lanes,#player.rp.ovl .legend,#player.rp.ovl .rp-hint{display:none}
#player.rp.ovl .ctl.one,#player.rp.ovl .rp-row{display:contents}
#player.rp.ovl .ctl .clock{flex:1 1 90px}
#player.rp.ovl .rp-row{margin:0}
#player.rp.ovl .rp-now{flex:0 1 auto}
#player.rp.ovl .rp-chips{margin:0 0 0 auto;overflow:visible}
#player.rp.ovl .rp-pip{top:12px;bottom:auto;right:14px;width:168px}
#player.rp.ovl .rp-pill{top:12px;bottom:auto;left:14px}
#player.rp:fullscreen,#player.rp:-webkit-full-screen{display:block}
#player.rp:fullscreen #stage,#player.rp:-webkit-full-screen #stage{height:100%}

/* ---------- the game video strip on a game's page (videos.js) ---------- */
.gs{display:flex;flex-direction:column;gap:var(--sp-3);padding:var(--sp-7);border-radius:var(--r-card);background:var(--surface)}
.gs-ticks{position:relative;height:28px;overflow:hidden}
.gs-tick{position:absolute;top:2px;width:10px;height:24px;margin-left:-5px;border-radius:3px;background:var(--muted)}
.gs-tick.score{background:var(--fg)}
.gs-tick::after{content:"";position:absolute;inset:-10px -17px}
.gs-lane{display:flex;flex-direction:column;gap:var(--sp-1);text-decoration:none;color:var(--fg)}
.gs-lane .sub{font-size:var(--fs-12);color:var(--muted);line-height:1.3}
.gs-bar{position:relative;height:16px;border-radius:4px;background:var(--hair)}
.gs-bar i{position:absolute;top:0;bottom:0;border-radius:4px;background:var(--lc);box-shadow:0 0 0 1px var(--bg,#000)}
.gs-axis{position:relative;height:18px;font-size:var(--fs-12);color:var(--muted)}
.gs-axis span{position:absolute;top:0}

/* ---------- Coaches Corner (coach.html; coach.js, coachtimeline.js, coachsave.js) ---------- */
/* The Studio: the video, its controls and the timeline on the left; the clips and the editor on the right (360 to 400 px) from 900 px wide.
   Under that it is one column, and the clip editor is a sheet that leaves the picture showing. */
.co-head{gap:var(--sp-4)}
.co-head .btn{min-height:var(--tap);padding:0 var(--sp-6);font-size:var(--fs-14)}
.co-titles{flex:1;min-width:0;display:flex;flex-direction:column}
.co-titles .title{padding:0 var(--sp-4)}
.co-titles .small{padding:0 var(--sp-4);line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.co-save{display:flex;align-items:center;gap:var(--sp-4);font:var(--t-label);color:var(--good);white-space:nowrap}
.co-save i{width:8px;height:8px;border-radius:50%;background:currentColor;flex:none}
.co-save[data-state="saving"]{color:var(--muted)}
.co-save[data-state="offline"]{color:#FFD08A}
kbd{display:inline-block;padding:1px var(--sp-3);border-radius:4px;background:rgba(184,197,217,.16);color:inherit;font:600 var(--fs-12)/1.4 ui-monospace,Consolas,monospace}
.co-recover{display:flex;flex-direction:column;gap:var(--sp-4);margin:var(--sp-4) var(--gutter);padding:var(--sp-6);border-radius:var(--r-card);background:#3A2A10;color:#FFE2B3}
.co-recover b{font:var(--t-body-strong)}
.co-recover span{font-size:var(--fs-14)}
.co-recover .btn{min-height:var(--tap)}
.co-recover .btn:not(.primary){background:rgba(255,226,179,.14);color:inherit}
.co-main{display:flex;flex-direction:column;gap:var(--sp-6);padding:var(--sp-4) var(--gutter) var(--sp-8);min-width:0}
.co-top{position:sticky;top:calc(var(--header-h) + var(--top));z-index:10;background:var(--bg);padding-bottom:var(--sp-1)}
.co-stage{border-radius:var(--r-card);max-height:none}
.co-badge{position:absolute;z-index:2;padding:var(--sp-2) var(--sp-4);border-radius:var(--r-tag);background:var(--veil-75);color:var(--on-video);font:var(--t-label-strong);font-variant-numeric:tabular-nums}
.co-badge.clock{left:10px;top:10px}
.co-badge.new{right:10px;top:10px;background:var(--accent);color:var(--accent-fg)}
.co-stage .rp-pill{left:10px;bottom:10px}
.co-ctl{display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-4)}
.co-ctl .btn{min-height:var(--tap-lg);padding:0 var(--sp-6);font-size:var(--fs-14)}
.co-play{width:var(--tap-lg);height:var(--tap-lg);flex:none;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:var(--accent);color:var(--accent-fg);cursor:pointer}
.co-clock{margin-left:auto;font:var(--t-label);font-variant-numeric:tabular-nums;color:var(--muted);white-space:nowrap}
.co-seg{display:flex;gap:var(--sp-2);flex-wrap:wrap}
.co-pill{min-height:var(--tap);min-width:var(--tap);padding:0 var(--sp-6);border:0;border-radius:var(--r-ctl);background:var(--raised);color:var(--fg);font:var(--t-label);cursor:pointer}
.co-pill[aria-checked="true"],.co-pill[aria-selected="true"]{background:var(--fg);color:var(--bg)}
.co-pill:disabled,.co-pill.off{background:none;color:var(--muted);font-weight:600;cursor:default}
.co-marks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-4)}
.co-marks .btn{min-height:var(--tap);padding:0 var(--sp-6);font-size:var(--fs-14)}
.co-marks .btn.primary{grid-column:1/-1}
.co-hint{grid-column:1/-1;color:var(--muted);font-size:var(--fs-14)}
.co-angles{display:flex;align-items:center;gap:var(--sp-3);flex-wrap:wrap}
.co-time{display:flex;flex-direction:column;gap:var(--sp-3);padding:var(--sp-6) var(--sp-6);border-radius:var(--r-card);background:var(--surface)}
.co-time-head{display:flex;align-items:center;gap:var(--sp-4);flex-wrap:wrap}
.co-time-head b{font:var(--t-label-strong)}
.co-time-head .muted{font-size:var(--fs-12)}
.co-time-head .co-seg{margin-left:auto}
.co-tl{position:relative;user-select:none;-webkit-user-select:none}
.co-dots{position:relative;height:28px}
.co-dots .mk{top:0}
.co-dots .mk.flag{color:var(--info)}
.co-dots .tick{position:absolute;bottom:0;width:2px;height:8px;margin-left:-1px;border-radius:1px;background:var(--muted);opacity:.7}
.co-dots .tick.score{height:14px;background:var(--accent);opacity:.9}
.co-dots .tick.us{background:var(--tick-us)}
.co-dots .tick.them{background:var(--tick-them)}
.co-bar{position:relative;height:48px;border-radius:var(--r-tag);background:rgba(184,197,217,.08);cursor:pointer;touch-action:none}
.co-bar .cover{position:absolute;left:0;right:0;bottom:0;height:4px;pointer-events:none}
.co-bar .cover i{position:absolute;top:0;bottom:0;border-radius:2px;background:var(--accent);opacity:.45}
.co-clip{position:absolute;min-width:8px;padding:0;border:0;border-radius:4px;background:var(--info);cursor:pointer}
.co-clip.on{background:var(--on-video)}
.co-clip.mine-not{background:#8FB9E8}
.co-sel{position:absolute;top:3px;bottom:3px;min-width:6px;border-radius:4px;background:rgba(255,199,44,.35);box-shadow:var(--ring);pointer-events:none}
.co-h{position:absolute;top:-6px;bottom:-6px;width:24px;margin-left:-12px;padding:0;border:0;background:none;cursor:ew-resize;touch-action:none;z-index:4}
.co-h::before{content:"";position:absolute;left:7px;right:7px;top:2px;bottom:2px;border-radius:4px;background:var(--accent)}
.co-head-line{position:absolute;top:-6px;bottom:-6px;width:2px;margin-left:-1px;background:var(--on-video);pointer-events:none;z-index:5}
.co-axis{position:relative;height:18px;font-size:var(--fs-12);color:var(--muted)}
.co-axis span{position:absolute;top:0;transform:translateX(-50%);white-space:nowrap}
.co-axis span.first{transform:none}
.co-axis span.last{transform:translateX(-100%)}
.co-keys{display:flex;flex-wrap:wrap;gap:var(--sp-3) var(--sp-6);color:var(--muted);font-size:var(--fs-12)}
.co-side{display:flex;flex-direction:column;gap:var(--sp-6);padding:0 var(--gutter) var(--sp-8);min-width:0}
.co-list{display:flex;flex-direction:column;gap:var(--sp-3);min-height:0}
.co-row{display:flex;align-items:center;gap:var(--sp-4);width:100%;min-height:var(--row);padding:var(--sp-4) var(--sp-6);border:0;border-radius:var(--r-ctl);background:var(--surface);color:var(--fg);font:inherit;text-align:left;cursor:pointer}
.co-row.on{background:var(--raised);box-shadow:var(--ring-fg)}
.co-row.fresh{background:var(--raised)}
.co-row .grow{flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--sp-1)}
.co-row .name{font:var(--t-label-strong);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.co-row .sub{font-size:var(--fs-14);color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.co-row svg{flex:none;width:20px;height:20px;fill:none;stroke:var(--info);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.co-bm{display:flex;align-items:center;gap:var(--sp-3)}
.co-bm .co-row{flex:1;min-width:0}
.co-bm .btn{min-height:var(--tap);padding:0 var(--sp-6);font-size:var(--fs-14)}
.co-bm .sq{width:var(--tap);height:var(--tap)}
.co-editor{display:flex;flex-direction:column;gap:var(--sp-6);padding:var(--sp-6);border-radius:var(--r-card);background:var(--surface)}
.co-editor .field label,.co-editor .label{font-size:var(--fs-14)}
.co-editor .input{min-height:var(--tap);padding:var(--sp-4) var(--sp-6);font-size:var(--fs-14)}
/* iOS zooms the page into any field under 16 px when it gets focus, so on a touch screen the editor's fields are 16 px. */
@media (pointer:coarse){.co-editor .input{font-size:var(--fs-16)}}
.co-editor textarea.input{min-height:72px;resize:none}
.co-time-row{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:var(--sp-3);align-items:center}
.co-time-row .sq{width:var(--tap);height:var(--tap);font-size:var(--fs-14)}
.co-edit-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-4)}
.co-edit-actions[hidden]{display:none}
#edClipActions{grid-template-columns:repeat(2,minmax(0,1fr))}
#edClipActions .danger{grid-column:1/-1}
.co-editor .btn{min-height:var(--tap);padding:0 var(--sp-6);font-size:var(--fs-14)}
.co-editor .link-btn{font-size:var(--fs-14)}
.co-err{color:var(--danger);font-size:var(--fs-14)}
.co-empty{padding:var(--sp-9) var(--sp-7);border-radius:var(--r-card);background:var(--surface);color:var(--muted);text-align:center;font-size:var(--fs-14)}
.co-editor .co-empty{padding:var(--sp-6) var(--sp-4);background:none}
.co-wait{display:flex;flex-direction:column;align-items:stretch;gap:var(--sp-6);padding:48px var(--gutter);max-width:560px;margin:0 auto}
@media (max-width:899px){
  #editSheet.scrim{top:var(--co-top,300px);background:rgba(0,0,0,.35)}
  #editSheet .sheet{max-height:100%}
  .co-keys,.co-seg-frames{display:none}
  .co-clock{margin-left:0;flex-basis:100%;order:9}
}
@media (min-width:900px){
  body.coach{height:100dvh;overflow:hidden;display:flex;flex-direction:column}
  .co{flex:1;min-height:0;display:flex}
  .co-main{flex:1;min-height:0;padding:var(--sp-7) var(--sp-7) var(--sp-6) var(--sp-9)}
  .co-top{position:static;flex:1;min-height:0;display:flex;padding:0}
  .co-stage{flex:1;aspect-ratio:auto;height:auto;min-height:0}
  .co-marks{grid-template-columns:auto auto auto auto 1fr;align-items:center}
  .co-marks .btn.primary{grid-column:auto}
  .co-hint{grid-column:auto;padding-left:var(--sp-4)}
  .co-side{width:clamp(360px,28vw,400px);flex:none;padding:var(--sp-6) var(--sp-7) var(--sp-6);overflow:hidden;background:var(--bg);box-shadow:inset 1px 0 0 var(--hair)}
  .co-list{flex:1;overflow:auto}
  .co-editor{flex:none;max-height:58%;overflow:auto}
  #edDone{display:none}
  #editSheet{display:none!important}
}
@media (min-width:900px) and (max-height:820px){.co-keys{display:none}}

.co-editor .field.co-t{flex-direction:row;align-items:center;gap:var(--sp-4)}
.co-editor .field.co-t label{flex:none;width:44px}
.co-editor .field.co-t .co-time-row{flex:1;min-width:0}
@media (max-width:640px){.co-lbl{display:none}}
@media (min-width:900px){
  .co-side{overflow:auto}
  .co-list{flex:1 0 132px}
  .co-editor{max-height:none}
  .co-editor textarea.input{min-height:56px}
}

.co-angle-row{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-4);flex-wrap:wrap}
.co-angle-row .link-btn{min-height:var(--tap)}
@media (min-width:900px){
  #edClipActions{grid-template-columns:repeat(3,minmax(0,1fr))}
  #edClipActions .danger{grid-column:auto}
  #edClipActions .btn{padding:0 var(--sp-3)}
}

/* ---------- Still scoring? / ended automatically / stream time limit ---------- */
.sb-log .row.sys .name,.sb-log .row.sys .pip{color:var(--muted)}
.gp-auto,.gl-auto{color:var(--muted)}
.limit-seg{margin:0}
/* The streaming phone (broadcast.html): when it stops, and the note before. */
.cast-hud.hud-note{left:50%;right:auto;transform:translateX(-50%);top:calc(56px + var(--top));max-width:min(560px,calc(100% - 32px));text-align:center;font-size:var(--fs-14)}
.cast-hud .stop-at{padding:var(--sp-1) var(--sp-4);border-radius:var(--r-tag);background:var(--veil-75);font-size:var(--fs-12);font-weight:600}

/* ---------- team management: requesting a team, Go live on game day, restream destinations, Players / All others ---------- */
.team-req{flex-direction:column;align-items:stretch;gap:var(--sp-6);margin-top:var(--sp-6)}
.team-req .grow{display:flex;flex-direction:column;gap:var(--sp-1)}
.team-req .sheet-actions{margin-top:0}
#teamReqBox .list{margin-top:var(--sp-6)}
.row-pair .score-btn{min-height:var(--tap)}
.row-pair.acts{flex-wrap:wrap}
.row-pair .up-acts{flex:0 0 100%;display:flex;gap:var(--sp-4);padding:0 var(--sp-6) var(--sp-6)}
.row-pair .up-acts .btn{flex:1;min-width:0;margin-right:0}
.hero .sheet-actions .score-btn,#schedBody .sheet-actions .score-btn{min-height:var(--tap)}
.roster-head{flex-wrap:wrap}
.roster-head .vseg{flex:1 1 200px;margin:var(--sp-6) 0}
#othersList .label{display:block;margin-top:var(--sp-7)}
#othersList .label:first-child{margin-top:0}
#othersList>.muted{margin:var(--sp-3) var(--sp-2) 0}
.dest-body>.label{display:block}
.dest-body .form{display:flex;flex-direction:column;gap:var(--sp-6)}
/* ---------- wide layouts (a tablet or a desktop; a phone, even on its side, keeps the layouts above) ----------
   Portrait tablet 768-1023 px: the picture across, the controls as a grid, then two columns. Landscape tablet and desktop (1024 px and up):
   the picture and its controls on the left, a rail of 360-400 px on the right, and the page itself does not scroll.
   The rules wait for 501 px of height so that a phone on its side keeps its own layout. */
#controls>.pad{margin-top:var(--sp-6)}
.rpage #title{flex:1}
.hd-text,.hd-acts{display:contents}
.lbl,.rail-h{display:none}
@media (min-width:768px) and (min-height:501px){
  .top{padding-left:max(16px,calc((100% - 1600px)/2 + 16px));padding-right:max(16px,calc((100% - 1600px)/2 + 16px))}
  /* The replay: a header with the title, its line and the menu; no tab bar */
  .rpage .tabs{display:none}
  .rpage .view{max-width:1600px;padding-bottom:24px}
  .rpage .top{min-height:calc(var(--header-h) + var(--top) + 8px)}
  .rpage .hd-text{display:flex;flex-direction:column;flex:1;min-width:0;justify-content:center}
  .rpage #title{flex:none;padding:0 8px}
  .rpage #topInfo{margin:0;padding:0 8px}
  .rpage #partLine{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .rpage .hd-acts{display:flex;align-items:center;gap:var(--sp-4);flex:none}
  .rpage #stage{border-radius:var(--r-card);max-height:none}
  .rpage #player:fullscreen #stage,.rpage #player:-webkit-full-screen #stage{border-radius:0}
  .rpage #deck{padding:0;margin-top:12px}
  .rpage #timeline{margin:0}
  .rpage .mcard .mc-act{flex-wrap:wrap}
  .rpage .mcard .mc-act .btn{flex:1 1 auto}
  .rpage #rpPlaysBox{display:flex;flex-direction:column;gap:var(--sp-4)}
}
/* Landscape tablet and desktop */
@media (min-width:1024px) and (min-height:501px){
  body.rpage{height:100dvh;overflow:hidden;display:flex;flex-direction:column}
  .rpage .view{flex:1;min-height:0;width:100%;padding:16px 24px 20px;display:grid;grid-template-columns:minmax(0,1fr) clamp(360px,28vw,400px);grid-template-rows:minmax(0,1fr) auto;column-gap:20px}
  .rpage #player{grid-column:1;grid-row:1;min-height:0;display:flex;flex-direction:column}
  .rpage #stage{flex:1 1 0;min-height:200px;aspect-ratio:auto;height:auto}
  .rpage #controls{grid-column:2;grid-row:1;min-height:0;display:flex;flex-direction:column}
  .rpage #controls>.pad{flex:1;min-height:0;margin:0;padding:0;gap:var(--sp-6)}
  .rpage #markerCard{flex:none;max-height:55%;overflow:auto}
  .rpage #saveClip{flex:none}
  .rpage #rpPlaysBox{flex:1;min-height:0}
  .rpage #rpPlays{flex:1;min-height:0;overflow:auto}
  .rpage .view>.pad{grid-column:1/-1;grid-row:2;padding:0}
  .rpage #rpEmpty{grid-row:1}
}
/* Portrait tablet */
@media (min-width:768px) and (max-width:1023px) and (min-height:501px){
  .rpage .view{padding:0 20px 24px}
  .rpage #stage{margin-top:4px}
  /* Plays on the left, the play's card on the right */
  .rpage #controls>.pad{margin-top:16px;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-4) var(--sp-6);align-items:start;grid-template-rows:auto auto 1fr}
  .rpage #rpPlaysBox{grid-column:1;grid-row:1/span 3}
  .rpage #thisPlayH{display:block;grid-column:2;grid-row:1}
  .rpage #markerCard{grid-column:2;grid-row:2}
  .rpage #saveClip{grid-column:2;grid-row:3}
  .rpage #rpPlays{max-height:min(60dvh,520px);overflow:auto}
  .rpage #controls>.pad:has(#rpPlaysBox[hidden]){grid-template-columns:minmax(0,1fr)}
  .rpage #controls>.pad:has(#rpPlaysBox[hidden]) #thisPlayH,.rpage #controls>.pad:has(#rpPlaysBox[hidden]) #markerCard,.rpage #controls>.pad:has(#rpPlaysBox[hidden]) #saveClip{grid-column:1}
}
/* ---------- the watch screen on a tablet or a desktop (index.html, watchrail.js) ---------- */
.wv-main{display:contents}
.lb-l,.strip .wv-cam,.live-for{display:none}
/* A phone (or a phone on its side): the panel under the picture, with the plays, the viewer's marks and the team's messages; the game card,
   the log, the answer buttons and what is coming up are for a wider screen (the phone has them on Home) */
@media not all and (min-width:768px) and (min-height:501px){
  .wv-rail{display:flex;flex-direction:column;gap:var(--sp-6);margin-top:var(--sp-7);padding:0 var(--gutter)}
  .wv-rail>.wv-game,.wv-rail>.wv-logbox,.wv-rail>.wv-rsvp,.wv-rail>.wv-last,.wv-rail>.wv-soon{display:none}
  .wv-plays{display:flex;flex-direction:column;gap:var(--sp-4);order:1}   /* (the one-line parts first, the long list last) */
  .wv-plays>.link-btn{align-self:flex-start}
  .wv-plays .wv-t{font:700 var(--fs-20)/1.2 var(--body)}
  .wv-marks{display:flex;align-items:center;gap:var(--sp-4);min-height:var(--row);padding:0;border-top:1px solid var(--hair);border-bottom:1px solid var(--hair)}
}
@media (min-width:768px) and (min-height:501px){.wv-plays{display:none}}
/* Mark play says Mark from 390 px down and Mark play above (.lb-s / .lb-l); the strip's tiles always use the short label (.lb-s, "Score a game"). */
@media (min-width:390px){.lb-s{display:none}.lb-l{display:inline}}
/* The strip's secondary actions (Score a game, Go live, Camera link, Full screen) are tiles: a 24 px icon over a small label that wraps under its icon,
   about 60 px tall, card radius, raised. Mark play (the gold pill), the Standby badge and the viewers link are not tiles. The row layout is below. */
.strip .tile{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--sp-2);box-sizing:border-box;min-height:60px;padding:var(--sp-4) var(--sp-3);border:0;border-radius:var(--r-card);background:var(--tile-bg,var(--raised));color:var(--fg);font:var(--t-caption-strong);line-height:1.15;text-align:center;text-decoration:none;white-space:normal}
.strip .tile .icon{width:24px;height:24px;color:var(--tile-icon,currentColor)}
.strip .tile .lb-s{display:inline}.strip .tile .lb-l{display:none}
/* Go live is a raised tile with a red camera at every width, not a red fill: red fill on the page means live now (the LIVE badge) or danger,
   and Mark play is the strip's one loud button (owner, Nov 7). */
.strip .go-live{--tile-icon:var(--live-text)}
.lv-actions #stripBadge{align-self:center}
@media (min-width:768px) and (min-height:501px){
  .watching:not(.rpage) .view{max-width:1600px;padding-bottom:calc(var(--tabs-h) + var(--bottom) + var(--sp-8))}
  .lb-s{display:none}.lb-l{display:inline}
  .strip .wv-cam{display:inline-flex}
  .live-for{display:inline}
  .wv-main{display:flex;flex-direction:column;gap:var(--sp-6);min-width:0}
  .wv-main .pad{padding:0}
  .wv-main .section{margin-top:0}
  .wv-main #stage{border-radius:var(--r-card)}
  .wv-main #stage.theater,.wv-main #stage:fullscreen,.wv-main #stage:-webkit-full-screen{border-radius:0}
  #nowGame{display:none}
  .wv-main .notice,.wv-main .error-box{margin:0}
  /* LIVE or Standby, who is watching, then the buttons */
  .strip{border:0;padding:0;min-height:0;gap:var(--sp-4) var(--sp-4);justify-content:flex-start}
  .strip .link-btn:not(.tile),.strip .btn:not(.tile){min-height:var(--tap);padding:0 var(--sp-7);border-radius:var(--r-btn);background:var(--raised);text-decoration:none}
  .strip .link-btn:not(.tile){gap:var(--sp-4)}
  .strip .tile{flex:0 0 auto;min-width:76px;padding:var(--sp-4) var(--sp-6)}
  .strip #viewersBtn{padding:0;background:none;min-height:var(--tap)}
  .strip .mark-btn{margin-left:0}
  .strip .btn.mark-btn{background:var(--accent);color:var(--accent-fg)}   /* (.btn.mark-btn: as specific as the pill rule above, which excludes tiles) */
  .strip .mark-btn .icon{width:20px;height:20px}
  .strip #stripBadge:empty{display:none}
  .strip #viewersBtn{order:2}.strip #liveFor{order:3;margin-right:auto}
  .strip #stripBadge{order:1}
  .strip #goLive{order:10}.strip #markBtn{order:11}.strip #scoreBtn{order:12}.strip #camBtn{order:13}.strip #fsBtn{order:14}.strip #tvRow{order:15}
  #tvRow{display:contents}
  #tvRow .sheet-actions{display:contents}
  #tvRow .btn{flex:none;min-height:var(--tap);padding:0 var(--sp-7);border-radius:var(--r-btn);background:var(--raised)}
  #tvRow #liveAirplay{order:15}#tvRow #liveCast{order:16}#tvRow #liveBack{order:17}
  #tvNote{order:20;flex:0 0 100%}
  .wv-rail{display:flex;flex-direction:column;gap:var(--sp-6);min-width:0}
  .wv-rail .hero .game-title{font-size:var(--fs-28)}
  .wv-t{font:700 var(--fs-20)/1.2 var(--body)}
  .wv-last{display:flex;flex-direction:column;gap:var(--sp-4);padding:var(--sp-7);border-radius:var(--r-card);background:var(--surface)}
  .wv-last .sheet-actions{margin:0}
  .wv-last .sheet-actions .btn{flex:0 1 auto}
  .wv-logbox{display:flex;flex-direction:column;gap:var(--sp-4);min-height:0}
  .wv-logscroll{background:var(--surface);border-radius:var(--r-card);overflow:auto;min-height:0}
  .wv-logscroll>.list{border-radius:0}
  .wv-logscroll>p{padding:var(--sp-6) var(--sp-7)}
  .wv-marks{display:flex;align-items:center;gap:var(--sp-4);padding:var(--sp-6) var(--sp-7);border-radius:var(--r-card);background:var(--surface)}
  .wv-soon .list .row{min-height:var(--row)}
  .wv-soon{display:flex;flex-direction:column;gap:var(--sp-4)}
}
/* Landscape tablet and desktop: the picture on the left, a rail of 360-400 px on the right; the page does not scroll */
@media (min-width:1024px) and (min-height:501px){
  .watching:not(.rpage){height:100dvh;overflow:hidden;display:flex;flex-direction:column}
  .watching:not(.rpage) .view{flex:1;min-height:0;width:100%;padding:var(--sp-7) var(--sp-8) calc(var(--tabs-h) + var(--bottom) + var(--sp-9))}
  #watchView:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr) clamp(360px,28vw,400px);column-gap:var(--sp-9);height:100%;min-height:0}
  .wv-main{min-height:0;overflow-y:auto}
  .wv-main>:not(#stage){flex-shrink:0}   /* (only the picture gives way on a short window: a squeezed row of buttons spilled under the next one; what does not fit scrolls) */
  #watchAll{grid-column:1/-1}
  .wv-main #stage{flex:1 1 0;min-height:200px;aspect-ratio:auto;max-height:none}
  .wv-rail{min-height:0;overflow:auto}
  .wv-logbox{flex:1 1 0;min-height:140px}
  .wv-logscroll{flex:1}
  .wv-soon{display:none}
}
/* Portrait tablet: the picture across, the buttons as an equal grid, then the game and the log (or what is coming up) in two columns */
@media (min-width:768px) and (max-width:1023px) and (min-height:501px){
  .watching:not(.rpage) .view{padding:0 var(--sp-9) calc(var(--tabs-h) + var(--bottom) + var(--sp-8));max-width:none}
  .strip::before{content:"";flex:0 0 100%;order:5;height:0;margin:-4px 0}
  .strip>.btn:not(.tile),.strip>.link-btn:not(#viewersBtn):not(.tile),.strip #tvRow .btn{flex:1 1 150px;justify-content:center}
  .wv-main{padding-top:var(--sp-2)}
  .wv-rail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-6);align-items:start;margin-top:var(--sp-7)}
  .wv-rail>*{grid-column:1}
  .wv-logbox,.wv-soon{grid-column:2;grid-row:1/span 4}
  .wv-logscroll{max-height:min(55dvh,520px)}
}
/* === overnight-B === */
.tl-item.day{flex-wrap:wrap}
.tl-actions{flex:0 0 100%;display:flex;flex-wrap:wrap;gap:var(--sp-4);padding:0 0 var(--sp-6)}
.tl-actions .score-btn{flex:1 1 130px;justify-content:center}
/* === overnight-C === */
.vid-timing{margin:0;padding:0 0 0 var(--sp-7);display:grid;gap:var(--sp-4);font-size:var(--fs-14);line-height:1.35}
.vid-timing li{overflow-wrap:anywhere}

/* === overnight-D === */
/* Polls and GIFs in a team chat. */
.chat-composer .icon-btn.chat-gif-btn{width:var(--tap);padding:0;font:var(--t-label-strong)}
.chat-composer .icon-btn.chat-gif-btn[hidden]{display:none}
.chat-poll .chat-ev-label{color:var(--fg)}
.chat-poll-q{font-weight:700;font-size:var(--fs-16);padding-right:var(--sp-4)}
.chat-poll-meta{color:var(--muted);font-size:var(--fs-14);padding-right:var(--sp-4)}
.chat-poll-opts{display:flex;flex-direction:column;gap:var(--sp-3);margin:var(--sp-3) var(--sp-4) var(--sp-2) 0}
.poll-row{display:flex;align-items:stretch;gap:var(--sp-3)}
.poll-opt{position:relative;flex:1;min-width:0;display:flex;align-items:center;gap:var(--sp-4);min-height:var(--tap);padding:0 var(--sp-6);overflow:hidden;border:0;border-radius:var(--r-ctl);background:var(--raised);color:var(--fg);font:inherit;font-size:var(--fs-16);text-align:left;cursor:pointer}
.poll-opt[aria-disabled="true"]{cursor:default}
.poll-opt:focus-visible,.poll-who:focus-visible,.poll-x:focus-visible,.gif-item:focus-visible,.gif-play:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.poll-bar{position:absolute;left:0;top:0;bottom:0;background:var(--line);opacity:.7;transition:width .25s}
.poll-row.on .poll-bar{opacity:1}
.poll-row.on .poll-opt{box-shadow:var(--ring-fg)}
.poll-mark{position:relative;flex:none;width:16px;font-weight:800;color:var(--fg)}
.poll-text{position:relative;flex:1;min-width:0;overflow-wrap:anywhere}
.poll-num{position:relative;flex:none;color:var(--muted);font-size:var(--fs-14);font-variant-numeric:tabular-nums}
.poll-who{flex:none;min-width:var(--tap);min-height:var(--tap);padding:0 var(--sp-3);border:0;border-radius:var(--r-ctl);background:none;color:var(--fg);font:var(--t-label-strong);text-decoration:underline;cursor:pointer}
.chat-poll-foot{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-4);flex-wrap:wrap;padding-right:var(--sp-4);color:var(--muted);font-size:var(--fs-14)}
.chat-poll-acts{display:flex;gap:var(--sp-4);flex-wrap:wrap}
.poll-names{margin:0;padding:0 0 0 var(--sp-9);display:grid;gap:var(--sp-3)}
.poll-edit{display:flex;flex-direction:column;gap:var(--sp-4);margin-bottom:var(--sp-4)}
.poll-edit-row{display:flex;gap:var(--sp-4)}
.poll-x{flex:none;width:var(--tap);border:0;border-radius:var(--r-ctl);background:var(--raised);color:var(--fg);font:700 var(--fs-20) var(--body);cursor:pointer}
.poll-x[hidden]{display:none}
.gif-sheet .sheet{min-height:min(70dvh,560px)}
.gif-grid{columns:2;column-gap:var(--sp-4)}
.gif-item{display:block;width:100%;margin:0 0 var(--sp-4);padding:0;border:0;border-radius:var(--r-ctl);overflow:hidden;background:var(--raised);cursor:pointer;break-inside:avoid}
.gif-item img{display:block;width:100%;height:auto}
.gif-tile{position:relative;break-inside:avoid;margin:0 0 var(--sp-4);border-radius:var(--r-ctl)}
.gif-tile .gif-item{margin:0;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
.gif-tile img,.gif-live{-webkit-user-drag:none;-webkit-touch-callout:none;pointer-events:none}
.gif-live{display:block;width:100%;height:auto;object-fit:cover}
.gif-tile.playing{box-shadow:0 0 0 3px var(--accent)}
.gif-cue{position:absolute;left:6px;bottom:6px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--glass-navy);border:2px solid var(--white);color:var(--white);pointer-events:none}
.gif-tile.playing .gif-cue{display:none}
.gif-send{position:absolute;right:0;top:0;display:grid;place-items:center;width:var(--tap);height:var(--tap);padding:0;border:0;background:none;color:var(--white);cursor:pointer}
.gif-send::before{content:"";position:absolute;width:32px;height:32px;border-radius:50%;background:var(--glass-navy);border:2px solid var(--white)}
.gif-send svg{position:relative}
.gif-send:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}
.gif-pv{position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;padding:var(--gutter);background:var(--scrim)}
.gif-pv-box{width:min(420px,100%);max-height:100%;overflow:auto;padding:var(--sp-4);border-radius:var(--r-ctl);background:var(--surface);color:var(--fg)}
.gif-pv-media{display:block;width:100%;max-height:60dvh;height:auto;object-fit:contain;border-radius:var(--r-ctl);background:var(--video-bg)}
.gif-grid[aria-busy="true"]{opacity:.5;pointer-events:none}
.gif-by{margin:0;text-align:center}
.chat-gif{padding:var(--sp-2)}
.mine .chat-bubble.chat-gif{background:var(--mine)}
.mine .chat-gif-by{color:var(--fg)}
.gif-frame{position:relative;width:min(240px,64vw);border-radius:var(--r-card);overflow:hidden;background:var(--bg)}
.gif-media{display:block;width:100%;height:100%;object-fit:cover}
.gif-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);min-width:var(--tap);min-height:var(--tap);padding:0 var(--sp-7);border:0;border-radius:var(--r-pill);background:rgba(0,0,0,.7);color:var(--on-video);font:var(--t-label-strong);cursor:pointer}
.chat-gif-by{padding:var(--sp-1) var(--sp-2) 0;color:var(--muted);font-size:var(--fs-12)}
/* On a narrow screen Poll and GIF fold into one + button with a small menu. */
.chat-composer .chat-plus-btn{display:none}

/* === overnight-A === */
/* ---------- the scoreboard on the picture: tighter, bottom edge, the viewer's to move ---------- */
.sov-t{padding:0 .5em;letter-spacing:.05em}
.sov-n{min-width:1.15em;padding:0 .28em;font-size:1.7em}
.sov-p{min-width:0;padding:0 .45em}
.sov-call{padding:.25em .7em}
/* Bottom centre is the bottom: about 1% above the edge, rising by --sov-lift only while a control bar lies over the picture. */
.sov.at-bottom{bottom:calc(1% + var(--sov-lift,0px));transition:bottom .15s}
.sov-fit .sov-bw{pointer-events:auto;touch-action:none;cursor:grab}
.sov-fit .sov-bw:active{cursor:grabbing}
.sov-fit.sov-off{display:none}
.sbv-tools{position:absolute;top:44px;right:8px;z-index:3;display:flex;gap:var(--sp-3);pointer-events:none}
.sbv-btn{pointer-events:auto}
.sbv-btn[hidden]{display:none}
.sbv-btn .slash{display:none}
.sbv-btn[aria-pressed="true"] .slash{display:inline}
.stage.theater .sbv-tools,.stage:fullscreen .sbv-tools{top:calc(8px + var(--top));right:calc(16px + var(--tap))}
.sov.placed{left:var(--lx)}
.sov.placed.pa-t{top:var(--ty);bottom:auto;flex-direction:column}
.sov.placed.pa-b{top:auto;bottom:var(--by);flex-direction:column-reverse}
.sov.placed.pa-b.low{bottom:calc(var(--by) + var(--sov-lift,0px))}
@media (prefers-reduced-motion:reduce){.sov.at-bottom{transition:none}.sov-call,.sov.at-bottom .sov-call{animation:none}}
/* ---------- the replay: hide or show the controls, the phone on its side ---------- */
.rpage .stage .rp-pill{top:8px;bottom:auto}
.rpage .stage .rp-pip{top:8px;bottom:auto}
.plane .gapblk{pointer-events:auto}
.rp-tools{display:flex;flex-wrap:wrap;gap:var(--sp-4);margin-top:8px}
.rp-tool{flex:0 1 auto;min-height:var(--tap);padding:0 14px;font-size:var(--fs-14)}
/* "Share link to now": the two moments to pick from, the link, and on a page opened from one the banner, the tick on the bar and the way back. */
.share-when{display:flex;gap:var(--sp-4);margin-top:10px}
.share-when .btn{flex:1 1 0;min-width:0;padding:6px 10px;font-size:var(--fs-14);text-align:center}
.share-when .btn[aria-checked="true"]{background:var(--fg);color:var(--bg)}   /* a radio pill like .chip[aria-pressed]: Copy link is the sheet's one gold */
.share-url{display:block;margin-top:10px;padding:var(--sp-6);border-radius:var(--r-ctl);background:var(--surface);font:var(--fs-14)/1.4 monospace;word-break:break-all;user-select:all}
.shared-box{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-4) var(--sp-5);margin:8px 0 0}
.shared-text{flex:1 1 140px;min-width:0}
.shared-tick{position:absolute;top:calc(50% - 10px);height:20px;width:2px;margin-left:-1px;background:var(--accent);pointer-events:none}
.shared-tick::before{content:"";position:absolute;top:-3px;left:-3px;width:8px;height:6px;border-radius:2px;background:var(--accent)}
/* Controls hidden: the timeline stays; the transport, speed, angles, plays and card go (not while full screen, which needs its own buttons). */
body.ctl-off:not(.rland) #player:not(.ovl):not(.theater):not(:fullscreen) :is(.ctl.one>:not(.rp-more),.rp-row,.rp-chips,.rp-hint){display:none!important}   /* (the "···" button stays: it brings them back) */
body.ctl-off:not(.rland) #controls{display:none!important}
@media (min-width:1024px) and (min-height:501px){
  body.rpage.ctl-off:not(.rland) .view{grid-template-columns:minmax(0,1fr)}
  /* "Share link to now" sits with full screen; a shared moment's banner is a row of its own under the bar */
}
@media (min-width:768px) and (max-width:1023px) and (min-height:501px){
}
/* A phone on its side: the picture has the whole screen; the timeline is a thin strip on it, with the plays at its ends; a floating
   Controls button opens the rest (the transport, angles, scoreboard buttons and the plays) over the picture. */
body.rland.rpage .view{padding:0;max-width:none}
body.rland #stage{height:100dvh;max-height:none;aspect-ratio:auto;margin:0;border-radius:0}
body.rland #player{position:relative}
body.rland.rpage .stage .rp-pip{top:max(8px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));width:132px}
body.rland.rpage .stage .rp-pill{top:8px;left:max(10px,env(safe-area-inset-left))}
html.viewing-as body.rland.rpage .stage :is(.rp-pip,.rp-pill){top:calc(var(--vb-h) + 8px)}   /* (View as: the picture fills the screen on its side, so what sits at its top corners clears the bar) */
body.rland .rp-lanes,body.rland .legend,body.rland .rp-hint{display:none}
body.rland #controls{display:none}

/* FE-2: the replay page: marks on the bar, the handle, crowd noise, filters, the result chip, the clip sheet's result line */
.plane .pdot.score{width:14px;height:14px;margin:-7px 0 0 -7px}
.plane .pdot.score.us{background:var(--good)}
.plane .pdot.score.them{border-radius:3px;background:var(--bg);box-shadow:inset 0 0 0 3px var(--danger),0 0 0 2px var(--bg)}
.plane .pdot.tick{width:2px;height:14px;margin:-7px 0 0 -1px;border-radius:1px;box-shadow:none;background:var(--tick-us)}
.plane .pdot.tick.them{background:var(--tick-them)}
.plane .pdot.dim{opacity:.22}
.plane .pline{position:absolute;top:14px;height:30px;width:1px;margin-left:-1px;background:var(--muted);pointer-events:none}
.plane .pline b{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);font:700 var(--fs-12)/1 var(--body);color:var(--muted);white-space:nowrap}
.legend{align-items:center}
.legend .lg{display:inline-block;vertical-align:-2px;margin-right:3px;background:var(--fg)}
.legend .lg-us{width:11px;height:11px;border-radius:50%;background:var(--good)}
.legend .lg-them{width:11px;height:11px;border-radius:3px;background:transparent;box-shadow:inset 0 0 0 2px var(--danger)}
.legend .lg-tick{width:2px;height:12px;margin:0 6px 0 4px;background:var(--tick-us)}
.legend .lg-tick.them{background:var(--tick-them)}
.legend .lg-line{width:1px;height:12px;margin:0 6px 0 4px;background:var(--muted)}
.legend .lg-heat{width:22px;height:10px;background:linear-gradient(90deg,var(--heat-1) 0 33%,var(--heat-2) 33% 66%,var(--heat-3) 66%);clip-path:polygon(0 70%,33% 70%,33% 40%,66% 40%,66% 0,100% 0,100% 100%,0 100%)}
/* the handle: an outline ring with a centre dot and a see-through fill, so the exact spot under it stays visible */
.bar .knob{width:30px;height:30px;margin:-15px 0 0 -15px;box-sizing:border-box;border:3px solid var(--on-video);background:rgba(255,255,255,.14);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
.bar .knob::after{content:"";position:absolute;left:50%;top:50%;width:6px;height:6px;margin:-3px 0 0 -3px;border-radius:50%;background:var(--on-video)}
.knob-time{position:absolute;top:0;z-index:3;margin-left:24px;padding:2px 8px;border-radius:var(--r-tag);background:rgba(5,12,23,.9);color:var(--on-video);font:700 var(--fs-12)/1.3 var(--body);font-variant-numeric:tabular-nums;white-space:nowrap;pointer-events:none}
/* The handle's grab area: invisible, 44 px, above the marks, gap blocks and ticks, so a press on the handle is always the handle's. */
.knob-hit{position:absolute;top:50%;left:0;width:var(--tap);height:var(--tap);margin:-22px 0 0 -22px;z-index:4;pointer-events:auto;touch-action:pan-y;cursor:grab;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
.bar-wrap.scrubbing :is(.markers .mk,.gapblk,.markers){pointer-events:none!important}
/* crowd noise: heights differ as well as colours */
.heat{position:relative;height:10px}
.heat i{position:absolute;bottom:0;border-radius:1px}
.heat .lv1{height:3px;background:var(--heat-1)}
.heat .lv2{height:6px;background:var(--heat-2)}
.heat .lv3{height:10px;background:var(--heat-3)}
body.rland .heat{height:8px}
body.rland .heat .lv3{height:8px}
body.rland .heat .lv2{height:5px}
/* filters */
.rp-filters{margin-bottom:8px}
.rp-fltbtn{width:100%;min-height:var(--tap);justify-content:space-between;text-align:left}
.rp-fltpanel{display:flex;flex-direction:column;gap:var(--sp-4);margin-top:8px;padding:var(--sp-6);border-radius:var(--r-card);background:var(--surface)}
.rp-fltpanel .chips{display:flex;flex-wrap:wrap;gap:var(--sp-3)}
.rp-fltpanel .rp-flt-them{padding:0;min-height:var(--tap)}
.rp-fltpanel .mc-act{display:flex;flex-wrap:wrap;gap:var(--sp-4)}
#rpPlays .row.them{box-shadow:inset 3px 0 0 var(--danger)}
#rpPlays .row.them .pip{color:var(--danger)}
/* the result of the game next to its final score */
.rchip{display:inline-block;min-width:22px;padding:0 6px;border-radius:var(--r-tag);font:800 var(--fs-12)/1.5 var(--body);text-align:center;color:var(--navy);background:var(--raised)}
.rchip.w{background:var(--good)}
.rchip.l{background:var(--danger)}
.rchip.t{color:var(--fg)}
/* a made clip: how long it took and what it covers */
.cover-line{display:flex;flex-direction:column;gap:var(--sp-1);font-size:var(--fs-14);color:var(--muted)}
.cover-line b{color:var(--fg);font-weight:700}
@media (prefers-reduced-motion:reduce){.bar .knob,.knob-time{transition:none}}
/* FE-1a: the event form (repeats, scope sheet, overlap sheet) and the Try again button on the hall and memory pages */
#repeatDays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:var(--sp-3)}
#repeatDays .chip{min-width:0;padding:0;font-size:var(--fs-14)}
#repeatSummary[hidden],#repeatError[hidden]{display:none}
#seriesInfo p{color:var(--muted)}
.retry-btn{margin-top:var(--sp-6)}
#overlapList .row{border-bottom:1px solid var(--hair)}
.sheet .opt.off{opacity:.55;cursor:default}
.scope-actions .btn{white-space:nowrap}
.scope-actions .btn:first-child{flex:0 0 auto;padding:0 var(--sp-9)}

/* FE-1: the reply card, Home (Next up, Replies needed, Latest replay), the Hub's live and reply cards, the continuous Schedule, a game's page, recordings not in a game */
.reply-card{display:flex;flex-direction:column;gap:var(--sp-6);padding:var(--sp-7);border-radius:var(--r-card);background:var(--surface);min-width:0}
.reply-card.bare{padding:0;background:none}
.hero .reply-card.bare,.card .reply-card.bare{margin-top:var(--sp-1)}
.rc-top{display:flex;flex-direction:column;gap:var(--sp-1);width:100%;min-width:0;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left}
button.rc-top{cursor:pointer}
.rc-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--fs-20)}
.rc-need{display:inline-block;align-self:flex-start;padding:1px var(--sp-4);border-radius:var(--r-tag);background:var(--tint-gold);color:var(--on-tint-gold);font:var(--t-label-strong);white-space:nowrap}
.rc-meta{color:var(--muted);font-size:var(--fs-14);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rc-top .sub{display:block;color:var(--muted);font-size:var(--fs-14)}
.rc-kid{display:flex;flex-direction:column;gap:var(--sp-3);min-width:0}
.rc-head{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-4);min-height:24px;min-width:0}
.rc-who{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}
.rc-btns{min-width:0;display:grid;grid-template-columns:1fr 1fr;gap:var(--sp-4)}
.rc-btn{min-width:0;padding:0 var(--sp-3);white-space:nowrap}
.rc-btn.yes{background:var(--good);color:var(--on-good)}
.rc-btn.no{border:0;background:var(--fg);color:var(--bg)}
.rc-btn.off{border:1px solid var(--line-strong);background:none;color:var(--muted)}
.rc-btn:disabled.yes,.rc-btn:disabled.no,.rc-btn:disabled.off{opacity:.6}
.rc-clear{flex:none;min-height:var(--tap);margin:-10px 0;padding:0 var(--sp-1);color:var(--muted);font-size:var(--fs-14);font-weight:600;text-decoration:underline;text-underline-offset:3px}
/* The compact reply card: title and time left, answers right; several children stack one row each under the title. */
.reply-card.compact{flex-direction:column;align-items:stretch;gap:var(--sp-6);padding:var(--sp-7) var(--sp-6);min-height:var(--row)}
.reply-card.compact.many{gap:var(--sp-4)}
.list>.reply-card.compact{border-radius:0}
.list>.reply-card.compact:not(:last-child){border-bottom:1px solid var(--hair)}
.reply-card.compact .rc-top{flex:none;min-height:0;justify-content:center}
.reply-card.compact .rc-title{flex:none;font:600 var(--fs-16)/1.25 var(--body);letter-spacing:0;text-transform:none;color:var(--fg)}
.reply-card.compact .rc-meta{font-size:var(--fs-14)}
.reply-card.compact .rc-kid{flex:none;flex-direction:row;flex-wrap:wrap;align-items:center;gap:var(--sp-4)}
.reply-card.compact .rc-head{display:contents}
.reply-card.compact .rc-clear{order:3;flex:0 0 100%;min-height:var(--tap-sm);margin:0;text-align:right}
.reply-card.compact.many .rc-kid{justify-content:space-between}
.reply-card.compact .rc-who{flex:1;max-width:none}
.reply-card.compact:not(.many) .rc-kid.asking .rc-who{display:none}
.reply-card.compact .rc-btns{flex:none;display:flex;gap:var(--sp-4)}
.reply-card.compact .rc-btn{flex:none;min-width:88px;min-height:var(--tap);padding:0 var(--sp-9);font-size:var(--fs-14)}
.empty:has(>.btn){gap:var(--sp-4)}
/* Home */
.hero .when{margin:0}
.hero .when .label{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.card.latest{flex-direction:column;align-items:stretch;gap:var(--sp-6)}
.lr-still,.gp-still{position:relative;display:block;aspect-ratio:16/9;border-radius:var(--r-ctl);overflow:hidden;background:var(--raised)}
.lr-still .thumb,.gp-still .thumb{display:block;width:100%;height:100%;object-fit:cover;border-radius:0}
.lr-still .play-badge,.gp-still .play-badge{position:absolute;inset:0;margin:auto;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--glass-navy);border:2px solid var(--white);color:var(--white)}
.lr-score{display:flex;align-items:center;gap:var(--sp-4);min-width:0}
.lr-score .game-title{min-width:0;font-size:var(--fs-20);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Hub: live teams first */
.hub-live .hero.live{padding:0;overflow:hidden}
.hub-live .hero.live>:not(.hc-still){margin-left:var(--sp-6);margin-right:var(--sp-6)}
.hub-live .hero.live .live-actions{padding-bottom:var(--sp-7);margin-bottom:0}
.hub-live .hero.live .live-actions .btn{min-width:0}
.hc-still{position:relative;display:block;aspect-ratio:16/9;margin:0!important;background:var(--raised)}
.hc-still .thumb{display:block;width:100%;height:100%;object-fit:cover;border-radius:0}
.hc-still .badge{position:absolute;left:10px;top:10px}
.hc-bug{position:absolute;right:10px;top:10px;padding:var(--sp-1) var(--sp-6);border-radius:var(--r-tag);background:var(--glass);color:var(--on-video)}
.hub-live .hero.live.compact{flex-direction:row;align-items:center;gap:var(--sp-6);padding:var(--sp-6) var(--sp-6);overflow:visible}
.hub-live .hero.live.compact>*{margin-left:0;margin-right:0}
.hub-live .hero.live.compact .hc-still{flex:none;width:84px;aspect-ratio:16/9;border-radius:var(--r-ctl);overflow:hidden}
.hc-words{flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--sp-1)}
.hc-words .game-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hc-words .muted{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hub-live .hero.live.compact .btn{flex:none}
.hub-replies{gap:var(--sp-4)}
/* Schedule: one list, past above Today, what is coming below */
.tl-item{content-visibility:visible;contain-intrinsic-size:none}
.tl-item.past .row{gap:var(--sp-6)}
.tl-item.past .res{flex-direction:column;gap:var(--sp-1);width:48px;text-align:center}
.tl-item.past .res .sc{font:var(--t-label-strong);color:var(--muted);font-variant-numeric:tabular-nums}
.tl-item.past .res .tag{min-width:36px;text-align:center}
.tl-item .chev{flex:none;color:var(--muted)}
.tl-item .kind.gt{margin-right:0}
.tl-item .series-note{font-style:normal}
.tl-hint{padding:14px 0;text-align:center;color:var(--muted);font-size:var(--fs-14)}
.tl-note{padding:0 0 var(--sp-6)}
.orphan-bar{position:fixed;left:var(--rail-w);right:0;bottom:calc(var(--tabs-h) + var(--bottom));z-index:16;display:flex;align-items:center;gap:var(--sp-4);width:100%;max-width:760px;margin:0 auto;min-height:var(--tap);padding:0 var(--gutter);border:0;border-top:1px solid var(--hair);background:var(--raised);color:var(--fg);font:var(--t-body-strong);text-align:left;cursor:pointer}
.orphan-bar .grow{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#scheduleView.has-orphans{padding-bottom:calc(var(--tap) + var(--sp-4))}
#scheduleView.has-orphans .today-btn{bottom:calc(var(--tabs-h) + var(--bottom) + var(--tap) + 12px)}
.orph-list{display:flex;flex-direction:column;gap:var(--sp-6);margin-top:var(--sp-6)}
.card.orph{align-items:flex-start}
.orph-thumb{flex:none;width:120px;aspect-ratio:16/9;border-radius:var(--r-ctl);overflow:hidden;background:var(--raised)}
.orph-thumb .thumb{display:block;width:100%;height:100%;object-fit:cover;border-radius:0}
.card.orph .sheet-actions{margin-top:var(--sp-6);flex-wrap:wrap}
.card.orph .sheet-actions .btn{flex:1 1 120px;padding:0 var(--sp-6)}
/* A game's page */
.sheet-head .head-acts{display:flex;align-items:center;flex:none}
.gp-head{display:flex;flex-direction:column;gap:var(--sp-2);min-width:0}
.gp-title{display:flex;flex-direction:column;align-items:flex-start;gap:var(--sp-2);min-width:0}
.gp-title .game-title{min-width:0;font-size:var(--fs-28)}
.gp-line{display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-4)}
.gp-line .kind{margin-right:0}
.gp-hero{display:flex;flex-direction:column;gap:var(--sp-6)}
.gp-watch{min-height:var(--tap-lg);font-size:var(--fs-20)}
/* The game screen: one tag (Upcoming / Final / the red LIVE pill), the two tabs after the game, the box score, the hero's label line, a key play's ▶ */
.gp-meta{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:var(--sp-4)}
.gp-still{position:relative;display:block}
.gp-credit{position:absolute;top:10px;left:10px;display:inline-flex;align-items:center;gap:var(--sp-3);max-width:calc(100% - 20px);padding:var(--sp-2) var(--sp-6);border-radius:var(--r-pill);background:rgba(0,0,0,.65);color:var(--on-video);font:var(--t-label-strong)}
.gp-credit .icon{flex:none}
.gp-over{min-height:var(--tap)}
label.gp-consent{align-items:center;min-height:var(--tap)}
.gp-noscore{margin:0}
.card.bx{flex-direction:column;align-items:stretch;gap:var(--sp-4)}
.bx-legend{display:flex;flex-wrap:wrap;gap:var(--sp-2) var(--sp-4);font:var(--t-label);color:var(--muted)}
.bx-key b{color:var(--fg)}
.bx-dot{display:inline-block;flex:none;width:10px;height:10px;margin-right:var(--sp-4);border-radius:50%;background:var(--box-grey)}
.bx-key .bx-dot{margin-right:var(--sp-3)}
.bx-ls{background:none}
.bx-ls .tm{min-width:72px;background:var(--surface)}
.bx-ls .tot{position:sticky;right:0;background:var(--raised);z-index:1}
.bx-ls .tot.lead,.bx-n.lead{color:var(--accent-text)}
.bx-ls .inn .tot{right:80px}      /* (Baseball and Softball: R, H and E are all pinned at the right, side by side) */
.bx-ls .inn .tot.he{box-sizing:border-box;width:40px;min-width:40px;padding-inline:0;text-align:center;right:40px}
.bx-ls .inn .tot.he.e{right:0}
.bx-row{display:flex;align-items:center;min-height:var(--tap);font:var(--t-body-strong)}
.bx-row+.bx-row{border-top:1px solid var(--hair)}
.bx-n{font:var(--t-title);font-variant-numeric:tabular-nums}
.bx-none{align-items:stretch;text-align:center}
.bx-none p{margin:0}
/* The Watch tab while live: the game over the picture (watchrail.js). Its title opens the details. */
.wv-head{display:flex;flex-direction:column;gap:var(--sp-4);margin-top:var(--sp-6);margin-bottom:var(--sp-6)}
.wv-head .wv-gtitle{font:inherit;display:flex;align-items:center;gap:var(--sp-4);width:100%;min-height:var(--tap);padding:0;border:0;background:none;color:var(--fg);text-align:left;cursor:pointer}
.wv-head .wv-gtitle .game-title{flex:1;min-width:0;font-size:var(--fs-20);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wv-head .wv-gtitle .icon{color:var(--muted)}
.wv-trow{display:flex;align-items:center;gap:var(--sp-3);min-height:var(--tap)}
.wv-trow>.wv-gtitle{flex:1;min-width:0;width:auto}
.wv-trow>.game-title{flex:1;min-width:0;font-size:var(--fs-20)}
/* Direction A: the game's hero fades from the surface to the page; its countdown is the loudest thing; the reply line; hairline rows, not a card; the map edge to edge */
.gp-head-card{display:flex;flex-direction:column;gap:var(--sp-4);min-width:0}   /* (the game page's hero card, and what the page adds under it) */
.gp-head-card .count{font:var(--t-hero);letter-spacing:.02em;color:var(--accent-text)}
.gp-head-card .rc-need{background:var(--raised);color:var(--fg)}
.gp-head-card .reply-card.bare{margin:0}
.gp-reply{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-4);min-width:0}
.gp-reply .reply-card{flex:1;min-width:0}
.gp-who{flex:none;max-width:40%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;color:var(--fg)}
.gp-reply:has(.rc-kid.answered) .gp-who,.gp-reply:has(.rc-kid.many) .gp-who{display:none}
.gp-reply .rc-btn{min-height:var(--tap);border-radius:var(--r-pill)}
.gp-reply .rc-btn:not(.yes,.no,.off){background:var(--raised);color:var(--fg)}
.gp-reply .rc-btn.primary{background:var(--accent);color:var(--accent-fg)}   /* (Home's hero: the lead Going stays gold) */
.gp-list,.sheet .gp-list{background:none;box-shadow:none;border-radius:0;border-top:1px solid var(--hair)}
.gp-list .row{min-height:60px;padding-left:0;padding-right:0}
.gp-list .row .icon{color:var(--muted)}
.gp-map{margin:var(--sp-4) calc(-1 * var(--gutter)) 0}
.gp-map .game-map{height:160px;border-radius:0}
.gp-map .game-map .credit{top:8px;right:8px;bottom:auto;padding:var(--sp-1) var(--sp-4);border-radius:var(--r-tag);background:var(--glass);color:var(--muted);font-size:var(--fs-12)}
.gp-rink{display:block;width:100%;height:100%}
.gp-rink .rink-still{display:block;width:100%;height:100%}
.gp-still:has(.gp-rink)::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent,var(--bg));opacity:.35;pointer-events:none}
#gpKeyPlays .play-btn{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--accent);color:var(--accent-fg);font-size:var(--fs-12)}
#gpKeyPlays .row .pip{flex:none}
#gpKeyPlays .row.them .pip{background:none;border:1px solid var(--danger)}
#gpKeyPlays .row .sub{flex:none;overflow:visible}
.stack-actions{flex-direction:column}
@media (max-width:359px){
  .hub-live .hero.live.compact .hc-still{width:64px}
}
/* FE-3: photos and videos (the grid, the viewer, the upload tray, an event's screen, the Media wall) and chat images */
body.mv-open{overflow:hidden}
.mg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sp-2)}
.mg-tile{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:1;min-width:0;padding:0;border:0;border-radius:var(--r-ctl);overflow:hidden;background:var(--surface);color:var(--fg);font:inherit;cursor:pointer}
.mg-tile img{display:block;width:100%;height:100%;object-fit:cover}
.mg-tile.on{box-shadow:inset 0 0 0 3px var(--accent)}
.mg-play{position:absolute;left:6px;bottom:6px;display:inline-flex;align-items:center;gap:var(--sp-2);padding:var(--sp-1) var(--sp-4) var(--sp-1) var(--sp-2);border-radius:var(--r-pill);background:var(--veil-82);color:var(--on-video);font:700 var(--fs-12)/1.4 var(--body)}
.mg-check{position:absolute;top:6px;right:6px;display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--veil-72);box-shadow:inset 0 0 0 2px var(--on-video);color:var(--accent-fg)}
.mg-tile.on .mg-check{background:var(--accent);box-shadow:none}
.mg-wait,.mg-bad{flex-direction:column;gap:var(--sp-3);padding:var(--sp-3);cursor:default;text-align:center}
.mg-note,.mg-err{font-size:var(--fs-12);line-height:1.3;color:var(--muted)}
.mg-err{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;color:var(--danger)}
.mg-bad .mg-trash{width:var(--tap);height:var(--tap);flex:none}
.mg-spin{width:24px;height:24px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--fg);animation:mg-spin 1s linear infinite}
@keyframes mg-spin{to{transform:rotate(360deg)}}
.mg-add{background:var(--raised)}
.mg-add .icon{width:28px;height:28px}
.mstrip{display:flex;flex-direction:column;gap:var(--sp-4)}
.mstrip-head{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-4)}
.mstrip-head .link-btn{min-height:var(--tap)}
.mstrip-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--sp-3)}
.mstrip-notes{display:flex;flex-direction:column;gap:var(--sp-3)}
.mstrip-note{display:flex;align-items:center;gap:var(--sp-4);flex-wrap:wrap}
.mstrip-note .grow{flex:1 1 180px;min-width:0}
.mscreen{position:fixed;inset:0;z-index:51;overflow-y:auto;background:var(--bg)}
.mscreen .mscreen-body{max-width:760px;margin:0 auto;padding-bottom:calc(var(--sp-8) + var(--bottom))}
.mscreen .top .title{flex:1;text-align:center}
.mw-filters{display:flex;flex-wrap:wrap;gap:var(--sp-4)}
.mw-filters .chip{min-width:0;padding:0 var(--sp-7);font-size:var(--fs-14)}
.mw-month{margin:var(--sp-4) 0 0;padding:0}
#wall{display:flex;flex-direction:column;gap:var(--sp-4)}
.mw-more{min-height:var(--tap);display:flex;align-items:center;justify-content:center;gap:var(--sp-4);color:var(--muted);font-size:var(--fs-14)}
.mw-store{display:flex;flex-direction:column;gap:var(--sp-6);padding:var(--sp-6);border-radius:var(--r-card);background:var(--surface)}
.mstore{display:flex;flex-direction:column;gap:var(--sp-4)}
.mstore-top{display:flex;align-items:baseline;justify-content:space-between;gap:var(--sp-4)}
.mstore-top .name{font-weight:700}
.mstore-bar{height:6px;border-radius:3px;background:var(--bg)}
.mstore.full .mstore-bar>span{background:var(--danger)}
/* Team media: Wall / From messages, the meters, tile tags, Options and Attach to a game */
.mw-seg .count{display:inline-block;flex:none;min-width:20px;margin-left:var(--sp-3);padding:0 var(--sp-3);border-radius:var(--r-pill);background:var(--raised);color:var(--fg);font:var(--t-caption-strong);line-height:20px}
.mw-meter{display:flex;flex-direction:column;gap:var(--sp-4);width:100%;padding:0;border:0;background:none;color:var(--fg);font:inherit;text-align:left}
button.mw-meter{cursor:pointer}
.mw-meter-top{display:flex;align-items:baseline;justify-content:space-between;gap:var(--sp-4)}
.mw-meter-top .name{color:var(--muted);font-size:var(--fs-14)}
.mw-meter-top .num{flex:none;font-weight:700}
.mw-bar{display:flex;height:8px;border-radius:var(--r-pill);background:var(--bg);overflow:hidden}
.mw-bar>i{display:block;height:100%}
.mw-bar>.wall{background:var(--accent)}
.mw-bar>.hall{background:var(--info)}
.mw-bar>.ang{background:var(--team-3)}
.mw-bar>.msg{background:var(--muted)}
.mw-bar.full>i{background:var(--danger)}
.mw-key{display:flex;flex-wrap:wrap;gap:var(--sp-6);font-size:var(--fs-12);color:var(--muted)}
.mw-key i{display:inline-block;width:8px;height:8px;margin-right:var(--sp-3);border-radius:2px;background:var(--muted)}
.mw-key .ang{background:var(--team-3)}.mw-key .wall{background:var(--accent)}.mw-key .hall{background:var(--info)}
.mw-rule,.mw-foot{margin:0;font-size:var(--fs-12);color:var(--muted);line-height:1.4}
.mw-foot{font-size:var(--fs-14);margin-top:var(--sp-6)}
.mw-group{margin:var(--sp-4) 0 0;display:flex;align-items:baseline;justify-content:space-between;gap:var(--sp-4)}
.mw-group .count{flex:none;font-size:var(--fs-12);color:var(--subtle)}
.mg-tag{position:absolute;left:6px;top:6px;max-width:calc(100% - 12px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:1px var(--sp-3);border-radius:var(--r-tag);background:var(--raised);color:var(--muted);font:700 var(--fs-12)/1.4 var(--body)}
.mg-tag.gold{background:var(--accent);color:var(--accent-fg)}
.mg-next{position:absolute;right:6px;bottom:6px;padding:1px var(--sp-3);border-radius:var(--r-tag);background:var(--veil-82);color:var(--warn);font:700 var(--fs-12)/1.4 var(--body)}
.mw-big{display:flex;align-items:baseline;justify-content:space-between}
.mw-big .num{font:700 var(--fs-28)/1 var(--display)}
.mw-big .num small{font:inherit;font-size:var(--fs-16);color:var(--muted)}
.mw-card{display:flex;flex-direction:column;gap:var(--sp-6);padding:var(--sp-7);border-radius:var(--r-card);background:var(--surface)}
.mw-card .row{padding-left:0;padding-right:0}
.mw-card .row .key{flex:none;width:10px;height:10px;border-radius:3px}
.mw-info{display:flex;gap:var(--sp-4);align-items:flex-start;padding:var(--sp-6) var(--sp-6);border-radius:var(--r-ctl);background:var(--bg);color:var(--muted);font-size:var(--fs-14);line-height:1.4}
.mw-info .icon{flex:none;color:var(--info)}
.sheet .mw-err{margin:0}
.mw-sheet-head{display:flex;align-items:center;gap:var(--sp-4)}
.mw-sheet-head h3{flex:1;margin:0}
.opt .pill{align-self:center;margin-left:auto}
.chat-gone{display:flex;align-items:center;gap:var(--sp-4);padding:var(--sp-6);border:0;border-radius:var(--r-card);background:var(--surface);color:var(--muted);font-size:var(--fs-14);line-height:1.4}
.chat-gone-ic{display:flex;flex:none}
.chat-gone a{color:var(--accent-text);font-weight:700}
.chat-clip-open{position:relative;display:flex;align-items:center;justify-content:center;max-width:100%;padding:0;border:0;border-radius:var(--r-card);overflow:hidden;background:var(--bg);color:var(--on-video);cursor:pointer}
.chat-clip-open img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.chat-clip-open video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:var(--video-bg)}
.chat-clip-play{position:relative;display:flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:50%;background:var(--veil-82);color:var(--on-video)}
.chat-clip-len{position:absolute;right:8px;bottom:8px;padding:1px var(--sp-3);border-radius:var(--r-tag);background:var(--veil-82);color:var(--on-video);font:var(--t-label-strong)}
.chat-photo .chat-photo-clip{display:flex;flex:none;align-items:center;justify-content:center;width:44px;height:44px;border-radius:var(--r-ctl);background:var(--raised)}
.mw-selbar{position:fixed;left:0;right:0;bottom:0;z-index:30;display:flex;align-items:center;gap:var(--sp-4);padding:var(--sp-6) var(--gutter) calc(var(--sp-6) + var(--bottom));background:var(--surface)}
.mw-selbar #selCount{flex:1;min-width:0;font-weight:700}
body.mw-selecting .view{padding-bottom:calc(96px + var(--bottom))}
.mtray{position:fixed;left:calc(50% + var(--rail-w) / 2);bottom:calc(var(--bottom) + 12px);z-index:53;display:flex;flex-direction:column;gap:var(--sp-4);width:min(560px,calc(100% - var(--rail-w) - 24px - 2 * max(var(--left),var(--right))));max-height:50dvh;overflow-y:auto;padding:var(--sp-6);border-radius:var(--r-card);background:var(--raised);box-shadow:0 6px 24px rgba(0,0,0,.45);transform:translateX(-50%)}
/* (opened from a sheet such as the game's page, the event screen and the viewer sit above it, and the confirm sheets above them) */
body.mv-open .scrim:not(#schedSheet){z-index:56}
body:has(.tabs) .mtray{bottom:calc(var(--tabs-h) + var(--bottom) + var(--tabs-bump) + 12px)}
.mt-sum{font-weight:700}
.mt-row{display:flex;align-items:center;gap:var(--sp-4)}
.mt-main{display:flex;flex:1;flex-direction:column;gap:var(--sp-1);min-width:0}
.mt-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}
.mt-note{font-size:var(--fs-14);color:var(--muted)}
.mt-note.bad{color:var(--danger);overflow-wrap:anywhere}
.mt-link{font-size:var(--fs-14)}
.mt-bar{margin-top:var(--sp-2);height:6px}
.mt-acts{display:flex;flex:none;gap:var(--sp-3)}
.mt-acts .btn{min-height:var(--tap);padding:0 var(--sp-7);font-size:var(--fs-14)}
.mv{position:fixed;inset:0;z-index:52;display:flex;flex-direction:column;background:var(--video-bg);color:var(--on-video)}
.mv-top{display:flex;flex:none;align-items:center;justify-content:space-between;gap:var(--sp-4);padding:var(--top) max(var(--sp-4),env(safe-area-inset-right)) 0 max(var(--sp-4),env(safe-area-inset-left))}
.mv-top .icon-btn,.mv-foot .icon-btn,.mv-nav{color:var(--on-video)}
.mv-count{font-size:var(--fs-14);color:rgba(255,255,255,.8)}
.mv-stage{position:relative;display:flex;flex:1;min-height:0}
.mv-media{display:flex;flex:1;min-width:0}
.mv-media video{width:100%;height:100%;object-fit:contain;background:var(--video-bg)}
.mv .zoom-box{display:flex;flex:1;width:100%;height:100%;border-radius:0;touch-action:none}
.mv-media img{display:block;width:100%;height:100%;object-fit:contain;user-select:none;-webkit-user-drag:none}
.mv-media img.zoomed{transform-origin:0 0;will-change:transform;cursor:grab}
.mv-nav{position:absolute;top:50%;z-index:2;transform:translateY(-50%);border-radius:var(--r-pill);background:var(--veil-60)}
.mv-prev{left:max(8px,env(safe-area-inset-left))}
.mv-next{right:max(8px,env(safe-area-inset-right))}
.mv-foot{display:flex;flex:none;align-items:center;justify-content:space-between;gap:var(--sp-4);padding:var(--sp-3) max(var(--sp-6),env(safe-area-inset-right)) calc(var(--sp-3) + var(--bottom)) max(var(--sp-6),env(safe-area-inset-left))}
.mv-cap{display:flex;flex-direction:column;gap:var(--sp-1);min-width:0}
.mv-who{font-weight:600;font-size:var(--fs-14);overflow-wrap:anywhere}
.mv-link{color:var(--on-video);font-size:var(--fs-14);overflow-wrap:anywhere}
.mv-link:not([href]){text-decoration:none;color:rgba(255,255,255,.7)}
.mv-acts{display:flex;flex:none}
.chat-photo{flex:none;display:flex;align-items:center;gap:var(--sp-4);padding:var(--sp-3) var(--pad-x);background:var(--surface)}
.chat-photo img{flex:none;width:44px;height:44px;border-radius:var(--r-ctl);object-fit:cover}
.chat-photo-note{flex:1;min-width:0;font-size:var(--fs-14);color:var(--muted)}
.chat-photo.bad .chat-photo-note{color:var(--danger)}
.chat-composer .icon-btn.chat-photo-btn{width:var(--tap)}
/* with the photo button as well, the icon buttons are 40 px wide on a phone so the message box keeps its room */
@media (min-width:360px) and (max-width:479px){.chat-composer .icon-btn,.chat-composer .icon-btn.chat-gif-btn,.chat-composer .icon-btn.chat-photo-btn{width:var(--ctl-sm);height:var(--ctl-sm)}}
.chat-bubble.chat-img{padding:var(--sp-2)}
.mine .chat-bubble.chat-img{background:var(--mine)}
.chat-img-open{position:relative;display:block;max-width:100%;padding:0;border:0;border-radius:var(--r-card);overflow:hidden;background:var(--bg);cursor:pointer}
.chat-img-open img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.chat-img-cap{padding:var(--sp-3) var(--sp-3) var(--sp-1)}
@media (prefers-reduced-motion:reduce){.mg-spin{animation:none}}
.fam-card{padding:var(--sp-3) 0}
/* FE-1 (scorebook): find a player by name above the number pad */
.sb-find{width:100%}
.sb-results .list{max-height:224px;overflow-y:auto}
.sb-pick{min-height:var(--tap-lg);padding:var(--sp-2) var(--sp-6)}
.sb-pick .num{flex:none;min-width:48px;font:var(--t-number);color:var(--accent-text);font-variant-numeric:tabular-nums}
.sb-none{padding:var(--sp-2) var(--sp-1)}
/* FE-1 (more): the muted lines of the next-event card */
.game-open .sub{display:block;color:var(--muted);font-size:var(--fs-14)}
.tl-item.next .cd{color:var(--accent-text);font:var(--t-body-strong)}
.orph-thumb{position:relative;display:grid;place-items:center}
.orph-thumb .thumb{width:100%;height:100%}
@media (min-width:768px){
  .card.latest{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto 1fr;align-items:start;column-gap:var(--sp-7)}
  .card.latest .lr-still{grid-column:1;grid-row:1/span 3}
  .card.latest>:not(.lr-still){grid-column:2}
}
/* MSGS a1: seen by and replies (begin) */
.chat-seen{align-self:flex-end;display:inline-flex;align-items:center;gap:var(--sp-3);min-height:var(--tap);margin:-10px -6px -10px 0;padding:0 var(--sp-3);border:0;border-radius:var(--r-ctl);background:none;color:var(--muted);font:var(--t-label);cursor:pointer}
.chat-seen.all{color:var(--good)}
.chat-seen .n{font-variant-numeric:tabular-nums}
.chat-event>.chat-seen{display:flex;width:max-content;margin-left:auto}
/* keyboard up (chat.js moves the button into the bubble and gives it .in): a small eye and one number in the bubble's bottom-right corner */
.chat-bubble.chat-img,.chat-bubble.chat-gif{position:relative}
/* It floats right after the text: on the last line when there is room, else on a line of its own, still at the right (the bubble holds it with flow-root). */
.chat-bubble:not(.chat-img,.chat-gif,.chat-card):has(>.chat-seen.in){display:flow-root}
.chat-seen.in{position:relative;z-index:1;float:right;align-self:auto;min-height:0;margin:var(--sp-3) 0 0 var(--sp-6);padding:0;gap:var(--sp-1);font:600 11px/1 var(--body);white-space:nowrap}   /* (exception: the seen tick sits on the bubble's last line: 11 px, a 6 px tag gap above it, 2 px icon gap) */
.chat-seen.in::before{content:"";position:absolute;inset:-10px -8px}
.chat-seen.in .icon{width:12px;height:12px}
.chat-seen.in .n{display:none}
.chat-seen.in::after{content:attr(data-c);font-variant-numeric:tabular-nums}
.chat-img>.chat-seen.in,.chat-gif>.chat-seen.in,.chat-card>.chat-seen.in{position:absolute;right:8px;bottom:8px;width:auto;margin:0;padding:var(--sp-2) var(--sp-4);border-radius:var(--r-pill);background:var(--glass-navy);color:var(--on-video)}
.chat-img>.chat-seen.in.all,.chat-gif>.chat-seen.in.all,.chat-card>.chat-seen.in.all{color:var(--good)}
.chat-card>.chat-seen.in{right:6px;bottom:6px}
/* on your own blue bubble the grey and the green are under 3.5:1: the eye and number are white there (the double tick still says "all") */
.mine .chat-bubble:not(.chat-img,.chat-gif)>.chat-seen.in{color:var(--fg)}
.seen-quote{padding:var(--sp-4) var(--sp-6);border-radius:var(--r-ctl);background:var(--bg);color:var(--muted);font-size:var(--fs-14);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.seen-grp{margin:var(--sp-6) 0 var(--sp-2);color:var(--muted);font:var(--t-label-strong)}
.seen-row{display:flex;align-items:center;gap:var(--sp-6);min-height:var(--row-tight)}
.seen-av{flex:none;width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:var(--line);color:var(--fg);font:var(--t-label-strong)}
.seen-row.wait .seen-av{background:var(--raised);color:var(--muted)}
.seen-nm{flex:1;min-width:0}
.seen-nm b,.seen-nm span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.seen-nm b{font-weight:600}
.seen-row.wait .seen-nm b{color:var(--muted)}
.seen-nm span{color:var(--muted);font-size:var(--fs-14)}
.seen-t{flex:none;max-width:45%;color:var(--muted);font-size:var(--fs-14);text-align:right;font-variant-numeric:tabular-nums}
.seen-empty{margin:var(--sp-6) 0}
.seen-foot{margin:0;color:var(--muted);font-size:var(--fs-14)}
.seen-foot b{color:var(--fg)}
.chat-quote{display:flex;align-items:center;gap:var(--sp-4);width:100%;min-width:0;box-sizing:border-box;margin:0 0 var(--sp-3);padding:var(--sp-3) var(--sp-6);border:0;border-left:4px solid var(--accent);border-radius:var(--r-sm);background:rgba(0,0,0,.28);color:var(--fg);font:inherit;text-align:left;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
div.chat-quote{cursor:default}
.chat-quote .t{flex:1;min-width:0;display:block}
.chat-quote b{display:block;color:var(--accent-text);font:var(--t-caption-strong)}
.chat-quote .t>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--muted);font-size:var(--fs-14)}
.chat-quote .th{flex:none;width:44px;height:44px;border-radius:var(--r-tag);object-fit:cover;background:var(--raised)}
.chat-quote.poll{border-left-color:var(--good)}
.chat-quote.poll b{color:var(--good)}
.chat-quote.gone{border-left-color:var(--muted)}
.chat-quote.gone b{color:var(--muted)}
.chat-quote.gone .t>span{font-style:italic}
.chat-card>.chat-quote{width:auto;margin:var(--sp-2) var(--sp-4) var(--sp-2) 0}
.chat-replybar{flex:none;display:flex;align-items:center;gap:var(--sp-4);padding:var(--sp-3) max(var(--sp-2),var(--right)) var(--sp-3) var(--pad-x);background:var(--surface)}
.chat-replybar[hidden]{display:none}
.chat-replybar .q{flex:1;min-width:0;padding-left:var(--sp-6);border-left:4px solid var(--accent)}
.chat-replybar b{display:block;color:var(--accent-text);font:var(--t-label-strong);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-replybar .q>span{display:block;color:var(--muted);font-size:var(--fs-14);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-menu{position:absolute;top:calc(100% + 4px);left:0;z-index:4;width:min(250px,calc(100vw - 2 * var(--gutter)));overflow:hidden;border-radius:var(--r-card);background:var(--surface);box-shadow:var(--lift-lg);white-space:normal}
.mine .chat-menu{left:auto;right:0}
.chat-menu.lower{top:calc(100% + 58px)}
.chat-menu-item{display:flex;align-items:center;gap:var(--sp-6);width:100%;min-height:var(--ctl);padding:0 var(--sp-7);border:0;background:none;color:var(--fg);font:var(--fs-16)/1.2 var(--body);text-align:left;cursor:pointer}
.chat-menu-item.first{background:var(--raised);font-weight:700}
.chat-menu-item.first .icon{color:var(--accent-text)}
.chat-menu-item.del{color:var(--danger)}
.chat-menu-item:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}
.chat-list.menu-open>li:not(.chat-focus){opacity:.45}
.chat-list>li.chat-focus{position:relative;z-index:5}
.chat-focus>.chat-line .chat-bubble,.chat-focus>.chat-card{box-shadow:0 0 0 2px var(--accent)}
.chat-list>li:focus{outline:none}
.chat-flash>.chat-line .chat-bubble,.chat-flash>.chat-card,.chat-flash.chat-card{outline:3px solid var(--accent);outline-offset:2px}
@media (prefers-reduced-motion:no-preference){
  .chat-flash>.chat-line .chat-bubble,.chat-flash>.chat-card{animation:chatflash 1s ease-out}
}
@keyframes chatflash{0%{box-shadow:0 0 0 10px rgba(255,199,44,.55)}100%{box-shadow:0 0 0 0 rgba(255,199,44,0)}}
/* MSGS a1: seen by and replies (end) */
/* MSGS a2b: required polls (begin) */
.pr-badge{align-self:flex-start;display:inline-flex;align-items:center;padding:var(--sp-2) var(--sp-4);border-radius:var(--r-tag);background:var(--accent);color:var(--accent-fg);font:var(--t-label-strong)}
.chat-poll.req{box-shadow:var(--ring)}
.pr-body{display:flex;flex-direction:column;gap:var(--sp-6);padding-right:var(--sp-4)}
.pr-prog{display:flex;flex-direction:column;gap:var(--sp-3)}
.pr-line{display:flex;justify-content:space-between;gap:var(--sp-4);font-size:var(--fs-14);font-weight:700}
.pr-pct{color:var(--accent-text)}
.pr-line b:first-child,.pr-line span b{color:var(--accent-text)}
.pr-track{height:8px;border-radius:4px;background:var(--bg);overflow:hidden}
.pr-fill{height:100%;background:var(--accent);min-width:0;transition:width .25s}
.pr-opts{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--sp-3)}
.pr-opt{position:relative;flex:1;min-width:0;display:flex;align-items:center;gap:var(--sp-4);min-height:var(--tap);padding:0 var(--sp-6);overflow:hidden;border-radius:var(--r-ctl);background:var(--raised);color:var(--fg);font-size:var(--fs-16)}
.poll-row.on .pr-opt{box-shadow:var(--ring-fg)}
.pr-mine{display:flex;flex-direction:column;gap:var(--sp-3);padding:var(--sp-6) var(--sp-6);border-radius:var(--r-ctl);background:var(--bg);font-size:var(--fs-14)}
.pr-mine .ok{color:var(--good);font-weight:700}
.pr-mine .ask{color:var(--accent-text);font-weight:700}
.pr-btns{display:flex;gap:var(--sp-4);flex-wrap:wrap;margin-top:var(--sp-2)}
.pr-btns .btn{flex:1 1 140px;min-width:0}
.pr-note{margin:0;color:var(--muted);font-size:var(--fs-14)}
.pr-acts{margin-top:var(--sp-1)}
.pr-q{font-weight:700;font-size:var(--fs-16);line-height:1.3;overflow-wrap:anywhere}
.pr-slots{display:flex;flex-direction:column;gap:var(--sp-7)}
.pr-slot{display:flex;flex-direction:column;gap:var(--sp-4);padding:var(--sp-6);border-radius:var(--r-card);background:var(--bg)}
.pr-for{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-4)}
.pr-state{flex:none;padding:var(--sp-1) var(--sp-4);border-radius:var(--r-tag);background:var(--good);color:var(--on-good);font:var(--t-caption-strong)}
.pr-state.ask{background:var(--accent);color:var(--accent-fg)}
.pr-by{margin:0;color:var(--muted);font-size:var(--fs-14)}
.pr-by b{color:var(--fg)}
.pr-choices{display:flex;flex-direction:column;gap:var(--sp-3)}
.pr-choice{display:flex;align-items:center;gap:var(--sp-6);min-height:var(--tap);padding:0 var(--sp-6);border-radius:var(--r-ctl);background:var(--raised);cursor:pointer;overflow-wrap:anywhere}
.pr-choice input{flex:none;width:22px;height:22px;margin:0;accent-color:var(--accent)}
.pr-choice:has(input:checked){box-shadow:var(--ring)}
.pr-choice:has(input:focus-visible){outline:3px solid var(--accent);outline-offset:2px}
.pr-foot{position:sticky;bottom:calc(-20px - var(--bottom));z-index:2;display:flex;flex-direction:column;gap:var(--sp-4);margin:0 calc(-1 * var(--gutter)) calc(-20px - var(--bottom));padding:var(--sp-6) var(--gutter) calc(var(--sp-7) + var(--bottom));background:var(--surface);border-top:1px solid var(--hair)}
.pr-foot .btn.block{margin-top:0}
.pr-small{margin:0;color:var(--muted);font-size:var(--fs-14);text-align:center}
.pr-sum{display:flex;flex-direction:column;gap:var(--sp-6)}
.pr-stats{display:flex;align-items:flex-end;gap:var(--sp-6)}
.pr-big{font:700 var(--fs-40)/.9 var(--display);color:var(--accent-text)}
.pr-t{padding-bottom:var(--sp-2);color:var(--muted);font-size:var(--fs-14)}
.pr-t b{color:var(--fg);font-size:var(--fs-16)}
.pr-sum .pr-track{height:10px;border-radius:var(--r-pill);background:var(--bg)}
.pr-pills{display:flex;gap:var(--sp-3);flex-wrap:wrap}
.pr-pill{padding:var(--sp-2) var(--sp-6);border-radius:var(--r-pill);background:var(--bg);color:var(--muted);font:var(--t-label-strong)}
.pr-pill b{color:var(--fg)}
.pr-rem{color:var(--accent-text);font-weight:700}
.pr-aud{display:flex;flex-direction:column;gap:var(--sp-6);padding:var(--sp-7);border-radius:var(--r-card);background:var(--bg)}
.pr-chips{display:flex;flex-wrap:wrap;gap:var(--sp-4)}
.pr-chip{background:none;box-shadow:var(--ring-line);min-width:0}
.pr-chip .c{color:var(--muted);font-weight:600}
.pr-chip[aria-pressed="true"]{background:var(--fg);color:var(--bg);box-shadow:none}
.pr-chip[aria-pressed="true"] .c{color:inherit}
.pr-chip:disabled{opacity:.45;cursor:default}
.pr-sum-line{margin:0;color:var(--muted);font-size:var(--fs-14)}
.pr-sum-line b{color:var(--fg)}
.pr-pickrow{border-top:1px solid var(--hair);border-radius:0;font-weight:700}
.pr-pickrow:disabled{opacity:.6}
.pr-pick-sheet>*{flex:none}
.pr-pick{display:flex;flex-direction:column}
.pr-gh{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-4);margin-top:var(--sp-6);min-height:var(--tap)}
.pr-gh b{color:var(--muted);font:var(--t-label-strong)}
.pr-gh small{display:block;color:var(--muted);font-size:var(--fs-12)}
.pr-all{min-height:var(--tap);padding:0 var(--sp-3);border:0;background:none;color:var(--accent-text);font:var(--t-label-strong);cursor:pointer}
.pr-prow{position:relative;display:flex;align-items:center;gap:var(--sp-6);min-height:var(--row);border-bottom:1px solid var(--hair);cursor:pointer}
.pr-prow input{position:absolute;opacity:0;width:24px;height:24px;left:0;margin:0}
.pr-cb{flex:none;width:24px;height:24px;display:flex;align-items:center;justify-content:center;box-shadow:inset 0 0 0 2px var(--line-strong);border-radius:var(--r-tag);color:var(--accent-fg)}
/* (the checkbox tick: heavier than any icon so it reads inside the box; the one stroke outside 2 and 2.25) */
.pr-cb svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.pr-prow input:checked+.pr-cb{background:var(--accent);box-shadow:none}
.pr-prow input:checked+.pr-cb svg{opacity:1}
.pr-prow input:focus-visible+.pr-cb{outline:3px solid var(--accent);outline-offset:2px}
.pr-nm{flex:1;min-width:0}
.pr-nm b,.pr-nm span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pr-nm b{font-weight:600}
.pr-nm span{color:var(--muted);font-size:var(--fs-14)}
.pr-none{margin:var(--sp-6) 0}
.pr-type{margin:0}
/* MSGS a2b: required polls (end) */

/* MSGS composer: phone widths put the tool buttons in a row above the box (begin) */
.chat-tools{display:contents}
@media (max-width:479px){
.chat-composer{flex-wrap:wrap;row-gap:0;padding-top:var(--sp-2)}
.chat-composer .chat-tools{display:flex;flex:0 0 100%;order:-1;gap:var(--sp-2);justify-content:flex-start}
.chat-composer .chat-tools .icon-btn{width:var(--tap)!important;height:var(--tap);color:var(--muted);background:none}
.chat-composer .chat-tools .icon-btn[aria-expanded="true"]{color:var(--accent-text)}
.chat-composer .chat-tools .icon-btn.chat-gif-btn{font-size:var(--fs-14)}
.chat-composer #chatEmojiBtn{order:1}.chat-composer #chatPhotoBtn{order:2}.chat-composer #chatGifBtn{order:3}.chat-composer #chatPollBtn{order:4}
.chat-composer.compact .chat-plus-btn{display:inline-flex;align-items:center;justify-content:center;width:var(--tap);margin-right:0}
.chat-composer.compact .chat-tools{display:none}
.chat-composer.compact.tools-open .chat-tools{display:flex}
.chat-composer.compact.tools-open .chat-plus-btn{color:var(--accent-text)}
}
/* MSGS composer (end) */

/* MSGS keyboard: a phone held upright with the keyboard up (chat.js sets body.kb-open). Header 44, tab bar hidden, the message box is one
   row [+][box][Send] at 40 px (the one place that stays under 44), and the + opens emoji / photo / GIF / poll as a pop-up above the box. (begin) */
body.kb-open:has(#chatThread:not([hidden])) nav.tabs{display:none}
body.kb-open #chatThread .chat-head{min-height:calc(var(--tap) + var(--top))}
body.kb-open #chatThread .chat-head .icon-btn{height:var(--tap)}
/* With the keyboard up the row sits flush on the keyboard (no bottom padding; iOS 26 already leaves its own ~10 px above the floating accessory bar), so the
   box's focus ring is drawn inside its edge rather than clipped below it. */
body.kb-open #chatThread .chat-composer{flex-wrap:nowrap;align-items:center;gap:var(--sp-3);row-gap:var(--sp-3);padding:var(--sp-3) max(var(--sp-4),var(--right)) 0 max(var(--sp-4),var(--left))}
body.kb-open #chatThread .chat-composer textarea:focus-visible{outline-offset:-3px}
body.kb-open #chatThread .chat-composer .chat-plus-btn{display:inline-flex;align-items:center;justify-content:center;flex:none;width:var(--ctl);height:var(--ctl);margin:0;background:var(--raised);color:var(--fg)}
body.kb-open #chatThread .chat-composer.tools-open .chat-plus-btn{color:var(--accent-text)}
body.kb-open #chatThread .chat-composer textarea{min-height:var(--ctl);max-height:101px;padding:11px var(--sp-6);font-size:var(--fs-16);line-height:1.3}
body.kb-open #chatThread .chat-composer .btn{width:var(--ctl);height:var(--ctl);min-height:var(--ctl);align-self:flex-end}
body.kb-open #chatThread .chat-composer .chat-plus-btn{align-self:flex-end}
body.kb-open #chatThread{--bottom:0px}
body.kb-open #chatThread .chat-composer .chat-tools{display:none;position:absolute;left:max(8px,var(--left));bottom:calc(100% + 10px);z-index:6;flex:none;order:0;flex-direction:column;gap:0;width:190px;padding:var(--sp-3);border-radius:var(--r-card);background:var(--raised);box-shadow:var(--pop)}
body.kb-open #chatThread .chat-composer .chat-tools::after{content:"";position:absolute;left:14px;bottom:-6px;width:14px;height:14px;border-radius:2px;background:var(--raised);transform:rotate(45deg)}
body.kb-open #chatThread .chat-composer.tools-open .chat-tools{display:flex}
body.kb-open #chatThread .chat-composer .chat-tools .icon-btn{width:100%!important;height:var(--tap);justify-content:flex-start;gap:var(--sp-6);padding:0 var(--sp-6);border-radius:var(--r-ctl);color:var(--fg);background:none;font:var(--t-body-semi);text-align:left}
body.kb-open #chatThread .chat-composer .chat-tools .icon-btn.chat-gif-btn{font:var(--t-body-semi)}
body.kb-open #chatThread .chat-composer .chat-tools .lbl{display:inline}
body.kb-open #chatThread .chat-composer .chat-tools .kb-ico{display:block}
body.kb-open #chatThread .chat-composer .chat-tools .icon-btn:active{background:var(--line)}
body.kb-open #chatThread .chat-composer #chatEmojiBtn{order:1}body.kb-open #chatThread .chat-composer #chatPhotoBtn{order:2}body.kb-open #chatThread .chat-composer #chatGifBtn{order:3}body.kb-open #chatThread .chat-composer #chatPollBtn{order:4}
/* MSGS keyboard (end) */

/* P3 replay plays (begin): the play card, the editor panel, the Plays row, camera-detected plays */
.mk.play{border-radius:50%;touch-action:none}
.mk.play:focus-visible{box-shadow:var(--ring)}
.plane .pdot.score.cam{background:repeating-conic-gradient(var(--fg) 0 24deg,transparent 24deg 48deg);-webkit-mask:radial-gradient(circle,transparent 3.5px,#000 4px);mask:radial-gradient(circle,transparent 3.5px,#000 4px);box-shadow:none}
.plane .pdot.score.cam.them{border-radius:3px;background:repeating-conic-gradient(var(--danger) 0 24deg,transparent 24deg 48deg)}
.plane .pdot.sel{box-shadow:0 0 0 3px var(--accent)}
.plane .pdot.score.cam.sel{box-shadow:none;filter:drop-shadow(0 0 3px var(--accent))}
.plane .pdot.flash{animation:pe-flash 2.4s ease-out}
.legend .lg-cam{width:11px;height:11px;border-radius:50%;background:repeating-conic-gradient(var(--fg) 0 24deg,transparent 24deg 48deg);-webkit-mask:radial-gradient(circle,transparent 2.5px,#000 3px);mask:radial-gradient(circle,transparent 2.5px,#000 3px)}
#rpPlays .row.cam .name{font-style:italic}
#rpPlays .row.cam .pip{background:none;box-shadow:inset 0 0 0 2px var(--muted);color:var(--muted)}
#rpPlays .row.flash{animation:pe-flash-row 2.4s ease-out}
@keyframes pe-flash{0%,30%{transform:scale(1.9);box-shadow:0 0 0 4px var(--accent)}100%{transform:none}}
@keyframes pe-flash-row{0%,30%{background:var(--raised)}100%{background:none}}
.rp-addrow{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-4) var(--sp-6);margin-top:8px}
.rp-addrow .btn{min-height:var(--tap);padding:0 16px;font-size:var(--fs-14)}
.rp-addrow .muted{flex:1 1 160px;min-width:0}
.pc-list{display:flex;flex-direction:column;gap:var(--sp-3);margin:0;padding:0}
.pc-list>div{display:flex;gap:var(--sp-6);align-items:baseline}
.pc-list dt{flex:0 0 96px;margin:0;color:var(--muted);font-size:var(--fs-14)}
.pc-list dd{flex:1;min-width:0;margin:0;font-weight:700;font-size:var(--fs-16)}
.pc-act{display:flex;flex-direction:column;gap:var(--sp-4)}
.pc-act .btn.block,.pc-act .sheet-actions{margin-top:0}
/* the editor: docked at the bottom, no cover over the page */
.pe{position:fixed;left:0;right:0;bottom:0;z-index:var(--z-panel-top);display:flex;flex-direction:column;max-height:min(58dvh,100dvh - 250px);margin:0 auto;border-radius:var(--r-sheet) var(--r-sheet) 0 0;background:var(--surface);box-shadow:var(--dock)}
.pe[hidden]{display:none}
@media (min-width:700px){.pe{width:min(560px,100%)}}
@media (min-width:1024px) and (min-height:501px){.pe{left:auto;right:0;top:72px;bottom:0;width:min(396px,38vw);max-height:none;margin:0;border-radius:var(--r-sheet) 0 0 0}body.pe-open main.view{padding-bottom:0}}
.pe-head{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-4);padding:var(--sp-3) var(--gutter) 0}
.pe-head h3{margin:0}
.pe-body{display:flex;flex-direction:column;gap:var(--sp-6);flex:1 1 auto;min-height:0;overflow:auto;padding:var(--sp-3) var(--gutter) var(--sp-6);overscroll-behavior:contain}
.pe-sec{display:flex;flex-direction:column;gap:var(--sp-4)}
.pe-foot{display:flex;gap:var(--sp-4);padding:var(--sp-6) var(--gutter) calc(var(--sp-6) + var(--bottom));background:var(--surface)}
.pe-foot .btn{flex:1}
.pe-time{display:flex;align-items:center;gap:var(--sp-4)}
.pe-time .input{flex:1;min-width:0;text-align:center;font-variant-numeric:tabular-nums}
.pe-time .sq{width:64px}
.pe-seg{display:flex;gap:var(--sp-4)}
.pe-seg .chip{flex:1;min-width:0}
.pe-pts{display:flex;align-items:center;gap:var(--sp-4)}
.pe-pts .label{flex:1}
.pe-pv{min-width:40px;text-align:center;font:var(--t-title);font-variant-numeric:tabular-nums}
.pe-matches{display:flex;flex-direction:column;gap:var(--sp-3)}
.pe-matches:empty{display:none}
.pe-match{display:flex;align-items:center;gap:var(--sp-4);min-height:var(--tap);padding:0 var(--sp-6);border:0;border-radius:var(--r-ctl);background:var(--raised);color:var(--fg);font:var(--t-body-semi);text-align:left;cursor:pointer}
.pe-match b{min-width:44px;font:var(--t-title);font-variant-numeric:tabular-nums}
.pe-match span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pe-match small{color:var(--muted);font-size:var(--fs-14)}
body.pe-open main.view{padding-bottom:calc(var(--pe-h,0px) + var(--sp-7))}
/* the editor over the game page's sheet (no video there): above the sheet, and the sheet's end stays in reach above it */
.pe.pe-over{z-index:calc(var(--z-sheet) + 1)}
body.pe-open #schedBody{padding-bottom:var(--pe-h,0px)}
@media (prefers-reduced-motion:reduce){.plane .pdot.flash,#rpPlays .row.flash{animation:none}.plane .pdot.flash{box-shadow:0 0 0 4px var(--accent)}}
/* P3 replay plays (end) */

/* C ticks and labels (begin): the plays list's pips in the bar's colours, and the label on a tick */
#rpPlays .row:not(.sc):not(.cam) .pip{background:var(--tick-us);color:var(--bg)}
#rpPlays .row.sc:not(.them):not(.cam) .pip{background:var(--good);color:var(--bg)}
#rpPlays .row.them:not(.sc):not(.cam) .pip{background:var(--tick-them);color:var(--bg)}
#rpPlays .row.them:not(.sc){box-shadow:inset 3px 0 0 var(--tick-them)}
.bar-wrap{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
.bar-tip{position:absolute;left:0;bottom:calc(100% - 12px);z-index:6;width:max-content;max-width:min(272px,100%);box-sizing:border-box;padding:var(--sp-4) var(--sp-6);border-radius:var(--r-ctl);background:var(--paper);color:var(--on-paper);box-shadow:0 6px 18px rgba(0,0,0,.45);text-align:left;pointer-events:none}
.bar-tip[hidden]{display:none}
.bar-tip::after{content:"";position:absolute;left:var(--tx,50%);bottom:-6px;width:12px;height:12px;margin-left:-6px;background:var(--paper);transform:rotate(45deg)}
.bar-tip b{display:flex;align-items:center;gap:var(--sp-4);font:700 var(--fs-14)/1.3 var(--body)}
.bar-tip .s{display:block;margin-top:1px;font-size:var(--fs-13);line-height:1.3;color:var(--on-paper-muted)}
.bar-tip .d{flex:none;width:10px;height:10px;border-radius:50%;background:var(--tick-us)}
.bar-tip .d.them{background:var(--tick-them)}
.bar-tip .d.sc.us{background:var(--good-on-paper)}
.bar-tip .d.sc.them{border-radius:2px;background:var(--danger-on-paper)}
.bar-tip .d.cam{background:none;box-shadow:inset 0 0 0 2px var(--on-paper-muted)}
body.rland .bar-tip{bottom:calc(100% + 1px)}
/* C ticks and labels (end) */

/* MSGS keyboard fixes, slice E (begin): filters in a funnel menu on phones, the labelled + menu's labels */
.chat-tools .lbl,.chat-tools .kb-ico{display:none}
.chat-filter-btn{display:none;position:relative}
.chat-fdot{position:absolute;top:8px;right:8px;width:10px;height:10px;border-radius:50%;background:var(--accent);pointer-events:none}
.chat-fdot[hidden]{display:none}
.chat-fmenu{position:absolute;z-index:8;width:236px;max-width:calc(100% - 16px);padding:var(--sp-3);border-radius:var(--r-card);background:var(--raised);box-shadow:var(--pop)}
.chat-fmenu[hidden]{display:none}
.chat-fmenu .h{padding:var(--sp-3) var(--sp-6) var(--sp-1);color:var(--muted);font:var(--t-caption-strong);letter-spacing:.05em;text-transform:uppercase}
.chat-fmenu button{display:flex;align-items:center;gap:var(--sp-6);width:100%;min-height:var(--tap);padding:0 var(--sp-6);border:0;border-radius:var(--r-ctl);background:none;color:var(--fg);font:var(--t-body-semi);text-align:left;cursor:pointer}
.chat-fmenu button[aria-checked="true"]{background:var(--line)}
.chat-fmenu button .icon{flex:none}
.chat-fmenu .ck{margin-left:auto;color:var(--accent-text);visibility:hidden}
.chat-fmenu button[aria-checked="true"] .ck{visibility:visible}
@media (max-width:700px){
.chat-filters{display:none}
.chat-filter-btn{display:inline-flex}
}
@media (min-width:701px){.chat-fmenu{display:none!important}}
/* MSGS keyboard fixes, slice E (end) */

/* the six boxes of a sign-in code */
.code-boxes{display:flex;gap:var(--sp-4);justify-content:center}
.code-boxes .input{width:var(--tap);min-width:0;height:56px;padding:0;text-align:center;font:var(--t-heading)}
/* the account page */
.account-head{display:flex;align-items:center;gap:var(--sp-6);padding:var(--sp-7)}
.account-head .grow{display:flex;flex-direction:column;gap:var(--sp-1);min-width:0}
.seg-row{display:flex;flex-wrap:wrap;gap:var(--sp-4);margin-top:var(--sp-3)}

/* The notifications inbox (inbox.js): a badge on the account button, the Settings row, the panel and its filter menu (begin) */
#inboxPanel{z-index:41}
.inbox-tile{--sport:var(--accent)}
.chat-pill[hidden]{display:none}
.chat-filter-btn.inbox-fbtn{display:inline-flex}
.chat-fmenu.inbox-fmenu{display:block!important;width:296px}
.chat-fmenu.inbox-fmenu[hidden]{display:none!important}
.inbox-fmenu button{height:52px}
.inbox-fmenu .n{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inbox-fmenu .c{flex:none;color:var(--muted);font-weight:600}
.inbox-fmenu .ck{margin-left:0}
.inbox-fmenu .tav{margin-right:0}
.inbox-fmenu .tav .pin{display:none}
.chat-fmenu.inbox-fmenu{max-height:min(70dvh,520px);overflow-y:auto}
.inbox-fmenu .chat-tile.plain{width:30px;height:30px;border-width:1px;border-radius:var(--r-ctl)}
.inbox-sum{margin:0 var(--sp-2) var(--sp-6)}
.inbox-label{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-6);margin:var(--sp-7) var(--sp-2) var(--sp-3)}
.inbox-label:first-of-type{margin-top:0}
.inbox-label .link-btn{font-size:var(--fs-14);color:var(--accent-text)}
.inbox-item{display:flex;flex-direction:column;gap:var(--sp-6);padding:var(--sp-6);border-bottom:1px solid var(--hair)}
.inbox-top{display:flex;align-items:center;gap:var(--sp-6);min-width:0}
.inbox-top .grow{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.inbox-text{font-weight:400;overflow-wrap:anywhere}
.inbox-text.unread{font-weight:700}
.inbox-item .inbox-text{font-weight:700}
.inbox-dot{flex:none;width:10px;height:10px;border-radius:50%;background:var(--accent)}
.inbox-more{margin:0;padding-left:116px;color:var(--muted);font-size:var(--fs-14);overflow-wrap:anywhere}
.inbox-item .sheet-actions{padding-left:116px}
.inbox-icons{flex:none;display:flex;gap:var(--sp-4)}
.inbox-icons .tav{margin-right:0}
.inbox-mark{object-fit:contain;background:none}
.inbox-foot{margin:var(--sp-6) var(--sp-2) 0;text-align:center}
.inbox-text .badge{margin-right:var(--sp-3)}
.chat-row .inbox-text{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
/* Deleting: swipe a row left to its red Delete button, or Edit to pick rows (a checkbox each, a bar at the foot) */
.inbox-acts{display:flex;align-items:center;gap:var(--sp-8)}
.inbox-swipe{position:relative;overflow:hidden;border-bottom:1px solid var(--hair);transition:max-height .2s,opacity .2s;max-height:600px}
.inbox-swipe:last-child{border-bottom:0}
.inbox-swipe .inbox-item,.inbox-swipe .chat-row{border-bottom:0}
.inbox-swipe.leaving{max-height:0;opacity:0}
.inbox-del{position:absolute;top:0;right:0;bottom:0;width:88px;border:0;background:var(--danger);color:var(--on-danger);font-weight:700;font-size:var(--fs-14);cursor:pointer}
.inbox-slide{position:relative;display:flex;align-items:center;gap:var(--sp-4);background:var(--bg);touch-action:pan-y;transition:transform .15s}
.inbox-swipe.dragging .inbox-slide{transition:none}
.inbox-row{flex:1;min-width:0}
.inbox-row .chat-row{width:100%}
.inbox-pick{flex:none;display:grid;place-items:center;min-width:44px;min-height:44px;background:none;border:0;padding:0;cursor:pointer}
.inbox-pick[aria-checked="true"] .check-box{border-color:var(--accent);background:var(--accent)}
.inbox-pick[aria-checked="true"] .check-box .icon{opacity:1}
.inbox-bar{position:sticky;bottom:calc(-1 * var(--bottom));display:flex;gap:var(--sp-6);justify-content:flex-end;margin-top:var(--sp-6);padding:var(--sp-6) 0;background:var(--bg);border-top:1px solid var(--hair)}
@media (prefers-reduced-motion:reduce){.inbox-swipe,.inbox-slide{transition:none}}
/* The notifications inbox (end) */

/* ---- the style guide page (/styleguide, styleguide.html): the page's own layout only; the components on it use the rules above ---- */
.sg h2{padding-bottom:var(--sp-3);border-bottom:1px solid var(--hair)}
.sg-groups,.sg-group{display:flex;flex-direction:column;gap:var(--sp-6)}
.sg-groups{gap:var(--sp-7)}
.sg-sws{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:var(--sp-4)}
.sg-sw{display:flex;flex-direction:column;gap:var(--sp-1);min-width:0}
.sg-sw-box{display:block;height:var(--tap);border:1px solid var(--line);border-radius:var(--r-ctl);overflow:hidden;background:repeating-conic-gradient(var(--muted) 0 25%,var(--subtle) 0 50%) 0 0/12px 12px}
.sg-sw-box i{display:block;width:100%;height:100%}
.sg-sw-name{font:var(--t-label-strong);overflow-wrap:anywhere}
.sg-sw-val{color:var(--muted);font:var(--t-caption);overflow-wrap:anywhere}
.sg-table{display:flex;flex-direction:column}
.sg-line{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:0 var(--sp-6);align-items:center;padding:var(--sp-3) 0;border-bottom:1px solid var(--hair)}
.sg-line .sg-sample{grid-column:1/-1;min-width:0}
.sg-name{font:var(--t-label-strong);overflow-wrap:anywhere}
.sg-val{color:var(--muted);font:var(--t-caption);overflow-wrap:anywhere}
.sg-bar{display:block;height:var(--sp-4);background:var(--accent)}
.sg-height{display:block;width:100%;max-width:240px;background:var(--raised);border-radius:var(--r-tag);box-shadow:var(--ring-line)}
.sg-boxes{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:var(--sp-7) var(--sp-6)}
.sg-box{display:flex;flex-direction:column;gap:var(--sp-2);min-width:0}
.sg-demo{display:block;height:64px;background:var(--surface)}
.sg-stack{display:flex;flex-direction:column;gap:var(--sp-6)}
.sg-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-4)}
.sg-row.sg-btn-sizes{gap:var(--sp-6)}   /* (x-small buttons keep 12 px to a neighbour) */
.sg-btn-spec{margin:var(--sp-4) 0;padding-left:var(--sp-7);color:var(--muted);font-size:var(--fs-14);line-height:1.45}
.sg-btn-spec b{color:var(--fg)}
.sg-tav{display:contents}
.sg-end{display:flex;align-items:center;flex:none}
/* A piece of the app shown in place: the header and tab bars are fixed or sticky in the app, here they sit in a box. */
.sg-frame{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:var(--r-card);background:var(--bg);--pad-x:var(--gutter)}
.sg-frame .top{position:static}
.sg-frame .tabs{position:static}
.sg-frame+.sg-frame{margin-top:var(--sp-6)}
.sg-pad{padding:var(--sp-6) var(--gutter)}
.sg-pad .chat-composer{margin:var(--sp-6) calc(var(--gutter) * -1) calc(var(--sp-6) * -1)}
.sg-menu{padding:var(--sp-6)}
.sg-menu .chat-fmenu{position:static;max-width:100%}
.sg-scrim{display:flex;align-items:flex-end;justify-content:center;padding-top:var(--sp-8);border-radius:var(--r-card);overflow:hidden;background:var(--scrim)}

/* ---------- the scorebook's game clock and outs, and the call-out toggle on a log row ---------- */
.sb-clock,.sb-outs{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-4);padding:var(--sp-6) var(--sp-6);border-radius:var(--r-card);background:var(--surface)}
.sb-ck{flex:1 0 100%;text-align:center;font:var(--t-number);font-size:var(--fs-40);font-variant-numeric:tabular-nums}
.sb-clock .btn{flex:1 1 0;min-width:84px}
.sb-outs .grow{font:var(--t-body-strong)}
.sb-outs b{letter-spacing:.2em}
.sb-log .link-btn[aria-pressed="true"]{text-decoration:underline;color:var(--accent-text)}
/* The red dot on the You tab's Family row while a family invitation waits (settings.js) */
.row .row-dot{flex:none;width:10px;height:10px;margin-right:var(--sp-4);border-radius:50%;background:var(--live-text)}
.row .row-dot[hidden]{display:none}
/* The Family, Halls and Storage panels under You carry their own title in the header; the renderers' page heading is not repeated inside. */
#familyHome .tab-head h1,#hallsHome .tab-head h1,#storageHome .tab-head h1{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Review your marks (review.js): the video of the item on show with its clock and label as the bug, a tick bar, the list with Keep / Skip. */
.review-panel .chat-head .btn{flex:none;padding:0 var(--sp-6)}
.rv-stage{position:relative;aspect-ratio:16/9;border-radius:var(--r-card);overflow:hidden;background:#000}
.rv-stage video{display:block;width:100%;height:100%;background:#000}
.rv-none{position:absolute;inset:0;display:grid;place-items:center;margin:0;color:var(--on-video);font:var(--t-body-strong)}
.rv-bug{position:absolute;left:8px;top:8px;max-width:calc(100% - 16px);display:flex;gap:var(--sp-3);padding:var(--sp-2) var(--sp-6);border-radius:var(--r-tag);background:var(--glass);color:var(--on-video);font:var(--t-body-strong);pointer-events:none}
.rv-bug span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rv-bug .n{font-variant-numeric:tabular-nums}
.rv-bar{display:flex;overflow-x:auto;margin-top:var(--sp-2)}
.rv-bar:empty{display:none}
.rv-tick{flex:1 0 var(--tap);display:grid;place-items:center;height:var(--tap);padding:0;border:0;background:none;cursor:pointer}
.rv-tick i{display:block;width:6px;height:24px;border-radius:var(--r-pill);background:var(--muted)}
.rv-tick.kept i{background:var(--good)}
.rv-tick.skipped i,.rv-tick.none i{background:var(--line-strong);height:14px}
.rv-tick.on i{background:var(--accent);box-shadow:0 0 0 3px var(--tint-gold);height:32px}
.rv-list{margin-top:var(--sp-4)}
.rv-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-4) var(--sp-4);padding:var(--sp-4) var(--sp-6);border-bottom:1px solid var(--hair)}
.rv-row.on{background:var(--raised);box-shadow:inset 3px 0 0 var(--accent)}
.rv-pick{flex:1 1 0;min-width:0;display:flex;align-items:center;gap:var(--sp-4);min-height:var(--tap);padding:0;border:0;background:none;color:var(--fg);font:inherit;text-align:left;cursor:pointer;-webkit-touch-callout:none;user-select:none}
.rv-pick .name,.rv-pick .sub{display:block}
.rv-pick .name{font-weight:700}
.rv-pick .sub{color:var(--muted);font-size:var(--fs-14)}
.rv-clock{font-size:var(--fs-16);white-space:nowrap}
.rv-acts{flex:1 0 100%;display:flex;gap:var(--sp-4)}
.rv-acts .btn{flex:1}
.rv-more{flex:none;background:var(--raised)}
.rv-row.skipped .name{color:var(--muted);font-weight:400}
.rv-row.skipped .num{background:none}
.rv-foot{margin:var(--sp-4) 0 0}

/* ---- A three-way control inside a settings row (Phone, Day, Night): under the row's name and sub, on its own line ---- */
.row .vseg{flex:0 0 100%;margin:var(--sp-4) 0 0}
.row.tall:has(>.vseg){flex-wrap:wrap}

/* ---- Day theme: exceptions and the rules that drew a night colour ----
   Video is black in both themes. What lies over it (the stage, the full screen player, the deck over the picture, the casting controls, the
   media viewer) keeps the night colours, so text there stays light: brand.css sets the night values of the brand tokens on these (NIGHT_SURFACES in
   tools/build_brand.py lists them), and the app's own tokens that matter there are set here. */
html[data-theme="day"] :is(.stage,.mv,.cast-hud,.cast-controls,.rp-gap,#player:fullscreen,#player:-webkit-full-screen,#player.rp.ovl #deck,body.rland #deck,#player.rp.ovl #playsLane,body.rland #playsLane){--line-strong:#5F80AD;--edge-light:inset 0 1px 0 rgba(255,255,255,.06);--tint-chosen:rgba(255,255,255,.2)}
/* Your own bubble stays blue with white text. */
html[data-theme="day"] .mine .chat-bubble:not(.big-emoji){--fg:#FFFFFF;--muted:#DCE6F5;--subtle:#C9D6EA;--accent-text:#FFC72C}
html[data-theme="day"] .chat-quote{background:rgba(11,31,58,.08)}
html[data-theme="day"] .mine .chat-quote{background:rgba(0,0,0,.28)}
/* shadows drawn in black, softened */
html[data-theme="day"] .mark-mode{box-shadow:0 -12px 30px rgba(11,31,58,.18)}
html[data-theme="day"] .chat-react-btn{box-shadow:0 1px 4px rgba(11,31,58,.2)}
html[data-theme="day"] :is(.chat-sug,.chat-emoji){box-shadow:0 -6px 14px rgba(11,31,58,.14)}
html[data-theme="day"] .mtray{box-shadow:0 6px 24px rgba(11,31,58,.2)}
/* white-on-dark washes and tints */
html[data-theme="day"] .mk[aria-pressed="true"]{background:var(--tint-chosen)}
html[data-theme="day"] .callout.warn{background:var(--tint-warn)}
html[data-theme="day"] .callout.bad{background:var(--tint-danger)}
html[data-theme="day"] .callout.good{background:var(--tint-good)}
html[data-theme="day"] .cmark.yes{background:var(--tint-good)}
html[data-theme="day"] .cmark.no{background:var(--tint-danger)}
html[data-theme="day"] kbd{background:rgba(11,31,58,.08)}
html[data-theme="day"] .co-bar{background:rgba(11,31,58,.06)}
html[data-theme="day"] .co-clip.mine-not{background:var(--info)}
html[data-theme="day"] .co-save[data-state="offline"]{color:var(--warn)}
html[data-theme="day"] .co-recover{background:var(--tint-warn);color:var(--on-tint-warn)}
html[data-theme="day"] .co-recover .btn:not(.primary){background:rgba(11,31,58,.08)}
html[data-theme="day"] .sb-slot[aria-pressed="true"] :is(.k,.muted){color:#C9D6EA}
html[data-theme="day"] .sb-slot[aria-pressed="true"] .ok{color:#5BD38C}
/* a solid pill's text: white on the darker day tones */
html[data-theme="day"] :is(.pill.info,.pill.warn){--on:#FFFFFF}

/* The team picker (hub.js): the filter chips, the groups (Pinned, a season each), the star on a row, the older seasons, and the Request a team form's year pills and preview. */
.tp-chips{flex-wrap:nowrap;overflow-x:auto;padding:var(--sp-2) var(--sp-1) var(--sp-4);scrollbar-width:none}
.tp-chips::-webkit-scrollbar{display:none}
.tp-chip{flex:none;min-height:var(--tap-sm);min-width:0;font-size:var(--fs-14);display:inline-flex;align-items:center;gap:var(--sp-3)}
.tp-group{display:flex;align-items:center;gap:var(--sp-3)}
.tp-group .icon{color:var(--accent-text)}
.tp-star{color:var(--muted)}
.tp-star[aria-pressed="true"]{color:var(--accent-text)}
.row-pair .btn[data-restore]{flex:none;margin-right:var(--sp-4)}
.tp-older{color:var(--muted);font-weight:600}
.tp-older-list{margin-top:var(--sp-2)}
.chat-pill.tp-unread{background:var(--live);color:var(--on-video)}
.tp-years{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:var(--sp-3)}
.tp-year{min-width:0;padding:0 var(--sp-2)}
.tp-year[aria-checked="true"]{background:var(--fg);color:var(--bg)}
.tp-plus{display:flex;align-items:center;gap:var(--sp-6);min-height:var(--tap);margin-top:var(--sp-4)}
.tp-plus .name{display:block;font-weight:700}
.tp-plus .sub{display:block;color:var(--muted);font-size:var(--fs-14)}
.tp-preview{margin:var(--sp-6) 0 0;padding:var(--sp-6) var(--sp-7);border-radius:var(--r-card);background:var(--bg);color:var(--muted);font-size:var(--fs-14)}
.tp-preview b{color:var(--fg)}
#teamsSheetList .tp-group{display:flex}

/* ---- Home, direction A (feed.js, replycard.js): the hero's gold is its one primary, the next cards and reply rows are hairline rows, the latest replay is the one content card ---- */
.rink-still{display:block;width:100%;height:100%}
.still-box{position:relative;display:block;aspect-ratio:16/9;width:100%;overflow:hidden;background:var(--video-bg);border-radius:var(--r-card)}
.still-box::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 55%,var(--surface));pointer-events:none}
.still-box>.thumb{display:block;width:100%;height:100%;object-fit:cover;border-radius:0}
.card.latest{display:block;padding:0;gap:0;overflow:hidden;background:var(--surface)}
.card.latest .still-box{border-radius:0}
.card.latest .still-box .play-badge{z-index:1;width:56px;height:56px}
.lr-body{display:flex;flex-direction:column;gap:var(--sp-4);padding:var(--sp-7) var(--sp-7) var(--sp-7)}
.lr-body .lr-score .game-title{white-space:normal;font:var(--t-body-strong);letter-spacing:0;text-transform:none;font-variant-numeric:tabular-nums}
.lr-body .btn.block{margin-top:var(--sp-3);min-height:var(--ctl)}
#homeList{gap:var(--sp-8)}
#homeList .hero .rc-btn{min-height:var(--ctl-lg)}
#homeList .hero .rc-need{align-self:flex-start;height:28px;display:inline-flex;align-items:center;padding:0 var(--sp-6);border-radius:var(--r-pill);font-size:var(--fs-12)}
#homeList .list{background:none;box-shadow:none;border-radius:0;border-top:1px solid var(--hair);border-bottom:1px solid var(--hair)}
#homeList .list>.reply-card.compact{padding:14px 0;border-radius:0}
#homeList .head-row+.list,#homeList .head-row+.rp-list{margin-top:-20px}
/* Home's reply cards: a card for each child (the team's dot and the name, ‹ x of y ›), the next event to answer, and two equal raised buttons. Within 24 hours the card has an orange edge and the time left. */
.rp-list{display:flex;flex-direction:column;gap:0;border-top:1px solid var(--hair)}
.rp-card{position:relative;display:flex;flex-direction:column;gap:var(--sp-1);padding:var(--sp-4) 0 var(--sp-7) var(--sp-6);border-bottom:1px solid var(--hair)}
.rp-card.soon .t-line{background:var(--warn)}
.rp-head{display:flex;align-items:center;gap:var(--sp-1);margin-right:-10px}
.rp-who{flex:1;min-width:0;display:flex;align-items:center;gap:var(--sp-3);font-size:var(--fs-14);font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.rp-step{display:grid;place-items:center;flex:none;width:var(--ctl-xs);height:var(--ctl-xs);margin:0 var(--sp-2);padding:0;border:0;border-radius:var(--r-pill);background:none;color:var(--fg);cursor:pointer}
.rp-step:disabled{color:var(--line);cursor:default}
.rp-count{min-width:56px;text-align:center;color:var(--muted);font-size:var(--fs-14);font-weight:700;font-variant-numeric:tabular-nums}
.rp-line{display:flex;align-items:baseline;gap:var(--sp-4)}
.rp-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:700 var(--fs-20)/1.1 var(--display);letter-spacing:.02em}
.rp-soon{display:inline-flex;align-items:center;gap:var(--sp-2);flex:none;color:var(--warn);font-size:var(--fs-14);font-weight:700;white-space:nowrap}
.rp-meta{color:var(--muted);font-size:var(--fs-14)}
.rp-btns{display:grid;grid-template-columns:1fr 1fr;gap:var(--sp-4);margin-top:var(--sp-3)}
.rp-btn{min-width:0;min-height:var(--ctl-sm);padding:0 var(--sp-6);font:var(--t-label-strong);background:var(--raised);color:var(--fg)}
.rp-done{align-self:flex-start;display:inline-flex;align-items:center;gap:var(--sp-4);min-height:var(--tap-sm);padding:0 var(--sp-7);border-radius:var(--r-pill);background:var(--tint-good);color:var(--good);font-size:var(--fs-14);font-weight:700}
#homeList .hero.bleed .label,#homeList .head-row .label,.sec-label,.you-lab,#teamMain .roster .label,#teamAll .label,#archivedBox .label,#teamAll .sport-group,#chatInboxList .label,.wv-rail .label,.wv-rail .head-row .label{font-size:var(--fs-12);font-weight:600;letter-spacing:.08em;color:var(--muted)}
#chatThread .chat-ev-label{font-size:var(--fs-12);font-weight:600;letter-spacing:.08em}      /* (Direction A section labels, one rule: Home, Schedule, Team, You, Messages, the Watch rail; an event's label keeps its tone's colour) */
#homeList>.card.next{padding:14px 0;border-radius:0;background:none;box-shadow:none;border-top:1px solid var(--hair);border-bottom:1px solid var(--hair);min-height:var(--row)}
#homeList>.card.next+.card.next{margin-top:-24px;border-top:0}
.list.replays .row{padding-left:0;padding-right:0}
.list.replays .thumb{width:84px}
.list.replays .thumb .rink-still{border-radius:var(--r-ctl)}

/* ---------- the Live screen (index.html #watchView, watchrail.js, scoring.js): the frame, the glass score bar, the actions, the team chat ---------- */
/* The picture is black (--video-bg) until its first frame, and in the bars around it; nothing is drawn behind a live picture. Where there is no
   clip or still, the team card stands in; one status line (.slate) says what is going on, in every state. */
.stage-card{position:absolute;inset:0;z-index:1;display:grid;place-items:center;background:linear-gradient(160deg,color-mix(in srgb,var(--tc,var(--line-strong)) 38%,var(--navy)),var(--navy));pointer-events:none}
.stage-card .icon{width:clamp(64px,34cqh,160px);height:clamp(64px,34cqh,160px);color:var(--sport,var(--on-video));opacity:.22}
.stage-frozen{position:absolute;inset:0;z-index:1;width:100%;height:100%;object-fit:contain;pointer-events:none}
.slate{position:absolute;left:0;right:0;bottom:0;z-index:2;display:flex;flex-direction:column;gap:var(--sp-1);padding:var(--sp-8) 64px var(--sp-6) calc(var(--sp-7) + var(--left));background:linear-gradient(transparent,var(--veil-82));color:var(--on-video);pointer-events:none}
.slate-cap{font:700 var(--fs-12)/1.2 var(--body);letter-spacing:.08em}
.slate-cap.gold{color:var(--accent-text)}
.slate-main{font:700 var(--fs-20)/1.1 var(--display);overflow-wrap:anywhere}
.slate-sub{font:400 var(--fs-14)/1.3 var(--body);color:var(--on-video);opacity:.78}
.slate-main:empty,.slate-sub:empty,.slate-cap:empty{display:none}
.slate-end{align-self:flex-start;margin-top:var(--sp-2);background:var(--glass);border-color:var(--on-video);color:var(--on-video);pointer-events:auto}
.slate-end[hidden]{display:none}
.stage-spin{position:absolute;left:50%;top:50%;z-index:2;width:36px;height:36px;margin:-18px 0 0 -18px;box-sizing:border-box;border:3px solid var(--line-strong);border-top-color:var(--on-video);border-radius:50%;animation:stagespin 1s linear infinite;pointer-events:none}
@keyframes stagespin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.stage-spin{animation:none}}
.stage-big{position:absolute;left:50%;top:50%;z-index:3;transform:translate(-50%,-50%);display:flex;align-items:center;gap:var(--sp-4);min-height:var(--ctl-lg);padding:0 var(--sp-8);border:0;border-radius:var(--r-pill);background:var(--glass);color:var(--on-video);font:var(--t-body-strong);cursor:pointer}
.stage-big .icon{width:28px;height:28px;fill:currentColor;stroke:none}
/* Camera off: Notify me (gold; quiet once it is on) and Watch last game, under the picture */
.wv-off{display:flex;gap:var(--sp-4);padding-top:var(--sp-7)}
.wv-off .btn{flex:1 1 0;min-width:0;min-height:var(--ctl);border-radius:var(--r-pill);white-space:nowrap}
.wv-off .btn:disabled{background:var(--raised);color:var(--muted);cursor:default}
/* The score bug keeps its geometry (sizes, top or bottom, the viewer's drag, the settings preview); only its colours change: a dark glass bar
   (dark in both modes: it is on the picture), white team codes with the team's colour as an underline, bare gold scores, a muted period and clock.
   The frame's LIVE pill is #lvLive; the bug's own LIVE stays in the markup for readers but is clipped away. */
#watchView .sov-bar{background:var(--glass)}
#watchView .sov-t{background:none;color:var(--on-video);box-shadow:inset 0 -3px 0 var(--c)}
#watchView .sov-n{background:none;color:var(--accent-text)}
#watchView .sov-n.flash{animation-name:lvflash}
@keyframes lvflash{0%,60%{color:var(--on-video)}100%{color:var(--accent-text)}}
#watchView .sov-p{background:none;color:var(--muted)}
#watchView .sov-p b,#watchView .sov-o,#watchView .sov-c,#watchView .sov-sub{color:var(--muted)}
#watchView .sov-live{position:absolute;width:1px;height:1px;margin:0;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
html[data-theme="day"] #watchView .sov{--muted:#AAB8CC;--accent-text:#FFC72C}
/* the sound chip sits above the LIVE pill's corner: bottom left */
#watchView #stage .sound-chip{top:auto;bottom:12px;left:12px}
#watchView #stage:has(.slate:not([hidden])) .sound-chip{top:12px;bottom:auto}
/* A phone: the picture first (its corner button is the one full screen control: the strip has none), then the actions (Mark play gold; Score a game and Go live as tiles that share the row), who is watching, the game line, and the game's strip */
@media not all and (min-width:768px) and (min-height:501px){
  .lv-actions{padding:var(--sp-7) var(--gutter) 0;border:0;min-height:0;gap:var(--sp-3) var(--sp-6);justify-content:flex-start}
  .lv-actions>.btn:not(.tile){flex:1 1 0;min-width:0;min-height:var(--ctl);padding:0 var(--sp-7);border-radius:var(--r-pill);background:var(--raised);color:var(--fg);white-space:nowrap;gap:var(--sp-3)}
  .lv-actions>.btn.primary{background:var(--accent);color:var(--accent-fg)}
  .lv-actions>.tile{flex:1 1 0;min-width:0;max-width:132px}
  #watchView .strip #fsBtn{display:none}
  .lv-actions>.btn:not(.tile) .icon{width:20px;height:20px}
  .lv-actions .mark-btn{margin-left:0}
  #watchView .strip.lv-actions #markBtn{order:1}
  #watchView .strip.lv-actions #scoreBtn{order:2}
  #watchView .strip.lv-actions #goLive{order:3}
  #watchView .strip.lv-actions #camBtn{order:4}
  .lv-actions::before{content:"";flex:0 0 100%;order:5;height:0}
  #watchView .strip.lv-actions #viewersBtn{order:6;flex:none;min-height:var(--tap);color:var(--muted);font:400 var(--fs-14)/1.2 var(--body)}
  #watchView .strip.lv-actions #liveFor{order:7;margin-right:auto}
  #watchView .strip.lv-actions #fsBtn{order:8}
  .lv-actions #stripBadge:empty{display:none}
  .lv-actions #tvRow{order:9}
  .now-game{padding:0 var(--gutter);font-variant-numeric:tabular-nums}
  .now-game .link-btn{color:var(--muted);font:400 var(--fs-14)/1.4 var(--body)}
  #wvPlays .list{background:none;border-radius:0;box-shadow:none}
  #wvPlays .list>.row{padding-left:0;padding-right:0}
  #wvPlays .list>.row:last-child{border-bottom:1px solid var(--hair)}
}
#stripBadge .badge.live{display:none}   /* (the one LIVE badge is the small one on the picture's top right, .lv-live) */
/* LIVE on the frame whether or not a score is kept */
.lv-live{position:absolute;top:8px;right:8px;z-index:2;display:inline-flex;align-items:center;gap:var(--sp-3);height:28px;box-sizing:border-box;padding:0 var(--sp-6);border-radius:var(--r-pill);background:var(--live);color:var(--on-video);font:700 var(--fs-12)/1 var(--body);letter-spacing:.08em;pointer-events:none}
.lv-live::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--on-video)}
.lv-live[hidden]{display:none}

/* ---------- Direction A for the other five screens: Schedule, Team, You, the chat thread, the Watch rail ----------
   The same rules as Home and the game page: one gold primary in a screen's content (the tab bar's open tab is the exception), counts are red
   pills, lists are flat hairline rows under section labels (Home's, one rule), and no card inside a card. */
/* A section label above a group */
/* The red count: the tab bar's badge (its ring keeps it off the icon); the header's .chat-badge and the lists' .chat-pill are aligned below */
.tabs .tab-badge{box-sizing:border-box;min-width:18px;height:18px;padding:0 var(--sp-2);border:0;box-shadow:0 0 0 2px var(--surface);font:700 var(--fs-12)/18px var(--body);font-variant-numeric:tabular-nums}
.tabs [aria-selected="true"] .tab-badge{box-shadow:0 0 0 2px var(--raised)}
/* Schedule: months are labels, each group is hairline rows (top and bottom), the next game and the live game are flat rows too */
#scheduleView .timeline{margin:0;gap:0}      /* (the replay player's .timeline rule also reached this list and inset it by 14px) */
#scheduleView .tl-item .row{padding:14px 0}
#scheduleView .tl-item.livecard{padding:0;border-top:1px solid var(--hair);border-bottom:1px solid var(--hair)}
#scheduleView .tl-item.livecard .hero{padding:14px 0;border-radius:0;background:none;box-shadow:none}
#scheduleView .rc-need{background:var(--raised);color:var(--fg)}
html[data-contrast="more"] #scheduleView .tl-item.livecard .hero{outline:none}
html[data-contrast="more"] #scheduleView .tl-item{border-top-color:var(--line-strong);border-bottom-color:var(--line-strong)}
/* Team: a flat header that fades from the surface into the page (the game page's way to give a header weight), hairline rows for Team settings, the roster and the people */
#teamMain.section{margin-top:0}
#teamMain .team-card{margin:0 calc(-1 * var(--gutter));padding:var(--sp-8) var(--gutter) var(--sp-8);border-radius:0;background:linear-gradient(180deg,var(--surface),var(--bg))}
#teamMain .roster .label{margin:var(--sp-6) 0 0}
#teamMain .roster>.label+.list{margin-top:-4px}
/* The flat boards: no surface, no radius, no shadow; rules above and below; rows 14px high with no inset */
:is(#teamMain) .list{background:none;box-shadow:none;border-radius:0;border-top:1px solid var(--hair);border-bottom:1px solid var(--hair)}
:is(#teamMain) .list>:last-child,:is(#teamMain) .list>:last-child>.row:last-child{border-bottom:0}
:is(#teamMain) .list .row{padding:14px 0}
html[data-contrast="more"] :is(#teamMain .list,#teamMain .team-card){outline:none}
html[data-contrast="more"] :is(#teamMain .list){border-top-color:var(--line-strong);border-bottom-color:var(--line-strong)}
/* Team with no team open (#teamAll): your teams are hairline rows under season labels; a request waiting is a hairline row, not a card */
span.thumb{overflow:hidden}
.thumb>.rink-still{border-radius:inherit}
#teamAll .label,#archivedBox .label,#teamAll .sport-group{margin:var(--sp-6) 0 0;text-transform:none}
#teamAll .tp-group .icon{color:var(--muted)}
:is(#teamAll,#archivedBox) .list{background:none;box-shadow:none;border-radius:0;border-top:1px solid var(--hair);border-bottom:1px solid var(--hair)}
:is(#teamAll,#archivedBox) .list>:last-child,:is(#teamAll,#archivedBox) .list>:last-child>.row:last-child{border-bottom:0}
:is(#teamAll,#archivedBox) .list .row{padding:14px 0}
#teamAll .card.team-req{padding:14px 0;border-radius:0;background:none;box-shadow:none;border-top:1px solid var(--hair);border-bottom:1px solid var(--hair)}
html[data-contrast="more"] :is(#teamAll .list,#archivedBox .list,#teamAll .card.team-req){outline:none}
html[data-contrast="more"] :is(#teamAll .list,#archivedBox .list,#teamAll .card.team-req){border-top-color:var(--line-strong);border-bottom-color:var(--line-strong)}
/* The chat thread and the Messages inbox: a flat header, event rows as hairline rows (no card), the composer like the Live screen's (an outlined
   field, a raised round Send), no gold; counts are red pills. The bubbles keep their colours. */
.chat-pill{min-width:18px;height:18px;padding:0 var(--sp-2);font:700 var(--fs-12)/1 var(--body);font-variant-numeric:tabular-nums}
.chat-badge{box-sizing:border-box;min-width:18px;height:18px;padding:0 var(--sp-2);border:0;box-shadow:0 0 0 2px var(--bg);font:700 var(--fs-12)/18px var(--body);font-variant-numeric:tabular-nums}
.chat-at{background:var(--live);color:var(--on-video)}
.chat-fdot{background:var(--fg)}
#chatInboxList .list{background:none;box-shadow:none;border-radius:0;border-top:1px solid var(--hair);border-bottom:1px solid var(--hair)}
#chatInboxList .chat-row{padding:14px 0}
#chatThread .chat-card{padding:14px 0;border-left:0;border-radius:0;background:none;border-top:1px solid var(--hair);border-bottom:1px solid var(--hair)}
#chatThread .chat-card.tone-accent .chat-ev-label{color:var(--muted)}
#chatThread .chat-gdhead{color:var(--muted)}
#chatThread .chat-typing{background:var(--bg)}
#chatThread .chat-new,#chatThread .btn.primary,#chatThread .pr-badge,#chatThread .pr-state.ask{background:var(--raised);color:var(--fg)}
#chatThread .btn.primary:disabled{color:var(--muted)}
#chatThread .chat-composer{background:var(--bg);border-top:1px solid var(--hair);align-items:center}
#chatThread .chat-composer textarea{min-height:48px;padding:var(--sp-6) var(--sp-7);border:1px solid var(--line-strong);border-radius:var(--r-pill);background:var(--surface)}
#chatThread .chat-composer .btn{width:var(--ctl);height:var(--ctl);border-radius:var(--r-pill)}
html[data-contrast="more"] :is(#chatThread .chat-card,#chatInboxList .list){outline:none;border-top-color:var(--line-strong);border-bottom-color:var(--line-strong)}
/* The Watch rail on a tablet or desktop: flat sections (the game, the log, your marks, the last game, what is coming) under section labels, separated by hairlines;
   the same geometry as before (the rail's width and its stacking are untouched; only the boxes go) */
@media (min-width:768px) and (min-height:501px){
  .wv-rail{gap:0}
  .wv-rail>.hero,.wv-rail>.wv-logbox,.wv-rail>.wv-marks,.wv-rail>.wv-last,.wv-rail>.wv-soon{padding:14px 0;border-radius:0;background:none;box-shadow:none;border-top:1px solid var(--hair)}
  .wv-rail>.wv-game{padding-top:var(--sp-2);border-top:0}
  .wv-logscroll{background:none;border-radius:0}
  .wv-logscroll>.list{background:none;box-shadow:none;border-bottom:1px solid var(--hair)}
  .wv-logscroll .row,.wv-soon .list .row{padding-left:0;padding-right:0}
  .wv-logscroll>p{padding:var(--sp-6) 0}
  .wv-marks{padding:var(--sp-6) 0;border-bottom:1px solid var(--hair)}
  .wv-soon .list{background:none;box-shadow:none;border-radius:0;border-top:1px solid var(--hair);border-bottom:1px solid var(--hair)}
  .wv-soon .list>:last-child{border-bottom:0}
}
html[data-contrast="more"] :is(.wv-rail>.hero,.wv-rail>.wv-last,.wv-logscroll>.list,.wv-soon .list){outline:none}
html[data-contrast="more"] :is(.wv-rail>.hero,.wv-rail>.wv-logbox,.wv-rail>.wv-last,.wv-rail>.wv-soon,.wv-soon .list){border-top-color:var(--line-strong)}
html[data-contrast="more"] :is(.wv-logscroll>.list,.wv-soon .list){border-bottom-color:var(--line-strong)}
/* Calendar feeds (over More): a line is the teams and when the link was last fetched, with Stop syncing; long team lists wrap. */
#calFeedsBody .row .name{white-space:normal}
#calFeedsBody .row .link-btn{flex:none;min-height:var(--tap)}
#calFeedsBody .empty p{margin:0}

/* Home's recap card: the game's newest photos and videos */
.lr-media{display:flex;align-items:center;gap:var(--sp-3);min-height:var(--tap);width:100%;padding:0;border:0;background:none;color:var(--fg);font:inherit;text-align:left;cursor:pointer}
.lr-thumb{position:relative;flex:none;width:44px;height:44px;border-radius:var(--r-ctl);overflow:hidden;background:var(--raised)}
.lr-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.lr-dur{position:absolute;right:3px;bottom:3px;display:flex;width:16px;height:16px;align-items:center;justify-content:center;border-radius:50%;background:var(--veil-82);color:var(--on-video)}
.lr-dur .icon{width:10px;height:10px}
.lr-count{flex:1;min-width:0;margin-left:var(--sp-3);font-size:var(--fs-14);font-weight:700}

/* ---------- Direction A building blocks: a screen opts in with a class instead of restyling its own boxes ----------
   .list.flat   a list as hairline rows: no surface, radius or shadow; a rule above and below the group; rows 14px with no inset
   .card.flat   a card's content as a flat block between two hairlines (no surface, radius or shadow)
   .sec-label   a section label above a group: Home's label (the shared label rule above), as a block
   (The screens made Direction A before these keep their own rules; new ones use these.) */
.list.flat,.card.flat{background:none;box-shadow:none;border-radius:0;border-top:1px solid var(--hair);border-bottom:1px solid var(--hair)}
.list.flat>:last-child,.list.flat>:last-child>.row:last-child{border-bottom:0}
.list.flat .row{padding:14px 0}
.list.flat+.list.flat{margin-top:0;border-top:0}
.card.flat{padding:14px 0}
.sec-label{display:block;margin:var(--sp-8) 0 var(--sp-4)}
.sec-label:first-child{margin-top:var(--sp-2)}
html[data-contrast="more"] :is(.list.flat,.card.flat,.wl-go,.wl-foot>.list){outline:none;border-top-color:var(--line-strong);border-bottom-color:var(--line-strong)}

/* ---------- Direction A: the app's panels ----------
   More, Calendar feeds, Family, Halls, Storage, Notification settings, Team settings, Stream setup, Roster and links, Notifications, Recordings not in a game,
   Your marks and Line up your video use .list.flat, .card.flat and .sec-label (above); this block holds only what those can't say.
   One gold control per screen's content (the main action); decisions that are equals (Approve, Answer, Attach, Keep) are raised pills; unread is red. */
/* flat blocks stacked in a panel share one hairline; a list inside a flat block needs no rules of its own */
.chat-panel .card.flat+.card.flat{margin-top:0;border-top:0}
.chat-panel .card.flat .list.flat{border:0}
/* Family: the invitation and each family are flat blocks; a family's name is a row name; the note is plain muted text */
#familyHome .fam-list{gap:0}
#familyHome .family-invite{margin-bottom:0}
#familyHome .family-invite+.family-invite{border-top:0}
#familyHome .fam-card{padding:14px 0}
#familyHome .fam-top .name{min-width:0}
#familyHome .note-box{padding:0;border:0;border-radius:0;background:none;color:var(--muted)}
#familyHome .note-box .sec-label{margin:var(--sp-8) 0 0}
#familyHome .note-box p{margin:0;color:var(--muted)}
#familyHome .fam-list+.btn,#familyHome>.btn{margin-top:var(--sp-8)}
/* Halls: the label sits with its tag on one line */
#hallsHome .group-head .sec-label{margin-bottom:var(--sp-4)}
/* Storage */
#storageHome .store-card .using{background:none}
/* Team settings: the Team tab's header, flat and fading into the page; its lists a gap apart */
#teamSetHead.team-card{margin:0 calc(-1 * var(--pad-x));padding:var(--sp-8) var(--pad-x) var(--sp-8);border-radius:0;background:linear-gradient(180deg,var(--surface),var(--bg))}
#teamSetPanel .list.flat+.list.flat{margin-top:var(--sp-8);border-top:1px solid var(--hair)}
/* You: the account card's picture, and the panels of Settings (a gap between their lists; Delete account set apart at the foot) */
#youAvatar{flex:none;display:grid}
#youAvatar :is(.num,.player-photo){width:76px;min-width:76px;height:76px;border-radius:50%;box-shadow:0 0 0 3px var(--accent);object-fit:cover}
#youAvatar .num{font-size:var(--fs-32)}
#youAccountPanel .list.flat+.list.flat,#youAppearPanel .list.flat+.list.flat{margin-top:var(--sp-8);border-top:1px solid var(--hair)}
#deleteList{margin-top:var(--sp-11)}
#youAppearPanel .seg.sm>*{min-height:var(--tap)}   /* (the theme choice is a 44 px control here) */
html[data-contrast="more"] #teamSetHead.team-card{outline:none}
/* Stream setup: flat blocks under labels */
#streamPanel .list.flat,#streamPanel .card.flat{margin-top:0}
#streamPanel .stream-keys+p+.list.flat{margin-top:var(--sp-7)}
#streamPanel .list.flat+.card.flat,#streamPanel .card.flat+.list.flat{border-top:0}
#streamPanel .dest-card+.dest-card,#streamPanel .dest-all+.dest-card{margin-top:0}
#streamPanel .dest-all{margin-bottom:var(--sp-6)}
#streamPanel #streamDests>.list.flat,#streamPanel #streamClips>.list.flat{margin-top:0}
#streamPanel .chat-body>div+.list.flat,#streamPanel .chat-body>.list.flat+div{margin-top:var(--sp-8)}
/* Roster and links: Waiting is hairline rows, not a boxed notice */
#rosterPanelBody .list.waiting .request{padding:14px 0;border-bottom:1px solid var(--hair)}
#rosterPanelBody .list.waiting>.request:last-child{border-bottom:0}
#rosterPanelBody>.sec-label{margin-top:var(--sp-8)}
#rosterPanelBody>.sec-label:first-child{margin-top:var(--sp-2)}
/* (Notification settings opens over Notifications, which is z-index 41) */
#notifSetPanel{z-index:42}
/* Notifications: rows with no inset, unread is a red dot, the section label carries Mark all read */
#inboxBody .list.flat :is(.inbox-item,.chat-row){padding:14px 0}
#inboxBody .list.flat .chat-row:last-child{border-bottom:0}
.inbox-dot{background:var(--live)}
.inbox-label{margin:var(--sp-8) 0 var(--sp-4)}
.inbox-label:first-of-type{margin-top:0}
.inbox-label .sec-label{margin:0}
#inboxBody .inbox-settings{margin-top:var(--sp-8)}
/* Recordings not in a game: a flat block each, one hairline between */
.orph-list{gap:0;margin-top:var(--sp-6)}
.card.flat.orph{padding:14px 0}
/* Your marks: flat rows; the picked one is a raised band */
.rv-list.flat .rv-row{padding:var(--sp-4) var(--sp-6)}
.rv-list.flat .rv-row:last-child{border-bottom:0}
/* Line up your video: the notice and the game log are flat; the picked entry is a raised band */
.vf-body .notice{padding:14px 0;border-left:0;border-radius:0;background:none;border-top:1px solid var(--hair);border-bottom:1px solid var(--hair);font-weight:400}
.vf-log.flat .row{padding:var(--sp-7) var(--sp-6)}
.vf-result.card.flat{align-items:stretch}
html[data-contrast="more"] .vf-body .notice{outline:none;border-top-color:var(--line-strong);border-bottom-color:var(--line-strong)}
.rv-list.flat .rv-row.on{box-shadow:inset 3px 0 0 var(--fg)}
.rv-tick.on i{background:var(--fg);box-shadow:0 0 0 3px var(--raised)}
#calFeedsBody p.muted+.list.flat{margin-top:var(--sp-6)}
.rv-list.flat .rv-row.on .btn,.rv-list.flat .rv-row.on .rv-more{background:var(--surface)}

/* ---------- Direction A: sheets and the replay ---------- */
/* A sheet's own flex gap already spaces its parts: a section label sits close above what it names. */
.sheet .sec-label{margin:0 0 -8px}
.sheet .sec-label:first-child{margin-top:0}
.sheet .list.flat+.sec-label,.sheet .card.flat+.sec-label{margin-top:var(--sp-4)}
/* Blocks that follow each other share one hairline. */
.sheet .card.flat+.sec-label{margin-top:var(--sp-4)}
.card.flat:has(.inv-code){padding:var(--sp-6) 0}
/* Rows that are not .row: the Pin sheet's Halls and the notify level choices. */
.list.flat :is(.pin-row,.opt){padding:14px 0;min-height:var(--row)}
.list.flat .opt:last-child{border-bottom:0}
.list.flat>.pin-row:last-child{border-bottom:0}
/* A ticked Hall is a ticked box in the text colour, not gold: the sheet's one gold is its action. */
.pin-row[aria-pressed="true"] .check-box{border-color:var(--fg);background:var(--fg);color:var(--bg)}
.pin-group-head.sec-label{display:flex}
/* "Kept with it": a note under the lists, not a box. */
.kept{padding:0;border-radius:0;background:none}
.kept .sec-label{margin:0}
.pin-group .sec-label{margin:0}
/* The Plays list on the replay page: hairline rows; the stripe for the other team's plays stays at the edge. */
#rpPlays.flat .row{padding:var(--sp-6) 0 var(--sp-6) var(--sp-6)}
#rpPlays.flat .row.them{box-shadow:inset 3px 0 0 var(--tick-them)}
.rp-fltpanel{padding:14px 0;border-radius:0;background:none;border-top:1px solid var(--hair);border-bottom:1px solid var(--hair)}
.rp-fltpanel .sec-label{margin:8px 0 0}
.rp-fltpanel .sec-label:first-child{margin-top:0}
html[data-contrast="more"] .rp-fltpanel{border-top-color:var(--line-strong);border-bottom-color:var(--line-strong)}

/* ---------- Direction A: the separate pages ---------- */
/* Titles that are h2s become labels (a Hall's season, a media month, Delete account): the body font, no capitals; sticky heads keep their bleed */
h2.sec-label,h3.sec-label{font-family:var(--body)}
h2.sec-label{text-transform:none}
.month-head.sec-label{margin:var(--sp-7) calc(-1 * var(--gutter)) 0;padding:var(--sp-6) var(--gutter) var(--sp-3)}
.mw-month.sec-label{margin:var(--sp-7) 0 0}
.season-head.sec-label{display:flex}
#playersBox>.sec-label:first-child{margin-top:var(--sp-6)}
.legal-doc h2{font:700 var(--fs-16)/1.3 var(--body);letter-spacing:0;text-transform:none;margin:var(--sp-8) 0 0}
/* Family: the Halls page's group heads are labels; the plan-holder note and the shared-storage card are flat blocks */
#hallsView .group-head{margin:var(--sp-7) 0 0}
#hallsView .group-head .sec-label{margin:0}
.card.flat.note-flat{flex-direction:column;align-items:flex-start;gap:var(--sp-2)}
.card.flat.store-card{align-items:stretch}
/* Plans (and sign-in choices): a flat list of choices, the chosen one marked with the radio dot, not a ring */
.plan-list.flat{gap:0}
.list.flat .plan-opt{border-radius:0;background:none;box-shadow:none;padding:14px 0;border-bottom:1px solid var(--hair)}
.list.flat .plan-opt[aria-pressed="true"]{background:none;box-shadow:none}
.list.flat .plan-opt[aria-pressed="true"] .radio-dot{background:var(--fg);color:var(--bg)}
.pick-list.flat{gap:0;border-top:1px solid var(--hair);border-bottom:1px solid var(--hair)}
.pick-list.flat .pick-card{border-radius:0;background:none;box-shadow:none;padding:14px 0;border-bottom:1px solid var(--hair)}
.pick-list.flat .pick-card:last-child{border-bottom:0}
.pick-list.flat .pick-card[aria-pressed="true"]{background:none;box-shadow:none}
html[data-contrast="more"] .pick-list.flat{border-top-color:var(--line-strong);border-bottom-color:var(--line-strong)}
html[data-contrast="more"] .list.flat .plan-opt{outline:none;border-bottom-color:var(--line-strong)}
/* Invite, the memory's "kept" block: flat text blocks between hairlines */
.card.flat.invite{display:block;padding:var(--sp-7) var(--gutter);border-left:0;font-size:var(--fs-16)}
.card.flat.invite h1{font:700 var(--fs-20)/1.25 var(--body);letter-spacing:0;text-transform:none}
.card.flat.invite p{margin:var(--sp-3) 0 0}
.card.flat.kept{align-items:stretch}
/* Error page: the what-happened line is a flat block; the zamboni page's rink keeps its ice shine but not a box (that rule is in the page) */
.oops .detail{padding:14px 0;border-left:0;border-radius:0;background:none;border-top:1px solid var(--hair);border-bottom:1px solid var(--hair)}
html[data-contrast="more"] .oops .detail{border-top-color:var(--line-strong);border-bottom-color:var(--line-strong)}

/* ---- Directions: which map app (lib/maps.js) ---- */
.map-pick .row{min-height:60px}
.map-pick .map-tile{display:flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;border-radius:var(--r-ctl);background:var(--raised);color:var(--fg)}
.map-pick .muted{margin:0 0 var(--sp-4)}
.map-remember{display:flex;align-items:center;gap:var(--sp-6);min-height:44px;margin-top:var(--sp-4);font-size:var(--fs-14);color:var(--muted)}
.map-remember input{width:22px;height:22px;margin:0;accent-color:var(--fg)}

/* ---- Home (stage 2b): the live hero, the tight Next up hero, a row for each other team, the latest replay's strip, the other teams' replay rows (feed.js) ---- */
#homeList>.hero.tight{gap:var(--sp-2);padding:var(--sp-6) var(--gutter) var(--sp-7)}
.hm-main,.hm-row{display:flex;min-width:0;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.hm-title{min-width:0;font:var(--t-heading);line-height:1.05;letter-spacing:.02em;overflow-wrap:anywhere}
#homeList>.hero.tight .rc-kid{margin-top:var(--sp-2)}
/* the live hero: LIVE (or a grey NOW) with the period, the title and the score, Watch now, Mark plays / Keep score */
.badge.now{background:var(--raised);color:var(--fg);font-family:var(--display);letter-spacing:.06em}
.badge.now::before{content:none}
.hm-top{display:flex;align-items:center;gap:var(--sp-4);font:var(--t-label);color:var(--muted);min-width:0}
.hm-main{align-items:center;gap:var(--sp-6);width:100%}
.hm-words{display:flex;flex-direction:column;gap:var(--sp-1);flex:1;min-width:0}
.hm-sub{color:var(--muted);font-size:var(--fs-14);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hm-score{flex:none;display:flex;align-items:baseline;gap:var(--sp-3);font:var(--t-hero);line-height:1;font-variant-numeric:tabular-nums}
.hm-score i{font-style:normal;font-size:var(--fs-28);color:var(--muted)}
.hm-live .btn.big{margin-top:var(--sp-2)}
.hm-live .live-actions>.btn:nth-child(n):not(:only-child),.hm-nx .live-actions>.btn:nth-child(n):not(:only-child){grid-column:auto}   /* (side by side, even when only two; a lone Keep score stays across) */
/* a row for each other team: the date column (weekday, day, the team's dot), the words, the answers or the score */
.hm-list{border-top:1px solid var(--hair)}
.hm-nx{border-bottom:1px solid var(--hair)}
.hm-nx>.hm-row,.hm-liverow>.hm-row,.hm-rr>.hm-row{align-items:center;gap:var(--sp-6);flex:1;min-width:0;min-height:60px}
.hm-nx>.hm-row{width:100%}   /* (a button is as wide as its text unless told: the row is the screen's width and the text column gives way) */
.hm-words .hm-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hm-top>span,.rp-meta{min-width:0;overflow-wrap:anywhere}
.hm-date{flex:none;width:40px;display:flex;flex-direction:column;align-items:center;gap:var(--sp-1);color:var(--muted)}
.hm-date.game{color:var(--accent-text)}
.hm-words .hm-title{font:var(--t-title);line-height:1.1}
.hm-sts{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:var(--sp-1)}
.hm-hero{display:flex;flex-direction:column;gap:var(--sp-4);min-width:0}   /* (Home's hero card, and what sits under it: Gamecast, when to arrive and Directions, the reply card) */
.hm-hero .reply-card.bare{margin:0}
.hm-hero .rc-btn{min-height:var(--ctl-lg)}
.hm-hero .rc-need{align-self:flex-start;height:28px;display:inline-flex;align-items:center;padding:0 var(--sp-6);border-radius:var(--r-pill);font-size:var(--fs-12)}
.hm-nx.hm-gc,.hm-nx.live.hm-gc{padding:0 0 var(--sp-4);border-bottom:0}   /* (another team's game: a compact card, its answers or Gamecast under it) */
.hm-list:has(>.hm-gc){border-top:0}
.hm-nx.hm-gc .hm-sts{flex-direction:row;justify-content:flex-end;gap:var(--sp-6);padding:var(--sp-2) var(--sp-6) 0}
.hm-nx.hm-gc .live-actions{margin-top:var(--sp-3);padding-left:var(--sp-6)}
.hm-sts .ev-who{flex:none;max-width:100%}   /* (the answers are the Schedule's: .ev-who to answer, .ev-said yes / no) */
.hm-liverow,.hm-rr{display:flex;align-items:center;gap:var(--sp-6)}
.hm-nx.live{padding:var(--sp-4) 0 var(--sp-6) var(--sp-6)}
.hm-nx.live .hm-date .badge{margin:0}
.hm-nx.live .live-actions{margin-top:var(--sp-4);padding-left:52px}
.hm-nx.live .live-actions .btn{min-width:0}
.hm-side{flex:none;display:flex;align-items:center;gap:var(--sp-4)}
.hm-nx.live .hm-score{font:var(--t-title)}
/* the W / L / T tile */
.hm-res{display:inline-grid;place-items:center;flex:none;width:24px;height:24px;border-radius:var(--r-tag);background:var(--muted);color:var(--navy);font:800 var(--fs-16)/1 var(--display)}
.hm-res.win{background:var(--good);color:var(--on-good)}
.hm-res.loss{background:var(--danger);color:var(--on-danger)}
.hm-strip{position:absolute;left:0;right:0;bottom:0;z-index:1;display:flex;align-items:center;gap:var(--sp-4);padding:var(--sp-6) var(--sp-6);background:var(--veil-75);color:var(--on-video);font-weight:700}
.hm-strip>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* the other teams' replays */
.hm-thumb{position:relative;flex:none;display:grid;place-items:center;width:64px;height:36px;border-radius:var(--r-tag);background:var(--raised);color:var(--muted);overflow:hidden}
.hm-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hm-thumb b{font:700 var(--fs-14) var(--display)}
.hm-rr .ev-end{flex:none}   /* (the Schedule's result group: score over the tile, tile and ▶ bottoms level) */

/* ---- Schedule views: one row format, game days in the grids, the filter funnel (schedule.js, family.js) ---- */
#scheduleMain.section{margin-top:0}   /* (the space above the List | Week | Month bar is its own padding-top, so it rests where it sticks) */
.filter-btn{position:relative;width:var(--ctl-sm);height:var(--ctl-sm)}
.filter-dot{position:absolute;top:9px;right:7px;width:9px;height:9px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 2px var(--bg)}
body.filtering{--fl-h:46px}
.filter-line{position:sticky;top:calc(var(--header-h) + var(--top));z-index:calc(var(--z-header) - 1);display:flex;align-items:center;gap:var(--sp-4);height:46px;padding:0 var(--gutter);background:var(--bg);font-size:var(--fs-14);color:var(--muted)}
.filter-pill{display:inline-flex;align-items:center;gap:var(--sp-2);height:var(--ctl-xs);padding:0 var(--sp-1) 0 var(--sp-6);border-radius:var(--r-pill);background:var(--raised);color:var(--fg);font-weight:700}
.filter-pill button{position:relative;display:grid;place-items:center;width:var(--ctl-xs);height:var(--ctl-xs);padding:0;border:0;border-radius:50%;background:none;color:var(--muted);cursor:pointer}
.filter-pill button::after{content:"";position:absolute;inset:-6px}   /* (a 44px target around the 32px cross) */
.filter-sub{margin:calc(-1 * var(--sp-4)) 0 0}
.f-on{display:inline-flex;color:var(--accent-text)}
.sch-day.game{color:var(--on-tint-gold);background:var(--tint-gold)}
.sch-day.today.game{box-shadow:var(--ring)}
.sch-day.game[aria-pressed="true"]{background:var(--fg);color:var(--bg)}
.tl-item.ev{--band-w:18px;--ev-pad:var(--sp-6);--ev-gap:var(--sp-4);display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:var(--sp-3);align-items:start;padding:var(--ev-pad) 0;contain-intrinsic-size:auto 120px}
.tl-item.ev.past{--ev-pad:3px;align-items:center;min-height:45px;box-sizing:border-box}   /* (a past row is 45px tall, the whole row a 44px+ tap target) */
.tl-item.ev>:not(.ev-band){grid-column:2;min-width:0}
.ev-line{display:flex;align-items:center;gap:var(--sp-4);min-height:calc(60px - 2 * var(--ev-pad))}
.ev.past .ev-line{min-height:calc(45px - 2 * var(--ev-pad) - 1px)}   /* (45 less the padding and the hairline: the line, the tap target, fills the row) */
.ev-open{flex:1;align-self:stretch;min-width:0;display:flex;align-items:stretch;gap:var(--ev-gap);min-height:var(--tap);padding:0;border:0;background:none;color:var(--fg);font:inherit;text-align:left;cursor:pointer}
.ev.past .ev-open{position:relative;align-items:center;min-height:0}
.ev.past .ev-open::before{content:"";position:absolute;inset:-3px 0}   /* (the 45px row is the tap target) */
/* the one rail of a row (the owner's mockup, Round 5): the type band, a direct child of the item in its own grid column down the whole row (the line, the ask block, the
   actions). The team's colour is its own 3px left border, so colour and type are one piece. The tint is 18px (+1px of padding on the left), always: width, min and max
   are set together, so nothing can make it thicker. The icon (16px) is on top, the word runs down under it, top to bottom. Its content sets the row's least height. */
.ev-band{grid-column:1;grid-row:1 / span 3;align-self:stretch;box-sizing:content-box;flex:none;width:var(--band-w);min-width:var(--band-w);max-width:var(--band-w);display:flex;flex-direction:column;align-items:center;gap:1px;padding:var(--sp-1) 0 var(--sp-1) 1px;border:0;border-radius:var(--r-tag);overflow:hidden;cursor:pointer}
.ev-band.coloured{border-left:3px solid var(--c);border-radius:2px var(--r-tag) var(--r-tag) 2px}
.ev-bi{display:flex;flex:none;justify-content:center;width:100%;writing-mode:horizontal-tb}   /* (icons are always upright, but ...) */
.ev-band.tournament .icon{transform:rotate(-90deg)}   /* (... Tournament's is turned up, Practice's down) */
.ev-band.practice .icon{transform:rotate(90deg)}
.ev-band b{display:block;max-height:100%;overflow:hidden;writing-mode:vertical-rl;font:700 var(--fs-12)/1 var(--display);letter-spacing:.1em;text-transform:uppercase;white-space:nowrap}
.ev-band.league{background:var(--ty-league-bg);color:var(--ty-league-fg)}
.ev-band.non{background:var(--ty-nonleague-bg);color:var(--ty-nonleague-fg)}
.ev-band.practice{background:var(--ty-practice-bg);color:var(--ty-practice-fg)}
.ev-band.playoffs{background:var(--ty-playoffs-bg);color:var(--ty-playoffs-fg)}
.ev-band.tournament{background:var(--ty-tournament-bg);color:var(--ty-tournament-fg)}
.ev-band.event{background:var(--ty-other-bg);color:var(--ty-other-fg)}
/* a game that was played: the band shows its icon only, vertically centred, and is narrower (the type is in its aria-label). Option C (the word too) is deleting the
   rule that hides the word (`.ev.past .ev-band b`): the band's content sets the row's height, so a row that needs to grow does so by itself. */
.ev.past .ev-band b{display:none}
.ev.past .ev-band{justify-content:center;align-items:flex-start;width:10px;min-width:10px;max-width:10px;padding:0 var(--sp-1) 0 calc(var(--sp-1) + 1px);overflow:visible;border-radius:4px}
.ev.past .ev-band.coloured{border-radius:2px 4px 4px 2px}
.ev.past .ev-band .icon{width:13px;height:13px;margin-left:-2px;stroke-width:2.4}
.ev.past .ev-bi{width:auto}
/* the left column: the time and what goes with it (a coming event), or the result (a game that was played) */
.ev-col{flex:none;width:76px;display:flex;flex-direction:column;align-items:flex-start;gap:var(--sp-2);color:var(--fg)}
.ev.past .ev-col{width:80px;justify-content:center}   /* (80: the rail is 8px narrower than a coming row's, so a past name starts where a coming name does, at 112px) */
.ev-when{font:700 var(--fs-12)/1.2 var(--body);color:var(--muted);white-space:nowrap}   /* (a past row with no score: its time, in the result's place) */
.ev.off .ev-col{color:var(--muted)}
.ev-time{display:block;white-space:nowrap}   /* (inline parts on one baseline, so it reads "6:30 PM") */
.ev-time b{font:700 calc(var(--fs-20) * 1.2)/1 var(--display);font-variant-numeric:tabular-nums}
.ev-time small{font:700 var(--fs-14)/1 var(--display);letter-spacing:.05em}
.ev-time.allday{font:700 var(--fs-14)/1.2 var(--display);letter-spacing:.05em}
.ev-in{font:700 var(--fs-12)/1.2 var(--body);color:var(--accent-text)}
.ev-arrive{font:var(--fs-12)/1.2 var(--body);color:var(--subtle)}
.ev-kids{align-self:stretch;display:flex;flex-direction:column;gap:var(--sp-1);margin-top:var(--sp-2);padding-top:var(--sp-3);border-top:1px solid var(--hair)}
.ev-kids .ev-said{font-size:var(--fs-13);line-height:1.3;overflow:hidden;text-overflow:ellipsis}
.ev-rs{display:flex;align-items:center;gap:var(--sp-3);cursor:pointer}
.ev-rs .ev-tile{width:22px;height:22px;font-size:var(--fs-14)}
.ev-sc{font:700 var(--fs-20)/1 var(--display);font-variant-numeric:tabular-nums;white-space:nowrap}
.ev-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--sp-1)}
.ev-top{display:flex;align-items:baseline;gap:var(--sp-4)}
.ev-title{flex:1;min-width:0;font-weight:600;overflow-wrap:anywhere}
.ev.game .ev-title{font:700 18px/1.1 var(--display)}   /* (18px: the mockup's, an owner decision outside the type scale; the audit lists it) */
.ev.past .ev-title{font-size:var(--fs-16);line-height:1.05}
.ev.past .ev-text{gap:0}
.ev.past .ev-vs{font-size:var(--fs-12)}
.ev-vs{margin-right:var(--sp-2);font:400 var(--fs-13) var(--body);text-transform:none;letter-spacing:0;color:var(--subtle)}
.ev .sub{display:block;color:var(--muted);font-size:var(--fs-13);overflow-wrap:anywhere}
.ev.past .sub{font-size:var(--fs-12);line-height:1.2}
.ev.off .ev-title{text-decoration:line-through;color:var(--muted)}
.ev-end{flex:none;display:flex;align-items:flex-end;gap:var(--sp-4)}
.tl-item.ev .ev-end{align-items:center}
.ev-res{min-width:30px;display:flex;flex-direction:column;align-items:flex-end;gap:var(--sp-2);cursor:pointer}
.ev-score{font:700 var(--fs-14)/1 var(--display);font-variant-numeric:tabular-nums;white-space:nowrap}
.ev-tile{display:grid;place-items:center;width:30px;height:30px;border-radius:var(--r-sm);font:700 var(--fs-20)/1 var(--display)}
.ev-tile.W{background:var(--good);color:var(--on-good)}
.ev-tile.L{background:var(--danger);color:var(--on-danger)}
.ev-tile.T{background:var(--muted);color:var(--navy)}
.ev-tile.play{background:var(--accent);color:var(--navy)}
.ev-play{display:flex;padding:7px;margin:-7px;color:inherit}
.tl-item.ev.past .ev-rs{gap:var(--sp-3)}   /* (the tile, 6px, then the score) */
.tl-item.ev.past .ev-rs .ev-tile{width:32px;height:32px;font-size:var(--fs-20)}   /* (the same as the replay's tile) */
.ev.past .ev-sc{font-size:var(--fs-16)}
.ev.past .ev-end .ev-tile.play{width:32px;height:32px}   /* (the .ev-play padding keeps its tap area above 44px) */
.ev-said{font:700 var(--fs-14) var(--body);white-space:nowrap}
.ev-said.yes{color:var(--good)}
.ev-said.no{color:var(--muted)}
/* a child still to answer: a line the width of the row, a name and two buttons that share the rest */
.ev-ask{display:flex;flex-direction:column;gap:var(--sp-2);margin-top:var(--sp-4)}   /* (in the body column: the name is the time column's width, so Going starts where the title does) */
.ev-kid{display:flex;align-items:center;gap:var(--ev-gap)}
.ev-ask .ev-who{flex:none;width:76px}
.ev-ask .ev-btn{flex:1}
.ev-who{flex:1;min-width:0;display:flex;align-items:center;gap:var(--sp-3);font:700 var(--fs-14) var(--body);color:var(--accent-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ev-who::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:var(--accent)}
.ev-btn{flex:none;min-height:var(--ctl-sm);padding:0 var(--sp-6);border:0;border-radius:var(--r-pill);background:var(--raised);color:var(--fg);font:var(--t-label-strong);cursor:pointer}
.ev-btn:disabled{opacity:.6;cursor:default}
.ev .tl-actions{margin-top:var(--sp-4);padding:0}
/* a day's heading in the List (sticky under the List | Week | Month bar, so the rows scroll beneath it) and in the Week (flat) */
.ev-dayhead{position:sticky;top:calc(var(--header-h) + var(--top) + var(--fl-h,0px) + var(--sched-head-h));z-index:2;box-sizing:border-box;height:var(--dayhead-h);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:var(--sp-4);margin:0 calc(-1 * var(--gutter));padding:0 var(--gutter);background:var(--bg)}
.ev-dayhead::after{content:"";position:absolute;left:var(--gutter);right:var(--gutter);bottom:0;height:1px;background:var(--hair)}   /* (between the gutters, like the rows' own rules) */
.ev-dayhead b{justify-self:start;white-space:nowrap;font:700 var(--fs-20)/1 var(--display);letter-spacing:.05em;text-transform:uppercase;color:var(--accent-text)}
.ev-dayhead .ev-c{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0}   /* (the middle column: the same spot on every header, the grid's 1fr | auto | 1fr keeps it centred whatever the date's width) */
.ev-dayhead .ev-n{max-width:100%;font:var(--fs-12)/1.2 var(--body);letter-spacing:0;text-transform:none;color:var(--subtle);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}   /* ("3 events": centred, only when the day has two or more) */
.ev-dayhead .ev-mo{justify-self:end;font:var(--fs-12) var(--body);letter-spacing:0;text-transform:none;color:var(--subtle);white-space:nowrap}   /* (how far the day is from today: "Today", "In 3 days", "2 days ago"; never wraps) */
@media (max-width:339px){.ev-dayhead .ev-n{display:none}}   /* (too narrow for the date, the count and the distance: the count goes first, the distance always shows) */
/* the repeat icon: the bottom right of the text, on the last detail line (above Going / Can't go) */
.tl-item.ev .ev-last{display:flex;align-items:flex-end;gap:var(--sp-4)}
.tl-item.ev .ev-last .sub{flex:1;min-width:0}
.tl-item.ev .ev-rep{flex:none;margin-left:auto;display:grid;place-items:center;width:var(--sp-9);height:var(--sp-9);color:var(--subtle)}

/* Team replays
   The Watch tab's replays page (engines/teamreplays.js) and the Replay page's back link, which names the team. Tiles two across; the first
   tile of the one-team landing is full width. */
.tr{padding-bottom:var(--sp-8)}
.tr-info{margin:var(--sp-2) var(--gutter) 0;padding-left:var(--sp-4);border-left:3px solid var(--accent);font-size:var(--fs-14);color:var(--muted)}
.tr-seg{margin:var(--sp-6) var(--gutter) var(--sp-3)}
.tr-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-7) var(--sp-6);padding:var(--sp-6) var(--gutter) 0}
.tr-tile{display:block;min-width:0;min-height:var(--tap);color:var(--fg);text-decoration:none}
.tr-tile.first{grid-column:1/-1}
.tr-still{position:relative;display:block;aspect-ratio:16/9;border-radius:var(--r-ctl);overflow:hidden;background:var(--raised)}
.tr-still.ph{background:linear-gradient(160deg,color-mix(in srgb,var(--c) 45%,var(--raised)),var(--raised) 85%)}
.tr-still img{display:block;width:100%;height:100%;object-fit:cover}
.tr-play{position:absolute;inset:0;display:grid;place-items:center;color:var(--on-video);opacity:.85}
.tr-play .icon{width:28px;height:28px;fill:currentColor}
.tr-tag,.tr-dur{position:absolute;display:flex;align-items:center;height:20px;padding:0 var(--sp-3);border-radius:var(--r-tag);background:rgba(5,12,23,.8);color:var(--on-video);font:var(--t-caption-strong)}
.tr-tag{left:var(--sp-3);top:var(--sp-3)}
.tr-dur{right:var(--sp-3);bottom:var(--sp-3)}
.tr-title{display:block;margin-top:var(--sp-4);font:var(--t-body-strong);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tr-sub{display:block;font-size:var(--fs-14);color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tr-load,.tr-none,.tr-msg{margin:var(--sp-8) var(--gutter);text-align:center}
.tr-empty{margin:var(--sp-8) var(--gutter);text-align:center}
.tr-season{display:flex;align-items:center;gap:var(--sp-2);min-height:var(--tap);padding:0 var(--sp-6) 0 var(--sp-7);border:0;border-radius:var(--r-pill);background:var(--raised);color:var(--fg);font:var(--t-body-strong);cursor:pointer}
.rpage .back-l{width:auto;gap:var(--sp-1);padding:0 var(--sp-5) 0 var(--sp-2);color:var(--fg);font:var(--t-body-strong);text-decoration:none;max-width:60vw}
.rpage .back-l span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Replay full screen
   A phone has Full screen as the button on the picture (#fsCorner, the Watch tab's .fs-corner), always, whatever Hide controls says; the
   one in the control row (#full) is for a tablet or computer. Full is the Fullscreen API on #player, or on an iPhone .theater: the
   player fixed over the page. Full lays the controls over the bottom of the picture (.ovl) and they fade after 3 s (.idle). */
@media not all and (min-width:768px) and (min-height:501px){.rpage #full{display:none!important}}
@media (min-width:768px) and (min-height:501px){#fsClose{display:none!important}}
#player.isfull .fs-corner,body.rpanel .fs-corner{display:none!important}
body.rland #player .fs-corner{right:max(10px,var(--right));bottom:calc(var(--deck-top,0px) + 13px)}   /* (above the band) */
#player.isfull .theater-x{right:max(8px,var(--right))}
#player.rp.ovl.isfull .rp-pip{top:calc(60px + var(--top))}
#player.rp.ovl.isfull .rp-pill{top:calc(12px + var(--top));left:max(14px,var(--left))}
/* Fit shows the whole picture; Fill (a double tap in the middle) covers the screen. */
#player.fill.isfull video,body.rland #player.fill video{object-fit:cover}
#player.idle :is(#deck,#playsLane,.theater-x){opacity:0;pointer-events:none;transition:opacity .25s}
/* The iPhone's full screen: what #player:fullscreen does, on a box fixed over the page. */
body.theater{overflow:hidden}
body.theater #player.theater{position:fixed;inset:0;z-index:var(--z-sheet);width:100vw;height:100dvh;display:flex;flex-direction:column;background:var(--video-bg)}
body.theater #player.theater.rp{display:block}
body.theater #player.theater #stage{flex:1;min-height:0;width:100%;margin:0;aspect-ratio:auto;max-height:none;height:auto;border-radius:0}
body.theater #player.theater.rp #stage{height:100%}
body.theater #player.theater:not(.ovl):not(.rp) #deck{margin:0;padding:6px max(var(--gutter),env(safe-area-inset-right)) calc(6px + var(--bottom)) max(var(--gutter),env(safe-area-inset-left));gap:0;background:var(--video-bg)}
body.theater #player.theater .legend{display:none}

/* Watch landing and Game day */
.wl-head{display:flex;align-items:center;gap:var(--sp-3);min-width:0}
.wl-head .title{margin:0}
.wl-back{flex:none;font:var(--t-body-semi)}
.wl-back .icon{flex:none}
.wl-head .wl-chip{flex:none;min-width:0}
.wl-head .wl-chip .dot{margin-right:0}
.wl-pinbtn[aria-pressed="true"]{color:var(--accent-text)}
.wl-season{flex:none;margin-left:auto}
#wvLand{padding-bottom:var(--sp-8)}
.wl-top{display:flex;flex-direction:column;gap:var(--sp-6);margin-top:var(--sp-6)}
.wl-top:empty{margin-top:0}
.wl-body,.wl-one{margin-top:var(--sp-7)}
.wl-foot{margin-top:var(--sp-8)}
.wl-label{display:block;margin-bottom:var(--sp-4)}
.wl-top .wl-label{margin-bottom:0}
.wl-yours,.wl-live,.wl-tail{display:flex;flex-direction:column;gap:var(--sp-4);min-width:0}
.wl-yours>.wl-label,.wl-live>.wl-label{margin-bottom:0}
.wl-tail:empty{display:none}
.wl-card{display:flex;flex-direction:column;gap:var(--sp-3)}
.wl-card .live-actions{margin:0}
.wl-status{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-6);min-height:var(--tap);border-bottom:1px solid var(--hair)}
.wl-status-text{min-width:0;color:var(--muted);font-size:var(--fs-14)}
.wl-status .btn{flex:none}
.wl-result{display:flex;align-items:center;gap:var(--sp-3)}
.wl-go{margin-top:var(--sp-2)}
.wl-go .gl-dot{flex:none;margin-right:var(--sp-4)}
.gl-dot{width:10px;height:10px;border-radius:50%;background:var(--live)}
.gl-list{margin-top:var(--sp-4)}
.gl-pick{position:relative;display:flex;align-items:center;gap:var(--sp-4);border-bottom:1px solid var(--hair)}
.gl-pick:last-child{border-bottom:0}
.gl-pick .row{flex:1;min-width:0;border-bottom:0;padding-left:var(--sp-9)}
.gl-pick .t-line{left:8px;width:4px;top:12px;bottom:12px}
.gl-pick.paused .t-line{opacity:.45}
.gl-pick.paused .row .name{color:var(--muted)}
.gl-allow{flex:none;margin-right:var(--sp-4)}
.wl-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-8) var(--sp-6)}
.wl-tile{position:relative;display:flex;flex-direction:column;gap:var(--sp-3);min-width:0;padding-left:var(--sp-6)}
.wl-tile .t-line{top:0;bottom:0}
.wl-still{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;border-radius:var(--r-ctl);background:var(--raised)}
.wl-still .thumb{display:block;width:100%;height:100%;object-fit:cover;border-radius:0}
.wl-still .play-badge{position:absolute;inset:0;margin:auto;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--glass-navy);border:2px solid var(--white);color:var(--white)}
.wl-still .play-badge .icon{margin-left:var(--sp-1)}
.wl-dur{position:absolute;right:6px;bottom:6px;padding:1px var(--sp-3);border-radius:var(--r-tag);background:var(--veil-72);color:var(--on-video);font:var(--t-caption-strong)}
.wl-ph{position:absolute;inset:0;display:grid;place-items:center;background:color-mix(in srgb,var(--tc,var(--muted)) 28%,var(--raised))}
.wl-ph .icon{width:32px;height:32px}
.wl-ph .rink-still{width:100%;height:100%}
.wl-none{position:absolute;left:8px;bottom:6px;right:8px;color:var(--fg);font:var(--t-caption-strong)}
#wlBody.wl-body{align-items:stretch;padding:0 var(--gutter);cursor:auto}   /* (and .wl-body's padding:0 would drop the .pad gutter: the tiles would touch the screen edges) */   /* (.wl-body is also the name of the tile's button: its flex-start would shrink the tile grid to the width of its words, on a phone too) */
.wl-body{display:flex;flex-direction:column;align-items:flex-start;gap:var(--sp-1);min-height:var(--tap);padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.wl-name{display:flex;align-items:center;gap:var(--sp-3);max-width:100%;font:var(--t-title);line-height:1.1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wl-pin{display:inline-flex;flex:none;color:var(--accent-text)}
.wl-line,.wl-next-line{max-width:100%;color:var(--muted);font-size:var(--fs-14);line-height:1.25}
.wl-next-line.live{display:inline-flex;align-items:center;gap:var(--sp-3);color:var(--fg)}
.wl-next-line .dot{margin-right:0}
.wl-seasons{padding-bottom:var(--sp-8)}
.wl-seasons .label{display:block;margin:var(--sp-7) 0 var(--sp-4)}
.wl-note{margin:var(--sp-6) 0 0}
.wl-head .wl-chip{min-height:var(--tap)}

/* Find a team and Ask to join (engines/findteam.js; the blocked list in Team settings and the request card in the inbox share its look) */
.find-panel .chat-body{display:flex;flex-direction:column;gap:var(--sp-6)}
.find-chips{flex-wrap:nowrap;overflow-x:auto;padding-bottom:var(--sp-1)}
.find-chips .chip{flex:none}
.find-locrow{display:flex;flex-direction:column;align-items:flex-start;gap:var(--sp-4)}
.find-hint,.find-count{margin:0}
.find-list .find-row,.find-more-box .find-row{display:flex;align-items:center;gap:var(--sp-6);min-height:var(--row-tall);padding:var(--sp-6) var(--sp-6);border-bottom:1px solid var(--hair)}
.find-row .grow{display:flex;flex-direction:column;min-width:0}
.find-row .name{font:var(--t-body-strong);overflow-wrap:anywhere}
.find-row .sub{color:var(--muted);font-size:var(--fs-14)}
.find-row .btn,.find-row .tag{flex:none}
.find-state{align-self:center}
.find-row .find-info{padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.find-card-line{margin:0 0 var(--sp-2)}
.find-game{display:flex;align-items:center;gap:var(--sp-6)}
.find-game-date{flex:none;min-width:3.5em}
.find-game-score{flex:none;font:var(--t-body-strong)}
.find-none{text-align:center}
.find-none h3{margin:0}
.find-none p{margin:0}
.find-help .row{min-height:var(--tap)}
.find-more-box{display:flex;flex-direction:column;gap:var(--sp-4);margin-top:var(--sp-6)}
.find-mine{display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-4);padding:var(--sp-6);margin-top:var(--sp-4);border:1px solid var(--line-strong);border-radius:var(--r-card);background:var(--surface)}
.find-mine.waiting{opacity:.9}
.find-mine .grow{display:flex;flex-direction:column;min-width:0;flex:1 1 180px}
.find-mine .name{font:var(--t-body-strong)}
.find-mine .sub{color:var(--muted);font-size:var(--fs-14)}
.ask-choices{display:flex;flex-direction:column;gap:var(--sp-4)}
.ask-choice{display:flex;flex-direction:column;align-items:flex-start;gap:var(--sp-1);width:100%;min-height:var(--tap);padding:var(--sp-6) var(--sp-6);border:1px solid var(--line-strong);border-radius:var(--r-ctl);background:var(--bg);color:var(--fg);font:inherit;text-align:left;cursor:pointer}
.ask-choice[aria-checked="true"]{border-color:var(--fg);box-shadow:inset 0 0 0 1px var(--fg)}
.ask-choice .name{font:var(--t-body-strong)}
.ask-choice .sub{color:var(--muted);font-size:var(--fs-14)}
.ask-players{display:flex;flex-direction:column;gap:var(--sp-4);padding:0 var(--sp-2)}
.ask-hint{margin:0}
.jd-chips{margin-bottom:var(--sp-4)}

/* Team details (lib/teamdetails.js): the error line under a field. */
.td-err{margin:0;color:var(--danger);font-size:var(--fs-14);font-weight:600}
.field .input+.input{margin-top:var(--sp-4)}

/* ---- Team colour sheet (engines/colours.js) ---- */
.col-body{display:flex;flex-direction:column;gap:var(--sp-6)}
.col-preview{display:flex;flex-direction:column;gap:var(--sp-4);padding:var(--sp-6) var(--sp-6);border-radius:var(--r-card);background:var(--bg)}
.col-sample{position:relative;display:flex;align-items:center;gap:var(--sp-4);min-height:40px;padding-left:var(--sp-6)}
.col-sample .grow{display:flex;flex-direction:column;min-width:0;flex:1}
.col-sample .name{font:var(--t-body-strong)}
.col-sample .sub{color:var(--muted);font-size:var(--fs-14)}
.col-who{display:flex;align-items:center;gap:var(--sp-3);font-size:var(--fs-14);font-weight:700}
.col-chip{align-self:flex-start;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:var(--sp-2) var(--sp-6);border-radius:var(--r-pill);background:var(--c);color:var(--on-c,#0B1F3A);font-size:var(--fs-14);font-weight:700}
.col-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:var(--sp-2) var(--sp-1)}
.col-sw{min-height:78px;min-width:var(--tap);border:0;background:none;color:var(--fg);display:flex;flex-direction:column;align-items:center;gap:var(--sp-2);font:var(--t-caption);cursor:pointer}
.col-dot{width:38px;height:38px;border-radius:999px;background:var(--c);display:flex;align-items:center;justify-content:center;color:var(--on-c,#0B1F3A)}
.col-dot.none{background:conic-gradient(#FF8A8A,#E8D44D,#5BD38C,#5BC2E7,#A78BFA,#F472B6,#FF8A8A)}
.col-dot svg{width:20px;height:20px}
.col-sw[aria-pressed="true"]{font-weight:700}
.col-sw[aria-pressed="true"] .col-dot{box-shadow:0 0 0 3px var(--raised),0 0 0 5px var(--fg)}
.col-ini{font-size:var(--fs-12);font-weight:700;color:var(--muted)}
.col-custom{display:flex;flex-direction:column;gap:var(--sp-4);padding:var(--sp-6) var(--sp-6);border-radius:var(--r-card);background:var(--bg)}
.col-fields{display:flex;align-items:flex-end;gap:var(--sp-6)}
.col-pick{display:flex;align-items:center;gap:var(--sp-4);min-height:var(--tap);position:relative;cursor:pointer;font-weight:600}
.col-sq{flex:none;width:44px;height:44px;border-radius:var(--r-ctl);background:var(--c);box-shadow:inset 0 0 0 2px var(--line-strong)}
.col-pick:focus-within .col-sq{outline:2px solid var(--accent);outline-offset:2px}
.col-hex{flex:1;min-width:0}
.col-note{display:flex;flex-direction:column;align-items:flex-start;gap:var(--sp-4);margin:0;padding:var(--sp-6) var(--sp-6);border-radius:var(--r-card);background:var(--bg);color:var(--fg);font-size:var(--fs-14)}
#colNotes{display:flex;flex-direction:column;gap:var(--sp-4)}
#colNotes:empty{display:none}

/* Teams landing (engines/teamsland.js) */
.tl-search{display:flex;align-items:center;gap:var(--sp-3);min-height:var(--tap);margin-top:var(--sp-2);padding:0 var(--sp-2) 0 var(--sp-7);border-radius:var(--r-pill);background:var(--surface);color:var(--muted)}
.tl-search[hidden]{display:none}
.tl-search>.icon{flex:none}
.tl-q{flex:1;min-width:0;height:var(--tap);padding:0;border:0;background:none;color:var(--fg);font:inherit;font-size:var(--fs-16)}
.tl-q::placeholder{color:var(--muted)}
.tl-q:focus{outline:none}
.tl-search:focus-within{box-shadow:0 0 0 2px var(--accent)}
.tl-view{display:flex;align-items:center;gap:var(--sp-4);margin-top:var(--sp-6)}
.tl-switch{display:flex;border-radius:var(--r-pill);background:var(--surface)}
.tl-switch button{display:inline-flex;align-items:center;justify-content:center;width:var(--ctl);height:var(--tap);border:0;border-radius:var(--r-pill);background:none;color:var(--muted);cursor:pointer}
.tl-switch button[aria-pressed="true"]{background:var(--fg);color:var(--bg)}
.tl-group{display:inline-flex;align-items:center;gap:var(--sp-3);flex:none;font-size:var(--fs-14)}
.tl-count{margin-left:auto;color:var(--muted);font-size:var(--fs-14);white-space:nowrap}
@media (max-width:359px){.tl-view .tl-count{display:none}}   /* (320 px: the switch, the Group by player chip with its check and the count do not all fit) */
.tl-label{display:block;margin:var(--sp-7) 0 var(--sp-3)}
.tl-none{margin:var(--sp-4) 0}
#tlBody{margin-top:var(--sp-6)}
.tl-section+.tl-section{margin-top:var(--sp-7)}
.tl-sec-head{display:flex;align-items:center;gap:var(--sp-4);margin:var(--sp-6) 0 var(--sp-6)}
.tl-sec-head h2{flex:0 1 auto;min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:var(--t-title);letter-spacing:.02em}
.tl-sec-mark{display:inline-grid;place-items:center;min-width:28px;height:28px;padding:0 var(--sp-3);border-radius:var(--r-pill);background:var(--raised);font:var(--t-caption-strong)}
.tl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:var(--sp-7) var(--sp-6)}
/* Teams landing: each team is a game card (engines/teamsland.js, teamcard.js). The list is one panel of rows divided by hairlines; the live and today rows carry the card's buttons. */
.tl-pin{display:inline-flex;flex:none;color:var(--accent-text)}
.tl-tag{display:inline-block;flex:none;padding:0 var(--sp-3);border-radius:var(--r-tag);background:var(--raised);color:var(--fg);font:var(--t-caption-strong)}
.gcd-name{display:flex;align-items:center;gap:var(--sp-3);min-width:0}
.gcd-name .gcd-title{flex:0 1 auto}
.gcd-name :is(.tl-tag,.tl-pin,.chat-pill){flex:none}
.tl-list{display:flex;flex-direction:column;overflow:hidden;border-radius:var(--r-card);background:var(--surface)}
.tl-list .gcd-team{border-radius:0;background:none;box-shadow:none;outline:none}
.tl-list .gcd-team+.gcd-team{border-top:1px solid var(--hair)}
.gcd-team:not(.gcd-hero) .gcd-title{text-transform:none;font:var(--t-body-strong);letter-spacing:0;line-height:1.2}
.gcd-team.one{grid-column:1/-1}
.gcd-team .gcd-main{min-height:var(--tap)}
.gcd-team.gcd-plain{padding-top:var(--sp-4);padding-bottom:var(--sp-4)}
.gcd-end{display:flex;flex:none;align-items:center;max-width:45%;color:var(--muted)}
.gcd-end .gcd-tag{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:var(--fs-14);letter-spacing:.02em;color:var(--fg)}
.gcd-mark.img{position:relative;overflow:hidden;box-shadow:inset 0 0 0 2px var(--c)}
.gcd-mark .tl-img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}   /* (the whole picture, never cropped: the team colour fills the sides) */
.gcd-pic .gcd-mark.img{position:absolute;inset:0;width:auto;height:auto;border-radius:inherit;box-shadow:none;background:color-mix(in srgb,var(--c) 22%,var(--raised))}
.gcd-extra .chat-pill{margin:0}
.gcd-extra{display:flex;gap:var(--sp-2)}
.tl-band{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr));gap:var(--sp-6);align-items:start}
.tl-slim{display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-3);min-height:var(--tap);margin-top:var(--sp-7);color:var(--muted);font-size:var(--fs-14)}
.tl-slim .link-btn{min-height:var(--tap)}
.tl-empty{padding:var(--sp-8) 0;text-align:left}
.tl-empty h2{margin:0 0 var(--sp-4);font:var(--t-heading);text-transform:uppercase}
.tl-empty .link-btn{min-height:var(--tap)}
/* First run (hub.js noTeamsHTML): the empty screen of a person with no team, and the waiting link above it (waiting.js) */
.first-run{display:flex;flex-direction:column;align-items:center;text-align:center;gap:var(--sp-4);padding-top:var(--sp-8)}
.first-run h2,.first-run p{margin:0}
.first-run p{max-width:300px}
/* (the owner-approved mockups: centred, the two buttons stacked full width, Find your team on top) */
.first-run .sheet-actions{flex-direction:column;align-self:center;width:100%;max-width:300px;margin:var(--sp-2) 0}
.first-run .sheet-actions .btn{width:100%}
.fr-icon{display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:50%;background:var(--tint-gold);color:var(--on-tint-gold)}
.fr-icon .icon{width:30px;height:30px}
.wait-slot{margin-bottom:var(--sp-4)}
.wait-slot[hidden]{display:none}
.wait-link{display:flex;align-items:center;gap:var(--sp-3);min-height:var(--tap);padding:0 var(--sp-6);border-radius:999px;background:var(--tint-gold);color:var(--on-tint-gold);font:var(--t-body-strong);text-decoration:none}
.wait-link .icon{flex:none;width:18px;height:18px}
.wait-link .wait-text{flex:1;min-width:0}
.wait-link .wait-go{flex:none;font:var(--t-label-strong);text-decoration:underline}
/* You: Invitations, Requests to join, and the no-team line (waiting.js) */
.you-sec{margin-bottom:var(--sp-6)}
.you-sec[hidden]{display:none}
.you-row .tav{flex:none}
.you-foot{margin:var(--sp-4) 0 0}
.you-links{display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-3)}
.you-links .link-btn{min-height:var(--tap)}
#tlFind,#tlReqs,#tlPast,#teamReqBox{margin-top:var(--sp-7)}
#tlFind:empty,#tlReqs:empty,#tlPast:empty,#teamReqBox:empty{margin-top:0}
#tlPast .label{display:block;margin:var(--sp-7) 0 var(--sp-3)}
#teamsHead[hidden]{display:none}

/* Watch sessions and end cards */
/* The end of a stream session, over the picture (session.js): FINAL, GAME OVER or STREAM ENDED, then Watch replay or Notify me, Keep watching and Close. */
.end-card{position:absolute;inset:0;z-index:4;display:flex;flex-direction:column;justify-content:center;gap:var(--sp-1);box-sizing:border-box;padding:var(--sp-1) calc(var(--sp-7) + var(--right,0px)) var(--sp-1) calc(var(--sp-7) + var(--left,0px));overflow:auto;background:var(--veil-82);color:var(--on-video)}
.end-card[hidden]{display:none}
.end-cap{font:700 var(--fs-12)/1.2 var(--body);letter-spacing:.08em;color:var(--accent-text)}
.end-main{font:700 var(--fs-20)/1.1 var(--display);text-transform:uppercase;overflow-wrap:anywhere}
.end-sub,.end-wait{margin:0;font:400 var(--fs-14)/1.2 var(--body);opacity:.85}
.end-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-1) var(--sp-3)}
.end-actions .btn,.end-card .link-btn{min-height:var(--tap)}
.end-actions .btn:not(.primary){background:var(--glass);color:var(--on-video)}
.end-actions .end-wait{flex:1 1 100%}
.end-card .link-btn{align-self:flex-start;color:var(--on-video)}
#watchView #stage:has(.end-card:not([hidden])) :is(.sound-chip,.lv-live,.fs-corner){display:none}
#watchView #stage .end-card~.theater-x{z-index:5}
.stage.theater .end-card,.stage:fullscreen .end-card,.stage:-webkit-full-screen .end-card{align-items:center;text-align:center;padding:calc(var(--sp-7) + var(--top,0px)) var(--sp-8) var(--sp-7)}
.stage.theater .end-actions,.stage:fullscreen .end-actions{justify-content:center}
.stage.theater .end-main,.stage:fullscreen .end-main{font-size:var(--fs-28)}
@media (orientation:landscape) and (max-height:500px){
  .end-card{align-items:center;text-align:center;padding:calc(var(--sp-6) + var(--top,0px)) calc(64px + var(--right,0px)) var(--sp-6) calc(64px + var(--left,0px))}
  .end-actions{justify-content:center}
  .end-main{font-size:var(--fs-28)}
}
/* The Final card over the live picture (viewerend.js): the game is final while the camera still sends (the grace), or the next game's stream just began. */
.final-card{position:absolute;left:10px;right:10px;bottom:10px;z-index:4;display:flex;flex-direction:column;gap:var(--sp-1);box-sizing:border-box;padding:var(--sp-6) 44px var(--sp-6) var(--sp-7);border-radius:var(--r-card);background:var(--glass);color:var(--on-video);box-shadow:0 6px 24px var(--veil-60),inset 0 0 0 1px var(--accent-text)}
.final-card[hidden]{display:none}
.final-cap{font:700 var(--fs-12)/1 var(--body);letter-spacing:.08em;color:var(--accent-text)}
.final-main{font:700 var(--fs-20)/1.1 var(--display);text-transform:uppercase;overflow-wrap:anywhere}
.final-sub{font:400 var(--fs-14)/1.2 var(--body);opacity:.85}
.final-actions{display:flex;flex-wrap:wrap;gap:var(--sp-1) var(--sp-3);margin-top:var(--sp-1)}
.final-actions .btn{flex:1 1 0;min-height:var(--tap)}
.final-actions .btn:not(.primary){background:var(--glass);color:var(--on-video)}
.final-x{position:absolute;top:0;right:0;width:var(--tap);height:var(--tap);display:grid;place-items:center;border:0;background:none;color:var(--on-video);cursor:pointer}
#watchView #stage:has(.final-card:not([hidden])) :is(.sound-chip,.fs-corner){display:none}
.stage.theater .final-card,.stage:fullscreen .final-card{left:max(10px,var(--left,0px));right:max(10px,var(--right,0px))}
/* A tag on a live session whose camera dropped (the landing's LIVE NOW, Home's live card). */
.wl-end{margin:0 0 var(--sp-3) auto;display:flex}
/* WIDE LANDINGS: the Watch landing, Team replays and the Teams landing share one wider column on a computer screen, and their tiles grow with it.
   Watch landing and Team replays: 2 tiles across, 3 from 1100 px (each still about 320 px wide), never 4. Teams: at most 3 teams across from 600 px, each picture in a
   square box (the whole picture, object-fit:contain, so a picture that is not square is never cropped). A phone (under 600 px) keeps what it had: Teams 150 px boxes, 84 px high. */
@media (min-width:1024px) and (min-height:501px){
  /* (the game's two-column grid on #watchView is for the live player: these screens span it, not the 360-400 px rail) */
  #wvLand,#wvSeasons,#wvReplays{grid-column:1/-1}
}
@media (min-width:600px){
  .tl-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (min-width:900px){
  /* (a computer: the list is two columns of cards, each team its own card) */
  .tl-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-4) var(--sp-6);align-items:start;overflow:visible;background:none}
  .tl-list .gcd-team{border-radius:var(--r-card);background:var(--surface);box-shadow:var(--edge-light)}
  .tl-list .gcd-team+.gcd-team{border-top:0}
}
@media (min-width:1100px){
  .view:has(>#watchView:not([hidden]) :is(#wvLand,#wvReplays):not([hidden])),.view:has(>#teamView:not([hidden]) #teamAll:not([hidden])){max-width:var(--content-wide)}
  .wl-tiles,.tr-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .tr-tile.first{grid-column:auto}
  /* The Watch landing on a computer: Live now on the left, Your game on the right (the phone has Your game first); the status and the quiet Go live row under both; four tiles across */
  .wl-top{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-6) var(--sp-9);align-items:start}
  .wl-live{order:-1}
  .wl-tail{grid-column:1/-1;order:1}
}

/* ---- Go live: the sheet (golive.js) and the waiting state on Game day ---- */
.gl-fields{display:flex;flex-direction:column;gap:var(--sp-6);padding:var(--sp-2) var(--sp-6) var(--sp-7) 46px;border-bottom:1px solid var(--hair)}
.gl-fields[hidden]{display:none}
.gl-shows{margin:0}
.gl-shows b{color:var(--fg);font:700 var(--fs-16)/1.2 var(--display);letter-spacing:.02em}
.gl-pickrow{display:flex;align-items:center;gap:var(--sp-4);border-bottom:1px solid var(--hair)}
.gl-pickrow .opt{flex:1;min-width:0;border-bottom:0}
.gl-change{flex:none;min-height:44px;min-width:44px}
.gl-warn small{display:block;margin-top:var(--sp-2);font-weight:400}
.gl-len{display:flex;flex-direction:column;gap:var(--sp-3)}
.gl-len p{margin:0}
.gl-gname{display:flex;align-items:center;gap:var(--sp-3)}
.opt.off{opacity:.55;cursor:default}
.sheet .opts .opt .grow{flex:1}
.sheet-head .grow{flex:1;min-width:0}
.gw{display:flex;flex-direction:column;gap:var(--sp-6)}
.gw[hidden]{display:none}
.gw-stage{display:flex;flex-direction:column;align-items:center;gap:var(--sp-4);padding:var(--sp-8) var(--sp-6);border-radius:var(--r-card);background:var(--surface);text-align:center}
.gw-spin{width:32px;height:32px;box-sizing:border-box;border:3px solid var(--line);border-top-color:var(--fg);border-radius:50%;animation:mg-spin 1s linear infinite}
.gw-what{display:flex;align-items:center;gap:var(--sp-4);flex-wrap:wrap}
.gw p{margin:0}
.gw .sheet-actions{margin-top:0}
.gw .btn .icon{margin-right:var(--sp-3)}
@media (prefers-reduced-motion:reduce){.gw-spin{animation:none}}
.gl-sw::before{content:"";position:absolute;inset:-6px -4px}   /* a 44 px tap target round the 32 px switch */
.gl-ic{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:var(--r-ctl);background:var(--raised);color:var(--fg)}

/* ---------- Reactions (reactions.js): the seven under Mark play, the emoji rising up the picture's right side, and the play-by-play's minute rows ---------- */
.rx-bar{padding:var(--sp-4) var(--gutter) 0}
.rx-bar[hidden]{display:none}
.rx-btns{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:var(--sp-2)}
.rx-btn{min-width:0;min-height:var(--tap);height:var(--ctl);padding:0;border:0;border-radius:var(--r-ctl);background:var(--raised);color:var(--fg);font-size:24px;line-height:1;cursor:pointer}
.rx-btn[aria-pressed="true"]{box-shadow:inset 0 0 0 2px var(--accent)}
.rx-btn:disabled{opacity:.4;cursor:default}
.rx-note{margin:var(--sp-3) 0 0;text-align:center}
.rx-layer{position:absolute;top:44px;right:0;bottom:12px;width:34%;z-index:2;pointer-events:none;overflow:hidden}
.rx-f{position:absolute;bottom:0;font-size:26px;line-height:1;animation:rxrise var(--dur,2500ms) ease-out forwards}
@keyframes rxrise{0%{bottom:0;opacity:0}12%{opacity:1}100%{bottom:calc(100% - 30px);opacity:0}}
@media (prefers-reduced-motion:reduce){.rx-f{bottom:35%;animation-name:rxfade}@keyframes rxfade{0%{opacity:0}15%,70%{opacity:1}100%{opacity:0}}}
.rx-row{width:100%}
.rx-who{list-style:none;margin:0;padding:var(--sp-1) var(--sp-6) var(--sp-6) 50px;color:var(--muted);font-size:var(--fs-14);border-bottom:1px solid var(--hair)}
.rx-who[hidden]{display:none}
.list>:last-child>.rx-who{border-bottom:0}
body.theater .rx-bar{display:none}
#leaveRow[aria-disabled="true"]{opacity:.55}
/* ---- Button sizes (owner decision, Nov 6) ----
   Four sizes; every pill shares colours and styles, only the size differs.
     x-small  --ctl-xs 32  tap 44 (::before inset -6px)  13/600  icon 16  side padding 10  icon-only 32 circle  >= 12 px to a neighbour
     small    --ctl-sm 36  tap 44 (::before inset -4px)  14/700  icon 18  side padding 12  icon-only 36         >= 8 px
     regular  --ctl    44                                16/700  icon 20  side padding 16  icon-only 44         >= 8 px
     large    --ctl-lg 52                                16/700  icon 22  side padding 20                       >= 12 px
   X-small is for quiet / secondary styles only: never gold-filled, never a screen's main action, never alone on a row.
   Exceptions that keep their size: the scorebook pads (.sb-btn) and the tab bar.
   The extra tap area is one rule: a ::before on the control (position:relative from :where(), so a control that is already fixed or absolute keeps it). */
:where(.ev-btn,.rp-btn,.today-btn,.chip.sm,.chip.add,.btn.sm,.tp-chip,#marksBox .chip,.zoom-chip,.rp-float,.cam-btn,.sch-today,.filter-btn,.seg.sm>*,.back-row .link-btn,.mcard .link-btn,.save-range .link-btn,.sb-who-head .link-btn,.sb-log .link-btn,.reply-card.compact .rc-clear,
  .btn.xs,.chip.xs,.icon-btn.xs,.icon-btn.sm,.chat-more,.rp-step,.rp-row :is(#rpBack1,#rpFwd1),#gpKeyPlays .play-btn){position:relative}
:is(.ev-btn,.rp-btn,.today-btn,.chip.sm,.chip.add,.btn.sm,.tp-chip,#marksBox .chip,.zoom-chip,.rp-float,.sch-today,.seg.sm>*,.back-row .link-btn,.mcard .link-btn,.save-range .link-btn,.sb-who-head .link-btn,.sb-log .link-btn,.reply-card.compact .rc-clear)::before{content:"";position:absolute;inset:-4px 0}   /* (text pills are wider than 44 px: the tap area grows upward and downward only, so nothing scrolls sideways) */
:is(.cam-btn,.filter-btn,.icon-btn.sm)::before{content:"";position:absolute;inset:-4px}
:is(.btn.xs,.chip.xs,.icon-btn.xs,.chat-more,.rp-step,.rp-row :is(#rpBack1,#rpFwd1),#gpKeyPlays .play-btn)::before{content:"";position:absolute;inset:-6px}
.btn.xs{min-height:var(--ctl-xs);padding:0 var(--sp-6);font:600 var(--fs-13) var(--body)}
.chip.xs{min-height:var(--ctl-xs);min-width:0;padding:0 var(--sp-6);font:600 var(--fs-13) var(--body);display:inline-flex;align-items:center;gap:var(--sp-3)}
.icon-btn.xs{width:var(--ctl-xs);height:var(--ctl-xs)}
.icon-btn.sm{width:var(--ctl-sm);height:var(--ctl-sm)}
.btn.big{padding:0 var(--sp-9)}
/* ---- Phase 1 (prototype): day fixes ----
   The keyboard focus ring is gold, which is 1.6:1 on the day grounds: by day it is the text colour. A secondary (raised) button is 1.1:1 on
   the day page and 1.3:1 on a white card, so it reads as disabled: by day every raised control gets a 1 px strong edge. */
html[data-theme="day"] :focus-visible{outline-color:var(--fg)}
html[data-theme="day"] :is(.btn:not(.primary):not(.danger):not(.yes):not(.no),.chip:not([aria-pressed="true"]):not([aria-checked="true"]),.ev-btn,.rp-btn,.sq:not(.play),.tr-season,.today-btn,.icon-btn.raised):not(:disabled){box-shadow:inset 0 0 0 1px var(--line-strong)}
html[data-theme="day"] :is(.stage,.mv,#player:fullscreen) :is(.btn,.chip){box-shadow:none}

/* The Final score sheet (finals.js): a − / + stepper for each team, then the End buttons stacked; and the camera's own phone during the final's grace */
.fs-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-6)}
.fs-side{display:flex;flex-direction:column;align-items:center;gap:var(--sp-3);min-width:0}
.fs-name{font:var(--t-body-semi);text-align:center;overflow-wrap:anywhere}
.fs-step{display:flex;align-items:center;gap:var(--sp-4)}
.fs-step .btn{min-width:var(--tap);min-height:var(--tap);padding:0}
.fs-n{min-width:2ch;text-align:center;font:700 var(--fs-28)/1 var(--body)}
.fs-actions{display:flex;flex-direction:column}
.fin-grace{display:flex;flex-direction:column;align-items:flex-start;gap:var(--sp-2)}
.fin-grace .btn{min-height:var(--tap)}
/* ---- One icon set ----
   The chevron that ends a row or a link is the icon, not the text glyph: 20 px, muted, at the end of the row; inside a link or a button it is the text colour.
   Small icons are 16 or 20 px with the same 2 px stroke (2.25 at 16 so the weight matches). */
.chev{flex:none;color:var(--muted)}
.row>.chev:last-child,.chat-row>.chev:last-child{margin-left:auto}
:is(.link-btn,.btn,.rp-next) .chev{color:currentColor}
.rp-next .chev:first-child{margin-left:-4px}.rp-next .chev:last-child{margin-right:-4px}
.ev-said .ev-ic{vertical-align:-2px;margin-left:1px}
.ev-said.yes .ev-ic{color:var(--good)}
.flt-chev{transition:transform .15s}.rp-fltbtn.open .flt-chev{transform:rotate(180deg)}
svg.icon:is([width="16"],.icon-sm){stroke-width:2.25}
/* the team page's quick links carry their icon */
.tp-pill{gap:var(--sp-3)}
.tp-pill .icon{flex:none}
/* ---- the frame on a tablet and a desktop ----
   The panels keep the rail: they start where the page does. Above 768 px a "bleeding" hero cannot reach the edge, so it is a card on the column
   (the phone keeps the bleed). */
@media (min-width:1024px) and (min-height:501px){.chat-panel{left:var(--rail-w)}}
/* The thread covering the whole screen (a phone, or a short landscape window): a solid layer continues below the panel, behind the keyboard (the panel ends at its top edge),
   and the page underneath is hidden (it is inert too, chat.js chatLayers) so it cannot show through the translucent keyboard. Hidden after the slide-in, at once on close. */
@media not all and (min-width:1024px) and (min-height:501px){
  #chatThread::after{content:"";position:fixed;left:0;right:0;top:0;height:100vh;height:100lvh;z-index:-1;background:var(--bg);pointer-events:none}
  body.chat-thread-open :is(.top,main.view,nav.tabs){visibility:hidden;transition:visibility 0s 300ms}
}
@media (min-width:768px){
  .hero.bleed,#homeList>.hero{margin:0;border-radius:var(--r-card)}
  #homeList>.hero+.hero{margin-top:var(--sp-4)}
  html[data-theme="day"]:not([data-contrast="more"]) :is(.hero.bleed,#homeList>.hero){box-shadow:var(--edge-light)}
}
/* ---- Phase 4: one list, one card, one label, one header ----
   The Watch landing's Go live and Past seasons rows are hairline rows like every other list; panel titles are mixed case like the sheets';
   every tab's landing shows the Tailgate wordmark in the header (Watch and Teams join Home, Events and You; their h1 stays for screen readers); a sub-screen keeps its own title. */
.wl-go,.wl-foot>.list{background:none;box-shadow:none;border-radius:0;border-top:1px solid var(--hair);border-bottom:1px solid var(--hair)}
.wl-go .row,.wl-foot>.list .row{padding-left:0;padding-right:0}
.wl-go .gl-dot{margin-left:var(--sp-1)}
html[data-contrast="more"] :is(.wl-go,.wl-foot>.list){outline:none;border-top-color:var(--line-strong);border-bottom-color:var(--line-strong)}   /* (flat rows: Sideline strengthens their rules, no box round the text) */
.chat-head h2{text-transform:none;letter-spacing:.01em}
.tp-pills{margin:var(--sp-6) 0 var(--sp-7)}
/* ---- Phase 5 replay, part 1: the band that is the scrubber, the icon transport, the "···" menu ----
   The scrubber is the band under the picture (#playsLane > #laneTrack, 56 px, inset by --rp-x): a 6 px rail with the gold progress, the plays (dots and ticks), the period lines,
   the gaps and my marks (flags) on the rail, and the old 30 px ring knob riding over them. One element, so the dots and the knob share one x-axis. Nothing of it is on the picture.
   Stacking, bottom to top: rail 1, gaps, dots, ticks and period lines 2, flags and play buttons 3, the knob 4, the knob's hit area 5. Its whole 44 px+ height is the slider's touch zone
   (touch-action pan-y: a sideways drag scrubs and never scrolls, a vertical swipe scrolls). A full screen (.ovl) and a phone on its side (.rland) have the overlay deck: the same band
   lies over the picture above it (--deck-top, set by lift() in recording.js). */
.rpage{--band-h:56px}
#player{--rp-x:var(--gutter)}
.plane{position:relative;z-index:3;padding:0 var(--rp-x)}
.plane .lane-track{isolation:isolate;height:var(--band-h);border-radius:var(--r-sm);background:var(--hair);touch-action:pan-y;cursor:pointer}
.lane-track .bar{z-index:auto;border-radius:var(--r-sm)}
.lane-track .bar .rail{top:calc(50% - 3px);height:6px;border-radius:var(--r-pill);background:rgba(255,255,255,.16);z-index:1}
html[data-theme="day"] body:not(.rland) #player:not(.ovl) .lane-track .bar .rail{background:rgba(11,31,58,.16)}
.lane-track .bar .rail i{background:var(--accent)}
.lane-track .bar .knob{top:50%;z-index:4;box-shadow:0 1px 4px rgba(0,0,0,.45)}
.lane-track .bar:focus-visible{outline:none;box-shadow:var(--ring)}
.lane-track .knob-hit{z-index:5}
.lane-track .shared-tick{z-index:2}
/* the time while a drag is on: centred just above the knob (it may cover the foot of the picture) */
.lane-track .knob-time{top:calc(50% - 21px);z-index:5;margin:0;transform:translate(-50%,-100%)}
.plane #notches{position:absolute;inset:0;z-index:2;pointer-events:none}
.plane .markers{position:absolute;inset:0;z-index:3;pointer-events:none}
.plane .notch{top:calc(50% - 7px)}
.plane .gapblk{top:calc(50% - 7px)}
.plane .pdot{top:50%}
.plane .pline{top:calc(50% - 15px)}
.plane .mk.mark{top:var(--sp-1)}
.plane .mk.play{top:50%;margin-top:calc(var(--ctl-xs) / -2)}
.plane .pline b{color:var(--muted)}
.plane .bar-tip{bottom:calc(100% + 4px)}
:is(#player.rp.ovl,body.rland) .plane{position:absolute;left:0;right:0;bottom:calc(var(--deck-top,0px) + 5px);z-index:4;pointer-events:none}
:is(#player.rp.ovl,body.rland) .plane .lane-track{background:rgba(5,12,23,.4);pointer-events:auto}
:is(#player.rp.ovl,body.rland) .plane .pline b{color:var(--on-video)}
/* Under the band: crowd noise, a lane for each angle, the legend (inset like the band), 4 px below it and no empty row */
#player.rp:not(.ovl) #timeline{flex:0 0 calc(100% - 2 * var(--rp-x));margin:0 var(--rp-x);gap:var(--sp-1)}
.rpage #player:not(.rp) #timeline{margin:0}
@media not all and (min-width:768px) and (min-height:501px){#player.rp:not(.ovl) #timeline{margin:0;flex-basis:100%}}
#timeline:not(:has(>:not([hidden]))){display:none}
.rp-lanes{padding-top:var(--sp-1)}
#timeline .legend{flex-wrap:nowrap;gap:var(--sp-6);overflow-x:auto;white-space:nowrap;scrollbar-width:none;font-size:var(--fs-12)}
#timeline .legend::-webkit-scrollbar{display:none}
#timeline .legend>*{flex:none}
/* The transport */
#player.rp #deck{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:var(--sp-4) var(--sp-6)}
#player.rp #deck :is(.ctl.one,.rp-row){display:contents}
#player.rp #deck #prevPlay{order:1}
#player.rp #deck #rpBack{order:2}
#player.rp #deck #playPause{order:3}
#player.rp #deck #rpFwd{order:4}
#player.rp #deck #nextPlay{order:5}
#player.rp #deck #speed{order:6}
#player.rp #deck #clock{order:7;flex:none;margin:0 var(--sp-2);text-align:left}
#player.rp #deck #rpNow{order:8;flex:0 1 auto;min-width:0;margin:0 var(--sp-2)}
#player.rp #deck #rpBack1{order:9}
#player.rp #deck #rpFwd1{order:10}
#player.rp #deck :is(#airplay,#cast,#shareNow){order:11}
#player.rp #deck #full{order:12}
#player.rp #deck .rp-more{order:13}
#player.rp #deck #rpChips{order:12}
#player.rp:not(.ovl) #deck{padding-top:var(--sp-4)}
#player.rp:not(.ovl) #deck:has(#timeline>:not([hidden])){margin-top:0;padding-top:var(--sp-2)}
#player.rp:not(.ovl) #deck>:is(#rpChips,#rpHint,.shared-box,.rp-tools,.rp-addrow){flex:0 0 100%;margin:0}
#player.rp:not(.ovl) #deck #rpChips{order:14}
#player.rp:not(.ovl) #deck #rpHint{order:15}
#player.rp:not(.ovl) #deck #timeline{order:-1}
#player.rp:not(.ovl) #deck .shared-box{order:16}
#player.rp:not(.ovl) #deck .rp-addrow{order:17}
#player.rp:not(.ovl) #deck .rp-tools{order:18}
#player.rp:not(.ovl) #deck .rp-more{margin-left:auto}
.rp-tools:not(:has(#sharedBack:not([hidden]))){display:none}
#player.rp.ovl .rp-chips{flex:none}
/* icon buttons: Regular 44 round, the play 52 gold; the 1 s steps are the x-small chips (32 look, 44 tap) */
#rpRow :is(#prevPlay,#nextPlay,#rpBack,#rpFwd),.ctl.one .rp-more>.sq{width:var(--ctl);height:var(--ctl)}
.rp-row .sq .icon,.ctl.one .sq .icon,.rp-more .icon{width:24px;height:24px}
#rpRow :is(#rpBack1,#rpFwd1){margin:0}
.rp-row :is(#rpBack1,#rpFwd1) .icon{width:20px;height:20px}
/* "···" and its menu: opens upward from the button */
.rp-more{position:relative;flex:none}
.rp-menu{position:absolute;right:0;bottom:calc(100% + var(--sp-4));z-index:20;display:flex;flex-direction:column;gap:var(--sp-1);min-width:232px;padding:var(--sp-3);border-radius:var(--r-card);background:var(--surface);box-shadow:var(--lift-md)}
.rp-menu .rp-tool{width:100%;justify-content:flex-start;min-height:var(--ctl);padding:0 var(--sp-6);background:none;color:var(--fg);font:var(--t-body-strong)}
.rp-menu .rp-tool:is(:hover,:focus-visible){background:var(--raised)}
.rp-menu .rp-tool[aria-pressed="true"]{color:var(--accent-text,var(--fg))}
body.rland #deck .rp-menu .rp-tool{min-height:var(--ctl)}
/* A phone, windowed: two rows. Row 1: play, speed, the clock, share (and a TV), "···". Row 2: Last play, back 10, -1, +1, forward 10, Next play; the time of day under; the angles on one row that scrolls. */
@media not all and (min-width:768px) and (min-height:501px){
  body:not(.rland) #player.rp:not(.ovl) #deck{flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:var(--sp-5);margin-top:var(--sp-5)}
  body:not(.rland) #player.rp:not(.ovl) #deck :is(#prevPlay,#rpBack,#playPause,#rpFwd,#nextPlay,#speed,#clock,#rpNow,#rpBack1,#rpFwd1,#airplay,#cast,#shareNow,#full,.rp-more,#rpChips,#rpHint){order:0}
  body:not(.rland) #player.rp:not(.ovl) #deck #timeline{order:-1}
  body:not(.rland) #player.rp:not(.ovl) #deck{padding-top:0}
  body:not(.rland) #player.rp:not(.ovl) #deck:has(#timeline>:not([hidden])){margin-top:var(--sp-2)}
  body:not(.rland) #player.rp:not(.ovl) #deck :is(.ctl.one,.rp-row){display:flex;align-items:center;gap:var(--sp-4)}
  body:not(.rland) #player.rp:not(.ovl) #deck .rp-row{flex-wrap:wrap;justify-content:space-between;margin:0}
  body:not(.rland) #player.rp:not(.ovl) #deck #rpNow{order:9;flex:0 0 100%;margin:0;text-align:center}
  body:not(.rland) #player.rp:not(.ovl) #deck #clock{flex:1 1 0;min-width:0;margin:0;text-align:center;white-space:normal}
  body:not(.rland) #player.rp:not(.ovl) #deck .rp-more{margin-left:0}
  body:not(.rland) #player.rp:not(.ovl) #deck .rp-chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  body:not(.rland) #player.rp:not(.ovl) #deck .rp-chips::-webkit-scrollbar{display:none}
}
@media (max-width:359px){
  body:not(.rland) #player.rp:not(.ovl) .ctl.one .sq.slow{min-width:44px;padding:0 8px}
  /* 320 px: the clock gets a line of its own under the first row (it does not wrap), and the second row keeps 12 px round the 1 s chips */
  body:not(.rland) #player.rp:not(.ovl) #deck .ctl.one{flex-wrap:wrap;justify-content:space-between}
  body:not(.rland) #player.rp:not(.ovl) #deck #clock{order:9;flex:0 0 100%;white-space:nowrap}
  body:not(.rland) #player.rp:not(.ovl) #deck #rpRow{justify-content:center;column-gap:var(--sp-6)}
  body:not(.rland) #player.rp:not(.ovl) #deck :is(#rpBack1,#rpFwd1){order:8}
  body:not(.rland) #player.rp:not(.ovl) #deck #rpRow::after{content:"";order:7;flex:0 0 100%;height:0}   /* (a line break: the chips go on the line under the four buttons) */
}
/* a narrower column (a tablet, a small laptop): the transport still fits one row */
@media (min-width:768px) and (max-width:1279px) and (min-height:501px){
  #player.rp:not(.ovl) #deck{gap:var(--sp-4)}
  #player.rp:not(.ovl) #deck :is(#clock,#rpNow){margin:0}
  #player.rp:not(.ovl) #deck :is(#rpBack1,#rpFwd1){margin:0 var(--sp-2)}   /* (12 px to a neighbour for the x-small chips) */
  #player.rp:not(.ovl) #deck #speed{min-width:48px;padding:0 var(--sp-4)}
  #player.rp:not(.ovl) #deck #rpNow{font-size:var(--fs-13)}
}
@media not all and (min-width:768px){#player.rp.ovl #deck .rp-more{margin-left:auto}}

/* ---- A phone on its side (body.rland), also in the iPhone's full screen (body.theater) ----
   One glass band over the foot of the picture, which is #deck: the timeline (scrubber, plays, crowd noise) and a Controls button on one line.
   Controls opens one row of transport under the timeline (body.rpanel); "···" in it opens a side sheet (body.rsheet) with the rest. recording.js moves the existing
   controls into #rlRow and #rlSheet (rlEnter) and back (rlLeave). The band and the sheet are children of #player, not of .stage (which is a stacking context of its own),
   so they stack above the picture and, in the full screen, inside the player. The band never fades. The selectors start with "body.rland.rpage #player" to win over the windowed rules. */
.rl-line,.rl-row,.rl-seg,.rl-x,.rl-sheet{display:none}
body.rland.rpage #player #deck{position:absolute;left:0;right:0;bottom:0;z-index:5;margin:0;padding:var(--sp-4) max(var(--sp-4),env(safe-area-inset-right)) max(var(--sp-4),env(safe-area-inset-bottom)) max(var(--sp-4),env(safe-area-inset-left));display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:var(--sp-3);background:rgba(5,12,23,.75)}
body.rland.rpage #player #deck :is(.ctl.one,.rp-hint){display:none}   /* (what is left of them: their buttons are in the row and the sheet) */
body.rland.rpage #player #deck .rp-lanes,body.rland.rpage #player #deck .legend{display:none}
body.rland.rpage #player .rl-line{display:flex;align-items:center;gap:var(--sp-4);min-width:0}   /* (the scrubber takes the whole line but the Controls button: no clock, the period is on the scoreboard) */
body.rland.rpage #player .rl-scrub{flex:1 1 auto;min-width:0}
body.rland.rpage #player .rl-scrub .plane{position:relative;left:auto;right:auto;bottom:auto;z-index:auto;padding:0;pointer-events:auto}
body.rland.rpage #player .rl-scrub .plane .lane-track{height:44px;background:rgba(255,255,255,.06)}
body.rland.rpage #player .rl-scrub #timeline{flex:none;margin:0;gap:0}
body.rland.rpage #player .rl-ctl{flex:none;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:#224272;color:#fff;cursor:pointer;touch-action:manipulation}
body.rland.rpage #player .rl-ctl .icon{width:22px;height:22px}
/* Controls and the cross share one spot at the end of the band: Controls while the row is shut, the cross while it is open (the timeline never moves) */
body.rland.rpage.rpanel #player .rl-ctl,body.rland.rpage:not(.rpanel) #player #rlClose{display:none}
body.rland.rpage #player .rl-row{display:none;align-items:center;gap:var(--sp-3);flex-wrap:nowrap;min-width:0}
body.rland.rpage.rpanel #player .rl-row{display:flex}
body.rland.rpage #player .rl-row *{order:0!important}
body.rland.rpage #player .rl-row #rpRow{display:contents;margin:0}
body.rland.rpage #player .rl-row #rpRow[hidden]{display:none}
body.rland.rpage #player .rl-row .sq{flex:none;width:44px;height:44px;border-radius:50%;background:#224272;color:#fff}
body.rland.rpage #player .rl-row #playPause{width:52px;height:52px;background:var(--accent);color:var(--accent-fg)}
body.rland.rpage #player .rl-row :is(#rpBack1,#rpFwd1){width:36px;border-radius:var(--r-card);color:#b8c5d9}
body.rland.rpage #player .rl-row :is(#rpBack,#rpFwd) .icon{width:26px;height:26px}
body.rland.rpage #player .rl-row :is(#rpBack1,#rpFwd1) .icon{width:20px;height:20px}
body.rland.rpage #player .rl-row .sq:disabled{background:#224272;opacity:.45}
body.rland.rpage #player .rl-row #rpNow{flex:0 1 auto;min-width:0;margin:0 var(--sp-3);font:600 15px/1.2 var(--body);color:#fff}
body.rland.rpage #player .rl-seg{display:inline-flex;flex:none;margin-left:auto;border-radius:var(--r-pill);background:#224272}
body.rland.rpage #player .rl-seg button{min-width:36px;height:36px;padding:0 var(--sp-4);border:0;border-radius:var(--r-pill);background:transparent;color:#fff;font:700 14px/1 var(--body);cursor:pointer}
body.rland.rpage #player .rl-seg button[aria-pressed="true"]{background:#fff;color:#0b1f3a}
body.rland.rpage #player .rl-row .rp-more{flex:none;margin:0}
body.rland.rpage #player .rl-row #rpMore.on{background:#fff;color:#0b1f3a}
body.rland.rpage #player .rl-row #rpMore .icon{width:24px;height:24px}
body.rland.rpage #player .rl-x{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:#224272;color:#fff;cursor:pointer}
body.rland.rpage #player .rl-x .icon{width:22px;height:22px}
/* the sheet: anchored right, above the band */
body.rland.rpage #player .rl-sheet:not([hidden]){display:flex;flex-direction:column;position:absolute;z-index:6;top:max(10px,env(safe-area-inset-top));right:max(16px,env(safe-area-inset-right));bottom:calc(var(--deck-top,0px) + 8px);width:min(48vw,330px);border-radius:var(--r-card);background:#163156;box-shadow:0 10px 28px rgba(0,0,0,.55);color:#fff;
  --fg:#fff;--surface:#1D3C66;--raised:#224272;--muted:#b8c5d9;--subtle:#b8c5d9;--hair:rgba(230,236,245,.16);--line-strong:#5F80AD}
.rl-sheet-head{display:flex;flex:none;align-items:center;justify-content:space-between;padding:var(--sp-1) var(--sp-2) 0 var(--sp-7)}
.rl-cap{font:700 13px/1 var(--body);letter-spacing:.12em;text-transform:uppercase;color:#b8c5d9}
.rl-sheet-body{display:flex;flex:1 1 auto;flex-direction:column;gap:var(--sp-4);min-height:0;padding:var(--sp-2) 14px 14px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.rl-sheet-body>*{flex:none;margin:0}
.rl-pn{display:flex;gap:var(--sp-4)}
.rl-sheet-body :is(.rl-pn .sq,#shareNow,#airplay,#cast){display:flex;align-items:center;justify-content:center;gap:var(--sp-4);height:44px;padding:0 var(--sp-6);border-radius:999px;background:#224272;color:#fff;font:600 14px/1 var(--body)}
.rl-sheet-body .rl-pn .sq{flex:1 1 0;width:auto;min-width:0}
.rl-sheet-body :is(#shareNow,#airplay,#cast){width:100%;justify-content:flex-start}
.rl-sheet-body .rl-pn .sq::after{content:attr(aria-label)}
.rl-sheet-body #shareNow::after{content:attr(aria-label)}
.rl-sheet-body .sq .icon{width:20px;height:20px}
.rl-sheet-body .sq .lbl{display:inline}
.rl-sheet-body .sq:disabled{opacity:.45}
.rl-sheet-body #saveClip{width:100%;min-height:44px;border-color:transparent;background:var(--accent);color:var(--accent-fg)}
.rl-sheet-body .rp-chips{margin:0}
.rl-sheet-body .rp-tool{width:100%;justify-content:flex-start;min-height:44px;padding:0 var(--sp-6);border:0;border-radius:var(--r-card);background:#224272;color:#fff}
.rl-sheet-body .rp-tool[aria-pressed="true"]{background:#2d548d}
.rl-sheet-body .rp-addrow{margin:0}
@media (max-width:760px){body.rland.rpage #player .rl-row #rpNow .rp-sec{display:none}}   /* narrow (a 667 px phone): the period goes first, the row never wraps */
.famcal-url{word-break:break-all;user-select:all;padding:var(--sp-4);background:var(--raised);border-radius:var(--r-tag)}
/* Ask about your schedule (engines/aiask.js) */
/* the Ask sheet: a head, a body that scrolls (its own scroller; the sheet does not) and a composer docked below it (engines/aiask.js) */
.sheet.ai{padding:0;gap:0;overflow:hidden;max-height:min(100%,calc(100dvh - 32px - var(--top)))}
.sheet.ai>.grab{margin-top:var(--sp-6)}
.sheet.ai>.sheet-head{padding:var(--sp-4) var(--gutter) var(--sp-4)}
.sheet.ai>.ai-body{flex:1 1 auto;min-height:0;flex-shrink:1;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:var(--sp-7);padding:var(--sp-4) var(--gutter) var(--sp-7)}
.ai-body>#aiOpen{display:flex;flex-direction:column;gap:var(--sp-6)}
.ai-body>#aiOpen[hidden]{display:none}
.ai-sug{background:var(--raised)}
.ai-sug .row:last-child{border-bottom:0}
.ai-sug .name{white-space:normal}
.ai-sug .sub.ai-n{color:var(--accent-text);font-weight:700}
.ai-sug .row>.icon{flex:none;color:var(--muted)}
.ai-chips{display:flex;flex-wrap:wrap;gap:var(--sp-4)}
.ai-bar{flex:none;display:flex;flex-direction:column;gap:var(--sp-2);padding:var(--sp-6) var(--gutter) calc(var(--sp-6) + var(--bottom));border-top:1px solid var(--hair);background:var(--surface)}
.ai-follow{display:flex;flex-wrap:wrap;gap:var(--sp-4);padding-bottom:var(--sp-4)}
.ai-follow:empty{display:none}
.ai-count{align-self:flex-end}
.ai-count[hidden]{display:none}
.ai-field{display:flex;align-items:center;gap:var(--sp-4)}
.ai-field .input{flex:1;min-width:0;min-height:var(--ctl-lg);padding:0 var(--sp-7);border-radius:var(--r-pill)}
.ai-send{flex:none;width:var(--ctl-lg);height:var(--ctl-lg);padding:0;border-radius:50%}
.ai-out{display:flex;flex-direction:column;gap:var(--sp-4);min-width:0}
.ai-out:empty{display:none}
.ai-out p{margin:0;overflow-wrap:anywhere}
.ai-answer{white-space:pre-wrap}
.ai-x{display:flex;flex-direction:column;gap:var(--sp-7)}   /* (one exchange of the thread) */
.ai-r{display:flex;flex-direction:column;gap:var(--sp-4);min-width:0;align-items:flex-start}
.ai-r>.timeline,.ai-r>.ai-draft{align-self:stretch}
.ai-out .ai-q{align-self:flex-end;max-width:75%;padding:var(--sp-4) var(--sp-7);border-radius:var(--r-card);background:var(--raised)}
.ai-dots{display:inline-flex;gap:var(--sp-2);margin-left:var(--sp-4);vertical-align:middle}
.ai-dots i{width:var(--sp-3);height:var(--sp-3);border-radius:50%;background:currentColor;opacity:.6}
@media (prefers-reduced-motion:no-preference){.ai-dots i{animation:ai-dot 1.2s ease-in-out infinite}.ai-dots i:nth-child(2){animation-delay:.2s}.ai-dots i:nth-child(3){animation-delay:.4s}}
@keyframes ai-dot{0%,80%,100%{opacity:.25}40%{opacity:1}}
.ai-draft{display:flex;flex-direction:column;gap:var(--sp-4);padding:var(--sp-7);border:1px solid var(--accent);border-radius:var(--r-card);background:var(--surface)}   /* (a drafted action: engines/aidrafts.js) */
.ai-draft-head{display:flex;align-items:center;gap:var(--sp-3);color:var(--accent-text);font:var(--t-label-strong)}
.ai-draft-head .icon{width:var(--fs-16);height:var(--fs-16)}
.ai-draft-sentence{font:var(--t-body-strong)}
.ai-draft-line{margin:0}
.ai-draft .sheet-actions{flex-wrap:nowrap}
.ai-draft .sheet-actions .btn{flex:1 1 0;min-width:0}
.ai-draft-res:empty{display:none}
.ai-events{margin:0}
.ai-events .ev-dayhead{position:static}   /* (the day headers stick under the tab's head: in the sheet they stay where they are) */

/* Import events (Quick add): the places step and the events preview. */
.imp{display:flex;flex-direction:column;gap:var(--sp-6);padding-top:var(--sp-6);padding-bottom:calc(var(--tap)*3)}
.imp[hidden]{display:none}
.imp-places{display:flex;flex-direction:column;gap:var(--sp-4)}
.imp-place{display:flex;flex-direction:column;gap:var(--sp-4);padding:var(--sp-6);border-radius:var(--r-card);background:var(--surface)}
.imp-place p,.imp-ev p{margin:0}
.imp-said{color:var(--muted);font-size:var(--fs-14)}
.imp-name,.imp-ask{display:flex;align-items:center;gap:var(--sp-4)}
.imp-name .btn{margin-left:auto}
.imp-mark{display:inline-flex;flex:none;width:20px;height:20px}
.imp-mark .icon{width:20px;height:20px}
.imp-mark.good{color:var(--good)}
.imp-mark.warn{color:var(--warn)}
.imp-choices{display:flex;flex-direction:column;gap:var(--sp-3)}
.imp-choice{display:flex;align-items:flex-start;gap:var(--sp-4);min-height:var(--tap);cursor:pointer}
.imp-choice>span{display:flex;flex-direction:column}
.imp-source{display:flex;align-items:center;gap:var(--sp-4);padding:var(--sp-4) var(--sp-6);border-radius:var(--r-card);background:var(--surface)}
.imp-ico{display:inline-flex;color:var(--accent-text)}
.imp-src-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.imp-read{margin:0;color:var(--muted);font-size:var(--fs-14)}
.imp-bar{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-4)}
.imp-good{color:var(--good)}
.imp-warn{color:var(--warn)}
.imp-list{display:flex;flex-direction:column;border-radius:var(--r-card);background:var(--surface);overflow:hidden}
.imp-ev{display:flex;align-items:center;gap:var(--sp-4);padding:var(--sp-4) var(--sp-6);border-bottom:1px solid var(--hair)}
.imp-ev:last-child{border-bottom:0}
.imp-ev.warn{background:var(--tint-warn)}
.imp-chk{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:var(--tap);min-height:var(--tap)}
.imp-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:none;width:48px;padding:var(--sp-2) 0;border-radius:var(--r-ctl);background:var(--raised);font-size:var(--fs-12,12px);line-height:1.1}
.imp-tile b{font-size:var(--fs-18,18px)}
.imp-main{display:flex;flex-direction:column;flex:1;min-width:0}
.imp-sub{color:var(--muted);font-size:var(--fs-14)}
.imp-prob{color:var(--warn);font-size:var(--fs-14)}
/* the review of several events Ask drafted a change for (events-review.html): rows are the import's rows; a row that cannot be changed is greyed; the foot holds a line above the buttons */
.evr{padding-bottom:calc(var(--tap)*4)}
.evr-head{display:flex;flex-direction:column;gap:var(--sp-2)}
.evr-head p{margin:0}
.evr-group{display:flex;align-items:center;gap:var(--sp-4);margin-top:var(--sp-4)}
.evr-row.evr-off{opacity:.6}
.evr-row.evr-off .imp-prob{color:var(--muted)}
.evr-main{display:flex;flex-direction:column;flex:1;min-width:0;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.evr-chg s{color:var(--muted)}
.evr-foot{flex-direction:column;align-items:center;gap:var(--sp-3)}
.evr-foot p{margin:0;text-align:center}
.evr-acts{display:flex;gap:var(--sp-4);width:100%;justify-content:center}

/* The linked Google Sheet: the card above the schedule and the sheet of changes (lib/sheetsync.js) */
.sh-wrap{margin-bottom:var(--sp-6)}
.sh-card{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-4);padding:var(--sp-6);border-radius:var(--r-card);background:var(--surface)}
.sh-card .grow{display:flex;flex-direction:column;min-width:0}
.sh-btns{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-4);width:100%}
.sh-group{display:flex;flex-direction:column;gap:var(--sp-4)}
.sh-head{margin:0;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.sh-head.good{color:var(--good)}.sh-head.gold{color:var(--accent-text)}.sh-head.bad{color:var(--danger)}.sh-head.warn{color:var(--warn)}
.sh-old{color:var(--muted)}.sh-new{color:var(--fg)}
.sh-conf .seg{margin-top:var(--sp-3)}
.sh-conf .seg [aria-pressed="true"]{background:var(--accent);color:var(--accent-fg)}
.sh-foot{display:flex;flex-direction:column;align-items:center;gap:var(--sp-3)}
.sh-foot p{margin:0}
/* Game recap draft (engines/airecap.js) */
.rc-box{min-height:calc(var(--tap)*3);overflow-wrap:anywhere}
.gp-recap{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.rc-acts{flex-wrap:wrap}
.rc-acts .btn{flex:1 1 auto}
/* Public streaming consent (engines/pubstream.js, golive.js, game-form.js) */
.ps-card{display:flex;flex-direction:column;gap:var(--sp-6);padding:var(--sp-7);border-radius:var(--r-card);background:var(--surface);margin-bottom:var(--sp-7)}
.ps-card p{margin:0}
.ps-top{display:flex;align-items:center;gap:var(--sp-6)}
.ps-title{display:block;font:var(--t-body-strong)}
.ps-lock{display:inline-flex;color:var(--on-tint-warn)}
.ps-lock.ok{color:var(--on-tint-good)}
.ps-bar{height:var(--sp-4);border-radius:var(--r-pill);background:var(--raised);overflow:hidden}
.ps-bar>span{display:block;height:100%;background:var(--accent)}
.ps-row .ps-num{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:var(--ctl);height:var(--ctl);border-radius:var(--r-ctl);background:var(--raised);font:var(--t-title)}
.ps-row .ps-ok{display:inline-flex;flex:none;color:var(--on-tint-good)}
.ps-row .sub.ps-warn{color:var(--on-tint-warn)}
.ps-row .sub.wrap{white-space:normal}
.ps-row .ps-main{flex:1;min-width:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer;padding:0;display:block}
.ps-row .ps-main .name,.ps-row .ps-main .sub{display:block}
.ps-state{display:inline-flex;flex:none;color:var(--muted)}
.ps-state.allowed{color:var(--on-tint-good)}
.ps-state.asked{color:var(--on-tint-warn)}
.ps-status.asked{color:var(--on-tint-warn)}
.ps-withdraw{color:var(--danger)}
.ps-note{display:flex;flex-direction:column;gap:var(--sp-4);padding:var(--sp-6);border-radius:var(--r-ctl);background:var(--bg);color:var(--muted);font-size:var(--fs-14);line-height:1.4}
.ps-note b{color:var(--fg)}
#psBody .label.sec-label,#childrenBody .label.sec-label{display:block;margin-top:var(--sp-7)}
#psBody .list.flat,#childrenBody .list.flat{margin-top:var(--sp-4)}
#childrenBody .list+.muted,#childrenBody .list+.list{margin-top:var(--sp-4)}
.sheet .ch-list{margin:var(--sp-3) 0 var(--sp-6);padding-left:var(--sp-7);color:var(--muted)}.sheet .ch-list li{margin-bottom:var(--sp-2)}
#childrenBody .btn.block+.label{margin-top:var(--sp-7)}
#childrenBody .avatar{margin-right:var(--sp-4)}
.dest-off,.gl-off,#gameDests label.off{opacity:.55}
.dest-note,.gl-note{margin:var(--sp-4) 0 0;color:var(--muted);font-size:var(--fs-14);line-height:1.4}
.gl-dest{display:flex;align-items:center;gap:var(--sp-6);min-height:var(--row);padding:var(--sp-4) var(--sp-6);border-radius:var(--r-ctl);background:var(--bg)}
.gl-dest.locked{opacity:.85;color:var(--on-tint-warn)}
.gl-dest.locked .name{color:var(--fg)}
.gl-dest label{display:flex;align-items:center;gap:var(--sp-6);width:100%}
.gl-dest .grow{display:flex;flex-direction:column;min-width:0}            /* the name over its line (not "in the appMembers only") */
.gl-lock{display:block;color:var(--on-tint-warn);font-size:var(--fs-14)}
.row:disabled{opacity:.55;cursor:default}

/* the public broadcast line over the picture while live (pubcast.js) */
.wv-pub{display:flex;align-items:center;gap:var(--sp-4);flex-wrap:wrap}
.wv-pub[hidden]{display:none}

/* ---- player card: icon tiles (an icon and one word; the full words are in each tile's aria-label) ---- */
.pc-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--sp-4);margin:var(--sp-4) 0}
.pc-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--sp-2);min-width:0;min-height:68px;padding:var(--sp-3) var(--sp-2);border:0;border-radius:var(--r-card);background:var(--surface);color:var(--fg);font:inherit;cursor:pointer}
.pc-tile .icon{width:24px;height:24px;flex:none}
.pc-tile>span{max-width:100%;font-size:11.5px;line-height:1.2;font-weight:600;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pc-tile.on .icon{fill:var(--accent);color:var(--accent)}
.pc-tile.primary{background:var(--accent);color:var(--accent-fg)}
.pc-tile.primary>span{color:var(--accent-fg)}
.pc-tile.danger{color:var(--on-tint-danger)}
.pc-tile.danger>span{color:var(--on-tint-danger)}
.pc-tile:disabled,.pc-tile.primary:disabled{background:var(--raised);color:var(--muted);opacity:.6;cursor:default}
.pc-tile:disabled>span{color:var(--muted)}
.pc-tile:focus-visible{outline:3px solid var(--accent);outline-offset:2px}

/* ---- The scorebook's top (scoring.js, scoretop.js): Fix, the pinned score band, the period line, the clock pill and its popover ---- */
/* The band is the first child of the scrolling body, so it stays at the top while the pad scrolls under it. */
.sb-band{position:sticky;top:0;z-index:3;flex:none;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:var(--sp-4);margin:0 calc(var(--pad-x) * -1);padding:var(--sp-4) var(--pad-x);background:var(--bg);box-shadow:0 1px 0 var(--hair)}
.sb-band[hidden]{display:none}
.sb-team{display:flex;align-items:center;gap:var(--sp-4);min-width:0}
.sb-team.r{flex-direction:row-reverse;text-align:right}
.sb-tdot{flex:none;width:6px;height:34px;border-radius:3px}
.sb-tw{display:flex;flex-direction:column;min-width:0}
.sb-tn{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font:var(--t-title);text-transform:uppercase;letter-spacing:.03em;line-height:1.1}
.sb-ts{font:var(--t-caption-strong);color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.sb-nums{display:flex;align-items:center;gap:var(--sp-6);font:800 italic var(--fs-40)/1 var(--display);font-variant-numeric:tabular-nums}
.sb-nums .lead{color:var(--accent-text)}
.sb-nums .dash{font:700 var(--fs-28)/1 var(--display);color:var(--muted)}
.sb-per{display:flex;flex-wrap:nowrap;align-items:center;gap:var(--sp-2)}
.sb-per .sb-short{display:none}
@media (max-width:374px){.sb-per{flex-wrap:wrap}.sb-per .sb-short{display:inline}.sb-per .sb-long{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}   /* (below 375 px the short form shows: Q4, 2H, Next; the full words stay for assistive technology) */
.sb-pw{display:flex;flex-direction:column;flex:none;margin-right:var(--sp-1);min-width:0}
.sb-pbat{font:var(--t-caption);color:var(--muted)}
.sb-pname{font:700 var(--fs-16)/1 var(--display);white-space:nowrap;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}
.sb-per .chip.sb-pbox,.sb-per .chip.sb-cksw{flex:none;min-width:0;padding:0 var(--sp-3);gap:var(--sp-2);background:var(--surface);color:var(--muted);font:var(--t-label)}
.sb-pbox .chev{width:14px;height:14px}
.sb-cksw i{display:block;position:relative;width:26px;height:16px;border-radius:var(--r-pill);background:var(--raised)}
.sb-cksw i::after{content:"";position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:var(--muted);transition:transform .15s}
.sb-cksw.on{color:var(--fg)}
.sb-cksw.on i{background:var(--accent)}
.sb-cksw.on i::after{transform:translateX(10px);background:var(--accent-fg)}
.sb-pnext{display:flex;gap:var(--sp-2);margin-left:auto;flex:none}
.sb-pnext .btn.sm{padding:0 var(--sp-3)}
.sb-pnext .sb-pend{background:none;color:var(--on-tint-danger);box-shadow:inset 0 0 0 1.5px var(--on-tint-danger)}
.sb-boxwrap{display:flex;flex-direction:column;gap:var(--sp-6)}
.sb-ckrow{display:flex;align-items:center;justify-content:center;gap:var(--sp-3)}
.sb-stopsw{display:inline-flex;flex:none;align-items:center;gap:var(--sp-2);height:var(--ctl);padding:0 var(--sp-4);border:0;border-radius:var(--r-pill);background:var(--surface);box-shadow:inset 0 0 0 1px var(--hair);color:var(--muted);font:var(--t-label);white-space:nowrap;cursor:pointer}
.sb-stopsw.on{color:var(--fg)}
.sb-stopsw .ss-short{display:none}
.sb-ckwrap{position:relative}
.sb-ckline{position:absolute;z-index:1;left:0;right:0;top:calc(100% + var(--sp-2));padding:var(--sp-3) var(--sp-4);border-radius:var(--r-card);background:var(--surface);box-shadow:inset 0 0 0 1px var(--hair);font:var(--t-caption);color:var(--fg);text-align:center;text-wrap:balance;pointer-events:none}   /* (what Stop time did: laid over the row under the clock for a few seconds, so showing it moves nothing; empty it has no box) */
.sb-ckline:empty{display:none}
@media (max-width:399px){.sb-stopsw .ss-long{display:none}.sb-stopsw .ss-short{display:inline}}   /* (under 400 px the label is "Running"; the full words stay in aria-label) */
.sb-ckpill{display:inline-flex;align-items:stretch;height:var(--ctl);overflow:hidden;border-radius:var(--r-pill);background:var(--surface);box-shadow:inset 0 0 0 1px var(--hair)}
.sb-ckv{padding:0 var(--sp-6) 0 var(--sp-7);border:0;background:none;color:var(--fg);font:700 var(--fs-28)/1 var(--display);letter-spacing:.04em;font-variant-numeric:tabular-nums;cursor:pointer}
.sb-ckpill.running .sb-ckv{color:var(--accent-text)}
.sb-ckgo{display:grid;place-items:center;width:52px;padding:0;border:0;background:var(--accent);color:var(--accent-fg);cursor:pointer}
.sb-ckpill.running .sb-ckgo{background:var(--raised);color:var(--fg)}
.sb-ckgo .ck-pause,.sb-ckpill.running .sb-ckgo .ck-play{display:none}
.sb-ckpill.running .sb-ckgo .ck-pause{display:block}
.sb-ckpop{position:absolute;z-index:6;display:flex;flex-direction:column;gap:var(--sp-4);padding:var(--sp-6);border-radius:var(--r-card);background:var(--raised);box-shadow:0 14px 30px rgba(0,0,0,.45)}
.sb-ckpop[hidden]{display:none}
.sb-ckpop::before{content:"";position:absolute;top:-6px;left:var(--arrow-x,50%);width:14px;height:14px;margin-left:-7px;background:inherit;transform:rotate(45deg);border-radius:3px}
.sb-ckpop-title{font:var(--t-label-strong);color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.sb-ckpop-len{align-self:center}
.sb-wheels{position:relative;display:flex;align-items:center;justify-content:center;gap:var(--sp-3);height:132px;overflow:hidden;border-radius:var(--r-ctl);background:rgba(0,0,0,.18)}
.sb-wband{position:absolute;left:var(--sp-4);right:var(--sp-4);top:50%;height:var(--tap);transform:translateY(-50%);border-radius:var(--r-ctl);background:rgba(255,255,255,.08);box-shadow:inset 0 0 0 1px var(--accent);pointer-events:none}
.sb-wheel{position:relative;z-index:1;width:84px;height:132px;padding:var(--tap) 0;box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;scroll-snap-type:y mandatory;scrollbar-width:none;touch-action:pan-y;-webkit-mask-image:linear-gradient(transparent,#000 30%,#000 70%,transparent);mask-image:linear-gradient(transparent,#000 30%,#000 70%,transparent)}
.sb-wheel::-webkit-scrollbar{display:none}
.sb-wheel:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;border-radius:var(--r-ctl)}
.sb-wopt{display:grid;place-items:center;height:var(--tap);scroll-snap-align:center;font:700 var(--fs-20)/1 var(--display);color:var(--muted);letter-spacing:.04em;font-variant-numeric:tabular-nums;cursor:pointer}
.sb-wopt.on{font-size:var(--fs-32);color:var(--fg)}
.sb-wsep{position:relative;z-index:1;font:700 var(--fs-32)/1 var(--display);color:var(--accent-text)}
/* The follow-up strip's own place above the keys: one fixed height, so a key never moves when a strip opens or closes. */
.pad-stripbox{display:flex;flex-direction:column;height:calc(var(--sp-4) + var(--ctl) + var(--rows,2) * (var(--ctl) + var(--sp-2)) + var(--sp-6));overflow-y:auto;overscroll-behavior:contain;border-radius:var(--r-card)}
.pad-stripbox>.pad-strip{flex:1 0 auto;gap:var(--sp-2);padding:var(--sp-4) var(--sp-6) var(--sp-6)}
.pad-stripbox .pad-strip-row{flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;gap:var(--sp-3)}
.pad-stripbox .pad-strip-row::-webkit-scrollbar{display:none}
.pad-stripbox .pad-strip-row>*{flex:none;scroll-snap-align:start}
.pad-stripbox .pad-strip-row.more{-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 28px),transparent)}
.pad-keys.five{gap:var(--sp-3)}
.pad-keys.five .pad-key{padding-left:var(--sp-1);padding-right:var(--sp-1)}
.pad-chips{display:flex;flex:none;gap:var(--sp-3)}
.pad-chips .pad-chip{min-width:0;padding:0 var(--sp-6)}
.pad-stripbox .pad-slots{display:flex;flex:1 1 0;min-width:0;gap:var(--sp-3)}
.pad-stripbox .pad-slots .pad-slot,.pad-chip.pad-slot{flex:1 1 0;min-width:44px;overflow:hidden;flex-direction:row;align-items:center;gap:var(--sp-2);min-height:var(--ctl);padding:0 var(--sp-4);border-radius:var(--r-pill);white-space:nowrap;font:var(--t-label)}   /* (a touchdown's "Scored by · Tap a jersey": a chip on the line of Run, Pass and Return) */
.pad-chip.pad-slot b{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;font:var(--t-label-strong)}
.pad-chip.pad-slot .pad-slot-q{font:var(--t-caption);color:var(--muted)}
.pad-chip.pad-slot[aria-pressed="true"]{background:var(--raised);color:var(--fg);outline:3px solid var(--fg);outline-offset:-3px}
.pad-strip-head .pad-chip{flex:none;min-height:var(--ctl-sm);min-width:0;padding:0 var(--sp-6);font:var(--t-label)}
.pad-credit{display:flex;flex-direction:column;gap:var(--sp-2)}
.pad-credit-tiles{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:var(--sp-2)}
.pad-ct{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:52px;padding:var(--sp-2) var(--sp-1);border:0;border-radius:var(--r-ctl);background:var(--raised);color:var(--fg);cursor:pointer;touch-action:manipulation}
.pad-ct b{font:var(--t-number);font-variant-numeric:tabular-nums}
.pad-ct span,.pad-ct small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 var(--fs-12)/1.2 var(--body);color:var(--muted)}
.pad-ct.none span,.pad-ct.other span{color:var(--fg)}
.pad-ct[aria-pressed="true"]{background:var(--fg);color:var(--bg)}
.pad-ct[aria-pressed="true"] span,.pad-ct[aria-pressed="true"] small{color:inherit}
.pad-ct.other{box-shadow:inset 0 0 0 1.5px var(--line-strong);background:none}
.pad-ct-n{position:absolute;top:var(--sp-1);right:var(--sp-1);font:600 var(--fs-12)/1 var(--body);font-style:normal;color:var(--accent-text)}
.pad-ct[aria-pressed="true"] .pad-ct-n{color:inherit}
.pad-wheel{position:relative;height:220px;margin:var(--sp-4) 0}
.pad-wheel::after{content:"";position:absolute;left:0;right:0;top:88px;height:44px;border-block:1.5px solid var(--line-strong);border-radius:var(--r-ctl);pointer-events:none}
.pad-wheel-list{height:100%;overflow-y:auto;overscroll-behavior:contain;scroll-snap-type:y mandatory;padding:calc(2 * var(--ctl)) 0;box-sizing:border-box;scrollbar-width:none}
.pad-wheel-list::-webkit-scrollbar{display:none}
.pad-wheel-opt{display:flex;align-items:center;justify-content:center;height:44px;scroll-snap-align:center;color:var(--muted);font:var(--t-body-semi)}
.pad-wheel-opt[aria-selected="true"]{color:var(--fg);font:var(--t-body-strong)}
.pad-wheel-type{display:block;margin:var(--sp-4) auto 0}
.pad-stripbox.idle{align-items:center;justify-content:center;border:1.5px dashed var(--line-strong);color:var(--muted);font:var(--t-label);text-align:center}
.pad-jersey.type{background:none;box-shadow:inset 0 0 0 1.5px var(--line-strong);color:var(--muted)}
.pad-jersey.type b{font-size:var(--fs-20)}

/* ===== Season shapes (radar charts): the player's Shape tab (playerstats.js) and the team's Shapes grid (teamstats.js). Every class here starts with shp-; the colours are the team's (--shp-c, else the accent). ===== */
.ps-panel{display:flex;flex-direction:column;gap:var(--sp-6);min-width:0}
.ps-panel[hidden]{display:none}
.shp-card{display:flex;flex-direction:column;gap:var(--sp-4);min-width:0;padding:var(--sp-6) var(--sp-4);border-radius:var(--r-card);background:var(--surface);box-shadow:var(--edge-light)}
.shp-head{display:flex;justify-content:space-between;align-items:baseline;gap:var(--sp-4);padding:0 var(--sp-4)}
.shp-title{margin:0;font:var(--t-body-strong)}
.shp-scale{display:flex;align-items:center;gap:var(--sp-6);min-width:0}
.shp-scale .seg{flex:1;min-width:0}
.shp-sl{font:var(--t-overline);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.shp-chart{display:flex;justify-content:center;min-width:0}
.shp-svg{display:block;width:100%;height:auto;max-width:360px;overflow:visible}
.shp-ring{fill:none;stroke:var(--hair)}
.shp-ring.rim{stroke:var(--line-strong);stroke-opacity:.5}
.shp-spk{stroke:var(--hair);stroke-width:1}
.shp-spk.on{stroke:var(--fg);stroke-opacity:.5}
.shp-t1{fill:var(--shp-c,var(--accent))}
.shp-lo-night .shp-out,.shp-lo-night .shp-dot{stroke:var(--fg)}      /* (a team colour under 3:1 against the surface: the shape is outlined in the text colour, by theme; radar.js shapeLook) */
html[data-theme="day"] .shp-lo-night .shp-out,html[data-theme="day"] .shp-lo-night .shp-dot{stroke:var(--shp-c,var(--accent))}
html[data-theme="day"] .shp-lo-day .shp-out,html[data-theme="day"] .shp-lo-day .shp-dot{stroke:var(--fg)}
.shp-t2{fill:color-mix(in srgb,var(--shp-c,var(--accent)) 65%,#000)}
.shp-out{fill:none;stroke:var(--shp-c,var(--accent));stroke-width:2;stroke-linejoin:round}
.shp-avg{fill:none;stroke:var(--fg);stroke-opacity:.8;stroke-width:1.5;stroke-dasharray:4 3;stroke-linejoin:round}
.shp-dot{fill:var(--shp-c,var(--accent));stroke:var(--surface);stroke-width:2}
.shp-axl{font:var(--t-caption);fill:var(--muted)}
.shp-axv{font:var(--t-caption-strong);fill:var(--fg);font-variant-numeric:tabular-nums}
.shp-lab{cursor:pointer}
.shp-lab.on .shp-axl{fill:var(--fg)}
.shp-hit{stroke:transparent;stroke-width:30;stroke-linecap:round;cursor:pointer}
.shp-keys{position:relative;height:0}
.shp-read{margin:0;padding:var(--sp-4) var(--sp-6);border-radius:var(--r-ctl);background:var(--raised);color:var(--fg);font:var(--t-label);min-height:calc(var(--tap) + var(--sp-4))}
.shp-legend{display:flex;justify-content:center;gap:var(--sp-7);flex-wrap:wrap;font:var(--t-caption);color:var(--muted)}
.shp-legend span{display:flex;align-items:center;gap:var(--sp-3)}
.shp-sw{width:14px;height:10px;border-radius:3px;background:repeating-linear-gradient(90deg,var(--shp-c,var(--accent)) 0 4px,color-mix(in srgb,var(--shp-c,var(--accent)) 65%,#000) 4px 8px)}
.shp-dash{width:18px;border-top:2px dashed var(--fg);opacity:.8}
.shp-cap{margin:0;text-align:center}
.shp-sec{margin-top:var(--sp-4)}
.shp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-4);margin-top:var(--sp-4)}
.shp-mini{display:flex;flex-direction:column;align-items:center;gap:var(--sp-2);min-width:0;padding:var(--sp-4) var(--sp-2) var(--sp-6);border:0;border-radius:var(--r-card);background:var(--surface);box-shadow:var(--edge-light);color:var(--fg);font:var(--t-label);cursor:pointer}
.shp-mini .shp-svg{max-width:150px}
.shp-mn{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}
.shp-mn b{color:var(--fg)}

/* Tell the scorer: a goal of the box score with its parent's note line (the note's state, or the button to send one) kept together, and the scorer's note rows in Stats to credit. */
.bx-goal{border-bottom:1px solid var(--hair)}
.bx-goal>.row{border-bottom:0}
.list>:last-child.bx-goal{border-bottom:0}
.bx-note{display:flex;align-items:center;gap:var(--sp-6);padding:0 var(--sp-6) 0 calc(var(--sp-6) + var(--ctl));min-height:var(--ctl)}
.bx-note .link-btn{min-height:var(--ctl);color:var(--muted);font:var(--t-label)}
.bx-note-state{font:var(--t-label-strong);color:var(--muted)}
.bx-note-state.accepted{color:var(--good)}
.note-row .name{overflow-wrap:anywhere;white-space:normal}
.note-act{display:flex;gap:var(--sp-4);margin-top:var(--sp-4)}
.nk-head{margin-bottom:var(--sp-4)}
.nk-view .field{margin-top:var(--sp-7)}
.nk-view .sheet-actions{margin-top:var(--sp-7)}
.nk-head .link-btn{color:var(--fg)}
/* Finish the book (finish.js): one sheet, three steps */
.fp{display:flex;flex-direction:column;gap:var(--sp-6)}
.fp h3{margin:0}
.fp-step{margin:0}
.fp-body{display:flex;flex-direction:column;gap:var(--sp-6)}
.fp-play{display:flex;flex-direction:column;gap:var(--sp-4);padding:var(--sp-6);border-radius:var(--r-card);background:var(--surface)}
.fp-play-head{display:flex;align-items:center;gap:var(--sp-4)}
.fp-play-head .grow{flex:1;min-width:0}
.fp-play-head .name,.fp-play-head .sub{display:block}
.fp-tiles{display:flex;flex-wrap:wrap;gap:var(--sp-4)}
.fp-tile{min-width:0;padding:0 var(--sp-6);max-width:100%;overflow-wrap:anywhere}
.fp-tile:disabled{opacity:.5}
.fp-acts{display:flex;gap:var(--sp-7)}
.fp-sum,.fp-done{flex-direction:column;align-items:stretch;gap:var(--sp-4)}
.fp-sum p,.fp-done p{margin:0}
.fp-pl:disabled{opacity:.6}
.fp-pl .st-radio{position:relative;border-radius:var(--r-sm)}
.fp-pl[aria-checked="true"] .st-radio{border-color:var(--accent);background:var(--accent)}
.fp-pl[aria-checked="true"] .st-radio::after{content:"";position:absolute;left:5px;top:1px;width:6px;height:11px;border:solid var(--accent-fg);border-width:0 2px 2px 0;transform:rotate(45deg)}
.fp-quiet{color:var(--muted);font:var(--t-body-semi)}
/* ---------- team homework (engines/homework*.js): the Coach's corner, the composer, the tracker, the parent's screen and Home's card ---------- */
.tp-coach{margin:0 0 var(--sp-6)}
#homeworkBody .label.sec-label{display:block;margin-top:var(--sp-7)}
#homeworkBody>.head-row,#homeworkBody>.btn.block{margin-top:var(--sp-6)}
#homeworkBody .list+.list,#homeworkBody .list+.muted{margin-top:var(--sp-4)}
.hw-thumb{flex:none;display:block;width:72px;aspect-ratio:16/9;overflow:hidden;border-radius:var(--r-sm);background:var(--raised)}
.hw-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.hw-ph{display:grid;place-items:center;color:var(--muted);font:var(--t-label-strong)}
.hw-row .hw-thumb{margin-right:var(--sp-2)}
.hw-preview{display:flex;align-items:center;gap:var(--sp-6);margin:var(--sp-6) 0;padding:var(--sp-6);border-radius:var(--r-card);background:var(--surface);box-shadow:var(--edge-light)}
.hw-preview .grow{min-width:0}
.hw-preview .name{display:block;overflow-wrap:anywhere}
.hw-soft{margin:var(--sp-4) 0}
.hw-chips{display:flex;flex-wrap:wrap;gap:var(--sp-4)}
.hw-chips .chip[aria-pressed="true"]{background:var(--accent);color:var(--accent-fg)}
.hw-chips .chip:disabled{opacity:.6;cursor:default}
.hw-pick{margin-top:var(--sp-6)}
.hw-check{cursor:pointer}
.hw-check input{flex:none;width:22px;height:22px;accent-color:var(--accent)}
.hw-when{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-6);margin-top:var(--sp-6)}
.hw-choices{display:flex;flex-direction:column;align-items:flex-start;gap:var(--sp-4);margin-top:var(--sp-6)}
.hw-choice{display:flex;align-items:center;gap:var(--sp-4);width:100%}
.hw-choice .input{flex:1;min-width:0}
#hwForm .field{margin-top:var(--sp-6)}
.hw-actions{margin-top:var(--sp-7)}
#hwErr{margin-top:var(--sp-6)}
.hw-bar{display:block;height:8px;margin:var(--sp-4) 0;overflow:hidden;border-radius:var(--r-pill);background:var(--raised)}
.hw-bar b{display:block;height:100%;background:var(--accent)}
.hw-bar.sm{height:6px;margin:var(--sp-2) 0 0}
.hw-count{margin:var(--sp-2) 0 var(--sp-6);font:var(--t-body-strong)}
.hw-note{margin:var(--sp-6) 0}
.hw-tools{display:flex;gap:var(--sp-4);margin-top:var(--sp-8)}
.hw-tools .btn{flex:1}
.hw-player .hw-react{display:flex;gap:var(--sp-4);padding:0 0 var(--sp-6)}
.hw-player .hw-react .btn{flex:1}
.hw-player .hw-react .btn[aria-pressed="true"]{background:var(--accent);color:var(--accent-fg)}
.hw-answer{color:var(--fg)}
.hw-by{color:var(--muted)}
.hw-video{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:var(--r-card);background:#000}
.hw-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.hw-open{display:flex;flex-direction:column;align-items:flex-start;gap:var(--sp-4)}
.hw-open .hw-thumb{width:100%;max-width:320px}
.hw-title{margin:0;font:var(--t-title)}
.hw-status{margin:var(--sp-4) 0}
.hw-state{display:inline-block;padding:1px var(--sp-4);border-radius:var(--r-tag);background:var(--raised);color:var(--fg);font:var(--t-label-strong)}
.hw-state.ok{background:var(--tint-good);color:var(--on-tint-good)}
.hw-q{margin:var(--sp-6) 0;padding:0;border:0}
.hw-pickone legend{padding:0;margin-bottom:var(--sp-4);font:var(--t-body-strong)}
.hw-pickone .hw-check{border-radius:var(--r-ctl)}
.hw-nice{display:flex;align-items:center;gap:var(--sp-4);margin:var(--sp-6) 0;color:var(--on-tint-good);font:var(--t-body-strong)}
#hwActs .btn+.btn{margin-top:var(--sp-4)}
.hw-home-item .hw-go{flex:none;padding:var(--sp-3) var(--sp-6);border-radius:var(--r-pill);background:var(--accent);color:var(--accent-fg);font:var(--t-label-strong)}
.hw-home-item .hw-thumb{width:56px}

/* the football scorer's screen (engines/football.js) and the jersey wheel (engines/jerseywheel.js) */
.fb-drives{display:flex;flex-direction:column;gap:var(--sp-4)}
.fb-drives-head{display:flex;align-items:baseline;justify-content:space-between;gap:var(--sp-4)}
.fb-drive{background:var(--surface);border-radius:var(--r-card);overflow:hidden}
.fb-drive-line{width:100%;min-height:var(--tap);display:flex;align-items:center;gap:var(--sp-6);padding:var(--sp-3) var(--sp-6) var(--sp-3) 0;border:0;background:none;color:var(--fg);text-align:left;cursor:pointer;font:var(--t-label)}
.fb-stripe{flex:none;align-self:stretch;width:4px;border-radius:0 var(--r-tag) var(--r-tag) 0;background:var(--info)}
.fb-stripe.us{background:var(--accent)}
.fb-drive-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--sp-1)}
.fb-drive-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fb-drive-meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fb-out{color:var(--muted);font-weight:700}
.fb-out.score{color:var(--accent-text)}
.fb-chev{flex:none;color:var(--muted)}
.fb-plays{padding:0 var(--sp-6) var(--sp-3) var(--sp-7);max-height:200px;overflow-y:auto;overscroll-behavior:contain}
.fb-play{display:flex;align-items:center;gap:var(--sp-4);min-height:var(--tap-sm);border-top:1px solid var(--line);font:var(--t-label)}
.fb-play .grow{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fb-dd{flex:none;width:64px;color:var(--muted)}
.fb-banner{border-radius:var(--r-card);background:var(--surface);border:2px solid var(--accent);overflow:hidden}
.fb-banner.them{box-shadow:inset 4px 0 0 var(--info)}
.fb-down{width:100%;min-height:var(--tap-lg);display:flex;align-items:center;gap:var(--sp-4);padding:var(--sp-3) var(--sp-4) var(--sp-3) var(--sp-6);border:0;background:none;color:var(--fg);text-align:left;cursor:pointer;touch-action:manipulation}
.fb-dline{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:var(--sp-1)}
.fb-edit{flex:none;display:inline-flex;align-items:center;gap:var(--sp-3);min-height:var(--tap);padding:0 var(--sp-6);border-radius:var(--r-pill);background:var(--raised);color:var(--fg);font:var(--t-body-semi)}
.fb-edit .icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.fb-poss{font:var(--t-overline);letter-spacing:.06em;color:var(--muted)}
.fb-dtext{font:var(--t-title);white-space:nowrap}
.fb-swap{flex:none}
.fb-hint .grow{flex:1;min-width:0}
.fb-swap[aria-pressed="true"]{background:var(--fg);color:var(--bg)}
.fb-pend{display:flex;align-items:center;gap:var(--sp-4);padding:var(--sp-4) var(--sp-6);border-radius:var(--r-card);background:var(--raised)}
.fb-pend .grow{flex:1;min-width:0}
.fb-hint{display:flex;justify-content:space-between;align-items:center;gap:var(--sp-4)}
.fb-gaintext{font:var(--t-title);color:var(--muted)}
.fb-gaintext.up{color:var(--good)}
.fb-gaintext.down{color:var(--danger)}
.fb-field{position:relative;width:100%;height:112px;border-radius:var(--r-ctl);overflow:hidden;background:#2f7d43;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}
.fb-field.locked{opacity:.55;cursor:default}
.fb-field:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.fb-ez{position:absolute;top:0;bottom:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;min-width:0;padding:0;border:0;color:#fff;cursor:pointer;writing-mode:vertical-rl;text-orientation:mixed;overflow:hidden}
.fb-ez.us{background:#1f5a8f}
.fb-ez.them{background:#6b7280}
.fb-ez-name{max-height:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:700 var(--fs-14)/1.1 var(--display);letter-spacing:.08em}
.fb-ez-sub{font:700 var(--fs-12)/1 var(--body);letter-spacing:.1em;opacity:.85}
.fb-yl,.fb-goal{position:absolute;top:0;bottom:0;width:1px;background:rgba(255,255,255,.45)}
.fb-yl.mid{width:2px;background:rgba(255,255,255,.8)}
.fb-goal{width:3px;margin-left:-1px;background:#fff}
.fb-yn{position:absolute;bottom:3px;width:24px;margin-left:-12px;text-align:center;font:700 var(--fs-12)/1 var(--body);color:rgba(255,255,255,.9);pointer-events:none}
.fb-gain,.fb-los{position:absolute;top:0;bottom:0;width:3px;margin-left:-1px;pointer-events:none}
.fb-gain{background:#ffc72c}
.fb-los{background:#5aa9ff}
.fb-bar{position:absolute;top:50px;height:6px;border-radius:3px;background:rgba(255,255,255,.6);pointer-events:none}
.fb-bar.up{background:var(--good)}
.fb-bar.down{background:var(--danger)}
.fb-ball{position:absolute;top:38px;width:34px;height:30px;margin-left:-17px;display:flex;align-items:center;justify-content:center;pointer-events:none}
.fb-ball svg{width:34px;height:22px;filter:drop-shadow(0 1px 2px rgba(0,0,0,.45))}
.fb-balltext{position:absolute;top:6px;width:84px;margin-left:-42px;text-align:center;font:700 var(--fs-12)/1.3 var(--body);background:rgba(5,12,23,.75);color:#fff;border-radius:var(--r-ctl);padding:var(--sp-1) 0;pointer-events:none}
.fb-acts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--sp-3)}
.fb-acts .btn{min-width:0;padding:0 var(--sp-2)}
.fb-acts .fb-undo{grid-column:1/-1}
.fb-card{display:flex;align-items:center;gap:var(--sp-4);padding:var(--sp-3) var(--sp-4);border-radius:var(--r-card);background:var(--surface)}
.fb-card.col{flex-direction:column;align-items:stretch;gap:var(--sp-3)}
.fb-card-row{display:flex;align-items:center;gap:var(--sp-4)}
.fb-card .grow{flex:1;min-width:0}
.fb-card-main{flex:1;min-width:0;min-height:var(--tap);display:flex;align-items:center;gap:var(--sp-3);border:0;background:none;color:var(--fg);text-align:left;cursor:pointer;font:var(--t-body-semi)}
.fb-card-main .fb-chev{margin-left:auto}
.fb-num{flex:none;width:36px;height:36px;display:grid;place-items:center;border-radius:var(--r-ctl);background:var(--accent);color:var(--accent-fg);font:var(--t-number)}
.fb-qrow{padding-left:var(--sp-4);border-top:1px solid var(--line);min-height:var(--tap)}
.fb-quick{display:flex;flex-direction:column;gap:var(--sp-3)}
.fb-nudge{display:flex;align-items:center;justify-content:center;gap:var(--sp-6)}
.fb-nudge .btn{min-width:var(--tap)}
.fb-val{min-width:64px;text-align:center;font:var(--t-title);font-variant-numeric:tabular-nums}
.fb-step{display:flex;flex-direction:column;gap:var(--sp-3)}
.fb-step-row{display:flex;align-items:center;justify-content:center;gap:var(--sp-3)}
.fb-step-row .btn{min-width:var(--tap);padding:0 var(--sp-3)}
.fb-step-row .fb-val{flex:1;min-width:0;white-space:nowrap}
.fb-title{font:var(--t-title)}
/* Gamecast (engines/gamecast.js): a football game followed on the field. The Video / Gamecast toggle sits over the game; Gamecast takes the picture's place. The field is the scorer's (.fb-field, read only: .ro). */
/* the announcer chip sits beside the sound chip (it has the sound chip's classes and rules): gamecast.js sets --snd-w to the sound chip's width and gap */
.announcer-chip{transform:translateX(var(--snd-w,0px))}
#vidVoice:empty{display:none}
#vidVoice{margin-top:var(--sp-4)}
.gc-outs{font:var(--t-label);opacity:.8}
.gc-toggle{margin-top:var(--sp-6);margin-bottom:var(--sp-4)}
.gc-seg{max-width:420px}
.wv-main.gc-on .stage,.wv-main.gc-on .rx-bar,.wv-main.gc-on #tvRow,.wv-main.gc-on .wv-off,.wv-main.gc-on .now-game{display:none}
.gc{display:flex;flex-direction:column;gap:var(--sp-6);min-width:0;margin-top:var(--sp-4)}
.gc[hidden]{display:none}
.gc-head{display:flex;justify-content:flex-end;min-width:0}
.gc-head:empty{display:none}
.gc-say{gap:var(--sp-3);min-height:var(--tap);min-width:var(--tap)}
.gc-say .icon{flex:none}
/* Tailor Playgate's portrait in the two announcer buttons (gamecast.js avatar()): a small round picture instead of the speaker icon; faded while he is off */
.ann-av{flex:none;width:var(--sp-8);height:var(--sp-8);border-radius:50%;object-fit:cover}
.ann-av.off{opacity:.55}
.gc-voice{display:flex;flex-direction:column;gap:var(--sp-3);padding:var(--sp-4) var(--sp-6);border-radius:var(--r-card);background:var(--surface);min-width:0}
.gc-vtext{margin:0;font:var(--t-label);overflow-wrap:anywhere}
.gc-vbtns{display:flex;flex-wrap:wrap;gap:var(--sp-3)}
.gc-vprog{width:100%;height:8px;accent-color:var(--accent)}
.gc-voice>.btn{align-self:flex-start}
.gc-bar{display:flex;align-items:stretch;min-height:44px;border-radius:var(--r-ctl);overflow:hidden;background:#05080D;color:var(--on-video);font-family:var(--display);line-height:1}
.gc-t{flex:1;min-width:0;display:flex;align-items:center;gap:var(--sp-3);padding:0 var(--sp-4);font-weight:700;letter-spacing:.08em;font-size:var(--fs-16)}
.gc-t.us{background:#FFC72C;color:#0B1F3A}
.gc-t.them{background:#DCE5F0;color:#0B1F3A;justify-content:flex-end}
.gc-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gc-poss{flex:none}
.gc-n{display:grid;place-items:center;min-width:1.7em;padding:0 var(--sp-3);background:var(--navy);color:var(--on-video);font-size:var(--fs-28);font-weight:700;font-variant-numeric:tabular-nums}
.gc-p{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--sp-1);min-width:64px;padding:0 var(--sp-3);background:#05080D}
.gc-p b{color:var(--gold);font-size:var(--fs-14);letter-spacing:.04em;white-space:nowrap}
.gc-clock{font-style:normal;font-weight:700;font-size:var(--fs-14);font-variant-numeric:tabular-nums}
.gc-down{display:flex;align-items:baseline;justify-content:space-between;gap:var(--sp-4);flex-wrap:wrap}
.gc-dtext{font:var(--t-title);letter-spacing:.02em}
.gc-who{font:var(--t-label);color:var(--muted)}
.gc-field .fb-field.ro{cursor:default;touch-action:auto;height:150px}
.gc-field .fb-field.ro .fb-ball{top:58px}
.gc-field .fb-field.ro .fb-bar{top:92px}
.fb-field.ro .fb-ez{cursor:default}
.gc-key{display:flex;align-items:center;gap:var(--sp-3);margin:var(--sp-3) 0 0}
.gc-k{display:inline-block;width:3px;height:14px;margin-left:var(--sp-4)}
.gc-k.gain{background:#ffc72c;margin-left:0}
.gc-k.los{background:#5aa9ff}
.gc-live{min-height:0}
.gc-flash{display:flex;flex-direction:column;gap:var(--sp-1);padding:var(--sp-4) var(--sp-6);border-radius:var(--r-card);background:var(--raised);color:var(--fg)}
.gc-flash.score{background:var(--accent);color:var(--accent-fg)}
.gc-ftag{font:var(--t-overline);letter-spacing:.06em;opacity:.8}
.gc-ftext{font:var(--t-title);line-height:1.15;overflow-wrap:anywhere}
.gc-drive{background:var(--surface);border-radius:var(--r-card);padding:var(--sp-2) var(--sp-6)}
.gc-h{margin:0;padding:var(--sp-4) 0;font:var(--t-overline);letter-spacing:.06em;color:var(--muted)}
.gc-plays{list-style:none;margin:0;padding:0}
.gc-play{display:flex;align-items:center;gap:var(--sp-4);min-height:var(--tap-sm);border-top:1px solid var(--hair);font:var(--t-label)}
.gc-dd{flex:none;width:64px;color:var(--muted)}
.gc-ptext{flex:1;min-width:0;overflow-wrap:anywhere}
.gc-gain.up{color:var(--good)}
.gc-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-4)}
.gc-pair .btn,.gc-btn{min-width:0}
.gc-btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--sp-3);min-height:var(--tap)}
.gc-ic{width:20px;height:14px;flex:none}
.gc-mini{min-height:var(--tap);padding:0 var(--sp-4)}
.gc-note{display:block;margin-top:var(--sp-3)}
.live-actions>.gc-pair,.live-actions>.gc-note{grid-column:1/-1}
.hm-nx.live .live-actions .gc-mini{min-width:0}
.gc-sheetbtn{width:100%;margin-top:var(--sp-2)}
@media (prefers-reduced-motion:no-preference){.gc-flash{animation:gcflash 3.2s ease-out both}@keyframes gcflash{0%{transform:translateY(8px);opacity:0}12%{transform:none;opacity:1}85%{opacity:1}100%{opacity:.35}}}
.jw{display:flex;flex-direction:column;gap:var(--sp-3)}
.jw-box{position:relative;height:120px;border-radius:var(--r-card);background:var(--surface);overflow:hidden}
.jw-list{height:120px;box-sizing:border-box;padding:var(--sp-11) 0;overflow-y:auto;scroll-snap-type:y mandatory;scrollbar-width:none;overscroll-behavior:contain}
.jw-list::-webkit-scrollbar{display:none}
.jw-list:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}
.jw-row{height:40px;scroll-snap-align:center;display:flex;align-items:baseline;justify-content:center;gap:var(--sp-4);padding-top:var(--sp-2);box-sizing:border-box;cursor:pointer}
.jw-row b{font:var(--t-number);font-variant-numeric:tabular-nums}
.jw-row span{font:600 var(--fs-12)/1 var(--body);color:var(--muted);max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jw-frame{position:absolute;left:var(--sp-3);right:var(--sp-3);top:40px;height:40px;border:2px solid var(--accent);border-radius:var(--r-ctl);box-sizing:border-box;pointer-events:none}
/* the numeric spin wheel (lib/spinwheel.js): the jersey wheel's box, list and frame, for numbers and words */
.spw{display:flex;flex-direction:column;gap:var(--sp-3);min-width:0;flex:1}
.spw-box{position:relative;height:120px;border-radius:var(--r-card);background:var(--surface);overflow:hidden}
.spw-list{height:120px;box-sizing:border-box;padding:var(--sp-11) 0;overflow-y:auto;scroll-snap-type:y mandatory;scroll-behavior:auto;scrollbar-width:none;overscroll-behavior:contain;touch-action:pan-y}
.spw-list::-webkit-scrollbar{display:none}
.spw-list:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}
.spw-row{height:40px;scroll-snap-align:center;display:flex;align-items:center;justify-content:center;gap:var(--sp-3);box-sizing:border-box;cursor:pointer;color:var(--muted);white-space:nowrap}
.spw-row b{font:var(--t-title);font-variant-numeric:tabular-nums}
.spw-row.on{color:var(--fg)}
.spw-row span{font:600 var(--fs-12)/1 var(--body);color:var(--muted)}
.spw-frame{position:absolute;left:var(--sp-3);right:var(--sp-3);top:40px;height:40px;border:2px solid var(--accent);border-radius:var(--r-ctl);box-sizing:border-box;pointer-events:none}
.fb-wheels{display:flex;gap:var(--sp-4);align-items:flex-start}
.fb-wheelcol{display:flex;flex-direction:column;gap:var(--sp-4);flex:1;min-width:0}
.fb-wheelcol .seg{width:100%}
/* Football's mode chip in the scorebook header (engines/footballmode.js): a button for people who can score the game, a plain label for the others. */
.sb-head h2{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sb-mode-slot{flex:0 0 auto;margin-right:auto;display:flex;align-items:center}
.sb-head .badge,.sb-head .btn,.sb-head .icon-btn{flex:none}
.sb-mode{display:inline-flex;align-items:center;gap:var(--sp-2);min-height:var(--tap);min-width:var(--tap);padding:0 var(--sp-6);border:0;border-radius:var(--r-pill);background:var(--raised);color:var(--fg);font:var(--t-label-strong);white-space:nowrap;cursor:pointer}
.sb-mode .icon{width:16px;height:16px;color:var(--accent-text)}
.sb-mode.static{min-height:var(--tap-sm);background:none;color:var(--muted);cursor:default;padding:0 var(--sp-3)}
.fb-switch{margin:0;padding:var(--sp-3) var(--sp-6);border-left:3px solid var(--accent);background:var(--surface);border-radius:var(--r-sm)}
.gc-standard{margin:0;padding:var(--sp-6) var(--sp-6);border-radius:var(--r-card);background:var(--surface)}
.gc-switch{list-style:none;padding:var(--sp-3) var(--sp-6);border-left:3px solid var(--accent)}

/* Free plan locks (lib/upgrade.js): the gold lock badge, a locked replay tile, a locked angle chip, and the one upgrade sheet */
.lock-badge{display:inline-grid;place-items:center;flex:none;width:24px;height:24px;border-radius:var(--r-pill);background:var(--accent);color:var(--accent-fg)}
.lock-badge .icon{width:14px;height:14px}
.tr-still .lock-badge{position:absolute;right:var(--sp-3);top:var(--sp-3)}
button.tr-tile{width:100%;padding:0;border:0;background:none;font:inherit;text-align:left;cursor:pointer}
.tr-tile.locked .tr-still{opacity:.85}
.tr-gold{color:var(--accent-text);font-weight:700}
.tr-free{color:var(--good)}
.chip.locked{display:inline-flex;align-items:center;gap:var(--sp-3)}
.btn .lock-badge{width:20px;height:20px}
.up-lines{display:flex;flex-direction:column;gap:var(--sp-3);margin:0;padding:0;list-style:none}
.up-lines li{display:flex;gap:var(--sp-4);align-items:flex-start}
.up-lines .icon{flex:none;width:18px;height:18px;margin-top:var(--sp-1);color:var(--accent-text)}
.up-price{margin:0;font:var(--t-body-strong)}
.up-note{margin:0}
.up-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-4)}
.up-compare>div{padding:var(--sp-6);border-radius:var(--r-card);background:var(--bg)}
.up-compare .up-lines{font-size:var(--fs-14)}
.up-compare h4{margin:0 0 var(--sp-3);font:var(--t-body-strong)}
.up-compare .up-all{box-shadow:inset 0 0 0 2px var(--accent)}
.st-lockwrap{position:relative;min-height:120px}
.st-lockbar{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}
.st-lockbar .btn{pointer-events:auto}
.st-blur{filter:blur(5px);user-select:none;pointer-events:none}
.st-lockline{margin:var(--sp-6) var(--gutter) 0}
.st-advbtn{display:inline-flex;align-items:center;gap:var(--sp-3)}
.recap-lock{border-radius:var(--r-card);background:var(--surface)}
.fm-meter{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-4);margin:0 0 var(--sp-6);padding:var(--sp-6);border-radius:var(--r-card);background:var(--surface)}
.fm-meter b{color:var(--accent-text)}
.fm-meter.full b{color:var(--warn)}
.tl-opts{display:flex;flex-direction:column;gap:var(--sp-4)}
.tl-opt{padding:var(--sp-6);border-radius:var(--r-card);background:var(--bg)}
.tl-opt h4{margin:0}
.tl-opt p{margin:var(--sp-2) 0 var(--sp-4)}
.miss-card{position:relative;margin:var(--sp-6) var(--gutter);padding:var(--sp-6) var(--sp-8) var(--sp-6) var(--sp-6);border-radius:var(--r-card);background:var(--surface);box-shadow:inset 3px 0 0 var(--accent)}
.miss-card p{margin:0 0 var(--sp-4)}
.miss-card .miss-x{position:absolute;right:0;top:0}

/* Support Tailgate (lib/support.js): the chip, the trophy case, the Home cards and the heart on the You tab */
.you-support{margin:0}
.sp-chip{display:inline-flex;flex:none;align-items:center;justify-content:center;gap:var(--sp-3);min-height:var(--tap);padding:0 var(--sp-7);border:0;border-radius:var(--r-pill);background:var(--accent);color:var(--accent-fg);font:var(--t-body-strong);cursor:pointer}
.sp-chip .icon{width:16px;height:16px;fill:currentColor;stroke:none}
.sp-case{background:var(--surface);border-radius:var(--r-card)}
.sp-hearts{display:inline-flex;align-items:center;gap:var(--sp-1);flex:none;color:var(--accent)}
.sp-hearts .icon{width:18px;height:18px}
.sp-times{margin-left:var(--sp-2);color:var(--accent-text);font:var(--t-label-strong)}
.support-card{margin:var(--sp-6) var(--gutter);padding:var(--sp-6);border-radius:var(--r-card);background:var(--surface);box-shadow:inset 3px 0 0 var(--accent)}
.support-card p{margin:0 0 var(--sp-4)}
.sp-amts{margin-bottom:var(--sp-4)}
.heart-dot{position:absolute;top:4px;left:calc(50% + 6px);width:12px;height:12px;border-radius:var(--r-pill);background:var(--accent);box-shadow:0 0 0 2px var(--surface)}

/* You (settings.js): the profile card with the pills and the Support slot, Needs you, Your plan, then the grouped cards and Sign out. One column on a phone; at 900 px
   and wider (inside --content-wide) the profile, Needs you and Your plan are the left column and the groups the right. */
.you-cols{display:flex;flex-direction:column;gap:var(--sp-7);padding-top:var(--sp-4)}
.you-left,.you-right{display:flex;flex-direction:column;gap:var(--sp-7);min-width:0}
.you-right{gap:var(--sp-8)}
.you-card{background:var(--surface);border-radius:var(--r-card);box-shadow:var(--edge-light)}
.you-profile{display:flex;flex-direction:column;gap:var(--sp-7);padding:var(--sp-9)}
.you-who{display:flex;align-items:center;gap:var(--sp-7);width:100%;min-height:var(--tap);padding:0;border:0;background:none;color:var(--fg);font:inherit;text-align:left;cursor:pointer}
.you-who-t{display:flex;flex-direction:column;gap:var(--sp-2);min-width:0}
.you-name{font:var(--t-heading);line-height:1.05;overflow-wrap:anywhere}
.you-mail{color:var(--muted);font-size:var(--fs-14);overflow-wrap:anywhere}
.you-mail[hidden]{display:none}
.you-acct{color:var(--accent-text);font:var(--t-label)}
.you-pills{display:flex;flex-wrap:wrap;gap:var(--sp-4)}
.you-pill{display:inline-flex;align-items:center;min-height:var(--tap);padding:0 var(--sp-7);border:0;border-radius:var(--r-pill);background:var(--bg);color:var(--fg);font:var(--t-label);cursor:pointer}
.you-pill.gold{color:var(--accent-text);font-weight:700}
.you-pill[hidden],.you-needs[hidden],.you-need[hidden]{display:none}
.sp-ask{display:flex;align-items:center;gap:var(--sp-6);padding:var(--sp-6) var(--sp-7);border-radius:var(--r-card);background:var(--bg)}
.sp-ask .grow{display:flex;flex-direction:column;gap:var(--sp-1);min-width:0}
.sp-ask .name{font:var(--t-body-strong)}
.sp-ask .sub{color:var(--muted);font-size:var(--fs-14)}
.you-profile .sp-case{background:var(--bg);border:0}
.you-needs{padding:var(--sp-7);border:2px solid var(--accent);border-radius:var(--r-card);background:var(--surface)}
.you-needs-t{margin:0 0 var(--sp-4);color:var(--accent-text);font:var(--t-overline);letter-spacing:.12em;text-transform:uppercase}
.you-needs .label{display:block;margin:var(--sp-4) 0}
.you-needs .you-sec{margin-bottom:var(--sp-4)}
.you-needs .find-mine{background:var(--bg)}
.you-need{display:flex;align-items:center;gap:var(--sp-6);padding:var(--sp-2) 0}
.you-plan{display:flex;align-items:center;gap:var(--sp-7);width:100%;min-height:var(--row);padding:var(--sp-7) var(--sp-9);border:0;color:var(--fg);font:inherit;text-align:left;cursor:pointer}
.you-plan>.icon{flex:none;color:var(--accent-text)}
.you-plan .name{display:block;font:var(--t-body-strong)}
.you-plan .sub{display:block;color:var(--accent-text);font:var(--t-label)}
.you-plan .sub:empty{display:none}
.you-manage{display:flex;flex-direction:column;align-items:flex-start;gap:var(--sp-4);padding:var(--sp-7) var(--sp-9)}
.you-manage[hidden]{display:none}
.you-manage p{margin:0}
.you-plan>.chev{flex:none;color:var(--muted)}
.you-grp{display:flex;flex-direction:column;gap:var(--sp-4)}
.you-lab{display:block;margin:0 var(--sp-2);text-transform:uppercase}
.you-list .row{min-height:var(--row);padding:var(--sp-4) var(--sp-7)}
.you-list .row>.icon:not(.chev){flex:none;color:var(--subtle)}
.you-list .row .name{font-weight:600;white-space:normal;overflow:visible;text-overflow:clip}
.you-list .row .sub{font-size:var(--fs-13);white-space:normal;overflow:visible;text-overflow:clip}
.you-list .row .sub:empty{display:none}
.you-list .row.danger{justify-content:flex-start}
.you-list>#legalRow:has(+ #installRow[hidden]){border-bottom:0}
.you-out{display:flex;flex-direction:column;gap:var(--sp-4)}
.you-out p{margin:0 var(--sp-2)}
.you-all{margin-top:var(--sp-7)}
#youTeamsPanel .pad{display:flex;flex-direction:column;gap:var(--sp-4)}
#youTeamsPanel .pad>p{margin:0 0 var(--sp-4)}
html[data-contrast="more"] :is(.you-card,.you-needs,.sp-ask,.you-pill){outline:1px solid var(--line-strong);outline-offset:-1px}
@media (min-width:900px){
  .view:has(>#youView:not([hidden])){max-width:var(--content-wide)}
  .you-cols{display:grid;grid-template-columns:minmax(340px,400px) minmax(0,1fr);gap:var(--sp-8);align-items:start}
}

/* The native app (lib/nativeapp.js sets html.in-app) shows no Halls plans link, and html.in-app-nosell (a store that may not link out) no Support Tailgate button, card or heart and no "What you're missing" card. */
.in-app .plan-link,.in-app-nosell:not(.in-app-iap) .rail-support,.in-app-nosell:not(.in-app-iap) #supportChip,.in-app-nosell:not(.in-app-iap) #supportCard,.in-app-nosell:not(.in-app-iap) .support-card,.in-app-nosell .miss-card,.in-app-nosell:not(.in-app-iap) .heart-dot{display:none!important}
.up-compare.one{grid-template-columns:minmax(0,1fr)}

/* ---- The game card (engines/gamecard.js): one card in four sizes, hero / row / tile / compact ----
   One state tag top left (upcoming: muted day and time; today: gold tint; live: solid red with a white dot, video is on; lost: LIVE and an amber SIGNAL LOST; progress: white outline,
   the score is kept and nothing streams, never red; final: FINAL and a W / L / T tile). One score (ours, an en dash, theirs, the period small under it). One gold button per card, then raised ones.
   Sizes: the hero's gold button 52 (--ctl-lg; the board says 48, but the four button sizes are 32, 36, 44, 52), its other buttons 44, the pills of a row, tile and compact card 36 with a 44 tap area (.btn.sm).
   Colours are tokens, so Day and Sideline follow; the team's colour is --c on the card (set from --team-N or the person's own pick). */
.gcd{--c:var(--muted);position:relative;display:flex;flex-direction:column;gap:var(--sp-4);min-width:0;border-radius:var(--r-card);background:var(--surface);box-shadow:var(--edge-light);color:var(--fg)}
html[data-contrast="more"] .gcd{outline:1px solid var(--line-strong);outline-offset:-1px}
html[data-theme="day"] .gcd{box-shadow:0 0 0 1px var(--line),0 1px 2px var(--hair)}
.gcd-main{display:flex;min-width:0;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.gcd-words{display:flex;flex-direction:column;gap:var(--sp-1);flex:1;min-width:0}
.gcd-title{min-width:0;font:var(--t-title);line-height:1.1;letter-spacing:.02em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gcd-line{color:var(--muted);font-size:var(--fs-14);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gcd-team{min-width:0;color:var(--muted);font:var(--t-label);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gcd-tags,.gcd-top{display:flex;align-items:center;gap:var(--sp-3);min-width:0}
.gcd-top{gap:var(--sp-4)}
/* the state tag */
.gcd-tag{display:inline-flex;align-items:center;gap:var(--sp-3);flex:none;padding:var(--sp-2) var(--sp-4);border-radius:var(--r-tag);font:700 var(--fs-12)/1 var(--display);letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;background:var(--raised);color:var(--muted)}
.gcd-tag i{width:var(--sp-3);height:var(--sp-3);border-radius:50%;background:currentColor}
.gcd-tag.up{padding-left:0;padding-right:0;background:none}
.gcd-tag.today{background:var(--tint-gold);color:var(--on-tint-gold)}
.gcd-tag.live{background:var(--live);color:var(--on-video)}
.gcd-tag.lost{background:var(--tint-warn);color:var(--on-tint-warn)}
.gcd-tag.prog{background:none;color:var(--fg);box-shadow:var(--ring-fg)}
.gcd-tag.prog i{background:none;box-shadow:inset 0 0 0 1px currentColor}
.gcd-tag.final{background:var(--raised);color:var(--fg)}
.gcd-res{display:inline-grid;place-items:center;flex:none;min-width:var(--fs-20);padding:var(--sp-2) var(--sp-3);border-radius:var(--r-tag);background:var(--raised);color:var(--muted);font:800 var(--fs-12)/1 var(--display)}
.gcd-res.win{background:var(--tint-good);color:var(--on-tint-good)}
.gcd-res.loss{background:var(--tint-danger);color:var(--on-tint-danger)}
/* the score */
.gcd-sc{display:flex;flex-direction:column;align-items:flex-end;flex:none}
.gcd-score{white-space:nowrap;font:var(--t-hero);line-height:1;font-variant-numeric:tabular-nums}
.gcd-score i{padding:0 var(--sp-1);font-style:normal;color:var(--muted)}
.gcd-per{color:var(--muted);font:var(--t-caption);line-height:1;letter-spacing:.04em;text-align:right}
/* the buttons: the gold one across the card, the raised ones side by side under it */
.gcd-acts{display:flex;flex-wrap:wrap;gap:var(--sp-4)}
.gcd-b{flex:1 1 40%;min-width:0;white-space:nowrap}
.gcd-b.primary{flex-basis:100%}
.gcd-b .icon{flex:none}
/* hero: the state line, the title and score, the buttons */
.gcd-hero{padding:var(--sp-6) var(--sp-7) var(--sp-7);gap:var(--sp-2)}   /* (the spacing of Home's hero: no taller than it) */
.gcd-hero .gcd-acts{gap:var(--sp-2) var(--sp-4)}
.gcd-hero .gcd-main{align-items:flex-end;gap:var(--sp-6)}
.gcd-lnrow{display:flex;align-items:baseline;gap:var(--sp-4)}
.gcd-ln{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.gcd-count{flex:none;font-weight:700;color:var(--accent-text);font-variant-numeric:tabular-nums}
.gcd-where{display:flex;align-items:center;gap:var(--sp-4);margin:calc(-1*var(--sp-2)) 0;color:var(--muted);font-size:var(--fs-14)}   /* (Home's hero: when to arrive and Directions, under the words) */
.gcd-arrive{flex:1;min-width:0;overflow-wrap:anywhere}
.gcd-dir{display:inline-flex;align-items:center;flex:none;min-height:var(--tap);margin-left:auto;font-weight:700;color:var(--accent-text);text-decoration:none}
.gcd-under{display:flex;flex-direction:column;gap:var(--sp-2)}
.gcd-under .gp-reply{flex-wrap:wrap;justify-content:flex-start;gap:var(--sp-2) var(--sp-4)}   /* (the label and the child's name on one line, the buttons across the card under it) */
.gcd-under .gp-reply .reply-card{flex:1 1 100%}
.gcd-under .gp-who{max-width:none}
.gcd-hero .gcd-title{font:var(--t-heading);line-height:1.05}
/* row: the tag over the title and the small line, the score at the right, the pills under it */
.gcd-row{padding:var(--sp-6);gap:var(--sp-6)}
.gcd-row .gcd-main{align-items:center;gap:var(--sp-6)}
.gcd-row .gcd-words{gap:var(--sp-2)}
.gcd-row .gcd-score{font:var(--t-number)}
.gcd-row .gcd-acts{padding-left:calc(var(--sp-11) + var(--sp-6))}
.gcd-mark{display:grid;place-items:center;flex:none;width:var(--sp-11);height:var(--sp-11);border-radius:var(--r-ctl);background:var(--bg);box-shadow:inset 0 0 0 2px var(--c);color:var(--c);font:700 var(--fs-16) var(--display)}
/* tile: a coloured picture with the tag and the score on it, then the title and the buttons */
.gcd-tile{padding:var(--sp-6);gap:var(--sp-4);border-left:3px solid var(--c)}
.gcd-pic{position:relative;display:grid;place-items:center;min-height:calc(var(--sp-11) * 2);border-radius:var(--r-ctl);background:var(--raised)}
.gcd-pic .gcd-mark{width:var(--sp-10);height:var(--sp-10);font-size:var(--fs-14)}
.gcd-pic .gcd-tags{position:absolute;top:var(--sp-4);left:var(--sp-4)}
.gcd-extra{position:absolute;top:var(--sp-2);right:var(--sp-2)}
.gcd-pic .gcd-sc{position:absolute;right:var(--sp-4);bottom:var(--sp-3);flex-direction:row;align-items:baseline;gap:var(--sp-2)}
.gcd-tile .gcd-score,.gcd-compact .gcd-score{font:var(--t-title)}
.gcd-tile .gcd-words{gap:var(--sp-1)}
.gcd-tile .gcd-b{flex-basis:0;padding:0 var(--sp-4)}
.gcd-tile .gcd-b .icon{display:none}   /* (short labels, no icons: two pills fit a 160 px tile) */
/* compact: one line, the tag, the title, the score and the one pill */
.gcd-compact{flex-direction:row;align-items:center;gap:var(--sp-4);padding:var(--sp-4) var(--sp-4) var(--sp-4) var(--sp-6);border-left:3px solid var(--c)}
.gcd-compact .gcd-main{flex:1;align-items:center;gap:var(--sp-6)}
.gcd-compact .gcd-tags{flex:none}
.gcd-compact .gcd-b{flex:none;padding:0 var(--sp-6)}
.gcd-compact .gcd-b.primary,.wv-game .gcd-b.primary{background:var(--raised);color:var(--fg)}   /* (a compact card's one button is never gold: the hero's action is the one gold on a screen; the Watch rail's card too: its game is on the screen already and Mark play is the screen's one gold) */
/* the style guide's game cards: the tiles two across, the others in one column */
.sg-gc{display:flex;flex-direction:column;gap:var(--sp-8)}
.sg-gc-group{display:flex;flex-direction:column;gap:var(--sp-6)}
.sg-gc-group[data-size="tile"]{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
.sg-gc-group[data-size="tile"]>h3{grid-column:1/-1}

/* ---- basketball's shot location and shot charts (engines/shotcourt.js): the half court in a sheet and on the stats pages ---- */
.sc-wrap{display:block;width:100%;max-width:420px;margin:var(--sp-4) auto}
.sc-court{display:block;width:100%;height:auto;touch-action:manipulation;-webkit-tap-highlight-color:transparent;border-radius:var(--r-card);background:var(--raised)}
.sc-zone{fill:transparent;cursor:pointer}
.sc-zone:hover,.sc-zone.on{fill:color-mix(in srgb,var(--accent) 18%,transparent)}
.sc-pick .sc-zone:active{fill:color-mix(in srgb,var(--accent) 30%,transparent)}
.sc-chart .sc-zone{cursor:pointer}
.sc-lines{fill:none;stroke:var(--line-strong);stroke-width:3;pointer-events:none}
.sc-lines circle{fill:var(--line-strong)}
.sc-dot{cursor:pointer;outline:none}
.sc-dot .sc-hit{fill:transparent}
.sc-dot .sc-mark{stroke-width:5;fill:none}
.sc-dot.made .sc-mark{stroke:var(--good-on-paper);fill:color-mix(in srgb,var(--good-on-paper) 35%,transparent)}
.sc-dot.miss .sc-mark{stroke:var(--danger-on-paper);stroke-linecap:round}
.sc-dot:focus-visible .sc-hit{stroke:var(--accent-text);stroke-width:4}
.sc-key{display:flex;align-items:center;gap:var(--sp-4);margin:var(--sp-2) 0}
.sc-key i{display:inline-block;width:12px;height:12px;border-radius:50%}
.sc-key-made{border:2.5px solid var(--good-on-paper)}
.sc-key-miss{background:var(--danger-on-paper);clip-path:polygon(0 15%,15% 0,50% 35%,85% 0,100% 15%,65% 50%,100% 85%,85% 100%,50% 65%,15% 100%,0 85%,35% 50%)}
.sc-zrow{display:flex;align-items:center;gap:var(--sp-4);width:100%;min-height:var(--tap);text-align:left;font:inherit;color:var(--fg);background:none;border:0}
.sc-zn{color:var(--muted);font:var(--t-label)}
.sc-zp{min-width:3.2em;text-align:right}
.st-shots,.ps-shots{margin-top:var(--sp-7)}
.sc-zonelist button{font:inherit}

/* ---- baseball's and softball's hit location and spray charts (engines/spray.js): the field in a sheet, on the strip's ask and on the stats pages ---- */
.sp-wrap{display:block;width:100%;max-width:420px;margin:var(--sp-4) auto}
.sp-field{display:block;width:100%;height:auto;touch-action:manipulation;-webkit-tap-highlight-color:transparent;border-radius:var(--r-card);background:#2f6b3a}
.sp-foulground{fill:#2a5f34}
.sp-grass{fill:#3f8a4c}
.sp-dirt{fill:#b98a5a}
.sp-infield{fill:#3f8a4c}
.sp-line{fill:none;stroke:#fff;stroke-width:3;opacity:.85}
.sp-base{fill:#fff}
.sp-mound{fill:#a47649}
.sp-ground{pointer-events:none}
.sp-zone{fill:transparent;stroke:rgba(255,255,255,.22);stroke-width:1.5;cursor:pointer}
.sp-zone:hover{fill:rgba(255,255,255,.14)}
.sp-zone.on{fill:color-mix(in srgb,var(--accent) 38%,transparent);stroke:var(--accent);stroke-width:3}
.sp-pick .sp-zone:active{fill:rgba(255,255,255,.28)}
.sp-labels{pointer-events:none}
.sp-zl{fill:#fff;font:700 22px/1 var(--display,system-ui);paint-order:stroke;stroke:rgba(0,0,0,.45);stroke-width:4px}
.sp-zp{fill:#fff;font:700 20px/1 var(--display,system-ui);paint-order:stroke;stroke:rgba(0,0,0,.55);stroke-width:4px}
.sp-pickdot{fill:var(--accent);stroke:#1a1a1a;stroke-width:3;pointer-events:none}
.sp-dot{cursor:pointer;outline:none}
.sp-dot .sp-hitarea{fill:transparent}
.sp-dot.hit .sp-mark{fill:var(--accent);stroke:#1a1a1a;stroke-width:3}
.sp-dot.out .sp-mark{fill:rgba(0,0,0,.2);stroke:#fff;stroke-width:4}
.sp-dot:focus-visible .sp-hitarea{stroke:#fff;stroke-width:4}
.sp-key-hit,.sp-key-out{display:inline-block;width:12px;height:12px;border-radius:50%;vertical-align:middle}
.sp-key-hit{background:var(--accent);border:2px solid #1a1a1a}
.sp-key-out{border:2.5px solid var(--muted)}
.sp-chips{display:flex;flex-wrap:wrap;gap:var(--sp-3);margin:var(--sp-4) 0}
.sp-chips .chip{min-width:0;flex:1 1 auto}
.sp-pills{margin:var(--sp-3) 0;max-width:280px}
.sp-zonelist button{font:inherit}
.sp-seq{flex:none;min-width:2.4em;text-align:center;font:var(--t-title);align-self:center}
