.stats-workspace { max-width: 1800px; }
.stats-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; color: var(--muted); font-size: 12px; margin: 0 0 26px; }
.stats-toolbar .button { margin-left: auto; padding: 7px 12px; font-size: 12px; }
.stats-section { margin-bottom: 28px; }
.stats-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.stats-section-heading span, .stats-caption { color: var(--muted); font-size: 12px; }
.stats-chart-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stats-chart-card.panel { min-width: 0; padding: 16px 16px 8px; margin: 0; overflow: hidden; }
.stats-chart-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.stats-chart-title h3 { font-size: 14px; margin: 0; }
.stats-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; min-height: 22px; padding-top: 12px; font-size: 11px; color: var(--muted); }
.stats-legend span::before { content: ''; display: inline-block; width: 15px; height: 3px; background: var(--series); vertical-align: middle; margin-right: 6px; border-radius: 2px; }
.stats-plot { height: 214px; min-width: 0; width: 100%; overflow: hidden; }
.stats-plot svg { display: block; width: 100%; height: 214px; color: var(--muted); }
.stats-plot text { fill: var(--muted); font-size: 10px; font-family: inherit; }
.stats-gridline { stroke: var(--border-soft); stroke-width: 1; }
.stats-chart-detail { font-size: 11px; min-height: 30px; margin: 4px 0 0; line-height: 1.5; overflow-wrap: anywhere; }
.stats-warning { border: 1px solid #685131; background: #322718; color: #f2cd87; border-radius: 8px; padding: 12px 16px; }
.stats-streams { padding: 20px; }
.stats-filter { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.stats-filter input { width: 230px; margin: 0; }
.stats-table-scroll { width: 100%; overflow-x: auto; }
.stats-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; font-size: 12px; }
.stats-table th, .stats-table td { padding: 15px 12px; border-bottom: 1px solid var(--border-soft); }
.stats-table th { color: var(--muted); font-size: 11px; background: var(--surface-2); }
.stats-table th button { padding: 0; background: none; border: 0; font: inherit; cursor: pointer; color: inherit; }
.stats-table tbody td:first-child { max-width: 300px; white-space: normal; overflow-wrap: anywhere; color: var(--blue-bright); font-weight: 600; }
.stats-table tfoot { color: var(--muted); background: var(--surface-2); }
.stats-table tfoot td:first-child { white-space: normal; }
.stats-method { margin-top: 20px; color: var(--muted); font-size: 12px; }
.stats-method summary { cursor: pointer; color: var(--blue-bright); }
.stats-method p { max-width: 1000px; margin: 12px 0 0; }
.stats-capacities { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 12px; }
.stats-capacity { display: grid; gap: 6px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; font-size: 12px; }
.stats-capacity span { color: var(--muted); }
.stats-capacity meter { width: 100%; height: 12px; accent-color: var(--blue); }
@media (max-width: 850px) {
 .stats-chart-pair { grid-template-columns: minmax(0, 1fr); }
 .stats-section-heading { align-items: flex-start; flex-direction: column; }
 .stats-streams .panel-heading { flex-direction: column; align-items: flex-start; gap: 16px; }
 .stats-filter, .stats-filter input { width: 100%; }
 .stats-chart-card.panel { padding: 12px 6px 6px; }
 .stats-chart-title { padding: 0 6px; }
 .stats-chart-detail { padding: 0 6px; }
 .stats-toolbar .button { margin-left: 0; }
 .stats-chart-title .stats-caption { font-size: 10px; }
}
