/* DugoutData v2 — "Under the Lights" components.
   Values come from docs/v2-redesign/TOKENS.md + the mockups; tokens live in
   tokens.css (load it first). Everything here is scoped to v2 pages: v1
   templates never load this file. */

/* ── Self-hosted faces (DESIGN.md: no CDN fonts, ever) ───────────────── */
@font-face { font-family:'Barlow'; font-weight:400; font-display:swap; src:url("../fonts/barlow-400.woff2") format('woff2'); }
@font-face { font-family:'Barlow'; font-weight:500; font-display:swap; src:url("../fonts/barlow-500.woff2") format('woff2'); }
@font-face { font-family:'Barlow'; font-weight:600; font-display:swap; src:url("../fonts/barlow-600.woff2") format('woff2'); }
@font-face { font-family:'Barlow'; font-weight:700; font-display:swap; src:url("../fonts/barlow-700.woff2") format('woff2'); }
@font-face { font-family:'Barlow'; font-weight:800; font-display:swap; src:url("../fonts/barlow-800.woff2") format('woff2'); }
@font-face { font-family:'Barlow Condensed'; font-weight:700; font-display:swap; src:url("../fonts/barlow-condensed-700.woff2") format('woff2'); }
@font-face { font-family:'Barlow Condensed'; font-weight:800; font-display:swap; src:url("../fonts/barlow-condensed-800.woff2") format('woff2'); }
/* Metric-matched Arial fallbacks (same overrides as components/team_styles.html). */
@font-face { font-family:'Barlow Fallback'; src:local('Arial'); size-adjust:96.98%; ascent-override:103.11%; descent-override:20.62%; line-gap-override:0%; }
@font-face { font-family:'Barlow Condensed Fallback'; src:local('Arial'); size-adjust:82.55%; ascent-override:121.13%; descent-override:24.23%; line-gap-override:0%; }

:root {
  --dd-font-display: 'Barlow Condensed', 'Barlow Condensed Fallback', sans-serif;
  --dd-font-body: 'Barlow', 'Barlow Fallback', sans-serif;
  --v2-tabbar-h: 64px;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--dd-bg); -webkit-text-size-adjust: 100%; color-scheme: dark; }
/* Pulling the page down (iOS rubber band) showed flat near-black above a
   header that starts lighter: a hard seam. This strip is fixed to the top
   of the window in the header's own top color and sits behind <body>, so it
   is only ever seen in that gap. */
body.v2::before { content: ''; position: fixed; top: 0; left: 0; right: 0; height: 40vh; z-index: -1; pointer-events: none; background: #191D1B; }
/* Opened from the home screen it is an app: the frame holds still and only
   lists scroll. A browser tab keeps the pull (it is also how people refresh). */
@media (display-mode: standalone) { html, body.v2 { overscroll-behavior-y: none; } }
body { font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--dd-accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
a.v2-plain { color: inherit; text-decoration: none; }
.v2-ul { color: var(--dd-text); text-decoration: underline; text-decoration-color: #4A504C; text-underline-offset: 3px; }
.v2-ul:hover { color: var(--dd-accent-hover); }

/* ── Chrome: desktop nav (≥900px), phone tab bar (<900px), footer ────── */
/* Home-screen app (2026-10-08): the status bar is translucent and the page
   runs under it (viewport-fit=cover), so the header keeps its flood behind
   the clock but its content starts below it. In Safari and on desktop the
   inset is 0 and nothing changes. */
.v2-head { position: relative; overflow: hidden; padding-top: env(safe-area-inset-top, 0px); }
body.v2 { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px);
  /* Every page fills the screen (2026-10-08): on a page shorter than the
     screen, the iOS home-screen app pins a fixed bar to a smaller layout
     viewport, so the tab bar sat ~60pt high on Search and drifted when the
     page was dragged. The long pages never showed it. */
  min-height: 100vh; min-height: 100dvh; box-sizing: border-box; }
.v2-nav { display: none; }
.v2-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.v2-logo-word { font-family: var(--dd-font-display); font-weight: 800; font-size: 25px; letter-spacing: .04em; color: var(--dd-text); }
.v2-logo-word b { color: var(--dd-accent); font-weight: 800; }
.v2-navlinks { display: flex; flex-wrap: wrap; gap: 4px 28px; font-weight: 500; font-size: 15px; }
.v2-navlinks a { color: var(--dd-text-muted); text-decoration: none; padding: 12px 0; }
.v2-navlinks a:hover { color: var(--dd-text); }
.v2-navlinks a[aria-current="page"] { color: var(--dd-text); box-shadow: inset 0 -2px 0 var(--dd-accent); }
.v2-navright { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.v2-navtext { color: var(--dd-text); text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 6px; }
.v2-avatar { width: 44px; height: 44px; border-radius: 22px; background: var(--dd-line); display: inline-flex; align-items: center; justify-content: center; color: var(--dd-text); text-decoration: none; }

/* Floating pill, Instagram's shape: five equal slots, the current one sits
   in a soft capsule. Icons only; names are aria-labels. */
.v2-tabbar { position: fixed; left: calc(12px + env(safe-area-inset-left, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 900;
             display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; gap: 2px;
             height: var(--v2-tabbar-h); padding: 6px; border-radius: 32px;
             box-shadow: 0 10px 30px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.09); }
.v2-tab { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 44px; border-radius: 26px;
          text-decoration: none; color: var(--dd-text); opacity: .78; -webkit-tap-highlight-color: transparent; }
.v2-tab[aria-current="page"] { opacity: 1; color: var(--dd-accent); background: rgba(255,255,255,.10); }
.v2-tab:focus-visible { outline: 2px solid var(--dd-accent); outline-offset: -2px; }
.v2-tab svg { width: 26px; height: 26px; }
.v2-tab[aria-current="page"] svg { stroke-width: 2.5; }
body.v2 { padding-bottom: calc(var(--v2-tabbar-h) + 16px + env(safe-area-inset-bottom)); }
/* Home-screen app (2026-10-21): the tab bar still sat at a different height
   on each tab (Rankings, Search, Account lower than Home; The Drop higher),
   because iOS pins a fixed bar against a page that scrolls itself. In the
   app the document never scrolls: html and body are the screen, and
   #v2-scroll (header, main, footer) is the one scroller, so every tab gives
   the bar the same box. Safari tabs and desktop scroll the page as before.
   html.v2-app is set in base.html's head; scripts scroll via ddScrollEl(). */
html.v2-app, html.v2-app body.v2 { height: 100%; overflow: hidden; }
html.v2-app body.v2 { min-height: 0; padding-bottom: 0; }
html.v2-app #v2-scroll { height: 100%; overflow-y: auto; overscroll-behavior-y: none;
  padding-bottom: calc(var(--v2-tabbar-h) + 16px + env(safe-area-inset-bottom)); }
/* 2026-10-22: the app's box can stop short of the screen, leaving the home
   indicator outside it (base.html sets html.v2-short). The bottom inset
   then only lifts the bar off the box's edge, so drop it: the bar rests 8pt
   above the strip, and what stacks on the bar drops with it. */
@media (max-width: 899px) {
  html.v2-short .v2-tabbar { bottom: 8px; }
  html.v2-short #v2-scroll { padding-bottom: calc(var(--v2-tabbar-h) + 16px); }
  html.v2-short .v2-toast { bottom: calc(var(--v2-tabbar-h) + 16px); }
  html.v2-short .v2-asanon { bottom: calc(var(--v2-tabbar-h) + 12px); }
}
/* 2026-11-13: scrolling down slides the bar off the bottom edge and any
   scroll back up brings it straight back (v2.js sets html.v2-bar-away).
   Same 250ms curve as the sheets. What stacks on the bar (the toast, the
   admin "viewing as signed out" pill) drops by the bar's height with it.
   The page keeps its bottom padding, so the last row is never under the
   bar when it returns. Reduce Motion fades it instead. */
@media (max-width: 899px) {
  .v2-tabbar, .v2-toast, .v2-asanon { transition: transform .25s cubic-bezier(.22, 1, .36, 1), opacity .25s cubic-bezier(.22, 1, .36, 1); }
  html.v2-bar-away .v2-tabbar { transform: translateY(calc(100% + 32px + env(safe-area-inset-bottom))); opacity: 0; pointer-events: none; }
  html.v2-bar-away .v2-toast, html.v2-bar-away .v2-asanon { transform: translateY(var(--v2-tabbar-h)); }
}
@media (max-width: 899px) and (prefers-reduced-motion: reduce) {
  .v2-tabbar { transition: opacity .15s linear; }
  .v2-toast, .v2-asanon { transition: none; }
  html.v2-bar-away .v2-tabbar { transform: none; }
}

.v2-footer { max-width: 1200px; margin: 0 auto; padding: 28px 16px 36px; border-top: 1px solid #1E2220;
             display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; font-size: 14px; color: var(--dd-text-subtle); }
.v2-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.v2-footer a { color: var(--dd-text-subtle); text-decoration: none; display: inline-block; padding: 10px 0; }
.v2-footer a:hover { color: var(--dd-text); }

.v2-main { padding: 16px var(--dd-gutter) 32px; display: flex; flex-direction: column; gap: 16px; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.dd-btn { font-family: var(--dd-font-body); white-space: nowrap; }
.dd-btn:hover { filter: brightness(1.06); }
/* Hold the label color on hover: the global a:hover recolor turned a link
   button's text to accent-hover, pale green on the green button. */
.dd-btn--pro:hover, .dd-btn--accent:hover, .dd-btn--primary:hover { color: var(--dd-bg); }
.dd-btn--secondary:hover { color: var(--dd-text); }
.dd-btn--lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.dd-btn--block { width: 100%; }
.v2-iconbtn { width: 44px; height: 44px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center;
              color: var(--dd-text); padding: 0; cursor: pointer; text-decoration: none; flex: none; }
.v2-pillbtn { height: 44px; padding: 0 18px; border-radius: 22px; color: var(--dd-text); font-weight: 600; font-size: 15px;
              display: inline-flex; align-items: center; gap: 6px; cursor: pointer; text-decoration: none; }
.v2-textbtn { background: none; border: 0; color: var(--dd-text); font-weight: 600; font-size: 15px; text-decoration: none;
              padding: 12px 4px; min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; }
.v2-textbtn:hover { color: var(--dd-accent-hover); }
.v2-outline { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 52px; padding: 0 18px;
              border-radius: 16px; border: 1px solid var(--dd-line); background: transparent; color: var(--dd-text);
              font-weight: 600; font-size: 15px; cursor: pointer; text-align: left; }
.v2-outline:hover { border-color: var(--dd-line-strong); background: var(--dd-surface); }
.v2-outline--center { justify-content: center; }

/* Follow: loud when it's the action, quiet once done (same as v1). */
.v2-follow { height: 44px; padding: 0 18px; border-radius: 22px; border: 0; background: var(--dd-accent); color: var(--dd-bg);
             font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; text-decoration: none; }
.v2-follow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.v2-follow .ico-check { display: none; }
.v2-hero.has-aside { grid-template-areas: "back actions" "ident ident" "aside aside"; }
.v2-hero-aside { grid-area: aside; position: relative; }
.v2-follow-why { margin: -12px 0 0; font-size: 13px; line-height: 1.4; color: var(--dd-text-muted); }
@media (min-width: 900px) {
  .v2-hero.has-aside { grid-template-areas: "ident actions" "ident aside"; row-gap: 10px; }
  .v2-hero-aside { max-width: 320px; justify-self: end; }
  .v2-follow-why { margin: 0; text-align: right; }
}
.v2-follow.following { background: rgba(24,28,26,.72); color: var(--dd-text); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.v2-follow.following .ico-plus { display: none; }
.v2-follow.following .ico-check { display: inline; stroke: var(--dd-accent); }

/* "Go Pro" + its quieter price, everywhere the same (README rule 5). */
.v2-pro { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.v2-pro-price { font-size: 13px; color: var(--dd-text-subtle); }

/* ── Hero (team) ──────────────────────────────────────────────────────── */
.v2-hero { position: relative; overflow: hidden; padding: 16px var(--dd-gutter) 20px; min-height: 214px;
           display: grid; grid-template-columns: auto 1fr; grid-template-areas: "back actions" "ident ident";
           align-content: space-between; row-gap: 28px; }
.v2-hero .dd-bank { position: absolute; pointer-events: none; }
.v2-hero-back { grid-area: back; position: relative; }
.v2-hero-actions { grid-area: actions; justify-self: end; position: relative; display: flex; gap: 8px; align-items: center; }
.v2-share { width: 44px; padding: 0; justify-content: center; }
.v2-desk-only { display: none; }
.v2-ident { grid-area: ident; position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.v2-ident h1 { font-size: 50px; overflow-wrap: anywhere; }
.v2-ident-sub { font-size: 14px; color: var(--dd-text-muted); }
.v2-ident-sub a { color: var(--dd-text); text-decoration: underline; text-decoration-color: #4A504C; text-underline-offset: 3px; }
.v2-tier { display: inline-block; font-size: 12px; font-weight: 600; color: var(--dd-text); border: 1px solid var(--dd-line-strong); border-radius: 999px; padding: 1px 8px; }

/* ── Cards, headings, tiles ───────────────────────────────────────────── */
.v2-card { background: var(--dd-surface); border-radius: 22px; padding: 20px; }
.v2-card--flush { padding: 6px 16px; }
.v2-card-title { font-weight: 600; font-size: 17px; }
.v2-sec { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.v2-sh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.v2-sh h2 { font-family: var(--dd-font-display); font-weight: 800; font-size: 26px; line-height: 1.05; }
.v2-sh-note { font-size: 13px; color: var(--dd-text-subtle); text-align: right; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-label { font-weight: 600; font-size: 17px; }
.v2-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; }
.v2-tile { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.v2-tile-v { font-family: var(--dd-font-display); font-weight: 800; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.v2-tile-k { font-size: 13px; color: var(--dd-text-subtle); }
.v2-rule { height: 1px; background: var(--dd-line); border: 0; margin: 0; }
.v2-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.v2-cell { background: var(--dd-surface); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }

/* ── Rank card ────────────────────────────────────────────────────────── */
.v2-rank { display: flex; flex-direction: column; gap: 18px; }
.v2-rank-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.v2-rank-num { font-family: var(--dd-font-display); font-weight: 800; font-size: 104px; line-height: .8; color: var(--dd-accent); font-variant-numeric: tabular-nums; }
.v2-rank-num.unranked { font-size: 56px; color: var(--dd-text); }
.v2-rank-of { font-size: 14px; color: var(--dd-text-subtle); margin-top: 6px; }
.v2-rank-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding-bottom: 2px; text-align: right; }
.v2-trend { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
.v2-trend svg { width: 11px; height: 11px; flex: none; }
.v2-arw { display: inline-block; width: .62em; height: .62em; margin-right: .22em; vertical-align: .02em; }
.v2-arw.dn { transform: rotate(180deg); }
.v2-scope { display: flex; gap: 4px; background: var(--dd-surface-2); border-radius: 12px; padding: 3px; }
.v2-seg { flex: 1; min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--dd-text-subtle);
          font-weight: 600; font-size: 15px; cursor: pointer; padding: 0 8px; }
.v2-seg[aria-selected="true"] { background: #2A2F2C; color: var(--dd-text); }
.v2-lock { display: flex; align-items: center; gap: 16px; }
.v2-lock-tile { width: 84px; height: 84px; border-radius: 20px; flex: none; display: flex; flex-direction: column;
                align-items: center; justify-content: center; gap: 4px; font-size: 12px; color: var(--dd-text-subtle); }
.v2-lock-body { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.v2-lock-body .v2-pro { margin-top: 6px; }
.v2-warn { font-size: 14px; color: var(--dd-text-muted); }

/* ── Small rows: data line, character note, last 5 ────────────────────── */
.v2-dataline { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dd-text-subtle); padding: 0 16px; margin: 14px 0 8px; }
.v2-dataline i { width: 6px; height: 6px; border-radius: 3px; background: var(--dd-accent); flex: none; }
.v2-sqline { font-size: 13px; color: var(--dd-down); padding: 0 4px; }
.v2-sqline a { color: inherit; font-weight: 600; }
.v2-note { display: flex; gap: 12px; align-items: flex-start; background: var(--dd-surface); border-radius: 18px; padding: 14px 16px;
           font-size: 15px; line-height: 1.45; color: var(--dd-text-muted); }
.v2-note svg { flex: none; margin-top: 2px; width: 18px; height: 18px; }
.v2-note b { color: var(--dd-text); font-weight: 700; }
.v2-last5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; list-style: none; margin: 0; padding: 0; }
.v2-l5 { background: var(--dd-surface); border-radius: 14px; height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.v2-l5-r { font-family: var(--dd-font-display); font-weight: 800; font-size: 20px; color: var(--dd-accent); }
.v2-l5.loss .v2-l5-r { color: var(--dd-down); }
.v2-l5.tie .v2-l5-r { color: var(--dd-text-subtle); }
.v2-l5-s { font-size: 13px; color: var(--dd-text-muted); font-variant-numeric: tabular-nums; }

/* ── Coach depth ──────────────────────────────────────────────────────── */
.v2-rot { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--dd-line); }
.v2-slot { width: 64px; flex: none; font-size: 12px; font-weight: 600; color: var(--dd-accent); border: 1px solid rgba(143,219,138,.35);
           border-radius: 999px; padding: 4px 0; text-align: center; }
.v2-rot-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.v2-rot-d { font-size: 13px; color: var(--dd-text-subtle); }
.v2-rot-era { text-align: right; }
.v2-rot-era b { display: block; font-family: var(--dd-font-display); font-weight: 800; font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; }
.v2-rot-era span { font-size: 12px; color: var(--dd-text-subtle); }
.v2-pbtn { background: none; border: 0; padding: 0; color: var(--dd-text); font-weight: 600; font-size: 16px; text-align: left; cursor: pointer;
           text-decoration: underline; text-decoration-color: #4A504C; text-underline-offset: 3px; min-height: 24px; }
.v2-pbtn:hover { text-decoration-color: var(--dd-accent); }
.v2-depth { padding: 12px 0; font-size: 14px; color: var(--dd-text-subtle); line-height: 1.9; }
.v2-depth .v2-pbtn { font-size: 14px; color: var(--dd-text-2); }

.v2-tabs { display: flex; gap: 4px; background: var(--dd-surface); border-radius: 12px; padding: 3px; }
.v2-panel { background: var(--dd-surface); border-radius: 22px; padding: 8px 16px 12px; }
.v2-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.v2-table th { height: 38px; font-size: 12px; font-weight: 600; color: var(--dd-text-subtle); text-align: right; border-bottom: 1px solid var(--dd-line); padding: 0 4px; white-space: nowrap; }
.v2-table td { height: 46px; text-align: right; border-bottom: 1px solid var(--dd-surface-2); color: var(--dd-text-muted); padding: 0 4px; font-variant-numeric: tabular-nums; }
.v2-table th:first-child, .v2-table td:first-child { text-align: left; padding-left: 0; }
.v2-table tr:last-child td { border-bottom: 0; }
.v2-table .p { color: var(--dd-text); font-weight: 600; white-space: nowrap; }
.v2-table .p small { font-weight: 500; font-size: 12px; color: var(--dd-text-subtle); margin-left: 3px; }
.v2-table .hot { color: var(--dd-accent); font-weight: 700; }
.v2-table tr[data-pitcher] { cursor: pointer; }
.v2-table tr[data-pitcher]:hover td { background: var(--dd-surface-2); }
.v2-foot { padding-top: 10px; font-size: 12px; color: var(--dd-text-subtle); }
.v2-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.v2-full { background: var(--dd-surface); border-radius: 22px; padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.v2-full .v2-table { min-width: 640px; font-size: 14px; }
.v2-full .v2-table td { height: 40px; }
.v2-subhead { font-size: 12px; font-weight: 600; color: var(--dd-text-subtle); margin-top: 8px; }
.v2-sqnote { background: var(--dd-surface-2); border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 1.6; color: var(--dd-text-muted); }
.v2-sqnote b { color: var(--dd-text); }
.v2-empty { background: var(--dd-surface); border: 1px dashed var(--dd-line-strong); border-radius: 18px; padding: 16px; text-align: center; color: var(--dd-text-subtle); font-size: 14px; }
.v2-empty a { color: var(--dd-accent); font-weight: 600; }

.v2-shape-hero { display: flex; flex-direction: column; gap: 6px; }
.v2-shape-k { font-size: 13px; color: var(--dd-text-subtle); }
.v2-shape-row { display: flex; align-items: center; gap: 12px; }
.v2-shape-v { font-family: var(--dd-font-display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--dd-text-muted); font-variant-numeric: tabular-nums; }
.v2-shape-v.now { color: var(--dd-accent); }
.v2-shape-sub { font-size: 14px; color: var(--dd-text-muted); }
.v2-shape-sub b { color: var(--dd-text); font-variant-numeric: tabular-nums; }

/* Game history */
.v2-games { width: 100%; border-collapse: collapse; }
.v2-games th { height: 38px; font-size: 12px; font-weight: 600; color: var(--dd-text-subtle); text-align: left; border-bottom: 1px solid var(--dd-line); padding: 0 6px 0 0; white-space: nowrap; }
.v2-games th button { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; min-height: 38px; }
.v2-games th button[aria-sort]::after { content: ' ▾'; }
.v2-games th button[aria-sort="ascending"]::after { content: ' ▴'; }
.v2-games td { min-height: 58px; height: 58px; border-bottom: 1px solid var(--dd-surface-2); padding: 6px 6px 6px 0; vertical-align: middle; }
.v2-games tr:last-child td { border-bottom: 0; }
.v2-games .res { font-weight: 700; font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.v2-games .res.l { color: var(--dd-down); }
.v2-games .res.s { color: var(--dd-text-subtle); }
.v2-games .opp { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.v2-games .opp small { display: block; font-weight: 400; font-size: 12px; color: var(--dd-text-subtle); margin-top: 2px; }
.v2-games .ha, .v2-games .dt { font-size: 13px; color: var(--dd-text-muted); white-space: nowrap; }
.v2-games .dt { text-align: right; }
.v2-games th.dt { text-align: right; }
.v2-games .act { width: 1%; white-space: nowrap; text-align: right; padding-right: 0; }
.v2-games tr.scrim td { opacity: .55; }
.v2-flagbtn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0;
              color: #8B918D; cursor: pointer; padding: 0; border-radius: 12px; }
.v2-flagbtn:hover { color: var(--dd-text); background: var(--dd-surface-2); }
.v2-flagbtn.flagged { color: var(--dd-accent); cursor: default; }
.v2-flagbtn svg { width: 16px; height: 16px; }

/* ── Glass gate over skeleton rows (README rule 4: never real data) ───── */
/* Ghost and panel share one grid cell: the gate is as tall as whichever is
   taller, so no dead band opens under the panel. */
.v2-gate { display: grid; }
.v2-gate > * { grid-area: 1 / 1; }
.v2-gate-ghost { display: flex; flex-direction: column; gap: 10px; }
.v2-gate-ghost .v2-sh h2 { color: #4A504C; }
.v2-skel-card { background: var(--dd-surface); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.v2-skel-row { display: flex; gap: 12px; align-items: center; }
.v2-skel-row span { display: block; height: 10px; border-radius: 5px; background: var(--dd-skeleton); }
.v2-skel-row span:first-child { width: 64px; height: 24px; border-radius: 12px; background: #1F2321; }
.v2-skel-row span:nth-child(2) { flex: 1; }
.v2-skel-row span:last-child { width: 36px; height: 18px; }
.v2-gate-panel { position: relative; align-self: start; margin-top: 40px; border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.v2-gate-panel h2 { font-weight: 600; font-size: 18px; font-family: var(--dd-font-body); }
.v2-gate-panel p { font-size: 14px; line-height: 1.45; color: var(--dd-text-muted); }

/* ── Bottom sheet, toast ──────────────────────────────────────────────── */
/* --v2-kb: the on-screen keyboard's height (v2.js). iOS lays its keyboard
   over the page without resizing it, so a bottom sheet with a field in it
   sat underneath; the scrim's padding lifts the sheet clear of it. */
.v2-scrim { position: fixed; inset: 0; z-index: 1000; background: var(--dd-scrim); display: flex; align-items: flex-end; justify-content: center;
            box-sizing: border-box; padding-bottom: var(--v2-kb, 0px); }
.v2-sheet { position: relative; width: 100%; max-height: calc(100dvh - 48px - var(--v2-kb, 0px)); overflow-y: auto; background: var(--dd-surface);
            border-radius: var(--dd-radius-sheet) var(--dd-radius-sheet) 0 0; padding: 10px 20px max(34px, env(safe-area-inset-bottom));
            display: flex; flex-direction: column; gap: 16px; box-shadow: 0 -20px 60px rgba(0,0,0,.5);
            overscroll-behavior: contain; }  /* reaching the end of the sheet never scrolls the page behind it */
/* The sheet is what scrolls, so nothing inside it may shrink to fit. A child
   with its own overflow (the .rx card in the why sheets) has a flex minimum of
   0, so it shrank to the sheet's max-height and clipped its rows instead. */
.v2-sheet > * { flex-shrink: 0; }
/* The sheet's scrollbar (2026-11-13). Phones overlay theirs, but a desktop
   with a mouse drew the browser's square grey track down the sheet's right
   edge, straight through the 28px corners. Now the track is clear, so the
   sheet's own surface and corners show, and the thumb is a slim inset pill
   tinted from the text colour, so it reads in both themes. The track stops
   short of the corners. Chrome and Safari take the -webkit- rules; only
   Firefox gets the standard properties, because Chrome ignores the -webkit-
   rules on any element that sets them. */
.v2-sheet::-webkit-scrollbar { width: 14px; background: transparent; }
.v2-sheet::-webkit-scrollbar-track { background: transparent; margin-block: var(--dd-radius-sheet); }
.v2-sheet::-webkit-scrollbar-thumb { min-height: 48px; border: 4px solid transparent; border-radius: 7px;
                                     background: color-mix(in srgb, var(--dd-text) 22%, transparent) padding-box; }
.v2-sheet::-webkit-scrollbar-thumb:hover { background-color: color-mix(in srgb, var(--dd-text) 40%, transparent); }
.v2-sheet::-webkit-scrollbar-corner { background: transparent; }
@supports not selector(::-webkit-scrollbar) {
  .v2-sheet { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--dd-text) 22%, transparent) transparent; }
}
/* Motion (tuned 2026-11-02): on a phone the sheet is a drawer, so it rides
   up from the bottom edge and back down; the scrim fades with it. Opens in
   250ms, closes in 150ms, one curve both ways, no delay on close. Opening
   needs no script (the entry plays whenever a scrim is un-hidden); v2.js
   adds .is-closing for the exit and hides the scrim when it ends (its
   fallback timer is sized to the 150ms exit). Escape closes with no exit.
   The exit has no "from", so a sheet part-way through a drag leaves from
   where it is. */
.v2-scrim:not([hidden]) { animation: v2-scrim-in .25s cubic-bezier(.22, 1, .36, 1); }
.v2-scrim:not([hidden]) > .v2-sheet { animation: v2-sheet-in .25s cubic-bezier(.22, 1, .36, 1); will-change: transform; }
.v2-scrim.is-closing { animation: v2-scrim-out .15s cubic-bezier(.22, 1, .36, 1) forwards; pointer-events: none; }
.v2-scrim.is-closing > .v2-sheet { animation: v2-sheet-out .15s cubic-bezier(.22, 1, .36, 1) forwards; }
@keyframes v2-scrim-in { from { background-color: transparent; } }
@keyframes v2-scrim-out { to { background-color: transparent; } }
@keyframes v2-sheet-in { from { transform: translateY(100%); } }
@keyframes v2-sheet-out { to { transform: translateY(100%); } }
@keyframes v2-dialog-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes v2-dialog-out { to { opacity: 0; transform: translateY(8px) scale(.98); } }
.v2-grab { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: #3A3F3C; flex: none; }
.v2-sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.v2-sheet-x { width: 44px; height: 44px; border-radius: 22px; background: var(--dd-line); border: 0; display: inline-flex;
              align-items: center; justify-content: center; color: var(--dd-text); cursor: pointer; flex: none; }
.v2-sheet-title { font-weight: 600; font-size: 22px; }
.v2-sheet-sub { font-size: 15px; color: var(--dd-text-muted); }
.v2-callout { display: flex; gap: 12px; background: var(--dd-surface-2); border-radius: 16px; padding: 14px; font-size: 14px; line-height: 1.45; color: var(--dd-text-muted); }
.v2-callout svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.v2-field { display: flex; flex-direction: column; gap: 8px; }
.v2-field > span { font-weight: 600; font-size: 15px; }
.v2-field > span small { font-weight: 400; color: var(--dd-text-subtle); font-size: 15px; }
.v2-input { width: 100%; background: var(--dd-bg); border: 1px solid var(--dd-line-strong); border-radius: 14px; padding: 12px 14px;
            color: var(--dd-text); font-family: var(--dd-font-body); font-size: 16px; }
.v2-input::placeholder { color: #7D837F; }
.v2-input:focus { border-color: var(--dd-accent); outline: none; }
textarea.v2-input { resize: vertical; min-height: 88px; }
.v2-stack { display: flex; flex-direction: column; gap: 6px; }

.v2-toast { position: fixed; left: 0; right: 0; margin: 0 auto; width: max-content; max-width: calc(100vw - 32px); z-index: 1100;
            bottom: calc(var(--v2-tabbar-h) + 16px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 14px;
            padding: 12px 16px; border-radius: 16px; color: var(--dd-text); font-size: 15px; }
.v2-toast a { color: var(--dd-accent); font-weight: 700; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }

/* Pitcher sheet */
.v2-pm-name { font-family: var(--dd-font-display); font-weight: 800; font-size: 40px; line-height: .98; overflow-wrap: anywhere; }
.v2-pm-line { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.v2-pm-line div { background: var(--dd-surface-2); border-radius: 16px; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.v2-pm-line b { font-family: var(--dd-font-display); font-weight: 800; font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.v2-pm-line span { font-size: 12px; color: var(--dd-text-subtle); }
.v2-pm-box { background: var(--dd-surface-2); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.v2-pm-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; background: #3A3F3C; }
.v2-pm-bar i { display: block; background: var(--dd-accent); }
.v2-pm-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 20px; font-size: 13px; color: var(--dd-text-muted); }
.v2-pm-row b { color: var(--dd-text); font-variant-numeric: tabular-nums; }
.v2-pm-fat { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--dd-text-muted); }
.v2-pm-fat > span:first-child { width: 108px; flex: none; }
.v2-pm-track { flex: 1; height: 10px; border-radius: 5px; background: #2A2F2C; }
.v2-pm-track i { display: block; height: 10px; border-radius: 5px; background: var(--dd-accent); }
.v2-pm-track i.hi { background: var(--dd-down); }
.v2-pm-fat b { width: 48px; text-align: right; color: var(--dd-text); font-variant-numeric: tabular-nums; }
.v2-pm-log { width: 100%; border-collapse: collapse; font-size: 14px; }
.v2-pm-log th { font-size: 12px; font-weight: 600; color: var(--dd-text-subtle); text-align: right; padding: 0 0 8px; border-bottom: 1px solid var(--dd-line); }
.v2-pm-log td { height: 40px; text-align: right; border-bottom: 1px solid #1F2321; font-variant-numeric: tabular-nums; }
.v2-pm-log th:nth-child(n+3), .v2-pm-log td:nth-child(n+3) { padding-left: 14px; width: 1%; }
.v2-pm-log th:nth-child(-n+2), .v2-pm-log td:nth-child(-n+2) { text-align: left; }
.v2-pm-log td:first-child { color: var(--dd-text-muted); white-space: nowrap; padding-right: 8px; }
.v2-pm-log td:nth-child(2) { font-weight: 600; }
.v2-pm-msg { padding: 24px 0; text-align: center; color: var(--dd-text-subtle); }

/* Search sheet */
.v2-search-bar { display: flex; gap: 8px; align-items: center; }
.v2-results { display: flex; flex-direction: column; min-height: 120px; }
.v2-result { display: flex; flex-direction: column; gap: 2px; padding: 12px 4px; min-height: 56px; border-bottom: 1px solid var(--dd-line);
             color: var(--dd-text); text-decoration: none; }
.v2-result:hover, .v2-result:focus-visible { background: var(--dd-surface-2); }
.v2-result b { font-weight: 600; }
.v2-result span { font-size: 13px; color: var(--dd-text-subtle); }
.v2-result.upcoming b { color: var(--dd-text-muted); }
.v2-hint { padding: 16px 4px; color: var(--dd-text-subtle); font-size: 14px; }

/* Claim form (public team page) */
.v2-claimlink { text-align: center; font-size: 14px; color: var(--dd-text-subtle); }
.v2-claimlink a { color: var(--dd-text); font-weight: 600; }
.v2-form { background: var(--dd-surface); border-radius: 22px; padding: 18px; position: relative; display: flex; flex-direction: column; gap: 12px; }
.v2-form .v2-sheet-x { position: absolute; top: 8px; right: 8px; }
.v2-roles { display: flex; gap: 8px; border: 0; padding: 0; margin: 0; }
.v2-roles label { flex: 1; position: relative; }
.v2-roles input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.v2-roles span { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 999px; border: 1px solid var(--dd-line-strong);
                 font-weight: 600; font-size: 14px; color: var(--dd-text-muted); cursor: pointer; }
.v2-roles input:checked + span { background: var(--dd-text); color: var(--dd-bg); border-color: var(--dd-text); }
.v2-roles input:focus-visible + span { outline: 2px solid var(--dd-accent); outline-offset: 2px; }
.v2-err { color: var(--dd-down); font-size: 14px; font-weight: 600; }
.v2-hp { position: absolute; left: -9999px; top: -9999px; }
.v2-success { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--dd-surface); border-radius: 18px;
              padding: 16px; font-weight: 600; font-size: 15px; }
.v2-success svg { color: var(--dd-accent); }

/* ── "Why are we ranked here?" (components/rank_explain.html) on dark ── */
body.v2 .rx { margin-top: 0; border: 0; border-radius: 22px; background: var(--dd-surface); font-size: 15px; color: var(--dd-text); }
body.v2 .rx > h2 { font-size: 26px; border-bottom: 1px solid var(--dd-line); padding: 16px 18px 12px; }
body.v2 .rx-loading, body.v2 .rx-note, body.v2 .rx-sub, body.v2 .rx-foot, body.v2 .rx-pick,
body.v2 .rx-res small, body.v2 .rx-opp small, body.v2 .rx-impact small, body.v2 .rx-wf-row small,
body.v2 .rx-vs thead th { color: var(--dd-text-subtle); }
body.v2 .rx-summary { background: var(--dd-surface-2); border-bottom: 1px solid var(--dd-line); color: var(--dd-text-2); }
body.v2 .rx-summary b, body.v2 .rx-foot a, body.v2 .rx-all summary { color: var(--dd-accent); }
body.v2 .rx-block, body.v2 .rx-gated { border-bottom: 1px solid var(--dd-line); }
body.v2 .rx-track { background: var(--dd-surface-2); }
body.v2 .rx-bar { background: #5A605C; }
body.v2 .rx-bar.pos, body.v2 .rx-bar.total { background: var(--dd-accent); }
body.v2 .rx-bar.neg { background: var(--dd-down); }
body.v2 .rx-val.pos, body.v2 .rx-res.w, body.v2 .rx-spots.pos, body.v2 .rx-vs td.better { color: var(--dd-accent); }
body.v2 .rx-val.neg, body.v2 .rx-spots.neg, body.v2 .rx-res.l { color: var(--dd-down); }
body.v2 .rx-res.t, body.v2 .rx-spots.zero { color: var(--dd-text-subtle); }
body.v2 .rx-wf-row.total { border-top-color: var(--dd-line-strong); }
body.v2 .rx-row { background: transparent; border: 1px solid var(--dd-line); border-radius: 14px; color: var(--dd-text); min-height: 52px; }
body.v2 .rx-row:hover { background: var(--dd-surface-2); border-color: var(--dd-line-strong); }
body.v2 .rx-why, body.v2 .rx-lock p, body.v2 .rx-text, body.v2 .rx-moves { color: var(--dd-text-muted); }
body.v2 .rx-vs th, body.v2 .rx-vs td { border-bottom-color: var(--dd-line); }
body.v2 .rx-ghost-row span, body.v2 .rx-ghost-row span:nth-child(2) { background: var(--dd-skeleton); }
body.v2 .rx-lock { background: var(--dd-glass-bg); -webkit-backdrop-filter: blur(var(--dd-glass-blur)) saturate(140%);
                   backdrop-filter: blur(var(--dd-glass-blur)) saturate(140%); border: 1px solid var(--dd-glass-border); border-radius: 18px; }
body.v2 .rx-cta { background: var(--dd-accent); color: var(--dd-bg); font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
body.v2 .rx-pick select { background: var(--dd-bg); color: var(--dd-text); border-color: var(--dd-line-strong); min-height: 44px; }
body.v2 .rx-skel span { background: var(--dd-surface-2); }
@media (prefers-reduced-motion: no-preference) {
  body.v2 .rx-skel span { background: linear-gradient(90deg, #1C201E 0%, #232825 50%, #1C201E 100%); background-size: 200% 100%; }
}

/* ── Desktop ≥900px (DESIGN.md's one master breakpoint) ───────────────── */
@media (min-width: 900px) {
  body.v2, html.v2-app #v2-scroll { padding-bottom: 0; }
  .v2-tabbar { display: none; }
  .v2-toast { bottom: 24px; }
  .v2-nav { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 18px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 36px; }
  .v2-head { border-bottom: 1px solid #1E2220; }
  .v2-main { max-width: 1200px; margin: 0 auto; padding: 40px 32px 80px; gap: 40px; }
  .v2-footer { padding: 28px 32px 44px; }
  .dd-eyebrow { font-size: 15px; letter-spacing: .2em; }

  .v2-hero { max-width: 1200px; margin: 0 auto; padding: 72px 32px 44px; min-height: 0;
             grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ident actions"; align-items: end; column-gap: 24px; }
  .v2-hero-back { display: none; }
  .v2-hero-actions { align-self: end; }
  .v2-share { width: auto; padding: 0 18px; }
  .v2-desk-only { display: inline; }
  .v2-ident { gap: 12px; }
  .v2-ident h1 { font-size: clamp(3.5rem, 7vw, 6.5rem); line-height: .86; }
  .v2-ident-sub { font-size: 16px; }

  .v2-cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
  .v2-col { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
  .v2-col--right { gap: 28px; }
  .v2-card { border-radius: 24px; padding: 28px; }
  .v2-card--flush { padding: 6px 20px; }
  .v2-rank-num { font-size: 128px; }
  .v2-tile-v { font-size: 32px; }
  .v2-tile-k { font-size: 14px; }
  .v2-l5 { height: 68px; border-radius: 16px; }
  .v2-scrim { align-items: center; }
  .v2-sheet { max-width: 520px; border-radius: var(--dd-radius-sheet); max-height: calc(100dvh - 80px - var(--v2-kb, 0px)); padding-bottom: 28px; }
  .v2-grab { display: none; }
  .v2-scrim:not([hidden]) > .v2-sheet { animation-name: v2-dialog-in; }
  .v2-scrim.is-closing > .v2-sheet { animation-name: v2-dialog-out; }
}

/* ── Rankings board (v2/region_rankings.html) ─────────────────────────── */
.v2-bhero { position: relative; padding: 16px var(--dd-gutter) 14px; display: flex; flex-direction: column; gap: 12px; }
.v2-bhero .dd-bank { position: absolute; pointer-events: none; }
.v2-bhero h1 { font-size: 46px; position: relative; }
.v2-bhero h1 .acc { color: var(--dd-accent); }
.v2-bhero h1 .sport { display: none; }
.v2-scopenote { position: relative; font-size: 15px; line-height: 1.5; color: var(--dd-text-muted); max-width: 640px; }
.v2-scopenote.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v2-filterbtn { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 22px;
                color: var(--dd-text); font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; width: 100%; }
.v2-filterbtn span { flex: 1; }
.v2-filterbar { display: none; }
.v2-ages { position: relative; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.v2-ages::-webkit-scrollbar { display: none; }
.v2-age { flex: 0 0 auto; min-width: 52px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid #262B28; background: var(--dd-surface);
          color: var(--dd-text-muted); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.v2-age:hover { border-color: var(--dd-line-strong); color: var(--dd-text); }
.v2-age[aria-current="page"] { background: var(--dd-accent); border-color: var(--dd-accent); color: var(--dd-bg); }
body.v2-nav-pending .v2-board { opacity: .45; }

.v2-bmeta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; font-size: 13px; color: var(--dd-text-subtle); padding: 0 2px; }
.v2-bmeta > div { display: flex; align-items: center; gap: 8px; }
.v2-bmeta i { width: 6px; height: 6px; border-radius: 3px; background: var(--dd-accent); flex: none; }
.v2-callout2 { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; font-size: 15px; color: var(--dd-text-muted); }
.v2-callout2 b { color: var(--dd-text); }
.v2-callout2 > span { flex: 1; }
.v2-meter { font-size: 14px; color: var(--dd-text-muted); padding: 0 2px; }
.v2-meter a { color: var(--dd-accent); font-weight: 600; }
.v2-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.v2-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.v2-chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--dd-line-strong); background: transparent; color: var(--dd-text-muted);
           font-weight: 600; font-size: 14px; cursor: pointer; }
.v2-chip[aria-pressed="true"] { background: var(--dd-text); color: var(--dd-bg); border-color: var(--dd-text); }
/* Search's age chips: one row that scrolls sideways. They now cover every age
   the query matched (up to 13), which wrapped to three rows on a phone. */
#v2-search-ages, [data-search-ages], [data-isearch-ages], [data-lsearch-ages] { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
:is(#v2-search-ages, [data-search-ages], [data-isearch-ages], [data-lsearch-ages])::-webkit-scrollbar { display: none; }
:is(#v2-search-ages, [data-search-ages], [data-isearch-ages], [data-lsearch-ages]) .v2-chip { flex: none; }
/* A method this age doesn't have: shown so every board's switch matches, not tappable. */
.v2-chip--off { display: inline-flex; align-items: center; gap: 6px; cursor: default; opacity: .45; }
.v2-chip--off small { font-weight: 500; font-size: 12px; }
.v2-find { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; max-width: 420px; }
.v2-find .v2-input { min-height: 44px; border-radius: 22px; padding: 0 16px; }
.v2-find-status { font-size: 13px; color: var(--dd-text-subtle); white-space: nowrap; }

.v2-board { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.v2-board thead { display: none; }
.v2-brow { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 56px; padding: 6px 14px;
           border-radius: var(--dd-radius-row); background: var(--dd-surface); margin-bottom: 6px; cursor: pointer; }
.v2-board.has-follow .v2-brow { grid-template-columns: 34px minmax(0, 1fr) auto 44px; padding-right: 4px; }
.v2-brow:hover { background: var(--dd-surface-2); }
.v2-brow.followed { box-shadow: inset 0 0 0 1.5px var(--dd-accent); }
.v2-brow.hit { box-shadow: inset 0 0 0 1.5px var(--dd-text-subtle); }
.v2-brow.hit-current { box-shadow: inset 0 0 0 2px var(--dd-text); }
.v2-brow > td { display: block; padding: 0; min-width: 0; }
.v2-brow .dt { display: none; }
.v2-rk { font-family: var(--dd-font-display); font-weight: 800; font-size: 28px; line-height: 1; color: var(--dd-accent); text-align: center; font-variant-numeric: tabular-nums; }
.v2-team { color: var(--dd-text); text-decoration: none; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.v2-team:hover { text-decoration: underline; text-decoration-color: #4A504C; text-underline-offset: 3px; }
.v2-nm { display: flex; align-items: center; gap: 6px; min-width: 0; }
.v2-tag { flex: none; font-size: 11px; font-weight: 600; color: var(--dd-text-muted); border: 1px solid var(--dd-line-strong); border-radius: 999px; padding: 0 6px; line-height: 18px; }
.v2-sub { font-size: 13px; color: var(--dd-text-subtle); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-mv.up { color: var(--dd-accent); } .v2-mv.dn { color: var(--dd-down); }
.v2-rtc { text-align: right; }
.v2-rt { font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.v2-rt sup { color: var(--dd-text-subtle); font-weight: 600; }
.v2-wl-ph { display: block; font-size: 12px; color: var(--dd-text-subtle); font-variant-numeric: tabular-nums; }
.v2-fbtn { width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--dd-text-subtle); cursor: pointer;
           display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.v2-fbtn:hover { color: var(--dd-text); background: var(--dd-surface-2); }
.v2-fbtn svg { width: 20px; height: 20px; }
.v2-fbtn .ico-check { display: none; }
.v2-fbtn[aria-pressed="true"] { color: var(--dd-accent); }
.v2-fbtn[aria-pressed="true"] .ico-plus { display: none; }
.v2-fbtn[aria-pressed="true"] .ico-check { display: inline; }

/* Locked rows: position numbers + empty bars, nothing else (README rule 4). */
.v2-lockzone { display: grid; margin-top: 2px; }
.v2-lockzone > * { grid-area: 1 / 1; }
.v2-skrow { display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; align-items: center; gap: 12px; height: 56px; padding: 0 14px;
            border-radius: var(--dd-radius-row); background: var(--dd-surface); margin-bottom: 6px; }
.v2-skrow b { font-family: var(--dd-font-display); font-weight: 800; font-size: 28px; color: #4F5551; text-align: center; }
.v2-skrow span { display: block; height: 9px; border-radius: 5px; background: #262B28; }
.v2-skrow span + span { height: 7px; width: 30%; background: #1F2321; margin-top: 7px; }
.v2-bgate { position: relative; align-self: start; margin-top: 2px; border-radius: 20px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.v2-bgate h2 { font-weight: 600; font-size: 18px; }
.v2-bgate p { font-size: 14px; color: var(--dd-text-muted); line-height: 1.4; }
.v2-bgate .v2-links { display: flex; flex-wrap: wrap; gap: 0 16px; font-size: 14px; color: var(--dd-text-subtle); }
.v2-bgate .v2-links a, .v2-bgate .v2-links button { color: var(--dd-text); font-size: 14px; font-weight: 400; text-decoration: underline;
              text-decoration-color: #4A504C; text-underline-offset: 3px; background: none; border: 0; padding: 10px 0; cursor: pointer; text-align: left; }

.v2-bcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.v2-bcard { border-radius: 20px; background: var(--dd-surface); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.v2-mover { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; text-decoration: none; color: var(--dd-text); }
.v2-mover b { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-mover .v2-mv { font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.v2-skline { display: flex; flex-direction: column; gap: 7px; min-height: 40px; justify-content: center; }
.v2-skline span { display: block; height: 9px; width: 70%; border-radius: 5px; background: var(--dd-skeleton); }
.v2-skline span + span { height: 7px; width: 40%; background: var(--dd-surface-2); }
.v2-method p { font-size: 14px; line-height: 1.55; color: var(--dd-text-muted); }
.v2-method p b { color: var(--dd-text); }
.v2-bnote { font-size: 13px; color: var(--dd-text-subtle); line-height: 1.5; padding: 0 2px; }
.v2-empty-board { padding: 28px 0; color: var(--dd-text-muted); }

/* Filters sheet */
.v2-fgroup { display: flex; flex-direction: column; gap: 8px; }
.v2-fdrop-panel .v2-fgroup:has(.v2-loc) { margin-top: -6px; }
.v2-fgroup > h3 { font-size: 14px; font-weight: 600; color: var(--dd-text-subtle); }
.v2-seglinks { display: flex; gap: 4px; background: var(--dd-bg); border-radius: 12px; padding: 3px; }
.v2-seglinks a, .v2-seglinks span { flex: 1; min-height: 40px; border-radius: 9px; display: flex; align-items: center; justify-content: center; gap: 6px;
                  color: var(--dd-text-subtle); font-weight: 600; font-size: 15px; text-decoration: none; }
.v2-seglinks a[aria-current] { background: #2A2F2C; color: var(--dd-text); }
/* The lit option moves the moment it is tapped (v2.js), ahead of the page
   load. No fade on a phone: the one frame painted before the page leaves
   has to show the finished state, not the start of a transition. */
@media (min-width: 900px) { .v2-seglinks a, .v2-region, .v2-age { transition: background-color .14s ease, color .14s ease, border-color .14s ease; } }
.v2-seglinks .soon { opacity: .6; cursor: default; }
.v2-seglinks small { font-size: 11px; font-weight: 600; }
.v2-regions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.v2-region { display: flex; flex-direction: column; justify-content: center; gap: 1px; min-height: 48px; padding: 4px 14px; border-radius: 14px;
             border: 1px solid #262B28; color: var(--dd-text); text-decoration: none; }
.v2-region b { font-weight: 600; font-size: 14px; }
.v2-region span { font-size: 12px; color: var(--dd-text-subtle); font-variant-numeric: tabular-nums; }
.v2-region[aria-current] { border-color: var(--dd-accent); background: rgba(143,219,138,.08); }

@media (min-width: 900px) {
  .v2-bhero { max-width: 1200px; margin: 0 auto; padding: 96px 32px 44px; gap: 18px; }
  .v2-bhero h1 { font-size: clamp(3.5rem, 8vw, 7.5rem); line-height: .86; }
  .v2-bhero h1 .acc, .v2-bhero h1 .sport { display: block; }
  .v2-bhero h1 .rk-word { display: none; }
  .v2-scopenote { font-size: 18px; line-height: 1.55; }
  .v2-scopenote.clamp { -webkit-line-clamp: unset; display: block; }
  .v2-filterbtn--phone { display: none; }
  .v2-filterbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; position: relative; margin-top: 10px; }
  .v2-filterbar .v2-pillbtn { height: 46px; }
  .v2-ages { flex-wrap: wrap; overflow: visible; }
  .v2-age { height: 46px; }

  .v2-board thead { display: table-header-group; }
  .v2-board { border-spacing: 0; }
  .v2-board th { height: 44px; font-size: 13px; font-weight: 500; color: var(--dd-text-subtle); text-align: right; border-bottom: 1px solid var(--dd-line); padding: 0 12px; white-space: nowrap; }
  .v2-board th.l { text-align: left; }
  .v2-board th button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; min-height: 44px; padding: 0; }
  .v2-board th button[aria-sort="descending"]::after { content: ' ▾'; }
  .v2-board th button[aria-sort="ascending"]::after { content: ' ▴'; }
  .v2-brow, .v2-board.has-follow .v2-brow { display: table-row; padding: 0; margin: 0; background: transparent; border-radius: 0; }
  .v2-brow > td { display: table-cell; height: 72px; padding: 0 12px; vertical-align: middle; text-align: right; font-size: 16px; color: var(--dd-text-muted);
                  font-variant-numeric: tabular-nums; }
  .v2-brow > td:first-child { border-radius: 14px 0 0 14px; padding-left: 20px; width: 72px; text-align: left; }
  .v2-brow > td:last-child { border-radius: 0 14px 14px 0; padding-right: 20px; }
  .v2-brow:nth-child(odd) > td { background: rgba(255,255,255,.015); }
  .v2-brow:hover > td { background: var(--dd-surface); }
  .v2-brow.followed > td { background: var(--dd-surface); box-shadow: inset 0 1.5px 0 var(--dd-accent), inset 0 -1.5px 0 var(--dd-accent); }
  .v2-brow.followed > td:first-child { box-shadow: inset 1.5px 1.5px 0 var(--dd-accent), inset 0 -1.5px 0 var(--dd-accent); }
  .v2-brow.followed > td:last-child { box-shadow: inset -1.5px 1.5px 0 var(--dd-accent), inset 0 -1.5px 0 var(--dd-accent); }
  .v2-brow.followed { box-shadow: none; }
  .v2-brow.hit > td { background: var(--dd-surface-2); }
  .v2-brow.hit-current > td { background: #2A2F2C; }
  .v2-brow .dt { display: table-cell; }
  .v2-brow > td.v2-who { text-align: left; }
  .v2-brow > td.v2-rk { font-family: var(--dd-font-display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--dd-accent); text-align: left; }
  .v2-team { font-size: 17px; }
  .v2-sub { font-size: 14px; }
  .v2-rt { font-size: 20px; color: var(--dd-text); }
  .v2-wl-ph { display: none; }
  .v2-brow .wl { color: var(--dd-text-2); }
  .v2-skrow { height: 72px; padding: 0 20px; grid-template-columns: 52px minmax(0, 1fr) 80px; }
  .v2-skrow b { font-size: 40px; color: #3F4541; text-align: left; }
  .v2-bgate { justify-self: center; width: min(580px, 92%); margin-top: 36px; padding: 28px; align-items: center; text-align: center; border-radius: 24px; }
  .v2-bgate h2 { font-size: 24px; }
  .v2-bgate p { font-size: 15px; max-width: 440px; }
  .v2-bgate .v2-links { justify-content: center; }
}

/* ── Region hub ───────────────────────────────────────────────────────── */
.v2-hubhero .v2-hub-back { position: relative; margin-bottom: 40px; }
.v2-hubhero h1 { font-size: 54px; line-height: .86; position: relative; overflow-wrap: anywhere; }
.v2-agegrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.v2-agetile { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 18px; background: var(--dd-surface); text-decoration: none; color: var(--dd-text); }
.v2-agetile:hover { background: var(--dd-surface-2); }
.v2-agetile b { font-family: var(--dd-font-display); font-weight: 800; font-size: 32px; line-height: 1; }
.v2-agetile span { font-size: 13px; color: var(--dd-text-subtle); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .v2-hubhero .v2-hub-back { display: none; }
  .v2-hubhero h1 { font-size: clamp(3.5rem, 8vw, 7.5rem); }
  .v2-agegrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ── Landing ──────────────────────────────────────────────────────────── */
.v2-lhero { position: relative; min-height: 520px; padding: 16px var(--dd-gutter) 32px; display: flex; flex-direction: column; justify-content: space-between;
            background: radial-gradient(ellipse 50% 32% at 14% 6%, rgba(240,245,235,.22), rgba(240,245,235,0) 70%),
                        radial-gradient(ellipse 40% 28% at 86% 9%, rgba(240,245,235,.15), rgba(240,245,235,0) 70%); }
.v2-lhero .dd-bank, .v2-pole { position: absolute; pointer-events: none; }
.v2-pole { width: 5px; height: 220px; background: linear-gradient(#2B2F2D, rgba(43,47,45,0)); }
.v2-ltop { position: relative; display: flex; justify-content: space-between; align-items: center; }
.v2-lcopy { position: relative; display: flex; flex-direction: column; gap: 14px; }
.v2-lcopy h1 { font-size: 64px; }
.v2-lsearchbox { position: relative; z-index: 5; }
.v2-lsearch { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; border-radius: 26px; color: var(--dd-text-subtle);
              font-size: 16px; cursor: text; width: 100%; box-sizing: border-box; transition: border-color .15s ease; }
.v2-lsearch input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--dd-text); font: 16px var(--dd-font-body); }
.v2-lsearch input::placeholder { color: var(--dd-text-subtle); }
.v2-lsearch:focus-within { border-color: rgba(143,219,138,.55); background: rgba(17,20,19,.92); }
.v2-lsearch-panel { position: absolute; top: calc(100% + 8px); left: 0; right: 0; max-height: min(56vh, 480px); overflow-y: auto; overscroll-behavior: contain;
                    border-radius: 20px; padding: 10px 14px; display: none; flex-direction: column; gap: 8px;
                    background: rgba(17,20,19,.96); box-shadow: 0 18px 48px rgba(0,0,0,.55); }
.v2-lsearchbox.open .v2-lsearch-panel { display: flex; }
.v2-lsearchbox.up .v2-lsearch-panel { top: auto; bottom: calc(100% + 8px); }  /* phone, keyboard up: results open above the field */
.v2-lsearch-panel .v2-results { min-height: 0; }
.v2-lsearch-panel .v2-shape-k:empty, .v2-lsearch-panel .v2-results:empty { display: none; }
/* The header clips its glow; while results are open, let them drop below it. */
.v2-head:has(.v2-lsearchbox.open) { overflow-x: clip; overflow-y: visible; z-index: 20; }
.v2-lboard { display: flex; flex-direction: column; gap: 14px; }
.v2-lpanel { display: flex; flex-direction: column; gap: 14px; }
.v2-lrows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.v2-lrow { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 56px; padding: 6px 14px;
           border-radius: var(--dd-radius-row); background: var(--dd-surface-2); text-decoration: none; color: var(--dd-text); }
.v2-lrow:hover { background: #232825; }
.v2-lrow-who { display: flex; flex-direction: column; min-width: 0; }
.v2-lh2 { font-size: 40px; padding-left: 4px; }  /* the heavy face has almost no side bearing: keep "n" off the screen edge */
.v2-lsec { margin-top: 36px; }                   /* a section break, not the next card */
.v2-lsec .v2-factors { margin: 0 0 16px; }
.v2-lregions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.v2-lregions .v2-chip { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 10px; text-align: center; text-decoration: none; border-radius: 14px; }
.v2-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.v2-tier-card { border-radius: 22px; background: var(--dd-surface); padding: 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.v2-tier-card p { font-size: 15px; line-height: 1.45; color: var(--dd-text-muted); margin-bottom: 6px; }
.v2-tier-card.pro { box-shadow: inset 0 0 0 1.5px var(--dd-accent); }
.v2-factors { list-style: none; margin: 16px 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.v2-factors li { display: flex; gap: 14px; align-items: flex-start; }
.v2-factors li > b { font-family: var(--dd-font-display); font-weight: 800; font-size: 28px; line-height: 1; color: var(--dd-accent); width: 24px; }
.v2-factors h3 { font-weight: 600; font-size: 16px; }
.v2-factors p { font-size: 14px; color: var(--dd-text-muted); }
/* The teaser sits in the header under the hero copy; a phone keeps the
   gutters and the gap it had as the first card of <main>. */
.v2-lstage > .v2-lboard { margin: 16px var(--dd-gutter) 0; }
@media (min-width: 900px) {
  .v2-lhero { max-width: 1200px; margin: 0 auto; min-height: 0; padding: 120px 32px 72px; background: none; }
  .v2-ltop { display: none; }
  .v2-lcopy h1 { font-size: clamp(4rem, 9vw, 8rem); }
  .v2-lcopy .v2-scopenote { font-size: 18px; }
  .v2-lsearchbox { max-width: 460px; }
  .v2-lh2 { font-size: 56px; }
  /* Desktop landing (2026-10-11): headline on the left, the live top three
     on the right of the same stage (the teaser was a 760px card alone under
     a hero whose right half was empty). Below, the three ways in, then how
     ratings work with its factors side by side. */
  .v2-lstage { max-width: 1200px; margin: 0 auto; padding: 96px 32px 64px; box-sizing: border-box;
               display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); gap: 48px; align-items: center; }
  .v2-lstage > .v2-lhero { max-width: none; margin: 0; padding: 0; position: static; }
  .v2-lstage { position: relative; }
  .v2-lstage > .v2-lboard { margin: 0; position: relative; padding: 24px; }
  .v2-lhero-r { display: none; }  /* the right-hand light bank would sit behind the teaser */
  /* The copy centers against the teaser, so the left bank lifts clear of the eyebrow. */
  .v2-lstage .v2-lhero > .dd-bank { top: 36px !important; }
  .v2-lstage .v2-lhero > .v2-pole { top: 80px !important; height: 150px; }
  .v2-lcopy h1 { font-size: clamp(4rem, 7.4vw, 7rem); }
  .v2-factors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .v2-lsec { margin-top: 56px; }
  .v2-lsec > .v2-card { padding: 28px; }
  .v2-lregions { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
}

/* ── Contact sheet, account rows, settings, help ──────────────────────── */
.v2-radio { position: relative; }
.v2-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.v2-radio span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--dd-line-strong);
                 font-weight: 600; font-size: 14px; color: var(--dd-text-muted); cursor: pointer; }
.v2-radio input:checked + span { background: var(--dd-text); color: var(--dd-bg); border-color: var(--dd-text); }
.v2-radio input:focus-visible + span { outline: 2px solid var(--dd-accent); outline-offset: 2px; }

.v2-follows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.v2-follow-row { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 14px; border-radius: 18px; background: var(--dd-surface); }
.v2-follow-row.primary { box-shadow: inset 0 0 0 1.5px var(--dd-accent); }
.v2-mine { color: var(--dd-accent); font-weight: 600; }
.v2-pref { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; }
.v2-pref + .v2-pref { border-top: 1px solid var(--dd-line, rgba(255,255,255,.08)); }
.v2-pref b { display: block; font-size: 15px; font-weight: 600; color: var(--dd-text); }
.v2-pref small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--dd-text-muted); }
.v2-switch { flex: none; position: relative; width: 52px; height: 44px; border: 0; padding: 0; background: transparent; cursor: pointer; }
.v2-switch::before { content: ''; position: absolute; left: 0; top: 10px; width: 52px; height: 24px; border-radius: 12px; background: var(--dd-surface-2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); transition: background .15s; }
.v2-switch::after { content: ''; position: absolute; left: 3px; top: 13px; width: 18px; height: 18px; border-radius: 50%; background: var(--dd-text-muted); transition: transform .15s, background .15s; }
.v2-switch[aria-checked="true"]::before { background: var(--dd-accent); box-shadow: none; }
.v2-switch[aria-checked="true"]::after { transform: translateX(28px); background: var(--dd-bg); }
.v2-switch:disabled { opacity: .4; cursor: not-allowed; }
.v2-switch:focus-visible { outline: 2px solid var(--dd-accent); outline-offset: 2px; border-radius: 14px; }
@media (prefers-reduced-motion: reduce) { .v2-switch::before, .v2-switch::after { transition: none; } }
.v2-follow-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 56px; text-decoration: none; color: var(--dd-text); }
.v2-follow-rk { width: 52px; flex: none; font-family: var(--dd-font-display); font-weight: 800; font-size: 28px; color: var(--dd-accent); font-variant-numeric: tabular-nums; }
.v2-follow-rk.locked, .v2-follow-rk.none { color: var(--dd-text-subtle); font-size: 22px; display: inline-flex; }
.v2-follow-who { display: flex; flex-direction: column; min-width: 0; }
.v2-star { width: 44px; height: 44px; flex: none; border: 0; background: transparent; border-radius: 12px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.v2-star svg { width: 22px; height: 22px; fill: none; stroke: var(--dd-text-subtle); stroke-width: 2; stroke-linejoin: round; }
.v2-star[aria-pressed="true"] svg { fill: var(--dd-accent); stroke: var(--dd-accent); }
.v2-star:hover { background: var(--dd-surface-2); }
.v2-unfollow { flex: none; min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid var(--dd-line-strong); background: transparent;
               color: var(--dd-text); font-weight: 600; font-size: 14px; cursor: pointer; }
.v2-unfollow:hover { border-color: var(--dd-down); color: var(--dd-down); }
.v2-settings { padding: 0 16px; }
.v2-settings a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 0;
                 border-bottom: 1px solid var(--dd-line); color: var(--dd-text); text-decoration: none; }
.v2-settings a:last-child { border-bottom: 0; }
.v2-settings a span { display: flex; flex-direction: column; }
.v2-settings b { font-weight: 600; font-size: 15px; }
.v2-settings small { font-size: 13px; color: var(--dd-text-subtle); }
.v2-settings svg { color: var(--dd-text-subtle); flex: none; }

.v2-faq { display: flex; flex-direction: column; gap: 8px; }
.v2-faq details { background: var(--dd-surface); border-radius: 18px; }
.v2-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px;
                  padding: 8px 18px; cursor: pointer; font-weight: 600; font-size: 16px; }
.v2-faq summary::-webkit-details-marker { display: none; }
.v2-faq summary svg { flex: none; color: var(--dd-text-subtle); }
.v2-faq details[open] summary svg { transform: rotate(90deg); }
.v2-faq .ans { padding: 0 18px 16px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.55; color: var(--dd-text-muted); }
.v2-faq .ans b, .v2-faq .ans em { color: var(--dd-text); }
.v2-faq .ans a { color: var(--dd-accent); }
/* ── Help: "How a rating is built" explainer (inside the rankings answer) ── */
.v2-hw { display: flex; flex-direction: column; gap: 14px; }
.v2-hw-lede { margin: 0; }
.v2-hw-card { background: var(--dd-surface-2); border: 1px solid var(--dd-line); border-radius: 16px; padding: 16px; }
.v2-hw-card h3 { margin: 0 0 4px; font-family: var(--dd-font-display); font-weight: 800; font-size: 22px; line-height: 1.05; color: var(--dd-text); }
.v2-hw-card > p { margin: 0 0 12px; font-size: 14px; }
.v2-hw-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.v2-hw-flow li { background: var(--dd-surface); border: 1px solid var(--dd-line-strong); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.v2-hw-flow .k { font-family: var(--dd-font-display); font-weight: 700; font-size: 12px; letter-spacing: .14em; color: var(--dd-accent); }
.v2-hw-flow b { font-size: 16px; }
.v2-hw-flow span { font-size: 13px; line-height: 1.35; }
.v2-hw-flow .w { margin-top: 6px; font-family: var(--dd-font-display); font-weight: 800; font-size: 26px; line-height: 1; color: var(--dd-text); }
.v2-hw-bar { display: flex; height: 52px; border-radius: 12px; overflow: hidden; border: 1px solid var(--dd-line-strong); }
.v2-hw-bar div { display: flex; align-items: center; justify-content: center; font-family: var(--dd-font-display); font-weight: 800; font-size: 20px; }
.v2-hw-bar .a { width: 25%; background: var(--dd-surface); color: var(--dd-text-2); }
.v2-hw-bar .b { width: 75%; background: var(--dd-accent); color: var(--dd-bg); }
.v2-hw-leg { display: flex; gap: 12px; margin-top: 8px; font-size: 13px; color: var(--dd-text-muted); }
.v2-hw-leg div { flex: 1; } .v2-hw-leg div + div { flex: 3; }
.v2-hw-note { margin: 12px 0 0; font-size: 15px; }
.v2-hw-note b { color: var(--dd-accent); }
.v2-hw-curve { width: 100%; height: auto; display: block; }
.v2-hw-curve .grid { stroke: var(--dd-line); }
.v2-hw-curve .axis { stroke: var(--dd-line-strong); }
.v2-hw-curve .t { fill: var(--dd-text-subtle); font-size: 11px; font-family: var(--dd-font-body); }
.v2-hw-curve .curve { fill: none; stroke: var(--dd-accent); stroke-width: 3; }
.v2-hw-curve .dot { fill: var(--dd-bg); stroke: var(--dd-accent); stroke-width: 2.5; }
.v2-hw-curve .lab { fill: var(--dd-text); font-family: var(--dd-font-display); font-weight: 800; font-size: 16px; }
.v2-hw-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.v2-hw-team { background: var(--dd-surface); border: 1px solid var(--dd-line-strong); border-radius: 14px; padding: 14px; }
.v2-hw-team.win { border-color: var(--dd-accent); }
.v2-hw-team h4 { margin: 0; font-size: 14px; font-weight: 600; color: var(--dd-text-muted); }
.v2-hw-team .rec { font-family: var(--dd-font-display); font-weight: 800; font-size: 34px; line-height: 1; color: var(--dd-text); }
.v2-hw-team dl { margin: 10px 0 0; font-size: 13px; }
.v2-hw-team dl div, .v2-hw-team .fin { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0; border-top: 1px solid var(--dd-line); }
.v2-hw-team dd { margin: 0; color: var(--dd-text); font-weight: 600; }
.v2-hw-team .fin { margin-top: 6px; border-top-color: var(--dd-line-strong); padding-top: 8px; font-size: 13px; }
.v2-hw-team .fin b { font-family: var(--dd-font-display); font-weight: 800; font-size: 30px; color: var(--dd-text); }
.v2-hw-team.win .fin b { color: var(--dd-accent); }
.v2-faq details.v2-hw-f { background: transparent; border: 1px solid var(--dd-line); border-radius: 14px; }
.v2-hw-f summary { min-height: 48px; font-size: 15px; }
.v2-hw-f pre { margin: 0 14px 14px; padding: 14px; overflow: auto; background: var(--dd-bg); border: 1px solid var(--dd-line); border-radius: 12px;
               font-size: 13px; line-height: 1.7; color: var(--dd-text-2); white-space: pre; }
.v2-hw-f pre i { color: var(--dd-accent); font-style: normal; }
@media (max-width: 620px) { .v2-hw-flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .v2-hw-vs { grid-template-columns: 1fr; } .v2-hw-leg { flex-direction: column; gap: 4px; } }
/* Desktop: one centered reading column, hero and answers on the same edges
   (it was a 760px column against the left of a 1136px page). */
@media (min-width: 900px) {
  body[data-page="help"] .v2-bhero, body[data-page="help"] .v2-main,
  body[data-page="account"] .v2-bhero, body[data-page="account"] .v2-main { max-width: 824px; }  /* settings read as one column too */
}

/* ── Auth (Clerk) ─────────────────────────────────────────────────────── */
body[data-page^="auth"] .v2-tabbar, body[data-page^="auth"] .v2-navlinks, body[data-page^="auth"] .v2-navright { display: none; }
body[data-page^="auth"], html.v2-app body[data-page^="auth"] #v2-scroll { padding-bottom: 0; }
.v2-authhero { min-height: 0; }
.v2-clerk { max-width: 440px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.v2-clerk-mount { min-height: 420px; display: flex; justify-content: center; align-items: flex-start; }
.v2-spinner { width: 32px; height: 32px; margin-top: 80px; border: 3px solid var(--dd-line-strong); border-top-color: var(--dd-accent); border-radius: 50%;
              animation: v2-spin .75s linear infinite; }
@keyframes v2-spin { to { transform: rotate(360deg); } }
/* A key press (Escape) closes menus and sheets with no motion: v2.js sets
   this for the one frame the change lands in. */
html.v2-still *, html.v2-still *::before, html.v2-still *::after { transition: none !important; }
/* Clerk's scroll-lock pads <body> even when nothing is locked (see auth/sign_in.html). */
body[data-page^="auth"] { padding-right: 0 !important; }
/* Desktop: the heading centers over the centered form (it sat against the
   left edge with the form in the middle of the page). */
@media (min-width: 900px) {
  .v2-authhero { padding-top: 64px; padding-bottom: 32px; align-items: center; text-align: center; }
  .v2-authhero .dd-bank { display: none; }
}

/* ── Onboarding tour (components/guided_flow.html) on dark ────────────── */
body.v2 .dd-tour-panel { background: var(--dd-scrim); }
body.v2 .dd-tour-ring { border-color: var(--dd-accent); border-radius: 16px; }
body.v2 .dd-tour-tip { background: var(--dd-glass-bg); -webkit-backdrop-filter: blur(var(--dd-glass-blur)) saturate(140%);
                       backdrop-filter: blur(var(--dd-glass-blur)) saturate(140%); border: 1px solid var(--dd-glass-border);
                       border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.5); color: var(--dd-text); }
body.v2 .dd-tour-count { color: var(--dd-accent); font-family: var(--dd-font-display); letter-spacing: .18em; }
body.v2 .dd-tour-tip h3, body.v2 .dd-tour-tip p { color: var(--dd-text); }
body.v2 .dd-tour-tip p { color: var(--dd-text-muted); }
body.v2 .dd-tour-next { background: var(--dd-text); color: var(--dd-bg); }
body.v2 .dd-tour-next:hover { background: #fff; }
body.v2 .dd-tour-skip { color: var(--dd-text-subtle); }
body.v2 .dd-tour-skip:hover { color: var(--dd-text); }
body.v2 .dd-tour-next:focus-visible, body.v2 .dd-tour-skip:focus-visible { outline-color: var(--dd-accent); }
/* A sentence-case label inside a section-head row stays a label (My teams, Baseball). */
.v2-sh h2.v2-label { font-family: var(--dd-font-body); font-weight: 600; text-transform: none; line-height: 1.2; }

/* ── Search sheet (Search.dc.html) ────────────────────────────────────── */
.v2-searchbox { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border-radius: 26px; background: var(--dd-bg);
                border: 1px solid var(--dd-line-strong); color: var(--dd-text-subtle); }
.v2-searchbox:focus-within { border-color: var(--dd-accent); }
.v2-searchbox input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--dd-text); font: 16px var(--dd-font-body); }
.v2-result { flex-direction: row; align-items: center; gap: 12px; }
.v2-mono { width: 40px; height: 40px; flex: none; border-radius: 20px; background: var(--dd-surface-2); display: inline-flex; align-items: center;
           justify-content: center; font-family: var(--dd-font-display); font-weight: 800; font-size: 15px; color: var(--dd-text-muted); }
.v2-result-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.v2-result-who b, .v2-result-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* .v2-result span (13px, subtle) outranked the plain class, so the rank
   rendered as small grey text; the row's own class wins now. */
.v2-result .v2-result-rk { flex: none; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.05;
                font-family: var(--dd-font-display); font-weight: 800; font-size: 22px; color: var(--dd-text); font-variant-numeric: tabular-nums; }
.v2-result .v2-result-rk small { font: 600 12px var(--dd-font-body); color: var(--dd-text-subtle); letter-spacing: .02em; }
.v2-result-lock { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--dd-text-subtle);
                  border: 1px solid var(--dd-line-strong); border-radius: 999px; padding: 3px 9px; }

/* ── Checkout success ─────────────────────────────────────────────────── */
.v2-success-check { width: 56px; height: 56px; border-radius: 28px; background: var(--dd-accent); display: inline-flex; align-items: center; justify-content: center; }
.v2-perks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.v2-perks li { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--dd-text-2); }
.v2-perks li::before { content: ''; width: 10px; height: 10px; flex: none; background: var(--dd-accent); transform: rotate(45deg); }
.v2-success-actions { max-width: 440px; width: 100%; margin: 0 auto; gap: 10px; }
@media (min-width: 900px) { .v2-success-hero { padding-bottom: 32px; } }

/* ── Sparklines (6-week rank) ─────────────────────────────────────────── */
.v2-spark { width: 110px; height: 28px; display: block; margin-left: auto; overflow: visible; }
.v2-spark .seg { fill: none; stroke: var(--dd-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.v2-board th.dt-col { display: none; }
@media (min-width: 900px) { .v2-board th.dt-col { display: table-cell; } }

/* ── Home (My Dugout) + The Drop ──────────────────────────────────────── */
.v2-home { gap: 16px; }
.v2-home-top { position: relative; display: flex; justify-content: space-between; align-items: center; }
.v2-myteam { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 24px;
             border: 1px solid var(--dd-glass-border); text-decoration: none; color: var(--dd-text); }
.v2-myteam .dd-bank { position: absolute; }
.v2-myteam-name { position: relative; font-family: var(--dd-font-display); font-weight: 800; font-size: 40px; line-height: .96; }
.v2-myteam-row { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.v2-myteam-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-weight: 600; }
.v2-countdown { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.v2-clock { display: flex; align-items: flex-start; gap: 6px; }
.v2-clock div { display: flex; flex-direction: column; align-items: center; min-width: 48px; }
.v2-clock b { font-family: var(--dd-font-display); font-weight: 800; font-size: 36px; line-height: 1; font-variant-numeric: tabular-nums; }
.v2-clock span { font-size: 12px; color: var(--dd-text-subtle); }
.v2-clock i { font-style: normal; font-family: var(--dd-font-display); font-size: 30px; color: var(--dd-text-subtle); line-height: 1; }
.v2-follow-move { flex: none; font-weight: 600; font-size: 14px; padding-right: 8px; }
.v2-drop { min-height: 560px; }
.v2-drop h1 { font-size: 58px; overflow-wrap: anywhere; }
.v2-drop h1 .v2-up { color: var(--dd-accent); }
.v2-drop h1 .v2-dn { color: var(--dd-down); }
.v2-dropbox { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 22px; align-self: flex-start; }
.v2-dropbox b { font-family: var(--dd-font-display); font-weight: 800; font-size: 56px; line-height: 1; font-variant-numeric: tabular-nums; }
.v2-dropbox b.was { color: var(--dd-text-subtle); }
.v2-dropbox b.now { color: var(--dd-accent); }
.v2-dropbox svg { color: var(--dd-text-subtle); }
/* The drop card sits in the hero, under the team card. These two keep a
   phone's spacing where it was when the card opened <main>. */
.v2-home > [data-drop-card] { margin-top: 14px; }
body[data-page="home_v2"] .v2-main { padding-top: 2px; }
/* A three- or four-digit rank still fits the row's rank column. */
.v2-follow-rk.r3 { font-size: 22px; }
.v2-follow-rk.r4 { font-size: 18px; }
@media (min-width: 900px) {
  .v2-home-top { display: none; }
  /* Desktop Home (2026-10-11): team card and drop card share one row, on
     the same 1136px column as everything below; followed teams sit three
     across with their two actions on the same grid. */
  .v2-home { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: stretch; padding: 56px 32px 44px; }
  .v2-home.has-team { grid-template-columns: minmax(0, 1.6fr) minmax(340px, 1fr); }
  .v2-home > [data-drop-card] { margin-top: 0; }
  .v2-home .v2-myteam { padding: 28px; gap: 12px; }
  .v2-home .v2-myteam-name { font-size: 44px; }
  .v2-home .v2-myteam-row { margin-top: auto; padding-top: 20px; }
  .v2-home .v2-countdown { padding: 28px; }
  .v2-home .v2-countdown > :last-child { margin-top: auto; }
  body[data-page="home_v2"] .v2-main { padding-top: 40px; }
  /* The list's rows join the section's grid, so "Add a team" is simply the
     next cell after the last followed team. "Manage teams" drops to its own
     row as a quiet centered pill: it is the secondary action here. */
  .v2-following { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
  .v2-follows--home { display: contents; }
  .v2-following > .v2-sh, .v2-following > .v2-empty { grid-column: 1 / -1; }
  .v2-following > .v2-ghostbtn { min-height: 70px; border-radius: 18px; }
  .v2-following > .v2-rowbtn { grid-column: 1 / -1; justify-self: center; min-height: 44px; padding: 0 20px; gap: 8px; margin-top: 8px; border-radius: 22px; }
  .v2-follows--home .v2-sub { white-space: normal; }  /* a card is narrower than a row: wrap, don't cut */
  .v2-drop h1 { font-size: clamp(4rem, 8vw, 7rem); }
}

/* ── Unread drop badge ────────────────────────────────────────────────── */
.v2-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--dd-accent); box-shadow: 0 0 0 2px var(--dd-bg); }
.v2-tab-ico { position: relative; display: inline-flex; }
.v2-tab-ico .v2-dot { position: absolute; top: auto; bottom: 0; right: -2px; }
.v2-bell { position: relative; }
.v2-bell .v2-dot { position: absolute; top: 8px; right: 8px; }
.v2-navlinks .v2-dot { margin-left: 6px; vertical-align: 2px; }

/* ── Prose (legal), one-message pages, forms ──────────────────────────── */
.v2-prose { max-width: 720px; font-size: 16px; line-height: 1.7; color: var(--dd-text-muted); }
.v2-prose h2 { font-family: var(--dd-font-display); font-weight: 800; font-size: 44px; line-height: .98; color: var(--dd-text); margin-bottom: 6px; }
.v2-prose .legal-date { font-size: 14px; color: var(--dd-text-subtle); margin-bottom: 24px; }
.v2-prose h3 { font-size: 18px; font-weight: 600; color: var(--dd-text); margin: 28px 0 8px; }
.v2-prose p, .v2-prose li { margin: 0 0 12px; }
.v2-prose a { color: var(--dd-accent); }
.v2-prose b, .v2-prose strong { color: var(--dd-text); }
.v2-message { max-width: 520px; margin: 32px auto; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.v2-message h1 { font-size: 54px; }
.v2-message .v2-scopenote { text-align: center; }
.v2-formcard { max-width: 560px; width: 100%; margin: 0 auto; }
select.v2-input { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23A3A9A5' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }

/* ════════════════════════════════════════════════════════════════════════
   Refinement pass (2026-10-05 live review). Overrides above, kept together.
   ════════════════════════════════════════════════════════════════════════ */

/* Board: numbers never wrap; meta is one line of whole segments. */
.v2-brow > td.dt, .v2-brow .v2-rtc, .v2-wl-ph { white-space: nowrap; font-variant-numeric: tabular-nums; }
.v2-board-wrap { position: relative; }
.v2-bmeta { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 4px 0; font-size: 13px; color: var(--dd-text-muted); padding: 0 2px; margin: 0; }
.v2-bmeta i { width: 6px; height: 6px; border-radius: 3px; background: var(--dd-accent); flex: none; margin-right: 8px; }
.v2-bmeta > span { white-space: nowrap; }
.v2-bmeta > span + span::before { content: '·'; margin: 0 8px; color: var(--dd-text-subtle); }
/* Early-season warning: one amber segment of the meta line (was a card). */
.v2-bmeta > .v2-bmeta-early { color: #E8C468; white-space: normal; }

/* Helper + footer text one step brighter, still below body copy. */
.v2-footer, .v2-footer a, .v2-bnote, .v2-shape-k, .v2-pro-price { color: var(--dd-text-muted); }
.v2-footer a:hover { color: var(--dd-text); }

/* One active-filter language: green fill (README: green = active/selected). */
.v2-chip[aria-pressed="true"],
.v2-filterbar .v2-seg[aria-selected="true"],
.v2-seglinks a[aria-current] { background: var(--dd-accent); border-color: var(--dd-accent); color: var(--dd-bg); }
.v2-region[aria-current] { background: var(--dd-accent); border-color: var(--dd-accent); color: var(--dd-bg); }
.v2-region[aria-current] span { color: rgba(11,13,12,.72); }

/* Mobile rank track: 36px so triple digits sit as airy as single ones. */
.v2-brow { grid-template-columns: 36px minmax(0, 1fr) auto; }
.v2-board.has-follow .v2-brow { grid-template-columns: 36px minmax(0, 1fr) auto 44px; }
.v2-skrow { grid-template-columns: 36px minmax(0, 1fr) 34px; }

@media (min-width: 900px) {
  /* Fixed layout: the team column takes what's left and ellipses, so the
     board fits the 1200px column with no horizontal scroll. */
  .v2-board { table-layout: fixed; }
  .v2-board .c-rk { width: 64px; }
  .v2-board .c-wl, .v2-board .c-pct { width: 76px; }
  .v2-board .c-diff, .v2-board .c-sos { width: 72px; }
  .v2-board .c-sor { width: 84px; }
  .v2-board .c-rating { width: 80px; }
  .v2-board .c-spark { width: 120px; }
  .v2-board .c-fl { width: 56px; }
  .v2-board th[class*="c-"]:not(.c-team):not(.c-rk) { padding: 0 10px; }
  /* Team label sits over the names: same inset as the cell, plus the
     logo slot (32px + 10px gap) when the board has one. */
  .v2-board th.c-team { padding-left: 10px; }
  .v2-board.has-logos th.c-team { padding-left: 52px; }
  .v2-brow > td { padding: 0 10px; }
  .v2-brow > td.v2-who { overflow: hidden; }
  .v2-sparkcell .v2-spark { width: 96px; }
  /* Sticky header: the page scrolls, the column labels stay. */
  .v2-board thead th { position: sticky; top: 0; z-index: 3; background: var(--dd-bg); color: var(--dd-text-muted); font-size: 13px; font-weight: 600;
                       box-shadow: inset 0 -1px 0 var(--dd-line); border-bottom: 0; }
}

/* The Drop: direction-true colors, countdown chip, quiet background. */
.v2-dropbox b.now.up { color: var(--dd-accent); }
.v2-dropbox b.now.down { color: var(--dd-down); }
.v2-dropbox b.now.flat { color: var(--dd-text); }
/* The wash behind the shown team, in solid colors (pre-blended onto
   --dd-bg): print and PDF export drop alpha, which turned the rgba glow
   into a hard green disc (2026-10-08). Same look on screen. */
.v2-drop { background: radial-gradient(ellipse 90% 50% at 50% 0%, #171A18, #0B0D0C 70%); background-color: var(--dd-bg); }
.v2-drop--up { background: radial-gradient(ellipse 90% 50% at 30% 0%, #172219, #0B0D0C 72%); background-color: var(--dd-bg); }
.v2-drop--down { background: radial-gradient(ellipse 90% 50% at 30% 0%, #211913, #0B0D0C 72%); background-color: var(--dd-bg); }
body[data-page="drop"] .v2-head.dd-flood { background: none; }

/* Team page "On this page" chips: sticky, scroll sideways on a phone. */
           max-width: 100%; padding: 4px; border-radius: 999px; }
             font-size: 14px; font-weight: 600; color: var(--dd-text-2); text-decoration: none; }
.v2-anchor { display: block; height: 0; }
#v2-rank, #rx, #v2-depth, #v2-rot-h, #v2-perf-h, #v2-shape-h, #v2-games-h { scroll-margin-top: 64px; }
body.v2 .rx-price { display: block; margin-top: 8px; font-size: 13px; color: var(--dd-text-muted); }

/* Home → Following → Edit: Unfollow buttons appear only while editing. */
.v2-edit-only { display: none; }
.v2-follows.editing .v2-edit-only { display: inline-flex; align-items: center; }
.v2-follows.editing .v2-follow-move { display: none; }
#v2-follow-edit[aria-pressed="true"] { color: var(--dd-accent); }

/* Admin "viewing as signed out" pill — always on screen while active. */
.v2-asanon { position: fixed; left: 12px; bottom: calc(var(--v2-tabbar-h) + 12px + env(safe-area-inset-bottom)); z-index: 1200;
             display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px;
             font-size: 13px; color: var(--dd-text-2); text-decoration: none; }
.v2-asanon b { color: var(--dd-accent); }
@media (min-width: 900px) { .v2-asanon { bottom: 16px; } }

/* Big-board performance (2026-10-05: the 12U All Texas board is ~1,050
   rows). The follow icon is CSS, not two inline SVGs per row — ~6,000
   fewer DOM nodes, same move v1's board made (board.html .bd-fbtn) — and
   phone card rows skip layout/paint until they scroll near. */
.v2-fbtn::before { content: ''; width: 20px; height: 20px; background: currentColor;
  -webkit-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'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v8M8 12h8'/%3E%3C/svg%3E") center / contain no-repeat;
          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'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v8M8 12h8'/%3E%3C/svg%3E") center / contain no-repeat; }
.v2-fbtn[aria-pressed="true"]::before {
  -webkit-mask-image: 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%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l3 3 5-6'/%3E%3C/svg%3E");
          mask-image: 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%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l3 3 5-6'/%3E%3C/svg%3E"); }
@media (max-width: 899px) {
  .v2-brow { content-visibility: auto; contain-intrinsic-size: auto 62px; }
}

/* Tab bar → Account (2026-10-05): phone search moves to the Rankings
   header; phones drop the footer except on the landing page. */
.v2-navbtn { background: none; border: 0; padding: 12px 0; font: inherit; color: var(--dd-text-muted); cursor: pointer; }
.v2-navbtn:hover { color: var(--dd-text); }
.v2-bsearch { position: absolute; top: 12px; right: var(--dd-gutter); z-index: 2; }
@media (max-width: 899px) {
  body.v2:not([data-page="home"]) .v2-footer { display: none; }
}
@media (min-width: 900px) { .v2-bsearch { display: none; } }
.v2-bsearch ~ .dd-eyebrow { padding-right: 56px; }
@media (min-width: 900px) { .v2-bsearch ~ .dd-eyebrow { padding-right: 0; } }

/* ════════════════════════════════════════════════════════════════════════
   Sparklines: color by direction (2026-10-05). Green only when the rank
   improved — the same rule The Drop uses for a moved rank.
   ════════════════════════════════════════════════════════════════════════ */
/* Per-segment colors (2026-10-08): every rise green, every fall orange. */
.v2-spark .seg.up { stroke: var(--dd-accent); }
.v2-spark .seg.down { stroke: var(--dd-down); }
.v2-spark .seg.flat { stroke: var(--dd-text-subtle); }

/* ════════════════════════════════════════════════════════════════════════
   My Dugout polish (2026-10-05): three depth planes, green = action,
   two typographic poles, the countdown as the week's moment.
   ════════════════════════════════════════════════════════════════════════ */

/* Plane 2 — standard cards sit recessed: hairline, top-edge highlight,
   restrained drop shadow. */
body[data-page="home_v2"] .v2-plane,
body[data-page="home_v2"] .v2-follows--home .v2-follow-row {
  background: var(--dd-surface);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 8px 24px rgba(0,0,0,.35);
}

/* Plane 3 — the hero: green-tinted gradient hairline, frosted surface,
   ambient glow centered behind the rank numeral. */
.v2-plane-hero {
  position: relative; isolation: isolate; border: 0;
  background:
    radial-gradient(ellipse 60% 70% at 22% 72%, rgba(143,219,138,.16), rgba(143,219,138,0) 70%),
    linear-gradient(180deg, rgba(28,32,30,.78), rgba(18,21,20,.78));
  -webkit-backdrop-filter: blur(var(--dd-glass-blur)) saturate(140%);
          backdrop-filter: blur(var(--dd-glass-blur)) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 48px rgba(0,0,0,.5);
}
.v2-plane-hero::before {           /* gradient hairline border */
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1; pointer-events: none;
  background: linear-gradient(160deg, rgba(143,219,138,.55), rgba(143,219,138,.08) 45%, rgba(255,255,255,.06));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.v2-hero-num {                      /* pole 1: the big rank numeral */
  font-family: var(--dd-font-display); font-weight: 800; font-size: 96px; line-height: .8; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #B6EBB2 0%, var(--dd-accent) 55%, #6CC468 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(143,219,138,.28));
}
.v2-myteam-name { font-size: 36px; }

/* Pole 2: small, tracked labels. "Sunday night" drops to label size. */
.v2-countdown { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.v2-cd-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.v2-cd-when { font-size: 13px; font-weight: 600; color: var(--dd-text-muted); }
.v2-countdown .v2-clock { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.v2-countdown .v2-clock div { min-width: 0; }
.v2-countdown .v2-clock b { font-size: 64px; line-height: .9; letter-spacing: .02em; }
.v2-countdown .v2-clock span { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--dd-text-muted); margin-top: 6px; }
.v2-cd-progress { position: relative; height: 3px; border-radius: 2px; background: rgba(255,255,255,.08); }
.v2-cd-progress i { position: relative; display: block; height: 100%; width: 0; border-radius: 2px;
  background-image: linear-gradient(90deg, rgba(143,219,138,.35), var(--dd-accent)); }
/* The head: a bright dot with a soft, still glow. (The streak that ran the
   bar, the breathing head and the final-day pulse looped forever with no
   job to do; cut 2026-11-02.) */
.v2-cd-progress i::after { content: ''; position: absolute; right: -4px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%;
  background: #DFFFDB; box-shadow: 0 0 6px 2px rgba(143,219,138,.85), 0 0 18px 6px rgba(143,219,138,.35); }
.v2-countdown.soon .v2-clock b { color: #DFF5DC; }   /* static final-day cue */
/* After the drop (v2_data.drop_state): the card says the rankings are in, or
   that they're still updating, in the clock's place. */
.v2-cd-title { margin: 0; font: 800 34px/1.02 var(--dd-font-display); letter-spacing: .01em; color: var(--dd-text); text-wrap: balance; }
.v2-cd-note { margin: 0; font-size: 14px; line-height: 1.45; color: var(--dd-text-muted); }
.v2-countdown.is-in .v2-cd-title { color: #DFF5DC; }
.v2-countdown.is-in .v2-rowbtn svg { color: var(--dd-accent); }
/* Working, not measuring: a full, flat track and no head, since there is no
   "how far along" to show. The title says it is still updating. */
.v2-cd-progress.is-working i { width: 100%; background-image: linear-gradient(90deg, rgba(143,219,138,.35), rgba(143,219,138,.35)); }
.v2-cd-progress.is-working i::after { content: none; }
.v2-dropclock.is-updating { gap: 10px; padding: 16px 16px 14px; }
.v2-dropclock.is-updating .v2-cd-title { font-size: 26px; text-align: center; }

/* Green = action: tappable text is green, no underline. */
.v2-action { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--dd-accent); font-weight: 600; font-size: 15px;
             text-decoration: none; align-self: flex-start; }
.v2-action:hover { color: var(--dd-accent-hover); }
.v2-textbtn.v2-action { padding: 0 4px; }

/* Following rows read as tappable: chevron + press state; "My team" reads
   selected (gradient fill), not just outlined. */
.v2-follows--home .v2-follow-link { padding-right: 4px; }
.v2-chev { flex: none; display: inline-flex; color: var(--dd-text-subtle); }
body[data-page="home_v2"] .v2-follows--home .v2-follow-row:hover { background-color: var(--dd-surface-2); }
body[data-page="home_v2"] .v2-follows--home .v2-follow-row:active { background-color: var(--dd-surface-2); }
body[data-page="home_v2"] .v2-follows--home .v2-follow-row.primary {
  background: linear-gradient(135deg, rgba(143,219,138,.14), rgba(143,219,138,.03) 60%), var(--dd-surface);
  border-color: rgba(143,219,138,.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 .5px rgba(143,219,138,.6), 0 8px 24px rgba(0,0,0,.35);
}
.v2-follows.editing .v2-chev { display: none; }
.v2-rowbtn { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 16px; border-radius: 18px;
             color: var(--dd-text); text-decoration: none; font-weight: 600; font-size: 15px; }
.v2-rowbtn svg { color: var(--dd-text-subtle); }
.v2-ghostbtn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 16px;
               border: 1px dashed var(--dd-line-strong); background: transparent; color: var(--dd-text-muted); font-weight: 600; font-size: 14px; cursor: pointer; }
.v2-ghostbtn:hover { color: var(--dd-text); border-color: var(--dd-text-subtle); }
@media (min-width: 900px) { .v2-hero-num { font-size: 112px; } .v2-countdown .v2-clock b { font-size: 72px; } }

/* ── Inline header search (2026-10-05) ────────────────────────────────────
   Closed: a 44px glass icon in the header corner. Open: the same corner
   grows into a field across the header (no page movement — it's absolutely
   positioned over the eyebrow row), and results drop under it. */
.v2-bsearch, .v2-bsearch ~ .dd-eyebrow { padding-right: 0; }
.v2-isearch { position: absolute; top: 12px; left: var(--dd-gutter); right: var(--dd-gutter); z-index: 20; height: 44px; pointer-events: none; }
.v2-isearch-btn { position: absolute; right: 0; top: 0; pointer-events: auto; }
.v2-isearch ~ .dd-eyebrow { padding-right: 56px; }
.v2-isearch-field { position: absolute; right: 0; top: 0; height: 44px; width: 44px; border-radius: 22px; opacity: 0; pointer-events: none;
                    display: flex; align-items: center; gap: 8px; padding: 0 6px 0 14px; color: var(--dd-text-subtle); overflow: hidden;
                    transition: width .15s cubic-bezier(.22, 1, .36, 1), opacity .15s cubic-bezier(.22, 1, .36, 1); }
.v2-isearch-field input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--dd-text); font: 16px var(--dd-font-body); }
.v2-isearch-field input::-webkit-search-cancel-button { display: none; }
.v2-isearch-x { flex: none; width: 36px; height: 36px; border: 0; border-radius: 18px; background: rgba(255,255,255,.08); color: var(--dd-text);
                display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.v2-isearch.open { pointer-events: auto; }
.v2-isearch.open .v2-isearch-btn { opacity: 0; pointer-events: none; }
.v2-isearch.open .v2-isearch-field { width: 100%; opacity: 1; pointer-events: auto; border-color: rgba(143,219,138,.45); transition-duration: .25s; }
.v2-isearch-panel { position: absolute; top: 52px; left: 0; right: 0; max-height: min(60vh, 520px); overflow-y: auto; border-radius: 20px;
                    padding: 10px 14px; display: none; flex-direction: column; gap: 8px; box-shadow: 0 18px 48px rgba(0,0,0,.55);
                    background: rgba(17,20,19,.92); }
.v2-isearch.open .v2-isearch-panel { display: flex; }
.v2-isearch-panel .v2-results { min-height: 0; }
@media (min-width: 900px) { .v2-isearch { display: none; } .v2-isearch ~ .dd-eyebrow { padding-right: 0; } }
/* The header clips its floodlight glow; while search is open, clip only
   sideways so the results can drop below the header. Field goes opaque so
   the title doesn't ghost through. */
.v2-head:has(.v2-isearch.open) { overflow-x: clip; overflow-y: visible; }
.v2-isearch.open .v2-isearch-field { background: rgba(17,20,19,.96); }
.v2-bhero > .dd-eyebrow, .v2-bhero > h1 { transition: opacity .15s ease; }
.v2-bhero:has(.v2-isearch.open) > .dd-eyebrow, .v2-bhero:has(.v2-isearch.open) > h1 { opacity: 0; }

/* Home bell (2026-10-05): count badge replaces the dot. */
.v2-bell-n { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
             border-radius: 9px; background: var(--dd-accent); color: #0B0D0C; box-shadow: 0 0 0 2px var(--dd-bg);
             font: 800 12px/18px var(--dd-font-display); text-align: center; font-variant-numeric: tabular-nums; }

/* ── Inline filter dropdown (2026-10-05) ──────────────────────────────────
   The phone filter pill opens its panel right under itself, floating over
   the board (nothing below moves) — same feel as the inline search. */
.v2-fdrop { position: relative; z-index: 19; }
.v2-fdrop.open .v2-fdrop-chev { transform: rotate(180deg); }
.v2-fdrop.open .v2-filterbtn { border-color: rgba(143,219,138,.45); }
.v2-fdrop-panel { position: absolute; top: calc(100% + 8px); left: 0; right: 0; max-height: min(68vh, 560px); overflow-y: auto;
                  overscroll-behavior: contain; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 18px;
                  background: rgba(17,20,19,.96); box-shadow: 0 18px 48px rgba(0,0,0,.55);
                  visibility: hidden; opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top center; pointer-events: none;
                  transition: opacity .15s cubic-bezier(.22, 1, .36, 1), transform .15s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .15s; }
.v2-fdrop.open .v2-fdrop-panel { visibility: visible; opacity: 1; transform: none; pointer-events: auto;
                                 transition: opacity .25s cubic-bezier(.22, 1, .36, 1), transform .25s cubic-bezier(.22, 1, .36, 1), visibility 0s; }
.v2-fdrop-foot { display: flex; justify-content: space-between; margin: -10px 0 -8px; }
.v2-fdrop-foot .v2-textbtn { min-height: 44px; padding-left: 0; padding-right: 0; font-size: 14px; color: var(--dd-text-muted); }
.v2-fdrop-reset { margin-left: auto; }
.v2-head:has(.v2-fdrop.open) { overflow-x: clip; overflow-y: visible; }

/* ── Desktop filter menus (2026-10-11) ────────────────────────────────────
   Season and region each open a small menu under their own pill instead of
   a dialog over the page. Opens in 250ms with an 8px drop, closes in 150ms,
   one curve both ways (tuned 2026-11-02); Escape closes it with no fade. */
.v2-pop { position: relative; }
.v2-pillbtn--static { cursor: default; }
.v2-pop [data-pop-open] svg { transform: rotate(90deg); color: var(--dd-text-subtle); }
.v2-pop.open [data-pop-open] svg { transform: rotate(-90deg); }
.v2-pop.open [data-pop-open] { border-color: rgba(143,219,138,.45); }
.v2-pop-panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; min-width: 100%; box-sizing: border-box; padding: 6px;
                border-radius: 18px; display: flex; flex-direction: column; gap: 2px;
                background: rgba(17,20,19,.96); box-shadow: 0 18px 48px rgba(0,0,0,.55);
                visibility: hidden; opacity: 0; transform: translateY(-8px); pointer-events: none;
                transition: opacity .15s cubic-bezier(.22, 1, .36, 1), transform .15s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .15s; }
.v2-pop.open .v2-pop-panel { visibility: visible; opacity: 1; transform: none; pointer-events: auto;
                             transition: opacity .25s cubic-bezier(.22, 1, .36, 1), transform .25s cubic-bezier(.22, 1, .36, 1), visibility 0s; }
.v2-pop-panel--regions { width: 440px; padding: 8px; }
.v2-pop-item { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 12px; white-space: nowrap;
               color: var(--dd-text-muted); font-weight: 600; font-size: 15px; text-decoration: none; }
a.v2-pop-item:not([aria-current]):hover { background: rgba(255,255,255,.07); color: var(--dd-text); }
.v2-pop-item[aria-current] { background: var(--dd-accent); color: var(--dd-bg); }
.v2-pop-item.soon { opacity: .6; cursor: default; }
.v2-pop-item small { font-size: 11px; }
.v2-pop-panel .v2-region:not([aria-current]):hover { border-color: var(--dd-line-strong); background: rgba(255,255,255,.05); }
.v2-head:has(.v2-pop.open) { overflow-x: clip; overflow-y: visible; z-index: 20; }

/* ── The Drop, one team at a time (2026-10-05) ───────────────────────────
   Copy sits under the close button (no tall empty hero); Share + a story
   thumbnail sit right under the result; the team list is a switcher. */
.v2-drop { min-height: 0; justify-content: flex-start; gap: 28px; padding-bottom: 24px; }
.v2-drop-team { display: flex; flex-direction: column; gap: 14px; }
.v2-drop-team[hidden] { display: none; }
.v2-drop-showing { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.v2-drop-pick:not([aria-current]) .v2-drop-showing { display: none; }
.v2-drop-row { padding-right: 14px; }
.v2-drop-row.on { box-shadow: inset 0 0 0 1.5px var(--dd-accent); background: var(--dd-surface-2); }
.v2-drop-pick { min-height: 64px; text-decoration: none; }
.v2-drop-pick .v2-follow-who { flex: 1; }
.v2-drop-pick .v2-follow-move { padding-right: 0; text-align: right; }

/* One row on top: ‹ This week · Oct 4 › (the tab bar is the way out). */
.v2-weeknav { padding: 4px; border-radius: 26px; background: var(--dd-surface); box-shadow: inset 0 0 0 1px var(--dd-line); }
.v2-weeknav .v2-iconbtn { background: transparent; box-shadow: none; border: 0; color: var(--dd-text); }
.v2-weeknav a.v2-iconbtn:hover { background: var(--dd-surface-2); }
.v2-weeknav-label { color: var(--dd-text); font-size: 15px; }
.v2-weeknav-label span { color: var(--dd-text-muted); font-weight: 500; }
/* Rank card spans the column; its board lines stack instead of wrapping. */
.v2-drop .v2-dropbox { align-self: stretch; }
.v2-dropbox-meta { display: flex; flex-direction: column; gap: 2px; margin-left: auto; text-align: right; min-width: 0; }
.v2-dropbox-meta .v2-label { font-size: 15px; }
@media (min-width: 900px) { .v2-drop .v2-dropbox { align-self: flex-start; min-width: 460px; } .v2-weeknav { max-width: 420px; } }

/* ── First-session onboarding sheet (components/onboarding.html) ───── */
.v2-obnudge { margin: 0 0 16px; flex-wrap: wrap; }
.v2-obnudge .dd-btn { min-height: 44px; }
.v2-obnudge .v2-textbtn { min-height: 44px; }
.v2-ob { transition: transform .2s ease; }
.v2-ob-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.v2-ob-bar [data-ob-back][hidden] + .v2-ob-count { margin-left: 56px; }
.v2-ob-count { flex: 1; text-align: center; font-size: 13px; color: var(--dd-text-muted); }
.v2-ob-step { display: flex; flex-direction: column; gap: 14px; }
.v2-ob-step[hidden] { display: none; }
.v2-ob-step h2:focus { outline: none; }
.v2-ob-results { display: flex; flex-direction: column; max-height: 42dvh; overflow-y: auto; }
.v2-ob-results .v2-result { width: 100%; min-height: 56px; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--dd-line); color: inherit; cursor: pointer; font: inherit; }
.v2-ob-results .v2-result[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--dd-accent); background: var(--dd-surface-2); }
.v2-ob-results .v2-result.saving { opacity: .6; }
.v2-ob-group { display: flex; flex-wrap: wrap; gap: 8px; }
.v2-ob-group .v2-chip { min-height: 44px; }
.v2-ob-group .v2-chip[aria-checked="true"] { background: var(--dd-accent); color: var(--dd-bg); border-color: var(--dd-accent); }
.v2-ob-err { margin: 0; font-size: 14px; color: var(--dd-down); }
.v2-ob-summary { display: flex; flex-direction: column; gap: 10px; }
.v2-ob-summary b { display: block; font-size: 17px; }
.v2-ob-tags { display: flex; gap: 8px; margin-top: 6px; }
.v2-ob-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--dd-text-muted); }
.v2-ob-skip { align-self: center; min-height: 44px; }
@media (prefers-reduced-motion: reduce) { .v2-ob { transition: none; } }

/* ── The Drop: week arrows + the countdown clock (2026-10-08) ─────────── */
.v2-weeknav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.v2-weeknav .v2-iconbtn { width: 44px; height: 44px; }
.v2-weeknav [data-off] { opacity: .3; }
.v2-weeknav .v2-flip svg { transform: scaleX(-1); }
.v2-weeknav-label { font-size: 14px; font-weight: 600; color: var(--dd-text-muted); }
.v2-dropclock { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 20px; margin-top: 18px; }
.v2-dropclock .v2-clock { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.v2-dropclock .v2-clock b { font-size: 44px; min-width: 2ch; text-align: center; }
.v2-dropclock .v2-cd-when { margin: 0; text-align: center; }
/* Desktop: The Drop is a stage on the page's full column (2026-10-11; it
   was a 680px column hugging the left). The week, the headline, the rank
   move and the clock stack on the left; the story image, the thing this
   tab exists to share, stands at phone shape on the right. The shown
   team's panel dissolves (display: contents) so its parts sit on that one
   grid. With nothing to share (a past week, no team) it is a centered
   column. The desktop story-tile rules sit after the tile's own, below. */
@media (min-width: 900px) {
  body[data-page="drop"] .v2-lhero.v2-drop { padding-top: 48px; }
  body[data-page="drop"] .v2-lcopy { max-width: 680px; margin: 0 auto; width: 100%; gap: 18px; }
  body[data-page="drop"] .v2-drop .v2-dropbox { align-self: stretch; min-width: 0; }
  body[data-page="drop"] .v2-weeknav { max-width: none; margin-bottom: 0; }
  .v2-drop h1 { font-size: clamp(3.5rem, 6vw, 5.5rem); }
  body[data-page="drop"] .v2-lcopy:has(.v2-drop-team:not([hidden]) .v2-story-tile) {
    max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: 40px; align-content: start; }
  body[data-page="drop"] .v2-lcopy:has(.v2-drop-team:not([hidden]) .v2-story-tile) > * { grid-column: 1; }
  body[data-page="drop"] .v2-lcopy:has(.v2-story-tile) .v2-drop-team:not([hidden]) { display: contents; }
  body[data-page="drop"] .v2-drop-team > * { grid-column: 1; }
  body[data-page="drop"] .v2-drop-team > .v2-story-tile { grid-column: 2; grid-row: 1 / span 8; align-self: start; }
  body[data-page="drop"] .v2-drop h1.v2-drop-h { margin-top: 10px; }
  body[data-page="drop"] .v2-dropclock { margin-top: 0; }
  /* The direction wash runs the width of the window, not a 1200px box. */
  body[data-page="drop"] .v2-lhero.v2-drop { background: none; }
  body[data-page="drop"] .v2-head { background: radial-gradient(ellipse 90% 50% at 50% 0%, #171A18, #0B0D0C 70%); background-color: var(--dd-bg); }
  body[data-page="drop"] .v2-head:has(.v2-drop--up) { background: radial-gradient(ellipse 90% 50% at 30% 0%, #172219, #0B0D0C 72%); background-color: var(--dd-bg); }
  body[data-page="drop"] .v2-head:has(.v2-drop--down) { background: radial-gradient(ellipse 90% 50% at 30% 0%, #211913, #0B0D0C 72%); background-color: var(--dd-bg); }
  body[data-page="drop"] main .v2-follows { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
}

/* ── The Drop, story-slide composition (2026-10-08 audit, workstream 4) ── */
/* One hero: the rank move. The headline steps down a size. */
.v2-drop h1.v2-drop-h { font-size: 44px; line-height: .98; }
@media (min-width: 900px) { .v2-drop h1.v2-drop-h { font-size: clamp(3rem, 4.5vw, 4.25rem); } }
/* Rank card on one grid: numbers | divider | board lines, one center axis. */
.v2-drop .v2-dropbox { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 18px; padding: 18px 20px; }
.v2-dropbox-nums { display: flex; align-items: center; gap: 10px; }
.v2-drop .v2-dropbox b { font-size: 68px; }
.v2-drop .v2-dropbox b.was { font-size: 44px; }
.v2-dropbox-meta { margin-left: 0; text-align: left; justify-self: end; padding-left: 16px; border-left: 1px solid var(--dd-line-strong); }
/* Share tile: story preview | label + subtitle | send. One tap target. */
.v2-story-tile { display: grid; grid-template-columns: 76px minmax(0, 1fr) 44px; align-items: center; gap: 14px; width: 100%;
  padding: 12px 14px 12px 12px; border: 0; border-radius: 22px; text-align: left; color: var(--dd-text); cursor: pointer; font: inherit;
  background: linear-gradient(135deg, #1A1F1C, #121514); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 12px 30px rgba(0,0,0,.45); }
.v2-story-tile:focus-visible { outline: 2px solid var(--dd-accent); outline-offset: 3px; }
.v2-story-tile img { display: block; width: 76px; height: 135px; object-fit: cover; border-radius: 12px; background: var(--dd-bg);
  box-shadow: 0 0 0 2px var(--dd-bg), 0 0 0 4px var(--dd-accent); }
.v2-story-tile-copy { min-width: 0; }
.v2-story-tile b { display: block; font: 800 22px/1 var(--dd-font-display); color: var(--dd-text); overflow-wrap: anywhere; }
.v2-story-tile small { display: block; margin-top: 6px; font-size: 13px; line-height: 1.35; color: var(--dd-text-muted); }
.v2-story-tile-go { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 22px;
  background: var(--dd-accent); color: var(--dd-bg); }
@media (min-width: 900px) {
  body[data-page="drop"] .v2-story-tile { grid-template-columns: minmax(0, 1fr) 44px; grid-template-areas: "img img" "copy go"; gap: 14px 12px; padding: 12px 12px 16px; }
  body[data-page="drop"] .v2-story-tile img { grid-area: img; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 14px; }
  body[data-page="drop"] .v2-story-tile-copy { grid-area: copy; padding-left: 4px; }
  body[data-page="drop"] .v2-story-tile-go { grid-area: go; }
  body[data-page="drop"] .v2-drop .v2-dropbox { padding: 24px 28px; }
  body[data-page="drop"] .v2-drop .v2-dropbox b { font-size: 96px; }
  body[data-page="drop"] .v2-drop .v2-dropbox b.was { font-size: 60px; }
}
/* Week bar: no newer drop → an invisible spacer, not a dim arrow. */
.v2-weeknav-spacer { visibility: hidden; }
/* Countdown: tighter, four live cells. */
.v2-dropclock { padding: 12px 14px 10px; gap: 4px; margin-top: 8px; }
.v2-dropclock .v2-clock { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.v2-dropclock .v2-clock b { font-size: 36px; }
.v2-dropclock .v2-cd-when { font-size: 13px; }
/* A team that dropped: its rank numeral is neutral, never green. */
.v2-follow-rk.dn { color: var(--dd-text); }
.v2-hero-num.dn { background: none; color: var(--dd-text); -webkit-text-fill-color: currentColor; }
.v2-drop-since { margin: -4px 0 0; font-size: 14px; color: var(--dd-text-muted); }
.v2-mv small { font-size: 12px; font-weight: 600; opacity: .85; }
/* Follow rows everywhere (Home, /account, The Drop): the name block takes
   the slack, so the move lines up on the right instead of floating. */
.v2-follow-link .v2-follow-who { flex: 1; }
/* Board: a team that moved down shows its rank neutral, never green. */
.v2-rk.dn, .v2-brow > td.v2-rk.dn { color: var(--dd-text); }

/* ── Search tab, before a query: Recent (this device) + Trending ─────── */
.v2-idle { display: flex; flex-direction: column; gap: 22px; margin-top: 6px; }
.v2-idle[hidden] { display: none; }
.v2-idle .v2-sh { margin-bottom: 4px; }
.v2-idle .v2-label { font-size: 17px; }
.v2-idle-clear { min-height: 44px; padding: 0 6px; font-size: 14px; color: var(--dd-text-muted); }
.v2-idle-clear:hover { color: var(--dd-text); }
.v2-trending .v2-result:first-child .v2-mono { box-shadow: inset 0 0 0 1.5px var(--dd-accent); }
.v2-searchpage .v2-results, #v2-search .v2-results { min-height: 0; }  /* no reserved gap above Recent/Trending */
#v2-search .v2-idle:empty, #v2-search .v2-results:empty { display: none; }
/* Results arriving make the sheet scroll. Reserving the scrollbar's lane
   keeps the field and rows from shifting 14px left as you type. Overlay
   scrollbars (phones, trackpads) take no lane, so this costs nothing there. */
#v2-search .v2-sheet { scrollbar-gutter: stable; }
/* On a phone the search sheet opens at full height, so the field sits at
   the top of the screen, clear of the keyboard, with room for results. */
@media (max-width: 899px) {
  /* The sheet keeps its size when the keyboard comes up (it used to snap
     shorter mid-slide); the keyboard's height becomes scroll room instead. */
  #v2-search.v2-scrim { padding-bottom: 0; }
  #v2-search .v2-sheet { height: calc(100dvh - 48px); max-height: none; padding-bottom: calc(max(34px, env(safe-area-inset-bottom)) + var(--v2-kb, 0px)); }
}
.v2-idle-empty { padding: 4px; }
/* The admin "viewing as signed out" pill stays out of an open sheet's way. */
body:has(.v2-scrim:not([hidden])) .v2-asanon { display: none; }

/* ── Page loads and tab switches: no motion (2026-11-02). Tabs and links
   are tapped all day, so the slide by tab order and the cross-fade are
   gone. The cross-document view transition stays on with every animation
   zeroed: Safari 18.2+ and Chrome 126+ keep the old page on screen until
   the new one is ready, then cut, with no blank frame in between. ── */
@view-transition { navigation: auto; }
::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
/* Tap acknowledgement while the next page loads: lit at once, no fade. */
.v2-tab.going { opacity: 1; color: var(--dd-accent); background: rgba(255,255,255,.10); }
.v2-tab.going ~ .v2-tab[aria-current="page"], .v2-tab[aria-current="page"]:has(~ .v2-tab.going) { color: var(--dd-text); background: none; opacity: .78; }
body.v2-nav-pending .v2-main { opacity: .6; }

/* ── Desktop board swaps (2026-10-11, v2.js). A filter fetches the next
   board and swaps it into the page in one step, no cross-fade (filters are
   used all day). The old board only dims if the next one is not already
   here after 140 ms. */
body.v2-board-loading .v2-main { opacity: .5; }

/* ── Team page, profile layout (2026-10-08): identity + actions, the number,
   a stats strip, then labelled groups of rows. ───────────────────────── */
.v2-pf-hero { position: relative; padding: 12px var(--dd-gutter) 6px; display: flex; flex-direction: column; gap: 14px; }
.v2-pf-hero .dd-bank { position: absolute; pointer-events: none; }
.v2-pf-hero > :not(.dd-bank) { position: relative; }
.v2-ident-fix { font-size: 13px; }
.v2-pf-back { align-self: flex-start; }
.v2-pf-hero .v2-ident { gap: 6px; }
.v2-pf-hero .v2-ident h1 { font-size: 44px; line-height: .98; }
.v2-pf-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.v2-pf-actions .v2-follow { width: 100%; justify-content: center; box-sizing: border-box; }
.v2-pf-actions .v2-pf-share { width: 100%; height: 44px; padding: 0 18px; border: 0; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--dd-text); font: 600 15px var(--dd-font-body); cursor: pointer; }
.v2-pf-hero .v2-follow-why { margin: -4px 0 0; font-size: 13px; line-height: 1.4; color: var(--dd-text-muted); }
/* The rank gets its own stage: one step up the surface ramp, the hero
   radius, and a soft floodlight from the top-left corner (white, never
   green: the Neutral Surface Rule). Every other group stays flat Surface. */
.v2-rankhero { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px 0; border-radius: var(--dd-radius-hero);
  background: radial-gradient(ellipse 80% 95% at 0% 0%, rgba(240,245,235,.075), rgba(240,245,235,0) 70%), var(--dd-surface-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.v2-rh { display: flex; flex-direction: column; gap: 12px; }
/* "#38" and "of 820 / 11U Texas" read as one line; a rank too wide to
   share the row wraps its context underneath. */
.v2-rh-top { display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: 16px; row-gap: 8px; }
.v2-rankhero .v2-rank-num { font-size: 92px; }
.v2-rankhero .v2-rank-num.unranked { font-size: 40px; }
.v2-rankhero .v2-rank-of { display: flex; flex-direction: column; gap: 2px; margin: 0; padding-bottom: 2px; min-width: 0; color: var(--dd-text-muted); font-size: 15px; line-height: 1.25; }
.v2-rankhero .v2-rank-of b { font: 800 24px/1 var(--dd-font-display); color: var(--dd-text); font-variant-numeric: tabular-nums; }
.v2-rh .v2-trend { font-size: 15px; font-weight: 700; }
/* Six-week chart (components/team.html rank_chart): the card's full width,
   rank gridlines labelled on the right, dates under the ends. The right
   gutter holds the "#n" labels; the dot and labels are HTML so the
   stretched SVG never squashes them. */
.v2-rchart { margin: 2px 0 0; }
.v2-rchart-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px;
  font-size: 13px; font-weight: 600; color: var(--dd-text-muted); }
.v2-rchart-read { font-weight: 500; color: var(--dd-text-subtle); font-variant-numeric: tabular-nums; }
.v2-rchart-read b { font-weight: 700; color: var(--dd-text); }
.v2-rchart-plot { position: relative; height: 104px; margin-right: 34px; touch-action: pan-y; border-radius: 4px; }
.v2-rchart-plot[tabindex] { cursor: crosshair; }
.v2-rchart-plot:focus-visible { outline: 2px solid var(--dd-accent); outline-offset: 6px; }
.v2-rchart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.v2-rchart .grid { stroke: var(--dd-line); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.v2-rchart .base, .v2-rchart .wk { stroke: var(--dd-line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.v2-rchart .area { stroke: none; }
.v2-rchart stop.a { stop-color: var(--dd-accent); stop-opacity: .2; }
.v2-rchart stop.b { stop-color: var(--dd-accent); stop-opacity: 0; }
.v2-rchart .line { fill: none; stroke: var(--dd-accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.v2-rchart-y { position: absolute; right: -34px; transform: translateY(-50%); font-size: 11.5px; font-weight: 600; line-height: 1;
  color: var(--dd-text-subtle); font-variant-numeric: tabular-nums; }
.v2-rchart-guide { position: absolute; top: -6px; bottom: 0; width: 1px; background: var(--dd-line-strong); }
.v2-rchart-dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; pointer-events: none;
  background: var(--dd-text-subtle); box-shadow: 0 0 0 2px var(--dd-surface-2), 0 0 0 7px color-mix(in srgb, currentColor 22%, transparent); color: var(--dd-text-subtle); }
.v2-rchart-dot.up { background: var(--dd-accent); color: var(--dd-accent); }
.v2-rchart-dot.down { background: var(--dd-down); color: var(--dd-down); }
.v2-rchart-x { display: flex; justify-content: space-between; margin: 8px 34px 0 0; font-size: 11.5px; color: var(--dd-text-subtle); font-variant-numeric: tabular-nums; }
/* Scope switch: a quiet segmented control on the card's top edge. The
   selected segment lifts; the rank stays the loudest thing on the card. */
.v2-scopechips { display: flex; align-self: flex-start; max-width: 100%; padding: 3px; gap: 2px; border-radius: 999px;
  background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--dd-line); }
.v2-scopechip { min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--dd-text-muted);
  font: 600 14px/1 var(--dd-font-body); display: inline-flex; align-items: center; cursor: pointer; white-space: nowrap; }
.v2-scopechip:hover { color: var(--dd-text); }
.v2-scopechip[aria-selected="true"] { background: rgba(255,255,255,.12); color: var(--dd-text); box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.v2-scopechip svg { width: 12px; height: 12px; margin-left: 4px; }
/* Record / Win rate / Games: the card's footer, three cells on hairlines. */
.v2-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); margin: 14px 0 2px; text-align: center; }
.v2-rankhero .v2-strip { margin: 0 -18px; border-top: 1px solid var(--dd-line); }
.v2-rankhero .v2-strip > div { padding: 12px 18px 14px; min-width: 0; }
.v2-rankhero .v2-strip > div + div { border-left: 1px solid var(--dd-line); }
.v2-strip b { display: block; font: 800 26px/1 var(--dd-font-display); font-variant-numeric: tabular-nums; }
.v2-strip small { display: block; margin-top: 4px; font-size: 13px; color: var(--dd-text-subtle); }
.v2-grp-sec { margin-top: 32px; }
.v2-grp-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 4px 8px; }
.v2-grp-label h2 { font: 700 13px/1 var(--dd-font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--dd-text-muted); }
.v2-grp-label span { font-size: 13px; font-weight: 600; color: var(--dd-text-muted); }
.v2-grp { background: var(--dd-surface); border-radius: 18px; overflow: hidden; }
.v2-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 10px 16px; box-sizing: border-box;
  border: 0; border-top: 1px solid var(--dd-line); background: none; color: var(--dd-text); font: inherit; text-align: left; text-decoration: none; }
.v2-grp > .v2-row:first-child, .v2-grp > div:first-child > .v2-row:first-child { border-top: 0; }
.v2-row.is-tap { cursor: pointer; } .v2-row.is-tap:active { background: var(--dd-surface-2); }
.v2-row.is-tap:focus-visible { outline: 2px solid var(--dd-accent); outline-offset: -2px; }
.v2-row-k { flex: 1; min-width: 0; font-size: 15px; overflow-wrap: anywhere; }
.v2-row-k small { display: block; font-size: 13px; color: var(--dd-text-subtle); margin-top: 2px; line-height: 1.3; }
.v2-row-v { flex: none; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.v2-row-v.up, .v2-row-v .up { color: var(--dd-accent); } .v2-row-v.dn, .v2-row-v .dn { color: var(--dd-down); } .v2-row-v .now { color: var(--dd-accent); }
/* A Pro marker on a row, not a button: the page's one Go Pro stays loud. */
.v2-row-pro { flex: none; color: var(--dd-text-muted); border: 1px solid var(--dd-line-strong); padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.v2-row-pro:empty { display: none; }
.v2-row-chev { flex: none; color: var(--dd-text-subtle); display: inline-flex; } .v2-row-chev svg { width: 16px; height: 16px; }
.v2-row--more { justify-content: center; color: var(--dd-accent); font-weight: 700; }
.v2-games-note { margin: 0; padding: 12px 16px 16px; border-top: 1px solid var(--dd-line); }
.v2-form5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; list-style: none; margin: 0; padding: 14px 16px 12px; }
.v2-form5 li { height: 52px; border-radius: 12px; background: rgba(255,255,255,.05); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.v2-form5 b { font: 800 18px/1 var(--dd-font-display); color: var(--dd-accent); }
.v2-form5 .loss b { color: var(--dd-down); } .v2-form5 .tie b { color: var(--dd-text-subtle); }
.v2-form5 small { font-size: 11px; color: var(--dd-text-muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
.v2-why-sum { padding: 14px 16px 12px; font-size: 15px; line-height: 1.45; color: var(--dd-text-muted); } .v2-why-sum b { color: var(--dd-text); }
.v2-skel-line { display: block; height: 14px; border-radius: 7px; background: var(--dd-surface-2); margin: 6px 0; } .v2-skel-line.short { width: 60%; }
.v2-grp-foot { margin: 10px 4px 0; font-size: 13px; line-height: 1.4; color: var(--dd-text-subtle); } .v2-grp-foot a { color: var(--dd-accent); }
.v2-game-res { width: 60px; flex: none; font: 800 15px var(--dd-font-display); color: var(--dd-accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.v2-game-res.l { color: var(--dd-down); } .v2-game-res.t, .v2-game-res.s { color: var(--dd-text-subtle); }
.v2-game.scrim .v2-row-k, .v2-game.scrim .v2-game-res { opacity: .6; }
.v2-game-tag { font-size: 12px; font-weight: 600; color: var(--dd-accent); border: 1px solid currentColor; border-radius: 999px; padding: 1px 8px; }
/* The explanation inside its sheets: the fragment's blocks without the card
   chrome. The card's overflow:hidden and 22px radius are the v1 panel's; in
   the sheet they clipped the corner glyphs of the first and last rows. */
.v2-sheet .rx.v2-why-body { overflow: visible; border-radius: 0; background: none; }
.v2-why-body .rx-block { padding: 4px 0 0; border: 0; }
.v2-why-body .rx-title { margin-bottom: 8px; }
/* Score build in its sheet: three squeezed columns left the explanation
   wrapping five lines deep in a 100px gutter. Each part now stacks: name and
   points on one line, its bar the full width, the explanation under it. */
.v2-why-body .rx-title:has(+ .rx-wf) { margin-bottom: 20px; }
.v2-why-body .rx-title:has(+ .rx-wf) .rx-note { font-size: 15px; color: var(--dd-text-muted); }
.v2-why-body .rx-title:has(+ .rx-wf) .rx-note small { font-size: 13px; margin-top: 4px; color: var(--dd-text-subtle); }
.v2-why-body .rx-wf { gap: 16px; }
.v2-why-body .rx-wf-row { grid-template-columns: 1fr auto; gap: 8px 12px; align-items: baseline; font-size: 15px; font-weight: 600; }
.v2-why-body .rx-wf-row > span:first-child { display: contents; }
.v2-why-body .rx-wf-row small { grid-area: 3 / 1 / auto / -1; font-size: 13px; font-weight: 400; line-height: 1.4; }
.v2-why-body .rx-track { grid-area: 2 / 1 / auto / -1; height: 8px; border-radius: 4px; }
.v2-why-body .rx-bar { top: 0; bottom: 0; border-radius: 4px; }
.v2-why-body .rx-val { grid-area: 1 / 2; font-size: 15px; font-weight: 700; }
.v2-why-body .rx-wf-row.total { padding-top: 18px; font-size: 17px; font-weight: 700; }
.v2-why-body .rx-wf-row.total .rx-val { font-size: 17px; }
.v2-gamesheet { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 900px) {
  .v2-pf-hero { max-width: 1200px; margin: 0 auto; padding: 56px 32px 28px; width: 100%; box-sizing: border-box; }
  .v2-pf-hero .v2-ident h1 { font-size: clamp(3rem, 5vw, 4.5rem); }
  .v2-pf-actions { grid-template-columns: auto auto; justify-content: start; }
  .v2-pf-actions .v2-follow, .v2-pf-actions .v2-pf-share { width: auto; min-width: 140px; }
  .v2-rankhero .v2-rank-num { font-size: 112px; }
  .v2-rankhero { padding: 20px 22px 0; }
  .v2-rchart-plot { height: 128px; }
  .v2-rankhero .v2-strip { margin: 0 -22px; }
  .v2-rankhero .v2-strip > div { padding: 14px 22px 16px; }
  /* Desktop columns already space children with a flex gap (16px left,
     28px right); the margin tops it up to a 40px section break. */
  .v2-pf .v2-col > .v2-grp-sec { margin-top: 24px; }
  .v2-pf .v2-col--right > .v2-grp-sec { margin-top: 12px; }
  .v2-pf .v2-col { flex: 1 1 0; min-width: 0; }
  .v2-pf .v2-grp-sec:first-child { margin-top: 0; }
  /* "Summary" over the rank card: same label-to-card gap as a group's (the
     column's 16px flex gap, pulled back to 8). */
  .v2-pf .v2-pf-sum { display: flex; margin-bottom: -8px; }
  /* Games sits in a wrapper at the foot of the left column; it keeps the
     section break the first-child rule above would otherwise zero. */
  .v2-pf .v2-col > .v2-pf-games > .v2-grp-sec { margin-top: 24px; }

  /* Pro: both columns sit on three shared rows, so Community is level with
     Full season stats and Form with Lineup builder on every team. A team with
     no rotation keeps the alignment and takes the space under Top performers. */
  .v2-pf--rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); gap: 40px 24px; }
  .v2-pf--rows > .v2-col { grid-row: 1 / 4; display: grid; grid-template-rows: subgrid; gap: 40px; align-content: start; }
  .v2-pf--rows .v2-pf-zone { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  .v2-pf--rows .v2-pf-zone > .v2-grp-sec:not(:first-child),
  .v2-pf--rows .v2-pf-zone > .v2-pf-games > .v2-grp-sec { margin-top: 24px; }
  /* When the left column runs short, the rank chart takes up to 42px of the
     difference (128px to 170px), so small gaps close without one team's climb
     looking steeper than another's. Any more stays empty below the card: the
     lead spans the auto track and the capped one, the 1fr track takes the rest.
     The min() is what keeps the capped track from adding 42px to every team: a
     percentage counts as auto while the row measures its content, so the track
     only fills once there is real spare height. With no chart showing, there
     is nothing to grow and the card keeps its height. */
  .v2-pf--rows .v2-pf-zone--lead { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, min(42px, 100%)) 1fr; gap: 0; }
  .v2-pf--rows .v2-pf-lead { grid-row: 1 / 3; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  .v2-pf--rows .v2-pf-after { grid-row: 3; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  .v2-pf--rows .v2-pf-after:has(> *)::before { content: ""; }  /* one gap below the card, only when something follows it */
  .v2-pf--rows .v2-pf-zone .v2-pf-after > .v2-grp-sec { margin-top: 24px; }
  .v2-pf--rows .v2-rankhero:has(.v2-rank-panel:not([hidden]) .v2-rchart) { flex: 1 0 auto; }
  .v2-pf--rows .v2-rank-panel:not([hidden]),
  .v2-pf--rows .v2-rh,
  .v2-pf--rows .v2-rchart,
  .v2-pf--rows .v2-rchart-plot { display: flex; flex-direction: column; flex: 1 0 auto; }
  .v2-pf--rows .v2-rchart-plot { flex-basis: 128px; }
  /* Community and Full season stats end level too. */
  .v2-pf--rows .v2-pf-zone--mid > .v2-grp-sec { flex: 1; display: flex; flex-direction: column; }
  .v2-pf--rows .v2-pf-zone--mid .v2-grp:not(details) { flex: 1; display: flex; flex-direction: column; }
  .v2-pf--rows .v2-pf-zone--mid .v2-grp:not(details) > .v2-row { flex: 1; }
  .v2-pf--rows .v2-pf-zone--mid details.v2-grp { flex: 1; }
  /* The open stats table runs hundreds of pixels. Holding the rows would push
     Form down beside it, so the columns stack freely until it closes. */
  .v2-pf--rows:has(#v2-fullstats[open]) > .v2-col { grid-template-rows: none; }
  .v2-pf--rows:has(#v2-fullstats[open]) .v2-pf-zone--mid details.v2-grp { flex: none; }
}
.v2-pf-sum { display: none; }
.v2-pf-zone, .v2-pf-lead, .v2-pf-after { display: contents; }
/* Signed-in team page (2026-10-23): desktop splits the team (left) from its
   players (right). Phones run both columns as one list in the order they
   always had: the Games wrapper drops out of layout, and for a Pro viewer
   v2-late moves Games back behind the player depth. */
.v2-pf-games { display: contents; }
@media (max-width: 899px) {
  .v2-pf:has(.v2-late) { display: flex; flex-direction: column; }
  .v2-pf:has(.v2-late) > .v2-col { display: contents; }
  .v2-pf .v2-late > * { order: 1; }
}
.v2-spark-k { font-size: 11px; color: var(--dd-text-subtle); margin-top: -4px; }
.v2-pf .v2-gate-ghost .v2-sh { display: none; }  /* the group label is the heading */
.v2-pf .v2-gate-panel { margin-top: 12px; }
.v2-pf-hero .v2-follow-why { text-align: left; max-width: 560px; }
.v2-form5-h { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 16px 0; font-size: 13px; color: var(--dd-text-subtle); }
.v2-form5-h span { font-weight: 700; color: var(--dd-text); font-variant-numeric: tabular-nums; }
.v2-form5-h + .v2-form5 { padding-top: 8px; }
.v2-form1-seq { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.v2-form1-seq i { width: 24px; height: 24px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  font: 800 13px/1 var(--dd-font-display); font-style: normal; background: rgba(255,255,255,.05); color: var(--dd-accent); }
.v2-form1-seq i.loss { color: var(--dd-down); } .v2-form1-seq i.tie { color: var(--dd-text-subtle); }
.v2-form1-seq span { margin-left: 6px; font-size: 13px; color: var(--dd-text-subtle); }
.v2-form1-rec { font: 800 22px/1 var(--dd-font-display); }
.v2-grp-label span [aria-hidden] { color: var(--dd-accent); }
.v2-why-method { margin: 20px 0 0; }
.v2-gate-quiet { color: var(--dd-accent); padding: 0; min-height: 44px; }
/* The rank and its six-week line arrive already drawn. (They used to rise
   and draw on every load of the team page; cut 2026-11-02, since nothing
   had changed to show.) */

/* ── Admin: engagement board (v2/admin_engagement*.html) ──────────────────
   The team profile's grammar (labelled groups of rows) carrying the admin
   numbers: a phone has no room for nine-column tables, so each record is a
   row with its name, one line of supporting figures, and the figure the
   group is sorted by on the right. */
body[data-page="admin"] .v2-bhero h1 { font-size: 40px; overflow-wrap: anywhere; }
body[data-page="admin"] .v2-bhero h1.is-id { font-size: 28px; line-height: 1.05; }
.v2-adm { display: flex; flex-direction: column; gap: 28px; }
.v2-adm .v2-grp-sec { margin-top: 0; scroll-margin-top: 12px; }
.v2-adm .v2-strip { margin: 0; padding: 16px 8px; }
.v2-adm-range { max-width: 360px; }
.v2-adm-range span { opacity: .45; }
/* Section jump: one swipeable line, bled to the screen edges. */
.v2-adm-sum { padding: 14px 16px; font-size: 15px; line-height: 1.5; color: var(--dd-text-muted); }
.v2-adm-sum b { color: var(--dd-text); }
.v2-adm-sum + .v2-row { border-top: 1px solid var(--dd-line); }
.v2-adm-sub { padding: 14px 16px 6px; border-top: 1px solid var(--dd-line); font-size: 13px; font-weight: 600; color: var(--dd-text-subtle); }
.v2-adm-sub:first-child { border-top: 0; }
.v2-adm-sub + .v2-row { border-top: 0; }
.v2-adm-sub small { font-weight: 400; }
.v2-adm .v2-row-k a { color: var(--dd-text); text-decoration: underline; text-decoration-color: var(--dd-line-strong); text-underline-offset: 3px; }
.v2-adm .v2-row-v small { display: block; font-size: 13px; font-weight: 400; color: var(--dd-text-subtle); }
.v2-adm-tag { display: inline-block; margin-left: 6px; padding: 0 7px; border: 1px solid var(--dd-line-strong); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--dd-text-muted); vertical-align: 1px; }
.v2-adm-bar { display: block; height: 4px; min-width: 2px; margin-top: 7px; border-radius: 2px; background: var(--dd-accent); }
/* Board alerts (2026-11-09): only when something needs acting on */
.v2-adm-alerts { display: flex; flex-direction: column; gap: 8px; }
.v2-adm-alert { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45;
                color: var(--dd-text-muted); background: color-mix(in srgb, var(--dd-down) 12%, var(--dd-surface));
                box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dd-down) 35%, transparent); }
.v2-adm-alert svg { flex: none; margin-top: 1px; color: var(--dd-down); }
.v2-adm-alert b { color: var(--dd-text); font-weight: 700; }
.v2-adm-alert a { color: var(--dd-text); font-weight: 600; text-underline-offset: 3px; }
/* Board: signed-in users per day, last 14 days; today's bar is still filling */
.v2-adm-bars { display: flex; align-items: flex-end; gap: 5px; height: 96px; margin: 0; padding: 16px 16px 6px; list-style: none; }
.v2-adm-bars li { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.v2-adm-bars i { display: block; width: 100%; min-height: 2px; border-radius: 3px 3px 0 0; background: var(--dd-accent); }
.v2-adm-bars li.is-today i { opacity: .45; }
.v2-adm-axis { display: flex; justify-content: space-between; padding: 0 16px 12px; font-size: 12px; color: var(--dd-text-subtle); font-variant-numeric: tabular-nums; }
.v2-adm-who { min-width: 0; }
.v2-adm-who > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Pipeline / bug status: a dot plus words, never the color alone. */
.v2-adm-status { display: inline-flex; align-items: center; gap: 6px; }
.v2-adm-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--dd-accent); flex: none; }
.v2-adm-status.warn, .v2-adm-status.bad { color: var(--dd-down); }
.v2-adm-status.warn::before, .v2-adm-status.bad::before { background: var(--dd-down); }
/* Disclosures: the per-person lists and each group's "about" note. */
.v2-adm-disc { margin-top: 8px; }
.v2-adm-disc > summary { list-style: none; display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--dd-text-muted); }
.v2-adm-disc > summary::-webkit-details-marker { display: none; }
.v2-adm-disc > summary svg { flex: none; color: var(--dd-text-subtle); }
.v2-adm-disc[open] > summary svg { transform: rotate(90deg); }
.v2-adm-disc > summary:hover { color: var(--dd-text); }
.v2-adm-notes { padding: 0 4px 4px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--dd-text-muted); max-width: 70ch; }
.v2-adm-notes b, .v2-adm-notes dt { color: var(--dd-text); font-weight: 600; }
.v2-adm-notes ul, .v2-adm-notes dl { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; list-style: none; }
.v2-adm-notes dd { margin: 2px 0 0; }
.v2-adm-notes code, .v2-adm-sum code { font-size: 13px; background: var(--dd-surface-2); padding: 1px 5px; border-radius: 5px; color: var(--dd-text-2); }
.v2-adm-notes a { color: var(--dd-accent); }
/* Long groups show ten rows until asked; the filter sees every row. */
.v2-adm [data-collapse].is-collapsed:not(.is-filtering) > .v2-row:nth-child(n+11):not(.v2-row--more) { display: none; }
.v2-adm .v2-row--more { cursor: pointer; min-height: 48px; }
.v2-adm .v2-adm-lazy { color: var(--dd-text-muted); font-size: 14px; }
.v2-adm .v2-row--more:hover { background: var(--dd-surface-2); }
.v2-adm-rollup { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--dd-line); font-size: 13px; color: var(--dd-text-subtle); }
.v2-adm-rollup .dd-btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.v2-adm-filter { display: block; margin-bottom: 8px; }
.v2-adm-filter .v2-input { min-height: 44px; border-radius: 22px; padding: 0 16px; background: var(--dd-surface); }
.v2-adm-back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: -8px 0 -6px -6px; color: var(--dd-text-muted); text-decoration: none; font-size: 15px; font-weight: 600; position: relative; align-self: flex-start; }
.v2-adm-back:hover { color: var(--dd-text); }
@media (hover: hover) { .v2-adm a.v2-row:hover { background: var(--dd-surface-2); } }
@media (min-width: 900px) {
  body[data-page="admin"] .v2-bhero, body[data-page="admin"] .v2-main { max-width: 824px; }  /* one column, like Account */
  body[data-page="admin"] .v2-bhero { padding-top: 56px; padding-bottom: 28px; }
  body[data-page="admin"] .v2-bhero h1 { font-size: 64px; line-height: .94; }
  body[data-page="admin"] .v2-bhero h1.is-id { font-size: 40px; }
  .v2-adm-jump { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
}

/* Paid team logos (2026-10-20, src/team_logos.py). A neutral 1px frame,
   never team colour or brand green. The mark fills 92% of its square so the
   frame never outweighs the logo; dark logos on transparency sit on a light
   plate. Team page: a badge a bit larger than the name's letters, aligned to
   its first line. Board: a fixed 32px column, an empty slot for teams
   without one. */
.v2-tlogo { flex: none; display: grid; place-items: center; overflow: hidden; box-sizing: border-box;
            width: 56px; height: 56px; border-radius: 14px; border: 1px solid var(--dd-line-strong); background: var(--dd-surface-2); }
.v2-tlogo img { width: 92%; height: 92%; object-fit: contain; display: block; }
.v2-tlogo.plate { background: #E8EBE6; }
.v2-tlogo--sm { width: 32px; height: 32px; border-radius: 10px; }
.v2-tlogo--lg { width: 96px; height: 96px; border-radius: 22px; }
.v2-tlogo.empty { background: transparent; border-color: transparent; }
.v2-ident-row { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.v2-ident-row > h1 { min-width: 0; margin-top: 6px; }
.v2-who-in { display: flex; gap: 10px; align-items: center; min-width: 0; }
.v2-who-t { min-width: 0; flex: 1; }
@media (min-width: 900px) {
  .v2-pf-hero .v2-tlogo--md { width: 72px; height: 72px; border-radius: 18px; }
  .v2-ident-row { gap: 18px; }
  .v2-ident-row > h1 { margin-top: 2px; }
}

/* Logo buy page + admin review (v2/team_logo.html, v2/admin_logos.html). */
.v2-lg-k { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dd-text-subtle); }
.v2-lg-fine { font-size: 13px; line-height: 1.45; color: var(--dd-text-subtle); margin: 0; }
.v2-lg-drop { position: relative; display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; cursor: pointer;
              border: 1.5px dashed var(--dd-line-strong); border-radius: 18px; padding: 22px 14px; color: var(--dd-text-subtle); font-size: 14px; }
.v2-lg-drop b { color: var(--dd-text); font-size: 16px; }
.v2-lg-drop:hover, .v2-lg-drop:focus-within { border-color: var(--dd-text-subtle); }
.v2-lg-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
[data-logo-submit][hidden] { display: none; }
.v2-lg-pv { background: var(--dd-bg); border: 1px solid var(--dd-line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.v2-lg-cap { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dd-text-subtle); }
.v2-lg-pvname { font-size: 30px; line-height: 1; overflow-wrap: anywhere; }
.v2-lg-plates { display: flex; gap: 8px; }
.v2-lg-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.v2-lg-check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--dd-accent); }
.v2-lg-price { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--dd-line); padding-top: 12px; }
.v2-lg-price b { font-family: var(--dd-font-display); font-weight: 800; font-size: 34px; }
.v2-lg-status { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; background: var(--dd-surface); border-radius: 18px; padding: 14px; }
.v2-lg-status h3 { font-family: var(--dd-font-display); font-weight: 800; font-size: 22px; line-height: 1.05; margin: 6px 0 4px; }
.v2-lg-status p { margin: 0; color: var(--dd-text-subtle); font-size: 14px; }
.v2-lg-dim { opacity: .5; }
.v2-lg-pill { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; }
.v2-lg-pill.amber { background: #3A2C17; color: #E7A35B; }
.v2-lg-pill.green { background: #1D3319; color: var(--dd-accent); }
.v2-lg-pill.red { background: #3A1D1D; color: #E76F6F; }
.v2-lg-pill.grey { background: var(--dd-surface-2); color: var(--dd-text-subtle); }
.v2-lg-admin { max-width: 560px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.v2-lg-review { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 16px; }
.v2-lg-ahead { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.v2-lg-when { color: var(--dd-text-subtle); font-size: 13px; }
.v2-lg-title { font-size: 30px; line-height: 1; margin: -4px 0 0; overflow-wrap: anywhere; }
.v2-lg-meta { color: var(--dd-text-subtle); font-size: 14px; margin-top: -8px; overflow-wrap: anywhere; }
.v2-lg-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.v2-lg-tiles figure { margin: 0; display: grid; gap: 6px; }
.v2-lg-tiles .sq { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; }
.v2-lg-tiles .sq img { width: 72%; height: 72%; object-fit: contain; }
.v2-lg-tiles .sq.d { background: #101110; border: 1px solid var(--dd-line-strong); }
.v2-lg-tiles .sq.l { background: #E8EBE6; }
.v2-lg-tiles .sq.b { background: var(--dd-bg); border: 1px solid var(--dd-line); }
.v2-lg-tiles figcaption { font-size: 12px; color: var(--dd-text-subtle); text-align: center; }
.v2-lg-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.v2-lg-checks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; align-items: start; }
.v2-lg-checks li::before { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.v2-lg-checks li.ok::before { content: "✓"; background: #1D3319; color: var(--dd-accent); }
.v2-lg-checks li.warn::before { content: "!"; background: #3A2C17; color: #E7A35B; }
.v2-lg-checks small { display: block; color: var(--dd-text-subtle); font-size: 13px; }
.v2-lg-decide { display: flex; gap: 10px; border-top: 1px solid var(--dd-line); padding-top: 14px; }
.v2-lg-decide > * { flex: 1; }
.v2-lg-decide > .v2-lg-grow, .v2-lg-decide > button { flex: 2; }
.v2-lg-danger { background: transparent; color: #E76F6F; border: 1px solid #5A3333; }
.v2-lg-danger-solid { background: #C95454; color: #fff; border: 0; }
.v2-lg-reject { display: flex; flex-direction: column; gap: 10px; }
.v2-lg-reasons { display: flex; flex-wrap: wrap; gap: 8px; }
.v2-lg-reasons label { position: relative; }
.v2-lg-reasons input { position: absolute; opacity: 0; inset: 0; }
.v2-lg-reasons span { display: inline-block; border: 1px solid var(--dd-line-strong); border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.v2-lg-reasons input:checked + span { border-color: #E76F6F; background: #3A1D1D; color: #FFB3B3; }
.v2-lg-reasons input:focus-visible + span { outline: 2px solid var(--dd-accent); outline-offset: 2px; }
.v2-lg-done { display: flex; flex-direction: column; gap: 6px; }
.v2-lg-donerow { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; background: var(--dd-surface); border-radius: 14px; padding: 8px 12px; }
.v2-lg-donerow .v2-lg-when { grid-column: 2 / -1; }
.v2-lg-dn { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ── Team page Pro depth (2026-10-20): coach group, refresh strip, probable
   rotation, top performers, full season stats, lineup builder and the
   pitcher card, in the profile grammar (labelled groups of rows). Tokens
   only; wide tables scroll inside their own box, never the page. ──────── */
/* Coach */
.v2-coach { padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.v2-coach h3 { font-weight: 600; font-size: 17px; }
.v2-coach p { font-size: 14px; line-height: 1.45; color: var(--dd-text-muted); }
.v2-coach .v2-coach-fine { font-size: 13px; color: var(--dd-text-subtle); text-align: center; }
.v2-coachlink { margin-top: 8px; }
/* Refresh strip: one row, status left, button right. */
.v2-rf { margin-top: 12px; }
.v2-rf .v2-row-k { font-size: 14px; line-height: 1.4; color: var(--dd-text-muted); }
.v2-rf .v2-row-k b { color: var(--dd-text); font-weight: 600; }
.v2-rf .v2-gate-quiet { flex: none; }
.v2-rf-btn { flex: none; min-height: 44px; padding: 0 16px; border-radius: var(--dd-radius-pill); border: 1px solid var(--dd-line-strong);
  background: none; color: var(--dd-text); font: 600 14px/1 var(--dd-font-body); cursor: pointer; white-space: nowrap; }
.v2-rf-btn:hover:not([disabled]) { border-color: var(--dd-accent); color: var(--dd-accent-hover); }
.v2-rf-btn[disabled] { opacity: .5; cursor: default; }
/* Rotation rows */
.v2-rotrow .v2-slot { width: 64px; }
.v2-rotrow .v2-row-v.v2-rot-era { font-weight: 400; }
.v2-rotrow .v2-rot-era b { font-size: 22px; }
.v2-pd-depth { padding: 12px 16px; border-top: 1px solid var(--dd-line); }
.v2-pd-sep { color: var(--dd-line-strong); }
/* Top performers */
.v2-pd-tabs { padding: 12px 16px 0; }
.v2-pd-pad { padding: 4px 16px 14px; min-width: 0; }
.v2-pd-pad .v2-table { min-width: 300px; }
.v2-pd-empty { padding: 12px 0 0; font-size: 14px; color: var(--dd-text-subtle); }
/* Full season stats: a row that opens */
.v2-pd-full > summary { list-style: none; }
.v2-pd-full > summary::-webkit-details-marker { display: none; }
.v2-pd-full[open] > summary .v2-row-chev svg { transform: rotate(90deg); }
.v2-pd-full[open] > summary { border-bottom: 1px solid var(--dd-line); }
.v2-pd-full .v2-pd-pad { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.v2-pd-full .v2-table { min-width: 640px; font-size: 14px; }
.v2-pd-full .v2-table td { height: 40px; }
.v2-pd-full .v2-table tr[data-pitcher]:focus-visible td { outline: 2px solid var(--dd-accent); outline-offset: -2px; }
.v2-sortbtn { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; min-height: 38px; }
.v2-sortbtn[aria-sort]::after { content: ' ▾'; }
.v2-sortbtn[aria-sort="ascending"]::after { content: ' ▴'; }
/* Lineup builder */
.v2-lb-sub { padding: 14px 16px 4px; font-size: 14px; color: var(--dd-text-muted); }
.v2-lb-msg { padding: 8px 16px 16px; font-size: 14px; color: var(--dd-text-muted); }
.v2-lb-conf { margin: 8px 16px 10px; padding: 12px 14px; border-radius: 14px; background: var(--dd-surface-2); font-size: 13px; line-height: 1.45; color: var(--dd-text-muted); }
.v2-lb-conf-h { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.v2-lb-conf-h b { color: var(--dd-text); font-weight: 600; font-size: 14px; }
.v2-lb-meter { display: inline-flex; gap: 3px; }
.v2-lb-meter i { width: 16px; height: 6px; border-radius: 3px; background: var(--dd-line-strong); }
.v2-lb-meter i.on { background: var(--dd-accent); }
.v2-lb-list { list-style: none; margin: 0; padding: 0; }
.v2-lb-list > .v2-row:first-child { border-top: 1px solid var(--dd-line); }
.v2-lb-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--dd-surface-2); color: var(--dd-text);
  font: 800 14px/28px var(--dd-font-display); text-align: center; font-variant-numeric: tabular-nums; }
.v2-lb-name { font-weight: 600; }
.v2-lb-name small { display: inline; margin-left: 6px; font-weight: 500; }
.v2-lb-why { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.v2-lb-chip { font-size: 12px; font-weight: 600; color: var(--dd-accent); border: 1px solid var(--dd-line-strong); border-radius: 999px; padding: 1px 8px; }
.v2-lb-foot { padding: 12px 16px 14px; border-top: 1px solid var(--dd-line); display: flex; flex-direction: column; gap: 6px; font-size: 12px; line-height: 1.5; color: var(--dd-text-subtle); }
.v2-lb-foot .v2-lb-edge { color: var(--dd-text-muted); }
.v2-lb-ph .v2-row-k { display: flex; flex-direction: column; gap: 2px; }
.v2-lb-ph .v2-lb-n { color: var(--dd-text-subtle); }
.v2-lb-gate { margin: 4px 16px 16px; padding: 16px; border-radius: 16px; background: var(--dd-surface-2); display: flex; flex-direction: column; gap: 10px; text-align: center; }
.v2-lb-gate b { font-size: 16px; font-weight: 600; }
.v2-lb-gate p { font-size: 14px; line-height: 1.45; color: var(--dd-text-muted); }
.v2-lb-gate .v2-pro { justify-content: center; }
/* Pitcher card sheet */
.v2-pm-body { gap: 16px; }
.v2-pm-msg { padding: 24px 0; text-align: center; font-size: 15px; color: var(--dd-text-muted); }
.v2-pm-h { font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.v2-pm-box .v2-pm-h { margin-bottom: 0; }
.v2-pm-line--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v2-pm-box .v2-pm-line div { background: var(--dd-surface); }
.v2-pm-line--3 b { font-size: 22px; }
.v2-pd-disc > summary { list-style: none; display: flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--dd-text); }
.v2-pd-disc > summary::-webkit-details-marker { display: none; }
.v2-pd-disc > summary svg { flex: none; color: var(--dd-text-subtle); }
.v2-pd-disc[open] > summary svg { transform: rotate(90deg); }
.v2-pd-disc > summary span { color: var(--dd-text-subtle); font-weight: 500; }
.v2-pm-logbox .v2-pm-log { min-width: 440px; }
.v2-pd-full .v2-table th.p, .v2-pd-full .v2-table td.p { text-align: left; }
.v2-pd-full .v2-table th:first-child, .v2-pd-full .v2-table td:first-child { width: 1%; padding-right: 10px; }

/* ════════════════════════════════════════════════════════════════════════
   Multi-state (2026-10-20; docs/v2-redesign/mockups/multistate/). Every
   block below renders only once a second state is live for the viewer.
   ════════════════════════════════════════════════════════════════════════ */
.v2-skel-bar { width: 120px; max-width: 100%; height: 12px; border-radius: 6px; background: var(--dd-skeleton); margin-top: 4px; }

/* Home: "<State> is live" */
.v2-launch { position: relative; overflow: hidden; border-radius: var(--dd-radius-hero); border: 1px solid var(--dd-line-strong);
             padding: 22px 20px 18px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.v2-launch .dd-bank { position: absolute; }
.v2-launch-h { font-size: 44px; }
.v2-launch p { font-size: 15px; line-height: 1.45; color: var(--dd-text-muted); max-width: 46ch; }
.v2-launch-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.v2-launch-actions .v2-textbtn { min-height: 44px; padding: 0 12px; color: var(--dd-text-muted); }

/* Home: Your states */
.v2-states .v2-sh { align-items: flex-end; }
.v2-states .v2-sh .v2-sh-note { text-align: left; margin-top: 2px; }
.v2-states-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
                   margin: 0 calc(-1 * var(--dd-gutter)); padding: 2px var(--dd-gutter) 6px; scroll-padding-inline: var(--dd-gutter); }
.v2-states-strip::-webkit-scrollbar { display: none; }
.v2-state-card { flex: 0 0 300px; scroll-snap-align: start; border-radius: var(--dd-radius-card); padding: 18px;
                 display: flex; flex-direction: column; gap: 12px; background: var(--dd-surface); border: 1px solid var(--dd-line); min-width: 0; }
.v2-states-strip.one .v2-state-card { flex-basis: 100%; }
.v2-state-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.v2-state-top3 { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.v2-state-top3 a { display: flex; align-items: center; gap: 12px; min-height: 48px; border-bottom: 1px solid var(--dd-line);
                   color: var(--dd-text); text-decoration: none; }
.v2-state-top3 .v2-follow-who { flex: 1; }
.v2-state-top3 .v2-mv { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--dd-text-subtle); }
.v2-state-top3 .v2-mv.up { color: var(--dd-accent); } .v2-state-top3 .v2-mv.dn { color: var(--dd-down); }
.v2-state-rk { width: 24px; font-family: var(--dd-font-display); font-weight: 800; font-size: 24px; font-variant-numeric: tabular-nums; }
.v2-state-mover { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px;
                  border-radius: var(--dd-radius-row); background: var(--dd-surface-2); }
.v2-state-mover > div { min-width: 0; display: flex; flex-direction: column; }
.v2-state-mover .v2-mv { font-weight: 700; font-size: 14px; white-space: nowrap; }
.v2-state-k { font-family: var(--dd-font-display); font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--dd-text-subtle); }
.v2-state-pro { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--dd-text-subtle); white-space: nowrap; }
.v2-state-open { display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-weight: 600; font-size: 15px;
                 text-decoration: none; margin-top: auto; }
.v2-state-add { flex: 0 0 132px; scroll-snap-align: start; border-radius: var(--dd-radius-card); border: 1.5px dashed var(--dd-line-strong);
                display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px;
                color: var(--dd-text-muted); font-weight: 600; font-size: 15px; text-decoration: none; text-align: center; }
.v2-state-plus { width: 44px; height: 44px; border-radius: 22px; background: var(--dd-surface-2); color: var(--dd-accent);
                 display: flex; align-items: center; justify-content: center; }
@media (min-width: 900px) {
  .v2-states-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); overflow: visible; margin: 0; padding: 0; }
  .v2-state-card, .v2-state-add { flex: none; }
  .v2-state-add { min-height: 200px; }
}

/* State picker chips (onboarding step 1, Account > States uses rows) */
.v2-stategrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .v2-stategrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.v2-statechip { position: relative; text-align: left; min-height: 96px; border-radius: 16px; border: 1.5px solid var(--dd-line-strong);
                background: var(--dd-surface-2); color: var(--dd-text); padding: 14px; display: flex; flex-direction: column;
                justify-content: space-between; gap: 6px; font: inherit; cursor: pointer; }
.v2-statechip[aria-pressed="true"] { border-color: var(--dd-accent); background: rgba(143,219,138,.08); }
.v2-statechip-abbr { font-family: var(--dd-font-display); font-weight: 800; font-size: 30px; line-height: 1; }
.v2-statechip[aria-pressed="true"] .v2-statechip-abbr { color: var(--dd-accent); }
.v2-statechip-check { position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; border-radius: 12px;
                      border: 1.5px solid var(--dd-line-strong); display: flex; align-items: center; justify-content: center; color: var(--dd-bg); }
.v2-statechip-check svg { visibility: hidden; }
.v2-statechip[aria-pressed="true"] .v2-statechip-check { background: var(--dd-accent); border-color: var(--dd-accent); }
.v2-statechip[aria-pressed="true"] .v2-statechip-check svg { visibility: visible; }
.v2-statechip-name { font-weight: 700; font-size: 16px; }
.v2-statechip-meta { font-size: 13px; color: var(--dd-text-subtle); font-variant-numeric: tabular-nums; }
.v2-soon { display: flex; flex-direction: column; border-radius: 16px; border: 1px solid var(--dd-line); overflow: hidden; }
.v2-soon-row { display: flex; align-items: center; gap: 12px; padding: 6px 8px 6px 14px; min-height: 56px; border-bottom: 1px solid var(--dd-line); }
.v2-soon-row:last-child { border-bottom: 0; }
.v2-soon-row > span { flex: 1; font-weight: 600; font-size: 15px; color: var(--dd-text-muted); }
.v2-soon-btn { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--dd-line-strong); background: transparent;
               color: var(--dd-text); font: 700 14px var(--dd-font-body); cursor: pointer; }
.v2-soon-btn[aria-pressed="true"] { color: var(--dd-accent); }
.v2-eyebrow-muted { color: var(--dd-text-subtle); }

/* Onboarding: board regions grouped by the picked states; summary tags */
.v2-ob-regions { display: flex; flex-direction: column; gap: 12px; }
.v2-ob-statelabel { font-weight: 600; font-size: 14px; color: var(--dd-text-muted); margin-bottom: 8px; }
.v2-ob-statetags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.v2-ob [data-ob-states-next]:disabled { background: var(--dd-line-strong); color: var(--dd-text-subtle); }

/* Account > States */
.v2-staterows { list-style: none; margin: 0; padding: 0; }
.v2-staterows .v2-pref { padding-left: 6px; gap: 8px; }
.v2-staterow-who { flex: 1; min-width: 0; }
/* Edit order: grips replace the switches; the dragged row lifts off the card */
#states > .v2-sh { align-items: center; }
#states [data-states-edit] { margin: -12px 0; }
.v2-grip { flex: none; width: 44px; height: 44px; margin-right: -10px; border: 0; padding: 0; background: transparent; border-radius: 12px;
           color: var(--dd-text-subtle); display: flex; align-items: center; justify-content: center; cursor: grab; touch-action: none; }
.v2-grip:hover { color: var(--dd-text); }
.v2-grip:focus-visible { outline: 2px solid var(--dd-accent); outline-offset: -2px; }
.v2-staterows.is-dragging, .v2-staterows.is-dragging * { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.v2-staterows .v2-pref.is-lifted { position: relative; z-index: 2; background: var(--dd-surface); border-radius: 14px;
  margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-top-color: transparent;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18), 0 0 0 1px var(--dd-line); }
.v2-staterows .v2-pref.is-lifted + .v2-pref { border-top-color: transparent; }
.v2-staterows.is-editing .v2-pref[data-off] .v2-staterow-who { opacity: .55; }
.v2-homepill { font-style: normal; font-family: var(--dd-font-display); font-weight: 700; font-size: 11px; letter-spacing: .14em;
               text-transform: uppercase; color: var(--dd-bg); background: var(--dd-accent); border-radius: 999px; padding: 2px 8px;
               margin-left: 6px; vertical-align: 2px; }

/* Team page: "Add <State>?" sheet */
.v2-addstate-badge { width: 56px; height: 56px; border-radius: 16px; background: var(--dd-surface-2); border: 1px solid var(--dd-line-strong);
                     display: flex; align-items: center; justify-content: center; font-family: var(--dd-font-display); font-weight: 800;
                     font-size: 24px; color: var(--dd-accent); }

/* The Drop: one section per picked state */
.v2-dropstate-card { padding: 6px 16px 4px; display: flex; flex-direction: column; }
.v2-dropstate-k { padding: 10px 0 4px; }
.v2-dropstate-row { display: flex; align-items: center; gap: 12px; min-height: 56px; border-top: 1px solid var(--dd-line); color: var(--dd-text); text-decoration: none; }
.v2-dropstate-row .v2-follow-who { flex: 1; }
.v2-dropstate-row .v2-mv { font-weight: 700; font-size: 15px; white-space: nowrap; }
.v2-dropstate-empty { text-align: left; padding: 8px 0; white-space: normal; }
.v2-dropstate-open { border-top: 1px solid var(--dd-line); }

/* Board: "Where" (multi-state, direction A). The region menu lists states,
   each a <details> accordion of its region tiles (one open at a time, the
   one on screen first); a small state tag leads the pill. Only drawn while
   a second state is live. */
.v2-loc { display: flex; flex-direction: column; }
.v2-loc-sep { border: 0; height: 12px; margin: 0; }
.v2-loc-state { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px;
                border-bottom: 1px solid var(--dd-line); color: var(--dd-text); font-size: 16px; cursor: pointer; list-style: none;
                -webkit-tap-highlight-color: transparent; }
.v2-loc-state::-webkit-details-marker { display: none; }
.v2-loc-state b { font-weight: 600; }
.v2-loc-state svg { flex: none; color: var(--dd-text-subtle); transform: rotate(90deg); transition: transform .2s cubic-bezier(.22, 1, .36, 1); }
.v2-loc-st[open] > .v2-loc-state { border-bottom-color: transparent; }
.v2-loc-st[open] > .v2-loc-state svg { transform: rotate(-90deg); color: var(--dd-accent); }
.v2-loc-state:focus-visible { outline: 2px solid var(--dd-accent); outline-offset: 2px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { .v2-loc-state svg { transition: none; } }
.v2-loc .v2-regions { padding: 2px 0 12px; border-bottom: 1px solid var(--dd-line); }
.v2-loc-soon { color: var(--dd-text-subtle); cursor: default; }
.v2-loc-chip { font-size: 12px; font-weight: 600; color: var(--dd-text-muted); border: 1px solid var(--dd-line-strong); border-radius: 999px; padding: 2px 9px; }
.v2-loc-edit { align-self: flex-start; min-height: 44px; margin-top: 4px; padding-left: 0; padding-right: 0; }
.v2-loc-abbr { font-family: var(--dd-font-display); font-weight: 800; font-size: 13px; letter-spacing: .06em; color: var(--dd-accent); margin-right: 6px; }
.v2-pop-panel--loc { padding: 10px 16px 8px; max-height: min(70vh, 620px); overflow-y: auto; }
@media (hover: hover) { .v2-loc-state:hover b { text-decoration: underline; text-underline-offset: 3px; } }

/* State tag on rows (search, team sub lines) */
.v2-statetag { flex: none; font-family: var(--dd-font-display); font-weight: 700; font-size: 13px; letter-spacing: .08em; color: var(--dd-text-muted);
               border: 1px solid var(--dd-line-strong); border-radius: 6px; padding: 2px 6px; }

/* Player share sheet (web/static/js/player-card.js): the card is drawn on a
   canvas, so the sheet is just a picker, a preview and two buttons. */
.v2-sharebtn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: -8px -6px -8px 4px;
               vertical-align: middle; background: none; border: 0; border-radius: 18px; color: var(--dd-text-subtle); cursor: pointer; padding: 0; }
.v2-sharebtn:hover { color: var(--dd-accent); }
.v2-share { width: min(560px, 100vw - 24px); max-height: calc(100dvh - 24px); overflow: auto; padding: 18px var(--dd-gutter) 20px;
            border: 1px solid var(--dd-line-strong); border-radius: var(--dd-radius-sheet); background: var(--dd-surface); color: var(--dd-text); }
.v2-share::backdrop { background: var(--dd-scrim); }
.v2-share-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.v2-share-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dd-accent); }
.v2-share-title { margin: 2px 0 0; font-family: var(--dd-font-display); font-weight: 800; font-size: 30px; line-height: 1.05; text-transform: uppercase; }
.v2-share-x { background: none; border: 0; font-size: 28px; line-height: 1; margin-right: -10px; }
.v2-share-picks { display: flex; gap: 8px; overflow-x: auto; margin: 14px calc(var(--dd-gutter) * -1) 0; padding: 0 var(--dd-gutter) 4px; }
.v2-share-pick { flex: none; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--dd-line-strong); background: transparent;
                 color: var(--dd-text-2); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.v2-share-pick[aria-pressed="true"] { background: var(--dd-accent); border-color: var(--dd-accent); color: var(--dd-bg); }
.v2-share-stage { margin-top: 14px; border-radius: 14px; overflow: hidden; background: var(--dd-bg); }
.v2-share-stage canvas { display: block; width: 100%; height: auto; aspect-ratio: 1080 / 1350; }
.v2-share-msg { margin: 18px 0 6px; color: var(--dd-text-muted); font-size: 15px; line-height: 1.45; }
.v2-share-actions { display: grid; gap: 10px; margin-top: 14px; }
.v2-share-actions [hidden] { display: none; }

/* ── Community: vouches (components/vouch.html). A second opinion beside the
   rank, never in it. The count is a row numeral; the icon turns to a green
   check once this viewer has vouched. ───────────────────────────────────── */
.v2-vouch-row { min-height: 64px; }
.v2-vouch-row .v2-row-k b { font-weight: 600; }
.v2-vouch-ico { flex: none; width: 40px; height: 40px; border-radius: 20px; background: var(--dd-surface-2); display: inline-flex; align-items: center; justify-content: center; color: var(--dd-accent); }
.v2-vouch-ico.is-mine { background: var(--dd-glass-bg); border: 1px solid var(--dd-glass-border); }
.v2-vouch-ico svg { width: 20px; height: 20px; }
.v2-vouch-n { font-family: var(--dd-font-display); font-weight: 800; font-size: 28px; line-height: 1; }
.v2-vouch-n.is-mine { color: var(--dd-accent); }
.v2-vouch-n.is-cta { font-family: var(--dd-font-body); font-weight: 600; font-size: 15px; color: var(--dd-accent); }
.v2-vouch-n:empty { display: none; }
.v2-vouch-body { display: flex; flex-direction: column; gap: 16px; }
.v2-vouch-hero { display: flex; align-items: center; gap: 16px; background: var(--dd-surface-2); border-radius: 18px; padding: 14px 16px; color: var(--dd-text-muted); font-size: 14px; line-height: 1.4; }
.v2-vouch-big { font-family: var(--dd-font-display); font-weight: 800; font-size: 44px; line-height: .9; color: var(--dd-text); font-variant-numeric: tabular-nums; }
.v2-vouch-rl { font-size: 13px; font-weight: 600; color: var(--dd-text-subtle); margin-bottom: 8px; }
.v2-vouch-rl span { font-weight: 500; }
.v2-vouch-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.v2-vouch-pill { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--dd-line-strong); background: transparent; color: var(--dd-text-muted); font: 600 15px/1 var(--dd-font-body); cursor: pointer; }
.v2-vouch-pill[aria-pressed="true"] { background: var(--dd-text); color: var(--dd-bg); border-color: var(--dd-text); }
.v2-vouch-pill:focus-visible { outline: 2px solid var(--dd-accent); outline-offset: 2px; }
.v2-vouch-fine { text-align: center; margin: 10px 0 0; }
.v2-vouch-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding-top: 4px; }
.v2-vouch-done p { margin: 0; color: var(--dd-text-muted); max-width: 320px; }
.v2-vouch-done .dd-btn { margin-top: 4px; }

/* Admin: vouch watch (admin_vouches.html). */
.v2-vw-tiles { display: flex; flex-wrap: wrap; gap: 24px 32px; margin: 8px 0 24px; }
.v2-vw-tiles > div { display: flex; flex-direction: column; gap: 2px; min-width: 90px; }
.v2-vw-tiles b { font-family: var(--dd-font-display); font-weight: 800; font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; }
.v2-vw-tiles b.dn { color: var(--dd-down); }
.v2-vw-tiles span { font-size: 13px; color: var(--dd-text-subtle); }
.v2-vw { background: var(--dd-surface); border-radius: 22px; overflow: hidden; }
.v2-vw table { width: 100%; border-collapse: collapse; font-size: 15px; }
.v2-vw th { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--dd-line); font-size: 13px; font-weight: 600; color: var(--dd-text-subtle); }
.v2-vw td { padding: 12px; border-bottom: 1px solid var(--dd-line); vertical-align: middle; font-variant-numeric: tabular-nums; }
.v2-vw tr:last-child td { border-bottom: 0; }
.v2-vw th:first-child, .v2-vw td:first-child { padding-left: 20px; }
.v2-vw th:last-child, .v2-vw td:last-child { padding-right: 20px; }
.v2-vw .num { text-align: right; }
.v2-vw td a { color: var(--dd-text); font-weight: 600; }
.v2-vw td small { display: block; font-size: 13px; color: var(--dd-text-subtle); }
.v2-vw .spike { color: var(--dd-down); font-weight: 700; }
.v2-vw-sig { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 10px; border: 1px solid var(--dd-line-strong); color: var(--dd-text-muted); }
.v2-vw-sig.spike { color: var(--dd-down); border-color: var(--dd-down); }
.v2-vw-sig.coverage { color: var(--dd-accent); border-color: var(--dd-accent); }
.v2-vw-act { display: flex; gap: 8px; margin-top: 8px; }
.v2-vw-act button { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--dd-line-strong); background: transparent; color: var(--dd-text); font: 600 13px/1 var(--dd-font-body); cursor: pointer; }
.v2-vw-act button.go { background: var(--dd-text); color: var(--dd-bg); border-color: var(--dd-text); }
.v2-vw-wrap { overflow-x: auto; }
.v2-vw-reasons { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.v2-vw-reasons > div { display: flex; flex-direction: column; gap: 4px; }
.v2-vw-reasons .r { display: flex; justify-content: space-between; }
.v2-vw-reasons .r span:last-child { color: var(--dd-text-muted); font-variant-numeric: tabular-nums; }
.v2-vw-reasons .bar { height: 5px; border-radius: 3px; background: var(--dd-line); }
.v2-vw-reasons .bar i { display: block; height: 5px; border-radius: 3px; background: var(--dd-accent); }
.v2-vw-notes p { margin: 0 0 8px; font-size: 14px; color: var(--dd-text-muted); }
.v2-vw-notes b { color: var(--dd-text); }

/* "Is this your team?" on a team page (v2/components/my_team.html). */
.v2-teamask-row { flex-wrap: wrap; padding-block: 14px; }
.v2-teamask-row .v2-row-k { flex: 1 1 220px; }
.v2-teamask-row .v2-row-k b { font-weight: 600; }
.v2-teamask-act { display: flex; gap: 8px; }
.v2-teamask[hidden], .v2-teamask-act[hidden] { display: none; }

/* ── Account: tighten + grouped (2026-11-05) ─────────────────────────────
   Settings-app grammar. Small muted section headings, each over one grouped
   list; rows sit on the card's edge so switch rows and link rows share one
   text column (before, card + row each padded 16px). 26px between sections,
   8px within. */
body[data-page="account"] .v2-bhero { padding-bottom: 0; gap: 6px; }
body[data-page="account"] .v2-main { padding-top: 14px; gap: 26px; }
body[data-page="account"] .v2-sec { margin-top: 0; gap: 8px; }
body[data-page="account"] .v2-sec > h2.v2-label,
body[data-page="account"] .v2-sec > .v2-sh h2.v2-label { font-size: 15px; color: var(--dd-text-muted); }
body[data-page="account"] .v2-sec > h2.v2-label,
body[data-page="account"] .v2-sec > .v2-sh,
body[data-page="account"] .v2-sec > .v2-bnote { padding: 0 2px; }
body[data-page="account"] .v2-bnote { margin-top: -2px; }
body[data-page="account"] .v2-card--flush { padding: 0 16px; border-radius: 18px; }
body[data-page="account"] .v2-pref { padding: 11px 0; }
body[data-page="account"] .v2-pref small { margin-top: 1px; }
body[data-page="account"] .v2-settings a { min-height: 50px; padding: 6px 0; }
body[data-page="account"] .v2-settings > .v2-pref { padding: 9px 0; border-bottom: 1px solid var(--dd-line); }
/* My teams: one list with hairlines, "Add a team" as its last row */
.v2-acct-group { background: var(--dd-surface); border-radius: 18px; overflow: hidden; }
.v2-acct-group .v2-follows { gap: 0; }
.v2-acct-group .v2-follow-row { border-radius: 0; background: transparent; padding: 2px 4px 2px 12px; }
.v2-acct-group .v2-follow-row.primary { box-shadow: none; }
.v2-acct-group .v2-follow-row + .v2-follow-row { border-top: 1px solid var(--dd-line); }
.v2-acct-group .v2-follow-rk { width: 44px; }
.v2-acct-add { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 0 16px 0 12px; background: transparent;
               border: 0; border-top: 1px solid var(--dd-line); color: var(--dd-accent); font: 600 15px var(--dd-font-body); cursor: pointer; text-align: left; }
.v2-acct-add .ico { width: 44px; display: inline-flex; }
.v2-acct-add:hover { background: var(--dd-surface-2); color: var(--dd-accent-hover); }
.v2-acct-add:focus-visible { outline: 2px solid var(--dd-accent); outline-offset: -2px; border-radius: 0 0 18px 18px; }
.v2-follows:not(:has(li)) + .v2-acct-add { border-top: 0; }
/* Plan: one row, the action on the right; the pitch under it */
.v2-acct-plan { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; }
.v2-acct-plan b { display: block; font-size: 15px; font-weight: 600; }
.v2-acct-plan small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--dd-text-muted); }
/* the card is a .v2-settings list, whose row-link rule would also catch the button */
body[data-page="account"] .v2-settings .v2-acct-plan .dd-btn { flex: none; justify-content: center; min-height: 44px; padding: 0 18px;
  border-bottom: 0; color: var(--dd-bg); }
.v2-acct-plan + a { border-top: 1px solid var(--dd-line); }
.v2-acct-plan-more { padding: 0 0 14px; margin-top: -6px; font-size: 13px; line-height: 1.45; color: var(--dd-text-muted); }
.v2-acct-legal { display: flex; flex-wrap: wrap; gap: 0 18px; padding: 0 2px; font-size: 13px; }
.v2-acct-legal a { color: var(--dd-text-muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.v2-acct-legal a:hover { color: var(--dd-text); }
/* the site footer shows from 900px and carries Terms and Privacy itself */
@media (min-width: 900px) { .v2-acct-legal { display: none; } }
@media (min-width: 900px) {
  body[data-page="account"] .v2-bhero { padding-top: 56px; padding-bottom: 8px; }
  body[data-page="account"] .v2-main { padding-top: 24px; gap: 34px; }
  body[data-page="account"] .v2-card--flush { padding: 0 20px; }
}

/* Tier helper (NM/OK/LA/AR boards): banner + per-row "Set tier" */
.v2-tierhelp { position: relative; background: var(--dd-surface-2); border: 1px solid var(--dd-line-strong); border-radius: 18px; padding: 14px 16px 14px; margin: 0 0 12px; }
.v2-tierhelp[hidden] { display: none; }
.v2-tierhelp > b { display: block; font-size: 16px; font-weight: 700; margin: 0 44px 4px 0; }
.v2-tierhelp > p { margin: 0 0 12px; font-size: 14px; line-height: 1.4; color: var(--dd-text-muted); max-width: 60ch; }
.v2-tierhelp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; color: var(--dd-text-subtle); }
.v2-tierhelp-x { position: absolute; top: 0; right: 0; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: var(--dd-text-subtle); cursor: pointer; }
.v2-tierhelp-x:hover { color: var(--dd-text); }
.v2-settier { color: var(--dd-accent); font-weight: 600; text-decoration: none; }
.v2-settier:hover { color: var(--dd-accent-hover); }


/* "Ask about this rank" (v2/components/rank_ask.html): the summary as card
   copy, fixed questions as native disclosure rows, one input for a live
   question, and the games report as a quiet last row. */
.v2-ask .ra-summary { margin: 0; padding: 14px 16px; font-size: 15px; line-height: 1.45; color: var(--dd-text-2); }
.v2-ask .ra-q, .v2-ask .ra-report { border-top: 1px solid var(--dd-line); }
.v2-ask .ra-panel > :first-child, .v2-ask .ra-chips:first-child .ra-q:first-child { border-top: 0; }
.v2-ask .ra-q summary, .v2-ask .ra-report summary { display: flex; align-items: center; min-height: 50px; padding: 10px 16px; cursor: pointer; font-size: 15px; color: var(--dd-text); list-style: none; }
.v2-ask .ra-q summary::-webkit-details-marker, .v2-ask .ra-report summary::-webkit-details-marker { display: none; }
.v2-ask .ra-q summary::after, .v2-ask .ra-report summary::after { content: "+"; margin-left: auto; padding-left: 12px; color: var(--dd-text-subtle); font-weight: 600; }
.v2-ask .ra-q[open] summary::after, .v2-ask .ra-report[open] summary::after { content: "–"; }
.v2-ask summary:focus-visible { outline: 2px solid var(--dd-accent); outline-offset: -2px; }
.v2-ask .ra-q p { margin: 0; padding: 0 16px 14px; font-size: 15px; line-height: 1.45; color: var(--dd-text-2); }
.v2-ask .ra-ask { padding: 14px 16px 16px; border-top: 1px solid var(--dd-line); }
.v2-ask .ra-panel > .ra-ask:first-child { border-top: 0; }
.v2-ask .ra-ask label, .v2-ask .ra-report label { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--dd-text-subtle); }
.v2-ask .ra-ask-row { display: flex; gap: 8px; }
.v2-ask input, .v2-ask textarea { flex: 1; min-width: 0; width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--dd-line-strong); border-radius: 14px; background: var(--dd-bg); color: var(--dd-text); font: 16px/1.35 var(--dd-font-body); }
.v2-ask input::placeholder, .v2-ask textarea::placeholder { color: #7D837F; }
.v2-ask input:focus, .v2-ask textarea:focus { outline: none; border-color: var(--dd-accent); }
.v2-ask .ra-btn { flex: none; min-height: var(--dd-tap); padding: 0 22px; border: 0; border-radius: var(--dd-radius-pill); background: var(--dd-text); color: var(--dd-bg); font: 700 15px/1 var(--dd-font-body); cursor: pointer; }
.v2-ask .ra-btn:disabled { opacity: .55; cursor: default; }
.v2-ask .ra-btn:focus-visible { outline: 2px solid var(--dd-accent); outline-offset: 2px; }
.v2-ask .ra-answer { margin: 12px 0 0; padding: 12px 14px; border-radius: 16px; background: var(--dd-surface-2); font-size: 15px; line-height: 1.45; color: var(--dd-text-2); }
.v2-ask .ra-fine, .v2-ask .ra-done { margin: 10px 0 0; font-size: 13px; line-height: 1.4; color: var(--dd-text-subtle); }
.v2-ask .ra-report summary { color: var(--dd-text-muted); }
.v2-ask .ra-report form { padding: 0 16px 16px; }
.v2-ask .ra-report p { margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: var(--dd-text-muted); }
.v2-ask .ra-report textarea { margin-bottom: 12px; }
.v2-ask .ra-report input { margin-bottom: 12px; }
/* Weekend pick'em promo card (components/pickem_promo.html) on Home and The Drop. */
.pk-promo { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--dd-text); transition: background-color .15s; }
.pk-promo:hover { background: var(--dd-surface-2); color: var(--dd-text); }
.pk-promo:focus-visible { outline: 2px solid var(--dd-accent); outline-offset: 2px; }
.pk-promo-title { font-family: var(--dd-font-display); font-weight: 800; font-size: 26px; line-height: 1.05; }
.pk-promo-sub { font-size: 15px; line-height: 1.45; color: var(--dd-text-muted); }
.pk-promo-go { display: inline-flex; align-items: center; gap: 4px; min-height: var(--dd-tap); font-weight: 600; color: var(--dd-accent); }
@media (prefers-reduced-motion: reduce) { .pk-promo { transition: none; } }

/* ── Plain-English search (/search/ask, src/nl_search) ───────────────── */
.v2-ask { display: flex; flex-direction: column; gap: 14px; }
.v2-ask-form { display: flex; gap: 8px; align-items: center; }
.v2-ask-form .v2-searchbox { flex: 1; min-width: 0; }
.v2-ask-form .dd-btn { flex: none; min-height: 52px; }
.v2-ask-examples { display: flex; flex-direction: column; gap: 6px; }
.v2-ask-example { display: block; min-height: 44px; padding: 12px 16px; border-radius: 16px; background: var(--dd-surface);
                  color: var(--dd-text-2); font-size: 15px; line-height: 1.4; text-decoration: none; }
.v2-ask-example:hover { background: var(--dd-surface-2); }
.v2-ask-understood { display: flex; flex-direction: column; gap: 10px; }
.v2-ask-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.v2-ask-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 0 0 14px; border-radius: 999px;
               background: var(--dd-text); color: var(--dd-bg); font-size: 15px; font-weight: 600; }
.v2-ask-chip a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: -6px;
                 border-radius: 999px; color: inherit; }
.v2-ask-chip a:focus-visible { outline: 2px solid var(--dd-accent); outline-offset: 2px; }
.v2-ask-chip.locked { background: transparent; color: var(--dd-text-muted); border: 1px dashed var(--dd-line-strong); }
.v2-ask-chip.locked svg:first-child { width: 13px; height: 13px; }
.v2-ask-chip small { font-size: 11px; font-weight: 600; border: 1px solid var(--dd-line-strong); border-radius: 999px; padding: 0 6px; line-height: 18px; }
.v2-ask-edit { background: var(--dd-surface); border-radius: 18px; }
.v2-ask-edit summary { list-style: none; display: flex; align-items: center; min-height: 48px; padding: 0 16px; cursor: pointer;
                       font-weight: 600; color: var(--dd-accent); }
.v2-ask-edit summary::-webkit-details-marker { display: none; }
.v2-ask-edit summary::after { content: '▾'; margin-left: auto; color: var(--dd-text-subtle); }
.v2-ask-edit[open] summary::after { content: '▴'; }
.v2-ask-edit summary:focus-visible { outline: 2px solid var(--dd-accent); outline-offset: 2px; border-radius: 18px; }
.v2-ask-fields { display: flex; flex-direction: column; gap: 14px; padding: 4px 16px 18px; }
.v2-ask-fields select.v2-input { min-height: 48px; color: var(--dd-text); }
.v2-ask-pair { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 10px; }
.v2-ask-tiers { border: 0; margin: 0; padding: 0; }
.v2-ask-tiers legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.v2-ask-check { position: relative; display: inline-flex; }
.v2-ask-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.v2-ask-check span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
                     border: 1px solid var(--dd-line-strong); color: var(--dd-text-muted); font-weight: 600; cursor: pointer; }
.v2-ask-check input:checked + span { background: var(--dd-text); color: var(--dd-bg); border-color: var(--dd-text); }
.v2-ask-check input:focus-visible + span { outline: 2px solid var(--dd-accent); outline-offset: 2px; }
.v2-ask-check--wide span { width: 100%; }
.v2-ask-gate { display: flex; flex-direction: column; gap: 8px; }
.v2-ask-gate p { font-size: 14px; line-height: 1.45; color: var(--dd-text-muted); }
.v2-ask-needs { display: flex; flex-direction: column; gap: 10px; }
.v2-ask-needs .v2-chip { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }

/* ── Admin imports (web/templates/v2/admin_imports.html, admin_import_review.html) ── */
.v2-imp { gap: 20px; }
.v2-imp-form { display: grid; gap: 14px; padding: 16px; }
.v2-imp-form label { display: grid; gap: 6px; font-size: 14px; color: var(--dd-text-muted); }
.v2-imp-form input:not([type=radio]):not([type=checkbox]):not([type=file]),
.v2-imp-form select, .v2-imp-form textarea,
.v2-imp-bat input, .v2-vw select, .v2-imp-other {
  min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--dd-line-strong);
  background: var(--dd-bg); color: var(--dd-text); font: 16px/1.3 var(--dd-font-body);
}
.v2-imp-form textarea { padding: 12px; min-height: 160px; resize: vertical; font-family: var(--dd-font-mono, ui-monospace, monospace); font-size: 14px; }
.v2-imp-kind { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.v2-imp-kind legend { font-size: 14px; color: var(--dd-text-muted); margin-bottom: 6px; }
.v2-imp-kind label, .v2-imp-check { display: flex !important; align-items: center; gap: 8px; color: var(--dd-text) !important; font-size: 15px !important; min-height: 44px; }
.v2-imp-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.v2-imp-row > label { flex: 1 1 120px; }
.v2-imp-team { padding-top: 12px; border-top: 1px solid var(--dd-line); }
.v2-imp-team .v2-imp-hint { flex-basis: 100%; }
.v2-imp-hint { margin: 0; font-size: 13px; color: var(--dd-text-subtle); }
.v2-imp-hint code, .v2-imp code { font-size: 12px; }
.v2-imp-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 4px; }
.v2-imp-secondary form { margin: 0; }
.v2-imp-other { width: 110px; margin-top: 6px; display: block; }
.v2-vw td select { max-width: 320px; width: 100%; }
.v2-imp-bat input { min-height: 36px; width: 3.2em; padding: 0 6px; text-align: right; font-variant-numeric: tabular-nums; }
.v2-imp-bat td:first-child input { width: 8em; text-align: left; }
.v2-imp-bat td, .v2-imp-bat th { padding: 8px 6px; }
.v2-imp-field { min-width: 680px; }
.v2-imp-bare { padding: 0; }
.v2-imp-warn { color: var(--dd-down); font-weight: 600; }
.v2-imp-photo { display: block; max-width: 100%; height: auto; border-radius: 14px; margin: 8px 0 0; }
.v2-imp-src { white-space: pre-wrap; word-break: break-word; max-height: 320px; overflow: auto; font-size: 13px; padding: 12px; margin: 8px 0 0; border-radius: 14px; background: var(--dd-surface); color: var(--dd-text-muted); }
