.stats-shell{gap:16px;display:grid}.stats-toolbar{border:1px solid var(--border);background:radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--primary) 9%, transparent), transparent 42%), var(--surface-soft);border-radius:10px;min-height:82px;padding:14px 18px 13px;animation:.26s ease-out both stats-toolbar-enter;position:relative;overflow:hidden}.stats-toolbar .page-toolbar__row{align-items:stretch;width:100%}.stats-toolbar .page-toolbar__controls{justify-content:flex-end}.stats-toolbar__context,.stats-toolbar__controls{align-items:center;gap:18px;min-width:0;display:flex}.stats-toolbar__identity{gap:3px;min-width:118px;display:grid}.stats-toolbar__eyebrow{color:var(--primary);letter-spacing:.12em;font-size:10px;font-weight:700;line-height:1.2}.stats-toolbar__identity strong{color:var(--foreground);font-size:18px;font-weight:650;line-height:1.2}.stats-toolbar__controls{flex:auto;justify-content:flex-end}.stats-toolbar__visuals{border-right:1px solid var(--border);align-items:center;gap:10px;padding-right:16px;display:inline-flex}.stats-toolbar__visuals.is-risk .stats-toolbar__ring-value,.stats-toolbar__visuals.is-risk .stats-toolbar__sparkline polyline,.stats-toolbar__visuals.is-risk .stats-toolbar__sparkline circle{stroke:var(--danger)}.stats-toolbar__ring{flex:0 0 42px;place-items:center;width:42px;height:42px;display:inline-grid;position:relative}.stats-toolbar__ring svg{width:100%;height:100%;position:absolute;inset:0;transform:rotate(-90deg)}.stats-toolbar__ring circle{fill:none;stroke-width:4px}.stats-toolbar__ring-track{stroke:var(--progress-track)}.stats-toolbar__ring-value{stroke:var(--primary);stroke-linecap:round;transition:stroke-dashoffset .62s cubic-bezier(.22,1,.36,1)}.stats-toolbar__ring b{color:var(--foreground);font-variant-numeric:tabular-nums;font-size:11px;line-height:1;position:relative}.stats-toolbar__sparkline{align-items:center;width:84px;height:28px;display:inline-flex}.stats-toolbar__sparkline svg{width:100%;height:100%;overflow:visible}.stats-toolbar__sparkline polyline{fill:none;stroke:var(--primary);stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;opacity:.8;stroke-dasharray:140;stroke-dashoffset:140px;animation:.7s ease-out .1s forwards stats-toolbar-sparkline-in}.stats-toolbar__sparkline circle{fill:var(--surface-soft);stroke:var(--primary);stroke-width:1.5px;opacity:0;transition:r .16s,opacity .16s,fill .16s}.stats-toolbar__sparkline:hover circle,.stats-toolbar__sparkline circle:focus-visible{opacity:1}.stats-toolbar__sparkline circle:hover,.stats-toolbar__sparkline circle:focus-visible{r:3.5;fill:var(--primary);outline:none}.stats-toolbar__signal{min-width:0;color:var(--muted-strong);white-space:nowrap;align-items:center;gap:8px;font-size:12px;font-weight:600;display:inline-flex}.stats-toolbar__signal-dot{background:var(--success,#2f9d72);width:7px;height:7px;box-shadow:0 0 0 4px color-mix(in srgb, var(--success,#2f9d72) 12%, transparent);border-radius:999px;flex:0 0 7px}.stats-toolbar__signal-dot.is-pulsing{animation:1.3s ease-in-out infinite stats-toolbar-pulse}.stats-toolbar__signal-dot.is-risk{background:var(--danger);box-shadow:0 0 0 4px color-mix(in srgb, var(--danger) 14%, transparent)}.stats-toolbar.is-risk .stats-toolbar__summary-text{color:var(--danger)}.stats-toolbar.is-risk .stats-toolbar__progress span{background:linear-gradient(90deg, var(--danger), color-mix(in srgb, var(--danger) 54%, #f59e0b))}.stats-toolbar__summary-text{text-overflow:ellipsis;animation:.22s ease-out both stats-toolbar-summary-in;overflow:hidden}.stats-toolbar__progress{background:var(--progress-track);border-radius:999px;height:3px;overflow:hidden}.stats-toolbar__progress span{border-radius:inherit;background:linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 58%, #8ab4ff));transform-origin:0;height:100%;transition:width .52s cubic-bezier(.22,1,.36,1);display:block}@keyframes stats-toolbar-enter{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}@keyframes stats-toolbar-summary-in{0%{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}@keyframes stats-toolbar-pulse{0%,to{opacity:.55;transform:scale(.85)}50%{opacity:1;transform:scale(1.15)}}@keyframes stats-toolbar-sparkline-in{to{stroke-dashoffset:0}}.stats-range-tabs{border:1px solid var(--border);background:var(--surface-strong);border-radius:6px;align-items:center;gap:4px;min-height:36px;padding:3px;display:inline-flex}.stats-range-tabs__button{min-height:30px;color:var(--muted-strong);font-family:var(--font-text);background:0 0;border:0;border-radius:4px;padding:4px 12px;font-size:13px;font-weight:600;line-height:1.2}.stats-range-tabs__button:hover,.stats-range-tabs__button:focus-visible{color:var(--foreground);background:var(--surface)}.stats-range-tabs__button.is-active{color:var(--primary-foreground);background:var(--primary)}.stats-overview,.stats-panel{background:var(--surface-strong);border-radius:8px}.stats-overview{border:1px solid var(--border);grid-template-columns:minmax(210px,1.2fr) repeat(3,minmax(0,1fr));gap:0;display:grid;overflow:hidden}.stats-overview article{background:0 0;border:0;border-radius:0;align-content:center;gap:6px;min-width:0;min-height:112px;padding:18px 20px;display:grid}.stats-overview article+article{border-left:1px solid var(--border)}.stats-overview span,.stats-overview small,.stats-panel__head span,.stats-panel__insight,.stats-empty-state p,.stats-risk-list small{color:var(--muted);font-size:13px;line-height:1.35}.stats-overview strong{color:var(--foreground);font-variant-numeric:tabular-nums;font-size:30px;line-height:1}.stats-overview progress{appearance:none;background:var(--progress-track);border:0;border-radius:999px;width:100%;height:4px;margin-top:5px;overflow:hidden}.stats-overview progress::-webkit-progress-bar{background:var(--progress-track);border-radius:999px}.stats-overview progress::-webkit-progress-value{background:var(--primary);border-radius:999px}.stats-overview progress::-moz-progress-bar{background:var(--primary);border-radius:999px}.stats-overview__item--risk.is-attention{background:color-mix(in srgb, var(--danger) 5%, var(--surface-strong))}.stats-overview__item--risk.is-attention strong{color:var(--danger)}.stats-primary-grid{grid-template-columns:minmax(0,1.75fr) minmax(300px,.75fr);align-items:stretch;gap:18px;display:grid}.stats-distribution-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;min-width:0;display:grid}.stats-panel{border:1px solid var(--border);gap:14px;min-width:0;padding:18px;display:grid}.stats-panel--trend{min-height:100%}.stats-panel--risk{grid-template-rows:auto minmax(0,1fr)}.stats-panel__head{justify-content:space-between;align-items:baseline;gap:16px;display:flex}.stats-panel__head h2{color:var(--foreground);margin:0;font-size:17px;font-weight:600}.stats-panel__head>div{gap:5px;min-width:0;display:grid}.stats-panel__insight{overflow-wrap:anywhere;max-width:620px;margin:0}.stats-echart{width:100%;min-width:0;height:206px}.stats-echart--large{border-top:1px solid var(--border);height:328px}.stats-risk-body{grid-template-rows:minmax(112px,1fr) auto;gap:12px;min-height:328px;display:grid}.stats-risk-summary{border:1px solid var(--border-soft);background:var(--surface-soft);border-radius:6px;align-content:center;gap:8px;padding:20px;display:grid}.stats-risk-summary strong{color:var(--foreground);font-variant-numeric:tabular-nums;font-size:38px;font-weight:600;line-height:1}.stats-risk-summary span{color:var(--muted-strong);font-size:13px;line-height:1.4}.stats-empty-state{border:1px dashed var(--border-strong);background:var(--surface-soft);text-align:center;border-radius:6px;align-content:center;place-items:center;gap:8px;min-height:206px;display:grid}.stats-empty-state span{border:1px solid var(--border);background:linear-gradient(90deg, color-mix(in srgb, var(--muted) 28%, transparent), transparent) 10px 12px / 16px 2px no-repeat, linear-gradient(90deg, color-mix(in srgb, var(--muted) 20%, transparent), transparent) 10px 19px / 12px 2px no-repeat, var(--surface-strong);border-radius:8px;width:36px;height:36px}.stats-empty-state strong{color:var(--foreground);font-size:14px;font-weight:600}.stats-empty-state p{margin:0}.stats-risk-list{gap:0;display:grid}.stats-risk-list a{border-bottom:1px solid var(--border);grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;min-width:0;padding:11px 0;text-decoration:none;display:grid}.stats-risk-list a:last-child{border-bottom:0}.stats-risk-list a>span{background:var(--primary);border-radius:999px;width:8px;height:8px}.stats-risk-list a:hover strong,.stats-risk-list a:focus-visible strong{color:var(--primary)}.stats-risk-list strong,.stats-risk-list b{color:var(--foreground);text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600;overflow:hidden}@media (max-width:1180px){.stats-primary-grid{grid-template-columns:minmax(0,1.5fr) minmax(280px,.8fr)}}@media (max-width:960px){.stats-primary-grid{grid-template-columns:1fr}.stats-distribution-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-distribution-grid>:last-child{grid-column:1/-1}.stats-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-overview article{min-height:96px;padding:14px}.stats-overview article+article{border-left:0}.stats-overview article:nth-child(2n){border-left:1px solid var(--border)}.stats-overview article:nth-child(n+3){border-top:1px solid var(--border)}.stats-overview strong{font-size:26px}.stats-overview small{display:none}.stats-risk-body{grid-template-rows:1fr;grid-template-columns:minmax(190px,.72fr) minmax(0,1fr);min-height:0}}@media (max-width:640px){.stats-shell{gap:14px}.stats-toolbar{min-height:0;padding:13px 14px 11px}.stats-toolbar .page-toolbar__row{gap:12px;display:grid}.stats-toolbar__context,.stats-toolbar__controls{width:100%}.stats-toolbar__context{justify-content:space-between;align-items:flex-start;gap:10px}.stats-toolbar__controls{justify-content:space-between;align-items:center;gap:10px}.stats-toolbar__identity strong{font-size:16px}.stats-toolbar__signal{flex:auto;min-width:0}.stats-toolbar__visuals{gap:7px;padding-right:10px}.stats-toolbar__sparkline{width:58px}.stats-toolbar__summary-text{max-width:150px}.stats-overview article{min-height:88px;padding:12px}.stats-overview strong{font-size:24px}.stats-primary-grid,.stats-distribution-grid{gap:14px}.stats-distribution-grid{grid-template-columns:1fr}.stats-distribution-grid>:last-child{grid-column:auto}.stats-panel{padding:16px}.stats-panel__head{flex-direction:column;align-items:flex-start;gap:4px}.stats-echart--large{height:276px}.stats-echart{height:196px}.stats-risk-body{grid-template-rows:auto auto;grid-template-columns:1fr}.stats-risk-summary{min-height:112px}}@media (prefers-reduced-motion:reduce){.stats-toolbar,.stats-toolbar__summary-text,.stats-toolbar__signal-dot.is-pulsing{animation:none}.stats-toolbar__progress span{transition:none}.stats-toolbar__ring-value,.stats-toolbar__sparkline polyline,.stats-toolbar__sparkline circle{stroke-dashoffset:0;transition:none;animation:none}}html[data-theme=dark] .stats-range-tabs,html[data-theme=dark] .stats-overview,html[data-theme=dark] .stats-panel{border-color:var(--border);background:var(--surface-strong)}html[data-theme=dark] .stats-range-tabs__button:hover,html[data-theme=dark] .stats-range-tabs__button:focus-visible{background:var(--surface)}html[data-theme=dark] .stats-range-tabs__button.is-active{background:var(--primary);color:var(--primary-foreground)}html[data-theme=dark] .stats-overview article+article,html[data-theme=dark] .stats-overview article:nth-child(2n),html[data-theme=dark] .stats-overview article:nth-child(n+3){border-color:var(--border)}html[data-theme=dark] .stats-overview__item--risk.is-attention{background:color-mix(in srgb, var(--danger) 12%, var(--surface-strong))}html[data-theme=dark] .stats-risk-summary{border-color:var(--border);background:var(--surface)}html[data-theme=dark] .stats-empty-state{border-color:var(--border-strong);background:var(--surface)}
