/* Scoped, bounded SVG/DOM rendering. No timers for drawing or auto polling. */
.storage-history{--storage-blue:#8db6ea;--storage-muted:#a2a8b2;--storage-border:#30343c;color:var(--text,#e3e5e8);font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;min-width:0}
.storage-history *{box-sizing:border-box}.storage-history p{margin:7px 0;overflow-wrap:anywhere}.storage-history h3{font-size:19px;margin:0 0 5px}.storage-muted,.storage-history small{color:var(--storage-muted);font-size:12px}.storage-heading,.storage-toolbar{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap}.storage-heading{align-items:flex-start}.storage-toolbar{margin:18px 0 10px;justify-content:flex-start}.storage-toolbar label{display:grid;gap:5px;margin:0;flex:1;min-width:180px;max-width:440px;font-size:12px;color:var(--storage-muted)}
.storage-history button,.storage-history select{font:inherit;background:#1c1f24;color:#e3e5e8;border:1px solid var(--storage-border);border-radius:6px;padding:8px 12px;min-height:42px;cursor:pointer;max-width:100%}.storage-history select{width:100%;min-width:0}.storage-history button:hover{background:#272c33}.storage-history button:disabled,.storage-history select:disabled{opacity:.6;cursor:default}.storage-history :focus-visible{outline:2px solid var(--storage-blue);outline-offset:3px}.storage-periods{display:flex;gap:5px;align-self:flex-end}.storage-history [aria-pressed=true]{border-color:#668bbd;background:#202b39;color:#afd0fa}.storage-toolbar>button{align-self:flex-end}.storage-status{font-size:12px;min-height:24px;color:var(--storage-muted)}.storage-stale .storage-status{color:var(--amber,#dfbc75)}.storage-stale .storage-chart{opacity:.65}
.storage-legend{display:flex;flex-wrap:wrap;gap:6px;margin:15px 0}.storage-legend button{font-size:12px;padding:6px 10px;text-align:left}.storage-legend button::before{content:"";display:inline-block;width:7px;height:7px;margin-right:7px;background:#68717e;border-radius:50%}.storage-legend button[aria-pressed=true]::before{background:var(--storage-blue)}.storage-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:15px 0}.storage-metrics article{background:#17191d;border:1px solid var(--storage-border);border-radius:7px;padding:14px;min-width:0}.storage-metrics span,.storage-metrics small{display:block;font-size:12px}.storage-metrics span{color:var(--storage-muted)}.storage-metrics strong{display:block;font-size:24px;font-variant-numeric:tabular-nums;margin:6px 0;color:#afd0fa;overflow-wrap:anywhere}.storage-chart-title{font-size:13px;color:#c3c9d2}.storage-chart{display:block;width:100%;height:auto;min-height:160px;max-height:300px;touch-action:pan-y}.storage-chart text{fill:#a2a8b2;font:13px system-ui,sans-serif}.storage-grid{stroke:#30343c;stroke-width:1}.storage-line{fill:none;stroke:var(--storage-blue);stroke-width:2.2;vector-effect:non-scaling-stroke}.storage-point{fill:var(--storage-blue)}.storage-cursor{stroke:#858e9b;stroke-width:1;stroke-dasharray:4 4}.storage-selection{min-height:48px;font-size:13px;font-variant-numeric:tabular-nums}.storage-details{margin:17px 0}.storage-details summary{cursor:pointer;min-height:42px;display:flex;align-items:center;font-size:13px;color:#c3c9d2}.storage-table-wrap{overflow:auto;max-height:420px}.storage-history table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}.storage-history caption{text-align:left;color:var(--storage-muted);padding:10px 0}.storage-history th,.storage-history td{padding:9px 11px;border-bottom:1px solid var(--storage-border);font-size:12px;font-family:inherit}.storage-history th{white-space:nowrap;color:var(--storage-muted);font-weight:500}.storage-history td{font-variant-numeric:tabular-nums;min-width:95px}.storage-history td:nth-child(5){min-width:150px}.storage-history td:last-child{min-width:160px}
@media(max-width:720px){.storage-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.storage-metrics article:last-child{grid-column:1/-1}.storage-chart{min-height:130px}.storage-metrics strong{font-size:21px}.storage-toolbar label{flex-basis:100%;max-width:none}.storage-toolbar{gap:12px}.storage-heading{gap:10px}.storage-periods{flex-wrap:wrap}.storage-selection{font-size:12px}.storage-chart text{font-size:15px}}
@media(prefers-reduced-motion:reduce){.storage-history *{scroll-behavior:auto}}
/* Keep the desktop curve in the first screen; full evidence expands below. */
.storage-history h3{font-size:17px;margin:0}.storage-heading{align-items:center;gap:8px}.storage-history button,.storage-history select{min-height:36px;padding:6px 10px;font-size:13px}.storage-toolbar{margin:8px 0 4px;gap:10px}.storage-toolbar label{gap:2px}.storage-history .storage-status{margin:3px 0;font-size:11px;min-height:18px}.storage-metrics{margin:8px 0;gap:8px}.storage-metrics article{padding:9px 12px}.storage-metrics strong{font-size:22px;margin:2px 0}.storage-metrics span,.storage-metrics small{font-size:11px}.storage-plot-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}.storage-legend{margin:0;font-size:12px}.storage-legend span::before{content:"";display:inline-block;width:7px;height:7px;background:var(--storage-blue);border-radius:50%;margin-right:6px}.storage-history .storage-chart-title{font-size:11px;margin:2px 0;color:var(--storage-muted)}.storage-chart{height:180px;min-height:0;max-height:180px}.storage-history .storage-selection{font-size:12px;min-height:24px;margin:3px 0}.storage-details,.storage-explanation{margin:3px 0}.storage-details summary,.storage-explanation summary{min-height:30px;font-size:12px;cursor:pointer}.storage-explanation p{margin:5px 0}.storage-explanation summary{color:var(--storage-muted)}
@media(max-width:720px){.storage-chart{height:auto;min-height:130px;max-height:180px}.storage-toolbar{gap:8px}.storage-history button,.storage-history select{min-height:42px}.storage-selection{min-height:40px}.storage-metrics article{padding:9px}.storage-metrics strong{font-size:20px}}
@media(min-width:721px){.storage-toolbar label{display:flex;align-items:center;gap:8px;white-space:nowrap}.storage-toolbar label select{flex:1;width:auto;min-width:0}.storage-chart{height:160px;max-height:160px}.storage-chart text{font-size:18px}}
.storage-chart text{font-size:12px}
