/* Scoped to the new Stats panel; existing views are unchanged. */
#stats-panel{padding:clamp(18px,3vw,40px);max-width:1600px;width:100%;box-sizing:border-box}
#stats-panel[hidden]{display:none!important}
#stats-panel h1{font-family:'Instrument Serif',Georgia,serif;font-weight:400;font-size:clamp(32px,4vw,48px);margin:0 0 12px}
#stats-panel h2{margin:28px 0 14px}#stats-panel h3{margin:0 0 12px;font-size:16px}
#stats-panel .stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0}
#stats-panel .card{background:var(--paper,#fffaf7);border:1px solid var(--line,#eadbd6);border-radius:16px;padding:20px;margin-bottom:18px;box-sizing:border-box}
#stats-panel .stats-rate{font-family:'Instrument Serif',Georgia,serif;font-size:38px;color:var(--accent,#c0202a)}
#stats-panel .stats-metric p{font-size:13px;margin:8px 0 0}#stats-panel .stats-updated{font-size:12px;opacity:.7}
#stats-panel .tablewrap{overflow-x:auto}#stats-panel table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}
#stats-panel th,#stats-panel td{padding:12px 10px;border-bottom:1px solid var(--line,#eadbd6);vertical-align:top}
#stats-panel th{font-weight:600;white-space:nowrap}#stats-panel summary{cursor:pointer;font-weight:600;padding:4px}
#stats-panel .stats-business-total{display:block;font-size:13px;font-weight:400;margin-top:8px}
#stats-panel .stats-definitions p{font-size:13px;line-height:1.6}#stats-panel .empty{opacity:.65}
@media(max-width:950px){#stats-panel .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:500px){#stats-panel{padding:18px 12px}#stats-panel .stats-grid{gap:10px}#stats-panel .card{padding:14px}#stats-panel .stats-rate{font-size:30px}}
#stats-panel .stats-close-total{font-family:'Instrument Serif',Georgia,serif;font-size:28px;color:var(--accent,#c0202a);margin:0 0 12px}
#stats-panel tfoot td{font-weight:600;border-bottom:0;border-top:1px solid var(--line,#eadbd6)}
