#athleteHistory { width:min(1100px,94vw); max-width:1100px; max-height:92dvh; padding:24px; overflow:auto; color:var(--ink); background:var(--surface); border:1px solid var(--line); border-radius:8px; }
#athleteHistory::backdrop { background:#000a; }
.history-heading { display:flex; align-items:start; justify-content:space-between; gap:16px; margin-bottom:20px; }
.history-heading h2 { font-size:22px; margin:0 0 6px; letter-spacing:0; }
#historyScope,#historyCoverage,#historyStatus { color:var(--muted); font-size:13px; line-height:1.6; }
#historyBody h3 { font-size:15px; margin:24px 0 10px; letter-spacing:0; }
.athlete-history-chart { width:100%; min-height:100px; }
.athlete-history-chart svg { display:block; }
.history-trend-key { display:flex; align-items:center; gap:8px; margin:0 0 16px; color:var(--muted); font-size:12px; }
.history-trend-key span { width:24px; flex-shrink:0; border-top:2px dashed var(--ink); }
.athlete-history-chart circle:focus { outline:none; stroke:#fff; stroke-width:2px; }
.history-empty { padding:30px 12px; color:var(--muted); }
#athleteHistory table { min-width:600px; width:100%; font-size:13px; }
#athleteHistory summary { padding:16px 0; cursor:pointer; }
#historyTooltip { position:fixed; z-index:5; width:260px; pointer-events:none; background:#242b2d; color:#fff; padding:12px; border:1px solid var(--line); border-radius:4px; white-space:pre-line; font-size:12px; line-height:1.5; }
.athlete-history-link { border:0; background:none; padding:0; color:var(--accent); text-align:left; font:inherit; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
@media(max-width:700px){ #athleteHistory { width:calc(100vw - 16px); max-width:none; padding:16px; } .history-heading h2 { font-size:19px; } }

.history-average-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.history-average-card{padding:16px;border:1px solid var(--line);border-radius:6px;background:var(--raised,var(--surface))}.history-average-card span,.history-average-card small{display:block;color:var(--muted);font-size:12px}.history-average-card strong{display:block;margin:10px 0;color:var(--accent);font:500 24px var(--mono,monospace)}.history-average-note{font-size:12px;color:var(--muted);line-height:1.6}
@media(max-width:700px){.history-average-cards{gap:8px}.history-average-card{padding:12px}.history-average-card strong{font-size:18px;margin:6px 0}.history-average-card small{font-size:11px}}
