*{box-sizing:border-box}body{margin:0;background:#eef2f7;color:#142239;font:16px/1.5 system-ui,sans-serif}header{background:#102643;color:white;padding:20px 5%;display:flex;gap:20px;align-items:center;flex-wrap:wrap}header strong{font-size:26px}header span,footer{font-size:12px;letter-spacing:.05em}main{max-width:580px;margin:32px auto;padding:0 18px}aside{background:#fff6de;border:1px solid #d8b66a;padding:14px;border-radius:10px;font-size:13px}section{background:white;border:1px solid #dce3eb;border-radius:14px;padding:28px;margin:22px 0;box-shadow:0 10px 25px #152e4710}h1{margin:0;font-size:28px}label{display:block;font-weight:600;margin:18px 0 6px}input,button{font:inherit;width:100%;padding:12px;border-radius:7px}input{border:1px solid #9baabc}button{background:#153d70;color:white;border:0;margin-top:20px;font-weight:700;cursor:pointer}button:disabled{opacity:.5;cursor:wait}#message{overflow-wrap:anywhere;color:#243c59}footer{text-align:center;padding:20px;color:#53647a}[hidden]{display:none!important}
main.wide{max-width:1080px}.dash-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}.eyebrow{font-size:12px;font-weight:700;letter-spacing:.06em;margin:0 0 6px;color:#53647a}.muted{color:#53647a}.secondary{width:auto;margin:0;background:#e6edf5;color:#153d70}.dash-heading .muted{margin:5px 0 0}nav{display:flex;gap:6px;border-bottom:1px solid #dce3eb;margin:24px 0 20px;flex-wrap:wrap}nav .tab{width:auto;background:transparent;color:#53647a;margin:0;border-radius:0;border-bottom:3px solid transparent;padding:10px 15px}nav .tab.active{border-color:#153d70;color:#153d70}.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.metrics div{border:1px solid #dce3eb;background:#f5f8fc;padding:17px;border-radius:10px}.metrics strong{display:block;font-size:34px}.metrics span{color:#53647a;font-size:14px}.class-row{display:grid;grid-template-columns:12px 1fr auto 12px;align-items:center;gap:12px;text-align:left;background:white;border:1px solid #dce3eb;color:#142239;margin:8px 0;font-weight:400}.class-row:hover,.class-row:focus-visible{background:#f0f5fb}.dot{width:12px;height:12px;border-radius:50%;background:#a5a5a5;border:1px solid #0002}.dot.orange{background:#ec9239}.dot.red{background:#ce4747}.dot.blue{background:#4685cc}.dot.green{background:#40a269}.dot.white{background:#fff;border-color:#8995a6}select{font:inherit;width:100%;padding:12px;border:1px solid #9baabc;border-radius:7px;background:white;color:#142239}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%}td,th{text-align:left;padding:12px;border-bottom:1px solid #dce3eb}th{background:#f5f8fc}.exam-card{border:1px solid #dce3eb;border-radius:10px;padding:16px;margin:10px 0}.exam-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.exam-heading h3{margin:0;font-size:17px}.status{border-radius:20px;background:#f3ead3;color:#684e16;padding:4px 12px;text-transform:capitalize;font-size:13px;font-weight:600}.note{border-top:1px solid #dce3eb;padding-top:16px;margin:24px 0 0;color:#53647a;font-size:13px}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #397dc4;outline-offset:2px}@media(max-width:540px){section{padding:18px}.metrics{gap:6px}.metrics div{padding:10px}.metrics strong{font-size:25px}.metrics span{font-size:11px}.class-row{gap:8px;font-size:14px}nav .tab{padding:9px}.dash-heading h1{font-size:23px}}
.timer-box{margin:22px 0;padding:20px;border:1px solid #dce3eb;border-radius:10px;background:#f5f8fc}.timer-box span{display:block;color:#53647a;font-size:14px}.timer-box strong{font-size:48px;font-variant-numeric:tabular-nums;letter-spacing:.04em}#attemptLogout{margin-top:12px}
#workPanel{margin:24px 0;padding:16px;border:1px solid #dce3eb;border-radius:10px}#workText{width:100%;font:inherit;padding:12px;border:1px solid #9baabc;border-radius:7px;resize:vertical}#saveStatus{font-size:14px;color:#243c59}#retrySave{width:auto;margin-top:0}
#explorerMount{margin:12px 0 24px}.fs-instructions{background:#f5f8fc;border:1px solid #dce3eb;border-radius:10px;padding:18px}.fs-instructions li{margin:10px 0}.fs-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:14px;margin-top:16px}.fs-tree,.fs-actions{border:1px solid #dce3eb;border-radius:10px;padding:14px;min-width:0}.fs-layout h3{margin:0 0 8px}.fs-btn{background:#e6edf5;color:#153d70;padding:8px 10px;margin:5px 0;font-size:14px;text-align:left}.fs-node{background:white;color:#142239;border:1px solid transparent;overflow-wrap:anywhere}.fs-node.selected{border-color:#6584a7;background:#e6edf5}.fs-depth-1{padding-left:8px}.fs-depth-2{padding-left:16px}.fs-depth-3{padding-left:24px}.fs-depth-4,.fs-depth-5,.fs-depth-6{padding-left:28px}.fs-path,.fs-content{overflow-wrap:anywhere;white-space:pre-wrap;background:#f5f8fc;padding:8px;border-radius:6px;font-size:13px}.fs-actions textarea{display:block;width:100%;font:inherit;border:1px solid #9baabc;border-radius:7px;padding:8px;resize:vertical}.fs-message{font-size:14px;color:#153d70}main:has(#attemptPanel:not([hidden])){max-width:1100px}@media(max-width:650px){.fs-layout{grid-template-columns:1fr}}
.results-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.results-head button{width:auto;white-space:nowrap}.results-head h2{margin-top:0}#resultRows button{width:auto;white-space:nowrap;font-size:13px;padding:8px 10px;margin:4px 0}#resultRows .status{display:inline-block;margin:2px 0}#resultDetails{margin-top:24px}#resultDetails table{font-size:14px}#resultsStatus{font-size:14px;color:#52647c}@media(max-width:650px){.results-head{align-items:flex-start;flex-direction:column}}

.moderation-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.moderation-summary>div{border:1px solid #dce3eb;border-radius:10px;background:#f5f8fc;padding:16px}.moderation-summary span{display:block;color:#53647a;font-size:13px}.moderation-summary strong{font-size:30px;font-variant-numeric:tabular-nums}.moderation-mark{width:66px!important;padding:6px!important;margin:0!important;display:inline-block}.moderation-view textarea{width:100%;min-width:150px;resize:vertical;font:inherit;border:1px solid #a0afc1;border-radius:5px;padding:7px;box-sizing:border-box}.moderation-view textarea:disabled{opacity:.55}.review-evidence details{border:1px solid #dce3eb;border-radius:8px;margin:10px 0;padding:14px}.review-evidence summary{font-weight:650;cursor:pointer}.review-file{margin-top:9px}.review-file pre{margin:4px 0 8px}.review-word-stage{overflow:auto;background:#e5e6e8;padding:16px;max-height:550px}.review-word-stage .w-page{zoom:.75}.review-evidence dt{font-weight:600;margin-top:8px}.review-evidence dd{margin:3px 0 8px}.moderation-view .table-wrap{overflow-x:auto}.moderation-view td{vertical-align:top}

.export-tools{border:1px solid #dce3eb;border-radius:10px;background:#f5f8fc;padding:16px;margin:16px 0}.export-tools h3{margin:0}.export-tools p{margin:6px 0}.export-controls{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end}.export-controls label{margin:0}.export-controls button{width:auto;white-space:nowrap;margin:0}.export-controls select{margin:4px 0 0}.export-controls+ p{font-size:14px;color:#52647c}@media(max-width:700px){.export-controls{grid-template-columns:1fr}}

.arrangement-percent{width:76px!important;margin:0!important;display:inline-block;padding:7px!important}#arrangementRows button{width:auto;margin:0;padding:7px 12px}#arrangementStatus{font-size:14px;color:#52647c}#arrangementRows td{vertical-align:middle}nav{flex-wrap:wrap}

.paper-actions{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:12px 0}
.paper-actions>div{flex:1;min-width:200px}.paper-actions button{width:auto;margin:0;padding:11px 15px}
.paper-fieldset{border:1px solid #dce3eb;border-radius:10px;padding:14px 16px;margin:16px 0;min-width:0}
.paper-fieldset legend{font-weight:700;padding:0 8px}.paper-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}.paper-grid label{margin:5px 0;font-size:14px}.paper-grid input{margin-top:5px;font-weight:400}#paperStatus{color:#153d70}#paperPreviewRoot{border-top:2px solid #dce3eb;margin-top:24px;padding-top:16px}@media(max-width:650px){.paper-grid{grid-template-columns:1fr}}

/* Single-question presentation. The editor state is never remounted by navigation. */
.question-mode .fs-instructions{display:none!important}
.question-navigation{background:#f5f8fc;border:1px solid #c8d7e7;border-left:4px solid #174879;border-radius:10px;padding:18px;margin:14px 0 18px}
.question-meta{font-size:12px;font-weight:750;letter-spacing:.06em;color:#355778;margin:0 0 8px}
.question-prompt{font-size:19px;line-height:1.45;margin:0 0 14px;overflow-wrap:anywhere}
.question-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) minmax(0,1fr);align-items:end;gap:12px}
.question-controls button,.question-controls label{margin:0}.question-controls label{font-size:12px;color:#53647a}.question-controls select{width:100%;margin:4px 0 0}.question-controls button:disabled{cursor:default}
.question-navigation>.muted{font-size:12px;margin:10px 0 0}
@media(max-width:650px){.question-controls{grid-template-columns:1fr 1fr}.question-controls label{grid-column:1/-1;grid-row:1}}

/* Individual, numbered instructions within each practical question. */
.question-steps{margin:0;padding-left:1.6em;font-size:17px;font-weight:500;line-height:1.65}
.question-steps>li{padding-left:5px;margin:0 0 10px}
.question-steps>li::marker{font-weight:700;color:#174879}
.question-steps ul{margin:6px 0 10px;padding-left:1.35em}
.question-steps ul li{margin:2px 0;font-weight:600;overflow-wrap:anywhere}
.question-marks{margin:8px 0 16px;text-align:right;font-size:14px;font-weight:700;color:#355778}
.question-draft{border-top:1px solid #dce3eb;padding-top:10px;margin-top:12px}
.question-draft h4{margin:0 0 10px}

/* Question-scoped retry lives beside navigation, not the final submission. */
.question-retry{border-top:1px solid #d4deeb;margin-top:12px;padding-top:12px;display:flex;align-items:flex-start;gap:8px 14px;flex-wrap:wrap}
.question-retry button{width:auto;margin:0;font-size:14px}.question-retry>.muted{flex:1;min-width:180px;margin:0;font-size:12px}
.question-retry-status{width:100%;margin:0;color:#153d70;font-size:13px}.question-retry-status:empty{display:none}

.arrangement-option{display:flex;align-items:center;gap:8px;font-size:14px;margin:5px 0}.arrangement-option input{width:auto;margin:0}.large-question-text .question-steps{font-size:24px;line-height:1.65}.large-question-text .question-meta,.large-question-text .question-marks{font-size:18px}.question-speech{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 14px}.question-speech button{width:auto;margin:0}.question-speech p{font-size:13px;margin:0}

.break-notice{border:2px solid #a66d21;background:#fff6de;color:#65430c;border-radius:10px;padding:20px;font-size:18px;font-weight:600;margin:16px 0}.break-attempt-card{border-top:1px solid #dce3eb;padding:12px 0}.break-attempt-card p{margin:4px 0}.break-attempt-card button{width:auto;margin:8px 0 0}

.export-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.export-controls button{justify-self:start}.exam-release-line{padding:8px 0;border-top:1px solid #dce3eb}.exam-release-line p{margin:2px 0;font-size:13px}@media(max-width:700px){.export-controls{grid-template-columns:1fr}}

.progress-metrics{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));margin-top:16px}.progress-metrics strong{font-variant-numeric:tabular-nums}.progress-metrics span{font-size:12px}#progressRows td{vertical-align:top}#progressRows .muted{font-size:13px;margin-top:4px}

.attendance-cell{min-width:185px}.attendance-cell select{font-size:13px;padding:8px}.attendance-cell button{font-size:12px;padding:7px 10px;margin:6px 0 0;width:auto}#progressAttendanceSummary{border-top:1px solid #dce3eb;padding-top:10px}


/* File Explorer 2.0 — scoped Windows 11-inspired exam workspace.
   No OneDrive/status column; these are entirely virtual files. */
#explorerMount.wx-mount{max-width:100%;margin:8px 0 22px;font-family:"Segoe UI",Arial,sans-serif;line-height:1.35;color:#202124;font-size:14px}
#explorerMount .wx-frame{position:relative;width:100%;min-height:580px;border:1px solid #cfd6de;border-radius:10px;overflow:hidden;background:#fff;box-shadow:0 5px 22px #20305016}
#explorerMount .wx-frame *{box-sizing:border-box}
#explorerMount .wx-button{font-family:inherit;font-size:13px;line-height:1.3;font-weight:400;width:auto;max-width:100%;margin:0;padding:7px 10px;color:#202124;background:transparent;border:1px solid transparent;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;text-align:left}
#explorerMount .wx-button:hover:not(:disabled){background:#e8eef5;border-color:#dbe4ee}
#explorerMount .wx-button:focus-visible,#explorerMount .wx-row:focus-visible,#explorerMount .wx-menu-option:focus-visible{outline:2px solid #1875cb;outline-offset:-2px}
#explorerMount .wx-button:disabled{opacity:.42;cursor:default}
#explorerMount .wx-icon-button{width:34px;height:34px;min-width:34px;padding:6px}
#explorerMount .wx-icon-button svg{width:18px;height:18px}
#explorerMount .wx-text-button{height:34px;padding:6px 11px}
#explorerMount .wx-tabbar{height:40px;background:#f1f2f4;display:flex;align-items:end;padding:0 11px;gap:15px;border-bottom:1px solid #e2e4e8}
#explorerMount .wx-tab{height:34px;display:flex;align-items:center;width:210px;border:1px solid #e0e3e8;border-bottom:0;border-radius:9px 9px 0 0;padding:0 14px;background:#fff;font-size:13px;font-weight:600}
#explorerMount .wx-tab-helper{font-size:12px;color:#7b8490;padding-bottom:11px}
#explorerMount .wx-address-row{min-height:58px;padding:10px 11px;display:flex;gap:4px;align-items:center;background:#fff;border-bottom:1px solid #e5e8eb}
#explorerMount .wx-breadcrumbs{display:flex;gap:2px;align-items:center;flex:1;min-width:80px;height:36px;overflow:hidden;border:1px solid #e1e5ea;background:#fbfcfd;border-radius:5px;padding:0 6px;margin:0 7px}
#explorerMount .wx-breadcrumbs .wx-crumb{font-weight:400;white-space:nowrap;flex-shrink:1;min-width:0;text-overflow:ellipsis;overflow:hidden;padding:5px 6px}
#explorerMount .wx-breadcrumbs .wx-crumb:disabled{color:#263241;opacity:1}
#explorerMount .wx-crumb-arrow{color:#717b86;font-size:20px}
#explorerMount input.wx-search{display:block;flex:0 1 230px;min-width:100px;width:230px;height:36px;margin:0;padding:5px 12px;border:1px solid #e1e5ea;border-radius:5px;background:#fbfcfd;font:13px "Segoe UI",Arial,sans-serif;color:#253142}
#explorerMount .wx-toolbar{height:55px;padding:8px 12px;display:flex;align-items:center;gap:10px;border-bottom:1px solid #e5e9ed;background:#fff;overflow-x:auto}
#explorerMount .wx-toolbar-divider{display:block;flex:0 0 1px;height:25px;background:#dce2e9;margin:0 5px}
#explorerMount .wx-new-button{margin-right:6px}
#explorerMount .wx-area{display:grid;grid-template-columns:181px minmax(0,1fr);min-height:410px;background:#fff}
#explorerMount .wx-sidebar{padding:13px 7px 12px;border-right:1px solid #e8ecf0;min-width:0;display:block;background:#fff}
#explorerMount .wx-sidebar .wx-side-button{width:100%;height:35px;justify-content:flex-start;padding:6px 10px;border-radius:4px;gap:11px;white-space:nowrap;overflow:hidden}
#explorerMount .wx-sidebar .wx-side-button.wx-current{background:#ddeafa;color:#163b62}
#explorerMount .wx-side-glyph{min-width:19px;font-size:16px;text-align:center;color:#1583c7}
#explorerMount .wx-sidebar-divider{height:1px;background:#e1e5e8;margin:10px 8px}
#explorerMount .wx-filepane{min-width:0;min-height:410px;overflow:auto}
#explorerMount .wx-filetable{width:100%;padding:0 10px 16px 8px;min-height:100%;font-size:13px;user-select:none}
#explorerMount .wx-columns,#explorerMount .wx-row{display:grid;grid-template-columns:minmax(145px,1.8fr) minmax(90px,.95fr) minmax(90px,1fr) minmax(54px,.55fr);align-items:center;gap:0}
#explorerMount .wx-columns{height:37px;border-bottom:1px solid #e6ebef;position:sticky;top:0;background:#fff;z-index:1}
#explorerMount .wx-column-label{height:30px;justify-content:flex-start;width:100%;font-size:12px;color:#5d6874;border-radius:0;padding:5px 11px;border-right:1px solid #e9edf1;overflow:hidden;white-space:nowrap}
#explorerMount .wx-column-label:disabled{opacity:1;color:#5d6874;cursor:default}
#explorerMount .wx-row{min-height:36px;border:1px solid transparent;border-radius:4px;cursor:default;color:#1c2734}
#explorerMount .wx-row:hover{background:#f1f5f9}
#explorerMount .wx-row.wx-selected{background:#d9eafa;border-color:#b8d4f1}
#explorerMount .wx-row.wx-cut{opacity:.55}
#explorerMount .wx-cell-name{display:flex;align-items:center;gap:10px;padding:6px 8px 6px 10px;min-width:0;overflow:hidden}
#explorerMount .wx-name-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#explorerMount .wx-item-detail{color:#6d7884;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:4px 10px;font-size:12px}
#explorerMount .wx-folder-icon{width:19px;height:13px;background:linear-gradient(#ffd85a,#f5b72d);border:1px solid #eab12e;border-radius:2px;position:relative;flex-shrink:0;margin-top:4px}
#explorerMount .wx-folder-icon:before{content:"";position:absolute;top:-4px;left:0;width:9px;height:4px;border-radius:2px 2px 0 0;background:#f4c753}
#explorerMount .wx-text-icon{height:20px;width:15px;flex-shrink:0;border:1px solid #94a6c4;border-radius:2px;background:linear-gradient(#f9fbfe,#e1edfc);position:relative}
#explorerMount .wx-text-icon:before{content:"";position:absolute;left:3px;top:6px;width:8px;height:1px;background:#4286b9;box-shadow:0 4px 0 #4286b9,0 8px 0 #4286b9}
#explorerMount input.wx-inline-rename{width:100%;max-width:240px;min-width:90px;padding:2px 4px;margin:0;border:1px solid #1876d2;border-radius:1px;height:23px;font:13px "Segoe UI",Arial,sans-serif;background:white}
#explorerMount .wx-empty{padding:40px 15px;text-align:center;color:#7b8794;font-size:13px}
#explorerMount .wx-compact-view .wx-columns{display:none}
#explorerMount .wx-compact-view .wx-row{grid-template-columns:minmax(0,1fr);max-width:360px}
#explorerMount .wx-compact-view .wx-item-detail{display:none}
#explorerMount .wx-footer{border-top:1px solid #e6eaef;min-height:29px;display:flex;gap:18px;justify-content:space-between;align-items:center;padding:4px 12px;font-size:12px;color:#596675}
#explorerMount .wx-footer-notice{color:#7c8692}
#explorerMount .wx-status{font-size:12px;padding:0 12px;margin:0;color:#315b81;min-height:0}
#explorerMount .wx-status:not(:empty){padding-top:5px;padding-bottom:8px}
#explorerMount .wx-popup{position:absolute;z-index:8;min-width:216px;max-width:260px;padding:6px;background:#f9fbfe;border:1px solid #d7dfe8;border-radius:9px;box-shadow:0 6px 24px #0003;display:flex;flex-direction:column}
#explorerMount .wx-menu-option{font:13px "Segoe UI",Arial,sans-serif;border:0;background:transparent;color:#222d3b;padding:10px 12px;margin:0;text-align:left;border-radius:5px;cursor:pointer;width:100%}
#explorerMount .wx-menu-option:hover:not(:disabled){background:#e6eef8}
#explorerMount .wx-menu-option:disabled{opacity:.43;cursor:default}
#explorerMount .wx-editor-overlay{position:absolute;inset:0;background:#26384b52;display:flex;justify-content:center;align-items:center;z-index:10;padding:18px}
#explorerMount .wx-editor{width:min(620px,100%);height:min(410px,90%);min-height:270px;background:#fff;border:1px solid #b8c6d5;border-radius:9px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 15px 38px #0004}
#explorerMount .wx-editor-title{display:flex;align-items:center;justify-content:space-between;padding:7px 12px;border-bottom:1px solid #e3e7ec;background:#f5f7fa}
#explorerMount .wx-editor-title strong{font-size:13px}
#explorerMount .wx-editor-actions{display:flex;gap:8px;padding:7px 10px;border-bottom:1px solid #e3e7ec}
#explorerMount textarea[data-wx-editor]{margin:0;border:0;border-radius:0;outline:none;resize:none;width:100%;height:100%;flex:1;padding:14px;font:14px/1.6 Consolas,monospace;color:#1b2430;background:#fff}
#explorerMount textarea[data-wx-editor]:disabled{background:#f2f4f7}
#explorerMount .wx-editor-hint{font-size:11px;color:#718091;padding:6px 12px;border-top:1px solid #ebeff3}
@media(max-width:800px){
 #explorerMount .wx-area{grid-template-columns:140px minmax(0,1fr)}
 #explorerMount .wx-toolbar{gap:4px;padding:7px}
 #explorerMount .wx-columns,#explorerMount .wx-row{grid-template-columns:minmax(120px,1.8fr) minmax(80px,1fr) minmax(70px,.9fr) minmax(45px,.4fr)}
 #explorerMount .wx-item-detail{font-size:11px;padding:3px 4px}
 #explorerMount .wx-footer-notice{display:none}
}
@media(max-width:590px){
 #explorerMount .wx-area{grid-template-columns:110px minmax(0,1fr)}
 #explorerMount .wx-side-glyph{display:none}
 #explorerMount .wx-sidebar .wx-side-button{font-size:12px;padding:6px!important}
 #explorerMount .wx-columns,#explorerMount .wx-row{grid-template-columns:minmax(120px,1fr) minmax(80px,.7fr)}
 #explorerMount .wx-columns>:nth-child(2),#explorerMount .wx-columns>:nth-child(4),#explorerMount .wx-row>:nth-child(2),#explorerMount .wx-row>:nth-child(4){display:none}
 #explorerMount input.wx-search{min-width:70px;width:90px}
}


/* Virtual PDFs are recognisable in File Explorer, but never editable in Notepad. */
.wx-pdf-icon{
  display:inline-flex!important;align-items:center;justify-content:center;
  width:21px;height:25px;min-width:21px;
  border:1px solid #c94b43;border-radius:2px;
  background:#cc453f;color:#fff;
}
.wx-pdf-icon::before{content:"PDF";font:800 8px/1 "Segoe UI",Arial,sans-serif}
.wx-pdf-reader{padding:22px;background:#f8fafc;color:#26354b;line-height:1.6;font-size:13px}
.wx-pdf-reader p{margin:9px 0;overflow-wrap:anywhere}
.wx-pdf-reader strong{font-size:17px}


/* Real PDF viewer inside virtual File Explorer.
   Keep the browser's built-in PDF page controls, zoom, and scrolling visible. */
#explorerMount .wx-editor.wx-pdf-dialog{
 width:min(1020px,99%);height:min(840px,97%);
 min-height:390px;max-height:95vh;
}
#explorerMount .wx-pdf-dialog .wx-pdf-reader{
 flex:1;min-height:0;display:flex;flex-direction:column;
 padding:0;background:#e5e9ef;color:#2b3950;
 overflow:hidden;
}
#explorerMount .wx-pdf-dialog .wx-editor-title{
 min-height:43px;background:#f8fafc;
}
#explorerMount .wx-pdf-dialog .wx-editor-title strong{font-size:14px}
#explorerMount .wx-pdf-dialog .wx-pdf-controls{
 display:flex;align-items:center;justify-content:space-between;gap:12px;
 padding:7px 14px;border-bottom:1px solid #d7dfe9;
 background:#fff;min-height:47px;
}
#explorerMount .wx-pdf-dialog .wx-pdf-explain{font-size:12px;color:#596779}
#explorerMount .wx-pdf-dialog .wx-pdf-frame{
 display:block;width:100%;height:100%;min-height:0;flex:1;
 border:none;background:#dedfe5;
}
#explorerMount .wx-pdf-dialog .wx-pdf-disclaimer{
 padding:7px 12px;margin:0;
 border-top:1px solid #cfd6df;background:#f4f6f9;
 font:11px/1.4 "Segoe UI",Arial,sans-serif;color:#58657b;
}
@media(max-width:650px){
 #explorerMount .wx-pdf-dialog .wx-pdf-controls{flex-wrap:wrap}
 #explorerMount .wx-editor.wx-pdf-dialog{height:min(740px,97%);width:100%}
}


/* Sticky question ribbon stays BELOW the fixed teacher/student top bars.
   Never make the whole ribbon an internally scrollable pane: wheel scrolling
   used to hide the actual question while leaving the buttons in view. */
.question-navigation:not([hidden]){
 position:sticky;
 top:82px;
 z-index:25;
 padding:11px 15px;
 margin:10px 0 13px;
 max-height:none;
 overflow:visible;
 scroll-margin-top:82px;
 background:#f7faff;
 border-color:#b8cce2;
 box-shadow:0 4px 17px #142b4850;
}
.question-navigation .question-meta{
 font-size:11px;
 margin:0 0 4px;
}
.question-navigation .question-prompt{
 font-size:16px;
 line-height:1.3;
 margin:0 0 7px;
}
.question-navigation .question-steps{font-size:15px;line-height:1.4}
.question-navigation .question-steps>li{margin:0 0 3px}
.question-navigation .question-steps ul{margin:3px 0 4px}
.question-navigation .question-steps ul li{margin:1px 0}
.question-navigation .question-marks{margin:4px 0 0;font-size:12px}
.question-navigation .question-controls{
 grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) minmax(0,1fr);
 gap:8px;
 align-items:end;
}
.question-navigation .question-controls button{padding:8px 11px;font-size:13px}
.question-navigation .question-controls label{font-size:11px}
.question-navigation .question-controls select{padding:8px;margin:2px 0 0;font-size:13px}
.question-extra{margin:6px 0 0;border-top:1px solid #d5e1ed;padding-top:4px}
.question-extra>summary{
 cursor:pointer;
 color:#27547b;
 font-size:12px;
 font-weight:650;
 list-style-position:inside;
}
.question-extra[open]>.muted{font-size:12px;margin:8px 0 0}
.question-extra .question-retry{margin-top:7px;padding-top:8px}
.question-extra .question-speech{margin:8px 0}
.large-question-text .question-steps{font-size:22px}
@media(max-width:700px){
 .question-navigation:not([hidden]){top:72px;padding:9px;max-height:none;scroll-margin-top:72px}
 .question-navigation .question-controls{grid-template-columns:1fr 1fr}
 .question-navigation .question-controls label{grid-column:1/-1;grid-row:1}
 .question-navigation .question-controls button{font-size:12px}
 .question-navigation .question-prompt{font-size:15px}
}


/* Skillsbox-inspired, independent question numbers directly beneath the prompt.
   Status colours represent student confirmation only, never actual marks. */
.question-navigation .question-controls{display:block}
.question-navigation .question-number-strip{
 display:flex;
 flex-wrap:nowrap;
 align-items:center;
 gap:4px;
 overflow-x:auto;
 padding:6px 2px 10px;
 margin:2px 0 4px;
 scrollbar-width:thin;
 overscroll-behavior-x:contain;
}
.question-navigation .question-number{
 flex:0 0 37px;
 min-width:37px;
 width:37px;
 height:38px;
 margin:0;
 border:1px solid #c3d0e0;
 border-radius:5px;
 background:#e6ebf1;
 color:#203751;
 padding:4px;
 font:700 14px system-ui,sans-serif;
 text-align:center;
 cursor:pointer;
}
.question-navigation .question-number:hover{border-color:#3674af;background:#d1e4f7}
.question-navigation .question-number[data-state="answered"]{background:#d7f3e5;border-color:#6dbd92;color:#175334}
.question-navigation .question-number[data-state="skipped"]{background:#fff0ce;border-color:#d8a74a;color:#78500b}
.question-navigation .question-number.current{
 background:#006da6;
 border-color:#006da6;
 box-shadow:inset 0 0 0 2px #fff,0 0 0 2px #006da6;
 color:#fff;
}
.question-navigation .question-number.current[data-state="answered"]{box-shadow:inset 0 -4px #268b55,0 0 0 2px #006da6}
.question-navigation .question-number:focus-visible,.question-navigation .question-actions button:focus-visible{
 outline:3px solid #3674af;
 outline-offset:2px;
}
.question-navigation .question-actions{display:flex;justify-content:flex-end;gap:9px;align-items:center}
.question-navigation .question-actions button{
 width:auto;
 min-width:90px;
 margin:0;
 padding:9px 18px;
 font-size:14px;
}
.question-navigation .question-actions button:last-child{background:#006da6;color:white}
.question-navigation .question-progress{margin:3px 0 0;font-size:12px;color:#355778;text-align:right}
.question-navigation .question-retry-status{margin:4px 0 0;font-size:12px;color:#355778}
.question-navigation .question-retry-status:empty{display:none}
@media(max-width:530px){
 .question-navigation .question-number{flex-basis:34px;width:34px;min-width:34px;height:35px}
 .question-navigation .question-actions{justify-content:stretch}
 .question-navigation .question-actions button{flex:1;min-width:0;padding:9px 5px}
}

/* Programme website navigation for provisional branded preview */
.preview-home{margin-left:auto;color:#dceefa;text-decoration:none;font-size:13px;font-weight:700;border:1px solid #6f849c;border-radius:7px;padding:8px 12px;white-space:nowrap}
.preview-home:hover,.preview-home:focus-visible{background:#204668;color:#fff}
@media(max-width:570px){header .preview-home{margin-left:0}header strong{font-size:23px}}


/* FWD Assess — teacher dashboard visual refresh (PR #4).
   Scoped to teacher-ui so student exam editors and marking states are untouched. */
.teacher-ui{
 --brand-navy:#223f85;--brand-ink:#172f46;--brand-teal:#223f85;
 --school-red:#d52029;--school-gold:#ffc514;
 --brand-border:#dce7ee;--brand-muted:#62798a;
 background:#f3f5fa;color:var(--brand-ink);
 font-family:Inter,"Segoe UI",system-ui,sans-serif;
}
.teacher-ui .teacher-topbar{
 position:sticky;top:0;z-index:80;
 display:flex;align-items:center;justify-content:space-between;
 gap:20px;padding:14px max(26px,calc((100% - 1440px)/2));
 background:#223f85;color:#fff;border-bottom:1px solid #38559c;
 box-shadow:inset 0 -3px #d52029,0 6px 24px #091f3620;
}
.teacher-ui .teacher-brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:white}
.teacher-ui .teacher-mark{
 width:46px;height:46px;display:grid;place-items:center;flex:none;
 background:#19316c;border-radius:11px;font-size:25px;
 font-weight:850;letter-spacing:-2px;
}
.teacher-ui .teacher-mark svg{color:#ffc514}
.teacher-ui .teacher-brand-text{display:block}
.teacher-ui .teacher-brand-text strong{display:block;color:#fff;font-size:22px;line-height:1.1;letter-spacing:-.035em}
.teacher-ui .teacher-brand-text strong b{color:#ffc514;font-weight:650}
.teacher-ui .teacher-brand-text small{display:block;letter-spacing:.13em;color:#b0c7d8;font-size:10px;font-weight:750;margin-top:5px}
.teacher-ui .teacher-topbar .preview-home{
 margin-left:auto;border-color:#5a7188;padding:10px 14px;
 color:#e4f0fa;border-radius:9px;
}
.teacher-ui main.teacher-main{max-width:670px;margin:30px auto;padding:0 24px}
.teacher-ui main.teacher-main.wide{max-width:1490px}
.teacher-ui main.teacher-main>aside{
 border:1px solid #dce7ee;background:#f7f9fc;border-radius:8px;
 font-size:12px;color:#465e70;padding:10px 14px;
}
.teacher-ui #login.teacher-login{
 max-width:520px;margin:50px auto 24px;
 border:1px solid #e0e9ef;border-radius:18px;
 padding:44px 42px 36px;
 background:#fff;box-shadow:0 20px 48px #18365112;
}
.teacher-ui .login-kicker{
 margin:0 0 13px;color:#b51c26;font-weight:850;font-size:11px;letter-spacing:.15em;
}
.teacher-ui #login h1{font-size:34px;letter-spacing:-.045em;line-height:1.2}
.teacher-ui #login>p:not(.login-kicker){font-size:14px;color:#6b7c8a;line-height:1.75;max-width:390px}
.teacher-ui #login form{margin-top:27px}
.teacher-ui #login form label{font-size:13px;margin:17px 0 7px}
.teacher-ui #login form input{
 background:#f9fbfd;border:1px solid #cbdbe6;border-radius:9px;
 padding:13px 15px;font-size:15px;
}
.teacher-ui #login form input:focus{border-color:#3659a8;outline:3px solid #dbe5ff}
.teacher-ui #login #submit{
 margin-top:28px;background:#223f85;padding:14px;border-radius:9px;
 font-size:14px;box-shadow:0 8px 18px #12365322;
}
.teacher-ui #login #submit:not(:disabled):hover{background:#19316c}
.teacher-ui #dashboard.teacher-dashboard:not([hidden]){
 display:grid;grid-template-columns:232px minmax(0,1fr);
 grid-template-rows:auto minmax(0,auto) auto;
 gap:23px;align-items:start;
 margin:24px 0 28px;padding:0;border:none;
 background:transparent;box-shadow:none;
}
.teacher-ui #dashboard>.dash-heading{
 grid-column:1/-1;grid-row:1;
 display:flex;align-items:center;gap:24px;justify-content:space-between;
 margin:0 0 7px;padding:21px 26px;
 background:linear-gradient(110deg,#203b7e,#2c4c96);
 border-radius:15px;color:#fff;
 box-shadow:0 12px 30px #1a416322;
}
.teacher-ui #dashboard>.dash-heading .eyebrow{color:#ffe083;margin-bottom:7px}
.teacher-ui #dashboard>.dash-heading h1{color:#fff;font-size:30px;letter-spacing:-.045em}
.teacher-ui #dashboard>.dash-heading .muted{color:#d0e0ec;font-size:12px}
.teacher-ui #dashboard #logout{
 flex:none;border:1px solid #7d9aad;background:#ffffff16;
 color:#fff;border-radius:9px;font-size:13px;padding:11px 16px;white-space:nowrap;
}
.teacher-ui #dashboard #logout:hover{background:#ffffff2d}
.teacher-ui #dashboard>nav{
 grid-column:1;grid-row:2;
 position:sticky;top:100px;align-self:start;
 display:flex;flex-direction:column;gap:5px;
 padding:15px 10px;margin:0;border:none;
 background:white;border:1px solid var(--brand-border);border-radius:15px;
 box-shadow:0 8px 22px #1a38500a;
}
.teacher-ui #dashboard>nav::before{
 content:"WORKSPACE";display:block;
 color:#8497a7;letter-spacing:.15em;font-size:10px;
 font-weight:800;margin:6px 11px 8px;
}
.teacher-ui #dashboard>nav .tab{
 display:flex;align-items:center;gap:12px;
 width:100%;height:auto;min-height:44px;
 border:0;border-left:3px solid transparent;border-radius:8px;
 margin:0;padding:11px 13px;
 background:transparent;color:#526d80;
 font-size:13px;font-weight:650;text-align:left;
}
.teacher-ui #dashboard>nav .tab::before{
 content:"◻";display:inline-grid;place-items:center;
 width:23px;height:24px;flex:none;font-size:18px;
 color:#6c899d;
}
.teacher-ui #dashboard>nav .tab[data-panel="overview"]::before{content:"▦"}
.teacher-ui #dashboard>nav .tab[data-panel="classes"]::before{content:"♙"}
.teacher-ui #dashboard>nav .tab[data-panel="exams"]::before{content:"▤"}
.teacher-ui #dashboard>nav .tab[data-panel="results"]::before{content:"◫"}
.teacher-ui #dashboard>nav .tab[data-panel="progress"]::before{content:"▥"}
.teacher-ui #dashboard>nav .tab[data-panel="arrangements"]::before{content:"◈"}
.teacher-ui #dashboard>nav .tab[data-panel="papers"]::before{content:"✎"}
.teacher-ui #dashboard>nav .tab:not(.active):hover{background:#eff6f8;color:#173f59}
.teacher-ui #dashboard>nav .tab.active{
 color:#223f85;background:#edf1fc;border-left-color:#d52029;font-weight:800;
}
.teacher-ui #dashboard>nav .tab.active::before{color:#223f85}
.teacher-ui #dashboard>.panel:not([hidden]){
 grid-column:2;grid-row:2;
 min-width:0;max-width:100%;width:100%;
 padding:29px 30px 32px;
 border:1px solid var(--brand-border);border-radius:15px;
 background:#fff;box-shadow:0 10px 30px #15344b0b;
}
.teacher-ui #dashboard>.note{grid-column:1/-1;grid-row:3;max-width:100%;margin:2px 0 0;font-size:12px}
.teacher-ui #dashboard>.panel h2{
 color:#17364d;font-size:25px;line-height:1.24;font-weight:770;
 letter-spacing:-.035em;margin:0 0 8px;
}
.teacher-ui #dashboard>.panel>h2:not(:first-child){margin-top:30px}
.teacher-ui #dashboard>.panel h3{color:#20425a;font-weight:750}
.teacher-ui #dashboard>.panel .muted{color:#657c8c}
.teacher-ui #dashboard>.panel .results-head{
 display:flex;align-items:flex-start;gap:18px;flex-wrap:wrap;
 padding-bottom:13px;
}
.teacher-ui #dashboard>.panel .results-head>div{flex:1 1 330px;min-width:0}
.teacher-ui #dashboard>.panel .results-head>.secondary{align-self:flex-start;flex-shrink:0}
.teacher-ui #dashboard>.panel .results-head .muted{font-size:13px;line-height:1.65}
.teacher-ui #dashboard>.panel .metrics{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:27px;
}
.teacher-ui #dashboard>.panel .metrics>div{
 border:1px solid #d8e0f2;border-radius:12px;
 padding:22px 18px;background:linear-gradient(160deg,#f7f9ff,#eaf0fc);
}
.teacher-ui #dashboard>.panel .metrics strong{
 color:#223f85;letter-spacing:-.055em;font-weight:800;font-size:34px;
}
.teacher-ui #dashboard>.panel .metrics span{
 color:#526e7d;font-size:12px;font-weight:650;margin-top:3px;
}
.teacher-ui #dashboard>.panel .class-row{
 display:grid;grid-template-columns:12px 1fr auto 12px;
 gap:13px;border-radius:10px;border-color:#e0e9ee;
 padding:15px 16px;box-shadow:0 2px 7px #1a486c06;
}
.teacher-ui #dashboard>.panel .class-row:hover{background:#f3f6fd;border-color:#a6b8e2}
.teacher-ui #dashboard>.panel .table-wrap{
 border:1px solid #dce6ec;border-radius:11px;
 max-width:100%;overflow-x:auto;margin-top:16px;
}
.teacher-ui #dashboard>.panel table{width:100%;border-collapse:collapse}
.teacher-ui #dashboard>.panel .table-wrap > table th{
 padding:13px 15px;border-bottom:1px solid #dce6ed;
 background:#f3f7fa;color:#465e70;white-space:normal;
 font-size:12px;font-weight:800;vertical-align:middle;
}
.teacher-ui #dashboard>.panel .table-wrap > table td{
 padding:13px 15px;border-bottom:1px solid #edf1f5;
 vertical-align:middle;font-size:13px;color:#2f4658;
}
.teacher-ui #dashboard>.panel .table-wrap > table tbody tr:nth-child(even){background:#fcfdfe}
.teacher-ui #dashboard>.panel .table-wrap > table tbody tr:hover{background:#f6fafb}
.teacher-ui #dashboard>.panel .export-tools{
 background:#f6fafb;border-color:#e1eaf0;border-radius:12px;margin:18px 0;
}
.teacher-ui #dashboard>.panel .export-controls{gap:13px;align-items:end}
.teacher-ui #dashboard>.panel .export-controls select{margin-top:6px}
.teacher-ui #dashboard>.panel > label,
.teacher-ui #dashboard>.panel .export-controls label,
.teacher-ui #dashboard>.panel .paper-actions label{
 color:#334e61;font-size:13px;font-weight:650;
}
.teacher-ui #dashboard>.panel #paperTitle,
.teacher-ui #dashboard>.panel #paperFields input,
.teacher-ui #dashboard>.panel #classSelect,
.teacher-ui #dashboard>.panel #arrangementClass,
.teacher-ui #dashboard>.panel .export-controls select,
.teacher-ui #dashboard>.panel .paper-actions select{
 border:1px solid #cbdbe5;border-radius:8px;
 background:white;color:#254356;font-size:14px;
}
.teacher-ui #dashboard>.panel #paperTitle:focus-visible,
.teacher-ui #dashboard>.panel #classSelect:focus-visible,
.teacher-ui #dashboard>.panel #arrangementClass:focus-visible,
.teacher-ui #dashboard>.panel .export-controls select:focus-visible,
.teacher-ui #dashboard>.panel .paper-actions select:focus-visible{
 outline:3px solid #dbe5ff;outline-offset:1px;border-color:#3659a8;
}
.teacher-ui #dashboard>.panel .exam-card{
 border:1px solid #dce7ed;background:#fff;
 border-radius:13px;padding:21px;margin:16px 0;
 box-shadow:0 4px 14px #0a314706;
}
.teacher-ui #dashboard>.panel .paper-fieldset{
 border:1px solid #dce8ed;border-radius:12px;background:#fafcfd;
}
.teacher-ui #dashboard>.panel .paper-fieldset legend{color:#1e5769}
.teacher-ui #dashboard>.panel .paper-actions{gap:9px;align-items:flex-end}
.teacher-ui #dashboard>.panel .paper-actions button{border-radius:8px}
.teacher-ui #dashboard>.panel>button:not(.secondary),
.teacher-ui #dashboard>.panel .paper-actions button:not(.secondary){
 background:#223f85;color:white;
}
.teacher-ui #dashboard>.panel>button:not(.secondary):hover,
.teacher-ui #dashboard>.panel .paper-actions button:not(.secondary):hover{background:#19316c}
.teacher-ui #dashboard>.panel>.secondary,
.teacher-ui #dashboard>.panel .results-head>button.secondary,
.teacher-ui #dashboard>.panel .paper-actions>button.secondary,
.teacher-ui #dashboard>.panel .exam-card > button.secondary,
.teacher-ui #dashboard>.panel .export-controls > button.secondary,
.teacher-ui #dashboard>.panel #progressOpenResults{
 background:#edf3f7;color:#20435b;border:1px solid #d7e4ec;
}
.teacher-ui #dashboard>.panel>.secondary:hover:not(:disabled),
.teacher-ui #dashboard>.panel .results-head>button.secondary:hover:not(:disabled),
.teacher-ui #dashboard>.panel .paper-actions>button.secondary:hover:not(:disabled){background:#e0eef3}
.teacher-ui #dashboard>.panel button:disabled{cursor:not-allowed;opacity:.57}
.teacher-ui #dashboard>.panel .note{
 color:#657786;font-size:12px;line-height:1.65;
}
.teacher-ui #dashboard>.panel .status{
 font-size:12px;letter-spacing:.01em;font-weight:750;
}
.teacher-ui #dashboard>.panel .progress-metrics{
 grid-template-columns:repeat(auto-fit,minmax(125px,1fr));
}
.teacher-ui #dashboard>.panel #resultDetails{
 border-top:1px solid #e0e9ef;margin-top:26px;padding-top:20px;
}
.teacher-ui #dashboard>.panel #approvedInteractivePreview{
 max-width:100%;min-width:0;
}
.teacher-ui #dashboard>.panel #approvedInteractivePreview .question-navigation{z-index:35}
.teacher-ui #message[role="status"]{font-size:13px;color:#2a6479}
.teacher-ui footer{background:#223f85;color:#b7cad9;letter-spacing:.02em}
@media(max-width:1020px){
 .teacher-ui #dashboard.teacher-dashboard:not([hidden]){grid-template-columns:185px minmax(0,1fr);gap:15px}
 .teacher-ui #dashboard>.panel:not([hidden]){padding:22px 20px}
 .teacher-ui #dashboard>nav .tab{font-size:12px;padding:11px 8px}
 .teacher-ui #dashboard>.panel .metrics{gap:8px}
 .teacher-ui #dashboard>.panel .metrics>div{padding:17px 12px}
}
@media(max-width:760px){
 .teacher-ui main.teacher-main{padding:0 13px;margin:17px auto}
 .teacher-ui .teacher-topbar{padding:12px 14px}
 .teacher-ui .teacher-mark{width:40px;height:40px}
 .teacher-ui .teacher-brand-text strong{font-size:18px}
 .teacher-ui .teacher-brand-text small{font-size:8px}
 .teacher-ui #dashboard.teacher-dashboard:not([hidden]){display:block;margin-top:16px}
 .teacher-ui #dashboard>.dash-heading{padding:20px 17px;margin-bottom:14px}
 .teacher-ui #dashboard>.dash-heading h1{font-size:24px}
 .teacher-ui #dashboard>nav{
   position:sticky;top:67px;z-index:40;
   width:100%;display:flex;flex-direction:row;flex-wrap:nowrap;
   overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;
   padding:8px;gap:5px;margin:0 0 16px;border-radius:12px;
 }
 .teacher-ui #dashboard>nav::before{display:none}
 .teacher-ui #dashboard>nav .tab{
  width:auto;min-width:max-content;flex:none;
  border:1px solid transparent;border-radius:8px;
  gap:7px;font-size:12px;padding:9px 12px;min-height:39px;
 }
 .teacher-ui #dashboard>nav .tab.active{border:1px solid #a6b8e2}
 .teacher-ui #dashboard>nav .tab::before{width:14px;font-size:13px}
 .teacher-ui #dashboard>.panel:not([hidden]){padding:23px 17px}
 .teacher-ui #dashboard>.panel .results-head{gap:12px}
 .teacher-ui #dashboard>.panel .results-head>div{flex-basis:100%}
 .teacher-ui #dashboard>.panel .metrics{gap:8px}
 .teacher-ui #dashboard>.panel .metrics>div{padding:14px 9px}
 .teacher-ui #dashboard>.panel .metrics strong{font-size:28px}
 .teacher-ui #dashboard>.panel .metrics span{font-size:11px}
 .teacher-ui #dashboard>.note{margin:14px 4px 0}
 .teacher-ui #login.teacher-login{padding:34px 24px;margin:35px auto}
}
@media(max-width:440px){
 .teacher-ui .teacher-brand-text small{display:none}
 .teacher-ui .teacher-topbar .preview-home{font-size:11px;padding:8px}
 .teacher-ui #dashboard>.dash-heading{align-items:flex-start}
 .teacher-ui #dashboard #logout{padding:10px 12px}
 .teacher-ui #dashboard>.panel .paper-grid{grid-template-columns:1fr}
 .teacher-ui #dashboard>.panel .metrics strong{font-size:26px}
}

/* Results publication and assessment category, management UI only */
.teacher-ui #dashboard>.panel .publish-result-button{
 width:auto;margin:6px 0 0;padding:9px 12px;
 border:1px solid #0f8b80;background:#0b806f;color:#fff;
 border-radius:8px;font-size:12px;font-weight:800;white-space:nowrap;
}
.teacher-ui #dashboard>.panel .publish-result-button:hover:not(:disabled){background:#086d61}
.teacher-ui #dashboard>.panel .assessment-release-category{
 border:1px solid #dce7eb;border-radius:10px;background:#f4faf9;
 padding:13px 16px;margin:12px 0 18px;
}
.teacher-ui #dashboard>.panel .assessment-release-category label{margin:0 0 5px;font-size:13px;font-weight:800}
.teacher-ui #dashboard>.panel .assessment-release-category select{max-width:320px;margin:0;border-radius:8px;background:#fff}
.teacher-ui #dashboard>.panel .assessment-release-category .muted{font-size:12px;max-width:550px;line-height:1.6}

/* Assessment Studio: guided teacher planning and outcome evidence */
.teacher-ui .studio-heading{padding:5px 0 17px;border-bottom:1px solid #dfe9ee}
.teacher-ui .studio-heading h2{font-size:24px;color:#163f55;letter-spacing:-.03em;margin:5px 0}
.teacher-ui .studio-kicker{font-size:10px;letter-spacing:.13em;font-weight:850;color:#b51c26}
.teacher-ui .studio-note{color:#61798a;font-size:13px;line-height:1.6;margin:5px 0 12px}
.teacher-ui .studio-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:15px 0}
.teacher-ui .studio-actions button,.teacher-ui .studio-stepper button,.teacher-ui .studio-type-card{width:auto;margin:0}
.teacher-ui .studio-actions button.primary,.teacher-ui #assessmentStudio button.primary,.teacher-ui #outcomeTracking button.primary{background:#223f85;border:1px solid #223f85;color:#fff}
.teacher-ui .studio-actions button.secondary{background:#eff5f8;border:1px solid #d6e5ec;color:#1e465b}
.teacher-ui .studio-stepper{display:flex;gap:7px;flex-wrap:wrap;border-bottom:1px solid #e3edf1;padding:6px 0 15px}
.teacher-ui .studio-stepper .studio-step{border-radius:9px;border:1px solid #d6e5eb;background:#f5f8fa;color:#4b6574;padding:10px 13px;font-size:12px}
.teacher-ui .studio-stepper .studio-step.current{background:#edf1fc;border-color:#a6b8e2;color:#223f85;font-weight:800}
.teacher-ui .studio-step-content,.teacher-ui .studio-library{padding:16px 0}
.teacher-ui .studio-section-heading h3{font-size:19px;color:#203d52;margin:4px 0}
.teacher-ui .studio-type-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0 22px}
.teacher-ui #assessmentStudio .studio-type-card{min-width:0;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:9px;border:1px solid #d8e5eb;background:#fff;border-radius:12px;padding:17px;min-height:153px;color:#19405a;font-weight:800;box-shadow:0 3px 12px #0a355007}
.teacher-ui #assessmentStudio .studio-type-card.selected{border:2px solid #3659a8;background:#f0f4ff;padding:16px}
.teacher-ui #assessmentStudio .studio-type-card .studio-note{font-size:12px;font-weight:400}
.teacher-ui .studio-type-meta{display:block;color:#223f85;font-size:11px;margin-top:auto}
.teacher-ui .studio-outcome-list{display:grid;gap:12px;margin:16px 0}
.teacher-ui .studio-outcome-group{border:1px solid #d9e7ed;border-radius:12px;background:#fafcfd;padding:14px}
.teacher-ui .studio-outcome-group legend{font-weight:800;color:#255569}
.teacher-ui .studio-outcome{display:flex;gap:12px;padding:12px 8px;border-bottom:1px solid #eaf0f3;align-items:flex-start}
.teacher-ui .studio-outcome:last-child{border-bottom:none}
.teacher-ui .studio-outcome>input{width:17px;min-width:17px;height:17px;margin:4px 0 0}
.teacher-ui .studio-outcome strong{font-size:13px;color:#244459}
.teacher-ui .studio-outcome .studio-note{font-size:12px;margin:3px 0}
.teacher-ui .studio-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}
.teacher-ui .studio-field{display:flex;flex-direction:column;gap:6px;margin:0;font-size:12px;color:#365468;font-weight:750;min-width:0}
.teacher-ui #assessmentStudio .studio-input,.teacher-ui #outcomeTracking .studio-input{width:100%;box-sizing:border-box;border:1px solid #cbdee6;border-radius:8px;background:#fff;padding:11px 12px;color:#203e52;font:inherit}
.teacher-ui #assessmentStudio .studio-textarea{width:100%;box-sizing:border-box;border:1px solid #cddde5;border-radius:8px;padding:10px 12px;min-height:65px;color:#203e52;font:inherit}
.teacher-ui .studio-tasks{display:grid;gap:12px;margin:16px 0}
.teacher-ui .studio-task,.teacher-ui .studio-library-item{border:1px solid #dae6ec;border-radius:12px;background:#fff;padding:17px;display:grid;gap:12px}
.teacher-ui .studio-task-heading{display:flex;gap:12px;align-items:baseline;justify-content:space-between;flex-wrap:wrap}
.teacher-ui .studio-task-heading strong{color:#254e64;font-size:14px}
.teacher-ui .studio-task-heading span{font-size:11px;color:#5e7b8b}
.teacher-ui .studio-library-item{margin:12px 0}
.teacher-ui .studio-status{color:#0f6380;background:#f0f8fb;padding:12px;border-radius:8px;font-size:13px}
.teacher-ui .studio-status:empty{display:none}
.teacher-ui .studio-safety{border-left:3px solid #bacbd5;padding:9px 14px;background:#f6f8fa;color:#617684;font-size:12px;line-height:1.6}
.teacher-ui .studio-toolbar{display:flex;align-items:end;gap:14px;flex-wrap:wrap}
.teacher-ui .studio-toolbar .studio-field{min-width:230px}
.teacher-ui .studio-legacy{border:1px solid #dce9ef;border-radius:12px;background:#f8fafb;padding:13px 16px;margin-top:25px}
.teacher-ui .studio-legacy>summary{cursor:pointer;font-size:13px;font-weight:800;color:#35566b}
.teacher-ui #outcomeTracking .studio-actions .studio-field{min-width:240px}
@media(max-width:920px){.teacher-ui .studio-type-grid{grid-template-columns:1fr}}
@media(max-width:620px){.teacher-ui .studio-settings{grid-template-columns:1fr}.teacher-ui .studio-stepper{flex-direction:column}.teacher-ui .studio-toolbar{display:block}}

/* Executable Studio teacher delivery */
.teacher-ui #studio-delivery h2{margin-top:3px;color:#193f56}
.teacher-ui #studio-delivery h3{margin:25px 0 13px;color:#20495d}
.teacher-ui .studio-delivery-class{display:flex;gap:12px;align-items:center;justify-content:space-between;
 flex-wrap:wrap;border-top:1px solid #e1eaf0;padding:11px 4px;font-size:13px}
.teacher-ui .studio-delivery-class button{width:auto;margin:0}
.teacher-ui .studio-delivery-preview{padding:13px;border:1px solid #dce8ef;border-radius:10px;background:#f7fafb}
.teacher-ui .studio-delivery-preview>summary{cursor:pointer;color:#28536a;font-size:13px;font-weight:750}
.teacher-ui .studio-delivery-question{padding:11px 3px;border-bottom:1px solid #d8e4ea;font-size:13px}
.teacher-ui .studio-delivery-question:last-child{border-bottom:0}
.teacher-ui .studio-delivery-question strong{color:#1d5d76}
.teacher-ui .studio-delivery-answer{font-weight:800;color:#0a716a}
.teacher-ui .studio-preview-list{border:1px solid #d3e7e2;border-radius:10px;padding:12px;margin-top:10px;background:#f4fbf8}
.teacher-ui #studio-delivery .studio-library-item input,
.teacher-ui #studio-delivery .studio-library-item textarea{
 box-sizing:border-box;display:block;max-width:450px;width:100%;padding:10px;margin:6px 0;border-radius:8px;
 border:1px solid #cadde5;color:#244354;font:inherit
}
.teacher-ui #studio-delivery .studio-library-item button{width:auto}

/* One-click topic-level outcome selection */
.teacher-ui .studio-topic-shortcut{display:grid;gap:9px;padding:17px 18px;
 border:1px solid #d8e0f2;border-radius:12px;background:#f3f6fd;margin:8px 0 15px}
.teacher-ui .studio-topic-shortcut strong{font-size:14px;color:#223f85}
.teacher-ui .studio-topic-shortcut .studio-note{margin:0;max-width:640px}
.teacher-ui .studio-topic-shortcut button{justify-self:start;width:auto;margin:4px 0 0;
 border-radius:9px;padding:11px 16px}
.teacher-ui .studio-outcome input:disabled+span{opacity:.63}
@media(max-width:650px){.teacher-ui .studio-topic-shortcut button{width:100%}}
/* Inline SVG navigation icons. No external fonts, image URLs or mask support required. */
.teacher-ui #dashboard>nav .tab[data-panel="exams"]::before,
.teacher-ui #dashboard>nav .tab[data-panel="results"]::before,
.teacher-ui #dashboard>nav .tab[data-panel="progress"]::before,
.teacher-ui #dashboard>nav .tab[data-panel="outcomes"]::before,
.teacher-ui #dashboard>nav .tab[data-panel="studio-delivery"]::before{
 display:none;
}
.teacher-ui #dashboard>nav .tab .nav-graphic{
 display:block;
 width:23px;
 height:24px;
 flex:none;
 color:#6c899d;
}
.teacher-ui #dashboard>nav .tab.active .nav-graphic{color:#223f85}

/* Assessment types are separate entry points rather than stacked builders. */
.teacher-ui #paperCategoryChooser .studio-type-card{min-width:0;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:10px;border:1px solid #d8e5eb;background:#fff;border-radius:12px;padding:18px;min-height:148px;color:#19405a;font-weight:800;box-shadow:0 3px 12px #0a355007}
.teacher-ui #paperCategoryChooser .studio-type-card:hover{border-color:#3659a8;background:#f0f4ff}
.teacher-ui #paperCategoryChooser .studio-type-card .studio-note{font-size:12px;font-weight:400;line-height:1.5}
.teacher-ui #paperCategoryBack,.teacher-ui #paperCategoryChooser>[data-paper-category="library"]{width:auto;margin:0 0 16px}
.teacher-ui #summativePaperBuilder{margin:0;border:0;box-shadow:none;background:transparent;padding:0}

.teacher-ui .class-attempt-panel{margin-top:18px;padding:18px;border:1px solid #d5e1e9;border-radius:12px}.teacher-ui .class-attempt-card h4{margin:0 0 8px;font-size:1rem}.teacher-ui .class-attempt-card textarea{display:block;width:100%;resize:vertical;border:1px solid #bacbd6;padding:10px;border-radius:7px;margin:10px 0;font:inherit}.teacher-ui .class-attempt-card button{width:auto}.teacher-ui #studentRows button{width:auto;white-space:nowrap}

/* Session restoration shell: never render a login form until the saved token has been checked. */
.teacher-ui .portal-loading,.student-ui .portal-loading{margin:44px auto;max-width:510px;text-align:center;padding:44px 24px;color:#223f85}
.portal-loading h1{font-size:23px;letter-spacing:-.025em}.portal-loading p{font-size:14px;color:#53647a;margin:10px 0 0}.portal-loading-dot{display:block;width:12px;height:12px;border-radius:50%;background:#ffc514;margin:0 auto 20px;box-shadow:0 0 0 6px #edf1fc}

/* Portal beta branding only; no virtual application selectors. */
.teacher-ui .portal-brand-line,.student-ui .portal-brand-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.teacher-ui .portal-beta-label,.student-ui .portal-beta-label{display:inline-block;color:#fff;background:#ffffff18;border:1px solid #b0c7d8;border-radius:4px;padding:3px 6px;font-size:9px;font-weight:800;line-height:1.1;letter-spacing:.08em}
.teacher-ui .beta-notice strong,.student-ui .beta-notice strong{font-weight:750;color:#223f85}
@media(max-width:440px){.teacher-ui .portal-brand-line,.student-ui .portal-brand-line{gap:5px}.teacher-ui .portal-beta-label,.student-ui .portal-beta-label{padding:2px 4px;font-size:8px}}

.teacher-ui .pilot-live-toggle{display:flex;align-items:center;gap:10px;font-size:14px;margin:16px 0}.teacher-ui .pilot-live-toggle input{width:17px;height:17px;accent-color:#223f85}.teacher-ui #monitorSummary{margin:15px 0}.teacher-ui #monitorStatus,.teacher-ui #analyticsStatus{font-size:13px;color:#465e70}.teacher-ui #monitorRows td,.teacher-ui #analyticsRows td{vertical-align:middle}

.teacher-ui .staff-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.teacher-ui .staff-actions a{color:#223f85;font-weight:650;font-size:13px}
