/* V15.6.1 — compact factual statistics and improved sidebar. No tracking table overrides. */
#stats-report-section{max-width:1080px!important}
.stats61-kpi{background:#fff;border:1px solid #e1e9e4;border-radius:17px;padding:16px;display:flex;flex-direction:column;gap:5px;min-width:0;box-shadow:0 3px 8px #002d1810}
.stats61-kpi>span{font-size:12px;font-weight:900;color:#546b67}
.stats61-kpi>strong{font-size:clamp(22px,3vw,31px);font-weight:900;color:#065f50;line-height:1.2}
.stats61-kpi>small{font-size:11px;line-height:1.65;color:#64748b;font-weight:700}
.stats61-note{color:#667b75;font-size:11px;line-height:1.9;margin-top:8px;font-weight:700}
.stats61-bar{margin:13px 0}.stats61-barhead{display:flex;justify-content:space-between;font-size:12px;color:#13463e;font-weight:900;margin-bottom:5px}
.stats61-track{height:9px;background:#edf2ef;border-radius:20px;overflow:hidden}.stats61-track>i{display:block;height:100%;background:#159779;border-radius:20px}
.stats61-bar>small{display:block;font-size:10px;color:#64748b;margin-top:5px;line-height:1.7}
.stats61-mini-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.stats61-mini-grid>div{background:#f8faf9;border:1px solid #e1eae6;border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:5px}
.stats61-mini-grid b{font-size:21px;color:#086b56}.stats61-mini-grid span{font-size:11px;color:#536b64;font-weight:800}
.stats61-count{display:inline-block;background:#e7f7ec;color:#08755e;border-radius:999px;font-size:13px;padding:2px 9px}
.stats61-follow{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.stats61-follow-card{border:1px solid #f0dcc0;background:#fffcf6;padding:13px 15px;border-radius:15px;min-width:0}
.stats61-follow-card strong{font-size:13px;color:#35473f;display:block;margin-bottom:7px}
.stats61-reasons{display:flex;gap:6px;flex-wrap:wrap}.stats61-reasons span{border:1px solid #f1d5a5;background:#fff6e6;color:#81531a;border-radius:9px;padding:6px 8px;font-size:11px;font-weight:800}
.stats61-follow-card small{display:block;font-size:10px;color:#66766d;margin-top:8px;line-height:1.7}
.stats61-empty{padding:24px 10px;text-align:center;background:#ecfdf4;border:1px solid #d4f6e2;border-radius:15px;color:#0b775e;font-size:12px;font-weight:900}
.stats61-detail>summary{cursor:pointer;padding:13px 10px;color:#096f55;font-size:13px;font-weight:900;list-style:none}
.stats61-detail>summary::before{content:'⌄';padding-inline:6px}.stats61-tablewrap{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}
.stats61-tablewrap table{min-width:730px}
#stats-ai-summary{font-size:11px!important;line-height:1.9!important;box-shadow:none!important;background:#f2f7f5!important;color:#39534b!important;border:1px solid #dce9e3!important}
#stats-ai-summary strong{font-weight:900;color:#09634f}
.ws61-quick-title{font-size:11px;color:#60796e;font-weight:900;margin:6px 6px 8px}
.ws61-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-bottom:12px}
.ws61-quick{border:1px solid #d8e8df;border-radius:13px;background:#f3faf6;padding:9px 4px;display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center;color:#135544;font-family:inherit;font-size:12px;font-weight:900;min-height:60px;cursor:pointer}
.ws61-quick span{font-size:20px}.ws61-quick.active{background:#d0f2e5;border-color:#75c5a6}.ws61-quick[hidden]{display:none!important}
.ws61-group-toggle{display:flex;width:100%;align-items:center;justify-content:space-between;border:0;background:transparent;cursor:pointer;font-family:inherit;text-align:right;min-height:35px;font-size:11px!important;color:#51675f!important}
.ws61-group-toggle::after{content:'⌄';font-size:14px;margin-inline:6px;transition:transform .15s}
.ws61-expanded>.ws61-group-toggle::after{transform:rotate(180deg)}
.ws-group:not(.ws61-expanded)>.ws-link{display:none!important}
.ws61-tools{border-top:1px solid #dfeae4;padding:10px 3px;margin:8px 0}
.ws61-tools>summary{cursor:pointer;padding:10px;font-size:11px;font-weight:900;color:#526d60}
.ws61-tools .ws-cloud-refresh{display:block;width:100%;margin:6px 0;font-size:11px}
#workspace-sidebar .ws-brand{padding:13px 12px!important}
#workspace-sidebar .ws-brand strong{font-size:15px!important}
#workspace-sidebar .ws-brand small{font-size:9px!important}
#workspace-sidebar .ws-sections{padding:9px 9px 16px!important}
#workspace-sidebar .ws-group{padding-top:5px!important;margin-top:5px!important}
#workspace-sidebar .ws-link{margin:1px 0!important;padding:8px!important;min-height:38px!important}
@media(max-width:767px){.stats61-follow{grid-template-columns:1fr}.stats61-kpi{padding:12px}.stats61-kpi>strong{font-size:24px}#stats-report-section{padding:13px!important}.stats-analysis-card{padding:13px!important}.stats61-note{font-size:10px}#workspace-sidebar{max-height:100dvh!important}}
@media print{#stats-report-section>:not(.stats-print-pages){display:block!important}#stats-report-section #stats-grid{display:grid!important;grid-template-columns:repeat(4,1fr)!important}#stats-report-section .stats-print-pages{display:none!important}#stats-report-section #stats-students-card{display:block!important}#stats-report-section .stats61-detail{display:block!important}#stats-report-section .stats61-tablewrap{overflow:visible!important}#stats-report-section .stats61-detail>summary{display:none!important}#stats-report-section .stats61-detail>div{display:block!important}#stats-report-section .stats-student-table{min-width:0!important;font-size:8px!important}}
@media(min-width:1001px){body.ws-collapsed .ws61-quick-title,body.ws-collapsed .ws61-quick b,body.ws-collapsed .ws61-group-toggle,body.ws-collapsed .ws61-tools,body.ws-collapsed .ws61-quick-grid{display:none!important}body.ws-collapsed .ws-group:not(.ws61-expanded)>.ws-link{display:flex!important}body.ws-collapsed .ws-group>.ws-link{display:flex!important}}
@media(max-width:1000px){#workspace-sidebar .ws61-tools{margin-bottom:20px!important}}
/* Recovery tools stay reachable in sidebar; remove mobile table overlays only when navigation initialized. */
@media(max-width:1000px){body.ws61-nav-ready #tracker-sync-audit-button,body.ws61-nav-ready .tracker-homework-recovery-launcher{display:none!important}}
