@font-face { font-family: Inter; src: url('./inter.woff2') format('woff2'); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('./jetbrains-mono.woff2') format('woff2'); font-style: normal; font-weight: 100 800; font-display: swap; }
:root {
  color-scheme: dark;
  --bg: #0B0F17; --panel: #171C25; --raised: #1E293B; --inset: #0D131F; --line: #2B3544;
  --text: #E2E8F0; --muted: #94A3B8; --faint: #94A3B8;
  --blue: #06B6D4; --green: #14B8A6; --rose: #FCA5A5; --amber: #F59E0B;
  --radius: 8px; --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --list-columns: minmax(300px, 1.5fr) minmax(160px, .8fr) minmax(150px, .75fr) minmax(120px, .6fr) minmax(240px, 1.2fr);
  font-family: Inter, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', system-ui, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: var(--text); cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 32px; font-weight: 700; line-height: 40px; letter-spacing: -.02em; }
h2 { font-size: 18px; font-weight: 600; line-height: 26px; }
h3 { font-size: 16px; font-weight: 600; line-height: 24px; }
h4 { font-size: 14px; font-weight: 600; margin-top: 20px; }
.shell { width: min(1440px, 100%); padding: 0 24px; margin: auto; }
.topbar { min-height: 72px; display: flex; align-items: center; gap: 40px; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 12px; align-items: center; flex-shrink: 0; font-size: 22px; font-weight: 700; line-height: 26px; letter-spacing: .02em; }
.brand small { display: block; font-family: var(--font-mono); color: var(--blue); font-size: 10px; font-weight: 500; letter-spacing: .04em; line-height: 16px; white-space: nowrap; }
.brand-light { color: var(--text); }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 4px; background: var(--panel); color: var(--blue); font-size: 24px; }
.primary-nav { display: flex; align-self: stretch; gap: 28px; }
.primary-nav a { display: grid; align-content: center; position: relative; color: var(--muted); white-space: nowrap; }
.primary-nav a[aria-current=page] { color: var(--blue); }
.primary-nav a[aria-current=page]::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--blue); }
.service-state { display: flex; align-items: center; gap: 16px; margin-left: auto; font-size: 12px; color: var(--muted); }
.private-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; white-space: nowrap; padding: 3px 8px; border-radius: 4px; background: var(--panel); }
#health { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.health-ready .status-dot { background: var(--green); }
.health-error .status-dot { background: var(--amber); }
main { padding-top: 32px; min-height: calc(100vh - 180px); }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 20px; }
.page-heading > :first-child { min-width: 0; }
.eyebrow { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.subtitle { color: var(--muted); margin-top: 8px; font-size: 14px; line-height: 22px; }
.heading-actions { padding-top: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); color: var(--muted); font-size: 12px; line-height: 20px; }
.button:hover, .button[aria-pressed=true] { background: var(--raised); border-color: var(--blue); color: var(--text); }
.button[aria-pressed=true] { color: var(--blue); }
.refresh-symbol { font-size: 16px; margin-right: 6px; }
.policy-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; background: var(--panel); border-left: 2px solid var(--amber); border-radius: 4px; padding: 10px 14px; margin-bottom: 24px; color: var(--muted); font-size: 12px; line-height: 18px; }
.policy-strip .badge { margin-right: 4px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border: 1px solid var(--line); border-radius: 4px; font-size: 12px; line-height: 18px; color: var(--muted); max-width: 100%; }
.badge-test, .badge-warn { color: var(--amber); border-color: #F59E0B55; background: #F59E0B0D; }
.badge-good { color: var(--green); border-color: #14B8A644; background: #14B8A60D; }
.badge-neutral { color: var(--muted); background: var(--inset); }
.date-toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.date-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.date-tabs button { padding: 8px 12px; min-height: 38px; background: var(--panel); border: 1px solid transparent; border-radius: 4px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.date-tabs button:hover { color: var(--text); border-color: var(--line); }
.date-tabs button[aria-pressed=true] { color: var(--blue); background: var(--raised); border-color: var(--blue); }
.data-note { flex-shrink: 0; color: var(--muted); font-size: 12px; padding-top: 8px; }
.filter-note { color: var(--muted); font-size: 12px; margin: -4px 0 20px; }
.muted, .faint { color: var(--muted); }
.small { font-size: 12px; line-height: 18px; }
.mono, .probability, .gap-value, .chart-axis, .chart-latest-item strong { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' on, 'zero' on; }
.numeric-token, .probability, .gap-value, .comparison-value, .impact-value { white-space: nowrap; }
.list-columns, .game-row-main { display: grid; grid-template-columns: var(--list-columns); gap: 16px; }
.list-columns { padding: 12px 16px; background: var(--inset); border-radius: 4px; font-size: 12px; color: var(--muted); }
.day-group { margin-bottom: 24px; }
.day-heading { display: flex; align-items: baseline; gap: 12px; padding: 20px 0 12px; }
.day-heading h2 { font-size: 16px; line-height: 24px; }
.day-heading span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.game-row { padding: 16px; background: var(--panel); border: 1px solid transparent; border-radius: var(--radius); margin-bottom: 8px; transition: border-color .15s ease; }
.game-row:hover { border-color: var(--line); }
/* Align the first team name and primary numbers, independent of caption height. */
.game-row-main { align-items: first baseline; }
.game-row-main > * { min-width: 0; }
.matchup-link { display: block; min-width: 0; }
.matchup-text, .matchup-name { min-width: 0; }
.matchup-name { display: grid; gap: 4px; font-size: 15px; font-weight: 600; line-height: 22px; }
.matchup-team { display: grid; grid-template-columns: 24px 36px minmax(0, 1fr); align-items: baseline; gap: 8px; }
.matchup-team > .home-indicator { white-space: nowrap; }
.team-abbr { color: var(--muted); background: var(--raised); border-radius: 4px; font-family: var(--font-mono); font-size: 11px; line-height: 20px; text-align: center; font-weight: 500; }
.team-name { overflow-wrap: break-word; }
.home-indicator { color: var(--muted); font-size: 12px; font-weight: 400; }
.versus { color: var(--muted); font-weight: 400; margin: 0 8px; }
.match-time { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.match-time > span { white-space: nowrap; }
.countdown { color: var(--muted); white-space: nowrap; }
.numeric-cell { min-width: 0; padding-top: 2px; }
.cell-label { display: none; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.probability { font-size: 26px; font-weight: 600; line-height: 32px; letter-spacing: -.02em; }
.model-value { color: var(--blue); }
.market-value { color: var(--green); }
.unavailable, .reference-value { color: var(--muted); }
.delta-positive { color: var(--green); }
.delta-negative { color: var(--rose); }
.delta-zero { color: var(--text); }
.metric-caption { display: block; font-size: 12px; line-height: 18px; color: var(--muted); margin-top: 8px; overflow-wrap: anywhere; }
.gap-value { font-size: 20px; line-height: 32px; font-weight: 600; }
.gap-value .unit { font-size: 12px; font-weight: 400; margin-left: 4px; }
.latest-event { border: 0; padding: 2px 0; background: transparent; color: var(--blue); text-align: left; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.latest-event:hover { text-decoration: underline; text-underline-offset: 3px; }
.latest-event .metric-caption { margin-top: 6px; }
.latest-event time { display: block; color: var(--muted); font-size: 12px; font-family: var(--font-mono); margin-top: 6px; }
.event-arrow { margin-left: 5px; white-space: nowrap; }
.row-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 12px; line-height: 18px; margin-top: 12px; }
.row-meta > span { overflow-wrap: anywhere; }
.pregame-row > .row-meta { margin: 0 0 12px; }
@media (min-width: 1024px) {
  /* Center the metrics on the teams; keep kickoff on its own line below. */
  .pregame-row .game-row-main { align-items: center; row-gap: 8px; }
  .pregame-row .matchup-link { display: grid; grid-column: 1; grid-row: 1 / span 2; grid-template-rows: subgrid; }
  .pregame-row .matchup-text { display: contents; }
  .pregame-row .matchup-name { grid-column: 1; grid-row: 1; }
  .pregame-row .match-time { grid-column: 1; grid-row: 2; margin-top: 0; }
  .pregame-row .model-cell { grid-column: 2; grid-row: 1; }
  .pregame-row .market-cell { grid-column: 3; grid-row: 1; }
  .pregame-row .gap-cell { grid-column: 4; grid-row: 1; }
  .pregame-row .latest-event { grid-column: 5; grid-row: 1; }
}
.history-error { flex-basis: 100%; color: var(--amber); }
.historical-comparison { padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); font-size: 12px; line-height: 20px; overflow-wrap: anywhere; }
.historical-comparison p + p { margin-top: 4px; }
main > .historical-comparison { margin: -8px 0 24px; padding: 16px; background: var(--panel); border-radius: var(--radius); }
.demo-banner, .notice { padding: 12px 16px; border: 1px solid #F59E0B44; border-radius: 4px; background: #F59E0B08; color: var(--amber); font-size: 13px; line-height: 22px; margin-bottom: 16px; overflow-wrap: anywhere; }
.demo-banner { margin-top: 20px; }
.notice-neutral { border-color: var(--line); color: var(--muted); background: var(--panel); }
.notice:empty { display: none; }
.empty-state, .loading-state { padding: 64px 20px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; color: var(--text); font-size: 18px; margin-bottom: 8px; }
.load-more { display: flex; margin: 20px auto; }
.back-link { display: inline-flex; font-size: 12px; color: var(--blue); margin-bottom: 20px; }
.detail-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font-size: 28px; line-height: 36px; }
.detail-team { display: grid; gap: 4px; min-width: 0; max-width: 100%; }
.detail-team > span { overflow-wrap: break-word; }
a.detail-team-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.detail-title .home-indicator { margin-left: 6px; }
.team-standing { color: var(--muted); font-size: 13px; line-height: 20px; font-weight: 400; letter-spacing: normal; }
.detail-subline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 12px; margin-top: 12px; }
.metric-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.hero-metric { min-width: 0; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.hero-metric .metric-title, .hero-metric .cell-label { display: block; font-size: 12px; line-height: 18px; color: var(--muted); margin-bottom: 12px; }
.hero-metric .probability { font-size: 32px; line-height: 40px; }
.hero-metric .gap-value { font-size: 28px; line-height: 40px; }
.hero-metric .metric-caption { margin-top: 12px; }
.source-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: 12px; margin: 16px 0; }
.section-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }
.detail-section { margin-bottom: 32px; scroll-margin-top: 24px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 16px; }
.section-heading .small { color: var(--muted); }
.chart-panel { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.chart-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.chart-legend { display: flex; gap: 12px 20px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.legend-line { display: inline-block; width: 18px; height: 2px; background: var(--blue); vertical-align: middle; margin-right: 6px; }
.legend-line.market { background: var(--green); }
.legend-line.baseline { background: none; border-top: 2px dashed var(--muted); }
.chart-controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.chart-wrap { position: relative; min-width: 0; }
.chart-wrap svg { display: block; width: 100%; background: var(--inset); border-radius: 4px; }
.chart-axis { font-size: 12px; fill: var(--muted); }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-line { stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.series-model { stroke: var(--blue); }
.series-market { stroke: var(--green); }
.series-baseline { stroke: var(--muted); stroke-dasharray: 4 4; }
.chart-point { fill: var(--inset); stroke-width: 2; }
.chart-event { fill: var(--amber); cursor: pointer; }
.chart-event[aria-pressed=true] { fill: var(--blue); }
.chart-event-count { font-size: 10px; fill: var(--bg); font-weight: 700; }
.event-guide { stroke: var(--amber); stroke-dasharray: 4 4; }
.chart-crosshair { stroke: var(--muted); stroke-dasharray: 3 4; }
.chart-hit:focus { outline: none; stroke: var(--muted); stroke-width: 1; }
.chart-tooltip { position: absolute; pointer-events: none; z-index: 3; background: var(--raised); color: var(--text); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; font-size: 12px; line-height: 20px; white-space: pre-line; overflow-wrap: anywhere; max-width: min(300px, 100%); box-shadow: 0 8px 20px #0005; }
.chart-caption { color: var(--muted); font-size: 12px; line-height: 18px; margin-top: 12px; }
.chart-latest { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px 24px; margin-bottom: 16px; }
.chart-latest-label { width: 100%; text-align: right; font-size: 12px; color: var(--muted); }
.chart-latest-item { display: grid; gap: 4px; font-size: 12px; }
.chart-latest-item strong { font-size: 22px; line-height: 28px; white-space: nowrap; }
.chart-latest-item small { font-size: 12px; color: var(--muted); }
.chart-latest-item.series-model { color: var(--blue); }
.chart-latest-item.series-market { color: var(--green); }
.chart-latest-item.series-baseline { color: var(--muted); }
.chart-event-picker { display: flex; flex-wrap: wrap; gap: 8px; max-height: 180px; overflow: auto; margin-top: 12px; }
.chart-event-picker .button { white-space: normal; text-align: left; }
.chart-gaps { margin: 16px 0; color: var(--muted); font-size: 12px; }
.chart-gaps[open] { max-height: 240px; overflow: auto; }
.chart-gap { display: block; margin-top: 8px; text-align: left; }
.empty-chart { color: var(--muted); padding: 64px 16px; text-align: center; }
.timeline-layout { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, 2fr); gap: 16px; margin-top: 16px; }
.event-list { max-height: 640px; overflow: auto; padding: 0 4px 4px 0; }
.event-item { display: flex; gap: 10px; width: 100%; border: 1px solid transparent; border-left: 2px solid transparent; border-radius: 4px; padding: 14px; margin-bottom: 6px; background: var(--panel); color: var(--muted); text-align: left; font-size: 13px; line-height: 22px; }
.event-item > span { min-width: 0; }
.event-item:hover { background: var(--raised); }
.event-item[aria-pressed=true] { border-left-color: var(--blue); background: var(--raised); color: var(--text); }
.event-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); margin-top: 8px; flex-shrink: 0; }
.event-item[aria-pressed=true] .event-dot { background: var(--blue); }
.event-item time { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 4px; }
.event-probability { display: block; margin-top: 8px; font-size: 12px; line-height: 20px; font-weight: 500; }
.evidence-panel { min-width: 0; padding: 24px; background: var(--panel); border-radius: var(--radius); border: 1px solid var(--line); }
.evidence-heading { margin-bottom: 16px; }
.comparison-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; padding: 16px; background: var(--inset); border-radius: 4px; margin: 16px 0; }
.comparison-cell .small { display: block; margin-bottom: 6px; color: var(--muted); }
.comparison-value { font-size: 24px; line-height: 32px; }
.comparison-arrow { color: var(--muted); }
.evidence-notice { font-size: 13px; line-height: 22px; color: var(--muted); margin-bottom: 16px; }
.subsection-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 20px 0 12px; }
.subsection-heading span { font-size: 12px; color: var(--muted); }
.input-event { padding: 12px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.input-event > p + p { margin-top: 6px; }
.input-values { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.input-value { min-width: 0; color: var(--muted); }
.input-value strong { display: block; font-size: 12px; margin-bottom: 4px; }
.calculation-stage { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.business-change { padding: 8px 0; font-size: 14px; line-height: 22px; }
.change-audit, .adopted-injuries, .model-status-history { margin-top: 16px; }
.initial-estimate { color: var(--muted); font-size: 13px; }
details { margin-top: 8px; min-width: 0; }
summary { cursor: pointer; color: var(--blue); font-size: 12px; line-height: 20px; overflow-wrap: anywhere; }
summary:hover { text-decoration: underline; text-underline-offset: 3px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 18px; color: var(--muted); background: var(--inset); padding: 12px; border: 1px solid var(--line); border-radius: 4px; max-height: 320px; overflow: auto; margin: 8px 0; }
.snapshot-ids { color: var(--muted); font-size: 12px; margin-top: 20px; overflow-wrap: anywhere; }
.snapshot-ids > span { display: block; margin-top: 4px; }
.table-scroll { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin-top: 16px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; line-height: 22px; }
th { padding: 12px; color: var(--muted); font-size: 12px; font-weight: 500; background: var(--raised); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 16px 12px; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #1E293B55; }
.injury-table { min-width: 1240px; table-layout: fixed; }
.injury-table th:nth-child(1) { width: 16%; }
.injury-table th:nth-child(2) { width: 10%; }
.injury-table th:nth-child(3) { width: 17%; }
.injury-table th:nth-child(4) { width: 11%; }
.injury-table th:nth-child(5) { width: 11%; }
.injury-table th:nth-child(6), .injury-table th:nth-child(7) { width: 9%; }
.injury-table th:nth-child(8) { width: 17%; }
.injury-table td { overflow-wrap: anywhere; }
.injury-table td:first-child, .report-status { color: var(--text); }
.player-translation { display: block; font-size: 12px; margin-top: 4px; color: var(--muted); }
.alias-note { display: block; color: var(--muted); font-size: 12px; line-height: 18px; margin-top: 4px; }
.report-cell .badge { margin-top: 8px; }
.injury-status { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.player-profile-link, .boxscore-link { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.source-list { margin-top: 12px; }
.source-row { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.source-row strong { min-width: 130px; font-weight: 500; }
.source-row span { color: var(--muted); }
.source-row code { font-family: var(--font-mono); color: var(--muted); overflow-wrap: anywhere; max-width: 100%; }
.detail-section[data-scroll-anchor=sources] { padding: 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.market-price-link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 24px 0; margin-top: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-separator { margin: 0 8px; }
.skip-link { position: absolute; top: -100px; left: 20px; background: var(--raised); padding: 12px; z-index: 10; }
.skip-link:focus { top: 10px; }
@media (max-width: 1279px) {
  :root { --list-columns: minmax(260px, 1.6fr) minmax(160px, 1fr) minmax(150px, 1fr) minmax(120px, .8fr); }
  .list-columns > :last-child { display: none; }
  .latest-event { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--line); }
  .latest-event time { display: inline-block; margin-left: 12px; }
  .private-label { display: none; }
  .date-toolbar { flex-wrap: wrap; }
}
@media (max-width: 1023px) {
  .topbar { gap: 24px; }
  .list-columns { display: none; }
  .game-row-main { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .matchup-link { grid-column: 1 / -1; }
  .cell-label { display: block; }
  .matchup-team { max-width: 480px; }
  .timeline-layout { display: block; }
  .event-list { max-height: 300px; margin-bottom: 16px; }
  .hero-metric { padding: 16px; }
  .hero-metric .probability { font-size: 28px; }
  .hero-metric .gap-value { font-size: 24px; }
}
@media (max-width: 767px) {
  .shell { padding: 0 16px; }
  .topbar { flex-wrap: wrap; gap: 0; padding-top: 16px; }
  .brand { font-size: 20px; }
  .brand small { font-size: 9px; }
  .brand-mark { width: 32px; height: 32px; }
  .service-state { font-size: 11px; }
  .primary-nav { order: 3; width: 100%; height: 44px; margin-top: 12px; }
  main { padding-top: 24px; }
  h1 { font-size: 28px; line-height: 36px; }
  .page-heading { gap: 12px; }
  .page-heading > .button, .heading-actions { flex-shrink: 0; }
  .policy-strip { gap: 8px 12px; }
  .date-tabs { gap: 6px; }
  .date-tabs button { padding: 8px 10px; }
  .game-row { padding: 12px; }
  .game-row-main { gap: 16px 8px; }
  .probability { font-size: 22px; line-height: 28px; }
  .gap-value { font-size: 18px; line-height: 28px; }
  .metric-caption { margin-top: 6px; }
  .latest-event time { display: block; margin-left: 0; }
  .metric-strip { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hero-metric { padding: 20px; }
  .hero-metric .probability { font-size: 32px; }
  .hero-metric .gap-value { font-size: 28px; }
  .detail-title { font-size: 24px; line-height: 32px; }
  .chart-panel, .evidence-panel, .detail-section[data-scroll-anchor=sources] { padding: 16px; }
  .chart-latest { justify-content: flex-start; gap: 12px; }
  .chart-latest-label { text-align: left; }
  .chart-axis { font-size: 11px; }
  .comparison-strip { gap: 12px; padding: 12px; }
  .comparison-value { font-size: 22px; }
}
@media (max-width: 359px) {
  .brand small { font-size: 8px; }
  .brand { gap: 8px; }
  .probability { font-size: 19px; }
  .gap-value { font-size: 16px; }
  .game-row { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.game-row { content-visibility: auto; contain-intrinsic-block-size: auto 120px; }

:root[data-view="public"] {
  font-family: system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
}

.roster-tabs,.roster-links {display:flex; flex-wrap:wrap; gap:.6rem; margin:1rem 0}
.roster-tabs button[aria-pressed="true"] {color:var(--text); border-color:#22b8d4; background:#163441}
.roster-table {border-collapse:collapse; width:100%; table-layout:fixed; font-size:.9rem}
.roster-table td,.roster-table th {text-align:left; padding:.65rem .4rem; vertical-align:top; overflow-wrap:anywhere; border-bottom:1px solid #303947}
.roster-table th {color:#aab8c8}
.roster-table th:last-child {width:35%}
.roster-section h3 {margin-top:1.4rem}
.roster-pdf {width:100%; height:clamp(24rem,65vh,52rem); border:1px solid #303947; border-radius:.4rem}

.roster-table th {white-space:normal}
@media (max-width:600px) {
  .roster-table,.roster-table tbody {display:block}
  .roster-table thead {display:none}
  .roster-table tr {display:grid; grid-template-columns:1fr 1fr; border-bottom:1px solid #303947; padding:.65rem 0}
  .roster-table td {border:0; padding:.25rem .4rem; overflow-wrap:break-word}
  .roster-table td:first-child,.roster-table td:last-child {grid-column:1 / -1}
  .roster-table td:first-child {font-weight:600; color:var(--text)}
  .roster-table td:not(:first-child)::before {content:attr(data-label); display:block; font-size:.75rem; color:#93a3b8; margin-bottom:.2rem}
}
