.stat-chart-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0}
.stat-chart-toolbar>div{display:flex;gap:4px;padding:3px;border:1px solid var(--stat-line,#e4dfd9);border-radius:999px}
.stat-chart-toolbar button,.stat-chart-legend button{min-height:36px;padding:7px 13px;border:0;border-radius:999px;color:var(--stat-ink,#252925);background:transparent;font:inherit;font-size:12px;cursor:pointer}
.stat-chart-toolbar button[aria-pressed=true]{background:var(--stat-ink,#252925);color:var(--stat-panel,#fff)}
.stat-chart-toolbar button:disabled{opacity:.4;cursor:default}
.stat-chart-legend{display:flex;flex-wrap:wrap;gap:4px}
.stat-chart-legend button{display:flex;align-items:center;gap:7px;padding:6px 9px;font-size:11px;opacity:.45}
.stat-chart-legend button[aria-pressed=true]{opacity:1;background:var(--stat-panel-soft,#f4f1ec)}
.stat-explorer .admin-stat-chart{min-width:0;height:auto;aspect-ratio:760/220;touch-action:pan-y}
.stat-chart-cursor{stroke:var(--stat-muted,#8c918b);stroke-width:1;stroke-dasharray:3 4}
.stat-chart-dot{fill:var(--stat-panel,#fff);stroke-width:3}
.stat-chart-readout{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;min-height:50px;padding:10px 12px;background:var(--stat-panel-soft,#f4f1ec);border-radius:12px;font-size:11px;font-variant-numeric:tabular-nums}
.stat-chart-readout span{display:flex;gap:6px}
.stat-chart-slider{display:grid;grid-template-columns:125px minmax(0,1fr);align-items:center;gap:12px;margin-top:12px;font-size:11px;color:var(--stat-muted,#666)}
.stat-chart-slider input{width:100%;min-width:0;min-height:32px;accent-color:var(--stat-mauve,#6e5563);cursor:ew-resize}
.admin-stat-donut.stat-donut-interactive{padding:0;border:0;cursor:pointer;color:var(--stat-ink,#252925);font:inherit;transition:transform 220ms ease,box-shadow 220ms ease}
.admin-stat-donut>.stat-donut-center{display:flex;flex-direction:column;justify-content:center;align-items:center;width:76%;height:76%;margin:0;border-radius:50%;background:var(--stat-panel,#fff)}
.admin-stat-donut>.stat-donut-center>strong{color:var(--stat-ink,#252925)}
.admin-stat-conversion .admin-stat-donut>.stat-donut-center{display:flex}
.stat-funnel-stage{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;width:100%;min-height:44px;padding:9px;border:0;border-radius:10px;background:transparent;color:var(--stat-ink,#252925);text-align:left;font:inherit;font-size:11px;cursor:pointer}
.stat-funnel-stage[aria-pressed=true]{background:var(--stat-panel-soft,#f4f1ec)}
.stat-funnel-track{grid-column:1/-1;height:4px;background:var(--stat-line,#e4dfd9);border-radius:9px;overflow:hidden}
.stat-funnel-track i{display:block;height:100%;background:var(--stat-mauve,#9b6e83);border-radius:inherit;transition:width 500ms cubic-bezier(.22,1,.36,1)}
.stat-chart-hint{font-size:11px!important;color:var(--stat-muted,#666)}
:root[data-theme=dark] .stat-chart-legend button[aria-pressed=true],:root[data-theme=dark] :is(.stat-chart-readout,.stat-funnel-stage[aria-pressed=true]){background:#262b31;color:#e6e9ed}
:root[data-theme=dark] .admin-stat-donut>.stat-donut-center{background:#1b1d20}
:root[data-theme=dark] .admin-stat-donut>.stat-donut-center>strong,:root[data-theme=dark] .stat-funnel-stage{color:#eef0f2}
:root[data-theme=dark] .stat-chart-toolbar button,:root[data-theme=dark] .stat-chart-legend button{color:#d7dde4}
:root[data-theme=dark] .stat-chart-toolbar button[aria-pressed=true]{background:#e6e9e5;color:#171a1d}
:root[data-theme=dark] .stat-chart-slider{color:#b6bfc9}
@media(hover:hover){.stat-donut-interactive:hover{transform:translateY(-2px);box-shadow:0 5px 18px #0002}.stat-funnel-stage:hover{background:var(--stat-panel-soft,#f4f1ec)}}
@media(max-width:560px){.stat-chart-slider{grid-template-columns:105px minmax(0,1fr)}.stat-chart-legend button{min-height:40px;font-size:10px}.stat-chart-readout{gap:7px 12px}.stat-chart-readout>strong{flex-basis:100%}.stat-explorer .admin-stat-chart{aspect-ratio:760/300}}
@media(prefers-reduced-motion:no-preference){.stat-explorer .admin-stat-line{stroke-dasharray:1;animation:stat-line-enter 650ms cubic-bezier(.22,1,.36,1) both}@keyframes stat-line-enter{from{stroke-dashoffset:1;opacity:.3}to{stroke-dashoffset:0;opacity:1}}}
@media(prefers-reduced-motion:reduce){.stat-donut-interactive,.stat-funnel-track i{transition:none}}
:root[data-theme=dark] .stat-explorer .admin-stat-line--reservations{stroke:#e0c3d3}
:root[data-theme=dark] .stat-explorer .admin-stat-line--redemptions{stroke:#a9c9b4}
:root[data-theme=dark] .stat-explorer .admin-stat-line--accounts{stroke:#a9b9db}
:root[data-theme=dark] .stat-chart-legend .is-reservations{background:#e0c3d3}
:root[data-theme=dark] .stat-chart-legend .is-redemptions{background:#a9c9b4}
:root[data-theme=dark] .stat-chart-legend .is-accounts{background:#a9b9db}
:root[data-theme=dark] .stat-funnel-stage:hover{background:#262b31}
