:root {
  --ink: #15283f; --muted: #526174; --paper: #f7f5f0;
  --surface: #fffefa; --line: #cbd0d5; --accent: #bd530e; --control-line: #758394;
  --display: ui-serif, Georgia, "Times New Roman", serif;
  --type-meta: .8125rem; --type-detail: .875rem;
}
html { font-size: 100%; scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
.container-fluid { max-width: 1240px; padding: 0 2rem; }
p { max-width: 74ch; margin-bottom: .75rem; }
h1, h2, h3, h4 { color: var(--ink); text-wrap: balance; }
h1 { font-family: var(--display); font-weight: 750; font-size: clamp(1.7rem, 4vw, 3rem); letter-spacing: -.035em; line-height: 1.05; margin: 0; }
h2 { font-family: var(--display); font-size: 2rem; line-height: 1.15; margin: 1.75rem 0 .75rem; }
h3 { font-size: 1.2rem; font-weight: 700; margin: 1.5rem 0 .65rem; }
h4 { font-size: 1.1rem; font-weight: 700; }
.app-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 0 1rem; border-bottom: 3px solid var(--ink); }
.score-preview { margin: .85rem 0; padding: .75rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.score-label { font-size: var(--type-meta); color: var(--muted); margin: 0 0 .25rem; }
.expected-points { font-size: var(--type-detail); margin-bottom: .35rem; overflow-wrap: anywhere; }
.expected-points strong { font-variant-numeric: tabular-nums; font-size: 1.1rem; }
.score-preview details, .score-unavailable, .score-disagreement { font-size: var(--type-detail); }
.score-preview details p { margin: .5rem 0 0; }
.score-disagreement { margin: .6rem 0 0; font-weight: 600; }
.score-unavailable { color: var(--muted); margin: .7rem 0; }
.score-study { margin: 1rem 0; }
.rotation-study { margin: 1rem 0; padding: .8rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: var(--type-detail); }
.rotation-study > p { margin-top: .7rem; }
.rotation-team h4 { margin: 1rem 0 .5rem; }
.rotation-team .table-scroll { margin: .5rem 0; }
.masthead-wordmark { display: flex; align-items: flex-start; gap: .66rem; min-width: 0; }
.brand-mark { display: block; flex: 0 0 2.7rem; width: 2.7rem; height: 2.7rem; margin-top: .1rem; color: var(--ink); }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.app-header p { font-size: var(--type-meta); letter-spacing: .04em; margin: .4rem 0 0; color: var(--muted); }
.nav-tabs { border-bottom: 1px solid var(--ink); gap: 1rem; }
.nav-tabs .nav-link { border: 0; border-radius: 0; min-height: 44px; padding: .75rem 1rem; color: var(--muted); font-weight: 600; background: transparent; }
.nav-tabs .nav-link.active { color: var(--ink); box-shadow: inset 0 -3px var(--accent); background: transparent; }
.nav-tabs .nav-link:hover { background: #eae7df; }
.slate-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin: 1rem 0 .5rem; }
.section-heading h2 { margin: 0 0 .2rem; }
.section-heading p { font-size: var(--type-detail); margin: 0; color: var(--muted); }
.slate-toolbar .shiny-input-container { max-width: 18rem; margin: 0; }
.slate-toolbar label { font-size: var(--type-meta); }
.today-freshness, .model-scope-note { font-size: var(--type-meta); margin-bottom: .3rem; color: var(--muted); max-width: none; }
.game-list { display: grid; align-items: start; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; }
.game-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: .75rem; align-content: start; background: var(--surface); border-bottom: 1px solid var(--line); border-top: 2px solid var(--ink); padding: 1rem 1.25rem; min-width: 0; }
.game-row > * { grid-column: 1 / -1; }
.game-row > .estimate-details:not([open]) { grid-column: 1; }
.game-row > .game-context-button { grid-column: 2; justify-self: end; align-self: start; }
.game-heading { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .65rem; }
.game-heading p { font-size: var(--type-meta); color: var(--muted); margin: 0; font-variant-numeric: tabular-nums; }
.game-status { color: var(--muted); font-size: var(--type-meta); font-weight: 700; letter-spacing: .06em; }
.team-score-row { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; align-items: center; gap: .65rem; padding: .45rem 0; color: var(--muted); }
.team-badge { --team-color: #15283f; --team-ink: #ffffff; display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 2px; font-size: 1rem; font-weight: 850; letter-spacing: -.04em; color: var(--team-ink); background: var(--team-color); }
.team-badge.is-long { font-size: .75rem; letter-spacing: -.02em; }
.team-badge.is-very-long { font-size: .65rem; }
.team-logo { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; }
.team-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.team-logo [hidden] { display: none !important; }
.team-identity { min-width: 0; }
.team-role { font-size: var(--type-meta); display: block; font-weight: 650; letter-spacing: .04em; }
.team-name { font-size: 1rem; display: block; font-weight: 550; line-height: 1.2; overflow-wrap: anywhere; }
.team-chance { font-size: clamp(1.8rem, 3.5vw, 2.7rem); line-height: 1; font-weight: 500; letter-spacing: -.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.team-score-row.has-no-badge { grid-template-columns: minmax(0, 1fr) auto; }
.team-score-row.is-favored { color: var(--ink); }
.is-favored .team-name { font-weight: 750; }
.is-favored .team-chance { font-weight: 800; }
.probability-labels { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .35rem; font-size: var(--type-meta); color: var(--muted); margin-top: .55rem; }
.probability-labels > :last-child { text-align: right; }
.probability-track { position: relative; display: flex; height: 12px; gap: 3px; margin: .3rem 0 .35rem; overflow: hidden; }
.probability-track::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px solid var(--surface); border-right: 1px solid var(--ink); pointer-events: none; }
.probability-side { display: block; background: #b4bfca; min-width: 0; }
.probability-side.is-favored { background: var(--ink); }
.favorite-label { margin: 0 0 .2rem; font-size: var(--type-meta); font-weight: 650; }
.input-coverage, .estimate-note, .chance-meaning, .feed-status, .venue-note, .withheld-note { font-size: var(--type-meta); color: var(--muted); }
.input-coverage { margin: 0 0 .25rem; font-variant-numeric: tabular-nums; }
.venue-note { margin-bottom: .25rem; }
.estimate-details { margin: .15rem 0 0; font-size: var(--type-meta); }
.estimate-details[open] > summary { margin-bottom: .65rem; }
.estimate-details > .estimate-note:last-child { margin: .75rem 0 0; max-width: 68ch; }
.explanation-label { font-size: var(--type-meta); color: var(--muted); margin: 0 0 .3rem; }
.driver-summary { font-size: var(--type-detail); margin: .25rem 0; max-width: 64ch; }
.forecast-explanation { margin-bottom: .75rem; }
.input-details { margin: 0; }
.game-context-button { min-height: 44px; padding: .5rem 0; font-size: var(--type-meta); text-decoration: underline; text-underline-offset: .2em; border: 0; background: transparent; }
.game-context-button:hover { color: var(--accent); }
.freshness-details { font-size: var(--type-detail); margin: .5rem 0 1rem; }
.factor-list { border-top: 1px solid var(--line); max-width: 40rem; }
.factor-row { padding: .65rem 0; border-bottom: 1px solid var(--line); }
.factor-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: .25rem 1rem; font-size: var(--type-detail); }
.factor-value { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--ink); }
.factor-row p { margin: .25rem 0 0; font-size: var(--type-meta); color: var(--muted); }
.factor-direction { font-size: var(--type-meta); color: var(--muted); margin: 1rem 0 .4rem; }
.factor-definitions { margin-bottom: 0; }
.factor-row details { font-size: var(--type-meta); margin: 0; }
.context-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2rem; }
.context-layout section { min-width: 0; }
.context-layout h3 { border-top: 1px solid var(--line); padding-top: .5rem; margin-top: .25rem; margin-bottom: .5rem; }
.players-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.5rem 0 .5rem; }
.players-toolbar h2 { margin: 0; }
.players-toolbar .news-jump { flex: 0 0 auto; }
.players-intro { margin-bottom: .25rem; font-size: var(--type-detail); }
.players-intro .news-jump { padding: .35rem 0; }
.context-layout .shiny-input-container { margin-bottom: .4rem; }
.context-layout .feed-status { font-size: var(--type-meta); margin-bottom: .3rem; }
.player-report { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.player-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .75rem; margin-bottom: .4rem; }
.player-heading h4 { margin: 0; }
.report-metadata { display: flex; flex-wrap: wrap; gap: .1rem .75rem; font-size: var(--type-meta); color: var(--muted); margin-bottom: .6rem; }
.report-metadata > span:first-child { color: var(--ink); font-weight: 550; }
.source-status { display: inline-block; font-size: var(--type-meta); font-weight: 650; padding: .2rem .5rem; background: #ece8de; color: var(--ink); max-width: 100%; }
.feed-status { margin-bottom: .5rem; }
.feed-status p { margin-bottom: .3rem; }
.is-stale { color: #843b0b; }
.comment-label { display: block; color: var(--muted); font-size: var(--type-meta); font-weight: 400; margin-bottom: .3rem; }
.source-comment { font-size: 1rem; line-height: 1.55; max-width: 64ch; }
.player-source-link, .news-jump { min-height: 44px; display: inline-block; padding: .65rem 0; font-size: var(--type-detail); }
.news-list { list-style: none; padding: 0; }
.news-list li { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.news-list a, .news-list li > span { display: block; font-family: var(--display); font-size: 1.12rem; line-height: 1.3; font-weight: 600; min-height: 44px; padding: .2rem 0 .5rem; text-decoration: none; }
.news-list li:first-child a, .news-list li:first-child > span { font-size: 1.6rem; line-height: 1.2; }
.news-list li:not(:first-child) { padding: .65rem 0; }
.news-list a:hover { text-decoration: underline; }
.news-list .feed-status { font-size: var(--type-meta); margin: 0; }
.matchup-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 1rem; margin-top: 1.5rem; max-width: 56rem; }
.matchup-controls .shiny-input-container, .matchup-controls .btn { margin-bottom: 0; }
.matchup-controls > .compare-button { grid-column: 1 / -1; justify-self: start; margin-top: 0; }
.rest-assumptions { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: .5rem; }
.rest-assumptions summary .feed-status { font-weight: 400; margin-left: .5rem; }
.rest-assumptions > p { max-width: 68ch; }
.rest-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.rest-baseline { border-block: 1px solid var(--line); padding: .75rem 0; margin: .75rem 0 1.25rem; font-size: var(--type-detail); }
.rest-baseline h4 { margin: 0 0 .5rem; }
.rest-baseline p { margin: .3rem 0; }
.scenario-label { color: var(--muted); font-weight: 600; font-size: var(--type-detail); }
@media (max-width: 500px) { .rest-controls { grid-template-columns: 1fr; gap: .25rem; } }
#date_help { margin-top: .3rem; }
#date_help p { font-size: var(--type-meta); margin-bottom: 0; text-wrap: pretty; }
.compare-intro { max-width: 68ch; font-size: .95rem; }
.comparison-assumptions { font-size: var(--type-detail); max-width: 56rem; margin: .25rem 0 .5rem; }
.comparison-scorecard { max-width: 56rem; margin: 1.5rem 0; padding: 1.5rem 2rem; border: 1px solid var(--line); border-top: 3px solid var(--ink); background: var(--surface); }
.comparison-scorecard > h3 { margin-top: 0; font-family: var(--display); font-size: 1.5rem; }
.comparison-metadata { display: flex; flex-wrap: wrap; gap: .2rem 1.25rem; margin-bottom: .75rem; color: var(--muted); font-size: var(--type-meta); }
.comparison-metadata p { margin: 0; }
.comparison-scorecard .team-chance { font-size: 3rem; }
#historical_summary, #prospective { border-top: 1px solid var(--line); padding: .25rem 0 1rem; margin-top: 1.25rem; }
#historical_summary h3, #prospective h3 { font-family: var(--display); font-size: 1.3rem; margin: .6rem 0; }
#historical_summary .study-sample { font-size: var(--type-meta); color: var(--muted); }
#historical_summary > p:last-child { font-size: var(--type-detail); max-width: 68ch; color: var(--muted); }
.historical-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto auto; gap: .2rem 1rem; max-width: 44rem; margin: .75rem 0; }
.historical-comparison > div { display: grid; grid-template-rows: subgrid; grid-row: span 3; }
.historical-comparison strong { font-size: 2.4rem; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.1; }
.historical-comparison span { font-size: var(--type-meta); color: var(--muted); }
.slate-section > h3 { font-size: .9rem; margin: 1rem 0 .5rem; font-weight: 650; }
.game-list-secondary { display: block; }
.game-row.is-secondary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; padding: .75rem 0; background: transparent; border: 0; border-bottom: 1px solid var(--line); }
.is-secondary .secondary-matchup { font-size: .95rem; font-weight: 650; margin: 0; grid-column: 1; }
.is-secondary .game-heading { grid-column: 1; margin: 0; justify-content: flex-start; flex-wrap: wrap; }
.is-secondary .withheld-note { grid-column: 1; margin: 0; }
.is-secondary > .game-context-button { grid-column: 2; grid-row: 1 / 4; align-self: center; }

.tab-pane[data-value="method"] > details { border-top: 1px solid var(--line); padding: .5rem 0; }
.table-scroll { overflow-x: auto; }
.table { --bs-table-bg: transparent; --bs-table-color: var(--ink); --bs-table-border-color: var(--line); font-size: var(--type-detail); font-variant-numeric: tabular-nums; }
.table td, .table th { padding: .7rem; overflow-wrap: anywhere; }
.table th { font-weight: 700; }
caption { caption-side: top; color: var(--muted); font-size: var(--type-meta); }
button, input:not([type="checkbox"]):not([type="radio"]), select, .form-control, .form-select, .btn { min-height: 44px; }
.shiny-input-container { width: 100% !important; }
.form-control, .form-select, .selectize-input { min-height: 44px; border-radius: 3px; border-color: var(--control-line); background: var(--surface); }
.btn { border-radius: 3px; font-weight: 650; padding: .6rem 1rem; }
.refresh-button { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.compare-button { color: white; background: var(--accent); border-color: var(--accent); }
.compare-button:hover, .compare-button:focus { background: #963f08; border-color: #963f08; color: white; }
.btn:active { opacity: .8; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.checkbox label { min-height: 44px; display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; margin-bottom: 0; padding-left: 0; }
.checkbox input[type="checkbox"] { position: static; margin: 0; flex: 0 0 auto; width: 1rem; height: 1rem; }
summary { min-height: 44px; padding: .6rem 0; cursor: pointer; font-weight: 600; }
details { margin: .5rem 0 1rem; }
dd { color: var(--muted); max-width: 74ch; }
dt { margin-top: .75rem; }
a { color: var(--ink); text-underline-offset: .2em; }
a:hover { color: #963f08; }
.empty-state { padding: 1rem 0; }
.empty-state h3 { margin-top: 0; }
.empty-state p { color: var(--muted); }
.loading-status { padding: .75rem 0; color: var(--muted); }
footer { padding: 1.25rem 0; margin-top: 2rem; border-top: 2px solid var(--ink); color: var(--muted); font-size: var(--type-meta); }
footer p { margin: 0; }
:focus-visible { outline: 3px solid #98400b !important; outline-offset: 3px; box-shadow: none !important; }
::selection { color: white; background: var(--ink); }
input { caret-color: var(--accent); }
* { scrollbar-color: #8290a0 var(--paper); scrollbar-width: thin; }
.skip-link { position: absolute; top: -100px; left: 1rem; background: white; padding: .75rem; z-index: 1000; }
.skip-link:focus { top: 1rem; }
.shiny-output-error-validation { color: #843b0b; padding: 1rem 0; }
.recalculating { opacity: .6; transition: opacity 120ms ease-out; }
@media (max-width: 850px) {
  .context-layout { grid-template-columns: 1fr; gap: 1rem; }
  .matchup-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .container-fluid { padding: 0 .9rem; }
  .app-header { padding: .9rem 0 .7rem; gap: .5rem; }
  .app-header h1 { font-size: 1.25rem; }
  .masthead-wordmark { align-items: center; gap: .35rem; }
  .brand-mark { flex-basis: 1.75rem; width: 1.75rem; height: 1.75rem; }
  .brand-mark .court-detail { display: none; }
  .app-header p { display: none; }
  .refresh-button { padding: .5rem; font-size: var(--type-meta); }
  .nav-tabs { flex-wrap: nowrap; gap: 0; }
  .nav-tabs .nav-item { flex: 1 1 0; min-width: 0; }
  .nav-tabs .nav-link { width: 100%; padding: .7rem .25rem; font-size: var(--type-meta); white-space: nowrap; }
  h2 { font-size: 1.65rem; }
  .slate-toolbar { display: block; margin: .75rem 0 .5rem; }
  .slate-toolbar .shiny-input-container { max-width: none; margin-top: .5rem; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .75rem; }
  .slate-toolbar .control-label { margin-bottom: 0; }
  .game-list { grid-template-columns: 1fr; gap: .75rem; margin-top: .75rem; }
  .game-row { padding: .85rem 1rem; }
  .team-score-row { grid-template-columns: 2.5rem minmax(0, 1fr) auto; gap: .5rem; }
  .team-badge { width: 2.5rem; height: 2.5rem; font-size: .9rem; }
  .team-name { font-size: .95rem; }
  .team-chance { font-size: 2rem; }
  .game-heading { flex-wrap: wrap; }
  .slate-section > h3 { margin: .65rem 0 .4rem; }
  .comparison-scorecard { padding: 1rem; }
  .comparison-scorecard .team-chance { font-size: 2.2rem; }
  .comparison-scorecard > h3 { font-size: 1.3rem; }
  .matchup-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-top: 1rem; }
  .matchup-controls > .date-control, .matchup-controls > .compare-button { grid-column: 1 / -1; }
  .matchup-controls .selectize-input .item { max-width: calc(100% - .75rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
  .matchup-controls > .compare-button { margin-top: 0; }
  .context-layout { gap: .5rem; }
  .context-layout h3 { margin-top: 0; }
  .availability-section > h3 { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .is-secondary > .game-context-button { grid-column: 1 / -1; grid-row: auto; justify-self: start; }
  .is-secondary .secondary-matchup, .is-secondary .game-heading, .is-secondary .withheld-note { grid-column: 1 / -1; }
  .historical-comparison strong { font-size: 2rem; }
  .news-list li:first-child a { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
@media (prefers-contrast: more) { :root { --muted: #263d55; --line: #526174; } }

.v2-model-status { font-size: .8rem; color: var(--muted); margin: .35rem 0; }
.v2-contributions { font-size: .85rem; }
.v2-contributions dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem 1rem; }
.v2-contributions dt, .v2-contributions dd { margin: 0; }
.v2-contributions dd { font-variant-numeric: tabular-nums; }

#fixed_cohort thead th { word-break: normal; overflow-wrap: normal; }
/* Native controls replace Shiny's browser dependencies; the visual system is shared. */
* { box-sizing: border-box; }
body { margin: 0; }
.container-fluid { margin-inline: auto; }
button, input, select { font: inherit; }
button, select, input[type="date"] { border: 1px solid var(--control-line); border-radius: 3px; padding: .6rem .75rem; color: var(--ink); background: var(--surface); max-width: 100%; }
button { cursor: pointer; }
label { display: block; font-size: var(--type-detail); margin-bottom: .3rem; }
select, input[type="date"] { width: 100%; }
.nav-tabs { display: flex; padding: 0; margin: 0; list-style: none; }
.nav-tabs .nav-link { font-size: 1rem; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.team-filter { width: 18rem; }
.visitor-guide { max-width: 74ch; padding-bottom: 2rem; }
.context-layout { margin-top: 1rem; }
.player-reports h4 { margin: 0; }
#page-status { margin: .75rem 0; }
#page-status:empty { display: none; }
.source-list p { font-size: var(--type-detail); }
@media (max-width:700px) {
  .team-filter { width: 100%; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap:.75rem; margin-top:.65rem; }
  .team-filter label { margin: 0; }
  .nav-tabs .nav-link { font-size: var(--type-meta); }
  .nav-tabs > li { flex: 1; }
}

p { margin-top: 0; }
h2 { font-weight: 500; }

.brand-mark img { display: block; width: 100%; height: 100%; }
.player-heading h3 { font-size: 1.1rem; margin: 0; }
.show-all { display: flex; align-items: center; gap: .5rem; min-height: 44px; }
.model-guide { margin: 1.5rem 0; padding: .5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.model-guide > summary { font-size: 1rem; }
.model-guide h4 { margin: 1.25rem 0 .5rem; }
.model-guide .input-label { display: block; font-weight: 650; }
.model-guide .input-meaning { display: block; margin-top: .3rem; font-size: var(--type-meta); font-weight: 400; color: var(--muted); }
.model-weight-table { width: 100%; border-collapse: collapse; margin-bottom: .75rem; }
.model-weight-table th { text-align: left; }
.historical-accuracy th { white-space: nowrap; }
.vegas-summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,22rem),1fr)); gap: 1.5rem; margin-block: 1.5rem; }
.vegas-summary > section { border-top: 2px solid var(--ink); padding-top: .5rem; }
.vegas-table { min-width: 36rem; }
.vegas-comparison, .vegas-tag { display: block; margin-top: .4rem; font-size: var(--type-detail); font-variant-numeric: tabular-nums; }
.vegas-tag { color: var(--accent); }
@media (max-width:700px) { .nav-tabs { overflow-x: auto; } }
.model-weight-table td, .model-weight-table thead th:last-child { text-align: right; white-space: nowrap; }
.model-weight-table td, .model-weight-table th { border-bottom: 1px solid var(--line); }
.model-guide .weight-effect { display: block; font-weight: 650; }
.model-weight-table .weight-detail { display: block; margin-top: .3rem; font-size: var(--type-meta); font-weight: 400; color: var(--muted); }

/* Forecast archive */
.archive-controls {
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) minmax(12rem, 1.6fr) minmax(12rem, 1.25fr);
  gap: 1rem;
  max-width: 68rem;
  margin: 1.25rem 0 .65rem;
}
#archive-search, #vegas-search {
  width: 100%;
  border: 1px solid var(--control-line);
  border-radius: 3px;
  padding: .6rem .75rem;
  color: var(--ink);
  background: var(--surface);
}
.archive-figure {
  margin: 1rem 0 1.75rem;
  padding: 1rem 1.2rem .6rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  background: var(--surface);
}
.archive-figure h3, .archive-figure h4, .archive-figure p { margin: .25rem 0; }
.archive-figure h3, .archive-games-heading { font-family: var(--display); }
.archive-legend { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: .8rem 0 .35rem; font-size: var(--type-meta); }
.archive-legend span::before { display: inline-block; width: 1.1rem; margin: 0 .35rem .2rem 0; border-top: 2px solid var(--ink); content: ''; }
.archive-legend .legend-actual::before { border-top: 2px dashed #8b411e; }
.archive-chart-scroll { overflow-x: auto; overscroll-behavior-inline: contain; }
.archive-chart-scroll svg { display: block; max-width: none; font: 12px system-ui, sans-serif; fill: var(--muted); }
.archive-chart-scroll polyline { fill: none; stroke-width: 2; stroke-linejoin: round; }
.archive-grid { stroke: var(--line); }
.archive-zero { stroke: var(--muted); stroke-dasharray: 3 3; }
.archive-estimate { stroke: var(--ink); }
.archive-actual { stroke: #8b411e; }
polyline.archive-actual { stroke-dasharray: 4 3; }
.archive-error { stroke: #506782; }
.archive-dot { fill: var(--surface); stroke-width: 2; pointer-events: none; }
.archive-hit { fill: transparent; cursor: pointer; }
.archive-hit:hover { fill: #8b411e33; }
.archive-error-title { border-top: 1px solid var(--line); padding: .55rem 0 0; }
.archive-error-title p, .archive-chart-empty { font-size: var(--type-detail); color: var(--muted); }
.archive-chart-empty { padding: 1rem 0; border-block: 1px solid var(--line); }
.archive-chart-hint { padding-top: .55rem; }
.archive-game { border-bottom: 1px solid var(--line); scroll-margin-top: .5rem; }
.archive-game > summary { min-height: 44px; padding: .65rem 0; }
.archive-game > summary strong { margin-inline: .5rem; }
.archive-game-date, .archive-game-status { color: var(--muted); font-size: var(--type-meta); }
.archive-picks { display: block; margin-top: .25rem; font-size: var(--type-meta); }
.pick-result { white-space: nowrap; font-weight: 650; }
.pick-result.is-correct { color: #215b3c; }
.pick-result.is-incorrect { color: #963421; }
.archive-errors caption { text-align: left; color: var(--muted); font-size: var(--type-meta); margin-bottom: .5rem; }
.archive-errors td { min-width: 7rem; }
.archive-game-body { padding: 0 0 1rem 1.15rem; }
.archive-game-body dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin: .25rem 0 1rem; }
.archive-game-body dd { margin-left: 0; }
.archive-errors { width: 100%; min-width: 50rem; }
@media (max-width: 700px) {
  .archive-controls { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
  .archive-controls > :nth-child(2) { grid-row: 2; grid-column: 1 / -1; }
  .archive-figure { padding-inline: .8rem; }
  .archive-game-body dl { grid-template-columns: 1fr; gap: .5rem; }
}
.archive-pages { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin: .75rem 0; }
.archive-pages[hidden] { display: none; }

/* Forecast controls and loading feedback. */
body { font-variant-numeric: tabular-nums; }
.news-list a, .news-list li > span { text-wrap: balance; }
.forecast-model { margin: .8rem 0 .25rem; padding: 0; border: 0; min-width: 0; }
.forecast-model legend { padding: 0; margin-bottom: .3rem; font-size: var(--type-meta); font-weight: 650; }
.model-options { display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .22rem; border: 1px solid var(--line); border-radius: .4rem; }
.model-options label { position: relative; margin: 0; }
.model-options input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.model-options span { display: flex; align-items: center; gap: .4rem; padding: .45rem .75rem; min-height: 44px; border-radius: .25rem; font-size: var(--type-detail); font-weight: 650; }
.model-options small { font-size: .75rem; }
.model-options input:checked + span { color: var(--surface); background: var(--ink); }
.model-options input:focus-visible + span { outline: 3px solid #98400b; outline-offset: 2px; }
.injury-context-note { margin: .5rem 0 0; color: var(--muted); font-size: var(--type-meta); }
:where(button:enabled, a[href], summary, select:enabled, input:enabled, label:has(input:enabled), .model-options span, .archive-hit) {
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, filter 160ms ease, transform 150ms ease, fill 160ms ease;
}
:where(input:is([type=search], [type=text]):enabled) { cursor: text; }
@media (hover: hover) {
  :where(button:enabled, a[href], summary, select:enabled, input:enabled, label:has(input:enabled)):hover { filter: brightness(.87); }
  :where(a[href], summary):hover { text-decoration: underline; text-underline-offset: .18em; }
  .model-options input:not(:checked):hover + span { background-color: #eae7df; }
}
:where(button:enabled, a[href], summary, select:enabled, input:enabled):active,
.model-options input:active + span { transform: scale(.97); filter: brightness(.8); }
.archive-hit:active { fill: #8b411e66; }
.forecast-skeleton {
  min-height: 18rem;
  border-top: 2px solid var(--line);
  background:
    linear-gradient(var(--line), var(--line)) 1.2rem 1.3rem / 4rem .6rem,
    linear-gradient(#e5e7e9, #e5e7e9) 1.2rem 4rem / 68% 2.1rem,
    linear-gradient(#e5e7e9, #e5e7e9) 1.2rem 7.2rem / 76% 2.1rem,
    linear-gradient(#e5e7e9, #e5e7e9) 1.2rem 11.1rem / 85% .65rem,
    var(--surface);
  background-repeat: no-repeat;
  animation: forecast-wait 1.25s ease-in-out 3 alternate;
}
.forecast-skeleton.is-compact { max-width: 36rem; min-height: 13rem; }
.forecast-skeleton.is-chart { min-height: 15rem; margin: 1rem 0; }
@keyframes forecast-wait { from { opacity: .62; } to { opacity: 1; } }
.team-logo.is-loading::before { content: ''; width: 1.65rem; height: 1.65rem; border-radius: 50%; background: #d6dce2; filter: blur(3px); position: absolute; }
.team-logo img { position: relative; }
@media (prefers-reduced-motion: reduce) {
  :where(button, a[href], summary, select, input):active, .model-options input:active + span { transform: none; }
}
