/* Status-only charts. HTML labels retain their proportions at every viewport size. */
.usage-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.usage-heading h2 { margin-bottom: 8px; }
.usage-windows { display: flex; flex: none; gap: 4px; padding: 4px; border: 1px solid var(--hair); border-radius: 12px; background: var(--paper-2); }
.usage-windows button { border: 0; border-radius: 8px; padding: 9px 16px; color: var(--muted); background: transparent; font: 500 14px/1.3 var(--sans); cursor: pointer; white-space: nowrap; }
.usage-windows button[aria-pressed="true"] { color: var(--ink); background: var(--surface); box-shadow: 0 1px 4px rgba(22,24,29,.08); }
.usage-windows button:hover { color: var(--ink); }
.usage-section .figure .v { font-variant-numeric: lining-nums tabular-nums; }
.usage-fixed { border-left: 1px solid var(--hair); padding-left: 24px; }
.usage-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.usage-charts.seven-days { grid-template-columns: minmax(0, 1fr); }
.usage-chart { min-width: 0; margin: 0; padding: 24px 24px 20px; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r); box-shadow: 0 8px 24px rgba(40,32,20,.035); }
.usage-chart figcaption { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.usage-chart h3 { font: 600 17px/1.4 var(--sans); letter-spacing: -.02em; }
.usage-chart figcaption > span { font-size: 12px; color: var(--muted); }
.usage-inspect { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; min-height: 68px; padding: 15px 0 12px; font-variant-numeric: tabular-nums; }
.usage-inspect time { color: var(--muted); font-size: 12px; line-height: 1.5; max-width: 28em; }
.usage-inspect strong { font-size: 17px; line-height: 1.4; font-weight: 600; white-space: nowrap; }
.usage-inspect em { color: var(--ember); font-style: normal; }
.usage-plot-shell { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 10px; }
.usage-y { height: 176px; position: relative; color: var(--muted); font-size: 11px; line-height: 1; text-align: right; font-variant-numeric: tabular-nums; }
.usage-y span { position: absolute; right: 0; }
.usage-y span:nth-child(1) { top: 0; transform: translateY(-50%); }
.usage-y span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.usage-y span:nth-child(3) { bottom: 0; transform: translateY(50%); }
.usage-scroll { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--faint) transparent; padding-bottom: 4px; }
.usage-plot { display: flex; align-items: stretch; height: 176px; position: relative; gap: 3px; border-bottom: 1px solid rgba(22,24,29,.24); background: linear-gradient(var(--hair),var(--hair)) top / 100% 1px no-repeat, linear-gradient(var(--hair),var(--hair)) center / 100% 1px no-repeat; }
.usage-plot.dense { min-width: 670px; gap: 1px; }
.usage-slot { flex: 1; min-width: 0; position: relative; padding: 0; margin: 0; border: 0; background: transparent; color: var(--ink); cursor: crosshair; border-radius: 3px 3px 0 0; }
.usage-slot > i { position: absolute; bottom: 0; left: 0; right: 0; height: var(--bar-height); background: var(--ink-2); border-radius: 2px 2px 0 0; pointer-events: none; }
.token-chart .usage-slot > i { background: var(--ember); }
.usage-slot.partial > i { background-image: repeating-linear-gradient(135deg, transparent 0 4px, rgba(255,255,255,.4) 4px 6px); }
.usage-slot.zero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--faint); }
.usage-slot.missing::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 7px; border: 1px dashed var(--faint); border-bottom: 0; }
.usage-slot:hover, .usage-slot.selected { background: rgba(217,68,31,.07); }
.usage-slot.selected > i { background-color: var(--ink); }
.token-chart .usage-slot.selected > i { background-color: #a12f17; }
.usage-slot:focus-visible { outline: 2px solid var(--ember); outline-offset: -2px; border-radius: 2px; z-index: 1; }
.usage-x { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.usage-plot.dense + .usage-x { min-width: 670px; }
.usage-x span:last-child { text-align: right; }
.usage-empty { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 12px 0 0; }
.usage-loading { min-height: 288px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; text-align: center; }
.usage-note { margin-top: 20px; }
.usage-updated { margin-top: 8px; min-height: 1.55em; }
.usage-updated.stale { color: var(--bad); }
.usage-routed { margin-top: 40px; max-width: 640px; }
.usage-routed h3 { font: 500 26px/1.2 var(--serif); margin-bottom: 20px; }
.usage-routed h3 > span { margin-left: 8px; color: var(--muted); font: 400 12px var(--sans); }
.usage-routed .mini-table { gap: 10px; }
@media (max-width: 860px) { .usage-charts { grid-template-columns: minmax(0,1fr); } .usage-fixed { border: 0; padding: 0; } }
@media (max-width: 600px) { .usage-heading { align-items: flex-start; flex-direction: column; gap: 20px; } .usage-windows { width: 100%; } .usage-windows button { flex: 1; padding-inline: 8px; } .usage-chart { padding: 20px 16px 16px; } .usage-plot-shell { grid-template-columns: 34px minmax(0,1fr); gap: 8px; } .usage-inspect { min-height: 76px; } .usage-inspect strong { font-size: 16px; } .usage-section .figures { gap: 24px 16px; } .usage-section .figure .v { font-size: 42px; } }
