.storage-history{min-width:0;color:var(--text);font-family:inherit;font-size:14px;line-height:1.5;--storage-surface:var(--surface2,var(--surface-2));--storage-muted:var(--text2,var(--muted))}
.storage-history *{box-sizing:border-box}
.storage-history button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;border:1px solid var(--border);border-radius:8px;background:transparent;color:var(--storage-muted);padding:7px 12px;font:inherit;font-size:14px;line-height:1.3;cursor:pointer;user-select:none;transition:background-color .16s,border-color .16s,color .16s}
.storage-history button:hover:not(:disabled){background:var(--storage-surface);color:var(--text)}
.storage-history button:disabled{opacity:.35;cursor:default}
.storage-history :focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.storage-history svg:not(.storage-plot>svg){width:17px;height:17px;flex:none;vertical-align:middle}
.storage-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:0 0 18px}
.storage-periods{display:inline-flex;align-items:center;gap:3px;padding:3px;border:1px solid var(--border);border-radius:10px;background:var(--storage-surface)}
.storage-periods button{border-color:transparent;min-height:31px;padding:5px 12px;border-radius:7px}
.storage-periods button[aria-pressed=true]{background:var(--surface,var(--bg,var(--storage-surface)));color:var(--text);border-color:var(--border);box-shadow:0 1px 3px #0000000d}
.storage-status{display:flex;align-items:center;gap:7px;color:var(--storage-muted);font-size:14px}
.storage-status svg{opacity:.7}
.storage-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:22px}
.storage-stat{min-width:0;border:1px solid var(--border);border-radius:10px;padding:13px 15px;background:var(--storage-surface)}
.storage-stat-heading{display:flex;align-items:center;gap:8px;color:var(--storage-muted);font-size:14px;min-height:22px}
.storage-stat-heading svg{opacity:.8}
.storage-stat strong{display:block;font-size:23px;font-weight:650;line-height:1.35;font-variant-numeric:tabular-nums;letter-spacing:-.4px;margin:6px 0 4px;white-space:nowrap}
.storage-stat-note{display:block;color:var(--storage-muted);font-size:14px;min-height:17px}
.storage-stat-used .storage-stat-heading svg{color:#71a7ee;opacity:1}
.storage-stat-active .storage-stat-heading svg{color:#49b997;opacity:1}
.storage-stat-retained .storage-stat-heading svg{color:#d7a15c;opacity:1}
.storage-selection{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.storage-modes{display:flex;gap:4px;flex-wrap:wrap}
.storage-modes button{border-color:transparent;min-height:35px;padding:7px 12px}
.storage-modes button[aria-pressed=true]{background:var(--storage-surface);border-color:var(--border);color:var(--text)}
.storage-picker{margin-left:auto;max-width:100%;min-width:0}
.storage-picker>summary{display:flex;align-items:center;justify-content:center;gap:8px;list-style:none;min-height:35px;padding:7px 12px;border:1px solid var(--border);border-radius:8px;font-size:14px;color:var(--storage-muted);cursor:pointer;user-select:none}
.storage-picker>summary::-webkit-details-marker{display:none}
.storage-picker>summary svg:last-child{width:14px;transition:transform .16s}
.storage-picker[open]>summary svg:last-child{transform:rotate(180deg)}
.storage-picker[open]{width:100%;display:flex;flex-direction:column;align-items:stretch}
.storage-picker[open]>summary{align-self:flex-end}
.storage-legend{display:flex;gap:8px;flex-wrap:wrap;padding:14px;margin-top:10px;border:1px solid var(--border);border-radius:10px;background:var(--storage-surface)}
.storage-history .storage-legend label{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-width:0;margin:0;padding:7px 10px;border:1px solid var(--border);border-radius:7px;cursor:pointer;font-size:14px;line-height:1.4;user-select:none;color:var(--storage-muted)}
.storage-history .storage-legend label[data-checked=true]{color:var(--text);background:var(--surface,var(--bg,var(--storage-surface)));border-color:color-mix(in srgb,var(--series) 50%,var(--border))}
.storage-history .storage-legend input[type=checkbox]{width:14px;min-width:14px;max-width:14px;height:14px;min-height:14px;padding:0;margin:0;flex:0 0 14px;box-shadow:none;accent-color:var(--series);cursor:pointer}
.storage-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--series);flex:none}
.storage-chart{border:1px solid var(--border);border-radius:12px;overflow:hidden;background:color-mix(in srgb,var(--storage-surface) 55%,transparent)}
.storage-chart-header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:15px 18px 6px}
.storage-chart-header>div:first-child{min-width:0;display:flex;flex-direction:column;gap:3px}
.storage-chart-header strong{font-size:14px;font-weight:600}
.storage-chart-header span{font-size:14px;color:var(--storage-muted)}
.storage-zoom{display:flex;align-items:center;gap:4px;flex:none}
.storage-zoom button{width:31px;min-height:31px;padding:5px;font-size:16px;border-color:transparent}
.storage-zoom button:last-child{margin-left:3px;border-left:1px solid var(--border);border-radius:0 6px 6px 0}
.storage-plot{position:relative;width:100%;min-height:280px}
.storage-plot>svg{display:block;width:100%;height:280px;outline-offset:-3px!important}
.storage-plot text{fill:var(--storage-muted);font-size:14px;font-family:inherit;font-variant-numeric:tabular-nums}
.storage-grid{stroke:var(--border);stroke-width:1;stroke-dasharray:3 5}
.storage-guide line{stroke:var(--storage-muted);stroke-width:1;stroke-dasharray:4 4;opacity:.6}
.storage-tooltip{position:absolute;z-index:2;top:12px;max-width:calc(100% - 24px);max-height:230px;overflow:auto;padding:12px;border:1px solid var(--border);border-radius:9px;background:var(--surface,var(--bg,var(--storage-surface)));box-shadow:0 6px 22px #00000024;font-size:14px}
.storage-tooltip[hidden],.storage-empty[hidden],.storage-navigator[hidden]{display:none!important}
.storage-tooltip-time{display:block;font-size:14px;font-weight:600;padding-bottom:8px;margin-bottom:6px;border-bottom:1px solid var(--border)}
.storage-tooltip-row{display:grid;grid-template-columns:7px minmax(0,1fr) auto;align-items:center;gap:7px;margin-top:5px;line-height:1.4}
.storage-tooltip-row>span{color:var(--storage-muted);font-size:14px}
.storage-tooltip-row>strong{font-size:14px;white-space:nowrap;font-weight:600;font-variant-numeric:tabular-nums}
.storage-empty{position:absolute;inset:0;display:grid;place-items:center;color:var(--storage-muted);font-size:14px;padding:20px;text-align:center}
.storage-navigator{display:flex;align-items:center;gap:12px;padding:0 18px 12px;font-size:14px;color:var(--storage-muted)}
.storage-history .storage-navigator input[type=range]{width:100%;min-width:80px;flex:1;height:20px;min-height:20px;padding:0;margin:0;border:0;background:transparent;box-shadow:none;accent-color:var(--accent)}
.storage-chart-footer{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:10px 18px;border-top:1px solid var(--border);color:var(--storage-muted);font-size:14px}
.storage-help{min-width:0;max-width:100%;font-size:14px}
.storage-help summary{cursor:pointer;user-select:none;text-align:right}
.storage-help p{max-width:620px;margin:8px 0 0;font-size:14px;line-height:1.6}
.storage-details{margin-top:15px;padding-top:13px;border-top:1px solid var(--border)}
.storage-details>summary{cursor:pointer;user-select:none;font-size:14px;color:var(--storage-muted)}
.storage-table-wrap{overflow-x:auto;margin-top:12px}
.storage-history table{color:inherit;width:100%;border-collapse:collapse;font-size:14px}
.storage-history th,.storage-history td{padding:10px 8px;text-align:left;border-bottom:1px solid var(--border);font-size:14px;font-variant-numeric:tabular-nums}
.storage-history th{color:var(--storage-muted);font-weight:500}
.storage-history td:first-child .storage-dot{margin-right:8px;vertical-align:middle}
.storage-history th:not(:first-child),.storage-history td:not(:first-child){text-align:right;white-space:nowrap}
.storage-recorder-details h3{font-size:14px;margin:20px 0 10px}
.storage-recorder-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:16px;align-items:center;padding:9px 8px;border-bottom:1px solid var(--border);font-size:14px}
.storage-recorder-row strong{font-weight:500;overflow-wrap:anywhere}
.storage-recorder-row span{color:var(--storage-muted);font-size:14px}
.storage-recorder-row span:last-child{text-align:right;min-width:70px;font-variant-numeric:tabular-nums}
@media(min-width:1600px){.storage-stat{padding:16px 18px}.storage-stat strong{font-size:26px}.storage-chart-header{padding-top:18px}.storage-plot,.storage-plot>svg{height:300px}}
@media(max-width:850px){.storage-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.storage-stat-used{grid-column:span 2}.storage-stat strong{font-size:21px}.storage-stat{padding:12px}.storage-chart-header{padding:13px 12px 5px}}
@media(max-width:520px){.storage-toolbar{align-items:flex-start;gap:10px}.storage-status{width:100%;font-size:14px}.storage-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:16px}.storage-stat-used{grid-column:span 2}.storage-stat-heading{font-size:14px}.storage-stat strong{font-size:22px}.storage-stat-note{font-size:14px}.storage-selection{gap:8px}.storage-modes{width:100%;gap:2px}.storage-modes button{padding:6px 10px;font-size:14px;flex:1}.storage-picker{margin-left:0}.storage-picker[open]>summary{align-self:flex-start}.storage-chart-header{align-items:flex-start;gap:8px}.storage-chart-header span{font-size:14px}.storage-chart-footer{padding:10px 12px;gap:7px}.storage-chart-footer>span{max-width:210px}.storage-navigator{padding:0 12px 12px;flex-direction:column;align-items:stretch;gap:3px}.storage-legend{padding:10px;gap:6px}.storage-history .storage-legend label{font-size:14px;padding:6px 8px}.storage-history th,.storage-history td{font-size:14px;padding:9px 6px}.storage-recorder-row{grid-template-columns:minmax(0,1fr) auto;gap:4px 10px}.storage-recorder-row>span:first-of-type{grid-column:1;font-size:14px}.storage-recorder-row>span:last-child{grid-column:2;grid-row:1/3}}
@media(prefers-reduced-motion:reduce){.storage-history button,.storage-picker>summary svg{transition:none}}
