#af-overview { --ev-grid:#ECEEF0; --ev-ref:#6A717A; }
.af-controls { display:flex; flex-wrap:wrap; align-items:flex-start; gap:18px 26px; padding:16px 0 18px; border-bottom:1px solid var(--line); }
.af-control { display:flex; flex-direction:column; gap:6px; font-size:12px; color:var(--muted); }
.af-label b { color:var(--ink); font-weight:650; margin-left:4px; }
.af-control select { height:32px; border:1px solid var(--line); border-radius:var(--pill); padding:0 10px; background:#fff; font:inherit; color:var(--ink); min-width:150px; }
.af-chips, .af-presets { display:flex; gap:5px; flex-wrap:wrap; }
.af-presets { margin-top:6px; }
.af-range-control { width:min(360px, 100%); }
/* Two range inputs share one track; only the thumbs take pointer events. */
.af-range { position:relative; height:22px; }
.af-range-track { position:absolute; left:8px; right:8px; top:9px; height:4px; border-radius:2px; background:var(--soft); }
.af-range-fill { position:absolute; top:0; height:4px; border-radius:2px; background:var(--accent); }
.af-range input[type=range] { position:absolute; inset:0; width:100%; margin:0; background:none; pointer-events:none; -webkit-appearance:none; appearance:none; }
.af-range input[type=range]::-webkit-slider-runnable-track { background:none; height:22px; }
.af-range input[type=range]::-moz-range-track { background:none; }
.af-range input[type=range]::-webkit-slider-thumb { -webkit-appearance:none; pointer-events:auto; width:16px; height:16px; margin-top:3px; border-radius:50%; background:#fff; border:2px solid var(--accent); cursor:grab; }
.af-range input[type=range]::-moz-range-thumb { pointer-events:auto; width:12px; height:12px; border-radius:50%; background:#fff; border:2px solid var(--accent); cursor:grab; }
.af-range input[type=range]:focus-visible::-webkit-slider-thumb { outline:2px solid var(--accent); outline-offset:2px; }
.af-range-ticks { display:flex; justify-content:space-between; padding:0 2px; font-size:10px; color:var(--muted); font-variant-numeric:tabular-nums; }
.af-plot-tall svg { max-height:340px; }
#af-overview .ev-plot .series.af-latest { stroke-width:3; }
#af-overview .ev-plot .series.af-actual { stroke-width:3.5; }
#af-overview .ev-plot .af-dot { stroke:#fff; stroke-width:2; }
#af-accuracy-table td span.up { color:#1c5cab; }
#af-accuracy-table td span.down { color:var(--amber); }
#af-accuracy-section .tess-table-wrap { margin-top:10px; }
#af-overview .ev-plot .af-x { fill:var(--muted); font-size:11px; }
#af-overview .ev-plot .af-net { stroke:var(--ink); stroke-width:2; }
#af-overview .ev-plot .af-seg { cursor:default; }
#af-overview .ev-plot .af-seg:hover { opacity:.85; }
#af-overview .ev-plot .marker { stroke:var(--ev-ref); stroke-width:1.25; stroke-dasharray:4 3; }
.af-after { margin:6px 0 0; }
.af-table td { font-variant-numeric:tabular-nums; white-space:nowrap; }
.af-table td small { color:var(--muted); font-size:11px; }
.af-table td small.up { color:#1c5cab; }
.af-table td small.down { color:var(--amber); }
.af-table td.af-missing { color:var(--muted); }
.af-table tr.af-total th, .af-table tr.af-total td { font-weight:700; border-top:2px solid var(--line); }
.af-table tr.af-outside th, .af-table tr.af-outside td { color:var(--muted); }
.af-derived-key { color:var(--amber); font-weight:700; margin-left:1px; }
.af-notes { margin:6px 0 10px; padding-left:20px; font-size:12px; line-height:1.55; max-width:900px; }
.af-notes li { margin-bottom:6px; }
.af-notes .af-date { color:var(--muted); }
.af-notes a { color:var(--accent); }
@media (max-width:760px) { .af-controls { gap:14px; } .af-range-control { width:100%; } }
