/* Student-only classroom performance. */
.student-view[data-view="classPerformance"]:has(.spf) > .module-head {display:none}
.spf{--pf-ink:#202b45;--pf-muted:#6c778e;--pf-line:#e3e9f3;--pf-indigo:#4f5bd5;min-width:0;display:grid;gap:19px;color:var(--pf-ink);font-size:14px;line-height:1.65}
.spf *{box-sizing:border-box}.spf h1,.spf h2,.spf h3,.spf p{margin:0}.spf svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.spf button,.spf select{font:inherit}.spf button{min-height:44px;padding:9px 14px;background:white;color:var(--pf-indigo);border:1px solid var(--pf-line);border-radius:10px;cursor:pointer}.spf button:hover:enabled{background:#f1f3ff}.spf button:disabled{opacity:.45;cursor:default}.spf button:focus-visible,.spf select:focus-visible,.spf summary:focus-visible{outline:3px solid #9ba6fb;outline-offset:3px}
.spf-heading{display:flex;justify-content:space-between;align-items:center;gap:14px}.spf-heading h1{font-size:28px;line-height:1.4}.spf-heading p{color:var(--pf-muted);margin-top:3px}.spf-refresh{display:flex;align-items:center;gap:7px;flex-shrink:0}
.spf-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;max-width:600px}.spf-filters label{display:flex;align-items:center;gap:9px;padding:0 12px;background:white;border:1px solid var(--pf-line);border-radius:10px;min-width:0;color:#596995}.spf-filters select{background:transparent;color:var(--pf-ink);border:0;min-height:44px;width:100%;min-width:0;text-overflow:ellipsis}
.spf-overview{display:grid;grid-template-columns:1fr 1.2fr;gap:24px;padding:24px;border-radius:18px;background:linear-gradient(112deg,#272c91,#505fda);min-width:0;align-items:center}.spf-hero{position:relative;overflow:hidden;color:white;min-width:0;isolation:isolate}.spf-hero>span{font-weight:600}.spf-total{display:block;font-size:48px;line-height:1.35;letter-spacing:-.8px;margin:6px 0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.spf-total small{font-size:20px;font-weight:400;margin-left:7px;letter-spacing:0}.spf-hero p{font-size:12px;color:#edf1ff}.spf-hero>small{display:block;font-size:11px;color:#ced6ff;margin-top:14px}.spf-hero-art{position:absolute;width:150px!important;height:110px!important;right:0;bottom:10px;color:#9ba9ff;opacity:.24;z-index:-1;stroke-width:1}
.spf-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;min-width:0}.spf-metrics article{border:1px solid #e8e4fb;border-radius:13px;background:#f3f1ff;padding:18px 15px;color:#2d3b71;min-width:0}.spf-metrics article:nth-child(2){background:#ecf8f3;border-color:#d8eee4;color:#227560}.spf-metrics article:nth-child(3){background:#fcf0f3;border-color:#f2dfe5;color:#a64b64}.spf-metrics article>span{display:flex;align-items:center;justify-content:space-between;gap:3px;font-size:12px}.spf-metrics svg{width:16px;height:16px}.spf-metrics article>strong{display:block;font-size:32px;line-height:1.5;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.spf-metrics strong small{font-size:13px;font-weight:400;margin-left:4px}.spf-metrics article>small{display:block;font-size:11px;overflow-wrap:anywhere}
.spf-tabs{display:flex;background:#eaf0f9;border-radius:11px;padding:4px;max-width:420px}.spf-tabs button{flex:1;background:transparent;border-color:transparent}.spf-tabs button.active,.spf-chips button.active{background:var(--pf-indigo);color:white;box-shadow:0 3px 10px #4f5bd51a}
.spf-panel{min-width:0;background:white;border:1px solid var(--pf-line);border-radius:17px;padding:22px;scroll-margin-top:20px}.spf-chips{display:flex;gap:8px;margin-bottom:19px;flex-wrap:wrap}.spf-chips button{font-size:12px;padding:8px 15px;color:#5e6b86;background:#f2f4fa;border-color:transparent}.spf-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px}.spf-section-head h2{font-size:18px}.spf-section-head>span{font-size:11px;color:var(--pf-muted);text-align:right}
.spf-records{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.spf-record{background:white;border:1px solid var(--pf-line);border-radius:13px;min-width:0;overflow:hidden}.spf-record>summary{display:flex;align-items:flex-start;gap:11px;min-height:100px;padding:16px;list-style:none;cursor:pointer}.spf-record>summary::-webkit-details-marker,.spf-adjustments>summary::-webkit-details-marker{display:none}.spf-record-icon{display:grid;place-items:center;background:#eaf6f1;color:#24836c;flex:0 0 37px;width:37px;height:39px;border-radius:10px}.spf-icon-negative{background:#faeaf0;color:#b65468}.spf-record-title{flex:1;min-width:0}.spf-record-title>strong{display:block;font-size:14px;overflow-wrap:anywhere}.spf-record-title>small{display:block;color:var(--pf-muted);font-size:12px;margin-top:3px;overflow-wrap:anywhere}.spf-record-note{display:block;color:var(--pf-muted);font-size:12px;margin-top:10px;overflow-wrap:anywhere}.spf-record-end{display:flex;flex-direction:column;align-items:flex-end;gap:5px;flex-shrink:0;max-width:100px}.spf-record-end>strong{font-size:18px;color:#21876f;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.spf-status{font-size:10px;padding:1px 7px;background:#e6f5ee;color:#237d65;border-radius:5px}.spf-status-neutral{background:#edf0f5;color:#667185}.spf-record-end>span{display:flex;align-items:center;font-size:11px;color:#62708d}.spf-record-end svg{width:14px;height:14px}.spf-record[open] .spf-record-end>span svg{transform:rotate(90deg)}.spf-record-detail{border-top:1px solid #edf0f6;padding:14px 17px;background:#fafbfe;color:#6c778e;font-size:12px;display:grid;gap:7px;overflow-wrap:anywhere}.spf .spf-negative{color:#b65468!important}.spf-adjust-record{margin-top:12px}.spf-adjust-record .spf-record-icon{background:#eef1f7;color:#75829e}
.spf-course-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.spf-course{min-width:0;border:1px solid var(--pf-line);border-radius:14px;padding:16px 16px 2px}.spf-course-head{display:flex;align-items:flex-start;gap:10px}.spf-course-head>span{display:grid;place-items:center;background:#edf1ff;color:var(--pf-indigo);border-radius:10px;width:37px;height:39px;flex-shrink:0}.spf-course h3{font-size:14px;line-height:1.65;overflow-wrap:anywhere}.spf-course-total{padding:9px 0 12px 47px;min-width:0}.spf-course-total>span{display:block;color:var(--pf-muted);font-size:12px}.spf-course-total>strong{display:block;font-size:26px;overflow-wrap:anywhere}.spf-course-parts{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px;border-top:1px solid #edf0f7;padding-top:11px;color:var(--pf-muted)}.spf-course-parts strong{color:#21876f;margin-left:5px}.spf-course>button{display:flex;justify-content:center;align-items:center;width:100%;margin-top:9px;border:0;border-top:1px solid #edf0f7;font-size:12px;background:transparent;border-radius:0}
.spf-pages{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--pf-muted);margin-top:17px}.spf-pages>div{display:flex;gap:8px}.spf-pages button{font-size:12px;padding:8px 12px}
.spf-adjustments{border:1px solid var(--pf-line);border-radius:13px;background:white;scroll-margin-top:20px}.spf-adjustments>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer;min-height:58px;padding:14px 20px}.spf-adjustments>summary>span{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.spf-adjustments>summary small{font-size:12px;color:var(--pf-muted)}.spf-adjustments>summary svg{color:var(--pf-indigo)}.spf-adjustments[open]>summary>svg{transform:rotate(90deg)}.spf-adjustments-content{border-top:1px solid var(--pf-line);padding:17px 20px}
.spf-note{font-size:12px;color:var(--pf-muted);line-height:1.8}.spf-scope-note{padding:8px 13px;border-radius:9px;background:#edf1fa}.spf-notice{padding:11px 15px;color:#805d68;background:#fcf2f5;border:1px solid #f0e1e7;border-radius:10px;font-size:12px}.spf-empty{padding:32px 14px;text-align:center;color:var(--pf-muted);grid-column:1/-1}.spf-error{padding:22px;border:1px solid #f0d9df;border-radius:13px;background:white;color:#b65468;overflow-wrap:anywhere}.spf-error button{margin-top:12px}.spf-sr{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden}
@media(max-width:1250px){.spf-overview{grid-template-columns:1fr 1.2fr;gap:16px;padding:20px}.spf-metrics article{padding:15px 10px}.spf-metrics article>strong{font-size:28px}.spf-course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.spf-total{font-size:43px}}
@media(max-width:950px){.spf-overview{grid-template-columns:1fr;background:none;padding:0;gap:12px}.spf-hero{padding:22px;border-radius:16px;background:linear-gradient(112deg,#292d95,#505fda)}.spf-metrics article{padding:15px}.spf-records{grid-template-columns:1fr}}
@media(max-width:700px){
 body:has(.student-view[data-view="classPerformance"].active .spf) .student-topbar{flex-wrap:nowrap;padding:10px 14px;gap:10px;min-height:62px}
 body:has(.student-view[data-view="classPerformance"].active .spf) .student-topbar>div:not(.topbar-actions){flex:1;min-width:0}
 body:has(.student-view[data-view="classPerformance"].active .spf) [data-page-title]{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body:has(.student-view[data-view="classPerformance"].active .spf) [data-page-subtitle],body:has(.student-view[data-view="classPerformance"].active .spf) .topbar-actions .search,body:has(.student-view[data-view="classPerformance"].active .spf) .topbar-actions .ghost-button{display:none}
 body:has(.student-view[data-view="classPerformance"].active .spf) .topbar-actions{flex:0 0 auto;width:auto;margin-left:auto}
 body:has(.student-view[data-view="classPerformance"].active .spf) .student-content{padding:18px 14px 28px}
 .spf{gap:14px;font-size:13px}.spf-heading h1{font-size:23px}.spf-heading p{font-size:11px}.spf-refresh{width:44px;height:44px;padding:11px!important;justify-content:center}.spf-refresh>span{display:none}
 .spf-filters{grid-template-columns:1fr;gap:8px;max-width:none}.spf-filters select{font-size:16px}.spf-filters label{padding:0 11px}.spf-filters svg{width:17px;height:17px}
 .spf-hero{padding:20px;border-radius:15px}.spf-total{font-size:44px}.spf-hero>span{font-size:13px}.spf-hero-art{width:120px!important}.spf-hero p{font-size:11px}.spf-hero>small{font-size:10px;text-align:right;margin-top:13px}
 .spf-metrics{gap:8px}.spf-metrics article{padding:12px 10px;border-radius:12px}.spf-metrics article>span{font-size:11px}.spf-metrics article>strong{font-size:28px}.spf-metrics article>small{font-size:10px}.spf-metrics strong small{font-size:11px}.spf-metrics svg{width:14px;height:14px}
 .spf-tabs{max-width:none}.spf-tabs button{font-size:13px}.spf-panel{padding:14px;border-radius:14px}.spf-chips{gap:6px;flex-wrap:nowrap;margin-bottom:15px}.spf-chips button{flex:1;min-width:0;font-size:11px;padding:8px 5px}.spf-section-head{gap:7px;margin-bottom:12px}.spf-section-head h2{font-size:16px}.spf-section-head>span{font-size:10px;max-width:165px}
 .spf-records{gap:10px}.spf-record>summary{padding:13px 11px;gap:9px}.spf-record-icon{flex-basis:31px;width:31px;height:34px}.spf-record-icon svg{width:18px;height:18px}.spf-record-title>strong{font-size:13px}.spf-record-title>small,.spf-record-note{font-size:10px}.spf-record-note{margin-top:8px}.spf-record-end{max-width:75px}.spf-record-end>strong{font-size:16px}.spf-record-end>span{font-size:10px}.spf-record-detail{padding:12px;font-size:11px}
 .spf-course-grid{grid-template-columns:1fr;gap:11px}.spf-course{padding:14px 14px 1px}.spf-course h3{font-size:14px}.spf-course-total>strong{font-size:26px}.spf-pages{font-size:10px;gap:9px}.spf-pages button{padding:8px 11px;font-size:11px}
 .spf-adjustments>summary{padding:13px 14px;font-size:12px}.spf-adjustments>summary small{font-size:10px}.spf-adjustments-content{padding:14px}.spf-note,.spf-notice{font-size:11px}
}
@media(prefers-reduced-motion:reduce){.spf *{scroll-behavior:auto!important;transition:none!important}}
