.stream-stats { max-width: 1180px; margin: 0 auto; }
.stream-stat-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 24px 0; }
.stream-stat-filters label { display: grid; gap: 7px; color: #ccc; font-size: 13px; }
.stream-stat-filters input { background: #18181b; color: #eee; border: 1px solid #3c3c43; padding: 10px 12px; border-radius: 6px; min-height: 42px; font: inherit; color-scheme: dark; }
.stream-stat-search { flex: 1; min-width: 160px; }
.stream-stat-overview-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stream-stat-overview-heading span, .stream-stat-report-title > span { color: #a8a8b3; font-size: 13px; }
.stream-stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin: 16px 0 28px; }
.stream-stat-card { display: flex; flex-direction: column; padding: 20px; background: #18181b; border: 1px solid #242429; border-radius: 7px; min-width: 0; }
.stream-stat-card h3 { margin: 0; font-size: 14px; line-height: 1.5; font-weight: 650; }
.stream-stat-card strong { display: block; margin-top: auto; padding-top: 20px; color: #bf9af5; font-size: clamp(22px,2.3vw,30px); font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stream-stat-comparison { color: #b4b4bf; margin: 2px 0 0; font-size: 12px; min-height: 18px; }
.stream-stat-date { display: grid; grid-template-columns: 48px 1fr 48px; background: #18181b; border: 1px solid #2a2a30; border-radius: 6px; min-height: 60px; margin-top: 34px; }
.stream-stat-date > div { display: grid; place-content: center; text-align: center; gap: 4px; padding: 8px; }
.stream-stat-date strong { color: #bf9af5; font-size: 14px; }
.stream-stat-date span { color: #ccc; font-size: 13px; }
.stream-stat-date button { background: transparent; color: #bf9af5; border: 0; font-size: 26px; cursor: pointer; }
.stream-stat-date button:disabled { opacity: .25; cursor: default; }
.stream-stat-report-title { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.stream-stat-report-title h2 { font-size: 17px; overflow-wrap: anywhere; margin: 0; }
.stream-stat-timeline { border-top: 1px solid #303036; padding-top: 20px; margin: 28px 0; }
.stream-stat-timeline h3 { font-size: 15px; }
.stat-chart-plot { display: flex; direction: ltr; height: clamp(160px,20vw,240px); }
.stream-stat-chart svg { display: block; flex: 1; min-width: 0; height: 100%; color: #bf9af5; }
.stat-chart-labels { position: relative; min-width: 38px; font-size: 12px; color: #9c9ca8; }
.stat-chart-labels span { position: absolute; top: 11%; transform: translateY(-50%); }
.stat-chart-labels span:nth-child(2) { top: 47%; }
.stat-chart-labels span:nth-child(3) { top: 83%; }
.stat-chart-grid { stroke: #303036; stroke-width: 1; fill: none; }
.stat-chart-area { fill: #aa7be5; opacity: .12; }
.stat-chart-line { stroke: #bf9af5; stroke-width: 2; fill: none; vector-effect: non-scaling-stroke; }
.stat-chart-axis { display: flex; direction: ltr; justify-content: space-between; padding: 0 4.8%; margin-left: 38px; font-size: 12px; color: #a8a8b3; }
.stream-stat-samples { margin-top: 20px; }
.stream-stat-samples .table-wrap { max-height: 260px; overflow: auto; }
.stream-stat-history { margin-top: 28px; }
.stream-stat-history h2, .stream-stat-overview-heading h2 { font-size: 18px; }
.stream-stat-history-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; text-align: start; padding: 16px; margin-bottom: 8px; border: 1px solid #303036; border-radius: 6px; background: #18181b; color: #eee; font: inherit; cursor: pointer; }
.stream-stat-history-row:hover, .stream-stat-history-row[aria-pressed='true'] { border-color: #9c75cc; background: #211b2a; }
.stream-stat-history-row > span { min-width: 0; }
.stream-stat-history-row strong { display: block; overflow-wrap: anywhere; font-size: 14px; }
.stream-stat-history-row small { display: block; color: #aaa; font-size: 12px; margin-top: 5px; }
.stream-stat-help { border-top: 1px solid #303036; padding-top: 20px; margin-top: 28px; color: #aaa; font-size: 13px; line-height: 1.7; }
.stream-stats summary { cursor: pointer; color: #c4ace3; }
.stream-stats button:focus-visible, .stream-stats summary:focus-visible { outline: 2px solid #bf9af5; outline-offset: 3px; }
@media (max-width: 760px) { .stream-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; } .stream-stat-card { padding: 14px; } .stream-stat-filters label { flex: 1; min-width: 130px; } .stream-stat-filters input { width: 100%; min-width: 0; } .stream-stat-history-row { align-items: start; flex-direction: column; gap: 8px; } }
