.history-back{color:#e2edf3;font-size:.85rem;text-underline-offset:5px;white-space:nowrap}.history-back:hover{color:var(--gold)}
.history-filters{grid-template-columns:minmax(0,1fr) auto;gap:18px 20px}.history-filters .team-filter{grid-column:1;grid-row:1}.history-filters fieldset{display:grid;grid-column:1/-1;grid-template-columns:minmax(90px,1fr) minmax(0,2fr);gap:12px;margin:0;padding:0;border:0;min-width:0}.history-filters legend{font-size:.8rem;font-weight:700;color:var(--ink);margin-bottom:5px}.history-filters fieldset label{font-size:.7rem}.history-heading{margin:4px 0 16px}.history-heading h2{font-size:1.7rem}.history-heading p{margin-block:0 4px}.history-filters button{grid-column:2;grid-row:1}
.history-legend{display:flex;gap:20px;font-size:.78rem}.history-legend span{display:flex;align-items:center;gap:7px}.history-legend i{display:inline-block;width:22px;border-top:3px solid}.history-legend .off-key{border-color:var(--blue)}.history-legend .def-key{border-color:#ba7a12}.history-legend .mean-key{border-color:var(--navy);border-top-style:dashed}
.history-svg{display:block;width:100%;min-width:640px;height:auto;max-height:440px}.history-svg text{font:12px 'Segoe UI',Arial,sans-serif;fill:var(--muted)}.history-svg .plot-line{fill:none;stroke-width:2.7;stroke-linejoin:round;stroke-linecap:round}.history-svg .point-hit{fill:transparent;stroke:none;cursor:pointer}.history-svg .point-marker{stroke:white;stroke-width:1.5;pointer-events:none}.history-svg .plot-point:hover .point-marker,.history-svg .plot-point:focus .point-marker,.history-svg .plot-point.active .point-marker{stroke:var(--gold);stroke-width:3;r:6}.history-svg .plot-point:focus{outline:none}.history-svg .reset-line{stroke:#c7d3dc;stroke-dasharray:4 5}.history-readout{padding:14px 16px;background:#f1f6f9;border-left:3px solid var(--gold);border-radius:4px;min-height:112px;font-size:.82rem;margin-top:12px}.history-readout strong{display:block;margin-bottom:6px}.readout-values{display:flex;flex-wrap:wrap;gap:8px 26px}.readout-values span{display:block}.history-readout small{color:var(--muted);display:block;margin-top:5px}.history-results{margin-top:28px}.history-game-list{max-height:510px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:3px 8px 3px 3px}.history-game-list .game{transition:border-color .12s,box-shadow .12s}.history-game-list .game.active-game{border-color:#ad7513;box-shadow:0 0 0 2px var(--gold)}.history-game-list .selected-team{background:#f0f7fa}.history-game-list .game table{min-width:940px}.history-game-list .team-cell{font-weight:650;min-width:150px}.history-game-list .post .change{white-space:nowrap}.history-chart-panel{padding-bottom:18px}.history-stat-value{font-variant-numeric:tabular-nums}.history-game-list .game:last-child{margin-bottom:0}

@media(max-width:600px){.history-filters{gap:16px 10px}.history-filters fieldset{grid-template-columns:90px 1fr}.history-filters button{font-size:.75rem;padding-inline:8px}.history-legend{gap:14px;margin-top:8px}.history-readout{min-height:160px}.readout-values{gap:8px 18px}.history-game-list{max-height:420px}.history-svg{min-width:600px}.history-back{font-size:.8rem}}
@media(prefers-reduced-motion:reduce){.history-game-list .game{transition:none}}
.history-game-list th[scope=row]{font-size:.9rem;text-transform:none;letter-spacing:0;background:transparent;color:var(--ink)}
.history-increases{margin-top:32px}.increases-filters{grid-template-columns:1fr;margin-top:16px}.increases-filters>label{max-width:200px}.increases-scroll{overflow-x:auto;padding:3px}.increases-tables{display:grid;grid-template-columns:repeat(3,minmax(290px,1fr));gap:18px;align-items:start}.increases-tables:empty{display:none}.increase-panel{padding:16px 12px}.increase-panel h3{font-size:1rem;margin:0 0 10px}.increase-panel.off{border-top:3px solid var(--blue)}.increase-panel.def{border-top:3px solid #ba7a12}.increase-panel.mean{border-top:3px solid var(--navy)}.increase-panel td,.increase-panel th{padding:8px 5px}.increase-panel td:first-child{color:var(--muted);width:28px}.increase-panel .team-button{line-height:1.25}.increase-panel .increase-value{color:var(--green);font-weight:700;white-space:nowrap}.increase-panel .rating-endpoints{display:block;color:var(--muted);font-weight:400;font-size:.65rem;white-space:nowrap}.increase-panel .num{width:100px}.increase-panel tbody tr:hover{background:#f0f7fa}.increase-panel .change-empty{min-height:64px}.increases-scroll:focus-visible{outline:3px solid #a96500;outline-offset:3px}
