
/* Theme-integrated premium stats */
.stats-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:6px 0 16px}
.stats-head .kicker{font-size:12px;color:var(--muted)}
.stats-head .title{font-size:20px;font-weight:900;color:var(--text)}
.stats-head .right{display:flex;gap:10px;flex-wrap:wrap;align-items:center}

.s-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.s-card .s-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;background:var(--surface2);border-bottom:1px solid var(--border)}
.s-card .s-head .h-title{font-weight:900;color:var(--text);display:flex;align-items:center;gap:10px}
.s-card .s-body{padding:16px}

.s-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
@media(max-width:1024px){.s-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:480px){.s-grid{grid-template-columns:1fr}}

.kpi{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);padding:14px}
.kpi .t{font-size:12px;color:var(--muted);font-weight:800}
.kpi .v{font-size:22px;color:var(--text);font-weight:900;margin-top:6px}
.kpi .s{font-size:12px;color:var(--muted);margin-top:6px}

.seg{display:inline-flex;border:1px solid var(--border);border-radius:999px;overflow:hidden}
.seg button{height:36px;padding:0 12px;border:0;background:transparent;color:var(--muted);cursor:pointer;font-weight:900;font-size:13px}
.seg button.active{background:var(--accent);color:var(--surface)}
.seg button:not(.active):hover{background:var(--surface);color:var(--text)}

.range{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.range input,.range select{height:36px;padding:0 10px;border-radius:999px;border:1px solid var(--border);background:var(--surface);color:var(--text)}
.canvas-wrap{position:relative;width:100%;height:320px}
@media(max-width:480px){.canvas-wrap{height:260px}}
.note{padding:14px;border:1px dashed var(--border);border-radius:var(--radius);background:var(--surface2);color:var(--muted);font-size:13px}
