/* Reference-led school workspace. Existing records, routes and forms remain authoritative. */
.school-workspace{--ink:#0e1116;--navy:#192c42;--ink-mute:#5b6270;--muted:#5b6270;--paper:#fbfbfa;--surface:#fff;--surface-soft:#f4f4f2;--line:#e7e8ea;--brand:#2f5bff;--brand-dark:#2446d6;--brand-light:#eef2ff;--sidebar-w:248px;background:var(--paper);color:var(--ink)}
.school-workspace [hidden]{display:none!important}
.school-workspace .sidebar{width:248px;background:var(--paper);border-color:var(--line)}
.school-workspace .sidebar-logo{display:block;padding:24px 16px 16px;border:0}
.school-workspace .sidebar-logo>a{display:block;padding:0 10px 20px}
.school-workspace .sidebar-logo .brand-lockup{width:128px;margin:0}
.school-workspace .school-identity{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.school-workspace .sidebar-logo-placeholder{width:32px;height:32px;flex:0 0 32px;border-radius:50%;font-family:inherit;font-size:13px;font-weight:600;line-height:1.4;overflow:hidden}
.school-workspace .sidebar-logo-placeholder img{width:100%;height:100%;object-fit:contain}
.school-workspace .sidebar-logo-text{font-family:inherit;min-width:0;font-size:13px;line-height:1.5;letter-spacing:0;overflow-wrap:anywhere}
.school-workspace .sidebar-logo-text small{font-family:inherit;font-size:12px;font-weight:400;line-height:1.5;letter-spacing:0;text-transform:none}
.school-workspace .sidebar-nav{padding-inline:16px}
.school-workspace .sidebar-btn{padding:10px;min-height:44px;gap:10px;border-radius:8px;font-size:14px;font-weight:500;line-height:1.4;color:#3a4150}
.school-workspace .sidebar-btn .sb-icon,.school-workspace .sidebar-btn .pv-symbol{width:18px;height:18px}
.school-workspace .sidebar-btn .sb-icon{position:relative;left:-3px}
.school-workspace .sidebar-btn.active{background:var(--brand-light);color:var(--brand-dark);box-shadow:none}
.school-workspace .sidebar-section+.sidebar-section{padding-top:12px;margin-top:12px}
.school-workspace .sidebar-footer{padding:16px;border-color:var(--line)}
.school-workspace .sidebar-footer :is(.btn,a){font-size:13px}
.school-workspace #main-app{margin-left:248px;background:var(--paper)}
.school-workspace #main-app>.content{max-width:none;padding:32px 48px 48px}
.school-workspace #staff-role-banner{margin:0;font-size:12px;line-height:1.5;color:var(--muted)}
.school-workspace #main-app :is(.school-page-heading,.portal-section-intro,.figma-page-heading){
 display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:20px;min-width:0;width:100%;max-width:none;
 padding:0;margin:0 0 28px;border:0;border-radius:0;background:transparent;color:var(--ink);box-shadow:none;animation:none;
}
.school-workspace #main-app .school-heading-copy{flex:1 1 360px;min-width:0}
.school-workspace #main-app :is(.school-page-heading,.portal-section-intro,.figma-page-heading) h2{margin:0;color:var(--ink);font-size:34px;font-weight:600;line-height:1.15;letter-spacing:-.035em;text-wrap:balance}
.school-workspace #main-app :is(.school-page-heading,.portal-section-intro,.figma-page-heading) .pv-heading-symbol,.school-workspace #main-app .figma-kicker{display:none}
.school-workspace #main-app :is(.school-heading-copy>p,.portal-section-description,.figma-page-heading>div>p:not(.figma-kicker)){max-width:68ch;margin:8px 0 0;color:var(--muted);font-size:15px;line-height:1.6}
.school-workspace #main-app .portal-section-intro{display:block}
.school-workspace #main-app .school-heading-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;flex-shrink:0}
.school-workspace #main-app :is(.school-heading-actions .btn,.figma-header-action){display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;max-width:100%;padding:11px 16px;border-radius:9px;font-size:14px;font-weight:600;line-height:1.4;touch-action:manipulation;white-space:normal;transition:background-color 150ms,color 150ms,border-color 150ms}
.school-workspace #main-app .school-heading-actions .btn-primary,.school-workspace #page-dashboard .figma-header-action{background:var(--brand);color:#fff;border:1px solid var(--brand)}
.school-workspace #main-app .school-heading-actions .btn-outline{background:var(--surface);color:var(--ink);border:1px solid #d5d7db}
.school-workspace #main-app :is(.school-page-heading,.figma-page-heading) .btn:focus-visible{outline:3px solid var(--brand);outline-offset:3px}
.school-workspace #main-app .school-heading-actions .btn:disabled{cursor:wait;opacity:.7}
.school-refresh-icon{width:18px;height:18px;flex:none;transform:rotate(0deg);transition:transform 180ms cubic-bezier(.22,1,.36,1)}
#btn-refresh-students[aria-busy=true] .school-refresh-icon{transform:rotate(180deg)}
.school-workspace #main-app #student-refresh-feedback{align-items:center;max-width:68ch;min-height:22px;margin-top:10px;color:var(--muted);font-size:13px;line-height:1.5}
.school-workspace #main-app #student-refresh-status{font-size:13px;line-height:1.5;color:inherit;margin:0}
.school-feedback-mark{flex:0 0 7px;width:7px;height:7px;border-radius:50%;background:var(--brand)}
#student-refresh-feedback[data-state=success] .school-feedback-mark{background:#0b6b37}
.school-workspace #main-app #student-refresh-feedback[data-state=error]{color:#87421c}
#student-refresh-feedback[data-state=error] .school-feedback-mark{background:currentColor}
.school-workspace #main-app #page-school-settings>.school-page-heading{flex-direction:row;justify-content:center;text-align:center}
.school-workspace #page-school-settings .school-heading-copy>p{margin-inline:auto}
.school-workspace #main-app #page-classroom>.page-header{padding:16px 0 28px;margin:0 0 28px;max-width:none;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0}
.school-workspace #page-classroom>.page-header .classroom-brand{justify-content:center}
.school-workspace #main-app .card{box-shadow:none;border-radius:10px}
.school-workspace #page-dashboard>.portal-segments{display:flex;flex-wrap:nowrap;gap:24px;width:100%;max-width:100%;padding:0;margin:0 0 28px;background:transparent;border-radius:0;box-shadow:none;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:thin}
.school-workspace #page-dashboard>.portal-segments a{position:relative;display:flex;align-items:center;min-height:44px;padding:0 0 12px;border-radius:0;border-bottom:2px solid transparent;flex-shrink:0;color:var(--muted);font-size:14px;font-weight:500;white-space:nowrap;background:transparent;box-shadow:none;text-decoration:none;transition:color 150ms,border-color 150ms}
.school-workspace #page-dashboard>.portal-segments a[aria-current=page]{color:var(--ink);border-color:var(--brand);background:transparent;box-shadow:none}
.school-workspace #page-dashboard>.portal-segments a:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
.school-workspace #page-dashboard #dash-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:0;border:0;border-block:1px solid var(--line);border-radius:0;background:transparent;overflow:visible}
.school-workspace #page-dashboard #dash-stats .stat-card{display:block;min-width:0;margin:0;padding:22px 24px;border:0;border-right:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none}
.school-workspace #page-dashboard #dash-stats .stat-card:first-child{padding-left:0}
.school-workspace #page-dashboard #dash-stats .stat-card:last-child{border-right:0}
.school-workspace #page-dashboard #dash-stats .stat-label{margin:0;color:var(--muted);font-size:13px;font-weight:400;line-height:1.5}
.school-workspace #page-dashboard #dash-stats .stat-num{margin:8px 0 4px;font-family:inherit;font-size:44px;font-weight:600;line-height:1.1;letter-spacing:-.04em;color:var(--ink)}
.school-workspace #dash-stats .stat-caption{font-size:12px;line-height:1.5;color:var(--muted)}
.school-workspace .dashboard-pass-rate{display:block;width:100%;height:4px;margin-top:14px;border:0;border-radius:4px;overflow:hidden;appearance:none;background:var(--line);color:var(--brand)}
.school-workspace .dashboard-pass-rate::-webkit-progress-bar{background:var(--line)}
.school-workspace .dashboard-pass-rate::-webkit-progress-value{background:var(--brand)}
.school-workspace .dashboard-pass-rate::-moz-progress-bar{background:var(--brand)}
.school-workspace #school-overview-columns{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(280px,1fr);gap:48px;margin-top:40px;align-items:start}
.school-workspace #page-dashboard #dash-grid{display:block;width:100%;min-width:0;margin:0;grid-area:auto}
.school-workspace #page-dashboard .figma-activity-card,.school-workspace #page-dashboard .figma-actions-card{border:0;border-radius:0;background:transparent;overflow:visible}
.school-workspace #page-dashboard .figma-activity-card .card-header,.school-workspace #page-dashboard .figma-actions-card .card-header{display:flex;flex-wrap:nowrap;align-items:center;padding:0 0 12px;border:0;background:transparent;gap:16px}
.school-workspace #page-dashboard .card-header h3,.school-workspace #official-exam-overview>h3{flex:1 1 auto;margin:0;color:var(--ink);font-size:16px;font-weight:600;line-height:1.5;letter-spacing:-.01em}
.school-workspace #page-dashboard .figma-text-action{padding:0 4px;min-height:44px;font-size:13px;font-weight:500;color:var(--brand-dark)}
.school-workspace #page-dashboard #dash-recent-exams .portal-data-table{background:transparent}
.school-workspace #page-dashboard #dash-recent-exams :is(th,td){padding:14px 12px 14px 0;background:transparent;border-bottom:1px solid var(--line);text-align:start}
.school-workspace #page-dashboard #dash-recent-exams th{padding-block:6px;font-size:12px;font-weight:500;color:var(--muted)}
.school-workspace #page-dashboard #dash-recent-exams td{font-size:14px;font-family:inherit;font-weight:400}
.school-workspace #page-dashboard #dash-recent-exams tr:last-child td{border-bottom:0}
.school-workspace #page-dashboard #dash-recent-exams .badge{display:inline-block;padding:3px 10px;border-radius:99px;font-size:12px;font-weight:600;white-space:nowrap}
.school-workspace .dashboard-student{display:flex;align-items:center;gap:10px;font-weight:500;overflow-wrap:anywhere}
.school-workspace .dashboard-avatar{display:inline-flex;align-items:center;justify-content:center;flex:0 0 30px;width:30px;height:30px;background:var(--brand-light);color:var(--brand-dark);font-size:12px;font-weight:600;border-radius:50%}
.school-workspace #page-dashboard #dash-recent-exams .dashboard-exam-date{color:var(--muted);white-space:nowrap}
.school-workspace #dash-grid .figma-side-stack{display:block;margin-top:32px}
.school-workspace #dash-grid .figma-side-stack:not(:has(>.card:not(.portal-page-off))){display:none}
.school-workspace #page-dashboard .figma-actions-card .card-body{padding:0;background:transparent}
.school-workspace #page-dashboard .figma-quick-actions{display:flex;gap:8px 20px;flex-wrap:wrap}
.school-workspace #page-dashboard .figma-quick-actions button{padding:4px 0;min-height:44px;font-size:13px;border:0;color:var(--brand-dark)}
.school-workspace #page-dashboard .figma-quick-actions button .pv-symbol{display:none}
.school-workspace #official-exam-overview{min-width:0;margin:0;padding:0;background:transparent;border:0;border-radius:0}
.school-workspace #official-exam-overview>h3{min-height:44px;margin-bottom:12px;display:flex;align-items:center}
.school-workspace #official-exam-overview .official-overview-body{display:flex;align-items:flex-start;flex-wrap:wrap;gap:12px;padding:22px;border:1px solid var(--line);border-radius:12px}
.school-workspace #official-exam-overview[data-state=empty] .official-overview-body{border-style:dashed;border-color:#c9ccd2}
.school-workspace #official-overview-text{flex-basis:100%;margin:0;font-size:14px;line-height:1.65;color:var(--muted)}
.school-workspace #official-exam-overview .btn{min-height:44px;padding:10px 14px;border:1px solid #d5d7db;border-radius:9px;background:var(--surface);color:var(--ink);font-size:14px}
.school-workspace #official-exam-overview .school-operations-shortcut{display:inline-flex;align-items:center;min-height:44px;font-size:13px;color:var(--brand-dark)}
.school-workspace #official-exam-overview .ops-shortcuts{margin-top:16px;padding:0;border:0;display:flex;flex-wrap:wrap;gap:0 18px}
.school-workspace #official-exam-overview .ops-shortcuts a{display:inline-flex;align-items:center;min-height:44px;font-size:13px;font-weight:500;color:var(--brand-dark);text-decoration:none}
.school-workspace .school-dashboard-logo{width:120px;height:48px}
.school-workspace .school-dashboard-logo img{width:auto;height:auto;max-width:100%;max-height:100%;flex-shrink:0}
.school-workspace .school-dashboard-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:24px;margin-bottom:28px;min-width:0}
.school-workspace #main-app .school-dashboard-heading>:is(.figma-page-heading,.portal-section-intro){grid-column:1;grid-row:1;margin:0;min-width:0}
.school-workspace .school-dashboard-heading .school-dashboard-logo{position:static;grid-column:2;grid-row:1;align-self:end;pointer-events:none}
.school-workspace .school-dashboard-heading:not(:has(.school-dashboard-logo:not([hidden]))){grid-template-columns:minmax(0,1fr);column-gap:0}
@media(max-width:820px){.school-workspace .school-dashboard-heading{gap:16px}.school-workspace .school-dashboard-heading .school-dashboard-logo{width:96px;height:44px;align-self:start}}
#school-license-gate .sl-msg{min-height:0;line-height:1.6;margin:12px 0 0}
#school-license-gate .sl-msg:empty{display:none}
#school-license-gate .sl-msg.error{padding:12px 14px;border:1px solid #f0c6bf;border-radius:8px;background:#fff5f3;color:#9f241b}
#school-license-gate .sl-msg+.release-help-button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;max-width:100%;min-height:44px;margin-top:16px;text-decoration:none;line-height:1.5}

@media(hover:hover) and (pointer:fine){
 .school-workspace .sidebar-btn:hover{background:#f0f0ee;color:var(--ink)}
 .school-workspace .sidebar-btn.active:hover{background:var(--brand-light);color:var(--brand-dark)}
 .school-workspace #main-app .school-heading-actions .btn-primary:hover,.school-workspace #page-dashboard .figma-header-action:hover{background:var(--brand-dark);border-color:var(--brand-dark)}
 .school-workspace #main-app .school-heading-actions .btn-outline:hover,.school-workspace #official-exam-overview .btn:hover{background:var(--surface-soft)}
 .school-workspace #page-dashboard>.portal-segments a:hover{color:var(--ink)}
 .school-workspace #official-exam-overview .ops-shortcuts a:hover{text-decoration:underline}
}
@media(max-width:1180px){
 .school-workspace #school-overview-columns{grid-template-columns:minmax(0,1fr);gap:32px}
 .school-workspace #page-dashboard #dash-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .school-workspace #page-dashboard #dash-stats .stat-card{border-bottom:1px solid var(--line)}
 .school-workspace #page-dashboard #dash-stats .stat-card:nth-child(2){border-right:0}
 .school-workspace #page-dashboard #dash-stats .stat-card:nth-child(3){border-bottom:0;padding-left:0}
 .school-workspace #page-dashboard #dash-stats .stat-card:nth-child(4){border-bottom:0}
}
@media(max-width:820px){
 .school-workspace #main-app{margin-left:0}
 .school-workspace #main-app>.content{padding:24px 20px 40px}
 .school-workspace #main-app :is(.school-page-heading,.portal-section-intro,.figma-page-heading){gap:16px;margin-bottom:24px}
 .school-workspace #main-app :is(.school-page-heading,.figma-page-heading){flex-direction:column;align-items:stretch}
 .school-workspace #main-app .school-heading-copy{flex:auto}
 .school-workspace #main-app :is(.school-page-heading,.portal-section-intro,.figma-page-heading) h2{font-size:28px}
 .school-workspace #main-app .school-heading-actions{width:100%;gap:8px;align-items:stretch}
 .school-workspace #main-app .school-heading-actions .btn{flex:1;padding-inline:10px}
 .school-workspace #main-app #btn-refresh-students{flex:0 0 112px}
 .school-workspace #page-dashboard .figma-header-action{align-self:flex-start}
 .school-workspace #page-dashboard>.portal-segments{gap:22px;margin-bottom:24px}
 .school-workspace #page-dashboard #dash-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .school-workspace #page-dashboard #dash-stats .stat-card{padding:18px 16px;border-bottom:1px solid var(--line)}
 .school-workspace #page-dashboard #dash-stats .stat-card:nth-child(2){border-right:0}
 .school-workspace #page-dashboard #dash-stats .stat-card:nth-child(3){border-bottom:0;border-right:1px solid var(--line);padding-left:0}
 .school-workspace #page-dashboard #dash-stats .stat-card:nth-child(4){border-bottom:0}
 .school-workspace #page-dashboard #dash-stats .stat-num{font-size:36px}
 .school-workspace #school-overview-columns{margin-top:28px}
 .school-workspace #page-dashboard #dash-recent-exams .portal-data-row{padding:14px 0;border:0;border-top:1px solid var(--line);background:transparent}
 .school-workspace #page-dashboard #dash-recent-exams td{padding:6px 0}
 .school-workspace .school-dashboard-logo{width:80px;height:32px}
}
@media(max-width:360px){.school-workspace #main-app .school-heading-actions{flex-direction:column}.school-workspace #main-app #btn-refresh-students{flex:auto}.school-workspace #main-app>.content{padding-inline:16px}}
@media(prefers-reduced-motion:reduce){.school-workspace #main-app :is(.btn,.school-refresh-icon){transition:none}}

.school-workspace #main-app #page-school-settings .school-heading-copy{flex:1 1 100%;text-align:center}
.school-workspace #main-app #page-school-settings .school-heading-copy p{margin-inline:auto;text-align:center}
