/* Forecast views use the same theme tokens as scores and official statistics. */
.forecast-dashboard { display: grid; gap: 24px; min-width: 0; }
.forecast-dashboard > .analytics-note { margin: -8px 0 -6px; }
.forecast-overview { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 11px; background: var(--surface); overflow: hidden; }
.forecast-overview article { min-width: 0; padding: 19px 20px; border-right: 1px solid var(--line); }
.forecast-overview article:last-child { border-right: 0; }
.forecast-overview small { display: block; color: var(--muted); font-size: 9px; font-weight: 650; letter-spacing: .6px; line-height: 1.6; }
.forecast-overview strong { display: block; font-size: 23px; font-weight: 650; letter-spacing: -.5px; margin: 9px 0 6px; line-height: 1.2; overflow-wrap: anywhere; }
.forecast-overview article:first-child strong { font-size: 18px; }
.forecast-overview article > span { display: block; color: var(--muted); font-size: 10px; line-height: 1.6; }
.forecast-section-title { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 15px; }
.forecast-section-title h2 { font-size: 18px; letter-spacing: -.4px; line-height: 1.5; }
.forecast-section-title p { color: var(--muted); font-size: 11px; line-height: 1.7; margin-top: 3px; }
.forecast-section-title > span:not(.model-tag) { color: var(--muted); font-size: 10px; flex-shrink: 0; }
.forecast-competition-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.forecast-competition-tabs > button { margin: 0; min-height: 38px; }
.forecast-competition .analytics-panel-head { align-items: flex-start; }
.forecast-competition .analytics-panel-head > span { margin-top: 3px; }
.forecast-race { padding: 0 22px; }
.forecast-race-row { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr) minmax(0,.72fr) minmax(0,.8fr); gap: 19px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.forecast-race-row:not(.has-points) { grid-template-columns: minmax(0,1.35fr) minmax(0,1fr) minmax(0,1fr); }
.forecast-race-team { display: grid; grid-template-columns: 16px minmax(0,1fr); gap: 3px 9px; align-items: center; min-width: 0; }
.forecast-rank { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.forecast-race-team > a { font-size: 11px; }
.forecast-race-team > small { grid-column: 2; padding-left: 29px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.forecast-race-team .badge { width: 21px; height: 23px; font-size: 12px; }
.forecast-probability > div:first-child { display: flex; justify-content: space-between; gap: 6px; font-size: 10px; align-items: baseline; }
.forecast-probability > div:first-child span { color: var(--muted); font-size: 9px; }
.forecast-probability strong { font-size: 12px; font-variant-numeric: tabular-nums; }
.forecast-meter { height: 5px; background: var(--surface-soft); border-radius: 4px; overflow: hidden; margin-top: 7px; }
.forecast-meter > span { display: block; height: 100%; background: var(--accent-ink); border-radius: 4px; min-width: 0; }
.forecast-race-stat { min-width: 0; }
.forecast-race-stat small { display: block; color: var(--muted); font-size: 9px; line-height: 1.6; }
.forecast-race-stat strong { display: block; font-size: 12px; margin: 2px 0; font-variant-numeric: tabular-nums; }
.forecast-race-stat > span { display: block; color: var(--muted); font-size: 9px; line-height: 1.6; }
.forecast-range { height: 6px; background: var(--surface-soft); position: relative; border-radius: 3px; margin: 7px 0 5px; }
.forecast-range > span { position: absolute; top: 1px; height: 4px; min-width: 2px; background: var(--accent-ink); border-radius: 3px; opacity: .55; }
.forecast-range > i { position: absolute; width: 3px; height: 10px; top: -2px; transform: translateX(-50%); background: var(--ink); border-radius: 2px; }
.forecast-footnote { font-size: 10px; line-height: 1.8; color: var(--muted); padding: 14px 22px 17px; }
.forecast-method { border-top: 1px solid var(--line); padding: 15px 22px; color: var(--muted); font-size: 10px; line-height: 1.9; }
.forecast-method > summary { color: var(--ink); cursor: pointer; font-weight: 550; font-size: 11px; }
.forecast-method > p { margin-top: 11px; }
.forecast-method > a { margin-top: 13px; }
.forecast-method > summary:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 5px; border-radius: 2px; }
.forecast-filters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 15px 17px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; margin-bottom: 15px; }
.forecast-filters label { min-width: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.forecast-filters select { display: block; margin-top: 5px; color: var(--ink); background: var(--surface); width: 100%; min-width: 0; min-height: 39px; border: 1px solid var(--line); border-radius: 6px; padding: 8px 24px 8px 10px; font-size: 11px; text-overflow: ellipsis; }
.forecast-match-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; align-items: stretch; }
.forecast-match-card { min-width: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); padding: 15px 16px 0; overflow: hidden; }
.forecast-match-card.selected { border-color: var(--accent-ink); box-shadow: 0 0 0 1px var(--accent-ink); }
.forecast-card-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; color: var(--muted); font-size: 9px; line-height: 1.7; padding-bottom: 13px; }
.forecast-card-meta > strong { font-weight: 550; }
.forecast-card-meta > .is-live { color: var(--danger); }
.forecast-card-teams { display: grid; gap: 11px; }
.forecast-card-teams > div { display: flex; gap: 8px; align-items: center; }
.forecast-card-teams .badge { width: 23px; height: 25px; font-size: 13px; flex-shrink: 0; }
.forecast-card-teams span { font-size: 11px; line-height: 1.5; }
.forecast-card-teams strong { font-size: 14px; font-weight: 650; margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.forecast-split { height: 5px; margin-top: 16px; background: var(--surface-soft); border-radius: 3px; overflow: hidden; }
.forecast-split > span { display: block; height: 100%; background: var(--accent-ink); border-radius: 3px; }
.forecast-match-card > p { color: var(--muted); font-size: 9px; line-height: 1.7; min-height: 31px; padding: 9px 0; }
.forecast-open { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--accent-ink); font-size: 11px; font-weight: 550; background: transparent; border: 0; border-top: 1px solid var(--line); width: calc(100% + 32px); margin: 0 -16px; min-height: 43px; padding: 10px 16px; text-align: left; }
.forecast-open:hover { background: var(--surface-soft); }
.forecast-open > svg { width: 15px; height: 15px; }
.forecast-more { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 15px; padding-top: 17px; }
.forecast-more > span { color: var(--muted); font-size: 10px; }
.forecast-sample-note { color: var(--muted); font-size: 10px; line-height: 1.8; margin-top: 15px; }
.forecast-detail { scroll-margin-top: 22px; }
.forecast-detail .analytics-panel-head { align-items: flex-start; border-bottom: 1px solid var(--line); }
.forecast-detail .analytics-panel-head > a { flex-shrink: 0; font-size: 10px; margin-top: 4px; }
.forecast-detail-body { padding: 0 22px; }
.forecast-detail-body > .chance-panel { margin: 19px 0; padding: 0; border: 0; background: transparent; }
.forecast-detail-body > .chance-panel > p { max-width: 760px; }
.forecast-warning { display: flex; gap: 9px; padding: 12px 14px; background: var(--warning-bg); border: 1px solid var(--warning-border); border-radius: 7px; color: var(--warning-ink); font-size: 10px; line-height: 1.8; margin-top: 18px; }
.forecast-warning > svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.forecast-detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 23px; border-top: 1px solid var(--line); }
.forecast-detail-section { padding: 19px 0; min-width: 0; }
.forecast-detail-section h3 { font-size: 13px; font-weight: 600; line-height: 1.6; }
.forecast-detail-section > p { color: var(--muted); font-size: 10px; line-height: 1.85; margin-top: 5px; }
.forecast-detail-section > .forecast-unavailable { padding: 15px 0 7px; }
.forecast-regulation { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 18px; }
.forecast-regulation > div { min-width: 0; }
.forecast-regulation > div:nth-child(2) { text-align: center; }
.forecast-regulation > div:last-child { text-align: right; }
.forecast-regulation small { display: block; color: var(--muted); font-size: 9px; line-height: 1.6; }
.forecast-regulation strong { display: block; font-size: 19px; font-weight: 600; margin-top: 5px; }
.forecast-threeway { display: flex; gap: 2px; height: 7px; border-radius: 4px; overflow: hidden; margin-top: 12px; }
.forecast-threeway > span { background: var(--accent-ink); }
.forecast-threeway > i { background: var(--muted); }
.forecast-threeway > b { background: var(--ink); }
.forecast-goals { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: end; text-align: center; gap: 8px; margin-top: 15px; }
.forecast-goals small { display: block; color: var(--muted); font-size: 9px; line-height: 1.6; }
.forecast-goals strong { display: block; font-size: 26px; font-weight: 600; margin-top: 5px; }
.forecast-goals > span { font-size: 20px; color: var(--muted); padding-bottom: 3px; }
.forecast-goals-total { text-align: center; }
.forecast-scorelines { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.forecast-scoreline-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; margin: 15px 0 10px; }
.forecast-scoreline-grid > div { padding: 12px 9px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 7px; text-align: center; }
.forecast-scoreline-grid strong { display: block; font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; }
.forecast-scoreline-grid strong span { color: var(--muted); font-weight: 400; }
.forecast-scoreline-grid small { display: block; font-size: 10px; color: var(--accent-ink); margin-top: 4px; }
.forecast-evidence-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; margin-top: 16px; }
.forecast-evidence-box { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 8px; }
.forecast-evidence-box h4,.forecast-form h4 { margin: 0 0 11px; font-size: 11px; font-weight: 600; }
.forecast-evidence-box > p,.forecast-form > p { color: var(--muted); font-size: 10px; line-height: 1.8; }
.forecast-evidence-list { margin: 0; font-size: 10px; line-height: 1.8; }
.forecast-evidence-list > div { display: flex; justify-content: space-between; gap: 15px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.forecast-evidence-list > div:last-child { border-bottom: 0; }
.forecast-evidence-list dt { color: var(--muted); }
.forecast-evidence-list dd { margin: 0; flex-shrink: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.forecast-evidence-list + p { margin-top: 10px; }
.forecast-h2h { display: grid; gap: 4px; margin-top: 11px; }
.forecast-h2h a { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 10px; font-size: 9px; line-height: 1.8; }
.forecast-h2h a span { color: var(--muted); }
.forecast-h2h a strong { font-weight: 550; }
.forecast-h2h a:hover strong { color: var(--accent-ink); }
.forecast-recent-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-top: 18px; }
.forecast-form { min-width: 0; padding: 16px 17px; border-radius: 8px; background: var(--surface-soft); }
.forecast-form-results { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.forecast-form-results > a { display: inline-flex; align-items: center; justify-content: center; width: 29px; height: 29px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: var(--surface); font-size: 10px; font-weight: 650; }
.forecast-form-results > .won { color: var(--accent-ink); border-color: var(--accent-ink); }
.forecast-form-results > .lost { border-style: dashed; }
.forecast-form-numbers { display: flex; flex-wrap: wrap; gap: 8px 15px; color: var(--muted); font-size: 9px; margin-top: 9px; }
.forecast-form-numbers strong { font-size: 13px; color: var(--ink); font-weight: 600; margin-right: 3px; }
.forecast-detail-section > .forecast-footnote { padding: 12px 0 0; }
.forecast-pregame-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px 15px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.8; }
.forecast-pregame-note > strong { color: var(--ink); font-weight: 550; }
.forecast-detail-body > .forecast-method { margin: 0 -22px; }
.forecast-evaluation { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.forecast-evaluation-numbers { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin: 17px 0 10px; }
.forecast-evaluation-numbers small { display: block; font-size: 10px; }
.forecast-evaluation-numbers strong { display: block; font-size: 23px; color: var(--ink); font-weight: 600; }
.forecast-evaluation-numbers span { display: block; font-size: 10px; }
@media (max-width: 1220px) {
  .forecast-match-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .forecast-overview article { padding: 17px 16px; }
  .forecast-overview article:first-child strong { font-size: 16px; }
  .forecast-race-row { gap: 14px; grid-template-columns: minmax(0,1.2fr) minmax(0,.9fr) minmax(0,.75fr) minmax(0,.9fr); }
}
@media (max-width: 900px) {
  .forecast-overview { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .forecast-overview article:nth-child(2) { border-right: 0; }
  .forecast-overview article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .forecast-race-row { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px 17px; padding: 13px 0; }
  .forecast-race-team { grid-column: 1 / -1; display: flex; flex-wrap: wrap; }
  .forecast-race-team > small { padding-left: 0; margin-left: auto; }
  .forecast-race-row:not(.has-points) { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .forecast-race-row:not(.has-points) .forecast-race-team { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
  .forecast-dashboard { gap: 21px; }
  .forecast-dashboard > .analytics-note { margin: -7px 0 -4px; }
  .forecast-overview article { padding: 14px; }
  .forecast-overview small { font-size: 8px; letter-spacing: .3px; }
  .forecast-overview strong { font-size: 21px; margin-top: 7px; }
  .forecast-overview article:first-child strong { font-size: 15px; }
  .forecast-overview article > span { font-size: 9px; }
  .forecast-section-title { align-items: flex-start; gap: 9px; }
  .forecast-section-title > .model-tag { display: none; }
  .forecast-section-title h2 { font-size: 17px; }
  .forecast-section-title p { font-size: 10px; }
  .forecast-competition-tabs > button { min-height: 39px; padding: 10px 12px; font-size: 10px; }
  .forecast-competition .analytics-panel-head { padding: 17px 16px 13px; }
  .forecast-competition .analytics-panel-head > .model-tag { display: none; }
  .forecast-race { padding: 0 16px; }
  .forecast-race-row { gap: 10px; }
  .forecast-race-team > a { font-size: 11px; }
  .forecast-race-team > small { font-size: 8px; }
  .forecast-probability strong,.forecast-race-stat strong { font-size: 11px; }
  .forecast-probability > div:first-child span,.forecast-race-stat small { font-size: 8px; }
  .forecast-race-stat > span { font-size: 8px; }
  .forecast-footnote,.forecast-method { padding-left: 16px; padding-right: 16px; }
  .forecast-filters { padding: 13px; gap: 10px; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .forecast-filters label:last-child { grid-column: 1 / -1; }
  .forecast-filters select { font-size: 11px; }
  .forecast-match-grid { gap: 11px; }
  .forecast-match-card { padding: 13px 13px 0; }
  .forecast-card-teams > div { gap: 6px; }
  .forecast-card-teams span { font-size: 10px; }
  .forecast-card-teams strong { font-size: 13px; }
  .forecast-card-teams .badge { width: 20px; height: 22px; font-size: 11px; }
  .forecast-open { width: calc(100% + 26px); margin: 0 -13px; padding-left: 13px; padding-right: 13px; font-size: 10px; }
  .forecast-detail .analytics-panel-head { padding: 17px 16px; flex-wrap: wrap; }
  .forecast-detail .analytics-panel-head h2 { font-size: 15px; }
  .forecast-detail-body { padding: 0 16px; }
  .forecast-detail-grid,.forecast-evidence-grid,.forecast-recent-form { grid-template-columns: minmax(0,1fr); gap: 0; }
  .forecast-detail-grid > .forecast-detail-section + .forecast-detail-section { border-top: 1px solid var(--line); }
  .forecast-scoreline-grid { gap: 6px; }
  .forecast-scoreline-grid > div { padding: 10px 3px; }
  .forecast-scoreline-grid strong { font-size: 17px; }
  .forecast-scoreline-grid small { font-size: 9px; }
  .forecast-evidence-grid,.forecast-recent-form { gap: 12px; }
  .forecast-evidence-box,.forecast-form { padding: 14px; }
  .forecast-evaluation-numbers { gap: 12px; }
  .forecast-evaluation-numbers small { font-size: 9px; }
  .forecast-evaluation-numbers strong { font-size: 20px; }
  .forecast-detail-body > .forecast-method { margin: 0 -16px; }
}
@media (max-width: 480px) {
  .forecast-match-grid { grid-template-columns: minmax(0,1fr); }
  .forecast-card-teams span { font-size: 12px; }
  .forecast-card-teams strong { font-size: 16px; }
  .forecast-card-teams .badge { width: 25px; height: 27px; font-size: 13px; }
  .forecast-card-meta { font-size: 9px; }
  .forecast-match-card > p { min-height: 0; font-size: 10px; }
  .forecast-open { font-size: 11px; min-height: 44px; }
  .forecast-race-row { gap: 10px 8px; }
  .forecast-race-team > small { margin-left: 0; }
  .forecast-evaluation-numbers { grid-template-columns: minmax(0,1fr); }
  .forecast-evaluation-numbers > div { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .forecast-evaluation-numbers small { margin-right: auto; }
}
