.history-view{padding-bottom:55px}
.history-hero{display:flex;justify-content:space-between;gap:28px;align-items:end;border-bottom:2px solid #20272b;padding:33px 0 35px;margin-bottom:26px}
.history-hero h1{font:900 clamp(60px,8vw,108px)/.88 var(--display);letter-spacing:-.02em;color:#142027;margin:13px 0 13px}
.history-hero h1 span{color:#ed5628}
.history-hero p{color:#6b7779;font-size:13px;line-height:1.6;max-width:680px;margin:0}
.history-model-status{font:800 9px/1.6 var(--body);color:#778689;letter-spacing:.055em;text-align:right;max-width:230px}
.history-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:24px}
.history-summary>div{padding:22px 19px;background:#13232a;color:#f6f7f1;display:flex;flex-direction:column;gap:6px;min-width:0}
.history-summary small{font:800 9px var(--body);letter-spacing:.11em;color:#9ab3be}
.history-summary strong{font:900 clamp(31px,3.7vw,56px)/1 var(--display);font-variant-numeric:tabular-nums}
.history-summary span{font-size:10px;color:#c1cfd0}
.history-list{background:#fff;border:1px solid #dfe2dc;padding:26px 28px}
.history-list-head{display:flex;align-items:end;justify-content:space-between;gap:25px;border-bottom:2px solid #1a252c;padding-bottom:18px}
.history-list-head h2{font:900 42px/.95 var(--display);color:#17242a;margin:7px 0 0}
.history-list-head label{display:flex;align-items:center;gap:14px;font:800 9px var(--body);letter-spacing:.1em;color:#687679}
.history-list-head label[hidden],.history-date-links[hidden]{display:none!important}
.history-list-head input{background:#f6f8f7;color:#17242a;border:1px solid #cbd5d1;padding:10px 12px;font:700 12px var(--body)}
.history-date-links{display:flex;gap:9px;flex-wrap:wrap;margin:14px 0 17px}
.history-date-links button{font:800 11px var(--body);border:1px solid #d2dad7;background:#f4f6f3;color:#46565d;padding:8px 13px}
.history-date-links button.active,.history-date-links button:hover{background:#e95928;color:#fff;border-color:#e95928}
.history-games{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.history-game{background:#f8faf8;border:1px solid #dae1dc;min-width:0;padding:18px 18px 14px;border-top:4px solid #b7c4c6}
.history-game.winner-correct{border-top-color:#239b74}
.history-game.winner-wrong{border-top-color:#db613e}
.history-game.history-unrecorded{background:#fcfcfb;border-top-color:#d9a36a}
.history-game.history-unrecorded .history-verdict{color:#b06d2e}
.history-game-top,.history-game-bottom{display:flex;justify-content:space-between;gap:12px;align-items:center;font:800 9px/1.4 var(--body);letter-spacing:.03em;color:#839194}
.history-game-top .history-verdict{color:#52656e;text-align:right}
.history-game.winner-correct .history-verdict{color:#09815b}
.history-game.winner-wrong .history-verdict{color:#c94726}
.history-game-match{display:flex;align-items:center;gap:12px;padding:12px 0 14px;border-bottom:1px solid #d8dfdc}
.history-game-match>div{display:flex;flex-direction:column}
.history-game-match small{font:800 8px var(--body);color:#8f9a9b;letter-spacing:.13em}
.history-game-match strong{font:900 40px/1 var(--display);color:#1d2c30}
.history-game-match>span{font:900 16px var(--display);color:#adb9b7}
.history-score-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px 10px;padding-top:12px}
.history-score-row span{font:800 9px var(--body);color:#78888a;letter-spacing:.08em}
.history-score-row strong{font:900 30px/1 var(--display);color:#1c2c31;font-variant-numeric:tabular-nums}
.history-score-row small{grid-column:1/-1;color:#607274;font:700 10px var(--body)}
.history-score-row.actual strong{color:#df5324}
.history-game-bottom{border-top:1px solid #d8dfdc;margin-top:16px;padding-top:12px}
.history-method{font:500 11px/1.7 var(--body);color:#718084;margin:20px 0 0}
.history-empty{grid-column:1/-1;padding:55px 20px;text-align:center;color:#7a898d;background:#f7f9f7;font-size:12px}
.history-empty strong{display:block;font:900 26px var(--display);color:#283b41;margin-bottom:9px}
.history-empty p{max-width:480px;margin:auto}
@media(max-width:850px){.history-summary{grid-template-columns:repeat(2,1fr)}.history-games{grid-template-columns:1fr}.history-hero{flex-direction:column;align-items:start}.history-model-status{text-align:left;max-width:none}}
@media(max-width:550px){.history-list{padding:17px 13px}.history-list-head{flex-direction:column;align-items:start}.history-summary{gap:7px}.history-summary>div{padding:15px 12px}.history-hero{padding-top:24px}.topbar{height:auto;min-height:69px;flex-wrap:wrap;padding:12px 0;gap:11px}.nav-pills{width:100%;gap:10px;justify-content:space-between}.nav-pills>a:not(.nav-doc){display:inline-block;font-size:9px}}

/* Model Notes: readable overview first, research details by choice. */
.notes-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0 28px}
.notes-overview article{padding:29px 29px 32px;border:1px solid #d8deda;background:#fff;min-width:0}
.notes-overview article>span{font:800 10px/1.2 var(--body);color:#d95729;letter-spacing:.1em}
.notes-overview h2{font:900 clamp(23px,2.7vw,33px)/1.07 var(--display);letter-spacing:-.012em;color:#1b292e;margin:18px 0 10px}
.notes-overview p{font:500 13px/1.75 var(--body);color:#657578;margin:0;max-width:520px}
.notes-technical{border:1px solid #cbd4cf;background:#f5f7f4;margin:16px 0 40px}
.notes-technical>summary{display:flex;align-items:center;gap:16px;list-style:none;cursor:pointer;padding:22px 24px;color:#1d2d32}
.notes-technical>summary::-webkit-details-marker{display:none}
.notes-technical>summary>span:first-child{font:800 9px var(--body);letter-spacing:.1em;color:#d95729}
.notes-technical>summary strong{font:800 15px var(--body)}
.notes-expand{margin-left:auto;font:900 24px/1 var(--display);color:#d95729}
.notes-technical[open] .notes-expand{transform:rotate(45deg)}
.notes-technical-inner{padding:1px 25px 22px;border-top:1px solid #dce2dd}
.notes-glossary{font:500 12px/1.65 var(--body);color:#5a6b72;padding:15px 2px 1px;max-width:900px}
@media(max-width:760px){.notes-overview{grid-template-columns:1fr}.notes-overview article{padding:22px}.notes-technical>summary{flex-wrap:wrap;padding:17px}.notes-technical-inner{padding:1px 13px 20px}}

/* Forecast replay's quarter scoring, kept consistent with the possession path. */
.quarter-breakdown{background:#0f2029;border:1px solid #2c4852;border-radius:7px;margin:18px 0 21px;padding:18px 21px;color:#edf2f2}
.quarter-breakdown:empty{display:none}
.quarter-breakdown-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:7px 20px;margin-bottom:14px}
.quarter-breakdown-header strong{font:900 11px var(--body);letter-spacing:.11em;color:#65dbc0}
.quarter-breakdown-header span{font:600 10px/1.5 var(--body);color:#a5bdc5}
.quarter-table-scroll{overflow-x:auto}
.quarter-breakdown table{width:100%;border-collapse:collapse;text-align:center;font-variant-numeric:tabular-nums}
.quarter-breakdown th,.quarter-breakdown td{padding:10px 9px;border-bottom:1px solid #2a424b;font:800 13px var(--body)}
.quarter-breakdown thead th{font-size:9px;letter-spacing:.09em;color:#9bb6bc}
.quarter-breakdown tr>th:first-child{text-align:left;color:#f5f7f2}
.quarter-breakdown td.quarter-total{font:900 19px var(--display);color:#fff}
.quarter-breakdown tbody tr:last-child th,.quarter-breakdown tbody tr:last-child td{border-bottom:0}
.forecast-insights{grid-template-columns:repeat(2,minmax(0,1fr))}
.history-summary strong{overflow-wrap:anywhere}
.history-reconstructed{border-top:4px solid #9b6dcd;}
.history-reconstructed .history-verdict{color:#8651a9;}
