.forecast-lab { padding-top: 32px; }
.lab-topline { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.lab-back { color: var(--muted); text-decoration: none; font-family: var(--mono); font-size: .78rem; }
.lab-badge { display: inline-flex; gap: 9px; align-items: center; color: var(--accent-soft); font-family: var(--mono); font-size: .7rem; }
.lab-badge > span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 15px #00ed6450; }
.lab-heading { padding: 48px 0 35px; }
.lab-kicker { font-family: var(--mono); color: var(--accent-soft); font-size: .72rem; letter-spacing: .04em; margin-bottom: 16px; }
.lab-heading h1 { font-size: clamp(2.5rem, 5.4vw, 4.3rem); line-height: 1.08; letter-spacing: -.055em; margin-bottom: 22px; }
.lab-heading h1 > span { color: var(--accent); }
.lab-heading > p:last-child { color: var(--muted); max-width: 65ch; line-height: 1.7; margin-bottom: 0; }
.matchup { background: var(--surface); border: 1px solid #39483f; border-radius: 16px; overflow: hidden; }
.matchup-topline { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 18px 28px; border-bottom: 1px solid #ffffff0c; background: #111a16; }
.matchup-topline h2 { margin: 0; font-size: .8rem; letter-spacing: 0; color: var(--accent-soft); }
.matchup-topline > span { font-size: .72rem; font-family: var(--mono); color: #acb8b0; }
.matchup-field { position: relative; display: grid; grid-template-columns: 1fr 90px 1fr; align-items: center; isolation: isolate; min-height: 310px; padding: 22px 6% 28px; background: radial-gradient(ellipse at 22% 65%,#0076b620,transparent 45%),radial-gradient(ellipse at 78% 65%,#ffb61212,transparent 45%),#10151a; }
.matchup-field::before { content: ''; position: absolute; z-index: -1; inset: 0; background: repeating-linear-gradient(90deg,transparent,transparent calc(12.5% - 1px),#ffffff08 calc(12.5% - 1px),#ffffff08 12.5%); }
.matchup-field::after { content: ''; position: absolute; z-index: -1; inset: 35% 7%; border-top: 1px dashed #ffffff14; border-bottom: 1px dashed #ffffff14; }
.field-lines { position: absolute; inset: 9px 9% auto; display: flex; justify-content: space-between; color: #ffffff18; font: .65rem var(--mono); z-index: -1; }
.team { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.team-location { color: var(--muted); font: .76rem var(--mono); margin: 0 0 3px; }
.team img { object-fit: contain; width: 158px; height: 158px; filter: drop-shadow(0 12px 24px #0005); }
.team h3 { margin: 2px 0 8px; text-transform: uppercase; letter-spacing: -.045em; font-size: clamp(1.6rem,3vw,2.35rem); }
.team-abbr { font: .65rem var(--mono); color: var(--muted); letter-spacing: .16em; }
.matchup-divider { display: flex; flex-direction: column; align-items: center; gap: 18px; color: #909c96; font: italic 1.05rem var(--mono); }
.field-center-dot { width: 6px; height: 6px; border: 1px solid #5b7161; border-radius: 50%; }
.forecast-controls { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 32px; border-top: 1px solid #ffffff0c; }
.control-label { margin: 0 0 5px; font-family: var(--mono); font-weight: 700; font-size: 1rem; }
.control-help { color: var(--muted); font-size: .8rem; line-height: 1.6; margin: 0; }
.run-forecast { flex-shrink: 0; display: inline-flex; justify-content: center; align-items: center; gap: 10px; border: 0; border-radius: 6px; background: var(--accent); color: #05120b; padding: 16px 24px; min-height: 56px; font: 700 .9rem var(--mono); cursor: pointer; box-shadow: 0 0 30px #00ed6412; transition: background .18s,transform .18s; }
.run-forecast:hover:not(:disabled) { background: #62ff9e; transform: translateY(-2px); }
.run-forecast:disabled { cursor: wait; opacity: .65; }
.run-forecast[aria-expanded="true"] { color: var(--accent-soft); background: #203329; }
.forecast-status:empty { display: none; }
.forecast-status { padding: 0 32px 18px; margin: 0; color: var(--accent-soft); font: .76rem var(--mono); }
.no-script { margin: 0; padding: 0 32px 20px; color: var(--muted); }
.forecast-result[hidden] { display: none; }
.forecast-result { padding: 28px 32px 0; border-top: 1px solid #37493d; background: linear-gradient(155deg,#14221a 0,#10181a 80%); animation: reveal .4s ease both; }
.result-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.result-heading .lab-kicker { margin-bottom: 9px; color: #b7c3bc; }
.result-heading h3 { font-size: clamp(1.3rem,3vw,1.8rem); margin: 0; }
.result-heading h3 span { color: var(--accent); }
.result-mark { font: 2.6rem var(--mono); color: var(--accent); }
.probability-labels { display: flex; justify-content: space-between; margin-top: 30px; }
.probability-labels > div { display: flex; flex-direction: column; }
.probability-labels > div:last-child { text-align: right; }
.probability-labels span { font-size: .8rem; color: var(--muted); }
.probability-labels strong { font-family: var(--mono); font-size: clamp(2rem,5vw,3rem); line-height: 1.6; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.probability-labels small { font-size: .55em; color: var(--muted); }
.probability-track { display: flex; gap: 5px; height: 12px; overflow: hidden; border-radius: 3px; }
.probability-det { width: 62%; background: #50b3ec; }
.probability-gb { width: 38%; background: #e9be5e; }
.result-caption { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; font: .65rem var(--mono); color: var(--muted); margin: 12px 0 23px; }
.result-context { color: #c2ccc6; font-size: .87rem; max-width: 85ch; margin-bottom: 20px; }
.forecast-details { border-top: 1px solid #33463a; }
.forecast-details summary { font: .82rem var(--mono); cursor: pointer; padding: 17px 0; color: var(--accent-soft); }
.forecast-details > div { max-width: 85ch; font-size: .85rem; color: var(--muted); padding-bottom: 18px; }
.forecast-details p { margin-bottom: 12px; }
.demo-record-note { display: flex; gap: 9px; align-items: center; margin: 0; padding: 17px 0 20px; border-top: 1px solid #33463a; font-size: .75rem; color: var(--muted); }
.demo-record-note > span { color: var(--accent); }
.record-section { margin-top: 64px; }
.section-label { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 25px; }
.section-label .lab-kicker { margin-bottom: 12px; }
.section-label h2 { margin: 0; font-size: clamp(1.6rem,3vw,2rem); }
.record-status { font: .7rem var(--mono); color: var(--muted); }
.record-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.record-metrics > div { padding: 26px 24px; border-right: 1px solid var(--rule); }
.record-metrics > div:first-child { padding-left: 0; }
.record-metrics > div:last-child { border-right: 0; }
.record-metrics dt { font: .75rem var(--mono); color: var(--muted); }
.record-metrics dd { font: 2.8rem/1.6 var(--mono); margin: 6px 0 0; letter-spacing: -.05em; }
.record-metrics dd span { color: #818196; }
.record-metrics .metric-note { margin: 0; font: .73rem/1.7 var(--sans); letter-spacing: 0; color: var(--muted); }
.forecast-ledger { margin-top: 28px; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.ledger-columns { display: grid; grid-template-columns: 1.5fr 1fr 1fr .6fr; gap: 14px; padding: 15px 24px; background: var(--surface); color: var(--muted); font: .7rem var(--mono); border-bottom: 1px solid var(--rule); }
.ledger-empty { display: flex; align-items: center; justify-content: center; gap: 25px; padding: 38px 32px; }
.ledger-empty svg { flex-shrink: 0; color: var(--accent-soft); }
.ledger-empty h3 { font-size: .92rem; margin: 0 0 8px; }
.ledger-empty p { max-width: 65ch; font-size: .85rem; color: var(--muted); margin: 0; }
.record-footnote { color: var(--muted); font-size: .75rem; margin: 16px 0 0; max-width: 90ch; }
.lab-roadmap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 65px; margin-top: 70px; padding: 42px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.lab-roadmap h2 { margin: 0 0 22px; font-size: 1.75rem; }
.lab-roadmap a { font: .8rem var(--mono); text-decoration: none; }
.lab-roadmap ol { list-style: none; margin: 0; padding: 0; }
.lab-roadmap li { display: flex; gap: 23px; padding-bottom: 24px; }
.lab-roadmap li:last-child { padding-bottom: 0; }
.step-number { color: var(--accent-soft); font: .8rem var(--mono); padding-top: 3px; }
.lab-roadmap h3 { margin: 0 0 7px; font-size: .9rem; }
.lab-roadmap li p { color: var(--muted); font-size: .82rem; margin: 0; }
.lab-provenance { color: var(--subtle); font-size: .7rem; margin: 22px 0 0; max-width: 105ch; }
.forecast-lab + .site-footer { margin-top: 60px; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
  .forecast-lab { padding-top: 24px; }
  .lab-heading { padding-top: 35px; }
  .lab-heading h1 { font-size: clamp(2.25rem,7.8vw,3.5rem); }
  .lab-heading > p:last-child { font-size: .9rem; }
  .desktop-break { display: none; }
  .matchup-topline { padding: 16px 20px; }
  .matchup-field { grid-template-columns: 1fr 35px 1fr; padding: 28px 12px; min-height: 260px; }
  .team img { width: 122px; height: 122px; }
  .team h3 { font-size: clamp(1.35rem,5vw,1.9rem); }
  .forecast-controls { align-items: stretch; flex-direction: column; padding: 23px 22px; gap: 18px; }
  .forecast-controls button { width: 100%; }
  .forecast-status { padding-inline: 22px; }
  .forecast-result { padding: 24px 22px 0; }
  .result-mark { display: none; }
  .record-section { margin-top: 48px; }
  .section-label { align-items: start; flex-direction: column; gap: 12px; }
  .record-metrics > div { padding: 20px 14px; }
  .record-metrics dt { font-size: .65rem; line-height: 1.6; }
  .record-metrics dd { font-size: 2rem; }
  .record-metrics .metric-note { font-size: .67rem; }
  .ledger-columns { display: none; }
  .ledger-empty { padding: 24px 22px; gap: 18px; align-items: start; }
  .ledger-empty svg { width: 25px; }
  .lab-roadmap { grid-template-columns: 1fr; gap: 32px; margin-top: 48px; padding: 32px 0; }
  .lab-roadmap h2 br { display: none; }
}
@media (max-width: 380px) {
  .lab-back { font-size: .7rem; }
  .lab-heading h1 { font-size: 2.2rem; }
  .matchup-topline > span { font-size: .65rem; }
  .team img { width: 100px; height: 100px; }
  .team-location { font-size: .65rem; }
  .team h3 { font-size: 1.25rem; }
  .matchup-field { min-height: 230px; }
  .matchup-divider { font-size: .8rem; }
  .record-metrics { grid-template-columns: 1fr; }
  .record-metrics > div, .record-metrics > div:first-child { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .record-metrics > div:last-child { border-bottom: 0; }
  .record-metrics dt { font-size: .75rem; }
  .record-metrics dd { margin: 0; }
  .record-metrics .metric-note { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) { .forecast-result { animation: none; } .run-forecast { transition: none; } }
