.chart-frame { min-width: 0; }
.interactive-chart { height: 300px; width: 100%; min-width: 0; }
.range-panel .interactive-chart { height: 240px; }
.chart-loading { display: flex; height: 100%; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }
.chart-legend { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px 12px; padding: 0 14px 10px; }
.chart-legend button { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 5px 8px; border-radius: 6px; font-size: 12px; color: var(--muted); transition: opacity 120ms; }
.chart-legend button:hover { background: var(--soft-line); }
.chart-legend button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.chart-legend button[aria-pressed="false"] { opacity: .4; text-decoration: line-through; }
.chart-legend button:disabled { cursor: default; }
/* The axis toggle is a mode switch, not a hidden series: pressed is highlighted, never struck through. */
.chart-legend .chart-axis { margin-left: 6px; border: 1px solid var(--soft-line); }
.chart-legend .chart-axis[aria-pressed="false"] { opacity: 1; text-decoration: none; }
.chart-legend .chart-axis[aria-pressed="true"] { color: var(--ink, currentColor); background: var(--soft-line); }
.chart-legend i { width: 14px; height: 3px; border-radius: 2px; }
.chart-data { margin: 0 26px 16px; color: var(--muted); font-size: 12px; }
.chart-data summary { cursor: pointer; width: fit-content; }
.chart-data .table-scroll { margin-top: 12px; }
.chart-empty { display: flex; align-items: center; justify-content: center; min-height: 200px; color: var(--muted); font-size: 12px; }
@media (max-width: 600px) { .interactive-chart { height: 260px; } .chart-data { margin-left: 20px; margin-right: 20px; } }
@media (prefers-reduced-motion: reduce) { .chart-legend button { transition: none; } }
.chart-legend .chart-key { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 5px 8px; font-size: 12px; color: var(--muted); }
.chart-legend .chart-key i { width: 10px; height: 10px; border-radius: 3px; }
