  /* Design tokens (CLAUDE.md "Design tokens"). Six type styles, one set of
     cell colors, one spacing rule; every page and component uses these only. */
  :root {
    --ff-display: 'Barlow Condensed', sans-serif;
    --ff-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
    --fs-title: 32px;   --fw-title: 700;
    --fs-section: 20px; --fw-section: 700;
    --fs-team: 15px;    --fw-team: 600;
    --fs-body: 14px;    --fw-body: 400;
    --fs-num: 14px;     --fw-num: 500;
    --fs-price: 13px;   --fw-price: 400;
    --fs-label: 11px;   --fw-label: 600;  --ls-label: 0.6px;
    --fs-hero: 40px;    /* the home page's brand H1 (Barlow Condensed, --fw-title) */
    /* Preview's article text (scripts/preview.py): a serif reading stack, the dek and the callout */
    --ff-read: var(--ff-body);   /* Preview's article text: the site font */
    --fs-read: 18px;    --lh-read: 1.65;
    --fs-dek: 20px;
    --fs-lede: 17px;    /* the home page's product line under the H1 */
    --fs-row-label: 16px;   /* the sport row's label above its links (Barlow Condensed) */
    /* the 1200x630 image card (drawn at 600x315 CSS px): brand purple (the
       plain card when a sport has no background), the purple over a sport's
       background (about 58%; ice 70%), its type */
    --pc-grad: linear-gradient(135deg, #1B1240 0%, #3A2491 55%, #6D4AD4 100%);
    --pc-over: linear-gradient(135deg, rgba(30,21,80,0.66) 0%, rgba(51,32,138,0.58) 55%, rgba(91,63,208,0.54) 100%);
    --pc-over-ice: linear-gradient(135deg, rgba(30,21,80,0.78) 0%, rgba(51,32,138,0.70) 55%, rgba(91,63,208,0.66) 100%);
    --pc-text: #FFFFFF; --pc-muted: #D6CCFF;
    --pc-box-bg: rgba(11,15,21,0.55); --pc-box-line: rgba(214,204,255,0.45);
    --fw-pc-heavy: 800;
    --fs-pc-title: 24px; --fs-pc-dek: 13.5px; --fs-pc-big: 60px; --fs-pc-big-long: 50px;
    --fs-pc-what: 20px; --fs-pc-what-s: 17px; --fs-pc-url: 12px; --fs-pc-mk: 14px;
    --fs-pc-name: 14px; --fs-pc-name-s: 11px; --fs-pc-at: 18px;
    /* the preview art on our pages (preview.art): sized to the art's width (cqw), so it scales */
    --fs-pa-chip: 2.2cqw; --fs-pa-big: 9cqw; --fs-pa-what: 3.2cqw; --fs-pa-at: 5cqw; --pa-logo: 11cqw;
    /* solid unit pills (Yesterday's Results): the same in both themes, dark text */
    --pill-good: #4ADE80; --pill-bad: #F87171; --pill-push: var(--gold); --pill-ink: #0B0F15;
    --cell-gap: 8px;
    --cell-min-h: 48px;
    --cell-pad: 4px 6px;
    --cell-radius: 8px;
    --open-gap: 12px;
    --odds-pad-x: 24px;
    --game-pad-top: 12px;
    --game-pad-bottom: 14px;
    --card-pad-y: 16px;
    --card-pad-x: 18px;
    --card-pad: var(--card-pad-y) var(--card-pad-x);
    --card-radius: 14px;
    --section-gap: 24px;   /* phones: between home and hub sections, the hero and the Slate included */
    --nav-gap: 24px;       /* the nav to the home page's H1 (16px phone) */
    --fs-big: 26px;        /* a big yellow number line (Barlow Condensed): TREND TO WATCH, a streak */
    --fs-odds-label: 18px; /* BEST ODDS (Barlow Condensed) */
    --book-tile-w: 72px;   /* a book's logo tile beside its odds cell: the cell's size */
    --book-tile-sq: 56px;  /* the square logo tile + odds cell (Matchup of the Day, The Big Numbers) */
  }
  @media (max-width: 640px) { :root { --nav-gap: 16px; --fs-big: 22px; --fs-title: 26px; --fs-section: 18px; --fs-hero: 30px; --fs-read: 17px; --fs-dek: 18px; --fs-lede: 16px; } }
  .t-title { font-family: var(--ff-display); font-size: var(--fs-title); font-weight: var(--fw-title); }
  .t-section { font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); }
  .t-team { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); }
  .t-body { font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .t-num { font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); }
  .t-price { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .t-label { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }

  /* Brand palette: logo PH4 (purple stopwatch and B; gold RTY, hand and
     BETS on dark; on light the gold parts turn black and BETS purple).
     Every color on the site comes from these tokens; team colors are data. */
  :root {
    --bg: #0B0F15;
    --panel: #131921;
    --panel-2: #1A222C;
    --panel-3: #212B37;
    --border: #263140;
    --border-soft: #1F2731;
    /* the one card border (CLAUDE.md): visible, lighter than the page in dark */
    --card-border: #2A3442;
    --text: #E8EDF3;
    --text-muted: #A3AFBE;
    --cell: #1A212B;
    --best-bg: rgba(34, 197, 94, 0.10);
    --text-faint: #5C6B7A;
    --accent: #A78BFA;
    --accent-dim: #2E2550;
    --title-bg: rgba(167, 139, 250, 0.14);
    --title-text: #D6CCFF;
    /* the footer (scripts/nav.py) and the phone tab bar (.bb) */
    --foot-bg: #0E131A;
    --bb-bg: #1D1733; --bb-line: rgba(167, 139, 250, 0.40); --bb-off: #C9C2E6; --bb-on: #FFFFFF;
    --bb-chip: rgba(167, 139, 250, 0.32); --bb-mark: #A78BFA; --bb-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
    --accent-purple-text: #A78BFA;   /* Betting Guides section headings */
    --on-accent: #0B0F14;
    /* One gold (CLAUDE.md): #F5C542 in both themes, for the logo, PICKS, GO
       PREMIUM, labels, chips, pills, the push pills and (dark) the odds-header
       accent. Light mode never sets gold text on a light background: the
       same words in --on-gold on a gold chip, or dark text with a gold
       underline / left bar (the "One gold" rules below). */
    --gold: #F5C542;
    --mkh-text: var(--gold);
    --mkh-bg: rgba(245, 197, 66, 0.10);
    --on-gold: #0B0F15;
    /* gated cards (the gated-cards reference): purple = Free, gold = Premium */
    --free: #A78BFA; --free-text: #C4B5FD; --free-on: #140F2A; --free-glow: rgba(167, 139, 250, 0.20); --free-shadow: rgba(124, 58, 237, 0.35);
    --free-banner-bg: #171B2E; --free-banner-border: #3B3470;
    --premium: var(--gold); --premium-ink: var(--gold); --premium-on: #1A1400; --premium-glow: rgba(245, 197, 66, 0.18); --premium-shadow: rgba(245, 197, 66, 0.22);
    --premium-banner-bg: #1C1806; --premium-banner-border: #5C4A12;
    --stat: #F5A524;
    /* gated cards: fluid type, 360px to 1280px */
    --fs-gate-title: clamp(20px, 0.9vw + 16px, 26px); --fs-gate-body: clamp(14px, 0.2vw + 13px, 15px); --fs-gate-btn: clamp(15px, 0.3vw + 14px, 17px);
    /* gated content v2 (Chris, Dec 2): tints, the Premium ghost card, the paywall scrim, compact sizes */
    --free-tint: #171B2E; --free-tint-border: #3B3470;
    --prem-border: var(--gold); --prem-text: var(--premium-ink); --prem-tint: #1C1806; --prem-tint-border: #5C4A12; --prem-ghost: #16140C; --prem-card: #1A1710;
    --blur-a: #7A5A3A; --blur-b: #2A3240; --scrim: rgba(11, 14, 20, 0.85); --overlay: rgba(0, 0, 0, 0.6);
    --btn-h: 44px; --btn-h-lg: 50px;
    /* /register/ and /pricing/ (Chris, Dec 2) */
    --fs-pl-h1: clamp(40px, 3.4vw + 26px, 64px); --fs-pl-h2: clamp(26px, 1vw + 22px, 34px); --fs-pl-price: clamp(40px, 1vw + 34px, 48px);
    --fs-pl-eyebrow: 12px; --fs-pl-btn: 18px; --fs-pl-check: 17px; --fs-pl-form-t: 24px;
    --fs-gate-cta: clamp(18px, 0.5vw + 16px, 22px); --fs-gate-panel: clamp(22px, 1vw + 18px, 30px); --fs-gate-small: 13px; --fs-gate-meta: 12px;
    /* The Full Run's Premium style (both themes): a thin gold left bar on
       its rows, a PREMIUM chip (dark text on gold) on the row label, a
       gold dot on its pills */
    --fr-bar: var(--gold);
    --fr-tag-bg: var(--gold);
    --fr-tag-text: var(--on-gold);
    --fr-dot: var(--gold);
    /* Streak heat (both themes): a run's count chip gets hotter with its
       length, the same in every market. 3-4, 5-6, 7-8, 9+. */
    --heat-1: #F8E3A0;
    --heat-2: var(--gold);
    --heat-3: #F59E0B;
    --heat-4: #EA580C;
    --on-heat-4: #FFFFFF;
    /* Total / BTTS / NRFI result cells (never win/loss): warm = Over, BTTS
       Yes, YRFI; cool = Under, BTTS No, NRFI. Text stays --text. */
    --warm-bg: rgba(245, 158, 11, 0.18);
    --warm-line: rgba(245, 158, 11, 0.55);
    --cool-bg: rgba(167, 139, 250, 0.18);
    --cool-line: rgba(167, 139, 250, 0.55);
    /* Shared result colors (Chris, Nov 30; every page): win / cover = light
       green fill + thin green border; loss = a lighter red fill + thin red
       border; Over = the warm pair, Under = the cool pair; didn't happen =
       transparent. Classes: .res-win .res-loss .res-over .res-under */
    --win-bg: rgba(34, 197, 94, 0.16);
    --win-line: rgba(74, 222, 128, 0.55);
    --loss-bg: rgba(248, 113, 113, 0.13);
    --loss-line: rgba(248, 113, 113, 0.55);
    --premium-bg: #15112A;
    --premium-text: #F1EEFB;
    --premium-muted: #B3A9D6;
    --premium-gold: var(--gold);
    --premium-on-gold: #0B0F14;
    /* Color rule (CLAUDE.md "Design tokens"): --cell is every plain odds cell;
       --best-bg / --best the best-price tint and outline (Odds only); --good-dim
       the win fill, --push-dim the tie/push fill; --good / --bad / --push the
       units up / down / even (-0.5u..+0.5u) text */
    --best: rgba(74, 222, 128, 0.55);
    --best-dim: #17462C;
    --good: #4ADE80;
    --good-dim: rgba(34, 197, 94, 0.16);
    --push: var(--gold);
    --push-dim: rgba(245, 197, 66, 0.14);
    --bad: #F87171;
    --bad-dim: rgba(248, 113, 113, 0.13);
    --neutral-chip: #2A3542;
    --warn: #FF8A3D;
    --warn-dim: #4A2A12;
    --trend: var(--accent);
    --trend-dim: var(--accent-dim);
    --shadow: rgba(0, 0, 0, 0.35);
    --scrim: rgba(0, 0, 0, 0.55);
    --logo-rty: var(--gold);
    --logo-hand: var(--gold);
    --logo-mark: #A78BFA;
    --logo-tag: #8B96A5;
    --logo-bets: var(--gold);
    /* League ball icons (scripts/icons.py): full color in both themes;
       only the outlines change so each ball stands out from the page */
    --ball-puck-top: #2A2E36;
    --ball-puck-side: #16181D;
    --ball-puck-grip: #3D434E;
    --ball-puck-rim: #D5DCE5;   /* dark: a light outline so the puck shows on the page */
    --ball-puck-rim-w: 1.6;
    --ball-shine: rgba(255, 255, 255, 0.16);
    --ball-leather: #8A4B22;
    --ball-leather-edge: #4E2610;
    --ball-leather-rim: #8B93A3;
    --ball-lace: #F4EFE6;
    --ball-orange: #E8772E;
    --ball-orange-edge: #7A3510;
    --ball-orange-light: #F4A866;
    --ball-orange-deep: #D35F1E;
    --ball-seam: #2B1406;
    --ball-white: #F5F3EC;
    --ball-white-edge: #9AA0A8;
    --ball-stitch: #D7263D;
    color-scheme: dark;
  }
  :root[data-theme="light"] {
    --bg: #F5F7FA;
    --panel: #FFFFFF;
    --panel-2: #F7F9FB;
    --panel-3: #EDF1F5;
    --border: #DCE2E9;
    --border-soft: #E6EBF1;
    --card-border: #D5DCE5;
    --text: #141B24;
    --text-muted: #5A6676;
    --cell: #F1F4F8;
    --best-bg: #EEFAF2;
    --text-faint: #8891A0;
    --accent: #6D4AD4;
    --accent-dim: #EFEAFD;
    --title-bg: #EFEAFE;
    --title-text: #4B2FB8;
    --foot-bg: #EEF1F5;
    --bb-bg: #4B2FB8; --bb-line: #4B2FB8; --bb-off: #D9D0FF; --bb-on: #FFFFFF;
    --bb-chip: rgba(255, 255, 255, 0.20); --bb-mark: var(--gold); --bb-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
    --accent-purple-text: #4B2FB8;
    --on-accent: #FFFFFF;
    --gold: #F5C542;
    --free: #6D28D9; --free-text: #5B21B6; --free-on: #FFFFFF; --free-glow: rgba(109, 40, 217, 0.14); --free-shadow: rgba(109, 40, 217, 0.18);
    --free-banner-bg: #F3EFFF; --free-banner-border: #D6C8FB;
    --premium-ink: #8A5A00; --premium-on: #1A1400; --premium-glow: rgba(217, 160, 20, 0.20); --premium-shadow: rgba(217, 160, 20, 0.20);
    --premium-banner-bg: #FFF8E1; --premium-banner-border: #F0D77A;
    --free-tint: #F3EFFF; --free-tint-border: #D6C8FB;
    --prem-border: var(--gold); --prem-tint: #FFF8E1; --prem-tint-border: #F0D77A; --prem-ghost: #FFFDF5; --prem-card: #FFFBEC;
    --blur-a: #F2C9A5; --blur-b: #E8EBF1; --scrim: rgba(245, 246, 250, 0.88); --overlay: rgba(11, 14, 20, 0.45);
    --stat: #B45309;
    --mkh-text: #4B2FB8;
    --mkh-bg: #F1ECFE;
    --on-gold: #0B0F15;
    --premium-bg: #15112A;
    --premium-text: #F1EEFB;
    --premium-muted: #B3A9D6;
    --premium-gold: var(--gold);
    --premium-on-gold: #0B0F14;
    --best: #7FCF9C;
    --best-dim: #E3F6EB;
    --good: #15803D;
    --good-dim: #DFF3E6;
    --push: var(--gold);   /* fills only: light units text is a gold chip */
    --push-dim: #FBF3D6;
    --bad: #B91C1C;
    --bad-dim: #FCE7EA;
    --win-bg: #DFF3E6;
    --win-line: #7FCF9C;
    --loss-bg: #FDEEEE;
    --loss-line: #EFA3A3;
    --neutral-chip: #EEF1F5;
    --warn: #D9601A;
    --warn-dim: #FDEBDD;
    --trend: var(--accent);
    --trend-dim: var(--accent-dim);
    --shadow: rgba(18, 24, 31, 0.18);
    --scrim: rgba(18, 24, 31, 0.45);
    --logo-rty: #12181F;
    --logo-hand: #12181F;
    --logo-mark: #6D4AD4;
    --logo-tag: #5B6674;
    --logo-bets: #6D4AD4;
    --ball-puck-rim: #16181D;
    --ball-puck-rim-w: 1;
    --ball-white-edge: #8A919C;
    --ball-leather-rim: transparent;
    color-scheme: light;
  }
  @media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
      --bg: #F5F7FA;
      --panel: #FFFFFF;
      --panel-2: #F7F9FB;
      --panel-3: #EDF1F5;
      --border: #DCE2E9;
      --border-soft: #E6EBF1;
      --card-border: #D5DCE5;
      --text: #141B24;
      --text-muted: #5A6676;
      --cell: #F1F4F8;
      --best-bg: #EEFAF2;
      --text-faint: #8891A0;
      --accent: #6D4AD4;
      --accent-dim: #EFEAFD;
      --title-bg: #EFEAFE;
      --title-text: #4B2FB8;
      --foot-bg: #EEF1F5;
      --bb-bg: #4B2FB8; --bb-line: #4B2FB8; --bb-off: #D9D0FF; --bb-on: #FFFFFF;
      --bb-chip: rgba(255, 255, 255, 0.20); --bb-mark: var(--gold); --bb-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
      --accent-purple-text: #4B2FB8;
      --on-accent: #FFFFFF;
      --gold: #F5C542;
      --free: #6D28D9; --free-text: #5B21B6; --free-on: #FFFFFF; --free-glow: rgba(109, 40, 217, 0.14); --free-shadow: rgba(109, 40, 217, 0.18);
      --free-banner-bg: #F3EFFF; --free-banner-border: #D6C8FB;
      --premium-ink: #8A5A00; --premium-on: #1A1400; --premium-glow: rgba(217, 160, 20, 0.20); --premium-shadow: rgba(217, 160, 20, 0.20);
      --premium-banner-bg: #FFF8E1; --premium-banner-border: #F0D77A;
      --free-tint: #F3EFFF; --free-tint-border: #D6C8FB;
      --prem-border: var(--gold); --prem-tint: #FFF8E1; --prem-tint-border: #F0D77A; --prem-ghost: #FFFDF5; --prem-card: #FFFBEC;
      --blur-a: #F2C9A5; --blur-b: #E8EBF1; --scrim: rgba(245, 246, 250, 0.88); --overlay: rgba(11, 14, 20, 0.45);
      --stat: #B45309;
      --mkh-text: #4B2FB8;
      --mkh-bg: #F1ECFE;
      --on-gold: #0B0F15;
      --premium-bg: #15112A;
      --premium-text: #F1EEFB;
      --premium-muted: #B3A9D6;
    --premium-gold: var(--gold);
    --premium-on-gold: #0B0F14;
      --best: #7FCF9C;
      --best-dim: #E3F6EB;
      --good: #15803D;
      --good-dim: #DFF3E6;
      --push: var(--gold);   /* fills only: light units text is a gold chip */
      --push-dim: #FBF3D6;
      --bad: #B91C1C;
      --bad-dim: #FCE7EA;
      --win-bg: #DFF3E6;
      --win-line: #7FCF9C;
      --loss-bg: #FDEEEE;
      --loss-line: #EFA3A3;
      --neutral-chip: #EEF1F5;
      --warn: #D9601A;
      --warn-dim: #FDEBDD;
      --trend: var(--accent);
      --trend-dim: var(--accent-dim);
      --shadow: rgba(18, 24, 31, 0.18);
      --scrim: rgba(18, 24, 31, 0.45);
      --logo-rty: #12181F;
      --logo-hand: #12181F;
      --logo-mark: #6D4AD4;
      --logo-tag: #5B6674;
      --logo-bets: #6D4AD4;
      --ball-puck-rim: #16181D;
      --ball-puck-rim-w: 1;
      --ball-white-edge: #8A919C;
      --ball-leather-rim: transparent;
      color-scheme: light;
    }
  }

  * { box-sizing: border-box; }
  html, body { height: 100%; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--ff-body);
    font-size: var(--fs-body);
    font-weight: var(--fw-body);
    font-variant-numeric: tabular-nums;
    padding-inline: 0;
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3, h4, .display { margin: 0; text-wrap: balance; }
  h1, .display { font-family: var(--ff-display); font-size: var(--fs-title); font-weight: var(--fw-title); text-transform: uppercase; letter-spacing: 0.02em; }
  h2 { font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); text-transform: uppercase; letter-spacing: 0.02em; }
  h3, h4 { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); }
  b, strong { font-weight: var(--fw-body); }
  /* numbers: Source Sans 3 with tabular figures (body), never bold */
  .mono, .num, table td.num { font-weight: var(--fw-num); }
  small { font-size: var(--fs-price); font-weight: var(--fw-price); }
  th small, .t-label small { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); }
  sup { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); }
  .mono b, .num b, b.mono, b.num { font-weight: var(--fw-num); }
  a { color: var(--accent); }
  button, input, select, textarea { font: inherit; }

  /* ---------- Header ---------- */
  header.top {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 40;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-soft);
  }
  .top-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .brand {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-shrink: 0;
    text-decoration: none;
  }
  /* Logo (PH4). Colors come from the --logo-* tokens so it follows the theme. */
  .logo { display: block; height: 56px; width: auto; overflow: visible; }
  @media (max-width: 600px) { .logo { height: 46px; } }
  .logo .lg-rty { fill: var(--logo-rty); }
  .logo .lg-b, .logo .lg-fill { fill: var(--logo-mark); }
  .logo .lg-ring { stroke: var(--logo-mark); }
  .logo .lg-hand { stroke: var(--logo-hand); }
  .logo .lg-dot { fill: var(--logo-hand); }
  .logo .lg-tag { fill: var(--logo-tag); }
  .logo .lg-bets { fill: var(--logo-bets); }
  /* the logo is a drawing: its lettering is part of the mark, not a type style */
  .logo text { font-family: var(--ff-display); font-weight: 800; }

  /* ---------- Main nav ---------- */
  .main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    /* visible, not scrolling: the sport dropdown hangs below the bar and
       would be clipped otherwise (phones use the hamburger layout below) */
    overflow: visible;
  }
  .nav-link {
    background: none;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 7px 12px;
    border-radius: 7px;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }
  .nav-link:hover { color: var(--text); }
  .nav-link[aria-current="page"] {
    background: var(--panel-2);
    border-color: var(--border);
    color: var(--text);
  }
  .nav-caret { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); }
  .nav-dropdown { position: relative; flex-shrink: 0; }
  .nav-dropdown-btn { background: none; }
  .nav-dropdown-menu {
    position: absolute; top: calc(100% + 6px); left: 0;
    min-width: 190px;
    background: var(--panel); border: 1px solid var(--border);
    border-radius: 10px; padding: 6px;
    box-shadow: 0 12px 32px var(--shadow);
    display: none; flex-direction: column; gap: 1px;
    z-index: 45;
  }
  .nav-dropdown-menu.open { display: flex; }
  .nav-dropdown-menu--teams { max-height: 360px; overflow-y: auto; }
  .nav-dropdown-item {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 10px; border-radius: 7px;
    color: var(--text); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); text-decoration: none;
    white-space: nowrap;
  }
  .nav-dropdown-item:hover { background: var(--panel-2); }
  .nav-dropdown-item--all { color: var(--accent); font-weight: var(--fw-team); border-top: 1px solid var(--border-soft); margin-top: 4px; padding-top: 9px; }

  .hamburger {
    display: none;
    flex-shrink: 0;
    background: var(--panel-2);
    border: 1px solid var(--border);
    width: 34px; height: 34px; border-radius: 8px;
    cursor: pointer;
    flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  }
  .hamburger span { width: 16px; height: 2px; background: var(--text); border-radius: 1px; }

  @media (max-width: 860px) {
    .main-nav {
      position: absolute; top: 100%; left: 0; right: 0;
      flex-direction: column; align-items: stretch;
      background: var(--panel); border-bottom: 1px solid var(--border-soft);
      padding: 8px 12px 12px;
      display: none;
      overflow: visible;
      box-shadow: 0 12px 24px var(--shadow);
    }
    .main-nav.open { display: flex; }
    .nav-link, .nav-dropdown-btn { justify-content: space-between; width: 100%; }
    .nav-dropdown-menu { position: static; box-shadow: none; margin-left: 8px; width: calc(100% - 8px); }
    .hamburger { display: flex; }
    .top-inner .nav-account { display: none; }
    .top-inner .theme-toggle { margin-left: auto; }
    .main-nav .nav-mobile-only { display: flex; }
    .main-nav .nav-premium { margin-top: 8px; min-height: 44px; }
  }

  /* ---------- Yesterday's results strip ---------- */
  .yesterday-strip {
    background: var(--panel); border: 1px solid var(--border-soft); border-radius: 10px;
    padding: 10px 14px; margin-bottom: 16px; cursor: pointer;
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  }
  .yesterday-strip:hover { border-color: var(--accent); }
  .ys-title { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); flex-basis: 100%; }
  .ys-item { display: flex; align-items: center; gap: 6px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .ys-item .ys-label { color: var(--text-muted); }
  .ys-item .ys-rec { font-weight: var(--fw-num); }
  .ys-item .ys-pct { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); padding: 1px 6px; border-radius: 5px; }
  .ys-item .ys-pct.good { background: var(--win-bg); box-shadow: inset 0 0 0 1px var(--win-line); color: var(--good); }
  .ys-item .ys-pct.bad { background: var(--loss-bg); box-shadow: inset 0 0 0 1px var(--loss-line); color: var(--bad); }
  .ys-item .ys-pct.warn { background: var(--warn-dim); color: var(--warn); }

  /* ---------- No games / next game day ---------- */
  .no-games-body { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .next-gameday-btn {
    background: var(--accent-dim); border: 1px solid var(--accent); color: var(--text);
    font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); padding: 5px 11px; border-radius: 6px; cursor: pointer;
  }
  :root:not([data-theme="light"]) .next-gameday-btn { color: var(--accent); }


  /* ---------- Sports with no data yet ---------- */
  .empty-sport { background: var(--panel); border: 1px solid var(--card-border); border-radius: var(--card-radius); padding: var(--card-pad); text-align: center; }
  .empty-sport h2 { font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); margin-bottom: 6px; }
  .empty-sport p { color: var(--text-muted); max-width: 52ch; margin: 0 auto; }
  .empty-sport .empty-tags { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
  .empty-sport .empty-tags span { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--accent); border: 1px solid var(--accent); padding: 2px 8px; border-radius: 4px; }
  .nav-dropdown-item[aria-current="true"] { color: var(--accent); font-weight: var(--fw-team); }
  /* Sports menu: LIVE, or the date / month the season starts (home.py) */
  .nav-dropdown-item .nav-status {
    margin-left: auto; padding: 2px 6px; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); border: 1px solid var(--border); border-radius: 5px;
  }
  .nav-dropdown-item .nav-status.live { color: var(--bad); border-color: var(--bad); }
  .nav-dropdown-item { min-width: 170px; }
  /* Sign in / Go Premium on every page (same as the home page) */
  .nav-account { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
  .nav-premium {
    display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px;
    background: var(--gold); color: var(--on-gold); border-radius: 10px; text-decoration: none; white-space: nowrap;
    font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); text-transform: uppercase; letter-spacing: 0.05em;
  }
  .nav-mobile-only { display: none; }

  /* ---------- Account controls (scripts/account.py): avatar + menu, every page ---------- */
  .acct { display: flex; align-items: center; flex-shrink: 0; }
  .acct-user { position: relative; }
  .acct-user[hidden] { display: none; }
  .acct-avatar { width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
  .acct-face {
    width: 36px; height: 36px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center;
    background: var(--accent); color: var(--on-accent); font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label);
    box-shadow: 0 0 0 2px var(--panel-2);
  }
  .acct-face img { width: 100%; height: 100%; object-fit: cover; }
  html.rtyb-premium .acct-face { background: var(--gold); color: var(--on-gold); }
  .acct-menu {
    position: absolute; right: 0; top: calc(100% + 6px); min-width: 240px; z-index: 60;
    background: var(--panel); border: 1px solid var(--card-border); border-radius: 12px; padding: 6px;
    box-shadow: 0 12px 32px var(--shadow); display: flex; flex-direction: column;
  }
  .acct-menu[hidden] { display: none; }
  .acct-face { font-family: var(--ff-display); font-size: var(--fs-team); font-weight: var(--fw-section); letter-spacing: 0.02em; }
  /* menu layout B (Chris, Dec 3): initials + name + plan, then Account and Settings groups */
  .acct-head { display: flex; align-items: center; gap: 12px; padding: 8px 10px 12px; border-bottom: 1px solid var(--border-soft); margin-bottom: 2px; }
  .acct-face-lg { width: 44px; height: 44px; box-shadow: none; font-size: var(--fs-section); flex-shrink: 0; }
  .acct-who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .acct-label { margin: 8px 10px 2px; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .acct-out { margin-top: 6px; border-top: 1px solid var(--border-soft); border-radius: 0 0 8px 8px; color: var(--text-muted); }
  .acct-name { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); color: var(--text); }
  .acct-plan { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .acct-item {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: 8px; border: 0; background: none;
    color: var(--text); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); text-decoration: none; text-align: left; cursor: pointer; width: 100%;
  }
  .acct-item:hover { background: var(--panel-2); }
  .acct-tag { padding: 2px 6px; border: 1px solid var(--gold); border-radius: 5px; color: var(--gold); font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); }
  .acct-switch { position: relative; width: 36px; height: 20px; border-radius: 999px; background: var(--border); flex-shrink: 0; }
  .acct-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--panel); transition: left .15s; }
  .acct-dark[aria-checked="true"] .acct-switch { background: var(--accent); }
  .acct-dark[aria-checked="true"] .acct-switch::after { left: 18px; }
  .acct-go {
    display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 6px; border-radius: 10px; background: var(--gold); color: var(--on-gold); text-decoration: none;
    font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); text-transform: uppercase; letter-spacing: 0.05em;
  }
  .acct-go[hidden] { display: none; }
  .nav-dropdown-item .soon { margin-left: auto; padding-left: 12px; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }

  /* ---------- Team logos (light/dark SVG, w/ circle+abbrev fallback) ---------- */
  .team-logo-wrap {
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0; line-height: 0;
  }
  .team-logo-wrap img { width: 100%; height: 100%; object-fit: contain; display: block; }
  .team-logo-fallback {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; border-radius: 50%; color: #fff; font-family: var(--ff-body); font-weight: var(--fw-team); letter-spacing: 0.02em; line-height: 1;
  }
  .nav-team-logo-wrap { margin-right: 2px; }
  .team-tile-logo { align-self: center; margin-bottom: 2px; }

  /* ---------- Game card final score ---------- */
  .game-final-score { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }

  .theme-toggle {
    flex-shrink: 0;
    background: var(--panel-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 34px; height: 34px;
    border-radius: 8px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team);
  }
  .theme-toggle:hover { color: var(--text); }

  /* ---------- Trends to Watch ---------- */
  .trends-section { margin-top: 26px; position: relative; }
  .spot-tag {
    font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label);
    color: var(--trend); background: var(--trend-dim); padding: 1px 5px; border-radius: 3px;
  }
  .trends-head h2 { font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); margin-bottom: 3px; }
  .trends-head p { color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); max-width: 62ch; }
  .trend-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
    margin-top: 14px;
  }
  .trend-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--panel);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 11px 13px;
  }
  .trend-row.hidden-extra { display: none; }
  .trend-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
  .trend-dot.good { background: var(--good); }
  .trend-dot.bad { background: var(--bad); }
  .trend-copy { min-width: 0; }
  .trend-copy .team-name { font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  .trend-copy .trend-text { font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text-muted); margin-top: 1px; }
  .trend-show-all {
    margin-top: 14px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 16px;
    border-radius: 7px;
    font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body);
    cursor: pointer;
  }
  .trend-show-all:hover { background: var(--panel-3); }

  /* ---------- Main layout ---------- */
  main { max-width: 1180px; margin: 0 auto; padding: 24px 20px 80px; }

  .page-head { margin-bottom: 18px; }
  .page-head h1 { font-family: var(--ff-display); font-size: var(--fs-title); font-weight: var(--fw-title); }
  .page-head .page-sub { margin-top: 2px; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .page-title { display: flex; align-items: center; gap: 12px; }
  /* Team logos for the non-NHL sports (assets/logos/{sport}/): the dark
     version, when a team has one, replaces the standard one on dark themes */
  .tlogo { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .tlogo img { width: 100%; height: 100%; object-fit: contain; display: block; }
  .tlogo .tl-light { display: none; }
  :root[data-theme="light"] .tlogo .tl-light { display: block; }
  :root[data-theme="light"] .tlogo .tl-dark { display: none; }
  @media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .tlogo .tl-light { display: block; }
    :root:not([data-theme="dark"]) .tlogo .tl-dark { display: none; }
  }
  /* League icons (scripts/icons.py): the sport's ball, full color */
  .sport-icon { display: inline-block; width: 1.3em; height: 1.3em; flex-shrink: 0; vertical-align: -0.28em; }
  .page-title .sport-icon { width: 1.5em; height: 1.5em; vertical-align: middle; }
  .sport-icon .bi-puck-side { fill: var(--ball-puck-side); }
  .sport-icon .bi-puck-top { fill: var(--ball-puck-top); stroke: var(--ball-puck-rim); stroke-width: var(--ball-puck-rim-w); }
  .sport-icon .bi-puck-grip { stroke: var(--ball-puck-grip); }
  .sport-icon .bi-puck-shine { fill: var(--ball-shine); }
  .sport-icon .bi-rim { stroke: var(--ball-puck-rim); stroke-width: var(--ball-puck-rim-w); }
  .sport-icon .bi-leather { fill: var(--ball-leather); stroke: var(--ball-leather-edge); }
  .sport-icon .bi-leather-rim { stroke: var(--ball-leather-rim); }
  .sport-icon .bi-stripe, .sport-icon .bi-lace { stroke: var(--ball-lace); }
  .sport-icon .bi-basketball { fill: var(--ball-orange); stroke: var(--ball-orange-edge); }
  .sport-icon .bi-seam { stroke: var(--ball-seam); }
  .sport-icon .bi-wnba-white { fill: var(--ball-white); }
  .sport-icon .bi-cbb-dark { fill: var(--ball-orange-deep); }
  .sport-icon .bi-cbb-light { fill: var(--ball-orange-light); }
  .sport-icon .bi-cbb-edge { stroke: var(--ball-orange-edge); }
  .sport-icon .bi-wnba-orange { fill: var(--ball-orange); }
  .sport-icon .bi-wnba-edge { stroke: var(--ball-orange-edge); }
  .sport-icon .bi-baseball { fill: var(--ball-white); stroke: var(--ball-white-edge); }
  .sport-icon .bi-stitch { stroke: var(--ball-stitch); }
  .page-head p { color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); margin-top: 4px; max-width: 62ch; }

  /* ---------- Date bar ---------- */
  .date-bar {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-bottom: 16px; position: relative;
  }
  .date-nav {
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--panel-2); border: 1px solid var(--border);
    color: var(--text); font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }
  .date-nav:hover { background: var(--panel-3); }
  .date-nav:disabled { opacity: 0.35; cursor: default; background: var(--panel-2); }
  .date-label-wrap { position: relative; display: flex; align-items: center; gap: 6px; }
  .date-label {
    font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team);
    letter-spacing: 0.02em; min-width: 132px; text-align: center;
  }
  .date-cal-btn {
    width: 30px; height: 30px; border-radius: 7px;
    background: var(--panel-2); border: 1px solid var(--border);
    color: var(--text-muted); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }
  .date-cal-btn:hover { color: var(--text); background: var(--panel-3); }
  .date-today-btn {
    background: transparent; border: 1px solid var(--border);
    color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label);
    padding: 6px 10px; border-radius: 7px; cursor: pointer;
  }
  .date-today-btn:hover { color: var(--text); border-color: var(--accent); }
  .cal-popover {
    position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
    background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
    padding: 12px; width: 260px; box-shadow: 0 12px 32px var(--shadow);
    z-index: 40;
  }
  .cal-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body);
  }
  .cal-head button { background: none; border: none; color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); cursor: pointer; padding: 2px 8px; }
  .cal-head button:hover { color: var(--text); }
  .cal-dow {
    display: grid; grid-template-columns: repeat(7, 1fr);
    font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); text-align: center; margin-bottom: 4px;
  }
  .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
  .cal-day {
    position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    border-radius: 6px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); cursor: pointer; background: none; border: none; color: var(--text);
  }
  .cal-day:hover { background: var(--panel-2); }
  .cal-day.outside { color: var(--text-muted); }
  .cal-day.selected { background: var(--accent); color: var(--bg); font-weight: var(--fw-team); }
  .cal-day.today:not(.selected) { border: 1px solid var(--accent); }
  .cal-day .dot { position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
  .cal-day.selected .dot { background: var(--bg); }
  .cal-legend { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .cal-legend .cal-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); display: inline-block; }

  .no-games-note {
    font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); background: var(--panel-2);
    border: 1px solid var(--border-soft); border-radius: 8px;
    padding: 8px 13px; margin-bottom: 14px;
  }

  /* ---------- Games list ---------- */
  .daily-summary {
    background: var(--panel); border: 1px solid var(--card-border); border-radius: var(--card-radius);
    padding: var(--card-pad); margin-bottom: 16px;
  }
  .daily-summary h3 { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); margin-bottom: 10px; }
  .ds-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--border-soft); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .ds-row:first-of-type { border-top: none; }
  .ds-label { color: var(--text-muted); }
  .ds-right { display: flex; align-items: center; gap: 10px; }
  .ds-record { font-weight: var(--fw-num); }
  .ds-pct { font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); padding: 2px 7px; border-radius: 5px; }
  .ds-pct.good { background: var(--win-bg); box-shadow: inset 0 0 0 1px var(--win-line); color: var(--good); }
  .ds-pct.bad { background: var(--loss-bg); box-shadow: inset 0 0 0 1px var(--loss-line); color: var(--bad); }
  .ds-pct.warn { background: var(--warn-dim); color: var(--warn); }
  .ds-empty { color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); padding: 2px 0; }
  /* Fixed-width Record / Win % / Units columns so values line up. */
  .ds-col-rec { width: 58px; text-align: right; }
  .ds-col-pct { width: 50px; text-align: right; }
  .ds-col-units { width: 74px; text-align: right; }
  #leagueTable .col-tie { width: 64px; text-align: right; }
  .tie-pct { color: var(--text-muted); font-weight: var(--fw-num); }
  /* Team pages' season records run longer ("79 of 166", "75-59-32") */
  .season-markets .ds-col-rec { width: auto; min-width: 58px; white-space: nowrap; }
  .season-markets .ds-col-pct { white-space: nowrap; }
  .ds-row.ds-head { padding: 0 0 4px; }
  .ds-row.ds-head .ds-right > span {
    font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted);
  }
  .ds-row.ds-head + .ds-row { border-top: 1px solid var(--border-soft); }
  .ys-item .u-pill { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); padding: 1px 6px; }

  .games-list { display: flex; flex-direction: column; gap: 12px; }
  .game-card { background: var(--panel); border: 1px solid var(--card-border); border-radius: var(--card-radius); padding: var(--card-pad); }
  .gm-time { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); margin-bottom: 4px; }
  /* Matchups cards (assets/sport.js gameCard): a compact table, teams on
     the rows and markets across; two to a row on desktop, the same height */
  .mc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
  @media (max-width: 900px) { .mc-list { grid-template-columns: minmax(0, 1fr); } }
  .game-card.mc { display: flex; flex-direction: column; }
  /* half the cell gap around every cell, so cells sit 8px apart; the negative
     margin keeps the outer cells flush with the card padding */
  .mc-grid { width: calc(100% + var(--cell-gap)); margin: calc(var(--cell-gap) / -2); min-width: 0; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
  .mc-grid th, .mc-grid td { padding: calc(var(--cell-gap) / 2); text-align: center; white-space: nowrap; }
  .mc-grid thead th { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); padding-bottom: 2px; overflow: hidden; text-overflow: ellipsis; }
  .mc-grid thead .mc-st { width: 40%; text-align: left; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); letter-spacing: 0.03em; white-space: normal; }
  .mc-grid .mc-team { text-align: left; }
  .mc-tw { display: flex; align-items: center; gap: 6px; min-width: 0; }
  .mc-tn { min-width: 0; overflow: hidden; }
  .mc-tn .gm-team { display: flex; align-items: center; gap: 7px; color: var(--text); text-decoration: none; font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); min-width: 0; }
  .mc-tn .gm-team:hover { color: var(--accent); }
  .mc-tn .tn-full { overflow: hidden; text-overflow: ellipsis; }
  .mc-sc { margin-left: auto; padding-left: 6px; font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); color: var(--text); }
  .mc-tie-lbl { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); padding-left: 29px; }
  .mc-cell { vertical-align: middle; }
  .mc-cell .ob-ln { font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); }
  .mc-dash { color: var(--text-muted); }
  /* finished games, highlight only: won = soft green, lost = dimmed,
     tie / push = soft yellow (CLAUDE.md color rule) */
  /* (the same on the Odds page past dates) */
  /* One cell (Odds, Matchups, game logs): the line on top, the price under it,
     on the neutral --cell background. A win gets the green fill, a loss dims,
     a tie or push gets the yellow fill; the best price (Odds only) gets the
     green tint and outline. Emphasis is color and fill, never bold. */
  .cell { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: var(--cell-min-h); padding: var(--cell-pad); border-radius: var(--cell-radius); background: var(--cell); color: var(--text); }
  td.mc-w .cell { background: var(--win-bg); box-shadow: inset 0 0 0 1px var(--win-line); }
  td.mc-l .cell { opacity: 0.5; }
  td.mc-p .cell { background: var(--push-dim); }
  td.mc-warm .cell { background: var(--warm-bg); box-shadow: inset 0 0 0 1px var(--warm-line); }
  td.mc-cool .cell { background: var(--cool-bg); box-shadow: inset 0 0 0 1px var(--cool-line); }
  td.ob-best .cell { background: var(--best-bg); box-shadow: inset 0 0 0 1px var(--best); }
  .mc-full { margin-top: auto; display: flex; align-items: baseline; gap: 10px; padding-top: 8px; border-top: 1px solid var(--border-soft); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .mc-full-lbl { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); white-space: nowrap; }
  .mc-full-sc { font-weight: var(--fw-num); color: var(--text); white-space: nowrap; }
  .mc-fs-win { color: var(--text); }
  .mc-fs-lose { color: var(--text-muted); }
  .mc-ot { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .tn-short { display: none; }
  .gm-stick { position: sticky; top: 0; z-index: 20; background: var(--bg); padding: 6px 0; margin-bottom: 6px; }
  .gm-results { margin-bottom: 14px; }
  @media (max-width: 640px) {
    .tn-full { display: none; }
    .tn-short { display: inline; }
    .mc-grid thead .mc-st { width: 34%; }
    .mc-tie-lbl { padding-left: 0; }
  }
  .game-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; flex-wrap: wrap; gap: 6px; }
  .game-matchup { display: flex; align-items: center; gap: 8px; font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); }
  .game-matchup .gm-team { display: flex; align-items: center; gap: 6px; cursor: pointer; color: inherit; text-decoration: none; }
  .game-matchup .gm-team:hover { color: var(--accent); }
  .gm-p1 { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); color: var(--text-muted); }
  .game-final-score { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); display: flex; align-items: center; gap: 6px; }
  /* All three market pills always share one row; on narrow screens a pill's
     two halves (e.g. "NYR -100" / "DET -120") wrap inside the pill instead
     of the pills wrapping onto new rows. */
  .odds-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
  .gm-3way { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 8px; font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); color: var(--text-muted); }
  .gm-3way-label { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .pill { background: var(--panel-2); border: 1px solid var(--border-soft); border-radius: 8px; padding: 7px 9px; display: flex; align-items: baseline; gap: 6px; min-width: 0; }
  .pill .pill-label { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); flex-shrink: 0; }
  /* Light mode: market labels (ML / OU / BTTS) in the logo's blue. */
  :root[data-theme="light"] .pill .pill-label { color: var(--accent); }
  @media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .pill .pill-label { color: var(--accent); }
  }
  .pill .pill-body { font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); display: flex; flex-wrap: wrap; gap: 0 8px; min-width: 0; }
  .pill .pill-body .pb { white-space: nowrap; }
  .pill .pill-body:empty::before { content: '\2014'; color: var(--text-muted); font-weight: var(--fw-body); }
  @media (max-width: 520px) {
    .odds-grid { gap: 6px; }
    .pill { flex-direction: column; gap: 2px; padding: 6px 7px; }
    .pill .pill-body { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); }
  }

  /* Per-matchup "Trends to Watch (N)" dropdown */
  .gm-trends { margin-top: 10px; border: 1px solid var(--border-soft); border-radius: 8px; background: var(--trend-dim); }
  .gm-trends summary {
    cursor: pointer; list-style: none; padding: 7px 10px;
    font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--trend);
    display: flex; align-items: center; gap: 6px;
  }
  .gm-trends summary::-webkit-details-marker { display: none; }
  .gm-trends summary::after { content: '\25BE'; margin-left: auto; transition: transform 0.15s; }
  .gm-trends[open] summary::after { transform: rotate(180deg); }
  .gm-trends ul { list-style: none; padding: 0 10px 8px; margin: 0; }
  .gm-trends li { font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text); padding: 3px 0; display: flex; gap: 6px; }
  .gm-trends li::before { content: '\2013'; color: var(--trend); flex-shrink: 0; }
  /* ---------- Trends to Watch panel on game cards ---------- */
  .gm-period { font-weight: var(--fw-team); color: var(--text-muted); }
  .pill .pill-body .pb.tr-fav { color: var(--good); box-shadow: inset 0 -2px 0 var(--good); }
  .pill .pill-body .pb.tr-split { color: var(--warn); box-shadow: inset 0 -2px 0 var(--warn); }
  .gm-trends summary { flex-wrap: wrap; gap: 6px; }
  .tr-sum-title { margin-right: 4px; }
  .tr-sum-chip { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--good); background: var(--good-dim); border-radius: 5px; padding: 2px 7px; }
  .tr-sum-chip.split { color: var(--warn); background: var(--warn-dim); }
  .tr-sum-chip.muted { color: var(--text-muted); background: var(--neutral-chip); }
  .tr-body { padding: 2px 10px 10px; }
  .tr-mkt + .tr-mkt { margin-top: 8px; }
  .tr-mkt-head { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); padding: 6px 0 2px; }
  .tr-tally { margin-left: 6px; font-weight: var(--fw-num); color: var(--text); letter-spacing: 0; text-transform: none; }
  .gm-trends .tr-mkt ul { padding: 0; }
  .gm-trends li.tr-line { align-items: baseline; flex-wrap: wrap; gap: 6px 8px; padding: 5px 0; border-top: 1px solid color-mix(in srgb, var(--border-soft) 60%, transparent); }
  .gm-trends li.tr-line::before { content: none; }
  .tr-line.weak, .tr-row.weak, .tr-card.weak { opacity: 0.55; }
  .tr-chip { flex-shrink: 0; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); padding: 2px 8px; border-radius: 5px; white-space: nowrap; }
  .tr-chip.good { background: var(--good-dim); color: var(--good); }
  .tr-chip.bad { background: var(--bad-dim); color: var(--bad); }
  .tr-chip.amber { background: var(--warn-dim); color: var(--warn); }
  .tr-chip.muted { background: var(--neutral-chip); color: var(--text-muted); }
  .tr-text { flex: 1 1 260px; min-width: 0; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .tr-meta { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); white-space: nowrap; }
  .tr-str { text-transform: uppercase; letter-spacing: 0.04em; margin-right: 4px; }
  .tr-str.strong { color: var(--good); }
  .tr-str.moderate { color: var(--accent); }
  .tr-str.weak { color: var(--text-muted); }
  .tr-str[title] { cursor: help; }
  .tr-agree { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--accent); margin-left: 4px; }
  .tr-src { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; }
  .trend-record-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--border-soft); border-radius: 10px; padding: 9px 14px; margin-bottom: 14px; font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); }
  .trs-label { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .trs-rec { font-weight: var(--fw-num); }
  .trs-pct { color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); }
  .trs-link { margin-left: auto; color: var(--accent); font-weight: var(--fw-team); text-decoration: none; }
  /* ---------- Trends page ---------- */
  .tr-filter { margin-bottom: 14px; }
  .tr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; margin-top: 12px; }
  .tr-card { background: var(--panel); border: 1px solid var(--card-border); border-radius: var(--card-radius); padding: var(--card-pad); }
  .tr-card-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .tr-card-title { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); flex: 1 1 auto; }
  .tr-rec { margin-top: 6px; font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .tr-rec .mono { font-weight: var(--fw-num); }
  .tr-rec-note { color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); }
  .tr-picks { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; align-items: center; }
  .tr-pick { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .tr-pick-game { color: var(--text-muted); }
  .tr-game { background: var(--panel); border: 1px solid var(--card-border); border-radius: var(--card-radius); padding: var(--card-pad); margin-top: 10px; }
  .tr-game-head { display: flex; align-items: center; gap: 6px; font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); padding-bottom: 6px; }
  .tr-game-time { margin-left: auto; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .tr-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 7px 0; border-top: 1px solid var(--border-soft); }
  .tr-mk { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); min-width: 64px; }
  .tr-flag { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--warn); border: 1px solid var(--warn); border-radius: 4px; padding: 1px 6px; }
  .tr-dots { display: inline-flex; gap: 3px; margin-left: auto; }
  .tr-dot { width: 9px; height: 9px; border-radius: 50%; }
  .tr-dot.hit { background: var(--good); }
  .tr-dot.miss { background: var(--text-faint); }
  .tr-dot.push { border: 1.5px solid var(--text-faint); width: 9px; height: 9px; box-sizing: border-box; }
  .tr-none { color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); padding: 6px 0; }
  @media (max-width: 600px) {
    .tr-cards { grid-template-columns: 1fr; }
    .tr-dots { margin-left: 0; }
  }

  .controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;   /* pills on the left, never spread to the right (Chris, Nov 30) */
    margin-bottom: 16px;
    padding: 12px 14px;
    background: var(--panel);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
  }
  .control-group { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
  .control-label {
    font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label);
    color: var(--text-muted);
    margin-right: 4px;
  }
  .seg-btn {
    background: var(--panel-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body);
    padding: 6px 11px;
    border-radius: 6px;
    cursor: pointer;
  }
  .seg-btn[aria-pressed="true"] {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--text);
  }
  :root:not([data-theme="light"]) .seg-btn[aria-pressed="true"] { color: var(--accent); }
  .search-box {
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    padding: 6px 10px;
    font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body);
    width: 150px;
  }
  .search-box::placeholder { color: var(--text-muted); }

  /* ---------- Table ---------- */
  .table-wrap {
    background: var(--panel);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    overflow: hidden;
  }
  .table-scroll { overflow-x: auto; }
  table { width: 100%; border-collapse: collapse; min-width: 640px; }
  thead th {
    text-align: left;
    font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label);
    color: var(--text-muted);
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--panel-2);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
  }
  thead th.num, td.num { text-align: right; }
  thead th:hover { color: var(--text); }
  thead th .arrow { opacity: 0.5; margin-left: 3px; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); }
  tbody tr { border-bottom: 1px solid var(--border-soft); }
  tbody tr:last-child { border-bottom: none; }
  /* only rows that go somewhere react to the pointer (a team row opens its page) */
  tbody tr[data-href], tbody tr[data-team] { cursor: pointer; }
  tbody tr[data-href]:hover, tbody tr[data-team]:hover { background: var(--panel-2); }
  td { padding: 10px 14px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); white-space: nowrap; }
  td.team-cell { display: flex; align-items: center; gap: 9px; font-weight: var(--fw-team); }
  .pct-cell { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
  .pct-bar {
    width: 60px; height: 6px; border-radius: 3px;
    background: var(--panel-3);
    overflow: hidden;
    flex-shrink: 0;
  }
  .pct-bar > span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
  .pct-num { width: 42px; text-align: right; }
  .rec-cell { color: var(--text-muted); }
  .rec-cell b { color: var(--text); }
  /* Stats team table: fixed stat columns so values line up under their headers. */
  #leagueTable { table-layout: fixed; }
  #leagueTable tr.tl-row { cursor: pointer; }
  #leagueTable tr.tl-row:hover td { background: var(--panel-2); }
  #leagueTable .col-go { width: 26px; padding-left: 0; padding-right: 8px; text-align: right; color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); line-height: 1; }
  #leagueTable tr.tl-row:hover .col-go { color: var(--accent); }
  #leagueTable .col-streak { width: 72px; }
  .tl-streak { font-weight: var(--fw-num); }
  #leagueTable .tl-short { display: none; }
  .tl-streak.good { color: var(--good); }
  .tl-streak.bad { color: var(--bad); }
  .tl-streak.flat { color: var(--push); }   /* T / P: gold (light mode: a gold chip) */
  #leagueTable .tl-name { color: var(--text); text-decoration: none; }
  #leagueTable tr.tl-group td { background: var(--panel-2); font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); text-transform: uppercase; letter-spacing: 0.04em; padding-top: 14px; }
  .tl-note { margin-top: 8px; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }

  /* ---------- Situational Results (NFL / NCAAF, sport.js + assets/splits/) ---------- */
  #statsSit, .team-sit { margin-top: 14px; }
  .sit .sc-right { flex-wrap: wrap; justify-content: flex-end; }
  .sit-persp { align-items: center; gap: 6px; }
  .sit-persp .control-label { margin-right: 2px; }
  .sit-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); min-width: 720px; }
  /* every group's card has the same columns at the same widths */
  .sit-table col.sc-gp { width: 72px; }
  .sit-table col.sc-rec { width: 100px; }
  .sit-table col.sc-pct { width: 160px; }
  .sit-table col.sc-tie { width: 72px; }
  .sit-table col.sc-u { width: 130px; }
  .sit-gsec .st-head { margin-bottom: 4px; }
  .sit-mname { color: var(--text); }
  /* How to read: the Splits glossary */
  .htr-gloss { margin-top: 12px; }
  .htr-gloss h3 { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); margin-bottom: 4px; }
  .htr-gloss h4 { margin-top: 10px; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .htr-gloss dl { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 4px 14px; margin-top: 4px; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); }
  .htr-gloss dt { color: var(--text); }
  .htr-gloss dd { color: var(--text-muted); margin: 0; }
  @media (max-width: 640px) { .htr-gloss dl { grid-template-columns: minmax(0, 1fr); gap: 0; } .htr-gloss dd { margin-bottom: 6px; } }
  .sit-table th { text-align: left; color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); padding: 7px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
  .sit-table th.num, .sit-table td.num { text-align: right; }
  .sit-name { font-weight: var(--fw-body); }
  .sit-small { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); border: 1px solid var(--border); border-radius: 3px; padding: 0 4px; margin-left: 4px; vertical-align: 1px; }
  .sit-both { display: inline-flex; gap: 4px; }
  .sit-seglabel { margin-left: 8px; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--accent); text-transform: none; letter-spacing: 0; }
  .sit-loading { padding: 24px; color: var(--text-muted); }
  .sit th.sit-sel { font-weight: var(--fw-label); }
  .sit td.sit-sel { font-weight: var(--fw-num); }
  .sit-wrap { position: relative; }
  .sit-scroll .sit-wrap { overflow-x: auto; }
  .sit-scroll .sit-table th.sit-label, .sit-scroll .sit-table td.sit-label { position: sticky; left: 0; z-index: 1; background: var(--panel); }
  .sit-table td.sit-label { white-space: normal; min-width: 210px; }
  .locked .sit-wrap, .locked .sit-mob { filter: blur(6px); user-select: none; pointer-events: none; }
  .adv-section.locked .sit .sc-right { opacity: 0.4; pointer-events: none; }
  .sit-table td { padding: 7px 8px; border-bottom: 1px solid var(--border-soft); white-space: nowrap; }
  .sit-table .mono, .sit-log .mono { font-weight: var(--fw-num); }
  .sit-table .pct-cell { justify-content: flex-end; }
  .sit-label.ind { padding-left: 26px; color: var(--text-muted); }
  .sit-notyet td, div.sit-notyet { color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); white-space: normal; }
  div.sit-notyet { padding: 6px 2px 2px; }
  .amber { color: var(--warn) !important; }
  .sit-foot { margin-top: 10px; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .sit-mob { display: none; }
  .sit-mk { margin-bottom: 8px; }
  .sit-mgroup { margin-top: 10px; }
  .sit-mtitle { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); text-transform: uppercase; letter-spacing: 0.04em; padding: 4px 0; }
  .sit-mrow { border-top: 1px solid var(--border-soft); }
  .sit-mrow summary { list-style: none; display: grid; grid-template-columns: 1fr auto 74px 18px; gap: 8px; align-items: center; min-height: 44px; cursor: pointer; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .sit-mrow summary::-webkit-details-marker { display: none; }
  .sit-mlabel.ind { padding-left: 14px; color: var(--text-muted); }
  .sit-mrec { text-align: right; }
  .sit-mval { text-align: right; }
  .sit-chev { color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); transition: transform 0.15s; }
  .sit-mrow[open] .sit-chev { transform: rotate(180deg); }
  .sit-mbody { padding: 2px 0 10px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .sit-mbody p { color: var(--text-muted); margin-bottom: 6px; }
  .sit-m3 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-top: 8px; }
  .sit-m3 > div { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; background: var(--panel-2); border-radius: 7px; padding: 6px 8px; }
  .sit-m3 b { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); width: 100%; }
  .sit-mfoot { margin-top: 6px; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .sit-tags { white-space: normal; }
  .sit-tag { display: inline-block; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; margin: 1px 3px 1px 0; white-space: nowrap; }
  .sit-log th.sit-hl, .sit-log td.sit-hl { color: var(--accent); font-weight: var(--fw-team); }
  .sit-log td { vertical-align: middle; }
  .sit-more { margin-top: 10px; min-height: 44px; }
  .sit-gcard { border-top: 1px solid var(--border-soft); padding: 8px 0; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .sit-gl1 { display: grid; grid-template-columns: 52px 1fr auto; gap: 8px; align-items: center; }
  .sit-gl2 { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; }
  .sit-gb { display: inline-flex; gap: var(--cell-gap); flex-shrink: 0; }
  #sitLogSeg { margin-bottom: 8px; }
  #sitLogSeg .seg-btn, .sit .seg-btn { min-height: 34px; }
  @media (max-width: 640px) {
    .sit-desk:not(.sit-scroll) { display: none; }
    .sit-mob { display: block; }
    .sit-scroll .sit-table td.sit-label, .sit-scroll .sit-table th.sit-label { min-width: 150px; max-width: 170px; white-space: normal; }
    .sit-table { min-width: 520px; }
    .sit-table col.sc-l { width: 150px; }
    .sit-table col.sc-gp { width: 48px; }
    .sit-table col.sc-rec { width: 84px; }
    .sit-table col.sc-pct { width: 104px; }
    .sit-table col.sc-tie { width: 52px; }
    .sit-table col.sc-u { width: 100px; }
    .sit .seg-btn, #sitLogSeg .seg-btn, .sit-mk .seg-btn { min-height: 44px; }
  }
  /* Situational groups, premium blur */
  .sit .pct-bar > span { background: var(--text-faint); }
  .sit .edge-pos .pct-bar > span { background: var(--good); }
  .sit .edge-neg .pct-bar > span { background: var(--bad); }
  .sit .edge-pos .pct-num { color: var(--good); }
  .sit .edge-neg .pct-num { color: var(--bad); }
  .pm-blur { filter: blur(5px); user-select: none; pointer-events: none; }
  .pm-unlock { display: inline-block; margin-top: 6px; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--accent); }
  .sit-gsec { margin-top: 12px; background: var(--panel); border: 1px solid var(--card-border); border-radius: var(--card-radius); padding: var(--card-pad); }
  .sit-combo { margin: 0 0 8px; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .sit-stick { margin-bottom: 4px; padding-bottom: 6px; }
  .sit-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .sit-row1, .sit-full { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .sit-bar .seg-toggle { margin-bottom: 0; }
  @media (max-width: 640px) {
    /* two rows on phones: segment + market, then time + View as */
    .sit-stick { margin: 0 -16px 8px; padding: 6px 16px; border-bottom: 1px solid var(--card-border); }
    .sit-bar { flex-direction: column; align-items: stretch; gap: 6px; }
    .sit-row1, .sit-full { flex-wrap: wrap; }
    .sit-bar .seg-toggle { flex-shrink: 0; flex-wrap: wrap; }
    .sit-bar .seg-btn { white-space: nowrap; }
  }
  #leagueTable .col-rec { width: 110px; }
  #leagueTable .col-pct { width: 150px; }
  #leagueTable .col-units { width: 120px; }
  @media (max-width: 600px) {
    #leagueTable .col-rec { width: 66px; }
    #leagueTable .col-pct { width: 38px; }
    #leagueTable .col-tie { width: 36px; }
    #leagueTable .col-streak { width: 44px; }
    #leagueTable .col-units { width: 56px; }
    #leagueTable .col-go { width: 14px; padding-right: 4px; }
    #leagueTable .tl-full { display: none; }
    #leagueTable .tl-short { display: inline; }
  }

  /* ---------- Teams list + team pages (assets/sport.js) ---------- */
  .tm-controls { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
  .tm-controls .seg-toggle { margin-bottom: 0; }
  .tm-u { font-weight: var(--fw-num); color: var(--text-muted); }
  .tm-u.pos { color: var(--good); }
  .tm-u.neg { color: var(--bad); }
  .tm-u.mid { color: var(--push); }
  /* the pills, the filter and the search box: one height, one font */
  .tm-controls .seg-btn, .tm-controls .search-box, .tm-filter { height: 30px; box-sizing: border-box; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .tm-controls .search-box { padding: 0 10px; font-weight: var(--fw-body); }
  .tm-filter { background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px; color: var(--text); padding: 0 8px; cursor: pointer; max-width: 210px; }
  .page-title .tlogo, .page-title .team-badge { flex-shrink: 0; }
  .tm-sec { margin-top: 22px; }
  .tm-sec .team-section-title { margin-bottom: 8px; }
  .tm-card { background: var(--panel); border: 1px solid var(--card-border); border-radius: var(--card-radius); padding: var(--card-pad); }
  .tm-card + .tm-card { margin-top: 8px; }
  .tm-ng-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); margin-bottom: 6px; }
  .tm-when { color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .tm-opp { display: inline-flex; align-items: center; gap: 6px; }
  .tm-opp a { color: inherit; }
  .tm-final { margin-left: auto; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .tm-seg-line { display: grid; grid-template-columns: 110px 1fr; gap: 8px; padding: 6px 0; border-top: 1px solid var(--border-soft); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .tm-live { color: var(--bad); font-weight: var(--fw-team); }
  .tm-muted { color: var(--text-muted); }
  .tm-res { white-space: nowrap; margin-right: 10px; }
  .tm-mt { margin-top: 8px; border-top: 1px solid var(--border-soft); padding-top: 6px; }
  .tm-mt-head { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); margin-bottom: 2px; }
  .tm-mt-head a { color: var(--accent); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .tm-mk-card { display: flex; flex-wrap: wrap; gap: 10px 28px; background: var(--panel); border: 1px solid var(--card-border); border-radius: var(--card-radius); padding: var(--card-pad); }
  .tm-mk-card b { display: block; font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); }
  .tm-mk-label { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .tm-split th { text-align: left; }
  .tm-split td small { color: var(--text-muted); font-weight: var(--fw-price); }
  .tm-split th small { color: var(--text-muted); }
  .tm-split .sit-hl { color: var(--accent); }
  .tm-sub { font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); text-transform: none; letter-spacing: 0; margin: 6px 0 4px; }
  .tm-sub small { color: var(--text-muted); font-weight: var(--fw-body); }
  .tm-card p { font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); margin: 3px 0; }
  .tm-list { margin: 0; padding-left: 18px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); line-height: 1.6; }
  .tm-list a, .tm-card p a { color: inherit; text-decoration: underline dotted; }
  .tm-plain { font-weight: var(--fw-body); }
  .tm-flash { background: color-mix(in srgb, var(--accent) 22%, transparent) !important; transition: background 0.4s; }
  /* Situational Results on a team page: the next game's rows */
  .sit-spots { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0 10px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .sit-spots p { margin: 0; }
  .sit-spots a { color: var(--accent); }
  .sit-table tr.sit-on td, details.sit-mrow.sit-on { background: color-mix(in srgb, var(--accent) 10%, transparent); }
  .sit-tn { display: inline-block; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--accent); border: 1px solid var(--accent); border-radius: 4px; padding: 0 4px; vertical-align: middle; }
  @media (max-width: 600px) {
    .tm-seg-line { grid-template-columns: 1fr; gap: 2px; }
    .tm-final { margin-left: 0; }
  }

  /* ---------- Detail drawer ---------- */
  .scrim {
    position: fixed; inset: 0;
    background: var(--scrim);
    opacity: 0; pointer-events: none;
    transition: opacity .18s ease;
    z-index: 50;
  }
  .scrim.open { opacity: 1; pointer-events: auto; }
  .drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(480px, 100vw);
    background: var(--panel);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform .22s ease;
    z-index: 51;
    display: flex;
    flex-direction: column;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .drawer.open { transform: translateX(0); }
  .drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-soft);
    flex-shrink: 0;
  }
  .drawer-head h2 { font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); }
  .drawer-title-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .drawer-team-badge {
    width: 34px; height: 34px; border-radius: 9px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--ff-body); font-weight: var(--fw-team);
  }
  .drawer-close {
    background: var(--panel-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 30px; height: 30px;
    border-radius: 7px;
    cursor: pointer;
    font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team);
    line-height: 1;
  }
  .drawer-body { overflow-y: auto; padding: 16px 18px 32px; flex: 1; }

  .stat-row { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
  .stat-tile {
    flex: 1;
    min-width: 84px;
    background: var(--panel-2);
    border: 1px solid var(--border-soft);
    border-radius: 9px;
    padding: 10px 12px;
  }
  .stat-tile .lbl { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .stat-tile .val { font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); margin-top: 3px; font-variant-numeric: tabular-nums; }

  .team-section-title {
    font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); text-transform: uppercase; letter-spacing: 0.03em;
    color: var(--text); margin: 26px 0 10px; display: flex; align-items: center;
  }
  .team-section-title .info-tip { margin-left: 6px; }
  #teamLastGame .daily-summary { margin-top: -4px; }
  a.team-link { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--text-faint); }
  a.team-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
  .drawer-section-title {
    font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label);
    color: var(--text-muted); margin: 18px 0 8px;
  }
  .split-table { width: 100%; min-width: 380px; border-collapse: collapse; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); margin-bottom: 6px; }
  .split-table th { text-align: right; color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); padding: 5px 6px; }
  .split-table th:first-child, .split-table td:first-child { text-align: left; }
  .split-table td { text-align: right; padding: 6px 6px; font-weight: var(--fw-num); border-top: 1px solid var(--border-soft); }

  .trend-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px; border-radius: 999px;
    font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body);
    background: var(--good-dim); color: var(--good);
    margin-bottom: 4px;
  }
  .trend-badge.bad { background: var(--bad-dim); color: var(--bad); }

  .gamelog-scroll { overflow-x: auto; }
  .gamelog { width: 100%; min-width: 420px; border-collapse: collapse; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .gamelog th { text-align: left; color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); padding: 6px 6px; border-bottom: 1px solid var(--border); }
  .gamelog td { padding: calc(var(--cell-gap) / 2) 6px; border-bottom: 1px solid var(--border-soft); }
  .gamelog td.num { font-weight: var(--fw-num); text-align: center; }
  .result-pill {
    display: inline-block; width: 20px; height: 20px; border-radius: 5px;
    text-align: center; line-height: 20px; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price);
  }
  /* a past result: win = green fill, loss = dimmed neutral cell, tie/push = yellow fill */
  .result-pill.W { background: var(--win-bg); box-shadow: inset 0 0 0 1px var(--win-line); color: var(--text); }
  .result-pill.L { background: var(--cell); color: var(--text); opacity: 0.5; }
  .result-pill.T { background: var(--push-dim); color: var(--text); }
  .btts-badge {
    display: inline-block; width: 20px; height: 20px; border-radius: 5px;
    text-align: center; line-height: 20px; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label);
  }
  .btts-badge.yes { background: var(--good-dim); color: var(--good); }
  .btts-badge.no { background: var(--bad-dim); color: var(--bad); }
  .btts-badge.tie { background: var(--push-dim); color: var(--push); }

  /* ---------- Units (1u = $100 flat risk) ---------- */
  /* 5-step shading: >= +3u strong green, >0 light green, 0 gray,
     <0 light red, <= -3u strong red. Muted tints, same-hue text. */
  .u-pill {
    display: inline-block; font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); padding: 2px 7px; border-radius: 5px; white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }
  .u-pos2 { background: color-mix(in srgb, var(--good) 34%, transparent); color: var(--good); }
  .u-pos1 { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }
  .u-zero { background: var(--neutral-chip); color: var(--text-muted); }
  .u-mid { background: color-mix(in srgb, var(--push) 16%, transparent); color: var(--push); }
  .u-neg1 { background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); }
  .u-neg2 { background: color-mix(in srgb, var(--bad) 34%, transparent); color: var(--bad); }
  .u-none { color: var(--text-muted); }

  /* Circled-i: every one opens the same box (#tipBox, built by the script
     below from the button's hidden .tip-bubble). Desktop: a small box on
     hover or click, kept inside the viewport. Phones: a centered panel,
     16px from each side, with a close button; a tap outside closes it. */
  .info-tip {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 14px; height: 14px; border-radius: 50%; border: 1px solid currentColor;
    background: none; color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label);
    cursor: pointer; padding: 0; margin-left: 4px; vertical-align: middle; flex-shrink: 0;
  }
  .info-tip:hover, .info-tip.open { color: var(--accent); }
  .info-tip .tip-bubble { display: none !important; }
  .tip-box {
    position: fixed; z-index: 400; width: 280px; max-width: calc(100vw - 32px); padding: 12px 14px; border-radius: 10px;
    background: var(--panel); border: 1px solid var(--card-border); color: var(--text); box-shadow: 0 8px 24px var(--shadow);
    font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); text-align: left; text-transform: none; letter-spacing: 0; white-space: normal;
  }
  .tip-box[hidden], .tip-scrim[hidden] { display: none; }
  .tip-box .tip-t { display: block; margin: 0 26px 4px 0; font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); line-height: 1.15; color: var(--text); }
  .tip-box .tip-d { display: block; color: var(--text); line-height: 1.45; }
  .tip-box .tip-c { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border-soft); color: var(--text-muted); }
  .tip-box .tip-x {
    position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: none; border-radius: 50%; background: none;
    color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-body); cursor: pointer; display: none;
  }
  .tip-scrim { position: fixed; inset: 0; z-index: 399; background: rgba(0, 0, 0, 0.45); }
  .tip-box.tip-panel { left: 16px !important; right: 16px; top: 50% !important; width: auto; max-width: none; transform: translateY(-50%); padding: 16px 18px; }
  .tip-box.tip-panel .tip-x { display: block; }
  .tip-box.tip-panel .tip-d { font-size: var(--fs-body); }
  /* a label chip (Lockdown, Fireworks...) with its own circled i next to it */
  .lbl-chip { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }

  /* ---------- Segmented toggles (Record | Units, All | Home | Away) ---------- */
  .seg-toggle { display: inline-flex; gap: 4px; margin-bottom: 8px; flex-wrap: wrap; }
  .seg-toggle .seg-btn { padding: 4px 10px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .adv-link { background: none; border: none; color: var(--accent); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); cursor: pointer; padding: 4px 6px; }

  /* ---------- Season Results card (Stats page) ---------- */
  .season-card {
    background: var(--panel); border: 1px solid var(--card-border); border-radius: var(--card-radius);
    padding: var(--card-pad); margin-bottom: 16px;
  }
  .season-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
  .season-card-head h3 { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); }
  .season-card-head .sc-right { display: flex; align-items: center; gap: 10px; }
  .season-card-head .sc-gp { font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); color: var(--text-muted); }
  .season-card .seg-toggle { margin-bottom: 0; }
  .sc-week { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); margin: -6px 0 10px; }
  .season-card .lbl-short { display: none; }
  @media (max-width: 480px) {
    .season-card .lbl-full { display: none; }
    .season-card .lbl-short { display: inline; }
  }
  /* ---------- Stats pages (Overview, Splits, Edges): the card style ---------- */
  /* Overview / Splits / Edges: three tab cards under the heading */
  /* Stats · Day of Week (Chris, Dec 1): today's teams marked */
  .dw-tag { margin-left: 6px; font-size: var(--fs-label); font-weight: var(--fw-label); letter-spacing: 0.6px; text-transform: uppercase; color: var(--on-gold); background: var(--gold); border-radius: 4px; padding: 1px 5px; vertical-align: middle; }
  .dw-u { margin-left: 6px; }
  /* Day of Week cleanup (Chris, Dec 3): All Games table, team search */
  .dw-sample { margin: 4px 0 10px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text-muted); }
  .dw-sample b { color: var(--text); font-weight: var(--fw-team); }
  .dw-none .tll-name, .dw-none .tll-val { color: var(--text-muted); }
  .dw-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--card-border); border-radius: var(--card-radius); background: var(--panel); }
  .dw-table { width: 100%; min-width: 640px; border-collapse: collapse; }
  .dw-table th, .dw-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-soft);
    font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-body); color: var(--text); }
  .dw-table thead th { background: var(--panel-2); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .dw-table tbody th { position: sticky; left: 0; z-index: 1; background: var(--panel); white-space: nowrap; font-family: var(--ff-display); font-size: var(--fs-team); font-weight: var(--fw-section); }
  .dw-table tbody tr:last-child > * { border-bottom: 0; }
  .dw-side { white-space: nowrap; line-height: 1.7; }
  .dw-sl { display: inline-block; min-width: 46px; font-weight: var(--fw-team); }
  .dw-key { color: var(--text); font-weight: var(--fw-team); }
  .dw-dim { color: var(--text-muted); }
  .dw-pk, .dw-na { color: var(--text-muted); font-size: var(--fs-label); }
  .dw-lock > * { filter: blur(5px); user-select: none; pointer-events: none; }
  .dw-unlock { min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
  .dw-h3 { margin: 22px 0 8px; font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); color: var(--text); }
  /* Teams on desktop (Chris, Dec 3 pm, option A): every market as a column, the picked one ranks;
     phones keep the one-market list and its Market pills */
  .dw-desk { overflow: hidden; padding-bottom: 6px; }
  .dw-ttable { width: 100%; border-collapse: collapse; }
  .dw-ttable th { cursor: default; }
  .dw-ttable .dw-rk { width: 28px; color: var(--text-muted); }
  .dw-ttable td { white-space: normal; }
  .dw-ttable td.team-cell { font-weight: var(--fw-team); }
  .dw-tn { color: var(--text); text-decoration: none; flex-wrap: nowrap; }
  .dw-tn:hover span { color: var(--accent); }
  .dw-sort { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; min-height: 32px; }
  .dw-sort.dw-on, .dw-sort:hover { color: var(--accent-purple-text); }
  .dw-ttable td.dw-on { background: var(--cell); }
  .st-card.dw-mob { display: none; }
  @media (max-width: 640px) {
    .st-card.dw-desk { display: none; }
    .st-card.dw-mob { display: flex; }
  }
  @media (min-width: 641px) {
    #dwMkt { display: none; }
  }
  .dw-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
  .dw-search .dw-conf { min-height: 44px; flex: 0 1 260px; }
  .dw-empty { padding: 12px 0; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); list-style: none; }
  .dw-search input { flex: 1 1 220px; width: 100%; max-width: 320px; min-height: 44px; margin: 0; padding: 0 12px; border: 1px solid var(--card-border); border-radius: 10px;
    background: var(--cell); color: var(--text); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  /* phones (Chris, Dec 3: no side scrolling): each segment its own card, the markets stacked
     under it with their names; team abbreviations instead of cut-off names */
  @media (max-width: 640px) {
    .dw-scroll { overflow: visible; border: 0; background: none; }
    .dw-table, .dw-table tbody, .dw-table tr, .dw-table th, .dw-table td { display: block; width: auto; min-width: 0; }
    .dw-table thead { display: none; }
    .dw-table tbody tr { margin: 0 0 12px; border: 1px solid var(--card-border); border-radius: var(--card-radius); background: var(--panel); overflow: hidden; }
    .dw-table tbody th { position: static; padding: 10px 12px; background: var(--panel-2); border-bottom: 1px solid var(--border-soft); }
    .dw-table td { padding: 8px 12px; }
    .dw-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
    .dw-table td.dw-td-na { display: none; }
    .dw-table tbody tr:last-child > * { border-bottom: 1px solid var(--border-soft); }
    .dw-table tbody tr > *:last-child { border-bottom: 0; }
    .dw-card .tn-full { display: none; }
    .dw-card .tn-short { display: inline; }
  }
  @media (max-width: 640px) { .dw-tag { width: 8px; height: 8px; padding: 0; border-radius: 50%; display: inline-block; } .dw-tag .dw-w { display: none; } }   /* phones: a gold dot */
  .stats-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: -4px 0 18px; }
  .stc { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; background: var(--panel); border: 1px solid var(--card-border); border-radius: var(--card-radius); color: var(--text); text-decoration: none; }
  .stc:hover { border-color: var(--accent); }
  .stc[aria-current="page"] { background: var(--accent-dim); border-color: var(--accent); }
  .stc-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); text-transform: uppercase; letter-spacing: 0.04em; color: var(--text); }
  .stc-go { color: var(--text-muted); }
  .stc-sub { font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text-muted); }
  /* Trends · Streaks · Due Factor: compact tabs, the name only (Chris, Nov 28); phones three across */
  .stc-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
  .stc-tabs .stc { flex: 0 0 auto; min-width: 150px; padding: 7px 14px; }
  .stc-tabs .stc-name { font-size: var(--fs-row-label); }
  @media (max-width: 640px) {
    .stats-cards { grid-template-columns: minmax(0, 1fr); gap: 6px; margin-bottom: 14px; }
    .stc { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 12px; }
    .stc-sub { flex: 1; text-align: right; }
    .stc-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stc-tabs .stc { min-width: 0; padding: 8px 6px; justify-content: center; }
    .stc-tabs .stc-name { justify-content: center; white-space: nowrap; letter-spacing: 0.02em; }
    .stc-tabs .stc-go { display: none; }
    /* the sticky segment toggle sits in its own solid bar */
    .st-stick { margin: 0 -16px 12px; padding: 6px 16px 0; background: var(--bg); border-bottom: 1px solid var(--card-border); }
  }
  .st-count { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); text-transform: none; letter-spacing: 0; color: var(--text-muted); }
  .seg-toggle.seg-sm .seg-btn { padding: 2px 8px; min-height: 28px; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); }
  .st-sec { margin: 0 0 26px; }
  .st-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
  .st-sec-head h2 { font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); text-transform: uppercase; letter-spacing: 0.04em; display: flex; align-items: center; gap: 6px; }
  .st-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .st-ctl .seg-toggle { margin-bottom: 0; }
  /* a Stats section's pill rows under its heading (Chris, Nov 29): Segment, Range, % | Units, market */
  .st-rows { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0 0 12px; }
  .st-rows .seg-toggle { margin-bottom: 0; flex-wrap: wrap; }
  .st-row-range { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  /* % | Units: the cards show one */
  .st-v-pct .st-row:not(.st-stat) .st-u, .st-v-units .st-row:not(.st-stat) .st-pct { display: none; }
  .st-v-pct .st-row:not(.st-stat), .st-v-units .st-row:not(.st-stat) { grid-template-columns: 1.4fr 1.2fr 1fr; }
  @media (max-width: 480px) { .st-v-pct .st-row:not(.st-stat), .st-v-units .st-row:not(.st-stat) { grid-template-columns: minmax(0, 1fr) 70px 62px; } }
  /* Splits: segments on one row, the ranges under them */
  .sit-bar { flex-direction: column; align-items: flex-start; }
  .st-sec-sub { margin: -4px 0 10px; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .st-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
  .st-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  @media (max-width: 1000px) { .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 640px) { .st-grid, .st-grid-2 { grid-template-columns: minmax(0, 1fr); } }
  .st-card { background: var(--panel); border: 1px solid var(--card-border); border-radius: var(--card-radius); padding: var(--card-pad); min-width: 0; display: flex; flex-direction: column; }
  .st-card.st-wide { margin-bottom: 12px; }
  /* the card's title bar: a soft purple band across the top (--title-bg / --title-text) */
  .st-head { margin: calc(-1 * var(--card-pad-y)) calc(-1 * var(--card-pad-x)) 10px; padding: 9px var(--card-pad-x); background: var(--title-bg); border-radius: calc(var(--card-radius) - 1px) calc(var(--card-radius) - 1px) 0 0; }
  .st-head h4 { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--title-text); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  .st-sub { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); margin-top: 2px; }
  .st-chips { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
  /* label | record | % | units at 1.4 / 1.2 / 0.8 / 1, lined up across cards */
  .st-row { display: grid; grid-template-columns: 1.4fr 1.2fr 0.8fr 1fr; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--border-soft); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .st-colhead { border-top: 0; padding: 0 0 2px; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .st-rec, .st-pct, .st-u { text-align: center; white-space: nowrap; }
  .st-num { text-align: right; white-space: nowrap; }
  .st-colhead .st-rec, .st-colhead .st-pct, .st-colhead .st-u { font: inherit; color: inherit; }
  .st-lbl { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .st-row.st-stat { grid-template-columns: minmax(0, 1fr) auto; }
  .st-num small { color: var(--text-muted); font-weight: var(--fw-price); }
  .st-u { font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); }
  .st-u.pos { color: var(--good); }
  .st-u.neg { color: var(--bad); }
  .st-u.mid { color: var(--push); }
  .st-u.st-none { color: var(--text-muted); }
  .st-mark { color: var(--text-muted); margin-left: 1px; }
  .st-foot { margin-top: 8px; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .st-note { margin-top: auto; padding-top: 8px; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .st-line { margin-top: 8px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .st-team .gm-team { display: inline-flex; align-items: center; gap: 7px; color: var(--text); text-decoration: none; }
  .st-team .gm-team:hover { color: var(--accent); }
  .st-abbr { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); margin-left: 4px; }
  .st-sec .sc-week { margin: -4px 0 10px; }
  .ed-grid { margin-bottom: 12px; }
  /* Edges situations: Situation · Games · How often · Worth it at, room for the situation */
  .ed-card .st-row { grid-template-columns: 2.4fr 0.7fr 0.9fr 0.9fr; }
  .ed-card .st-lbl { white-space: normal; }
  .ed-now { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--accent); white-space: nowrap; }
  .st-card .hdist { flex: 1; }
  .st-card .fb-sorts { margin: -2px 0 8px; }
  .tm-edge-rank { margin-top: 4px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .tm-edge-rank a { color: var(--accent); text-decoration: none; }
  .hub-rank { margin-top: 6px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .hub-rank a { color: var(--accent); text-decoration: none; }
  @media (max-width: 480px) { .st-row { grid-template-columns: minmax(0, 1fr) 70px 40px 62px; gap: 6px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); } }
  .sc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  @media (max-width: 720px) { .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .sc-block { background: var(--panel-2); border: 1px solid var(--border-soft); border-radius: 9px; padding: 10px 11px; min-width: 0; }
  .sc-block h4 { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); margin-bottom: 6px; }
  .sc-line { display: flex; justify-content: space-between; gap: 6px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); padding: 2px 0; }
  .sc-line .sc-val { font-weight: var(--fw-num); white-space: nowrap; }
  .sc-line .sc-val small { color: var(--text-muted); font-weight: var(--fw-num); }
  .sc-units { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border-soft); font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); align-items: center; }
  .sc-units span.sc-u { display: inline-flex; align-items: center; gap: 4px; }
  .sc-flag { margin-top: 6px; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--warn); }
  .sc-sub { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); margin: -3px 0 6px; }
  .sc-note { margin-top: 6px; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .tc-count { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }

  /* ---------- Advanced Stats sections (Stats page, premium) ---------- */
  .adv-section { position: relative; }
  .adv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
  .adv-head-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .adv-head h3 { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); text-transform: uppercase; letter-spacing: 0.03em; }
  .premium-badge {
    font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); background: var(--text); color: var(--bg); padding: 2px 7px; border-radius: 4px;
  }
  .adv-sub { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .adv-pills { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
  .adv-pills .seg-btn { padding: 4px 10px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  @media (max-width: 480px) { .adv-grid { grid-template-columns: 1fr; } }
  .adv-card-sub { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); margin: -2px 0 8px; }
  .adv-bar { height: 4px; border-radius: 2px; background: var(--panel-3); margin: 1px 0 5px; overflow: hidden; }
  .adv-bar > span { display: block; height: 100%; background: var(--accent); border-radius: 2px; }
  .adv-note { margin-top: 6px; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .small-sample {
    display: inline-block; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label);
    color: var(--warn); background: var(--warn-dim); padding: 0 5px; border-radius: 3px; margin-left: 4px;
  }
  .mb-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 0; border-top: 1px solid var(--border-soft); }
  .mb-row:first-child { border-top: none; }
  .mb-label { font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .mb-rec { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .adv-teams-link { margin: 4px 0 20px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .adv-teams-link a { color: var(--accent); font-weight: var(--fw-team); text-decoration: none; }
  .adv-teams-link a:hover { text-decoration: underline; }

  /* Free view: titles stay readable; numbers, bars and chips blur under an unlock card. */
  .locked .adv-data, .locked .trend-blur { filter: blur(6px); user-select: none; pointer-events: none; }
  .locked .adv-pills { opacity: 0.4; pointer-events: none; }
  .adv-lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; pointer-events: none; }
  .trends-section .adv-lock { align-items: flex-end; padding-bottom: 20px; }

  /* ---------- League Trends ---------- */
  .trends-page-section { position: relative; margin-bottom: 30px; }
  .tp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
  .tp-head h2 { font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); }
  .tp-sub { color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); margin-top: 3px; }
  .lt-summary { margin-top: 12px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text-muted); }
  .lt-summary b { color: var(--text); font-weight: var(--fw-num); }
  .lt-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
  .lt-row { background: var(--panel); border: 1px solid var(--border-soft); border-radius: 10px; padding: 10px 13px; }
  .lt-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
  .lt-tag {
    flex-shrink: 0; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label);
    color: var(--accent); border: 1px solid var(--accent); padding: 1px 6px; border-radius: 4px; white-space: nowrap;
  }
  .lt-sentence { font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); min-width: 0; }
  @media (min-width: 900px) { .lt-sentence { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
  .lt-rec { font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); color: var(--text-muted); margin-top: 3px; }
  .lt-games { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); align-items: center; }
  .lt-when { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .lt-game { font-weight: var(--fw-num); white-space: nowrap; }
  .lt-chip { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); padding: 1px 5px; border-radius: 3px; margin-left: 2px; }
  .lt-pending { background: var(--neutral-chip); color: var(--text-muted); }
  .lt-w { background: var(--win-bg); box-shadow: inset 0 0 0 1px var(--win-line); color: var(--good); }
  .lt-l { background: var(--loss-bg); box-shadow: inset 0 0 0 1px var(--loss-line); color: var(--bad); }
  /* League trends for the other sports (assets/sport.js) */
  .lt-row.weak { opacity: 0.55; }
  .lt-str { flex-shrink: 0; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); margin-left: auto; }
  .lt-str.strong { color: var(--good); }
  .lt-str.moderate { color: var(--accent); }
  .lt-str.weak { color: var(--text-muted); }
  .lt-n { flex-shrink: 0; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .lt-pick { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); background: var(--good-dim); color: var(--good); border-radius: 5px; padding: 2px 7px; }
  .lt-pick.muted { background: var(--neutral-chip); color: var(--text-muted); }
  .lt-str[title] { cursor: help; }
  .lt-why { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .lt-all { margin-top: 6px; }
  .lt-all summary { cursor: pointer; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--accent); }

  /* ---------- Trends page (assets/sport.js renderTrends) ---------- */
  .tr-date { font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); margin: -6px 0 10px; }
  /* "NBA Trends for Friday, Nov 27": the slate in the header (no date bar) */
  .tr-head { margin: 4px 0 16px; font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); color: var(--text); }
  /* Matchup Trends' label chips: the count beside each; one with none is dimmed */
  .mt-lbls { display: flex; flex-wrap: wrap; gap: 6px; width: auto; max-width: 100%; margin: 8px 0 0; }
  .mt-lbls .seg-btn { flex: none; white-space: nowrap; }
  .mt-lbls .mt-n { margin-left: 4px; color: var(--text-muted); }
  .mt-lbls .seg-btn:disabled { opacity: 0.45; cursor: default; }
  .mt-def { margin: 8px 0 12px; }
  /* definition lines: the badge's name and the threshold in the text color, the rest muted (Chris, Dec 1) */
  .def-hi { color: var(--text); }
  .def-hi.def-name { font-weight: var(--fw-team); }
  /* each section's filters (segment, market, side) under its heading; phones: a row scrolls sideways, never wraps */
  .tr-filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin: 0 0 12px; }
  .tr-filters .tr-frow { display: flex; flex-wrap: wrap; gap: 6px; width: auto; max-width: 100%; margin: 0; }
  .tr-filters .tr-frow::-webkit-scrollbar { display: none; }
  .tr-frow .seg-btn { flex: none; white-space: nowrap; }
  .tr-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
  .tr-card { background: var(--panel); border: 1px solid var(--card-border); border-radius: var(--card-radius); padding: var(--card-pad); min-width: 0; }
  .tr-card[hidden] { display: none; }
  .tr-show-all.tr-ph-only { display: none; }
  @media (max-width: 640px) {
    #league-trends:not(.tr-open) .tr-ph-more { display: none; }
    .tr-show-all.tr-ph-only { display: inline-block; }
  }
  .no-games-card { margin-top: 12px; }
  .no-games-card p { margin: 0; font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); color: var(--text); }
  .ngc-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
  .tr-none p { margin: 0; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text); }
  .tr-link { margin-top: 8px; padding: 0; background: none; border: none; color: var(--accent); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); cursor: pointer; }
  .lt-season { margin-left: 6px; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .tr-top { display: flex; align-items: center; gap: 4px; }
  .tr-top .info-tip { margin-left: auto; }
  /* Team Trends (Chris, Nov 30): badge + team on the left, the split tag + i on the right */
  .tt-card .tr-top { flex-wrap: wrap; gap: 6px; }
  .tt-card .tr-top .gm-team { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
  .tt-card .tt-split { margin-left: auto; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); white-space: nowrap; }
  .tt-card .tt-split + .info-tip { margin-left: 4px; }
  .tt-card .tt-mkt { color: var(--text); }
  .tt-box [hidden] { display: none !important; }
  .tt-box .tt-segrows { display: flex; flex-direction: column; gap: 8px; }
  .tt-box .tr-filters { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
  /* matchup and team pages: the cards stack in their column */
  /* every Team Trends card the same width: 3 across on desktop, 1 on phones (Chris, Nov 30) */
  .tt-box .tt-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .tp2-tt .tt-cards { grid-template-columns: 1fr; }
  @media (max-width: 900px) { .tt-box .tt-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 640px) { .tt-box .tt-cards { grid-template-columns: 1fr; } }
  /* Team Trends badges: one row on wide screens; when they wrap, even columns
     that line up (4 on tablets and small laptops, 2 on phones; Chris, Dec 1) */
  @media (max-width: 1180px) {
    .tt-box .tr-filters [data-ttf="b"] { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; width: 100%; }
    .tt-box .tr-filters [data-ttf="b"] .seg-btn { justify-content: center; text-align: center; min-width: 0; }
  }
  @media (max-width: 640px) { .tt-box .tr-filters [data-ttf="b"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .tt-def { margin: 0 0 10px; }
  /* Hottest Trends' Matchup and Team cards (Chris, Nov 30) */
  .ht3 .ht-line { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-family: var(--ff-body); font-size: var(--fs-body); color: var(--text); }
  .ht3 .ht-line .gm-team { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
  .ht3 .ht-lw { color: var(--text-muted); }
  .ht3 .ht-lp { margin-left: auto; }
  .ht3 .ht-split { margin-left: auto; }   /* Team card: Last 10 / Home / Road / Tue on the right (Chris, Dec 1) */
  /* the head bar: kind left, badge / market and its i right (Chris, Nov 30) */
  .ht-card .st-head .ht-right { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; text-align: right; }
  .ht-card .st-head .ht-right .info-tip { margin-left: 0; }
  /* cards top-aligned at their own height; the rows' divider with room above it */
  .ht-pane .ht-cards { align-items: start; }
  .ht3 .ht-body { display: flex; flex-direction: column; gap: 4px; }
  .ht-pane .ht-card .tr-rows { margin-top: 12px; padding-top: 4px; border-top: 1px solid var(--border-soft); }
  .ht-pane .ht-card .tr-rows .tr-row:first-child { border-top: 0; }
  /* sorted by %: the % and record take the color, units go plain; by Units: units colored (Chris, Nov 30) */
  #league-trends[data-sort="pct"] .tr-pr, .tt-box[data-tt-sort="pct"] .tr-pr, .mx-ltbox[data-lt-sort="pct"] .tr-pr { color: var(--good); }
  #league-trends[data-sort="pct"] .tr-pr .mx-rec, .mx-ltbox[data-lt-sort="pct"] .tr-pr .mx-rec { color: inherit; }
  .tt-box[data-tt-sort="pct"] .tr-pr-bad { color: var(--bad); }
  #league-trends[data-sort="pct"] .tr-rec .pos, #league-trends[data-sort="pct"] .tr-rec .neg, #league-trends[data-sort="pct"] .tr-rec .mid,
  .tt-box[data-tt-sort="pct"] .tr-rec .pos, .tt-box[data-tt-sort="pct"] .tr-rec .neg, .tt-box[data-tt-sort="pct"] .tr-rec .mid,
  .mx-ltbox[data-lt-sort="pct"] .tm-u { color: var(--text); }
  .tr-num { color: var(--text); }
  .tr-frow2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .tr-frow2 .tr-sortl { margin-left: 8px; }
  /* Season's Longest: a run still going (Chris, Nov 30) */
  .sk-alive { margin-left: 6px; padding: 1px 6px; border: 1px solid var(--win-line); border-radius: 5px; background: var(--win-bg); color: var(--text); font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); }
  .tr-title { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); margin: 6px 0 2px; text-transform: none; letter-spacing: 0; }
  .tr-rec { font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); color: var(--text-muted); cursor: help; }
  .tr-rec b { color: var(--text); }
  .tr-rec .pos { color: var(--good); font-weight: var(--fw-num); }
  .tr-rec .neg { color: var(--bad); font-weight: var(--fw-num); }
  .tr-rec .mid { color: var(--push); font-weight: var(--fw-num); }
  .tr-rows { display: flex; flex-direction: column; }
  .tr-row {
    display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; gap: 6px; align-items: center;
    border-top: 1px solid var(--border-soft); padding: 6px 0; color: var(--text); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body);
  }
  .tr-row[hidden] { display: none; }
  .tr-row a.gm-team, .mt-game a.gm-team, .sk-row a.gm-team { color: inherit; text-decoration: none; }
  .tr-row a.gm-team:hover, .mt-game a.gm-team:hover, .sk-row a.gm-team:hover { color: var(--accent); }
  .tr-time { color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); white-space: nowrap; }
  .tr-match { font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tr-bet { display: inline-flex; align-items: center; gap: 4px; font-weight: var(--fw-body); white-space: nowrap; }
  .tr-more { margin-top: 10px; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 7px 14px; color: var(--accent); font-weight: var(--fw-body); cursor: pointer; }
  /* Matchup Trends (option A): one card per game, two across on desktop */
  .mt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 10px; align-items: start; }
  /* Matchup Trends grouped by label: the chip, its "i", the count */
  .mt-grp + .mt-grp { margin-top: 22px; }
  .mt-ghd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .mt-gcount { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .mt-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); margin-bottom: 6px; }
  .mt-head .gm-team { display: inline-flex; align-items: center; gap: 6px; }
  .mt-head .tr-time { margin-right: 6px; }
  .mt-at { color: var(--text-muted); }
  .nm-abbr { display: none; }
  .mt-group { margin-top: 10px; }
  .mt-ghead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; }
  .mt-label {
    display: inline-block; border: 1px solid var(--accent); border-radius: 5px; padding: 2px 7px; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--accent);
  }
  .mt-line { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto 78px; gap: 8px; align-items: center; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); padding: 5px 0; border-top: 1px solid var(--border-soft); }
  .mt-line .gm-team { display: inline-flex; align-items: center; gap: 6px; }
  .mt-line b { font-weight: var(--fw-num); }
  .mt-pct, .mt-rec { font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); text-align: right; white-space: nowrap; }
  .mt-side { display: inline-flex; align-items: center; min-width: 0; }
  /* a past date's result: green Hit, red Miss, gold Push */
  .mt-res { display: inline-block; min-width: 44px; text-align: center; border-radius: 999px; padding: 2px 8px; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); }
  .mt-r-hit { background: var(--good-dim); color: var(--good); }
  .mt-r-miss { background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); }
  .mt-r-push { background: var(--gold); color: var(--on-gold); }
  /* Streak Trends: one card per market, a line per team */
  /* desktop three cards in a row (a fourth wraps); phones stacked */
  .stk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; align-items: start; }
  .stk-grid.stk-one { grid-template-columns: minmax(0, 1fr); }
  .stk-group .st-head { margin-bottom: 4px; }
  /* chip (fixed width) · logo + code + streak, then opponent + time under the code */
  .stk-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 10px; row-gap: 2px; align-items: center; padding: 7px 0; border-top: 1px solid var(--border-soft); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .stk-row .sk-len { grid-row: span 2; width: 34px; min-width: 0; padding: 3px 0; }
  .stk-l1 { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .stk-row .gm-team { display: inline-flex; align-items: center; gap: 6px; flex: none; color: inherit; text-decoration: none; white-space: nowrap; }
  .stk-row .gm-team:hover { color: var(--accent); }
  .stk-run { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .stk-l2 { padding-left: 26px; color: var(--text-muted); font-size: var(--fs-price); font-weight: var(--fw-price); white-space: nowrap; }
  .stk-day { margin: 10px 0 2px; color: var(--text-muted); }
  .stk-none { margin: 8px 0 2px; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .stk-group .stk-more { display: block; margin-top: 8px; }
  @media (max-width: 899px) {
    .stk-grid { grid-template-columns: minmax(0, 1fr); }
    .stk-row .nm-full { display: none; }
    .stk-row .nm-abbr { display: inline; }
  }
  .mt-rec { color: var(--text-muted); }
  .mt-st { text-align: right; }
  .mt-streak { display: inline-block; border-radius: 6px; padding: 2px 6px; white-space: nowrap; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); }
  .mt-none { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); margin-top: 10px; }
  .tr-dots { display: inline-flex; gap: 3px; flex-shrink: 0; }
  .tr-dots i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--text-faint); }
  .tr-dots i.on { background: var(--accent); border-color: var(--accent); }
  .tr-dots i.mid { background: var(--push); border-color: var(--push); }
  .sk-len { flex-shrink: 0; min-width: 30px; text-align: center; border-radius: 6px; padding: 3px 6px; font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); }
  /* streak heat chips (Streak Trends, Streaks to Watch, team pages) */
  /* Due Factor (/{sport}/due-factor/, assets/sport.js renderDue): the
     off-season note, the segmented bars (View + Season, segment, market:
     every option in a bar the same width), the summary line, the day /
     week tables (side A's % 10+ pts off its season rate tinted: win fill,
     dimmed, Over warm, Under cool) and the month's calendar (each day
     tinted by the side that won it); the Full Run's card keeps the gold
     left bar; and the home / hub strip (sports.DUE_STRIP). */
  .df2-off { margin: 0 0 16px; padding: 10px 14px; border: 1px solid var(--card-border); border-left: 3px solid var(--accent-purple-text); border-radius: var(--cell-radius); background: var(--panel);
    font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text); }
  .df2-ctrl { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; }
  .df2-row1 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .df2-bar { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 8px; background: var(--panel-2); overflow: hidden; }
  .df2-opt { min-width: 0; min-height: 38px; padding: 6px 8px; border: 0; border-left: 1px solid var(--border); background: transparent; color: var(--text-muted); cursor: pointer;
    font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); line-height: 1.2; }
  .df2-opt:first-child { border-left: 0; }
  .df2-opt[aria-pressed="true"] { background: var(--accent-dim); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
  :root:not([data-theme="light"]) .df2-opt[aria-pressed="true"] { color: var(--accent); }
  .df2-sum { margin: 4px 0 4px; text-align: center; font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); color: var(--text); }
  .df2-ro { margin: 0 0 4px; text-align: center; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .df2-card { margin-top: 12px; }
  .df2-card .st-head .fr-tag { display: inline-block; margin-top: 0; }
  .df2-table { table-layout: fixed; min-width: 0; }
  .df2-table td, .df2-table th { padding: 0; border: 0; }
  .df2-table th:first-child { width: 34%; }
  .df2-table td.df2-n { text-align: center; white-space: nowrap; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text); }
  .df-table { width: 100%; border-collapse: separate; border-spacing: var(--cell-gap); }
  .df-table th { padding: 0; text-align: left; white-space: nowrap; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .df-table thead th:not(:first-child) { text-align: center; padding: 0 4px; }
  .df-table tbody th { font-size: var(--fs-body); font-weight: var(--fw-body); text-transform: none; letter-spacing: 0; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
  .df-c { display: block; padding: 6px 8px; text-align: center; white-space: nowrap; border-radius: var(--cell-radius); background: var(--cell); font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); color: var(--text); }
  .df-win { background: var(--win-bg); box-shadow: inset 0 0 0 1px var(--win-line); }
  .df-dim { opacity: 0.5; }
  .df-warm { background: var(--warm-bg); box-shadow: inset 0 0 0 1px var(--warm-line); }
  .df-cool { background: var(--cool-bg); box-shadow: inset 0 0 0 1px var(--cool-line); }
  .df-total th[scope="row"] { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--title-text); }
  .df-total .df-c { box-shadow: inset 0 0 0 1px var(--card-border); }
  .df-total .df-c.df-warm { box-shadow: inset 0 0 0 1px var(--warm-line); }
  .df-total .df-c.df-cool { box-shadow: inset 0 0 0 1px var(--cool-line); }
  .df2-cal-head { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 0 0 10px; }
  .df2-month { min-width: 150px; text-align: center; font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); color: var(--text); }
  .df2-nav { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-2); color: var(--text); cursor: pointer; font-family: var(--ff-body); font-size: var(--fs-section); font-weight: var(--fw-body); line-height: 1; }
  .df2-nav:disabled { opacity: 0.35; cursor: default; }
  .df2-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
  .df2-dow { text-align: center; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .df2-day { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; min-height: 76px; padding: 18px 4px 6px; box-sizing: border-box; border-radius: var(--cell-radius); background: var(--cell); color: var(--text); text-decoration: none; }
  .df2-pad, .df2-future { background: transparent; }
  .df2-none { background: transparent; border: 1px dashed var(--card-border); }
  .df2-day.df-win, .df2-sw.df-win { background: var(--win-bg); box-shadow: inset 0 0 0 1px var(--win-line); }
  .df2-day.df-warm, .df2-sw.df-warm { background: var(--warm-bg); }
  .df2-day.df-cool, .df2-sw.df-cool { background: var(--cool-bg); }
  .df2-dn { position: absolute; top: 5px; left: 7px; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .df2-rec { font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); color: var(--text); white-space: nowrap; }
  .df2-pct, .df2-tl, .df2-go { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); white-space: nowrap; }
  .df2-go { display: none; color: var(--accent-purple-text); }
  .df2-tl { color: var(--accent-purple-text); }
  .df2-narrow { display: none; }
  a.df2-day:hover { box-shadow: inset 0 0 0 2px var(--accent-purple-text); opacity: 1; }
  a.df2-day:hover .df2-go { display: block; }
  a.df2-day:hover .df2-pct { display: none; }
  .df2-today { box-shadow: inset 0 0 0 2px var(--accent-purple-text); }
  .df2-post { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-purple-text); }
  .df2-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 12px 0 0; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .df2-legend span { display: inline-flex; align-items: center; gap: 6px; }
  .df2-legend .df2-post { position: static; }
  .df2-sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; background: var(--cell); }
  .df2-hint { margin-left: auto; }
  @media (max-width: 640px) {
    .df2-row1 { grid-template-columns: 1fr; }
    .df2-markets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .df2-markets .df2-opt { border-left: 0; border-top: 1px solid var(--border); }
    .df2-markets .df2-opt:nth-child(3n+2), .df2-markets .df2-opt:nth-child(3n) { border-left: 1px solid var(--border); }
    .df2-markets .df2-opt:nth-child(-n+3) { border-top: 0; }
    .df2-markets .df2-opt:only-child { grid-column: 1 / -1; }
    .df2-opt { min-height: 44px; padding: 4px 4px; }
    .df2-sum { text-align: left; }
    .df2-ro { text-align: left; }
    .df-table { border-spacing: 4px; }
    .df-c { padding: 6px 2px; }
    .df2-table th:first-child { width: 30%; }
    .df2-grid { gap: 3px; }
    .df2-day { min-height: 52px; padding: 16px 1px 4px; }
    .df2-dn { top: 3px; left: 4px; }
    .df2-pct, .df2-wide, a.df2-day:hover .df2-go { display: none; }
    .df2-narrow { display: inline; }
    .df2-rec { font-size: var(--fs-price); }
    .df2-hint { margin-left: 0; }
  }
  /* Streaks (/{sport}/streaks/, assets/sport.js renderStreaks; /streaks/, scripts/streaks.py) */
  .sk-over { background: var(--cell); color: var(--text-muted); text-decoration: line-through; }
  /* Streaks: Top Streak card, Streaks to Watch in two columns (phones one), Still Running sorts */
  /* Top Streak of the Day: the big chip, then the team, the run, both teams' season records and the game with its price */
  .sk-top { margin-top: 0; }
  .sk-topc { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: start; }
  .sk-len.sk-topn { width: 64px; min-width: 0; padding: 14px 0; border-radius: 12px; font-family: var(--ff-display); font-size: var(--fs-title); font-weight: var(--fw-title); line-height: 1; }
  .sk-topb { min-width: 0; display: grid; gap: 8px; }
  .sk-topt a { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); }
  .sk-topw { margin: 0; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-num); color: var(--text); }
  .sk-topr { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; margin: 0; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .sk-topr dt { color: var(--text-muted); }
  .sk-topr dd { margin: 0; color: var(--text); font-weight: var(--fw-num); }
  .sk-topg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding-top: 8px; border-top: 1px solid var(--border-soft); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text); }
  .sk-topp { color: var(--text); font-weight: var(--fw-num); }
  .sk-topl { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .sk-topg .sk-mu { margin-left: 0; }
  .sk-topbo { display: inline-flex; align-items: center; gap: 10px; }
  .sk-plain { margin-top: 0; }
  .sk-h .sk-sorts { margin: 0; }   /* next to the heading, not pushed right (Chris, Nov 30) */
  @media (max-width: 640px) {
    .sk-topc { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
    .sk-len.sk-topn { width: 48px; padding: 10px 0; }
    .sk-topr { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .sk-topr dd { margin-bottom: 4px; }
    .sk-topg .sk-mu { margin-left: 0; }
  }
  .sk-wgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .sk-wgrid .stk-row:nth-child(-n+2), .sk-list > .stk-row:first-child { border-top: 0; }
  .sk-sorts { margin: 0 0 6px; }
  .sk-line .stk-run { flex: 0 1 auto; }
  /* In Play and Still Running: the name never cut off (wraps if it must), the chip at the top */
  .sk-line { align-items: start; }
  .sk-line .sk-len { align-self: start; }
  .sk-line .stk-l1 { flex-wrap: wrap; row-gap: 2px; column-gap: 8px; }
  .sk-line .gm-team { white-space: normal; flex: 0 1 auto; }
  .sk-line .stk-run { white-space: normal; overflow: visible; }
  .sk-nm { font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-team); color: var(--text); }
  /* Records: stacked, the whole name on top, then the run and its dates */
  .sk-list .sk-rrow { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .sk-rbody { display: grid; gap: 2px; min-width: 0; }
  .sk-rrow .sk-who, .sk-rrow .gm-team { overflow: visible; white-space: normal; }
  .sk-rwhat { font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text); }
  .sk-rwhat .sk-dates { margin-left: 6px; }
  .sk-ctrl { margin-top: 0; }
  .sk-h { margin-top: 22px; }
  .mt-head { margin: 14px 0 4px; font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); color: var(--text); }
  .sk-conf { display: flex; margin-top: 2px; }
  .sk-conf .conf-select { max-width: 100%; }
  .sk-card { margin-top: 14px; }
  .sk-card .st-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .sk-right { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--title-text); }
  .sk-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .sk-games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .sk-game { min-width: 0; padding: 12px 0; border-top: 1px solid var(--border-soft); }
  .sk-game:nth-child(-n+2) { border-top: 0; padding-top: 2px; }
  .sk-ghead { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 8px; }
  .sk-gt { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); color: var(--text); }
  .sk-collide { padding: 1px 6px; border-radius: 4px; background: var(--gold); color: var(--on-gold); font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); }
  .sk-mu, .sk-opp, .sk-more, .sk2-more a { color: var(--accent-purple-text); font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); text-decoration: none; }
  .sk-mu { margin-left: 0; }
  .sk-tlist, .sk-list, .sk2-list { list-style: none; margin: 0; padding: 0; }
  .sk-trow { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; padding: 6px 0; }
  .sk-l1 { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
  .sk-l1 .gm-team { display: inline-flex; align-items: center; gap: 6px; }
  .sk-code { font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-num); color: var(--text); }
  .sk-what { font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text); min-width: 0; }
  .sk-vt, .sk2-vt { display: inline-block; margin-left: 6px; padding: 0 5px; border: 1px solid var(--card-border); border-radius: 4px; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); white-space: nowrap; }
  .sk-what .fr-tag, .sk2-what .fr-tag, .sk-l1 .fr-tag { display: inline-block; margin: 0 0 0 6px; vertical-align: middle; }
  .sk-btns { display: flex; gap: 6px; flex-wrap: wrap; }
  .sk-btn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border: 1px solid var(--card-border); border-radius: var(--cell-radius); background: var(--cell); color: var(--text); text-decoration: none; white-space: nowrap; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-num); }
  .sk-btn:hover { border-color: var(--accent); }
  .sk-ride { border-color: var(--accent); }
  .sk-bw { font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .sk-note { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .sk-row, .sk-rrow, .sk2-row { display: grid; grid-template-columns: auto minmax(0, 0.9fr) minmax(0, 1.4fr); align-items: center; gap: 4px 10px; padding: 7px 0; border-top: 1px solid var(--border-soft); }
  .sk-list > li:first-child, .sk2-list > li:first-child { border-top: 0; }
  .sk-who, .sk2-who { display: flex; align-items: center; gap: 6px; min-width: 0; }
  .sk-who .gm-team, .sk2-team { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--text); text-decoration: none; font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); }
  .sk-dates { margin-left: 8px; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .sk-alive { margin-left: 8px; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-label); color: var(--accent-purple-text); }
  .sk-best { display: inline-block; margin-left: 8px; padding: 0 6px; border-radius: 4px; background: var(--gold); color: var(--on-gold); font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); white-space: nowrap; }
  .sk-more { display: block; margin: 8px auto 0; padding: 6px 12px; border: 1px solid var(--card-border); border-radius: var(--cell-radius); background: transparent; cursor: pointer; }
  .sk-rrow { grid-template-columns: auto minmax(0, 1fr) minmax(0, 10.5em); }
  .sk-rrow .sk-what { justify-self: start; text-align: left; }
  .sk-rrow .sk-who, .sk-rrow .gm-team { overflow: hidden; }
  .sk-rrow .gm-team { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sk-rmeta { display: block; }
  .sk-rmeta .sk-best { margin: 2px 0 0; }
  .sk-rmeta .sk-dates { margin-left: 0; }
  .sk-rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
  .sk-rgrid .sk-card { margin-top: 0; }
  #skRecords { margin-top: 24px; }
  .sk2-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
  .sk2-pill .sport-icon { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }
  .sk2-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; margin-bottom: 16px; }
  .sk2-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 16px; }
  .sk2-what { font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text); min-width: 0; }
  .sk2-lab { margin: 0 0 4px; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .sk2-more { margin: 8px 0 0; }
  .sk2-h { margin: 24px 0 10px; font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); text-transform: uppercase; color: var(--text); }
  .sk2-sport .sk2-row { grid-template-columns: auto minmax(0, 1fr); }
  .sk2-sport .sk2-what { grid-column: 2; }
  .sk2-who .icon, .sk2-who svg { flex-shrink: 0; }
  @media (max-width: 640px) {
    .sk-two, .sk2-two, .sk-games { grid-template-columns: minmax(0, 1fr); }
    .sk-wgrid { grid-template-columns: minmax(0, 1fr); }
    .sk-wgrid .stk-row:nth-child(2) { border-top: 1px solid var(--border-soft); }
    .sk-game:nth-child(2) { border-top: 1px solid var(--border-soft); padding-top: 12px; }
    .sk-trow { flex-direction: column; align-items: flex-start; }
    .sk-row, .sk-rrow, .sk2-row { grid-template-columns: auto minmax(0, 1fr); }
    .sk-row > .sk-len, .sk-rrow > .sk-len, .sk2-row > .sk-len { grid-row: span 2; }
    .sk-what, .sk2-what { grid-column: 2; }
    .sk-what .fr-tag, .sk2-what .fr-tag, .sk-l1 .fr-tag { display: none; }
    .sk-ctrl .df2-bar:not(.df2-markets) .df2-opt { padding: 4px 2px; }
  }
  .df-pills { margin: 0 0 16px; }
  .df-pill { padding: 6px 16px; }
  .df-strip-row { display: flex; flex-wrap: wrap; gap: 8px; }
  .df-strip-item { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px 6px 12px; border: 1px solid var(--card-border); border-radius: 999px; background: var(--panel); color: var(--text); text-decoration: none; box-sizing: border-box;
    font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); }
  .df-strip-item:hover { border-color: var(--accent); }
  .df-strip-item .sport-icon { width: 16px; height: 16px; }
  .heat-1 { background: var(--heat-1); color: var(--on-gold); }
  .heat-2 { background: var(--heat-2); color: var(--on-gold); }
  .heat-3 { background: var(--heat-3); color: var(--on-gold); }
  .heat-4 { background: var(--heat-4); color: var(--on-heat-4); }
  @media (max-width: 640px) {
    .tr-cards { grid-template-columns: 1fr; }
    .tr-row { grid-template-columns: 78px minmax(0, 1fr) auto; gap: 4px; }
    .nm-full { display: none; }
    .nm-abbr { display: inline; }
    .mt-grid { grid-template-columns: 1fr; }
    .mt-line { grid-template-columns: 52px minmax(0, 1fr) auto 70px; gap: 6px; }
    .mt-side { white-space: nowrap; overflow: hidden; }
    .mt-streak { padding: 2px 5px; }
    .tr-dots i { width: 6px; height: 6px; }
  }
  .adv-lock-card {
    pointer-events: auto; max-width: 340px; text-align: center; background: var(--panel); border: 1px solid var(--border);
    border-radius: 12px; padding: 16px 18px; box-shadow: 0 10px 30px var(--shadow); color: var(--text);
  }
  .adv-lock-card svg { color: var(--accent); }
  .adv-lock-title { font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); text-transform: uppercase; margin-top: 4px; }
  .adv-lock-desc { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); margin: 4px 0 10px; }
  .adv-lock-btn {
    display: inline-block; background: var(--accent); color: var(--on-accent); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body);
    padding: 7px 14px; border-radius: 7px; text-decoration: none;
  }

  /* ---------- Team page: Season Markets cards tinted by units ---------- */
  .stat-tile .val .u-inline { font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); margin-left: 8px; }
  .stat-tile .tile-tie { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); margin-top: 2px; }
  .stat-tile.t-good { background: color-mix(in srgb, var(--good) 16%, transparent); border-color: var(--good); }
  .stat-tile.t-warn { background: color-mix(in srgb, var(--warn) 16%, transparent); border-color: var(--warn); }
  .stat-tile.t-bad  { background: color-mix(in srgb, var(--bad) 16%, transparent);  border-color: var(--bad); }
  .stat-tile.t-good .val { color: var(--good); }
  .stat-tile.t-warn .val { color: var(--warn); }
  .stat-tile.t-bad .val  { color: var(--bad); }
  .stat-tile.t-none .val { color: var(--text-muted); }

  /* ---------- Team page: Last 10 games ---------- */
  .l10-summary { font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text-muted); margin: 2px 0 8px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
  .l10-summary b { color: var(--text); font-weight: var(--fw-num); }
  .gamelog.l10 { min-width: 0; table-layout: fixed; }
  .gamelog.l10 th, .gamelog.l10 td { padding: 7px 3px; text-align: center; }
  .gamelog.l10 th:nth-child(2), .gamelog.l10 td:nth-child(2) { text-align: left; }
  .gamelog.l10 .opp-cell { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
  .gamelog.l10 .opp-link { display: inline-flex; align-items: center; gap: 3px; color: inherit; text-decoration: none; }
  .gamelog.l10 .opp-link:hover { color: var(--accent); text-decoration: underline; }
  .gamelog.l10 td { white-space: nowrap; }
  .gamelog.l10 td:nth-child(2) { padding-left: 6px; }
  @media (max-width: 420px) { .gamelog.l10 { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); } }

  /* Phones: Stats table and splits fit the screen (Units column visible). */
  @media (max-width: 600px) {
    #leagueTable { min-width: 0; }
    #leagueTable th, #leagueTable td { padding: 9px 6px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
    #leagueTable th { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); letter-spacing: 0.04em; }
    #leagueTable td.team-cell { white-space: normal; gap: 6px; }
    #leagueTable .pct-bar { display: none; }
    #leagueTable .pct-num { width: auto; }
    #leagueTable .u-pill { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); padding: 2px 5px; }
    .split-table { min-width: 0; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
    .split-table th, .split-table td { padding: 6px 4px; }
    .split-table .u-pill { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); padding: 2px 4px; }
    .stat-tile .val .u-inline { display: block; margin: 2px 0 0; }
  }

  /* ---------- Trends page ---------- */
  .trend-row .team-name a { color: inherit; text-decoration: none; }
  .trend-row .team-name a:hover { color: var(--accent); }
  .trend-matchup { font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); color: var(--text-muted); margin-top: 2px; }
  .trend-row.matchup-card { border-color: var(--accent-dim); }
  .trend-row.matchup-card .trend-copy .team-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  .trend-matchup-badge {
    font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label);
    background: var(--accent-dim); color: var(--accent); padding: 2px 7px; border-radius: 5px;
  }
  :root:not([data-theme="light"]) .trend-matchup-badge { color: var(--accent); }

  /* ---------- Teams index page ---------- */
  .division-group { margin-bottom: 26px; }
  .division-title { font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); color: var(--text-muted); margin-bottom: 10px; }
  .team-tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
  .team-tile {
    display: flex; flex-direction: column; gap: 4px;
    background: var(--panel); border: 1px solid var(--card-border); border-radius: var(--card-radius);
    padding: var(--card-pad); text-decoration: none; color: var(--text);
  }
  .team-tile:hover { border-color: var(--accent); }
  .team-tile-name { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); }
  .team-tile-stats { font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); color: var(--text-muted); }

  /* ---------- Teams pages for the other sports (built from the registry) ---------- */
  .team-badge {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    border-radius: 50%; font-family: var(--ff-body); font-weight: var(--fw-team); letter-spacing: 0.02em;
  }
  .team-tile-row { display: flex; align-items: center; gap: 10px; }
  .team-tile-meta { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .teams-count { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .conf-select {
    background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px; color: var(--text);
    padding: 6px 10px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); max-width: 100%;
  }
  .letter-group { margin-bottom: 18px; }
  .letter-title { font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); color: var(--accent); border-bottom: 1px solid var(--border-soft); padding-bottom: 4px; margin-bottom: 8px; }
  .team-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 6px; }
  .team-row {
    display: flex; align-items: center; gap: 10px; min-width: 0;
    background: var(--panel); border: 1px solid var(--border-soft); border-radius: 8px;
    padding: 8px 10px; text-decoration: none; color: var(--text);
  }
  .team-row:hover { border-color: var(--accent); }
  .team-row-text { display: flex; flex-direction: column; min-width: 0; }
  .team-row-name { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); }
  .team-row-conf { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* filters toggle [hidden]; the display rules above would otherwise win */
  [data-team-item][hidden], [data-team-group][hidden], .teams-empty[hidden] { display: none; }
  .teams-empty { padding: 30px 10px; text-align: center; color: var(--text-muted); }
  .sport-team-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
  .sport-team-head h1 { font-family: var(--ff-display); font-size: var(--fs-title); font-weight: var(--fw-title); }
  .sport-team-meta { color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .sport-team-back { display: inline-block; margin: 6px 0 4px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--accent); text-decoration: none; }
  .sport-team-back:hover { text-decoration: underline; }
  /* team pages: the team dropdown under the H1 (build_site.team_picker) */
  .tp-pick { position: relative; display: inline-block; margin: 6px 0 4px; }
  .tp-pick > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px; border: 1px solid var(--card-border); border-radius: 10px; background: var(--panel);
    color: var(--text); cursor: pointer; list-style: none; font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); }
  .tp-pick > summary::-webkit-details-marker { display: none; }
  .tp-pick-caret { color: var(--text-muted); }
  .tp-pick-menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: 280px; max-width: calc(100vw - 32px); max-height: 60vh; overflow-y: auto; padding: 6px;
    background: var(--panel); border: 1px solid var(--card-border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); }
  .tp-pick-all, .tp-pick-item { display: block; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .tp-pick-all { color: var(--accent); }
  .tp-pick-all:hover, .tp-pick-item:hover { background: var(--cell); }
  .tp-pick-item[aria-current="page"] { background: var(--title-bg); color: var(--title-text); }
  .tp-pick-h { margin: 8px 10px 4px; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .section-empty { color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); background: var(--panel); border: 1px dashed var(--border); border-radius: 10px; padding: 14px 16px; }
  .section-empty .empty-tags { display: inline-flex; gap: 6px; margin-left: 6px; vertical-align: middle; }
  .section-empty .empty-tags span { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--accent); border: 1px solid var(--accent); padding: 0 6px; border-radius: 4px; }

  /* ---------- Other sports: Matchups / Stats / Trends (assets/sport.js) ---------- */
  .sport-seg-row { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
  .sport-seg-row .seg-toggle { margin-bottom: 0; }
  .gm-trends-line { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 7px 10px; border-radius: 8px; background: var(--trend-dim); color: var(--text); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); text-decoration: none; }
  .gm-trends-line:hover { text-decoration: none; filter: brightness(1.05); }
  .gm-trends-line .gm-why { color: var(--trend); white-space: nowrap; font-weight: var(--fw-team); }
  /* ---------- Odds page (assets/sport.js renderOdds) ---------- */
  .odds-controls { flex-wrap: wrap; gap: 8px 12px; }
  .odds-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
  .odds-teams { display: inline-flex; align-items: center; gap: 6px; font-weight: var(--fw-team); flex-wrap: wrap; }
  .odds-at { color: var(--text-muted); font-weight: var(--fw-body); }
  .odds-when { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .odds-card { min-width: 0; }
  .odds-table { width: 100%; min-width: 0; border-collapse: collapse; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); table-layout: fixed; }
  .odds-table th:first-child, .odds-table td:first-child { width: 40%; }
  .odds-book { overflow: hidden; text-overflow: ellipsis; }
  .odds-table th { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border-soft); }
  .odds-table td { padding: 6px 8px; border-bottom: 1px solid var(--border-soft); }
  .odds-table tr:last-child td { border-bottom: 0; }
  .odds-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .odds-book { white-space: nowrap; }
  @media (max-width: 480px) { .odds-table td, .odds-table th { padding: 6px 4px; } .odds-cell a { padding: 2px 3px; } .odds-table { font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); } }
  .odds-tag { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); margin-left: 4px; }
  .odds-cell a { color: var(--text); text-decoration: none; display: inline-block; padding: 2px 6px; border-radius: 6px; }
  .odds-cell a:hover { background: var(--panel-2); text-decoration: underline; }
  .odds-line { color: var(--text-muted); }
  .odds-best a, .odds-best { color: var(--best); font-weight: var(--fw-num); }
  .odds-best a { background: var(--best-dim); }
  .odds-best .odds-line { color: var(--best); }
  .odds-na { color: var(--text-muted); }
  .odds-empty { font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text-muted); padding: 4px 0; }
  .odds-note { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); margin-top: 16px; line-height: 1.5; }
  /* Odds board (assets/sport.js renderOdds): Team and Open pinned on the
     left, a column per source scrolling sideways. The controls stay pinned
     at the top; every game's time row carries Open and the book logos over
     their columns (no single header row). */
  .ob-stick { position: sticky; top: 0; z-index: 20; background: var(--bg); padding-top: 4px; }
  .ob-stick .odds-controls { margin-bottom: 8px; }
  .ob-scroll { width: fit-content; max-width: 100%; overflow-x: auto; border: 1px solid var(--card-border); border-radius: 12px; background: var(--panel); -webkit-overflow-scrolling: touch; }
  .ob-grid { --ob-team: calc(150px + var(--odds-pad-x)); --ob-open: calc(66px + var(--open-gap)); --ob-src: 66px; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); min-width: 0;
    width: calc(var(--ob-team) + var(--ob-open) + var(--n, 0) * var(--ob-src) + var(--odds-pad-x)); }
  .ob-grid col.ob-w-src:last-child { width: calc(var(--ob-src) + var(--odds-pad-x)); }
  .ob-w-team { width: var(--ob-team); }
  .ob-w-open { width: var(--ob-open); }
  .ob-w-src { width: var(--ob-src); }
  /* half the cell gap around every cell (8px between cells); 24px at the
     table's left and right edges, 12px above and 14px below each game, and a
     divider between games */
  .ob-grid th, .ob-grid td { padding: calc(var(--cell-gap) / 2); text-align: center; white-space: nowrap; }
  .ob-grid tr > :first-child { padding-left: var(--odds-pad-x); }
  .ob-grid tr > :last-child { padding-right: var(--odds-pad-x); }
  .ob-game .ob-ghead > * { padding-top: var(--game-pad-top); }
  .ob-game tr:last-child > * { padding-bottom: var(--game-pad-bottom); border-bottom: 1px solid var(--border-soft); }
  .ob-game:last-child tr:last-child > * { border-bottom: 0; }
  .ob-grid .ob-c-team { position: sticky; left: 0; z-index: 1; width: var(--ob-team); min-width: var(--ob-team); max-width: var(--ob-team); text-align: left; background: var(--panel); }
  .ob-grid .ob-c-open { position: sticky; left: var(--ob-team); z-index: 1; width: var(--ob-open); min-width: var(--ob-open); background: var(--panel); padding-right: calc(var(--cell-gap) / 2 + var(--open-gap)); }
  .ob-grid .ob-src { overflow: hidden; }
  /* the time row: time · status, then OPEN and the logos */
  .ob-ghead th { height: 40px; background: var(--panel-2); font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); vertical-align: middle; }
  .ob-ghead .ob-c-team { background: var(--panel-2); padding-left: 8px; }
  .ob-ghead .ob-c-open { background: var(--panel-2); }
  .ob-time { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); letter-spacing: 0.02em; white-space: normal; line-height: 1.25; }
  .ob-clock { white-space: nowrap; }   /* "3:30 PM ET" on one row (Chris, Nov 29); the status can go under it */
  .st-live { color: var(--bad); }
  .ob-team { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); color: var(--text); }
  .ob-team .tn-full { overflow: hidden; text-overflow: ellipsis; }
  .ob-team .tn-short { display: none; }
  .ob-tie { color: var(--text-muted); padding-left: 26px; }
  .ob-team .gm-team { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; color: inherit; text-decoration: none; }
  .ob-team a.gm-team:hover { color: var(--accent); }
  .ob-cell a, .ob-cell > span:first-child { color: var(--text); text-decoration: none; }
  .ob-cell a { display: block; border-radius: var(--cell-radius); }
  .ob-cell a:hover .ob-ln { text-decoration: underline; }
  /* one cell style (Open, every book, Matchups cards): the line on top,
     large and bold; the price under it, small and muted */
  .ob-ln { display: block; font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); color: var(--text); line-height: 1.2; }
  .ob-pr { display: block; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); line-height: 1.25; }
  .ob-sc { margin-left: auto; padding-left: 6px; font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); color: var(--text); }
  .ob-na { color: var(--text-muted); }
  .ob-logo { height: 34px; width: 34px; object-fit: contain; vertical-align: middle; border-radius: 7px; -webkit-touch-callout: none; user-select: none; }
  /* a book with no logo file: its name in a tile the logo's height, one line (ellipsis), so headers never wrap */
  .ob-bname { display: inline-block; box-sizing: border-box; height: 34px; max-width: 64px; padding: 0 6px; line-height: 32px; vertical-align: middle; border: 1px solid var(--card-border); border-radius: 7px; background: var(--cell); font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: none; letter-spacing: 0; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rt-tip { position: absolute; z-index: 300; padding: 4px 8px; border-radius: 6px; background: var(--text); color: var(--bg); font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); pointer-events: none; white-space: nowrap; }
  /* "How to read this page" (build_site.how_to_read_html), under Odds and Matchups */
  .how-to-read { margin: 22px 0 8px; padding: var(--card-pad); border: 1px solid var(--card-border); border-radius: var(--card-radius); background: var(--panel); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text-muted); line-height: 1.5; }
  .how-to-read > summary { display: flex; align-items: center; gap: 8px; min-height: 28px; cursor: pointer; list-style: none; }
  .how-to-read > summary::-webkit-details-marker { display: none; }
  .how-to-read h2 { margin: 0; font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); color: var(--text); }
  .htr-caret { font-style: normal; color: var(--text-muted); transition: transform 0.15s; }
  .how-to-read[open] > summary { margin-bottom: 6px; }
  .how-to-read[open] .htr-caret { transform: rotate(180deg); }
  .how-to-read p { margin: 4px 0 0; }
  .htr-seo:empty { display: none; }
  /* calendar modal (openCalendar); a bottom sheet on phones */
  .date-cal { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-left: 6px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel); color: var(--text); cursor: pointer; }
  .date-cal:hover { border-color: var(--accent); color: var(--accent); }
  .cal-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }
  .cal-back { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); }
  .cal-sheet { position: relative; width: min(360px, calc(100vw - 32px)); background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
  .cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
  .cal-head b { flex: 1; text-align: center; font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); }
  .cal-x { width: 36px; height: 36px; border: 0; background: none; color: var(--text-muted); font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); cursor: pointer; border-radius: 8px; }
  .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
  .cal-dow { text-align: center; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); padding: 2px 0; }
  .cal-day { position: relative; height: 40px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--text-muted); font: inherit; cursor: pointer; }
  .cal-day.has { color: var(--text); font-weight: var(--fw-team); }
  .cal-day.has::after, .cal-key i { content: ''; position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--accent); }
  .cal-day:hover:not(:disabled) { border-color: var(--border); }
  .cal-day.today { border-color: var(--border); }
  .cal-day.on { background: var(--accent); color: var(--bg); border-color: var(--accent); }
  .cal-day.on::after { background: var(--bg); }
  .cal-day:disabled { opacity: 0.35; cursor: default; }
  .cal-key { margin: 10px 0 0; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
  .cal-key i { position: static; display: inline-block; margin: 0; }
  /* the Books picker (assets/sport.js openBooks): the calendar's modal, a bottom sheet on phones */
  .mb-btn { white-space: nowrap; }
  /* the Odds page's Settings gear (My books) */
  .mb-gear { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; margin-left: auto; border: 1px solid var(--card-border); border-radius: 10px; background: var(--panel); color: var(--text-muted); cursor: pointer; }
  .mb-gear:hover { color: var(--text); border-color: var(--accent); }
  .mb-sheet { width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow-y: auto; }
  .mb-group { padding: 10px 0; border-top: 1px solid var(--border-soft); }
  .mb-gh { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
  .mb-all { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); white-space: nowrap; }
  .mb-all .adv-link { font-size: var(--fs-price); padding: 4px; }
  .mb-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--cell-gap); }
  .mb-book { display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 44px; padding: 6px 8px; border: 1px solid var(--card-border); border-radius: var(--cell-radius); background: var(--cell); cursor: pointer; }
  .mb-book:has(input:checked) { border-color: var(--accent); }
  .mb-book input { flex-shrink: 0; margin: 0; accent-color: var(--accent); }
  .mb-logo { flex-shrink: 0; width: 28px; height: 28px; border-radius: 6px; object-fit: contain; }
  .mb-bname { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-team); color: var(--text); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mb-note { margin: 10px 0 0; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  @media (max-width: 640px) {
    .ob-grid { --ob-team: calc(88px + var(--odds-pad-x)); --ob-open: calc(52px + var(--open-gap)); --ob-src: 52px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
    .ob-logo { height: 26px; width: 26px; border-radius: 6px; }
    :root { --book-tile-sq: 46px; }
    .ob-bname { height: 30px; line-height: 28px; max-width: 56px; }
    .ob-time { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); }
    .ob-team .tn-full { display: none; }
    .ob-team .tn-short { display: inline; }
    .ob-tie { padding-left: 0; }
    .cal-modal { align-items: flex-end; }
    .cal-sheet { width: 100%; border-radius: 16px 16px 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
    .mb-sheet { max-height: 85vh; }
  }
  .game-matchup .gm-at { color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .card-seg { margin: 0 0 4px; }
  .gm-seg-line { font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text-muted); margin-top: 2px; }
  .date-label .week-range { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); margin-left: 6px; text-transform: none; }
  .gm-seg-line b { color: var(--text); }
  .odds-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Phones: the new sports' cards stack ATS / SU / Total as rows so long
     team names and lines don't run out of their pill */
  @media (max-width: 520px) {
    .card-body .odds-grid { grid-template-columns: 1fr; gap: 6px; }
    .card-body .pill { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
    .card-body .pill .pill-body { justify-content: flex-end; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  }
  .pill .pill-body .result-pill { width: 18px; height: 18px; line-height: 18px; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); margin-left: 2px; }
  .odds-n { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); white-space: nowrap; }
  .sport-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
  .stat-tile .tile-sub { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); margin-top: 3px; }
  table.sport-stats th.sortable { cursor: pointer; user-select: none; }
  table.sport-stats th.sorted { color: var(--text); }
  table.sport-stats td.num { font-weight: var(--fw-num); font-variant-numeric: tabular-nums; }
  table.sport-stats td.team-cell a { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
  .stats-note { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); margin: 10px 0 18px; }
  .dist { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding-top: 6px; }
  .dist-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
  .dist-bar { width: 100%; background: var(--accent); opacity: 0.75; border-radius: 3px 3px 0 0; }
  .dist-lbl { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); margin-top: 3px; white-space: nowrap; }
  /* Scoring distribution, horizontal (other sports' Stats page) */
  .hdist { display: flex; flex-direction: column; gap: 5px; }
  .hd-row { display: grid; grid-template-columns: 52px 1fr; gap: 8px; align-items: center; }
  .hd-lbl { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); text-align: right; white-space: nowrap; }
  .hd-track { display: flex; align-items: center; gap: 6px; min-width: 0; }
  .hd-bar { height: 22px; background: var(--accent); border-radius: 4px; display: flex; align-items: center; justify-content: flex-end; min-width: 3px; }
  .hd-val { font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); white-space: nowrap; }
  .hd-val.in { color: #fff; padding: 0 7px; }
  .hd-val.in .hd-sub { color: rgba(255, 255, 255, 0.72); }
  .hd-val.out { color: var(--text); }
  .hd-sub { color: var(--text-muted); font-weight: var(--fw-body); }
  .tf-week { min-height: 34px; }
  @media (max-width: 480px) { .hd-row { grid-template-columns: 40px 1fr; } .hd-val { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); } }
  /* Football scoring: Most Common Scores + Scoring Distribution (NFL / NCAAF) */
  .fb-more { align-self: flex-start; background: none; border: 0; padding: 8px 0 0; min-height: 36px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--accent); cursor: pointer; }
  .fb-more:hover { text-decoration: underline; }
  #fbDist .hd-row { will-change: transform; }
  .lt-top .gm-team { display: inline-flex; flex-shrink: 0; }

  /* ---------- Team detail page ---------- */
  .team-page-head { margin-bottom: 16px; }
  .team-page-head h1 { font-family: var(--ff-display); font-size: var(--fs-title); font-weight: var(--fw-title); }

  .legal h2 { font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); margin: 26px 0 8px; }
  /* email signup (scripts/signup.py): Beehiiv's form in an iframe */
  .rt-signup { max-width: 460px; }
  /* the iframe's color scheme matches Beehiiv's light document, so it stays
     see-through on the dark theme (a mismatch paints white behind its corners) */
  .rt-form iframe { color-scheme: normal; background: transparent; }
  .rt-done { display: none; margin: 8px 0 0; font-weight: var(--fw-team); color: var(--text); }
  .rt-subbed .rt-form { display: none; }
  .rt-subbed .rt-done { display: block; }
  .rt-jump { margin: 0; }
  .rt-jump a { color: var(--accent); font-weight: inherit; }
  .legal li { line-height: 1.6; margin-bottom: 8px; }
  .empty-state { padding: 40px 20px; text-align: center; color: var(--text-muted); }
  /* ---- site nav (scripts/nav.py): every page but admin ---- */
  body.hm-open { overflow: hidden; }
  .hn { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border-soft); }
  .hn-inner { max-width: 1240px; margin: 0 auto; padding: 0 20px; min-height: 64px; display: flex; align-items: center; gap: 12px; }
  .hn .brand { display: flex; align-items: center; min-height: 44px; flex-shrink: 0; }
  .hn-links { display: flex; align-items: center; gap: 0; }
  .hn-link {
    display: inline-flex; align-items: center; min-height: 64px; padding: 0 12px; border: none; border-bottom: 3px solid transparent; background: none; white-space: nowrap;
    font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--text-muted); text-decoration: none; cursor: pointer;
  }
  .hn-link:hover, .hn-link[aria-current] { color: var(--text); }
  /* Chris, Dec 3: option A, the current page in purple with a purple bar */
  .hn-link[aria-current] { color: var(--accent-purple-text); border-bottom-color: var(--accent); }
  .hn-link.hn-gold { color: var(--gold); }
  .hn-sp { position: relative; }
  .hn-sp-menu {
    display: none; position: absolute; top: 100%; left: 0; min-width: 240px; padding: 6px; z-index: 60;
    background: var(--panel); border: 1px solid var(--card-border); border-radius: 12px; box-shadow: 0 12px 32px var(--shadow);
  }
  .hn-sp:hover .hn-sp-menu, .hn-sp.open .hn-sp-menu { display: flex; flex-direction: column; }
  .hn-sp-item { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--text); text-decoration: none;
    font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); }
  .hn-sp-item .sport-icon { width: 22px; height: 22px; flex-shrink: 0; }
  .hn-sp-item:hover { background: var(--panel-2); }
  .hn-theme { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--card-border); border-radius: 999px;
    background: var(--panel); color: var(--text-muted); cursor: pointer; flex-shrink: 0; }
  .hn-theme:hover { color: var(--text); }
  .hn-theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .hn-theme .ht-moon { display: none; }
  :root[data-theme="light"] .hn-theme .ht-sun { display: none; }
  :root[data-theme="light"] .hn-theme .ht-moon { display: block; }
  /* Chris, Dec 3: guests get no theme switch; signed-in people switch it in the avatar menu */
  .hn-theme { display: none !important; }
  .hn-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
  .hn-signin { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--text); text-decoration: none; white-space: nowrap;
    font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); text-transform: uppercase; letter-spacing: 0.05em; }
  .hn-premium, .btn-gold {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; white-space: nowrap;
    background: var(--gold); color: var(--on-gold); border: none; border-radius: 10px; cursor: pointer;
    font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none;
  }
  /* phones (Chris, Dec 3): FREE PICKS for guests and free accounts, ticket + PICKS for Premium, centered; a gold pill in both themes */
  .hn-picks-pill { display: none; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--gold); color: var(--on-gold); text-decoration: none; white-space: nowrap;
    font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); text-transform: uppercase; letter-spacing: 0.05em; }
  html.rtyb-signed-in .hn-signin { display: none; }
  html.rtyb-premium .hn-premium { display: none; }
  .hn-burger { display: none; width: 44px; height: 44px; padding: 0; border: none; background: none; color: var(--text); cursor: pointer; align-items: center; justify-content: center; flex-shrink: 0; }
  .hb-lines { display: flex; flex-direction: column; gap: 4px; }
  .hb-lines span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; }
  .hb-x { display: none; font-family: var(--ff-display); font-size: var(--fs-title); font-weight: var(--fw-title); line-height: 1; }
  .hn-burger[aria-expanded="true"] .hb-lines { display: none; }
  .hn-burger[aria-expanded="true"] .hb-x { display: block; }

  /* phone menu: slides in under the top bar */
  .hm { position: fixed; left: 0; right: 0; top: 65px; bottom: 0; z-index: 49; background: var(--bg); overflow-y: auto; animation: hm-in .18s ease-out; }
  .hm[hidden] { display: none; }
  @keyframes hm-in { from { transform: translateX(-100%); } to { transform: none; } }
  .hm-body { padding: 4px 16px 96px; }
  .hm-label { margin: 18px 0 4px; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .hm-all { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 4px 0 6px; }
  .hm-all-btn { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 0 2px; border: 1px solid var(--card-border); border-radius: 10px;
    background: var(--panel); color: var(--text); text-decoration: none; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-team); }
  .hm-all-btn.gold { color: var(--gold); border-color: var(--gold); }
  .hm-all-btn { flex-direction: column; gap: 3px; padding-top: 6px; padding-bottom: 6px; }
  .hm-ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  :root[data-theme="light"] .hm-all-btn.gold { background: var(--gold); color: var(--on-gold); }
  @media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .hm-all-btn.gold { background: var(--gold); color: var(--on-gold); } }
  .hm-sport { border-bottom: 1px solid var(--border-soft); }
  .hm-sport.open { background: var(--panel); margin: 0 -16px; padding: 0 16px; }
  .hm-row { display: flex; align-items: center; width: 100%; min-height: 52px; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; text-align: left; }
  .hm-name { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text);
    font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); }
  .hm-name .sport-icon { width: 22px; height: 22px; }
  .hm-open { padding: 0 0 14px; }
  .hm-open[hidden] { display: none; }
  .hm-home { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-bottom: 8px; border: 1px solid var(--card-border); border-radius: 10px;
    background: var(--cell); color: var(--text); text-decoration: none; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-team); }
  .hm-pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hm-pill { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 40px; border: 1px solid var(--card-border); border-radius: 999px;
    background: var(--panel); color: var(--text); text-decoration: none; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .hm-item { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--border-soft); color: var(--text); text-decoration: none;
    font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); }

  /* phone bottom bar: sports.BOTTOM_BAR (Matchups · Odds · Trends · Stats) */
  .bb { display: none; }
  .bb-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 58px; color: var(--bb-off); text-decoration: none;
    font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); }
  .bb-tab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  /* the active tab: a chip behind its icon and label, a 3px bar across its top */
  .bb-tab[aria-current] { color: var(--gold); font-weight: var(--fw-title); }   /* one highlight: gold icon + label, no bar or chip (Chris, Dec 3) */
  .bb-tab[aria-current] svg { stroke-width: 2.2; }
  .bb-chip { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 12px; border-radius: 12px; }
  /* five or six tabs (admin Site settings): tighter chips, no letter spacing */
  .bb[data-n="5"] .bb-tab, .bb[data-n="6"] .bb-tab { letter-spacing: 0; }
  .bb[data-n="5"] .bb-chip, .bb[data-n="6"] .bb-chip { padding: 5px 4px; }

  /* ---------- the footer (scripts/nav.py footer(), every page) ---------- */
  .sf { margin-top: 40px; background: var(--foot-bg); border-top: 1px solid var(--card-border); color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .sf-inner { max-width: 1180px; margin: 0 auto; padding: 32px 20px 36px; box-sizing: border-box; }
  .sf a { color: var(--text-muted); text-decoration: none; }
  .sf a:hover { color: var(--text); }
  .sf-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border-soft); }
  .sf-logo { display: block; width: 150px; }
  .sf-logo svg { display: block; width: 100%; height: auto; }
  .sf-line { margin: 10px 0 0; max-width: 420px; line-height: 1.5; }
  .sf-short { display: none; }
  .sf-signup { flex: 0 1 460px; max-width: 460px; }
  .sf-signup h2 { margin: 0 0 4px; font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); color: var(--text); }
  .sf-signup p { margin: 0 0 10px; }
  .sf-cols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--border-soft); }
  .sf-h { margin: 0 0 10px; }
  .sf-tog { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0; border: 0; background: none; cursor: default; text-align: left;
    font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--title-text); }
  .sf-pm { display: none; }
  .sf-links { list-style: none; margin: 0; padding: 0; }
  .sf-links li { margin: 0 0 8px; line-height: 1.35; }
  .sf-bottom { padding-top: 20px; }
  .sf-rg { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--text); }
  .sf-rg a { color: var(--accent); }
  .sf-21 { flex: none; padding: 2px 8px; border: 1px solid var(--text-muted); border-radius: 6px; color: var(--text);
    font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); letter-spacing: var(--ls-label); }
  .sf-small { margin: 0 0 14px; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); line-height: 1.5; }
  .sf-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); }
  .sf-legal p { margin: 0; }
  @media (max-width: 1023px) {
    .sf-inner { padding: 24px 16px calc(84px + env(safe-area-inset-bottom)); }   /* the tab bar never covers the copyright */
    .sf-top { flex-direction: column; gap: 20px; padding-bottom: 8px; border-bottom: 0; }
    .sf-logo { width: 118px; }
    .sf-long { display: none; }
    .sf-short { display: inline; }
    .sf-signup { flex: none; width: 100%; max-width: none; }
    .sf-cols { display: block; padding: 8px 0 16px; border-bottom: 0; }
    .sf-col { border-bottom: 1px solid var(--border-soft); }
    .sf-h { margin: 0; }
    .sf-tog { min-height: 48px; cursor: pointer; }
    .sf-pm { display: block; position: relative; width: 14px; height: 14px; }
    .sf-pm::before, .sf-pm::after { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 1px; background: currentColor; }
    .sf-pm::after { transform: rotate(90deg); }
    .sf-col.open .sf-pm::after { display: none; }
    .sf-links { display: none; padding: 0 0 12px; }
    .sf-col.open .sf-links { display: block; }
    .sf-links li { margin: 0; }
    .sf-links a { display: flex; align-items: center; min-height: 40px; }
    .sf-rg { align-items: flex-start; }
    .sf-legal { flex-direction: column; gap: 6px; }
  }

  /* ---------- About this page (scripts/seo_text.py, content/seo/) ---------- */
  .seo-about .dp-body { color: var(--text); }
  .seo-about .dp-body > :first-child { margin-top: 8px; }
  .seo-upd { margin: 24px 0 8px; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-body); color: var(--text-muted); }
  .seo-learn { margin-top: var(--section-gap); }
  .seo-learn .hl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .seo-oss { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; max-width: 720px; }
  .seo-os { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 0; border-bottom: 1px solid var(--border-soft); color: var(--text); text-decoration: none; }
  .seo-os-ic { display: inline-flex; flex: none; width: 22px; height: 22px; }
  .seo-os-ic svg { width: 22px; height: 22px; }
  .seo-os-n { flex: none; font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); color: var(--text); }
  .seo-os-s { flex: 1; min-width: 0; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .seo-os-go { flex: none; color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-section); font-weight: var(--fw-body); }
  @media (max-width: 720px) {
    .seo-oss { grid-template-columns: minmax(0, 1fr); }
    .seo-learn .hl-grid { grid-template-columns: minmax(0, 1fr); }
  }

  @media (max-width: 1023px) {
    .hn-links { display: none; }
    .hn-burger { display: inline-flex; }
    .hn-inner { padding: 8px 12px; gap: 6px; }
    .hn-right { gap: 4px; }
    .hn-premium { min-height: 36px; padding: 0 12px; }
    .hn-picks-pill { display: inline-flex; margin: 0 auto; }
    .hn-picks-pill + .hn-right { margin-left: 0; }
    .hpp-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
    .hpp-ico, .hpp-prem, html.rtyb-premium .hpp-free { display: none; }
    html.rtyb-premium .hpp-ico, html.rtyb-premium .hpp-prem { display: inline; }
    /* Chris, Dec 3: Premium's Picks pill is purple (the avatar stays gold); Free keeps the gold FREE PICKS */
    html.rtyb-premium .hn-picks-pill { background: var(--accent); color: var(--on-accent); }
    .bb { display: grid; grid-template-columns: repeat(var(--bb-n, 4), minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 48;
      background: var(--bb-bg); border-top: 1px solid var(--bb-line); box-shadow: var(--bb-shadow); padding-bottom: env(safe-area-inset-bottom); }
    body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  }
  @media (max-width: 420px) {
    .hn .logo { height: 38px; }
    .hn-inner { gap: 4px; padding: 8px 10px; }
    .hn-theme { width: 32px; height: 32px; }
    .hn-signin { padding: 0 4px; }
    .hn-signin, .hn-premium, .hn-picks-pill { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); letter-spacing: var(--ls-label); }
    .hn-premium { min-height: 34px; padding: 0 10px; }
  }
  /* row 2 (nav.index_row / nav.sport_row): a yellow label row, then the links */
  .hr2 { border-bottom: 1px solid var(--border-soft); background: var(--bg); }
  .hr2-inner { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
  .hr2-label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 0 0; color: var(--gold); text-decoration: none;
    font-family: var(--ff-display); font-size: var(--fs-row-label); font-weight: var(--fw-title); text-transform: uppercase; letter-spacing: 0.02em; }
  .hr2-label .sport-icon { width: 20px; height: 20px; }
  .hr2-sports .hr2-link .sport-icon, .fr-pills .seg-btn .sport-icon { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }
  a.hr2-label:hover { text-decoration: none; color: var(--gold); }
  .hr2-links { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .hr2-links::-webkit-scrollbar { display: none; }
  .hr2-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; border-bottom: 3px solid transparent; white-space: nowrap;
    font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); text-decoration: none; }
  .hr2-link:hover { color: var(--text); text-decoration: none; }
  .hr2-link[aria-current] { color: var(--text); border-bottom-color: var(--accent); }
  @media (max-width: 640px) {
    .hr2-inner { padding: 0 12px; }
    .hr2-link { padding: 0 4px; min-width: 0; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); letter-spacing: 0.2px; }
    .hr2-sports:not(.hr2-many) .hr2-link { flex: 1 1 0; }
    /* a sport's seven pages: never squeezed under their labels; the row scrolls sideways */
    .hr2-pages .hr2-link { flex: 1 0 auto; padding: 0 5px; }
    /* seven pages (Streaks joined, Chris, Nov 29): tighter so they fit a 375px phone without scrolling */
    .hr2-pages { gap: 0; }
    .hr2-pages .hr2-link { padding: 0 3px; letter-spacing: 0; }
    .hr2-pages:not(.hr2-end) { -webkit-mask-image: linear-gradient(to right, black calc(100% - 32px), transparent); mask-image: linear-gradient(to right, black calc(100% - 32px), transparent); }
    .hr2-sports.hr2-many .hr2-link { flex: 0 0 auto; padding: 0 10px; }
    .hr2-sports .hr2-off { display: none; }
  }
  /* The Daily (scripts/daily.py): arena cards, piece pages, the index */
  .dp-arena-wrap { max-width: 1180px; margin: 20px auto 0; padding: 0 20px; }
  .dp-arena { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
  .dp-card { display: grid; gap: 6px; align-content: start; background: var(--panel); border: 1px solid var(--card-border); border-radius: var(--card-radius); padding: var(--card-pad); color: var(--text); text-decoration: none; }
  .dp-card:hover { border-color: var(--accent); text-decoration: none; }
  .dp-card .hd-kicker { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--gold); }
  .dp-card b { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); text-transform: uppercase; letter-spacing: 0.02em; }
  .dp-card .muted { color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .dp-more { color: var(--accent); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .dp-piece { max-width: 720px; }
  .dp-piece h1 { margin: 6px 0 4px; }
  .dp-date { color: var(--text-muted); margin: 0 0 18px; }
  .dp-body p { line-height: 1.65; margin: 0 0 14px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .dp-21 { color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); margin-top: 22px; }
  .dp-back a { color: var(--accent); }
  /* Arena hub (/{sport}/, renderHub in assets/sport.js) */
  .hub-hero { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; margin: 4px 0 8px; }
  .hub-num { background: var(--panel); border: 1px solid var(--card-border); border-radius: var(--card-radius); padding: var(--card-pad); display: grid; gap: 2px; align-content: center; min-width: 0; }
  .hub-num b { font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); color: var(--text); line-height: 1.1; }
  .hub-num-wide b { font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); text-transform: none; }
  .hub-num span { color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); }
  .hub-sec { margin-top: 26px; }
  .hub-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
  .hub-head h2 { margin: 0; font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); text-transform: uppercase; letter-spacing: 0.02em; }
  .hub-more { color: var(--accent); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); white-space: nowrap; }
  .hub-none { color: var(--text-muted); margin: 0; }
  .hub-games { display: grid; gap: 8px; }
  .hub-game { display: grid; grid-template-columns: 6.2em 1fr auto 1fr; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--border-soft); border-radius: 12px; padding: 10px 14px; color: var(--text); text-decoration: none; }
  .hub-game:hover { border-color: var(--accent); text-decoration: none; }
  .hub-gs { color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); white-space: nowrap; }
  .hub-gs.live { color: var(--live, #ff5a5f); }
  .hub-gt { display: inline-flex; align-items: center; gap: 8px; }
  .hub-gt .mono { margin-left: auto; font-weight: var(--fw-num); }
  .hub-at { color: var(--text-muted); }
  .hub-motd, .hub-team, .hub-line { background: var(--panel); border: 1px solid var(--card-border); border-radius: var(--card-radius); padding: var(--card-pad); }
  .hub-motd-top { display: flex; align-items: center; gap: 10px; color: var(--text-muted); }
  .hub-motd-teams { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); text-transform: uppercase; }
  .hub-motd-bet { margin: 0 0 8px; }
  .hub-price { color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); margin-left: 6px; }
  .hub-price b { color: var(--text); }
  .hub-motd-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; }
  .hub-motd-list li { display: flex; justify-content: space-between; gap: 12px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); border-top: 1px solid var(--border-soft); padding-top: 5px; }
  .hub-motd-rec { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); }
  .hub-daily { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
  .hub-dcard.soon b { color: var(--text-muted); }
  .hub-line { display: flex; align-items: center; gap: 12px; }
  .hub-line p { margin: 0; }
  .hub-team { display: flex; gap: 14px; align-items: flex-start; }
  .hub-team-name { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); text-transform: uppercase; }
  .hub-team p { margin: 2px 0 6px; }
  .hub-spots { margin: 0 0 8px; padding-left: 18px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .hub-number { margin: 0; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .hub-number b { font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); margin-right: 6px; }
  .hub-learn a { color: var(--accent); font-weight: inherit; }
  .st-card.mt-game[hidden] { display: none; }   /* .st-card's flex beats [hidden] */
  .mt-game.mt-hit { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 10px; scroll-margin-top: 140px; }
  @media (max-width: 640px) {
    .hub-hero { grid-template-columns: 1fr 1fr; }
    .hub-num-wide { grid-column: 1 / -1; }
    .hub-game { grid-template-columns: 5.6em 1fr auto 1fr; gap: 6px; padding: 9px 10px; }
    .hub-gs { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); }
    .hub-motd-list li { flex-direction: column; gap: 0; }
  }
  .dp-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
  .dp-list a { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--panel); color: var(--text); text-decoration: none; }
  .dp-list a:hover { border-color: var(--accent); }
  .dp-list .muted { color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }

  /* ---------- Home, Learn, Picks and Streaks pages (scripts/home.py, streaks.py) ---------- */
  /* Home and Learn pages (scripts/home.py). Colors are the site tokens from
     assets/site.css; nothing here is hardcoded. */
  html { scroll-behavior: smooth; scroll-padding-top: 90px; }
  body.home { min-height: 100%; }
  .muted { color: var(--text-muted); }

  /* ---- page ---- */
  .hp { max-width: 1200px; margin: 0 auto; padding: 18px 20px 40px; }
  @media (max-width: 600px) { .hp { padding: 14px 16px 32px; } }
  .hp h1, .hp h2 { text-transform: uppercase; }

  .hh { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 18px 0 30px; }
  .hh h1 { font-family: var(--ff-display); font-size: var(--fs-title); font-weight: var(--fw-title); line-height: 0.98; letter-spacing: 0.01em; margin: 0 0 14px; }
  /* Hero colors follow the logo: RTY's color (gold on dark, black on light), then the purple */
  .hh h1 .hh-a { color: var(--logo-rty); }
  .hh h1 .hh-b { color: var(--accent); }
  .hh p { font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text-muted); max-width: 520px; margin: 0 0 20px; }
  .hh-cta { display: flex; flex-wrap: wrap; gap: 10px; }
  .btn-primary, .btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 10px;
    font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none; cursor: pointer;
  }
  .btn-primary { background: var(--accent); color: var(--on-accent); border: none; }
  .btn-ghost { background: none; color: var(--text); border: 1px solid var(--border); }
  .btn-ghost:hover { border-color: var(--accent); }
  @media (max-width: 820px) { .hh { grid-template-columns: 1fr; gap: 20px; padding-top: 6px; } }

  .ln-card { background: var(--panel); border: 1px solid var(--border-soft); border-top: 3px solid var(--accent); border-radius: 14px; padding: 16px 18px; }
  .ln-head { display: flex; justify-content: space-between; gap: 10px; font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
  .ln-head span:last-child { color: var(--text-muted); font-weight: var(--fw-section); }
  .ln-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--border-soft); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .ln-sport { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--accent); min-width: 44px; }
  .ln-what { color: var(--text-muted); }
  .ln-rec { font-weight: var(--fw-num); }
  .ln-val { display: flex; align-items: baseline; justify-content: flex-end; gap: 8px; white-space: nowrap; }
  .ln-u { font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); color: var(--text-muted); }
  .ln-u.pos { color: var(--good); }
  .ln-u.neg { color: var(--bad); }
  .ln-u.mid { color: var(--push); }
  .ln-foot { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); padding-top: 9px; border-top: 1px solid var(--border-soft); }
  .ln-foot a { color: var(--accent); }
  .ln-best { display: grid; gap: 2px; margin: 4px 0 10px; padding: 12px 14px; border-radius: 10px; background: var(--good-dim); border: 1px solid var(--good); }
  .ln-best-what { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--good); }
  .ln-best-rec { font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); color: var(--good); line-height: 1.15; }
  .ln-best-u { font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); color: var(--good); }
  .ln-best-u.neg { color: var(--bad); }
  .ln-best-u.mid { color: var(--push); }
  .hh-copy .hh-note { margin: 12px 0 0; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }

  .hp-sec { padding: 22px 0; }
  .hp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
  .hp-head h2 { font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); margin: 0; }
  .hp-head .muted { font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .hp-empty { color: var(--text-muted); background: var(--panel); border: 1px dashed var(--border); border-radius: 12px; padding: 16px; margin: 0; }
  .hp-more { margin-top: 12px; }
  .hp-head-link { margin-left: auto; color: var(--accent); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); text-decoration: none; }
  .hp-filter { margin: 0 0 0 auto; }
  .hp-alls { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; }
  .hp-all { color: var(--accent); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); text-decoration: none; }
  .hp-all[hidden], .hc-card[hidden] { display: none; }
  .hr-grid, .ht-grid, .hd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
  .ht-grid .ht-row { margin-bottom: 0; }
  .ht-locked { margin-top: 12px; }
  .hr-card, .hd-card { background: var(--panel); border: 1px solid var(--border-soft); border-radius: 14px; padding: 14px 16px; }
  .hr-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .hr-link { display: inline-block; margin-top: 10px; color: var(--accent); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); text-decoration: none; }
  .hr-card .ln-row { grid-template-columns: 1fr auto; }
  .hd-card { display: grid; gap: 6px; align-content: start; }
  .hd-kicker { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--accent); }
  .hd-card b { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); text-transform: uppercase; letter-spacing: 0.02em; }
  .ht-lock-card .hpp-row input { border-color: var(--border); color: var(--text); }
  .ht-lock-card .hpp-row input::placeholder { color: var(--text-faint); }
  .ht-lock-card .hpp-msg { margin: 8px 0 0; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text-muted); }
  @media (max-width: 600px) { .hp-filter { margin-left: 0; } .ht-lock-card .hpp-row { flex-direction: column; } }

  /* ---------- Front sections (scripts/front.py): home, hubs, /matchups/, /odds/ ---------- */
  .fr-sec { padding: 20px 0; }
  .hub-front .fr-sec:first-child { padding-top: 4px; }
  .fr-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
  .fr-head h2 { margin: 0; }
  .fr-date { color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  /* one row of pills, scrolling sideways on phones */
  .fr-pills { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; padding-bottom: 2px; }
  .fr-pills::-webkit-scrollbar { display: none; }
  .fr-pills .seg-btn { flex-shrink: 0; white-space: nowrap; min-height: 36px; }
  .fr-res .fr-pills .seg-btn { min-height: 32px; }
  .ld-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); align-items: start; }
  /* the Slate's sport pills: today's game count, a small gold circle at the top right (Chris, Nov 29) */
  .fr-pills-n { gap: 12px 12px; padding-top: 8px; }
  .fr-pills-n .seg-btn { position: relative; }
  .pill-n { position: absolute; top: -8px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center; background: var(--gold); color: var(--on-gold);
    font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-num); line-height: 1; font-variant-numeric: tabular-nums; }
  .fr-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; }
  .fr-links:empty { display: none; }
  .fr-more { color: var(--accent); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); text-decoration: none; }
  .fr-more[hidden] { display: none; }
  .fr-empty { color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); margin: 0; }
  .fr-empty[hidden], .fr-res[hidden], [data-pane][hidden] { display: none; }
  .fr-res .daily-summary { margin: 0; }
  /* The Slate: header, date, pills, then cards (the Stats card and its title bar) */
  .sl-headline { display: grid; gap: 2px; margin-bottom: 12px; }
  .sl-headline h2 { margin: 0; }
  /* The Slate's header: the title is the biggest text, the date under it;
     the live chip "Next up · 14 min" at the right end of the title line */
  .sl-headline .sl-date { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); text-transform: none; color: var(--text-muted); }
  .sl-headline .sl-title { justify-content: space-between; align-items: center; flex-wrap: nowrap; }
  .sl-next { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 3px 10px; border: 1px solid var(--card-border); border-radius: 999px; background: var(--panel); white-space: nowrap; }
  .sl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); animation: sl-pulse 1.6s ease-in-out infinite; }
  @keyframes sl-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }
  @media (prefers-reduced-motion: reduce) { .sl-dot { animation: none; } }
  .sl-date { font-family: var(--ff-display); font-size: var(--fs-title); font-weight: var(--fw-title); text-transform: uppercase; line-height: 1.05; color: var(--text); }
  .sl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
  .sl-card { color: var(--text); text-decoration: none; }
  .sl-card[hidden] { display: none; }
  .sl-card:hover { border-color: var(--accent); }
  .sl-card .st-head h4 { justify-content: space-between; }
  .sl-sport { display: inline-flex; align-items: center; gap: 5px; }
  .sl-sport .sport-icon { width: 14px; height: 14px; }
  .sl:not(.sl-all) .sl-sport { display: none; }
  .sl-teams { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
  .sl-tm { display: inline-flex; align-items: center; gap: 7px; }
  .sl-code { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); }
  .sl-sc { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); color: var(--text-muted); }
  .sl-at { color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  /* ATS · ML · O/U, a row per segment: the Matchups cells on the shared cell gap */
  .sl-mk { display: grid; grid-template-columns: 40px repeat(3, minmax(0, 1fr)); gap: var(--cell-gap); align-items: center; }
  .sl-ch { text-align: center; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .sl-rh { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .sl-wide { grid-column: span 3; }
  .sl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--cell-gap); }
  .sl-q { display: grid; gap: 4px; }
  .sl-qh { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .sl-card .cell .ob-ln { white-space: nowrap; }
  .sl-src { display: flex; align-items: center; justify-content: center; height: 16px; margin-top: 2px; }
  .sl-book { height: 16px; width: auto; max-width: 56px; object-fit: contain; border-radius: 3px; }
  .sl-bname { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); color: var(--text-muted); }
  /* the index pages: groups by sport under All */
  .ix-head { display: grid; gap: 2px; margin: 4px 0 12px; }
  .ix-head h1 { margin: 0; }
  .ix-head .ix-sub { margin: 2px 0 0; max-width: 62ch; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text-muted); }
  .ix-group { margin: 6px 0 22px; }
  .ix-group[hidden] { display: none; }
  .ix-sport { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
  .ix-sport .sport-icon { width: 24px; height: 24px; }
  .fr-tsport { display: inline-flex; align-items: center; gap: 5px; margin-right: 8px; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .fr-tsport .sport-icon { width: 14px; height: 14px; }
  .fr-trow { cursor: default; grid-template-columns: minmax(62px, auto) minmax(0, 1fr) auto; column-gap: 10px; }
  .hh .yb { align-self: start; padding: 0; }
  /* Home v2 (scripts/front.py sections, home and every hub). Phones: one
     column in the HTML's order (reading order); desktop places them by
     area in 2/3 + 1/3 rows. The Running Tab's row is the one flexible row,
     so it sits right under Yesterday's Best however tall the hero is. */
  @media (min-width: 900px) {
    .fv { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); column-gap: 24px; align-items: start;
      grid-template-rows: auto auto auto 1fr auto auto auto auto auto auto;
      grid-template-areas: "slogan slogan" "pv pv" "hero yb" "hero tab" "slate slate" "df df" "motd pair" "trends trends" "results ." "learn ."; }
    /* home: no Running Tab card, the hero takes its row */
    .fv.fv-home { grid-template-rows: none; grid-template-areas: "slogan slogan" "hero hero" "yb yb" "slate slate" "df df" "motd pair" "trends trends" "results ." "learn ."; }
    .fv-slogan { grid-area: slogan; } .fv-pv { grid-area: pv; } .fv-hero { grid-area: hero; } .fv-yb { grid-area: yb; } .fv-tab { grid-area: tab; }
    .fv-slate { grid-area: slate; } .fv-motd { grid-area: motd; } .fv-pair { grid-area: pair; } .fv-trends { grid-area: trends; }
    .fv-results { grid-area: results; } .fv-learn { grid-area: learn; }
    /* Chris, Nov 29: Slate, Big Numbers, Streaks to Watch, Hottest Trends, Yesterday's Results, Betting Guides */
    .fv.fv-v2, .fv.fv-v2.fv-home { grid-template-rows: none; grid-template-areas: "slogan slogan" "hero hero" "yb yb" "slate slate" "bn bn" "pair pair" "trends trends" "picks picks" "leaders leaders" "results ad" "learn ad"; }
    .fv-leaders { grid-area: leaders; }   /* Leaders, above Yesterday's Results (Chris, Dec 2) */
    .fv-leaders .ld-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fv-picks { grid-area: picks; }   /* Today's Picks, under Hottest Trends (Chris, Dec 2) */
    .fv-slate .sl-cards, .fv-trends .ht-cards, .fv-picks .pk-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fv-learn .hl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fv-yb .fr-sec, .fv-tab .fr-sec, .fv-pair .fr-sec { padding-top: 20px; }
  }
  .fr-big { margin: 0; font-family: var(--ff-display); font-size: var(--fs-hero); font-weight: var(--fw-title); line-height: 0.98; letter-spacing: 0.01em; color: var(--text); }
  /* Chris, Dec 3: two lines of two on desktop, one a line on phones (a line outside a pair stays a line) */
  .fr-pair { display: contents; }
  .fr-line { display: block; }
  @media (min-width: 900px) {
    .fr-pair { display: block; }
    .fr-pair .fr-line { display: inline; }
    .fv.fv-v2.fv-home.fv-ybtop { grid-template-areas: "slogan hero" "slate slate" "bn bn" "pair pair" "trends trends" "picks picks" "leaders leaders" "results ad" "learn ad"; }
    .fv-ybtop .fv-hero { align-self: end; }
  }
  .fr-b1 { color: var(--accent); }
  .fr-b2 { color: var(--gold); }   /* light mode too: gold text, no underline (Chris, Nov 29) */
  .fr-slogan { margin: 14px 0 0; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .sl-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .sl-next { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text); }
  .sl-next[hidden] { display: none; }
  .ht-card .st-head h4 { justify-content: space-between; flex-wrap: nowrap; }
  .ht-rec { margin: 0 0 8px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text-muted); }
  .mo-card .st-head h4, .tw-card .st-head h4 { justify-content: space-between; }
  .mo-teams { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 6px 0 12px; }
  .mo-team { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; text-align: center; }
  .mo-name, .tw-name { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); color: var(--text); }
  .mo-at { color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .tw-line { margin: 0 0 6px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text); }
  .mo-n { color: var(--title-text); }
  .mo-price, .mo-rec { margin: 0 0 8px; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .mo-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; }
  .mo-list li { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border-soft); padding-top: 5px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .tw-main { display: flex; align-items: center; gap: 16px; }
  .mo-name, .tw-name, .tw-opp { text-decoration: none; }
  .mo-name, .tw-name { display: block; }
  a.mo-name:hover, a.tw-name:hover, a.tw-opp:hover { color: var(--accent); }
  .tw-opp { color: inherit; text-decoration: none; }
  .tw-logo, .mo-logo { display: inline-flex; }
  .mo-recs { margin: 0 0 10px; text-align: center; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .mo-left .sl-grid, .mo-left .sl-rows { margin-top: 4px; }
  @media (min-width: 900px) {
    .mo-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
    .mo-right { border-left: 1px solid var(--border-soft); padding-left: 24px; }
  }
  /* Hottest Trends: units green / red / yellow (CLAUDE.md color rule); the date under the title */
  .ht-rec .pos { color: var(--good); }
  .ht-rec .neg { color: var(--bad); }
  .ht-rec .mid { color: var(--push); }
  .fr-stack { display: grid; gap: 2px; }
  .ht-card[hidden], .tr-row[hidden], [data-hot][hidden] { display: none; }
  /* Yesterday's Results: solid unit pills, labels in the main text color */
  .fr-res .ds-label { color: var(--text); }
  .fr-res .u-pill { color: var(--pill-ink); }
  .fr-res .u-pos1, .fr-res .u-pos2 { background: var(--pill-good); }
  .fr-res .u-neg1, .fr-res .u-neg2 { background: var(--pill-bad); }
  .fr-res .u-mid, .fr-res .u-zero { background: var(--pill-push); }
  .fr-res .u-none { background: none; color: var(--text-muted); }
  .tw-copy { min-width: 0; }
  .rt-card h2 { margin: 0 0 6px; }
  .rt-line { margin: 0 0 12px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text-muted); }

  /* Home QA (Nov 18): the product line under the H1 */
  .fr-lede { margin: 12px 0 0; max-width: 640px; font-family: var(--ff-body); font-size: var(--fs-lede); font-weight: var(--fw-body); line-height: 1.45; color: var(--text-muted); }
  /* Yesterday's Best: a normal card; the units are its one green */
  .yb-u { color: var(--good); }
  /* odds tables: the segment (row) and market (column) labels */
  .mk-h { display: inline-block; padding: 2px 6px; border-radius: 4px; background: var(--mkh-bg); color: var(--mkh-text); }
  .sl-ch, .sl-rh, .sl-qh, .mc-grid thead th:not(.mc-st) { color: var(--mkh-text); }
  /* The Slate once today's games have all started */
  .sl-over { margin: 0 0 12px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text-muted); }
  .sl-over[hidden] { display: none; }
  /* Matchup of the Day: BEST ODDS (the Odds page's best-price cell) */
  .mo-tr { white-space: nowrap; color: var(--text-muted); }
  /* Streak to Watch: the run as the big line, then the opponent */
  /* Home v3 (Nov 19) */
  /* the nav to the H1: --nav-gap alone (the page's and the column's top padding off) */
  .hp:has(> .fv-home) { padding-top: 0; }
  .fv.fv-home { padding-top: 0; }
  .fv-home .fv-slogan { padding-top: var(--nav-gap); }
  .fv-home .fr-big { margin-top: 0; }
  /* Yesterday's Best: up to 3 rows, one line each */
  .yb-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
  .yb-row { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text); }
  .yb-row .sport-icon { width: 16px; height: 16px; flex: none; }
  .yb-sp { font-weight: var(--fw-team); flex: none; }
  .yb-dot { color: var(--text-muted); flex: none; }
  .yb-mk { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .yb-rec { flex: none; font-weight: var(--fw-num); }
  .yb-u { flex: none; color: var(--good); font-weight: var(--fw-num); }
  @media (max-width: 400px) { .yb-row { gap: 4px; } }
  /* football hub between weeks: Week N Results (Yesterday's Best's card) */
  .wr-h { margin: 14px 0 8px; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .wr .st-head + .wr-h { margin-top: 0; }
  .wr-bet { flex: none; color: var(--text); text-decoration: none; font-weight: var(--fw-team); }
  .wr-bet:hover { color: var(--accent); }
  .wr .u-pill { flex: none; }
  .wr .sk-len { min-width: 26px; padding: 1px 6px; }
  .wr-grid { border-collapse: collapse; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-num); color: var(--text); }
  .wr-grid th, .wr-grid td { padding: 4px 18px 4px 0; text-align: left; }
  .wr-grid thead th { font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .wr-grid tbody th { font-weight: var(--fw-team); }
  .wr-list { display: none; }
  .wr-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
  .wr-two > div { min-width: 0; }
  /* Week Results rows wrap rather than cut "streak ended at 11" short */
  .wr-two .yb-row { flex-wrap: wrap; row-gap: 2px; }
  .wr-two .yb-mk { overflow: visible; }
  @media (max-width: 899px) {
    .wr-grid { display: none; }
    .wr-list { display: grid; }
    .wr-two { grid-template-columns: 1fr; }
  }
  .wr-next { margin: 14px 0 0; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  /* Matchup of the Day: the label chip and its "i", TREND TO WATCH, BEST ODDS, the trend rows */
  .mo-chip { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 5px 8px 5px 12px; border-radius: 999px; background: var(--title-bg); color: var(--title-text); font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); }
  .lbl-chip .mo-chip { margin: 0; padding-right: 12px; }
  .lbl-chip:has(> .mo-chip) { margin: 0 0 12px; }
  .mo-watch-l, .bn-label { margin: 0; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .mo-watch { margin: 2px 0 14px; font-family: var(--ff-display); font-size: var(--fs-big); font-weight: var(--fw-title); line-height: 1.05; text-transform: uppercase; color: var(--mkh-text); }
  .mo-best { display: grid; gap: 6px; margin: 0 0 14px; }
  .mo-best-l { font-family: var(--ff-display); font-size: var(--fs-odds-label); font-weight: var(--fw-title); text-transform: uppercase; color: var(--text); }
  .mo-best-row, .bn-odds { display: flex; align-items: stretch; gap: var(--cell-gap); }
  /* Matchup of the Day + The Big Numbers: the book's logo IS the tile, the odds cell's exact size */
  .mo-best-b, .bn-book { display: flex; align-items: center; justify-content: center; flex: none; width: var(--book-tile-sq); height: var(--book-tile-sq); border-radius: var(--cell-radius); background: var(--cell); overflow: hidden; box-sizing: border-box; }
  .mo-best-b .sl-book, .bn-book .sl-book { width: 100%; height: 100%; object-fit: cover; }
  .mo-best-b .sl-bname, .bn-book .sl-bname { padding: var(--cell-pad); }
  .mo-best-c .cell, .bn-cell .cell { width: var(--book-tile-sq); height: var(--book-tile-sq); min-height: 0; min-width: 0; padding: 4px 2px; box-sizing: border-box; background: var(--best-bg); box-shadow: inset 0 0 0 1px var(--best); }
  .mo-best-row, .bn-odds { align-items: center; }
  .mo-list li { align-items: baseline; }
  .mo-tl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mo-tr { flex: none; text-align: right; font-weight: var(--fw-num); color: var(--text); }
  .mo-venue { display: none; margin: 10px 0 0; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  @media (min-width: 900px) { .mo-venue { display: block; } }
  /* Hottest Trends: the sport icon in the title bar */
  .ht-card .st-head .sl-sport .sport-icon { width: 16px; height: 16px; }
  /* Streak to Watch: the team and the run, a divider, NEXT MATCHUP */
  /* Streaks to Watch cards: the run's length in a heat chip before the words */
  .ixs-card .tw-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .sw2-group { margin: 6px 0 18px; }
  .ht-empty { display: none !important; }
  .ixs-card { position: relative; }
  .ixs-sport { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; }
  .ht-pdate { margin: 0 0 8px; }
  .tw-card .tw-line { margin: 4px 0 0; font-family: var(--ff-display); font-size: var(--fs-big); font-weight: var(--fw-title); line-height: 1.05; color: var(--mkh-text); }
  .tw-next { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-soft); }
  .tw-next-l { margin: 0 0 6px; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .tw-next-g { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text); }
  .tw-next-g .tlogo, .tw-next-g .team-badge { width: 24px !important; height: 24px !important; }
  .tw-opp { display: inline-flex; }
  /* The Big Numbers (scripts/bignums.py): home, hubs and the top of every Odds page */
  @media (max-width: 899px) { .fv-pair > * + * { margin-top: var(--section-gap); } .mo-right { margin-top: 16px; } }
  .bn .fr-pills { margin-bottom: 12px; }
  .bn-card .st-head .sport-icon { width: 16px; height: 16px; }
  .bn-body .fr-pills { margin: 0 0 4px; }
  .bn-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border-soft); color: inherit; text-decoration: none; }
  .bn-body [data-pane] > .bn-row:first-child, .bn-rows > .bn-row:first-child { border-top: 0; }
  .bn-left { display: grid; gap: 6px; min-width: 0; }
  .bn-label { color: var(--mkh-text); }
  .bn-teams { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text-muted); }
  .bn-team { display: inline-flex; align-items: center; gap: 5px; color: inherit; text-decoration: none; }
  a.bn-team:hover span { color: var(--accent); }   /* the logo and code open the team page; the card links nowhere */
  .bn-fav { color: var(--text); font-weight: var(--fw-team); }
  .bn-at { color: var(--text-muted); }
  .bn-odds { flex: none; }
  .bn-dcards { display: none; }
  .bn-odds-top { margin: 0 0 20px; }
  .bn-odds-top .fr-head h2 { margin: 0; }
  @media (min-width: 900px) {
    .bn-odds-top > .bn-card { padding: 0; border: 0; background: none; }
    .bn-odds-top .bn-rows { display: none; }
    .bn-odds-top .bn-dcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
    .bn-dcard { display: grid; justify-items: center; gap: 10px; padding: var(--card-pad); color: inherit; text-decoration: none; text-align: center; }
    .bn-dcard .bn-teams { gap: 10px; }
    .bn-dcard .bn-team { gap: 6px; }   /* the logo, the code beside it */
    .bn-time { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  }
  /* Hottest Trends: % (record) · units, then the league average */
  .ht-card .ht-rec { margin: 0; color: var(--text); }
  .ht-avg { margin: 2px 0 8px; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  /* a trend row's "Last time" line: hover or click (desktop), tap (phones, ▾) */
  .tr-has-last { cursor: pointer; }
  .tr-caret { display: none; font-style: normal; color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); }
  .tr-last { display: none; margin: 0; padding: 2px 0 8px; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .tr-has-last[aria-expanded="true"] + .tr-last { display: block; }
  .tr-has-last[hidden] + .tr-last { display: none !important; }
  @media (hover: hover) and (min-width: 641px) { .tr-has-last:hover + .tr-last, .tr-last:hover { display: block; } }
  @media (max-width: 640px) {
    .tr-has-last { grid-template-columns: 78px minmax(0, 1fr) auto 12px; }
    .tr-caret { display: inline; text-align: right; }
    .tr-has-last[aria-expanded="true"] .tr-caret { transform: rotate(180deg); }
  }
  @media (max-width: 899px) {
    .mo-team .tlogo, .mo-team .team-badge { width: 56px !important; height: 56px !important; }
    .tw-main .tlogo, .tw-main .team-badge { width: 64px !important; height: 64px !important; }
  }
  @media (max-width: 640px) {
    .sl-cards { grid-template-columns: minmax(0, 1fr); }
  }
  /* phones: one spacing value between home and hub sections */
  @media (max-width: 899px) {
    .fv { display: flex; flex-direction: column; gap: var(--section-gap); padding-top: 12px; }
    .fv .fr-sec, .hub-front .fr-sec:first-child { padding: 0; }
    .fv:empty { display: none; }
    .fv > :empty { display: none; }
    .hub-sec { margin-top: var(--section-gap); }
  }
  /* Hubs (Nov 19): one layout, six slots (scripts/front.py sections), home too.
     Desktop: the hero full width; The Slate; Matchup of the Day (2/3) |
     Streaks to Watch (1/3), bottoms level; The Big Numbers full width (the
     Odds page's cards); Hottest Trends; Results + Betting Guides (2/3) with
     the ad slot to their right. Between seasons (.fv-off): Champions |
     Countdown, Best Bet | Season in Review, the Awards, the Guide | the Running Tab. */
  @media (min-width: 900px) {
    .fv { grid-template-rows: none; grid-template-areas: "hero hero" "slate slate" "df df" "motd pair" "bn bn" "trends trends" "results ad" "learn ad"; }
    .fv.fv-home { grid-template-areas: "slogan slogan" "hero hero" "yb yb" "slate slate" "df df" "motd pair" "bn bn" "trends trends" "results ad" "learn ad"; }
    .fv.fv-off { grid-template-areas: "champ cd" "motd pair" "trends trends" "results tab"; }
    .fv-bn { grid-area: bn; } .fv-df { grid-area: df; } .fv-ad { grid-area: ad; } .fv-cd { grid-area: cd; } .fv-champ { grid-area: champ; }
    .fv-motd, .fv-pair { align-self: stretch; display: flex; flex-direction: column; }
    .fv-motd > .fr-sec, .fv-pair > .fr-sec { flex: 1; display: flex; flex-direction: column; }
    .fv-motd .st-card, .fv-pair .st-card { flex: 1; }
    .fv-pair .fr-sec, .fv-cd .fr-sec, .fv-tab .fr-sec { padding-top: 20px; }
    .fv-bn .bn-card { padding: 0; border: 0; background: none; }
    .fv-bn .bn-card > .st-head, .fv-bn .bn-rows { display: none; }
    .fv-bn .bn-dcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
    .sw-cut { display: none !important; }
    .fv.sw-measure > .fv-motd, .fv.sw-measure > .fv-pair { align-self: start; }
    /* no Streaks to Watch (today's or the next game day's): Matchup of the Day full width */
    .fv.sw-none > .fv-motd { grid-column: 1 / -1; }
    .fv.sw-none > .fv-pair { display: none; }
    .fv.sw-measure > .fv-motd .st-card, .fv.sw-measure > .fv-pair .st-card { flex: none; }
  }
  /* Streaks to Watch: the top streak's big block, then one-line rows */
  .sw-list { list-style: none; margin: 0; padding: 0; }
  .sw-item[hidden] { display: none; }
  .sw-item:not(.sw-top) .sw-big, .sw-top .sw-row { display: none; }
  .sw-top { padding-bottom: 6px; }
  .sw-div { display: none; margin: 8px 0 0; padding-top: 12px; border-top: 1px solid var(--border-soft); font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .sw-first .sw-div { display: block; }
  .sw-row { display: block; min-width: 0; padding: 9px 0; border-top: 1px solid var(--border-soft); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text); }
  .sw-first .sw-row { border-top: 0; }
  .sw-l1 { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .sw-row .sport-icon { width: 14px; height: 14px; flex: none; }
  .sw-logo { display: inline-flex; flex: none; }
  .sw-code { flex: none; font-weight: var(--fw-team); }
  .sw-line { flex: 1; min-width: 0; }
  .sw-l1 .sk-len { width: 34px; min-width: 0; padding: 3px 0; }
  .sw-next { display: block; margin-top: 2px; font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .sw-all { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border-soft); }
  @media (max-width: 899px) { .sw-more { display: none !important; } }
  /* no games today: "Next games: Fri, Nov 21"; postseason rounds on cards */
  .nx-line { margin: 0; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text-muted); }
  .nx-day { font-weight: var(--fw-team); color: var(--text); }
  .sl-round { margin: 0 0 6px; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  /* between seasons (scripts/offseason.py) */
  .cd-l { margin: 4px 0 8px; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .cd-boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--cell-gap); }
  .cd-box { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border-radius: var(--cell-radius); background: var(--cell); }
  .cd-n { font-family: var(--ff-display); font-size: var(--fs-big); font-weight: var(--fw-title); line-height: 1; color: var(--mkh-text); }
  .cd-u { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .cd-date { margin: 10px 0 0; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text); }
  .cd-ms { list-style: none; margin: 14px 0 0; padding: 0; }
  .cd-ms li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border-soft); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text); }
  .cd-md { flex: none; color: var(--text-muted); }
  .ch-main { display: flex; align-items: center; gap: 16px; margin: 4px 0 14px; }
  .ch-logo, .aw-logo { display: inline-flex; flex: none; }
  .ch-copy { min-width: 0; }
  .ch-name { display: block; font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); color: var(--text); text-decoration: none; }
  .ch-title { margin: 2px 0 0; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--mkh-text); }
  .ch-res { margin: 4px 0 0; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text-muted); }
  .ch-splits .fr-pills { margin-bottom: 10px; }
  .os-cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--cell-gap); }
  .os-cells[hidden], .aw-cards[hidden], [data-season][hidden] { display: none; }
  .os-cell { display: grid; align-content: start; gap: 3px; padding: 8px 10px; border-radius: var(--cell-radius); background: var(--cell); }
  .os-cl { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .os-side { font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text); }
  .os-rec, .os-u { font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); color: var(--text); }
  .os-u { margin-left: 8px; color: var(--text-muted); }
  .os-cell .os-u { margin-left: 0; }
  .os-u.pos { color: var(--good); } .os-u.neg { color: var(--bad); } .os-u.mid { color: var(--push); }
  .os-small { display: block; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .ht-rec .os-small { display: inline; margin-left: 6px; }
  /* Champions cells + Awards cards: the big %, the record under it, the units under that */
  .os-big { font-family: var(--ff-display); font-size: var(--fs-big); font-weight: var(--fw-title); line-height: 1.05; color: var(--text); }
  .os-cell .os-rec, .aw-rec .os-rec, .os-ub { display: block; margin-left: 0; }
  .aw-rec { display: grid; justify-items: center; gap: 2px; }
  .os-none { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .aw-empty { align-content: start; }
  .bb-name { margin: 4px 0 6px; font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); color: var(--text); }
  .bb-rec { margin: 0 0 8px; }
  .bb-say { margin: 0; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text-muted); }
  .sr-list { list-style: none; margin: 0; padding: 0; }
  .sr-list li { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid var(--border-soft); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text); }
  .sr-list li:first-child { border-top: 0; }
  .sr-list .sport-icon { width: 14px; height: 14px; flex: none; }
  .sr-t { flex: 1; min-width: 0; }
  .sr-r { flex: none; white-space: nowrap; }
  .aw-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  @media (min-width: 900px) { .aw-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  .aw-card { display: grid; justify-items: center; gap: 8px; text-align: center; }
  .aw-l { margin: 0; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .aw-team { display: grid; justify-items: center; gap: 6px; }
  .aw-name { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); color: var(--text); text-decoration: none; }
  .aw-rec { margin: 0; }
  .aw-rec .os-small { display: block; }
  .os-guide { display: grid; }
  /* Team pages (Nov 19, assets/sport.js renderTeam): Next game, Last game,
     Season markets, Current streaks, Game log, Home / Away, Situational
     results (assets/situational.js team view), Line + Results history tiles. */
  .tp-champ { margin: 6px 0 0; }
  .tp-champ a { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--gold); color: var(--on-gold);
    font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); text-decoration: none; }
  .tph { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 8px; }
  .tph .team-section-title { margin: 0; }
  .tph .seg-toggle { margin: 0; }   /* next to the heading: no right-aligned pills anywhere (Chris, Nov 30) */
  .tp-final { margin: 0; flex-basis: 100%; order: 2; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .tp-none { margin: 0; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text-muted); }
  .tp-small { display: block; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-body); color: var(--text-muted); }
  .st-head.tp-split { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
  .tp-hr { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--title-text); }
  /* small gold market label ("1P ML · EDM", "BTTS NO") */
  .tp-gl { display: block; margin-bottom: 4px; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* light mode: the small market labels are purple text, no gold block (dark keeps gold) */
  :root[data-theme="light"] .tp-gl { color: var(--title-text); }
  @media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .tp-gl { color: var(--title-text); } }
  .tp-ng { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
  .tp-teams { display: flex; align-items: center; gap: 10px; font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); }
  .tp-team { display: inline-flex; align-items: center; gap: 8px; }
  .tp-team a { color: var(--text); text-decoration: none; }
  .tp-at { color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .tp-where { margin: 0; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  /* starters (MLB pitchers, NHL goalies): Next Game card, H2H header, Matchups cards */
  .tp-sps { margin: 6px 0 0; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text); }
  .tp-sps .t-label { margin-right: 6px; }
  .mc .tp-sps { margin-top: 10px; }
  /* Matchups cards: the starters box (GOALIES · EXPECTED / PITCHERS · PROBABLE), a line per team */
  .sp-box { display: grid; gap: 4px; margin-top: 10px; }
  .sp-row { display: flex; align-items: center; gap: 8px; min-width: 0; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text); }
  .sp-code { min-width: 34px; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); letter-spacing: var(--ls-label); color: var(--text-muted); }
  .sp-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sp-tag { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .tp-cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--cell-gap) 12px; }
  /* Next game odds: a row per segment (its label at the left), its markets as
     columns, the same columns on every row; phones: the label above the blocks */
  .tp-odds { display: grid; gap: 12px; }
  .tp-orow { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: end; gap: 12px; }
  .tp-orow + .tp-orow { padding-top: 12px; border-top: 1px solid var(--border-soft); }
  .tp-oseg { align-self: center; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--title-text); }
  .tp-ocols { display: grid; grid-template-columns: repeat(var(--n), max-content); gap: var(--cell-gap) 16px; min-width: 0; }
  .tp-ob { min-width: 0; }
  .tp-ob-row { display: flex; gap: var(--cell-gap); }
  .tp-book { display: flex; align-items: center; justify-content: center; flex: none; width: var(--book-tile-w); min-height: var(--cell-min-h); padding: var(--cell-pad); border-radius: var(--cell-radius); background: var(--cell); box-sizing: border-box; }
  .tp-book .sl-book { height: 22px; max-width: 100%; object-fit: contain; }
  .tp-ob .cell { width: var(--book-tile-w); min-width: 0; box-sizing: border-box; }
  .tp-res .cell { min-width: 0; box-sizing: border-box; }
  .tp-ob .cell.tp-best { background: var(--best-bg); box-shadow: inset 0 0 0 1px var(--best); }
  .tp-card .fr-links { margin-top: 12px; }
  /* Last game: the header row; desktop a row per segment, every side of every
     market (price under the line); phones only the settled side of each bet */
  .tp-lg-teams { flex-wrap: wrap; margin-bottom: 14px; }
  .tp-lg-pts { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); color: var(--text); }
  .tp-lg-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: end; gap: 12px; }
  .tp-lg-row + .tp-lg-row { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-soft); }
  .tp-lg-seg { display: grid; gap: 2px; align-self: center; min-width: 0; }
  .tp-lg-sc { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); color: var(--text); white-space: nowrap; }
  .tp-lg-mks { display: flex; gap: 16px; min-width: 0; }
  .tp-lg-mk { flex: 2 1 0; display: grid; gap: 4px; min-width: 0; }
  .tp-lg-mk:has(.tp-lg-n3) { flex-grow: 3; }
  .tp-lg-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--cell-gap); }
  .tp-lg-sides.tp-lg-n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tp-lgd .cell, .tp-lgp .cell { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; box-sizing: border-box; text-align: center; }
  .tp-lgd .ob-ln, .tp-lgp .ob-ln { white-space: nowrap; }
  .tp-lgp { display: grid; gap: 12px; }
  .tp-lgp-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-lgp-col { display: grid; align-content: start; gap: 8px; min-width: 0; }
  /* phones: the segment's name on its own line, the score under it; no label in the card is ever cut */
  .tp-lgd .tp-gl, .tp-lgp .tp-gl { overflow: visible; text-overflow: clip; white-space: normal; }
  .tp-lgp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
  .tp-lgp .tp-res { display: grid; gap: 2px; }
  @media (max-width: 899px) { .tp-lgd { display: none; } }
  @media (max-width: 899px) {
    .tp-orow { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .tp-oseg { align-self: start; }
    .tp-ocols { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: var(--cell-gap); }
    .tp-n4 .tp-ocols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tp-orow .tp-ob-row > .tp-book, .tp-orow .tp-ob .cell { flex: 1 1 0; width: auto; min-width: 0; }
    .tp-orow .tp-book .sl-book { height: 18px; }
  }
  @media (min-width: 900px) { .tp-lgp { display: none; } }
  .tp-log .tp-table .tp-sc { padding-right: 22px; }
  /* Head to head pages (/{sport}/matchups/{a}-vs-{b}/, assets/sport.js renderH2H) */
  .h2h-static { margin: 0 0 6px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text); }
  .h2h-teams { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 10px; }
  .h2h-team { display: flex; align-items: center; gap: 12px; flex: 1 1 240px; min-width: 0; }
  .h2h-tw { display: grid; gap: 2px; min-width: 0; }
  .h2h-tn { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); color: var(--text); }
  .h2h-tn a { color: var(--text); text-decoration: none; }
  .h2h-rec, .h2h-rest { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .h2h-tabs { display: none; }
  /* Best lines now (team vs team): one column per market, no open (the Odds pages carry it) */
  .h2h-mks { display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: 12px 24px; min-width: 0; }
  @media (min-width: 1000px) {
    .h2h-mks3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .h2h-mks4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  }
  .h2h-mk { display: grid; align-content: start; gap: var(--cell-gap); min-width: 0; }
  .h2h-side { display: grid; grid-template-columns: 44px var(--book-tile-w) var(--book-tile-w); align-items: center; gap: var(--cell-gap); }
  .h2h-side .cell { width: var(--book-tile-w); box-sizing: border-box; }
  .h2h-sl { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text); }
  .h2h-cards { display: grid; gap: 8px; }
  .h2h-angle { display: grid; gap: 14px; }
  .h2h-bet + .h2h-bet { padding-top: 14px; border-top: 1px solid var(--border-soft); }
  .h2h-bh { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }
  .h2h-badge { padding: 2px 8px; border-radius: 999px; background: var(--gold); color: var(--on-gold); font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); letter-spacing: var(--ls-label); }
  .h2h-tl { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
  .h2h-tl li { display: flex; justify-content: space-between; gap: 12px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text); }
  .h2h-tr { font-weight: var(--fw-num); white-space: nowrap; }
  .h2h-th { display: inline-flex; align-items: center; gap: 6px; }
  .h2h-role { display: block; margin-top: 2px; }
  .h2h-pct { font-weight: var(--fw-num); }
  /* tables scroll inside their card, never the page; their words may wrap */
  .h2h-x { overflow-x: auto; }
  .h2h-x tbody th, .h2h-x td:not(.num) { white-space: normal; }
  .h2h-2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  /* starter lists (H2H Goalies / Pitchers, team page By Starting Goalie): desktop a
     row per starter under one label row; phones each starter stacked, his cells
     2-up with their own labels; never wider than the screen */
  .gl-teams { display: grid; gap: 12px; }
  .gl-teams .st-head h4 { display: flex; align-items: center; gap: 6px; }
  .gl-list { display: grid; }
  .gl-row { display: grid; grid-template-columns: minmax(150px, 1.4fr) repeat(var(--gl-n), minmax(0, 1fr)); gap: var(--cell-gap); align-items: center; padding: 10px 0; border-top: 1px solid var(--border-soft); }
  .gl-row.gl-head { border-top: 0; padding-top: 0; }
  .gl-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .gl-nm { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); color: var(--text); }
  .gl-gp { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .gl-c { text-align: right; min-width: 0; }
  .gl-head .gl-who, .gl-head .gl-c { color: var(--text-muted); }
  .gl-l { display: none; }
  @media (max-width: 640px) {
    .gl-head { display: none; }
    .gl-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; align-items: stretch; }
    .gl-row:first-child + .gl-row { border-top: 0; padding-top: 0; }
    .gl-who { grid-column: 1 / -1; flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
    .gl-c { text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; background: var(--cell); border-radius: var(--cell-radius); }
    .gl-l { display: block; color: var(--text-muted); }
  }
  .h2h-2col .st-head h4 { display: flex; align-items: center; gap: 6px; }
  .h2h-l5h { margin-top: 14px; }
  .h2h-l5 { display: flex; gap: var(--cell-gap); }
  .h2h-l5 .cell { flex: 1 1 0; min-width: 0; justify-content: center; }
  .mc-more { display: block; margin-top: 10px; }
  /* One Matchup link everywhere (Chris, Nov 29): "Matchup", no arrow, bottom left */
  .mu-link, a.mu-link { display: block; margin: 10px 0 0; text-align: left; color: var(--accent); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body);
    text-transform: none; letter-spacing: normal; text-decoration: none; white-space: nowrap; }
  .mu-link:hover { text-decoration: underline; }
  .mu-link.mu-inline { display: inline; margin: 0 0 0 6px; }
  .ob-mu th, .ob-mu td { padding-top: 0; border: 0; background: none; }
  .ob-mu .mu-link { margin: 2px 0 4px; }
  .ob-h2h { margin-left: 10px; color: var(--accent); font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); text-decoration: none; white-space: nowrap; }
  .tp-h2h { margin-left: 8px; color: var(--accent); font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); text-decoration: none; white-space: nowrap; }
  @media (max-width: 760px) {
    .h2h-team { flex-basis: 100%; }
    .h2h-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
    .h2h-tabs a { flex: 1 0 auto; padding: 8px 12px; border: 1px solid var(--card-border); border-radius: 999px; text-align: center; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); text-decoration: none; }
    .h2h-2col { grid-template-columns: minmax(0, 1fr); }
    /* phones: the market's sides side by side (3-way stacks), book and price
       share the width; nothing wider than the screen */
    .h2h-mks { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .h2h-mk { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; }
    .h2h-mk > .tp-gl { grid-column: 1 / -1; }
    .h2h-side { grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
    .h2h-side .cell { width: auto; }
    .h2h-side .tp-book { width: auto; min-width: 0; }
    .h2h-side .tp-book .sl-book { max-width: 100%; height: 18px; }
  }
  .tp-line { margin: 0 0 12px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-num); color: var(--text); }
  /* result cells (Matchups style): green = the team's side happened, gold = tie / push, gray = it didn't */
  .tp-res .cell { display: flex; width: 100%; }
  .tp-rc-w { background: var(--win-bg); box-shadow: inset 0 0 0 1px var(--win-line); }
  .tp-rc-p { background: var(--push-dim); }
  .tp-rc-n { opacity: 0.5; }
  .tp-rc-warm { background: var(--warm-bg); box-shadow: inset 0 0 0 1px var(--warm-line); }
  .tp-rc-cool { background: var(--cool-bg); box-shadow: inset 0 0 0 1px var(--cool-line); }
  .tp-res .ob-ln { font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); }
  .tp-mks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  /* Season Markets: a row per segment, the label at the left (the Next Game card's rows) */
  .tp-mrow { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 12px; }
  .tp-mrow + .tp-mrow { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-soft); }
  .tp-mrows .tp-mks { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
  @media (max-width: 899px) {
    .tp-mrow { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .tp-mrows .tp-mks { gap: var(--cell-gap); }
    .tp-mrows.tp-n4 .tp-mks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tp-mk-empty { display: none; }
  }
  .tp-mk { display: grid; align-content: start; gap: 2px; padding: 12px 14px; border: 1px solid var(--card-border); border-radius: var(--card-radius); background: var(--panel); min-width: 0; }
  .tp-card .tp-mk { border-color: transparent; background: var(--cell); }
  .tp-mk.tp-top, .tp-card .tp-mk.tp-top { border-color: var(--good); }
  .tp-big { font-family: var(--ff-display); font-size: var(--fs-big); font-weight: var(--fw-title); line-height: 1.05; color: var(--text); }
  .tp-rec { font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); color: var(--text); }
  .tp-mk .tm-u { font-family: var(--ff-body); font-size: var(--fs-num); }
  /* the Full Run (Premium): gold left bar, PREMIUM chip, gold dot on its pills */
  .fr-tag { display: block; width: max-content; margin-top: 4px; padding: 1px 5px; border-radius: 4px; background: var(--fr-tag-bg); color: var(--fr-tag-text); font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); letter-spacing: var(--ls-label); text-transform: uppercase; }
  .fr-tag { display: none !important; }   /* Premium labels are off until Chris decides guest / free / Premium */
  .fr-note { grid-column: 1 / -1; margin: 0; font-family: var(--ff-body); font-size: var(--fs-price); color: var(--text-muted); }
  .fr-lock { margin-right: 4px; vertical-align: -1px; }
  .tp-foot { margin: 8px 0 0; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .tp-chips { display: flex; flex-wrap: wrap; gap: 10px; }
  .tp-chip { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border: 1px solid var(--card-border); border-radius: var(--card-radius); background: var(--panel); }
  .tp-cn { min-width: 34px; padding: 4px 6px; border-radius: 6px; text-align: center; font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); line-height: 1.2; }
  .tp-ct { display: grid; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text); }
  .tp-ct small { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .tp-table { width: 100%; min-width: 0; border-collapse: collapse; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text); }
  .tp-table th { padding: 0 4px 8px; text-align: left; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); white-space: nowrap; }
  .tp-table td { padding: 4px; border-top: 1px solid var(--border-soft); vertical-align: middle; white-space: nowrap; }
  .tp-table tbody th { padding: 8px 4px; border-top: 1px solid var(--border-soft); }
  .tp-table .num { text-align: right; }
  .tp-table tbody tr.tp-sprow th { padding-top: 20px; }   /* last season's starters */
  .tp-table tbody th.tp-pl { font-size: var(--fs-team); font-weight: var(--fw-team); text-transform: none; letter-spacing: normal; color: var(--text); }
  .tp-log th.tp-lc { text-align: center; }
  .tp-log .tp-lc { width: 1%; min-width: 64px; }
  .tp-log .tp-res .cell { min-height: 36px; padding: 2px 6px; }
  .tp-o a { color: var(--text); text-decoration: none; }
  .tp-o a, .tp-o > span { display: inline-flex; align-items: center; gap: 6px; }
  .tp-vs { color: var(--text-muted); }
  .tp-more { margin-top: 10px; }
  .tp-hp { font-weight: var(--fw-num); }
  .tp-hp-up { color: var(--good); }
  .tp-hp-down { color: var(--bad); }
  .tp-hp-warm { color: var(--heat-3); }
  .tp-hp-cool { color: var(--accent-purple-text); }
  .tp-hr2 { color: var(--text-muted); }
  .tp-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tp-tile { display: grid; align-content: start; border: 1px solid var(--card-border); border-radius: var(--card-radius); background: var(--panel); overflow: hidden; min-width: 0; }
  .tp-tl { padding: 7px 14px; background: var(--title-bg); color: var(--title-text); font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); }
  .tp-tv { padding: 10px 14px 0; font-family: var(--ff-display); font-size: var(--fs-big); font-weight: var(--fw-title); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tp-ts { padding: 2px 14px 12px; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .tp-pills-phone, .ts-pills-phone { margin-bottom: 10px; }
  @media (max-width: 899px) {
    .tp-oc, .tp-fin { display: none; }
    .tp-ha th.num:not(.tp-on), .tp-ha td.num:not(.tp-on) { display: none; }
    .tp-log .tp-lc { width: auto; min-width: 0; }
    .tp-log .tp-res .cell { padding: 2px 3px; }
    .tp-table td, .tp-table th { padding-left: 2px; padding-right: 2px; }
    /* game log on phones: "11/19", the opponent's logo, no Final; nothing wraps */
    .tp-log .tp-table .tp-sc { padding-right: 8px; }
    .tp-log .tp-o a, .tp-log .tp-o > span { gap: 3px; }
    .tp-log .ob-ln, .tp-log .ob-pr { font-size: var(--fs-price); white-space: nowrap; }
    .tp-log .tp-lc .cell { min-height: 40px; }
  }
  @media (min-width: 900px) {
    .tp-cells { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .tp-mks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .tp-pills-phone, .ts-pills-phone, .ts-mob { display: none; }
    .tp-hists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  }
  /* Situational results, team view */
  .ts-ctl { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 10px; }
  .ts-ctl .seg-toggle { margin: 0; }
  .ts-gl { display: block; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--title-text); }
  .ts-desk { background: var(--panel); border: 1px solid var(--card-border); border-radius: var(--card-radius); padding: var(--card-pad); }
  .ts-table { width: 100%; min-width: 0; border-collapse: collapse; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text); }
  .ts-table thead th { padding: 0 6px 8px; text-align: left; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); white-space: nowrap; }
  .ts-table .num { text-align: right; }
  .ts-table td { padding: 7px 6px; border-top: 1px solid var(--border-soft); white-space: nowrap; }
  .ts-table tr.ts-grp th { padding: 16px 6px 6px; text-align: left; }
  .ts-table tbody tr.ts-grp:first-child th { padding-top: 4px; }
  .ts-name { display: inline-flex; align-items: center; gap: 6px; }
  .ts-row.ts-fit .ts-name { font-weight: var(--fw-team); }
  .ts-row.ts-dim { opacity: 0.45; }
  .ts-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--title-text); flex: none; }
  .ts-small { display: block; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-body); color: var(--text-muted); }
  .ts-pct { font-weight: var(--fw-num); }
  .ts-rec { color: var(--text-muted); }
  .ts-u { font-size: var(--fs-price); }
  .ts-u.pos { color: var(--good); } .ts-u.neg { color: var(--bad); } .ts-u.mid { color: var(--text-muted); }
  .ts-dash { color: var(--text-muted); }
  .ts-none { margin: 0 0 10px; color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .ts-mob .ts-gl { margin: 14px 0 6px; }
  .ts-list { list-style: none; margin: 0; padding: 0 var(--card-pad-x); background: var(--panel); border: 1px solid var(--card-border); border-radius: var(--card-radius); }
  .ts-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 9px 0; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .ts-list li + li { border-top: 1px solid var(--border-soft); }
  .ts-gp { grid-row: 2; font-size: var(--fs-price); color: var(--text-muted); }
  .ts-val { grid-column: 2; grid-row: 1 / 3; align-self: center; text-align: right; white-space: nowrap; }
  .ts-dow { margin-top: 16px; background: var(--panel); border: 1px solid var(--card-border); border-radius: var(--card-radius); padding: var(--card-pad); }
  .ts-dow-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
  .ts-dow-head .seg-toggle { margin: 0; }
  .ts-dow-m { margin-left: auto; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .ts-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
  .ts-strip.ts-strip-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ts-strip.ts-strip-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ts-strip.ts-strip-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Day of week / Rest: the intro line and the bucket definitions; the team's
     name on desktop, its code on phones */
  .ts-note { margin: 0 0 10px; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .ts-rest .ts-note:last-child { margin: 10px 0 0; }
  .ts-nm-m { display: none; }
  .ts-day .sit-tn { margin: 2px 0; white-space: nowrap; letter-spacing: 0; padding: 0 3px; }
  /* Day of week: Mon-Thu, then Fri-Sun (the last cell of row 2 empty), big numbers */
  .ts-strip.ts-strip-dow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--cell-gap); }
  .ts-strip-dow .ts-day { padding: 12px 4px; }
  .ts-strip-dow .ts-dp { font-size: var(--fs-title); }
  .ts-rl { margin: 10px 0 6px; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .ts-rest .ts-dow-head { margin-bottom: 0; }
  .ts-rest .ts-dl { text-align: center; }
  .ts-day { display: grid; justify-items: center; gap: 2px; padding: 8px 2px; border-radius: var(--cell-radius); background: var(--cell); min-width: 0; }
  .ts-day.ts-today { box-shadow: inset 0 0 0 1px var(--title-text); background: var(--title-bg); }
  .ts-dl { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .ts-dp { font-family: var(--ff-display); font-size: var(--fs-big); font-weight: var(--fw-title); line-height: 1.05; color: var(--text); }
  .ts-dr { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); white-space: nowrap; }
  @media (max-width: 899px) {
    .ts-desk, .ts-pills-desk { display: none; }
    .ts-nm-d { display: none; }
    .ts-nm-m { display: inline; }
    .ts-dp { font-size: var(--fs-team); font-family: var(--ff-body); font-weight: var(--fw-num); }
    .ts-strip-dow .ts-dp { font-size: var(--fs-big); font-family: var(--ff-display); font-weight: var(--fw-title); }
    .ts-dr { font-size: var(--fs-label); }
    .ts-dow-m { margin-left: 0; }
  }
  /* Teams index (Nov 19 spec): desktop table + Leaders, phones two-line rows */
  .tl-layout { display: grid; gap: 24px; margin-top: 12px; }
  @media (min-width: 1100px) { .tl-layout { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; } }
  .tl-card { padding: 4px var(--card-pad-x); }
  #leagueTable.tl-table { table-layout: auto; width: 100%; min-width: 0; border-collapse: collapse; }
  .tl-table th { padding: 10px 8px; text-align: left; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); white-space: nowrap; cursor: pointer; user-select: none; }
  .tl-table th.num, .tl-table td.num { text-align: right; }
  .tl-table td { padding: 9px 8px; border-top: 1px solid var(--border-soft); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-num); color: var(--text); white-space: nowrap; }
  #leagueTable.tl-table td.team-cell { display: table-cell; white-space: normal; font-weight: var(--fw-team); }
  .tl-team { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  .tl-table .arrow { margin-left: 4px; }
  .tl-small { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); white-space: nowrap; }
  .tl-nm { display: grid; min-width: 0; }
  .tl-game { display: block; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); white-space: nowrap; }
  .tl-more { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
  .tl-count { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .tl-mob-sort { margin: 0 0 6px; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); text-align: right; }
  .tlm-list { list-style: none; margin: 0; padding: 0 var(--card-pad-x); background: var(--panel); border: 1px solid var(--card-border); border-radius: var(--card-radius); }
  .tlm-list li + li { border-top: 1px solid var(--border-soft); }
  .tlm-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 0; color: inherit; text-decoration: none; }
  .tlm-l, .tlm-r { display: grid; gap: 4px; min-width: 0; }
  .tlm-r { justify-items: end; text-align: right; }
  .tlm-name { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tlm-sub { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); white-space: nowrap; }
  .tlm-rec { font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); color: var(--text); white-space: nowrap; }
  .tlm-r .tm-u { font-size: var(--fs-price); }
  .tll { display: none; }
  @media (min-width: 1100px) { .tll { display: grid; gap: 12px; align-content: start; } }
  @media (min-width: 1280px) {
    .tl-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); }
    .tll { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tll > .tll-h, .tll > .tll-all, .tll > .tl-small { grid-column: 1 / -1; }
  }
  .tll-h { margin: 0; font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-title); text-transform: uppercase; color: var(--text); }
  .tll-card { padding-bottom: 6px; }
  .tll-list { list-style: none; margin: 0; padding: 0; }
  .tll-list li + li { border-top: 1px solid var(--border-soft); }
  .tll-row { display: grid; grid-template-columns: 14px 20px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 0; color: inherit; text-decoration: none; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .tll-rank { color: var(--text-muted); }
  .tll-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: var(--fw-team); }
  .tll-row:hover .tll-name { color: var(--accent); }
  .tll-val { font-weight: var(--fw-num); white-space: nowrap; text-align: right; }
  .tll-sub { font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .tll-all { justify-self: start; }
  /* Stats Overview Leaders: Top 5 / Bottom 5 side by side, stacked on phones */
  .ldr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tll-row.sl-row { grid-template-columns: 14px 20px minmax(0, 1fr) auto 64px; }
  #leaders { scroll-margin-top: 120px; }
  @media (max-width: 640px) { .ldr-grid { grid-template-columns: minmax(0, 1fr); } }
  .tl-mob { display: none; }
  @media (max-width: 899px) {
    .tl-desk { display: none; }
    .tl-mob { display: block; }
  }
  /* One gold, light mode: never gold text on a light background. Labels,
     chips and units show dark ink on a gold chip; links and headings dark
     text with a gold underline or left bar. */
  :root[data-theme="light"] :is(.tm-u.mid, .st-u.mid, .tr-rec .mid, .ln-u.mid, .ln-best-u.mid, .ht-rec .mid, .pk-u.zero, .pk-u.mid, .os-u.mid,
    .hd-kicker, .hpp-kicker, .pv-label, .pv .pv-side-h, .pk-kick.gold, .pk-tierbox.tA .pk-tb-k, .pk-streak-n, .pv-box-stat .pv-box-h, .pv-box-stat .pv-box-num, .acct-tag, .gi-txt .gi-seg, .tl-streak.flat) {
    width: fit-content; padding: 0 5px; border-radius: 4px; border-color: var(--gold); background: var(--gold); color: var(--on-gold); }
  :root[data-theme="light"] :is(.u-mid, .btts-badge.tie) { background: var(--gold); color: var(--on-gold); }
  :root[data-theme="light"] :is(.hr2-label, a.hr2-label:hover) { color: var(--text); text-decoration: underline 3px var(--gold); text-underline-offset: 5px; }
  :root[data-theme="light"] .pv .pv-body h3 { color: var(--text); border-left: 3px solid var(--gold); padding-left: 8px; }
  /* desktop PICKS in light mode (Chris, Dec 3): yellow like dark mode, as a gold chip with dark ink (the phone pill's look) */
  :root[data-theme="light"] .hn-link.hn-gold { align-self: center; min-height: 38px; margin-left: 6px; padding: 0 14px; border-bottom: 0; border-radius: 8px; background: var(--gold); color: var(--on-gold); }
  @media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .hn-link.hn-gold { align-self: center; min-height: 38px; margin-left: 6px; padding: 0 14px; border-bottom: 0; border-radius: 8px; background: var(--gold); color: var(--on-gold); }
    :root:not([data-theme="dark"]) :is(.tm-u.mid, .st-u.mid, .tr-rec .mid, .ln-u.mid, .ln-best-u.mid, .ht-rec .mid, .pk-u.zero, .pk-u.mid, .os-u.mid,
      .hd-kicker, .hpp-kicker, .pv-label, .pv .pv-side-h, .pk-kick.gold, .pk-tierbox.tA .pk-tb-k, .pk-streak-n, .pv-box-stat .pv-box-h, .pv-box-stat .pv-box-num, .acct-tag, .gi-txt .gi-seg, .tl-streak.flat) {
      width: fit-content; padding: 0 5px; border-radius: 4px; border-color: var(--gold); background: var(--gold); color: var(--on-gold); }
    :root:not([data-theme="dark"]) :is(.u-mid, .btts-badge.tie) { background: var(--gold); color: var(--on-gold); }
    :root:not([data-theme="dark"]) :is(.hr2-label, a.hr2-label:hover) { color: var(--text); text-decoration: underline 3px var(--gold); text-underline-offset: 5px; }
    :root:not([data-theme="dark"]) .pv .pv-body h3 { color: var(--text); border-left: 3px solid var(--gold); padding-left: 8px; }
  }
  /* /stats/ (scripts/stats_index.py) and the Picks coming-soon pages */
  .st-go { margin-top: auto; padding-top: 10px; color: var(--accent); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); text-decoration: none; }
  .st-kind { display: block; color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); }
  .st-split { margin: 0 0 8px; font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); color: var(--text); }
  .st-tag { margin-left: 4px; color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); white-space: nowrap; }
  .st-teamlink { display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none; }
  .pk-soon { max-width: 640px; }
  .pk-soon p { font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .pk-soon-tab { margin-top: 18px; background: var(--panel); border: 1px solid var(--card-border); border-radius: var(--card-radius); padding: var(--card-pad); }
  .pk-soon-tab h2 { margin: 0 0 4px; }
  .pk-soon-tab p { color: var(--text-muted); margin: 0 0 10px; }

  .hc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
  .hc-card { display: block; background: var(--panel); border: 1px solid var(--border-soft); border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--text); min-height: 44px; }
  .hc-card:hover { border-color: var(--accent); }
  .hc-card.is-extra { display: none; }
  .hc-top { display: flex; justify-content: space-between; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text-muted); margin-bottom: 8px; }
  .hc-sport { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--accent); }
  .hc-sport .sport-icon { width: 16px; height: 16px; }
  .hc-teams { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); }
  .hc-team { display: inline-flex; align-items: center; gap: 6px; }
  .hc-at { color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .hc-score { margin-left: auto; font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); }
  .hc-line { margin-top: 8px; font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); color: var(--text-muted); }
  .hc-line + .hc-line { margin-top: 3px; }
  .hc-line.muted { font-weight: var(--fw-body); font-style: italic; color: var(--text-muted); }
  .hc-seg { margin-top: 8px; font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); }
  .hc-tag { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); margin-right: 4px; }
  .hc-chip { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); padding: 1px 6px; border-radius: 4px; margin-left: 6px; }
  .hc-chip.w { background: var(--good-dim); color: var(--good); }
  .hc-chip.l { background: var(--bad-dim); color: var(--bad); }

  .ht-row { background: var(--panel); border: 1px solid var(--border-soft); border-left: 3px solid var(--accent); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
  .ht-head { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
  .ht-sport { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .ht-tag { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--accent); border: 1px solid var(--accent); border-radius: 4px; padding: 1px 6px; }
  .ht-sentence { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); }
  .ht-rec { font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); color: var(--text-muted); margin-top: 3px; }
  .ht-picks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
  .ht-pick { font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); background: var(--panel-2); border: 1px solid var(--border-soft); border-radius: 6px; padding: 3px 7px; }
  .ht-pick.muted { color: var(--text-muted); opacity: 0.7; }
  .ht-agree { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--accent); margin-left: 4px; }
  .ht-locked { position: relative; }
  .ht-blur { filter: blur(6px); opacity: 0.7; pointer-events: none; user-select: none; max-height: 330px; overflow: hidden; }
  .rt-subbed .ht-blur { filter: none; opacity: 1; pointer-events: auto; user-select: auto; max-height: none; overflow: visible; }
  .rt-subbed .ht-overlay { display: none; }
  .hpp-label { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); margin: 0 0 10px; }
  .hpp .rt-done { color: var(--premium-text); }
  .ht-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; }
  .ht-lock-card { text-align: center; background: var(--panel); border: 1px solid var(--accent); border-radius: 14px; padding: 18px 22px; box-shadow: 0 12px 32px var(--shadow); max-width: 360px; }
  .ht-lock-title { font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); text-transform: uppercase; }
  .ht-lock-card p { color: var(--text-muted); margin: 6px 0 12px; }

  /* Premium: dark in both themes */
  .hpp { margin: 26px 0; background: var(--premium-bg); color: var(--premium-text); border-radius: 18px; padding: 30px 28px; }
  .hpp-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
  .hpp-kicker { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--gold); }
  .hpp h2 { font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); margin: 6px 0 12px; line-height: 1.02; }
  .hpp ul { margin: 0; padding-left: 18px; color: var(--premium-muted); line-height: 1.7; }
  .hpp-form label { display: block; font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); margin-bottom: 8px; }
  .hpp-row { display: flex; gap: 8px; }
  .hpp-row input { flex: 1; min-width: 0; min-height: 44px; border-radius: 10px; border: 1px solid var(--premium-muted); background: transparent; color: var(--premium-text); padding: 0 12px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .hpp-row input::placeholder { color: var(--premium-muted); }
  .hpp-msg { min-height: 1.2em; margin: 8px 0 0; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--premium-muted); }
  .hpp .btn-gold { background: var(--premium-gold); color: var(--premium-on-gold); }
  @media (max-width: 760px) { .hpp-inner { grid-template-columns: 1fr; } .hpp { padding: 24px 18px; } .hpp-row { flex-direction: column; } }

  /* ---- Preview (scripts/preview.py): the article, the home hero, the hub section, the image card ---- */
  .pv { display: grid; grid-template-columns: minmax(0, 720px) 300px; gap: 48px; justify-content: center; padding: 18px 0 32px; }
  .pv-main { min-width: 0; }
  .pv-label { margin: 0 0 10px; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--gold); }
  .pv .pv-h1 { margin: 0 0 12px; font-family: var(--ff-display); font-size: var(--fs-title); font-weight: var(--fw-title); line-height: 1.05; text-transform: none; letter-spacing: 0; color: var(--text); }
  .pv-dek { margin: 0 0 14px; font-family: var(--ff-body); font-size: var(--fs-dek); font-weight: var(--fw-body); line-height: 1.4; color: var(--text-muted); }
  .pv-by { margin: 0 0 18px; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .pv-img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; border-radius: var(--card-radius); border: 1px solid var(--card-border); background: var(--title-bg); }
  .pv-body { margin-top: 26px; font-family: var(--ff-read); font-size: var(--fs-read); font-weight: var(--fw-body); line-height: var(--lh-read); color: var(--text); }
  .pv-body p { margin: 0 0 1.1em; }
  .pv .pv-body h2 { margin: 1.6em 0 0.5em; padding-top: 18px; border-top: 1px solid var(--border-soft); font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); color: var(--text); }
  .pv .pv-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
  .pv .pv-body h3 { margin: 1.4em 0 0.4em; font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); text-transform: none; letter-spacing: 0; color: var(--gold); }
  .pv-body h3 a { color: inherit; text-decoration: none; }
  .pv-body h3 a:hover { text-decoration: underline; }
  .pv-body a, .pv-past a, .pv-more a { color: var(--accent); text-decoration: none; }
  .pv-body a:hover, .pv-past a:hover { text-decoration: underline; }
  /* the three boxes after the intro: Stat of the Night (yellow), League Trend (purple), Edge Play (green) */
  .pv-boxes { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--cell-gap); margin: 1.4em 0 1.6em; }   /* one per row, phones too */
  .pv-box { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: var(--card-radius); border: 1px solid var(--card-border); font-family: var(--ff-body); }
  .pv-box-stat { background: var(--push-dim); border-color: var(--gold); }
  .pv-box-trend { background: var(--title-bg); border-color: var(--accent); }
  .pv-box-edge { background: var(--good-dim); border-color: var(--good); }
  .pv .pv-body .pv-box p { margin: 0; }
  .pv-box-h { display: flex; align-items: center; gap: 6px; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); line-height: 1.3; }
  .pv-box-h .sport-icon { width: 16px; height: 16px; flex: none; }
  .pv-box-stat .pv-box-h, .pv-box-stat .pv-box-num { color: var(--gold); }
  .pv-box-trend .pv-box-h, .pv-box-trend .pv-box-num { color: var(--title-text); }
  .pv-box-edge .pv-box-h, .pv-box-edge .pv-box-num { color: var(--good); }
  .pv-box-num { font-family: var(--ff-display); font-size: var(--fs-hero); font-weight: var(--fw-title); line-height: 1; }
  .pv-box-line { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-team); line-height: 1.35; color: var(--text); }
  .pv-box-text { font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); line-height: 1.5; color: var(--text-muted); }
  .pv-box-text a.pv-team { color: var(--text); }
  .pv-book { display: inline-flex; vertical-align: middle; }
  .pv-book .sl-book { height: 18px; max-width: 72px; }
  /* a sport page's games; the all-sports page's sections */
  .pv .pv-body h2.pv-mh { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); letter-spacing: var(--ls-label); color: var(--text-muted); }
  .pv .pv-body h3.pv-gh { margin-bottom: 2px; }
  .pv-gh a { display: inline-flex; align-items: center; gap: 10px; }
  .pv-logos { display: inline-flex; align-items: center; gap: 4px; flex: none; }
  .pv .pv-body .pv-ven, .pv .pv-body .pv-smeta { margin: 0 0 0.7em; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .pv .pv-body h2.pv-sh { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
  .pv-sh .sport-icon { width: 24px; height: 24px; flex: none; }
  .pv .pv-body .pv-also { font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text-muted); }
  .pv .pv-body .pv-mt { margin-top: 1.6em; padding-top: 14px; border-top: 1px solid var(--border-soft); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text-muted); }
  .pv-mt .pv-go { margin-left: 6px; white-space: nowrap; }
  .pv-tsp { display: inline-flex; align-items: center; gap: 6px; }
  .pv-tsp .sport-icon { width: 16px; height: 16px; }
  .pv-more { margin: 0 0 1.2em; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); }
  .pv-quiet, .pv-past { margin: 18px 0 0; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .pv-past { padding-top: 14px; border-top: 1px solid var(--border-soft); }
  /* ad slots (preview.ad_slot, Site settings ADS_ON): invisible until something fills them */
  .ad-slot:empty { display: none; }
  .pv-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; align-self: start; }
  .pv-side-card { background: var(--panel); border: 1px solid var(--card-border); border-radius: var(--card-radius); padding: var(--card-pad); }
  .pv .pv-side-h { margin: 0 0 10px; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--gold); }
  .pv-side-card p { margin: 0 0 10px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text-muted); }
  .pv-trow { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--border-soft); color: var(--text); text-decoration: none;
    font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-num); }
  .pv-trow:first-of-type { border-top: 0; }
  .pv-trow:hover { color: var(--accent); }
  .pv-tmeta { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .pv-team { color: var(--text); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
  .pv-body a.pv-team:hover { color: var(--accent); text-decoration-color: var(--accent); }
  .pv-archive .pv-alist { display: grid; gap: var(--cell-gap); margin-top: 14px; }
  .pv-archive { grid-template-columns: minmax(0, 720px); }
  .pv-arow { display: flex; flex-direction: column; gap: 4px; padding: var(--card-pad); color: var(--text); text-decoration: none; }
  .pv-arow .pv-label { margin: 0; }
  .pv-arow:hover { border-color: var(--accent); }
  .pv-ahead { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); }
  .pv-go { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--accent); text-decoration: none; }
  .pv-go:hover { text-decoration: underline; }
  .pv-hero { display: grid; grid-template-columns: 592px minmax(0, 1fr); gap: 28px; align-items: center; }
  /* the preview art (preview.art): 1200:630, the share card without its words; dark in both themes */
  .pa { position: relative; display: block; box-sizing: border-box; width: 100%; aspect-ratio: 1200 / 630; container-type: inline-size; overflow: hidden;
    border-radius: var(--card-radius); border: 1px solid var(--card-border); background: var(--pc-grad); color: var(--pc-text); text-decoration: none; }
  .pa-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .pa-over { position: absolute; inset: 0; background: var(--pc-over); }
  .pa-ice .pa-over { background: var(--pc-over-ice); }
  .pa-chip { position: absolute; left: 4.5cqw; top: 4.5cqw; display: inline-flex; align-items: center; gap: 0.9cqw; padding: 0.5cqw 1.6cqw; border: 1px solid var(--pc-box-line); border-radius: 999px; background: var(--pc-box-bg);
    font-family: var(--ff-body); font-size: var(--fs-pa-chip); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--pc-text); white-space: nowrap; }
  .pa-chip .sport-icon { width: 2.4cqw; height: 2.4cqw; }
  .pa-mid { position: absolute; inset: 11cqw 4cqw 3cqw; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2cqw; text-align: center; }
  .pa-mu { display: flex; align-items: center; justify-content: center; gap: 4cqw; }
  .pa-logo, .pa-logo .team-badge, .pa-logo img { width: var(--pa-logo) !important; height: var(--pa-logo) !important; object-fit: contain; }
  .pa-logo { display: inline-flex; align-items: center; justify-content: center; }
  .pa-at { font-family: var(--ff-display); font-size: var(--fs-pa-at); font-weight: var(--fw-title); color: var(--pc-muted); }
  .pa-big { font-family: var(--ff-display); font-size: var(--fs-pa-big); font-weight: var(--fw-pc-heavy); line-height: 0.95; text-transform: uppercase; white-space: nowrap; color: var(--gold); }
  .pa-what { font-family: var(--ff-display); font-size: var(--fs-pa-what); font-weight: var(--fw-title); line-height: 1.1; text-transform: uppercase; color: var(--pc-text); }
  .pv-hero-h a, .pv-hub-h a { color: inherit; text-decoration: none; }
  .pv-hero-h a:hover, .pv-hub-h a:hover { text-decoration: underline; }
  .pv-hero-copy { display: flex; flex-direction: column; gap: 10px; }
  .pv-hero-copy .pv-label, .pv-hero-copy .pv-dek { margin: 0; }
  .fr-sec .pv-hero-h { margin: 0; font-family: var(--ff-display); font-size: var(--fs-hero); font-weight: var(--fw-title); line-height: 1.02; text-transform: none; letter-spacing: 0; color: var(--text); }
  .pv-hub-card { display: grid; grid-template-columns: 592px minmax(0, 1fr); gap: 28px; align-items: center; padding: var(--card-pad); }
  .pv-hub-h { margin: 0; font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); color: var(--text); }
  .pv-hub-p { margin: 0; font-family: var(--ff-read); font-size: var(--fs-body); font-weight: var(--fw-body); line-height: 1.6; color: var(--text-muted); }
  .pv-hub-card .pv-hero-copy .pv-label { margin: 0; }
  @media (max-width: 899px) {
    .pv { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .pv-side { position: static; }
    .pv-hero, .pv-hub-card { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  }
  @media (max-width: 640px) {
    .pv-side { display: none; }
  }
  /* the image card (preview.card_html; headless Chrome at 600x315, 2x) */
  .pc-body { margin: 0; width: 600px; height: 315px; overflow: hidden; background: var(--bg); }
  .pc { position: relative; box-sizing: border-box; width: 600px; height: 315px; overflow: hidden; background: var(--pc-grad); color: var(--pc-text); }
  /* the sport's surface fills the card; the brand purple over it */
  .pc-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .pc-over { position: absolute; inset: 0; background: var(--pc-over); }
  .pc-ice .pc-over { background: var(--pc-over-ice); }
  .pc-title { position: absolute; left: 28px; right: 116px; top: 20px; font-family: var(--ff-display); font-size: var(--fs-pc-title); font-weight: var(--fw-pc-heavy); line-height: 1; text-transform: uppercase; white-space: nowrap; color: var(--pc-text); }
  .pc-mark { position: absolute; right: 28px; top: 16px; display: inline-flex; }
  .pc-mark svg { width: 75px; height: auto; }
  .pc-dek { position: absolute; left: 28px; top: 52px; width: 500px; margin: 0; font-family: var(--ff-body); font-size: var(--fs-pc-dek); font-weight: var(--fw-body); line-height: 1.3; color: var(--pc-muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .pc-pill { position: absolute; left: 28px; top: 99px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border: 1px solid var(--pc-box-line); border-radius: 999px; background: var(--pc-box-bg);
    font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--pc-text); white-space: nowrap; }
  .pc-pill .sport-icon { width: 13px; height: 13px; }
  .pc-trend { position: absolute; left: 28px; top: 125px; width: 334px; }
  .pc-big { font-family: var(--ff-display); font-size: var(--fs-pc-big); font-weight: var(--fw-pc-heavy); line-height: 0.95; text-transform: uppercase; white-space: nowrap; color: var(--gold); }
  .pc-big-long { font-size: var(--fs-pc-big-long); }
  .pc-what { margin-top: 6px; font-family: var(--ff-display); font-size: var(--fs-pc-what); font-weight: var(--fw-title); line-height: 1.1; text-transform: uppercase; color: var(--pc-text); }
  .pc-what span { display: block; white-space: nowrap; }
  .pc-what-s { font-size: var(--fs-pc-what-s); }
  .pc-box { position: absolute; right: 28px; top: 112px; width: 190px; box-sizing: border-box; padding: 12px 10px; display: flex; flex-direction: column; align-items: center;
    border: 1px solid var(--pc-box-line); border-radius: 11px; background: var(--pc-box-bg); }
  .pc-mu { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 4px; width: 100%; }
  .pc-side { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; text-align: center; }
  .pc-logo { width: 48px; height: 48px; object-fit: contain; }
  .pc-side .team-badge { width: 48px !important; height: 48px !important; }
  .pc-name { font-family: var(--ff-display); font-size: var(--fs-pc-name); font-weight: var(--fw-title); line-height: 1.05; text-transform: uppercase; color: var(--pc-text); }
  .pc-name-s { font-size: var(--fs-pc-name-s); }
  .pc-at { margin-top: 12px; font-family: var(--ff-display); font-size: var(--fs-pc-at); font-weight: var(--fw-title); color: var(--pc-muted); }
  .pc-div { width: 100%; height: 1px; margin: 10px 0 8px; background: var(--pc-box-line); }
  .pc-mk { font-family: var(--ff-display); font-size: var(--fs-pc-mk); font-weight: var(--fw-title); text-transform: uppercase; letter-spacing: 0.04em; color: var(--pc-muted); }
  .pc-line { margin-top: 6px; padding: 3px 10px; border-radius: 6px; background: var(--gold); color: var(--on-gold); font-family: var(--ff-display); font-size: var(--fs-pc-mk); font-weight: var(--fw-title); white-space: nowrap; }
  .pc-url { position: absolute; right: 28px; bottom: 16px; font-family: var(--ff-display); font-size: var(--fs-pc-url); font-weight: var(--fw-title); letter-spacing: 0.04em; color: var(--pc-muted); }

  /* ---- index pages (front.index_page), Betting Guides (guides.py) ---- */
  .ix-group { scroll-margin-top: 120px; }
  .ix-week { color: var(--text-muted); }
  @media (min-width: 900px) { .ix .sl-cards, .ix .ht-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  .gd-h { margin: 22px 0 10px; font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); color: var(--accent-purple-text); }
  .gd-page .dp-body h2[id] { scroll-margin-top: 80px; }
  .gd-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .gd-crumb a { color: var(--accent); text-decoration: none; }
  .gd-table { margin: 0 0 14px; overflow-x: auto; }
  .gd-table .tp-table td, .gd-table .tp-table th { white-space: normal; padding: 8px 10px 8px 0; }
  .gd-table .tp-table td a { color: var(--accent); }
  .gd-back { margin-top: 18px; }
  .gd-back a { color: var(--accent); text-decoration: none; }
  .gd-block { margin: 28px 0 8px; padding-top: 16px; border-top: 1px solid var(--border-soft); }
  .gd-block h2 { margin: 0 0 8px; }
  .gd-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
  .gd-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); text-decoration: none; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .hl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
  /* Betting Guides v2: purple section headers, pills (icon tiles), Example cards, the index */
  .nw { white-space: nowrap; }
  .gd-page .dp-body > :not(.gd-table) { max-width: 720px; }
  .gd-page .dp-body h2.gd-sh { margin: 36px 0 14px; padding: 0; background: none; border: 0; border-radius: 0; color: var(--accent-purple-text); font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); text-transform: none; letter-spacing: 0; }
  .gd-tile { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--cell); border: 1px solid var(--card-border); box-sizing: border-box; }
  .gd-tile .sport-icon { width: 20px; height: 20px; }
  .gd-badge { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); letter-spacing: 0; color: var(--title-text); }
  .gd-pills { display: flex; flex-wrap: wrap; gap: 8px; }
  .gd-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 6px; border: 1px solid var(--card-border); border-radius: 999px; background: var(--panel); color: var(--text); text-decoration: none; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); box-sizing: border-box; }
  .gd-pill:hover { border-color: var(--accent); }
  .gd-pill .gd-tile { width: 30px; height: 30px; border-radius: 999px; }
  .gd-ex { margin: 4px 0 18px; }
  .gd-ex-h { margin: 0 0 10px; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .gd-ex-cells { display: grid; gap: var(--cell-gap); }
  .gd-ex-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gd-ex-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gd-ex .cell { min-width: 0; box-sizing: border-box; }
  .gd-ex .ob-ln { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); white-space: nowrap; }
  .gd-page .dp-body .gd-ex-r { margin: 10px 0 0; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); line-height: 1.5; }
  .gd-ex-row + .gd-ex-row { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-soft); }
  .gd-game-h { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); color: var(--text); }
  .gd-game-h span { margin-left: 4px; }
  .gd-bet-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: start; gap: 12px; }
  .gd-bet-row + .gd-bet-row { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-soft); }
  .gd-bet-n { padding-top: 14px; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .gd-page .dp-body .gd-ex-note { margin: 0 0 18px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text-muted); }
  .gd-intro p { margin: 0 0 12px; font-family: var(--ff-body); font-size: var(--fs-lede); font-weight: var(--fw-body); color: var(--text-muted); }
  .gi-sports { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .gi-bets { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
  .gi-sport, .gi-bet { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 14px; border: 1px solid var(--card-border); border-radius: var(--card-radius); background: var(--panel); color: var(--text); text-decoration: none; }
  .gi-sport:hover, .gi-bet:hover { border-color: var(--accent); }
  .gi-txt { display: grid; gap: 2px; flex: 1; min-width: 0; }
  .gi-txt b { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); }
  .gi-txt > span { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .gi-txt .gi-seg { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--gold); }
  .gi-go { display: none; color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-body); }
  @media (max-width: 899px) {
    .gd-bet-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .gd-bet-n { padding-top: 0; }
    .gd-game .gd-ex-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gi-sports { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .gi-go { display: block; }
  }
  .hl-card { display: flex; flex-direction: column; gap: 3px; min-height: 44px; background: var(--panel); border: 1px solid var(--border-soft); border-radius: 12px; padding: 13px 15px; text-decoration: none; color: var(--text); }
  .hl-card:hover { border-color: var(--accent); }
  .hl-card span { color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }

  .learn { max-width: 760px; }
  .learn h1 { font-family: var(--ff-display); font-size: var(--fs-title); font-weight: var(--fw-title); margin: 6px 0 8px; }
  .learn h2 { font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); margin: 26px 0 6px; scroll-margin-top: 80px; }
  .learn p { line-height: 1.6; color: var(--text); }
  .learn .lead { color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }


  /* ---- Today's Picks (picks/, scripts/picks.py) ---- */
  .pk-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin: 8px 0 18px; }
  .pk-kicker { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); letter-spacing: 0.06em; color: var(--accent); margin-bottom: 6px; }
  .pk-h1 { font-family: var(--ff-display); font-size: var(--fs-title); font-weight: var(--fw-title); text-transform: uppercase; }
  .pk-h1 span { color: var(--accent); }
  .pk-lede { color: var(--text-muted); max-width: 52ch; margin-top: 8px; }
  .pk-tiers { display: flex; gap: 8px; }
  .pk-tierbox { background: var(--panel); border: 1px solid var(--border-soft); border-radius: 10px; padding: 10px 12px; min-width: 84px; display: flex; flex-direction: column; gap: 2px; }
  .pk-tb-k { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .pk-tierbox.tA .pk-tb-k { color: var(--gold); }
  .pk-tierbox.tB .pk-tb-k { color: var(--accent); }
  .pk-tierbox b { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); }
  .pk-u { font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); }
  .pk-u.pos { color: var(--good); } .pk-u.neg { color: var(--bad); } .pk-u.zero, .pk-u.mid { color: var(--push); }
  .pk-features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
  .pk-feature { background: var(--panel); border: 1px solid var(--accent); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
  .pk-feature.streak { border-color: var(--gold); }
  .pk-f-head { display: flex; justify-content: space-between; gap: 10px; }
  .pk-kick { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--accent); }
  .pk-kick.gold { color: var(--gold); }
  .pk-meta { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); white-space: nowrap; }
  .pk-f-title { font-family: var(--ff-display); font-size: var(--fs-title); font-weight: var(--fw-title); text-transform: uppercase; }
  .pk-f-sub { font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text-muted); }
  .pk-f-sub b { color: var(--text); }
  .pk-streak { display: flex; align-items: center; gap: 12px; }
  .pk-streak-n { font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); color: var(--gold); }
  .pk-streak-t { font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); text-transform: uppercase; }
  .pk-dashes { display: flex; gap: 6px; flex-wrap: wrap; }
  .pk-dashes span { width: 22px; height: 5px; border-radius: 3px; background: var(--gold); }
  .pk-note, .pk-muted { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .pk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
  .pk-filters { background: var(--panel); border: 1px solid var(--border-soft); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
  .pk-frow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
  .pk-flabel { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); min-width: 84px; }
  .pk-pill { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); cursor: pointer; }
  .pk-pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
  .pk-sort { margin-left: auto; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text-muted); display: inline-flex; gap: 6px; align-items: center; }
  .pk-sort button { background: none; border: 0; min-height: 32px; padding: 0 2px; font: inherit; color: var(--text-muted); cursor: pointer; }
  .pk-sort button:hover { text-decoration: underline; }
  .pk-sort button.on { color: var(--text); font-weight: var(--fw-team); text-decoration: underline; text-underline-offset: 3px; }
  .pk-count { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); margin: 12px 2px 8px; }
  .pk-list { display: flex; flex-direction: column; gap: 12px; }
  .pk-card { position: relative; background: var(--panel); border: 1px solid var(--border-soft); border-radius: 12px; padding: 14px 16px; }
  .pk-card[hidden] { display: none; }
  .pk-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .pk-tier { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); padding: 2px 8px; border-radius: 4px; }
  .pk-tier.tA { background: var(--gold); color: var(--on-gold); }
  .pk-tier.tB { background: var(--accent); color: #fff; }
  .pk-tier.tC { border: 1px solid var(--border); color: var(--text-muted); }
  .pk-match { margin-left: auto; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text-muted); }
  .pk-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 6px; }
  .pk-title { font-family: var(--ff-display); font-size: var(--fs-title); font-weight: var(--fw-title); text-transform: uppercase; }
  .pk-price { font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); color: var(--accent); margin-left: 4px; }
  .pk-price.est { font-family: var(--ff-body); font-size: var(--fs-num); font-weight: var(--fw-num); color: var(--text-muted); }
  .pk-edge { margin-left: auto; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--good); background: var(--good-dim); border-radius: 5px; padding: 3px 8px; }
  .pk-angles { display: flex; flex-direction: column; }
  .pk-angle { display: flex; justify-content: space-between; gap: 10px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); padding: 6px 0; border-top: 1px solid var(--border-soft); }
  .pk-angle.info { color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); }
  .pk-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
  .pk-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
  .pk-tag { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--accent); background: var(--accent-dim); border: 1px solid var(--accent); border-radius: 999px; padding: 2px 9px; }
  .pk-agree { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .pk-res { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); padding: 2px 8px; border-radius: 5px; background: var(--neutral-chip); color: var(--text-muted); }
  .pk-res.W { background: var(--good-dim); color: var(--good); }
  .pk-res.L { background: var(--bad-dim); color: var(--bad); }
  .pk-card.locked { min-height: 150px; }
  .pk-blur { filter: blur(6px); opacity: 0.6; pointer-events: none; user-select: none; }
  .pk-lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 12px; }
  .pk-lock-k { font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); text-transform: uppercase; letter-spacing: 0.04em; }
  .pk-lock-t { font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text-muted); }
  .pk-empty { background: var(--panel); border: 1px dashed var(--border); border-radius: 12px; padding: 22px; color: var(--text-muted); }
  .pk-side { display: flex; flex-direction: column; gap: 12px; }
  .pk-box { background: var(--panel); border: 1px solid var(--border-soft); border-radius: 12px; padding: 14px 16px; }
  .pk-box h3 { font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); text-transform: uppercase; margin-bottom: 8px; }
  .pk-box p { font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text-muted); margin-bottom: 8px; }
  .pk-prow { display: grid; grid-template-columns: 1fr auto 56px; gap: 8px; align-items: center; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); padding: 7px 0; border-top: 1px solid var(--border-soft); }
  .pk-prow .pk-u { text-align: right; }
  .pk-yrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--border-soft); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .pk-yrow small { display: block; color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); }
  @media (max-width: 900px) { .pk-layout { grid-template-columns: 1fr; } }
  @media (max-width: 760px) { .pk-features { grid-template-columns: 1fr; } .pk-sort { margin-left: 0; } .pk-match { margin-left: 0; width: 100%; } .pk-flabel { width: 100%; } }


  /* ================= Matchup pages (scripts/matchup_render.js; Chris's rebuild, Nov 28) =================
     One layout for every sport. Sections: the condensed title with its own pills on the right. */
  .mx-page { max-width: 1100px; }
  .mx-sec { margin: 28px 0 0; scroll-margin-top: 120px; }
  .mx-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; margin: 0 0 10px; }
  .mx-title { font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); text-transform: uppercase; letter-spacing: 0.03em; color: var(--text); margin: 0; }
  .mx-pills { flex-wrap: wrap; }
  /* a section's pill rows: left-aligned, directly under its header, wrapping (no sideways scrolling) */
  .mx-pillbar { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 8px; margin: -2px 0 12px; }
  .mx-pillrow { justify-content: flex-start; }
  .mx-link { margin: 10px 0 0; font-family: var(--ff-body); font-size: var(--fs-price); }
  .mx-link a, .mx-preview a { color: var(--accent); text-decoration: none; }
  .mx-preview { margin: 28px 0 0; }
  .mx-card { background: var(--panel); border: 1px solid var(--card-border); border-radius: var(--card-radius); padding: var(--card-pad-y) var(--card-pad-x); }
  .mx-sub { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); margin: 6px 0 0; }
  /* result tags: the text always there; W green fill, L dims, T / P yellow, Over / Yes warm, Under / No purple */
  .mx-tag { display: inline-block; min-width: 18px; padding: 1px 6px; border-radius: 5px; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); text-align: center; color: var(--text); background: var(--cell); }
  .mx-t-w { background: var(--win-bg); box-shadow: inset 0 0 0 1px var(--win-line); }
  .mx-t-l { opacity: 0.5; }
  .mx-t-p { background: var(--push-dim); }
  .mx-t-warm { background: var(--warm-bg); box-shadow: inset 0 0 0 1px var(--warm-line); }
  .mx-t-cool { background: var(--cool-bg); box-shadow: inset 0 0 0 1px var(--cool-line); }
  /* status: a small dot and words, no boxed chip */
  .mx-status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .mx-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); }
  .mx-s-good i { background: var(--good); }
  .mx-s-accent i { background: var(--accent); }
  /* heat cells: green tint at 60%+, red at 40% or less */
  .mx-heat { padding: 6px 8px; border-radius: var(--cell-radius); background: var(--cell); }
  .mx-heat.mx-hot { background: var(--win-bg); box-shadow: inset 0 0 0 1px var(--win-line); }
  .mx-heat.mx-cold { background: var(--loss-bg); box-shadow: inset 0 0 0 1px var(--loss-line); }
  /* mirrored rows: away | label | home, a split bar, the Away / Home sub-row */
  .mx-mrow { padding: 10px 0; border-top: 1px solid var(--border-soft); }
  .mx-mrow:first-child { border-top: 0; }
  .mx-mline { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 10px; }
  .mx-mline .mx-mv:last-child { text-align: right; }
  .mx-mv { font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-num); color: var(--text); }
  .mx-mv.mx-dim { color: var(--text-muted); }
  .mx-rank { color: var(--text-muted); font-weight: var(--fw-price); }
  .mx-mlabel { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); text-align: center; }
  .mx-bar { display: flex; height: 4px; border-radius: 2px; overflow: hidden; margin: 6px 0 4px; background: var(--gold); }
  .mx-bar-a { background: var(--accent); }
  .mx-msub span:last-child { text-align: right; }
  .mx-msub { display: flex; justify-content: space-between; gap: 10px; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  /* 2. Game card: away | the status chip, @, venue · TV | home; phones stacked */
  .mx-game { margin-top: 16px; }
  .mx-gc { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
  .mx-gc-team { display: flex; align-items: center; gap: 12px; min-width: 0; }
  .mx-gc-home { flex-direction: row-reverse; text-align: right; }
  .mx-gc-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .mx-gc-name { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); color: var(--text); }
  .mx-gc-name a { color: inherit; text-decoration: none; }
  .mx-gc-ha { color: var(--text-muted); }
  .mx-gc-score { margin-left: auto; font-family: var(--ff-display); font-size: var(--fs-title); font-weight: var(--fw-title); color: var(--text); }
  .mx-gc-home .mx-gc-score { margin-left: 0; margin-right: auto; }
  .mx-gc-lose .mx-gc-score, .mx-gc-lose .mx-gc-name { color: var(--text-muted); }
  .mx-gc-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
  .mx-gc-at { font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); color: var(--text-muted); }
  .mx-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--title-bg); color: var(--title-text); font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); white-space: nowrap; }
  .mx-chip-live { background: var(--bad-dim); color: var(--bad); }
  .mx-strip { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; padding: 10px 14px; border: 1px solid var(--card-border); border-radius: var(--card-radius); font-family: var(--ff-body); font-size: var(--fs-body); color: var(--text-muted); }
  .mx-strip a { color: var(--accent); text-decoration: none; }
  .mx-strip-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
  .mx-btn { display: inline-block; padding: 6px 12px; border: 1px solid var(--accent); border-radius: 999px; }
  /* 3. Odds / Results card: the Matchups card's cells (mc-grid); a tap opens every book */
  .mx-odds .mc-grid { margin-bottom: 4px; }
  .mx-tc { display: inline-flex; align-items: center; gap: 6px; }
  .mx-tcode { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); color: var(--text); }
  .mx-cellbtn { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; position: relative; font: inherit; }
  .mx-cellbtn[aria-expanded="true"] .cell { box-shadow: inset 0 0 0 1px var(--accent); }
  .mx-cb { display: flex; justify-content: center; min-height: 14px; margin-top: 3px; line-height: 0; }
  .mx-book { border-radius: 3px; object-fit: contain; vertical-align: middle; }
  .mx-books { margin: 10px 0 6px; padding-top: 10px; border-top: 1px solid var(--border-soft); }
  .mx-bgrid th.mx-bk { text-align: left; }
  .mx-bk { display: flex; align-items: center; gap: 8px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text); white-space: nowrap; }
  .mx-3way { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); align-items: center; gap: var(--cell-gap); margin-top: 8px; }
  .mx-3c { display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .mx-3c .t-label { color: var(--text-muted); }
  .mx-3hit .cell { background: var(--win-bg); box-shadow: inset 0 0 0 1px var(--win-line); }
  .mx-lm { margin: 0 0 10px; font-family: var(--ff-body); font-size: var(--fs-price); color: var(--text-muted); }
  .mx-lm-h { margin-right: 6px; color: var(--warn); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); }
  .mx-none { margin: 0; font-family: var(--ff-body); font-size: var(--fs-body); color: var(--text-muted); }
  @media (max-width: 640px) {
    .mx-gc { grid-template-columns: 1fr; gap: 10px; }
    .mx-gc-home { flex-direction: row; text-align: left; }
    .mx-gc-home .mx-gc-score { margin-left: auto; margin-right: 0; }
    .mx-gc-mid { order: -1; flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .mx-gc-at { display: none; }
    .mx-3way { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mx-3way > .t-label { grid-column: 1 / -1; }
  }
  /* 4. Streaks · 5. Trends */
  .mx-list { list-style: none; margin: 0; padding: 0; }
  .mx-stk, .mx-tline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 0; border-top: 1px solid var(--border-soft); font-family: var(--ff-body); font-size: var(--fs-body); color: var(--text); }
  .mx-stk:first-child, .mx-tline:first-child { border-top: 0; }
  .mx-stk-w, .mx-tw { color: var(--text); }
  .mx-tw { flex: 1; min-width: 90px; }
  .mx-tp { font-weight: var(--fw-num); }
  .mx-rec { color: var(--text-muted); font-weight: var(--fw-price); }
  .mx-tsub { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin: 14px 0 8px; }
  .mx-tsub:first-of-type { margin-top: 0; }
  .mx-h3 { margin: 0; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  /* Matchup pages' trend groups (Chris, Dec 3: stand out more): Matchup / Team / League Trends in
     purple Barlow Condensed with a gold left bar (light mode: dark purple text, gold only as the bar) */
  #mx-trends .mx-tsub .mx-h3 { font-family: var(--ff-display); font-size: var(--fs-row-label); font-weight: var(--fw-section); letter-spacing: 0.4px; color: var(--accent-purple-text); padding-left: 10px; border-left: 3px solid var(--gold); line-height: 1.15; }
  .mx-tn { margin: 0; font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); color: var(--text); }
  .mx-lgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .mx-lt { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
  .mx-ltr { margin: 0; font-family: var(--ff-body); font-size: var(--fs-body); color: var(--text); }
  .mx-ltc { display: flex; flex-direction: column; gap: 6px; }
  .mx-ltc .tr-top { width: 100%; }
  .mx-ltbet { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-family: var(--ff-body); font-size: var(--fs-body); color: var(--text-muted); }
  .mx-ltbox .tr-filters { margin-bottom: 12px; }
  .mx-ltseg { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
  .mx-ltbox [hidden] { display: none !important; }
  /* 6. Side by Side · 7. Head to Head · 10. Game Logs */
  .mx-sbs-h { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 6px; }
  .mx-sw { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); color: var(--text); }
  .mx-sw::before { content: ''; width: 10px; height: 4px; border-radius: 2px; background: var(--accent); }
  .mx-sw-h::before { display: none; }
  .mx-sw-h::after { content: ''; width: 10px; height: 4px; border-radius: 2px; background: var(--gold); }
  .mx-tbl { width: 100%; min-width: 0; border-collapse: collapse; table-layout: auto; font-family: var(--ff-body); font-size: var(--fs-body); color: var(--text); }
  .mx-tbl th { padding: 6px 8px; text-align: left; font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); border-bottom: 1px solid var(--border-soft); }
  .mx-tbl td { padding: 8px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
  .mx-tbl tr:last-child td { border-bottom: 0; }
  .mx-gcol { display: flex; flex-direction: column; gap: 2px; }
  /* the shared game log (team Game Log, matchup Game Logs and Head to Head): plain table cells, colored result cells */
  .mx-log2 td { vertical-align: middle; }
  .mx-log2 .mx-d { color: var(--text-muted); white-space: nowrap; }
  .mx-log2 td.mx-lc { text-align: center; border-radius: 6px; }
  /* room between result cells: a transparent edge on each side, so two colored cells never touch (Chris, Dec 1) */
  .mx-log2 td.mx-lc { border-left: 3px solid transparent; border-right: 3px solid transparent; background-clip: padding-box; }
  @media (max-width: 640px) { .mx-log2 td.mx-lc { border-left-width: 2px; border-right-width: 2px; } }
  .mx-log2 td.mx-lc.res-win, .mx-log2 td.mx-lc.res-over, .mx-log2 td.mx-lc.res-under { border-bottom-color: transparent; }
  .mx-log2 th:not(:first-child):not(:nth-child(2)) { text-align: center; }
  .mx-log2 { border-collapse: separate; border-spacing: 0 4px; }
  .mx-log2 td.mx-lf { text-align: center; color: var(--text); }
  /* the closing price in the cell: beside the number on desktop, under it on phones (Chris, Nov 30) */
  .mx-log2 .mx-px { margin-left: 8px; font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  @media (max-width: 640px) { .mx-log2 .mx-px { display: block; margin-left: 0; } }
  /* Score and ML columns on desktop; phones: no ML column, the price under the score (Chris, Nov 30) */
  .mx-log2 .mx-px-m { display: none; }
  @media (max-width: 640px) { .mx-log2 .mx-mlc { display: none; } .mx-log2 .mx-px-m { display: block; } }
  td.mc-o .cell { background: var(--warm-bg); box-shadow: inset 0 0 0 1px var(--warm-line); }
  td.mc-u .cell { background: var(--cool-bg); box-shadow: inset 0 0 0 1px var(--cool-line); }
  .tp2-one { grid-template-columns: minmax(0, 1fr); }
  .mx-log2 td { white-space: nowrap; }
  @media (max-width: 480px) {
    .mx-log2 { font-size: var(--fs-price); }
    .mx-log2 .mx-lf { font-size: var(--fs-label); }
    .mx-log2 th, .mx-log2 td { padding: 6px 3px; }
    .mx-log2 .mx-tm img, .mx-log2 .mx-tm .team-badge, .mx-log2 .mx-tm .tlogo { display: none; }
  }
  .mx-d { white-space: nowrap; }
  .mx-at, .mx-fin-m { font-size: var(--fs-price); color: var(--text-muted); }
  .mx-fin-m { display: none; }
  .mx-pillrow { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; margin: 0 0 10px; }   /* no right-aligned pills (Chris, Nov 30) */
  @media (max-width: 640px) {
    .mx-fin { display: none; }
    .mx-fin-m { display: block; }
    .mx-tbl { table-layout: fixed; font-size: var(--fs-price); }
    .mx-tbl th, .mx-tbl td { padding: 6px 3px; overflow-wrap: anywhere; }
    .mx-tbl td .nw { white-space: normal; }
    .mx-tbl td .mx-tag { display: table; margin: 3px 0 0; }
    .mx-log tbody tr:nth-child(n+6) { display: none; }
  }
  /* 8. Situational Spots · 9. Scoring by Segment */
  .mx-grp th { padding-top: 14px; color: var(--title-text); }
  .mx-spots td .mx-heat { white-space: nowrap; }
  .mx-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 0; font-family: var(--ff-body); font-size: var(--fs-price); color: var(--text-muted); }
  .mx-legend .mx-heat { padding: 2px 8px; color: var(--text); }
  .mx-sstrip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 8px; }
  .mx-sstrip > div { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: var(--cell-radius); background: var(--cell); }
  .mx-sstrip .t-label { color: var(--text-muted); }
  .mx-sstrip b { font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); color: var(--text); }
  .mx-sstrip b.mx-warm { color: var(--warn); }
  .mx-sstrip b.mx-cool { color: var(--accent-purple-text); }
  @media (max-width: 640px) {
    .mx-spots td .mx-heat { white-space: normal; padding: 4px; }
    .mx-sstrip { grid-template-columns: 1fr 1fr; }
    .mx-sstrip > div:first-child { grid-column: 1 / -1; }
  }
  /* 11. Goalies (the gl-* list) · Starting Pitchers */
  .mx-sec .gl-c .mx-heat { text-align: left; }
  .mx-sec .gl-head .gl-c { text-align: left; padding-left: 8px; }
  @media (max-width: 640px) { .mx-sec .gl-c { background: none; padding: 0; } }
  .mx-sps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .mx-sp { display: flex; align-items: center; gap: 14px; }
  .mx-hand { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; height: 56px; border-radius: 12px; background: var(--title-bg); color: var(--title-text); font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); }
  .mx-hand-none { color: var(--text-muted); background: var(--cell); }
  .mx-sp-who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .mx-sp-team { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ff-body); font-size: var(--fs-price); color: var(--text-muted); }
  .mx-sp-name { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); color: var(--text); }
  @media (max-width: 640px) { .mx-sps { grid-template-columns: 1fr; } }
  /* 12. About this matchup */
  .mx-about p { margin: 0; max-width: 760px; font-family: var(--ff-body); font-size: var(--fs-body); line-height: 1.6; color: var(--text); }
  /* Situational Spots on phones: one market at a time, a line per spot */
  .mx-spm, .mx-spots-p { display: none; }
  .mx-prow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--border-soft); font-family: var(--ff-body); font-size: var(--fs-body); color: var(--text); }
  .mx-pgrp + .mx-prow { border-top: 0; }
  .mx-prow .mx-heat { flex: 0 0 auto; white-space: nowrap; }
  .mx-pname { min-width: 0; }
  .mx-pgrp { margin: 12px 0 2px; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--title-text); }
  @media (max-width: 640px) {
    .mx-spots { display: none; }
    .mx-spots-p, .mx-spm { display: block; }
    .mx-spm { flex-basis: 100%; }
  }
  /* a team anywhere on a matchup page: logo + code, linked (no underline) */
  .mx-tm { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; }
  .mx-page a.gm-team { color: inherit; text-decoration: none; }
  .mx-page a.gm-team:hover .mx-tcode, .mx-page a.gm-team:hover .nm-full { color: var(--accent); }
  .mx-ptm { display: inline-flex; align-items: center; gap: 6px; }
  .mx-nx { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
  /* ================= Team pages (scripts/team_render.js; the matchup pages' components) ================= */
  .tp2-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
  .tp2-gc { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
  .tp2-gh { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 8px 16px; }   /* pills next to the title, never pushed right (Chris, Nov 30) */
  .tp2-ml { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); color: var(--text); }
  .tp2-ml a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
  .tp2-at { color: var(--text-muted); }
  .tp2-grid .mc-team { width: 22%; }
  .tp2-seg { display: block; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .tp2-sc { display: block; font-family: var(--ff-body); font-size: var(--fs-price); color: var(--text); white-space: nowrap; }
  .tp2-note { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 2px; font-family: var(--ff-body); font-size: var(--fs-label); color: var(--text-muted); }
  .tp2-rs { white-space: nowrap; }
  .tp2-p { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-num); color: var(--text); }
  .tp2-sub { display: block; font-size: var(--fs-price); color: var(--text-muted); }
  .tp2-thin { opacity: 0.6; }
  .tp2-dash { color: var(--text-muted); }
  .tp2-top { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 4px; font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--title-text); background: var(--title-bg); }
  .tp2-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tp2-tile { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: var(--cell-radius); background: var(--cell); min-width: 0; }
  .tp2-tile .t-label { color: var(--title-text); }
  .tp2-tile b { font-family: var(--ff-body); font-size: var(--fs-big); font-weight: var(--fw-num); color: var(--text); line-height: 1.15; }
  .tp2-tsub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-family: var(--ff-body); font-size: var(--fs-price); color: var(--text-muted); }
  .tp2-opp { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
  .tp2-next { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 4px; font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--on-accent); background: var(--accent); }
  .mx-sec[data-tsf="next"] .tp2-nofit { display: none; }
  .tp2-sit td:first-child { min-width: 150px; }
  @media (max-width: 900px) { .tp2-two { grid-template-columns: 1fr; } }
  .tp2-page .mx-prow .mx-heat { min-width: 46%; }
  @media (max-width: 640px) {
    .tp2-mk, .tp2-sit { display: none; }
    .tp2-page .mx-prow .mx-heat { min-width: 42%; }
    .tp2-page .mx-spm { margin: 0 0 6px; }
    .tp2-mk th, .tp2-mk td, .tp2-sit th, .tp2-sit td { padding: 4px 2px; }
    .tp2-sit td:first-child { min-width: 0; }
    .tp2-tiles { grid-template-columns: 1fr 1fr; }
  }
  /* phones: the sticky "Jump to" menu (no sideways scrolling); 44px pills */
  .mx-jump { display: none; }
  @media (max-width: 640px) {
    .mx-jump { display: flex; align-items: center; gap: 8px; position: sticky; top: var(--mx-jump-top, 56px); z-index: 5; padding: 8px 0; background: var(--bg); }
    .mx-jump select { flex: 1; min-height: 44px; }
    .mx-pills .seg-btn { min-height: 44px; }
  }
  /* ---- Situational Results board (assets/situational.js boardHtml; Splits,
     team pages, matchup Situational Spots). 5 sections of sub-cards, 2-3 a
     row on desktop, stacked on phones; each cell = record + % or units
     (data-sxv on an ancestor: pct | units); result colors are the shared
     .res-* classes */
  .res-win { background: var(--win-bg); box-shadow: inset 0 0 0 1px var(--win-line); }
  .res-loss { background: var(--loss-bg); box-shadow: inset 0 0 0 1px var(--loss-line); }
  .res-over { background: var(--warm-bg); box-shadow: inset 0 0 0 1px var(--warm-line); }
  .res-under { background: var(--cool-bg); box-shadow: inset 0 0 0 1px var(--cool-line); }
  .res-none { background: transparent; }
  /* the board's edge cells: the % view colors by the % rule, the Units view by the units rule */
  .sx .pe-win, [data-sxv="pct"] .pe-win, .sx-legend .pe-win { background: var(--win-bg); box-shadow: inset 0 0 0 1px var(--win-line); }
  .sx .pe-loss, [data-sxv="pct"] .pe-loss, .sx-legend .pe-loss { background: var(--loss-bg); box-shadow: inset 0 0 0 1px var(--loss-line); }
  .sx .pe-over, [data-sxv="pct"] .pe-over, .sx-legend .pe-over { background: var(--warm-bg); box-shadow: inset 0 0 0 1px var(--warm-line); }
  .sx .pe-under, [data-sxv="pct"] .pe-under, .sx-legend .pe-under { background: var(--cool-bg); box-shadow: inset 0 0 0 1px var(--cool-line); }
  [data-sxv="units"] .sx-cell { background: transparent; box-shadow: none; }
  [data-sxv="units"] .ue-win { background: var(--win-bg); box-shadow: inset 0 0 0 1px var(--win-line); }
  [data-sxv="units"] .ue-loss { background: var(--loss-bg); box-shadow: inset 0 0 0 1px var(--loss-line); }
  [data-sxv="units"] .ue-over { background: var(--warm-bg); box-shadow: inset 0 0 0 1px var(--warm-line); }
  [data-sxv="units"] .ue-under { background: var(--cool-bg); box-shadow: inset 0 0 0 1px var(--cool-line); }
  .sx-sec { margin: 0 0 22px; }
  .sx-sec-head { margin: 0 0 10px; }
  .sx-title { margin: 0; font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); color: var(--text); }
  .sx-sub { margin: 2px 0 0; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .sx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
  .sx-grid .sx-wide { grid-column: span 2; }
  @media (max-width: 1100px) { .sx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 700px) { .sx-grid { grid-template-columns: minmax(0, 1fr); } .sx-grid .sx-wide { grid-column: auto; } }
  .sx-card { padding: 12px 14px; }
  .sx-card .st-head { margin-bottom: 4px; }
  .sx-row { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(var(--sx-n, 1), minmax(0, 1fr)); gap: 6px; align-items: center; padding: 5px 0;
    border-top: 1px solid var(--border-soft); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .sx-row.sx-n2 { --sx-n: 2; } .sx-row.sx-n3 { --sx-n: 3; }
  .sx-colhead { border-top: 0; padding: 2px 0 4px; }
  .sx-mh { text-align: center; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-muted); line-height: 1.2; }
  .sx-mhs { display: block; text-transform: none; letter-spacing: 0; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-body); color: var(--text-muted); }
  .sx-lbl { min-width: 0; overflow-wrap: anywhere; color: var(--text); }
  .sx-lbl.ind { padding-left: 12px; color: var(--text-muted); }
  .sx-cell { display: flex; align-items: baseline; justify-content: center; gap: 6px; flex-wrap: wrap; padding: 4px 6px; border-radius: 6px; min-height: 28px;
    font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-num); font-variant-numeric: tabular-nums; color: var(--text); }
  .sx-rec { color: var(--text); }
  /* % or units first, then the record in ( ) (Chris, Nov 30) */
  .sx-pct, .sx-u { color: var(--text); }
  .sx-cell:not(.sx-thin):not(.sx-none) .sx-rec { font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .sx-legend .sx-pct, .sx-legend .sx-u { font-size: var(--fs-price); font-weight: var(--fw-price); }
  .sx-u { display: none; }
  [data-sxv="units"] .sx-u { display: inline; }
  [data-sxv="units"] .sx-pct { display: none; }
  .sx-thin .sx-rec, .sx-small .sx-lbl { color: var(--text-muted); }
  .sx-none .sx-rec { color: var(--text-muted); }
  .sx-sl { margin: 8px 0 6px; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-muted); }
  .sx-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 6px; }
  .sx-tile { display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 1px solid var(--border-soft); border-radius: 8px; min-width: 0; }
  .sx-tl { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-muted); }
  .sx-tile .sx-cell { justify-content: flex-start; }
  .sx-note { margin: 8px 0 0; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .sx-legend { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 14px; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .sx-key { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 6px; color: var(--text); }
  .sx-legend > .sx-pct, .sx-legend > .sx-u { color: var(--text-muted); }
  /* phones: the record over the % / units inside each cell */
  @media (max-width: 480px) {
    .sx-cell { flex-direction: column; align-items: center; gap: 0; padding: 3px 4px; }
    .sx-row { grid-template-columns: minmax(0, 1.3fr) repeat(var(--sx-n, 1), minmax(0, 1fr)); }
  }
  /* team pages' "Next game": only the rows (and cards, tiles) the next game fits */
  [data-tsf="next"] .sx-row:not(.sx-colhead):not(.sx-fit), [data-tsf="next"] .sx-card.sx-nofit, [data-tsf="next"] .sx-tile:not(.sx-fit) { display: none; }
  .mx-page .mx-tsub { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 8px; }
  .mx-page .mx-tsub .mx-pills { justify-content: flex-start; }
  /* ---- Matchup pages (Chris, Nov 30) ---- */
  /* team names, opponents and dates: plain text, never purple links */
  .mx-page a.gm-team, .tp2-page a.gm-team { color: inherit; text-decoration: none; }
  .mx-page a.gm-team:hover, .tp2-page a.gm-team:hover { text-decoration: underline; }
  /* the "Matchup" link: a quiet button */
  .mx-page .mu-link, .tp2-page .mu-link, .mx-page .mx-btn { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border: 1px solid var(--card-border); border-radius: 8px; color: var(--text); text-decoration: none; background: var(--cell); }
  .mx-page .mu-link:hover, .tp2-page .mu-link:hover { border-color: var(--text-muted); text-decoration: none; }
  /* Odds: large cells, the sportsbook logo and the odds (the Odds page's Big Numbers size) */
  .mx-bigtbl td.mx-big .cell { min-height: var(--book-tile-sq); padding: 8px 6px; }
  .mx-bigtbl td.mx-big .cell.mx-bigc { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 10px; }
  .mx-bigo { display: flex; flex-direction: column; align-items: center; }
  .mx-bigbk { display: inline-flex; flex: none; }
  .mx-bigbk img { width: 22px; height: 22px; border-radius: 5px; }
  .mx-bigtbl .ob-ln { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-num); }
  .mx-bigtbl + .mx-bigtbl { margin-top: 10px; }
  /* 4 segment cards (Side by Side, Scoring): one row on desktop (2 x 2 when they don't fit), phones one card + a toggle */
  .mx-segcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; align-items: start; }
  .mx-mob { display: none; }
  @media (min-width: 701px) {
    .mx-segcards > [data-mx-pane][hidden] { display: block; }
    .mx-segcards.mx-n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  }
  @media (min-width: 701px) and (max-width: 1100px) { .mx-segcards.mx-n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 700px) { .mx-segcards { grid-template-columns: minmax(0, 1fr); } .mx-mob { display: contents; } }
  .mx-sbc { padding: 12px 14px; }
  .mx-sbc .mx-h3 { margin: 0 0 8px; }
  .mx-sb2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .mx-sbh { padding: 0 0 6px; border-bottom: 1px solid var(--border-soft); }
  .mx-sbh > :last-child { justify-self: end; }
  .mx-sbr { padding: 8px 0; border-bottom: 1px solid var(--border-soft); }
  .mx-sbr:last-child { border-bottom: 0; }
  .mx-sbl { margin: 0 0 4px; color: var(--text-muted); }
  .mx-sv { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .mx-sv + .mx-sv { text-align: right; align-items: flex-end; }
  .mx-svm { font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-num); color: var(--text); }
  .mx-svs { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .mx-scl { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border-soft); }
  .mx-scl:last-child { border-bottom: 0; }
  .mx-scn { display: flex; flex-direction: column; gap: 2px; font-family: var(--ff-body); font-size: var(--fs-body); color: var(--text); }
  .mx-scn small { font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .mx-scl b { font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-num); color: var(--text); white-space: nowrap; }
  .mx-scl b.mx-warm { color: var(--text); background: var(--warm-bg); box-shadow: inset 0 0 0 1px var(--warm-line); padding: 1px 8px; border-radius: 6px; }
  .mx-scl b.mx-cool { color: var(--text); background: var(--cool-bg); box-shadow: inset 0 0 0 1px var(--cool-line); padding: 1px 8px; border-radius: 6px; }
  .mx-tdesc { margin: 0 0 10px; }
  .mx-ttype { margin: 0 0 4px; font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); color: var(--text); }
  .mx-side { margin: 0 0 8px; }
  /* no sideways scrolling on phones: tables fit, cards stack */
  @media (max-width: 480px) {
    .mx-bigtbl td.mx-big .cell { padding: 6px 2px; }
    .mx-bigtbl td.mx-big .cell.mx-bigc { flex-direction: column; gap: 2px; }
    .mx-bigbk img { width: 18px; height: 18px; }
  }
  /* Picks (Chris, Dec 1): leans told as a story; themes, then cards (scripts/picks_pages.py) */
  .pk-note { margin: 4px 0 12px; }
  .pk .pk-filters { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 6px; padding: 0; background: none; border: 0; border-radius: 0; }
  .pk-segrows { display: flex; flex-direction: column; gap: 8px; }
  .pk-segrows[hidden], .pk-none[hidden] { display: none; }
  .pk-theme { margin-top: 22px; }
  .pk-theme[hidden], .pk-card[hidden] { display: none !important; }
  .pk-th { margin: 0; font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); color: var(--text); }
  .pk-def { margin: 2px 0 0; }
  .pk-card { display: flex; flex-direction: column; gap: 10px; }
  .pk-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .pk-game { display: inline-flex; align-items: center; gap: 5px; font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); color: var(--text); }
  .pk-game .pk-at { color: var(--text-muted); font-weight: var(--fw-body); margin: 0 2px; }
  .pk-time { font-size: var(--fs-price); color: var(--text-muted); white-space: nowrap; }
  /* a Stacked play's narratives: an even grid of badges, 2 across (Chris, Dec 1) */
  .pk-nar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .pk-n { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 4px 6px; border: 1px solid var(--card-border); border-radius: 999px; background: var(--cell); font-size: var(--fs-price); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pk-stats { display: flex; flex-direction: column; }
  .pk-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; border-top: 1px solid var(--border-soft); font-size: var(--fs-body); }
  .pk-row:first-child { border-top: 0; padding-top: 0; }
  .pk-k { color: var(--text-muted); }
  .pk-v { color: var(--text); font-weight: var(--fw-team); white-space: nowrap; }
  .pk-row-full { display: block; color: var(--text); }
  .pk-story { margin: 0; font-size: var(--fs-body); line-height: 1.55; color: var(--text); }
  .pk-pick { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); color: var(--text); }
  .pk-lean { font-size: var(--fs-label); font-weight: var(--fw-label); letter-spacing: 0.6px; text-transform: uppercase; color: var(--on-gold); background: var(--gold); border-radius: 4px; padding: 1px 6px; }
  .pk-price { font-size: var(--fs-num); font-weight: var(--fw-num); color: var(--text-muted); }
  .pk-why { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; font-size: var(--fs-body); color: var(--text); }
  .pk-why li::marker { color: var(--accent); }
  .pk-num { font-weight: var(--fw-team); color: var(--text); white-space: nowrap; }   /* a reason's percent and record (Chris, Dec 1) */
  /* ---- Guest / Free / Premium, test mode (scripts/access_client.js, config/access.json; Chris, Dec 1) ---- */
  .acc-lock { position: relative; }
  .acc-lock > *:not(.acc-cta):not(.acc-face), .acc-lock > td { filter: blur(6px); pointer-events: none; user-select: none; }
  .acc-cta { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px; text-align: center; }
  .acc-cta-row .acc-cta { position: static; }
  .acc-cta-t { margin: 0; font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); color: var(--text); }
  .acc-cta-d { margin: 0; font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .acc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-team); text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; }
  .acc-btn-gold { background: var(--gold); color: var(--on-gold); }
  /* ---- Gated content v2 (Chris, Dec 2). Tier by color only: neutral = open, purple = Free,
     gold = Premium; no pills or badges. Locked cards are compact: a header, a blurred line,
     one action. Guest: Join free (the first solid), quiet Premium ghosts, one strip. Free: one
     Premium card (market shown, result blurred), the rest behind one paywall panel. ---- */
  .acc-card { padding: 0 !important; display: flex !important; flex-direction: column; overflow: hidden; }
  .acc-card > *:not(.acc-face) { display: none !important; }
  .acc-face { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: var(--card-pad-y) var(--card-pad-x); }
  /* open cards: the border says which tier they belong to (no glow) */
  .st-card[data-tier="free"], .tr-card[data-tier="free"], .mx-card[data-tier="free"] { border-color: var(--free); }
  .st-card[data-tier="premium"], .tr-card[data-tier="premium"], .mx-card[data-tier="premium"] { border-color: var(--prem-border); }
  /* locked cards */
  .acc-card[data-cta="free"] { border: 2px solid var(--free); box-shadow: 0 0 0 4px var(--free-glow); }
  .acc-card[data-cta="free-quiet"] { border: 2px solid var(--free); }
  /* the locked Premium card, guest and free (Chris, Dec 2): gold only here */
  .acc-card[data-cta="premium"], .acc-card[data-cta="premium-ghost"] { border: 1px solid var(--prem-border) !important; border-radius: 14px !important; background: var(--prem-card); box-shadow: none; min-height: 170px; }
  [data-cta^="premium"] .acc-face { gap: 14px; padding: 18px; }
  [data-cta^="premium"] .acc-hd-end { color: var(--text-muted); font-weight: var(--fw-price); }
  .acc-chip { flex: none; padding: 3px 8px; border: 1px solid var(--prem-border); border-radius: 6px; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-team); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--premium-ink); white-space: nowrap; }
  .acc-b.acc-b-join { gap: 7px; min-height: var(--btn-h); padding: 0 18px 0 12px; border: 0; border-radius: 10px; background: var(--gold); color: var(--premium-on); font-family: var(--ff-display); font-size: var(--fs-gate-btn); font-weight: var(--fw-section); letter-spacing: 0.04em; text-transform: uppercase; }
  .acc-b.acc-b-join:hover { filter: brightness(0.92); }
  /* Free cards: the market pill and the blur in the card's purple (Chris, Dec 2) */
  [data-cta^="free"] .acc-chip { border-color: var(--free); color: var(--free-text); }
  [data-cta^="free"] .acc-blur-bar { background: var(--free); opacity: 0.5; }
  [data-cta^="premium"] .acc-blur-bar { background: var(--gold); opacity: 0.45; }
  .acc-hd-match:empty { display: none; }
  .acc-row[data-acc-need="free"]:not(tr)::after { background: var(--free); opacity: 0.5; }
  .acc-row[data-acc-need="premium"]:not(tr)::after { background: var(--gold); opacity: 0.45; }
  .acc-b.acc-b-join:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
  .acc-watch { flex: none; }
  .acc-ghost-link { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: var(--card-pad-y) var(--card-pad-x); color: inherit; text-decoration: none; border-radius: inherit; }
  .acc-ghost-link:focus-visible { outline: 3px solid var(--text); outline-offset: -3px; }
  .acc-hd { display: flex; align-items: center; gap: 6px; min-width: 0; font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); color: var(--text); }
  .acc-hd-match { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
  .acc-hd .sport-icon { width: 16px; height: 16px; flex-shrink: 0; }
  .acc-hd img, .acc-hd .tlogo { width: 18px !important; height: 18px !important; flex: none; }
  .acc-tm { display: inline-flex; align-items: center; gap: 5px; }
  .acc-at { color: var(--text-muted); font-weight: var(--fw-body); }
  .acc-hd-end { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--text-muted); }
  .acc-blur-bar { display: block; flex: 1; min-width: 40px; height: 12px; border-radius: 6px; background: var(--blur-a); filter: blur(3px); opacity: 0.75; }
  .acc-face > .acc-blur-bar, .acc-ghost-link > .acc-blur-bar { flex: none; }
  .acc-mk { display: flex; align-items: center; gap: 8px; font-family: var(--ff-body); font-size: var(--fs-body); color: var(--text); }
  .acc-mk strong { font-weight: var(--fw-team); white-space: nowrap; }
  .acc-act { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .acc-act-l { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-team); color: var(--free-text); }
  .acc-act-l.acc-prem-l { color: var(--premium-ink); }
  /* rows of a list (streak lists): placeholders, then one inline gate */
  .acc-row:not(tr) > * { visibility: hidden; }
  .acc-row:not(tr)::after { content: ""; position: absolute; left: 12px; top: 50%; width: 45%; height: 12px; margin-top: -6px; border-radius: 6px; background: var(--blur-a); filter: blur(3px); opacity: 0.75; }
  .acc-row:not(tr):nth-of-type(2n)::after { width: 60%; }
  .acc-rest { display: none !important; }
  .acc-inline { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 0; padding: 10px 12px; border: 2px solid var(--free); border-radius: 12px; }
  .acc-inline[data-tier="premium"] { border-color: var(--prem-border); box-shadow: 0 0 0 4px var(--prem-glow); }
  .acc-inline > span { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-team); color: var(--free-text); }
  .acc-inline[data-tier="premium"] > span { color: var(--premium-ink); }
  .acc-cta-row td { padding: 0 !important; border: 0 !important; }
  /* a guest's one Premium strip after a grid */
  .acc-strip { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 20px; border: 2px solid var(--prem-border); border-radius: var(--card-radius); background: var(--panel); }
  .acc-strip-t { margin: 0; font-family: var(--ff-display); font-size: var(--fs-gate-cta); font-weight: var(--fw-section); line-height: 1.05; letter-spacing: 0.02em; text-transform: uppercase; color: var(--premium-ink); }
  .acc-strip-d { margin: 4px 0 0; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text-muted); }
  /* a free account's paywall: placeholder cards blurred behind one panel */
  .acc-paywall { grid-column: 1 / -1; position: relative; min-height: 300px; }
  .acc-paywall-behind { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 16px; filter: blur(2px); opacity: 0.5; pointer-events: none; user-select: none; }
  .acc-ph-card { display: flex; flex-direction: column; gap: 10px; min-height: 120px; }
  .acc-paywall-front { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px; background: linear-gradient(180deg, transparent 0%, var(--scrim) 30%); }
  .acc-panel { width: min(480px, 100%); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: clamp(18px, 2vw, 28px); text-align: center; background: var(--panel); border: 2px solid var(--prem-border); border-radius: 16px; box-shadow: 0 0 0 6px var(--prem-glow); }
  .acc-panel[data-tier="free"] { border-color: var(--free); box-shadow: 0 0 0 6px var(--free-glow); }
  .acc-panel-t { margin: 0; font-family: var(--ff-display); font-size: var(--fs-gate-panel); font-weight: var(--fw-section); line-height: 1.05; letter-spacing: 0.02em; text-transform: uppercase; color: var(--premium-ink); }
  .acc-panel[data-tier="free"] .acc-panel-t { color: var(--text); }
  .acc-panel-d { margin: 0; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text-muted); }
  .acc-panel-link { font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-team); color: var(--premium-ink); }
  .acc-perks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; text-align: left; font-family: var(--ff-body); font-size: var(--fs-gate-body); font-weight: var(--fw-body); color: var(--text); }
  .acc-perks li { display: flex; align-items: center; gap: 8px; }
  .acc-perks svg { flex: none; color: var(--premium-ink); }
  /* a content gate: a whole section a state needs (skeleton behind one panel) */
  .acc-cg-off { display: none !important; }
  .acc-cg-wrap { position: relative; min-height: 360px; border: 1px solid var(--card-border); border-radius: var(--card-radius); background: var(--panel); overflow: hidden; }
  .acc-cg-behind { display: flex; flex-direction: column; gap: 12px; padding: 16px; filter: blur(2px); opacity: 0.5; }
  .acc-sk { height: 30px; border-radius: 8px; background: var(--cell); }
  .acc-panel-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--prem-tint); color: var(--premium-ink); }
  .acc-panel[data-tier="free"] .acc-panel-icon { background: var(--free-tint); color: var(--free); }
  .acc-li { list-style: none; }
  /* the shared pager: 3 at a time, More / Less (Chris, Dec 2) */
  [data-pg-off] { display: none !important; }
  .pg-bar { display: flex; flex-wrap: wrap; gap: 8px; }
  .pg-bar [hidden] { display: none; }
  /* Free on phones: one sticky Go Premium bar above the tab bar */
  /* Teams index, a guest: the Streak column blurred behind a small lock (Chris, Dec 2) */
  html[data-access="guest"] #leagueTable .tl-streak, html[data-access="guest"] .tlm-sub .tl-streak { filter: blur(5px); user-select: none; }
  html[data-access="guest"] #leagueTable td:has(> .tl-streak) { position: relative; }
  html[data-access="guest"] #leagueTable td:has(> .tl-streak)::after, html[data-access="guest"] .tlm-sub:has(.tl-streak)::after { content: ""; display: inline-block; width: 13px; height: 13px; background: var(--text-muted); -webkit-mask: var(--lock-mask) center / contain no-repeat; mask: var(--lock-mask) center / contain no-repeat; }
  html[data-access="guest"] #leagueTable td:has(> .tl-streak)::after { position: absolute; top: 50%; right: 50%; transform: translate(50%, -50%); }
  html[data-access="guest"] .tlm-sub:has(.tl-streak)::after { margin-left: 4px; vertical-align: -1px; }
  :root { --lock-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E"); }
  /* the action gate (Phase 5): a popover by the control; a bottom sheet on phones */
  .acc-ag { position: absolute; z-index: 70; width: min(340px, calc(100vw - 24px)); display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 18px; text-align: left; background: var(--panel); border: 2px solid var(--free); border-radius: 14px; box-shadow: 0 0 0 4px var(--free-glow), 0 12px 32px rgba(0, 0, 0, 0.25); }
  .acc-ag[data-tier="premium"] { border-color: var(--prem-border); box-shadow: 0 0 0 4px var(--prem-glow), 0 12px 32px rgba(0, 0, 0, 0.25); }
  .acc-ag[data-tier="premium"] .acc-ag-t { color: var(--premium-ink); }
  .acc-ag-t { margin: 0; padding-right: 32px; font-family: var(--ff-display); font-size: var(--fs-gate-panel); font-weight: var(--fw-section); line-height: 1.05; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text); }
  .acc-ag-x { position: absolute; top: 10px; right: 10px; }
  .acc-ag-sheet { position: fixed; left: 0; right: 0; bottom: 0; width: auto; padding: 12px 20px calc(20px + env(safe-area-inset-bottom)); border-width: 2px 0 0; border-radius: 18px 18px 0 0; box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.25); }
  .acc-ag-sheet .acc-ag-x { top: 16px; }
  .acc-ag-grab { align-self: center; width: 40px; height: 4px; margin-bottom: 4px; border-radius: 2px; background: var(--card-border); }
  .acc-ag-scrim { position: fixed; inset: 0; z-index: 69; background: var(--overlay); }
  .acc-ag-later { align-self: center; min-height: var(--btn-h); padding: 0 16px; border: 0; background: none; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-team); color: var(--text-muted); cursor: pointer; }
  .acc-sticky { display: none; }
  @media (max-width: 640px) {
    .acc-sticky { display: flex; position: fixed; left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 47; align-items: center; gap: 12px; padding: 10px 16px; background: var(--panel); border-top: 2px solid var(--prem-border); box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08); }
    .acc-sticky span { flex: 1; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-team); color: var(--text); }
    body:has(.acc-sticky) { padding-bottom: calc(126px + env(safe-area-inset-bottom)); }
    body:has(.acc-sticky) .acc-dev { bottom: 150px; }
  }
  /* the banner above the first gated section: Guest and Free (none for Premium) */
  .acc-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 18px; padding: 6px 6px 6px 16px; border-radius: 12px; border: 1px solid var(--free-tint-border); background: var(--free-tint); }
  .acc-banner[data-tier="premium"] { border-color: var(--prem-tint-border); background: var(--prem-tint); }
  .acc-banner p { margin: 0; padding: 6px 0; font-family: var(--ff-body); font-size: var(--fs-gate-body); font-weight: var(--fw-body); color: var(--text); }
  .acc-banner strong { font-weight: var(--fw-team); color: var(--text); }
  .acc-banner-end { display: flex; align-items: center; gap: 8px; margin-left: auto; font-family: var(--ff-body); font-size: var(--fs-gate-body); font-weight: var(--fw-body); color: var(--text); white-space: nowrap; }
  .acc-banner-link { padding: 0; border: 0; background: none; cursor: pointer; white-space: nowrap; font-family: var(--ff-body); font-size: var(--fs-gate-body); font-weight: var(--fw-team); color: var(--free-text); text-decoration: underline; }
  .acc-dismiss { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--text-muted); cursor: pointer; }
  .acc-dismiss:hover { background: var(--cell); }
  /* shared gate buttons (v2): solid purple (Free), purple outline, solid gold (Premium); 44px, 50px large */
  .acc-b { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--btn-h); padding: 0 16px; border: 2px solid transparent; border-radius: 10px; font-family: var(--ff-display); font-size: var(--fs-gate-btn); font-weight: var(--fw-section); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: filter 0.12s ease, transform 0.12s ease; }
  .acc-b:hover { filter: brightness(1.06); transform: translateY(-1px); }
  .acc-b-lg { min-height: var(--btn-h-lg); }
  .acc-b-block { display: flex; width: 100%; }
  .acc-b-free { background: var(--free); color: var(--free-on); }
  .acc-b-free-outline { background: transparent; color: var(--free-text); border-color: var(--free); }
  .acc-b-prem { background: var(--gold); color: var(--premium-on); }
  .acc-b:focus-visible, .acc-dismiss:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
  @media (prefers-reduced-motion: reduce) { .acc-b { transition: none; } .acc-b:hover { transform: none; } }
  /* a row with a locked card: every card the same height, tops and bottoms level (Chris, Dec 2) */
  .ht-pane .ht-cards:has(> .acc-card), .ht-cards:has(> .acc-card), .sl-cards:has(> .acc-card), .pk-cards:has(> .acc-card),
  .tr-cards:has(> .acc-card), .mt-grid:has(> .acc-card) { align-items: stretch; }
  .acc-phone-off { display: none !important; }
  .pk-hid { color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-price); }
  .pk-nar-lock { display: none; }
  .acc-lock .pk-nar-lock { display: grid; }
  /* ---------- /register/ and /pricing/ (Chris, Dec 2; scripts/plans_pages.py): Free purple, Premium gold ---------- */
  .pl { max-width: 1040px; margin: 0 auto; padding: 48px 0 24px; }
  .pl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pl-eyebrow { margin: 0 0 14px; font-family: var(--ff-body); font-size: var(--fs-pl-eyebrow); font-weight: var(--fw-label); letter-spacing: 0.16em; text-transform: uppercase; }
  .pl-eyebrow-free { color: var(--free-text); }
  .pl-eyebrow-prem { color: var(--premium-ink); }
  .pl-h1 { margin: 0 0 18px; font-family: var(--ff-display); font-size: var(--fs-pl-h1); font-weight: var(--fw-title); line-height: 0.98; text-transform: uppercase; color: var(--text); }
  .pl-h2 { margin: 0 0 22px; font-family: var(--ff-display); font-size: var(--fs-pl-h2); font-weight: var(--fw-title); line-height: 1.05; text-transform: uppercase; text-align: center; color: var(--text); }
  .pl-free { color: var(--free-text); }
  .pl-gold { color: var(--premium-ink); }
  .pl-lede { margin: 0 0 26px; max-width: 560px; color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-lede); line-height: 1.55; }
  .pl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--btn-h-lg); padding: 0 22px; border: 2px solid transparent; border-radius: 10px; font-family: var(--ff-display); font-size: var(--fs-pl-btn); font-weight: var(--fw-title); letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: filter 0.12s ease; }
  .pl-btn:hover { filter: brightness(1.07); }
  .pl-btn:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
  .pl-btn-block { display: flex; width: 100%; }
  .pl-btn-free { background: var(--free); color: var(--free-on); }
  .pl-btn-gold { background: var(--gold); color: var(--on-gold); }
  .pl-btn-gold-line { background: transparent; color: var(--premium-ink); border-color: var(--gold); }
  .pl-btn-ghost { background: transparent; color: var(--text-muted); }
  .pl-watch { flex: none; }
  .pl a:not(.pl-btn):not(.pl-up), .pl-co a { color: var(--free-text); }
  /* register: copy left, form right; stacked on phones */
  .pl-reg { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
  .pl-checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
  .pl-checks li { display: flex; align-items: center; gap: 12px; color: var(--text); font-family: var(--ff-body); font-size: var(--fs-pl-check); font-weight: var(--fw-team); }
  .pl-checks .pl-ck { color: var(--free-text); flex: none; }
  .pl-form { padding: 30px 32px 26px; border: 1px solid var(--free); border-radius: 16px; background: var(--panel); box-shadow: 0 0 0 4px var(--free-glow); }
  .pl-form-t { margin: 0 0 22px; color: var(--text); font-family: var(--ff-body); font-size: var(--fs-pl-form-t); font-weight: var(--fw-title); text-transform: none; letter-spacing: normal; }
  .pl-l { display: block; margin: 0 0 8px; color: var(--text); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-team); }
  .pl-in { display: block; width: 100%; box-sizing: border-box; min-height: 48px; margin: 0 0 18px; padding: 0 14px; border: 1px solid var(--card-border); border-radius: 10px; background: var(--bg); color: var(--text); font-family: var(--ff-body); font-size: var(--fs-team); }
  .pl-in::placeholder { color: var(--text-muted); }
  .pl-in:focus { outline: none; border-color: var(--free); box-shadow: 0 0 0 3px var(--free-glow); }
  .pl-form .pl-btn { margin-top: 6px; min-height: 48px; }
  .pl-small { margin: 16px 0 0; color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-price); line-height: 1.5; }
  .pl-alt { margin: 16px 0 0; text-align: center; color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-body); }
  .pl-alt a { display: inline-flex; align-items: center; min-height: 44px; font-weight: var(--fw-team); }
  .pl-up { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; margin-top: 16px; padding: 10px 22px; box-sizing: border-box; border: 1px solid var(--prem-tint-border); border-radius: 14px; background: var(--prem-tint); color: var(--text); font-family: var(--ff-body); font-size: var(--fs-team); text-decoration: none; }
  .pl-up strong, .pl-up-go { color: var(--premium-ink); font-weight: var(--fw-title); }
  .pl-up-go { white-space: nowrap; }
  .pl-up:hover { border-color: var(--gold); }
  /* pricing */
  .pl-hero { text-align: center; margin-bottom: 40px; }
  .pl-hero .pl-lede { margin: 0 auto; }
  .pl-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 330px)); justify-content: center; gap: 18px; }
  .pl-plan { position: relative; padding: 26px 24px 24px; border: 1px solid var(--card-border); border-radius: 14px; background: var(--panel); }
  .pl-plan-hi { border-color: var(--gold); background: var(--prem-card); }
  .pl-badge { position: absolute; top: -12px; left: 22px; padding: 3px 10px; border-radius: 999px; background: var(--gold); color: var(--on-gold); font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-title); letter-spacing: var(--ls-label); text-transform: uppercase; }
  .pl-plan-n { margin: 0 0 10px; color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); letter-spacing: 0.14em; text-transform: uppercase; }
  .pl-plan-hi .pl-plan-n { color: var(--premium-ink); }
  .pl-price { display: flex; align-items: baseline; gap: 4px; margin: 0 0 10px; }
  .pl-amt { color: var(--text); font-family: var(--ff-display); font-size: var(--fs-pl-price); font-weight: var(--fw-title); line-height: 1; }
  .pl-per { color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-price); }
  .pl-note { margin: 0 0 18px; color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-price); }
  .pl-note strong { color: var(--text); font-weight: var(--fw-team); }
  .pl-under { margin: 18px 0 0; text-align: center; color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-price); }
  .pl-under a { display: inline-flex; align-items: center; min-height: 44px; }
  .pl-you { display: none; max-width: 520px; margin: 0 auto; padding: 26px 24px; border: 1px solid var(--gold); border-radius: 14px; background: var(--prem-card); text-align: center; }
  .pl-you-t { margin: 0 0 8px; color: var(--premium-ink); font-family: var(--ff-display); font-size: var(--fs-pl-h2); font-weight: var(--fw-title); text-transform: uppercase; }
  html[data-access="premium"] [data-pl-up] { display: none; }
  html[data-access="premium"] .pl-you { display: block; }
  html[data-access="free"] [data-pl-guest], html[data-access="premium"] [data-pl-guest] { display: none; }
  .pl-sec { margin-top: 64px; }
  .pl-tbl-wrap { max-width: 712px; margin: 0 auto; overflow-x: auto; border: 1px solid var(--card-border); border-radius: 14px; background: var(--panel); }
  .pl-tbl { width: 100%; min-width: 0; border-collapse: collapse; font-family: var(--ff-body); font-size: var(--fs-body); }
  .pl-tbl th, .pl-tbl td { padding: 12px 18px; border-top: 1px solid var(--border-soft); text-align: left; color: var(--text); font-weight: var(--fw-body); }
  .pl-tbl thead th { border-top: 0; padding-top: 16px; padding-bottom: 16px; color: var(--text-muted); font-size: var(--fs-label); font-weight: var(--fw-label); letter-spacing: 0.14em; text-transform: uppercase; }
  .pl-tbl .pl-c-free, .pl-tbl .pl-c-prem { width: 120px; text-align: center; }
  .pl-tbl thead .pl-c-free, .pl-tbl thead .pl-c-prem { font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-title); letter-spacing: 0.04em; }
  .pl-tbl thead .pl-c-free { color: var(--free-text); }
  .pl-tbl thead .pl-c-prem { color: var(--premium-ink); }
  .pl-tbl .pl-c-prem { background: var(--prem-card); }
  .pl-tbl .pl-c-free .pl-ck { color: var(--free-text); }
  .pl-tbl .pl-c-prem .pl-ck { color: var(--premium-ink); }
  .pl-ck { display: inline-block; vertical-align: middle; }
  .pl-no { display: inline-block; width: 12px; height: 1px; vertical-align: middle; background: var(--text-muted); }
  .pl-faq { max-width: 632px; margin-left: auto; margin-right: auto; }
  .pl-q { margin: 0 0 10px; border: 1px solid var(--card-border); border-radius: 12px; background: var(--panel); }
  .pl-q summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 18px; color: var(--text); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-title); cursor: pointer; list-style: none; }
  .pl-q summary::-webkit-details-marker { display: none; }
  .pl-q summary:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; border-radius: 12px; }
  .pl-q-i { position: relative; width: 12px; height: 12px; flex: none; }
  .pl-q-i::before, .pl-q-i::after { content: ''; position: absolute; left: 0; top: 5px; width: 12px; height: 2px; border-radius: 1px; background: var(--text-muted); }
  .pl-q-i::after { transform: rotate(90deg); }
  .pl-q[open] .pl-q-i::after { display: none; }
  .pl-q p { margin: 0; padding: 0 18px 16px; color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-price); line-height: 1.55; }
  .pl-close { max-width: 640px; margin: 64px auto 0; padding: 36px 28px; border: 1px solid var(--card-border); border-radius: 16px; background: var(--panel); text-align: center; }
  .pl-close .pl-h2 { margin-bottom: 20px; }
  .pl-close-b { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
  .pl-co { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, 0.6); }
  .pl-co[hidden] { display: none; }
  .pl-co-card { width: 100%; max-width: 380px; padding: 28px 26px 18px; border: 1px solid var(--gold); border-radius: 16px; background: var(--prem-card); }
  .pl-co-t { margin: 0 0 12px; color: var(--text); font-family: var(--ff-display); font-size: var(--fs-pl-h2); font-weight: var(--fw-title); text-transform: uppercase; }
  .pl-co-test { margin: 0 0 18px; color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-price); }
  .pl-co-card .pl-btn + .pl-btn { margin-top: 8px; }
  @media (max-width: 860px) {
    .pl { padding-top: 28px; }
    .pl-reg { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .pl-plans { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  }
  @media (max-width: 640px) {
    .pl-form { padding: 24px 20px 20px; }
    .pl-up { padding: 10px 16px; }
    .pl-tbl th, .pl-tbl td { padding: 11px 12px; }
    .pl-tbl .pl-c-free, .pl-tbl .pl-c-prem { width: 76px; }
    .pl-close { padding: 28px 18px; }
  }
  @media (prefers-reduced-motion: reduce) { .pl-btn { transition: none; } }
  .acc-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.55); }
  .acc-m-card { position: relative; width: min(380px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 18px; background: var(--panel); border: 1px solid var(--card-border); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
  .acc-m-h { margin: 0; font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); color: var(--text); }
  .acc-m-p, .acc-m-small { margin: 0; font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); color: var(--text-muted); }
  .acc-m-small { font-size: var(--fs-price); }
  .acc-m-l { font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); color: var(--text-muted); }
  .acc-form { display: flex; flex-direction: column; gap: 8px; }
  .acc-in { min-height: 44px; padding: 0 12px; border: 1px solid var(--card-border); border-radius: 10px; background: var(--cell); color: var(--text); font-family: var(--ff-body); font-size: var(--fs-body); font-weight: var(--fw-body); }
  .acc-x { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; background: none; color: var(--text-muted); font-family: var(--ff-display); font-size: var(--fs-section); font-weight: var(--fw-section); cursor: pointer; }
  .acc-test { align-self: flex-start; padding: 3px 8px; border: 1px dashed var(--gold); border-radius: 6px; color: var(--text); font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); }
  .acc-plan { align-self: flex-start; padding: 1px 6px; border-radius: 4px; font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); }
  .acc-plan-free { border: 1px solid var(--card-border); color: var(--text-muted); }
  .acc-plan-premium { background: var(--gold); color: var(--on-gold); }
  .acc-go[hidden] { display: none; }
  .acct-item.acc-go { justify-content: center; margin-top: 6px; border-radius: 10px; background: var(--gold); color: var(--on-gold); font-family: var(--ff-body); font-size: var(--fs-team); font-weight: var(--fw-team); text-transform: uppercase; letter-spacing: 0.05em; }
  .acct-item.acc-go:hover { background: var(--gold); }
  [data-daily-card][aria-checked="true"] .acct-switch { background: var(--accent); }
  [data-daily-card][aria-checked="true"] .acct-switch::after { left: 18px; }
  .acc-dev { position: fixed; right: 12px; bottom: 84px; z-index: 250; display: flex; align-items: center; gap: 4px; padding: 6px; border: 1px dashed var(--gold); border-radius: 12px; background: var(--panel); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
  .acc-dev-l { padding: 0 6px; color: var(--text-muted); font-family: var(--ff-body); font-size: var(--fs-label); font-weight: var(--fw-label); text-transform: uppercase; letter-spacing: var(--ls-label); }
  .acc-dev-b { min-height: 32px; padding: 0 10px; border: 1px solid var(--card-border); border-radius: 8px; background: var(--cell); color: var(--text); font-family: var(--ff-body); font-size: var(--fs-price); font-weight: var(--fw-team); cursor: pointer; }
  .acc-dev-b[aria-pressed="true"] { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
  /* every trend card grid (Matchup, Team, League Trends; matchup pages): 3 across on desktop, 2 on tablets, 1 on phones (Chris, Nov 30) */
  @media (max-width: 900px) { .tt-box .tt-cards, .tr-cards, .mt-grid, .mx-lgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 640px) { .tt-box .tt-cards, .tr-cards, .mt-grid, .mx-lgrid { grid-template-columns: 1fr; } }