*{box-sizing:border-box}body{margin:0;background:#f2f6fb;color:#153249;font:14px/1.5 system-ui,-apple-system,Segoe UI,sans-serif}[hidden]{display:none!important}button,input,select,textarea{font:inherit}button,.file-button{border:1px solid #c4d6e7;border-radius:9px;background:#fff;color:#17456b;padding:9px 13px;min-height:40px;font-weight:650;cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}.primary{background:#096bba;color:white;border-color:#096bba}.danger{color:#ab2637;background:#fff1f3;border-color:#edc6cf}.quiet{border:0;min-height:28px;font-size:12px;padding:4px 0;background:none}.quiz-management{padding:22px;min-width:0}.quiz-hero{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px;padding:22px;background:#103b62;color:#fff;border-radius:14px}.quiz-hero small{letter-spacing:.12em;color:#9cdbf0;font-weight:700}.quiz-hero h1{margin:4px 0;font-size:28px}.quiz-hero p{margin:0;color:#d1e4f3}.quiz-hero a{color:#fff}.quiz-card{background:#fff;border:1px solid #d7e3ef;border-radius:14px;padding:20px;margin-bottom:18px;min-width:0}.quiz-card h2{margin:0 0 8px;font-size:21px}.quiz-card p{color:#526b81}label{display:grid;gap:5px;font-size:13px;font-weight:650}input,select,textarea{min-width:0;width:100%;border:1px solid #bed2e4;border-radius:8px;padding:9px;background:#fff;color:#173a54}input[type=checkbox],input[type=radio]{width:auto;min-height:20px;accent-color:#096bba}textarea{resize:vertical;line-height:1.6}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;align-items:end;margin:14px 0}.form-grid button{align-self:end}fieldset{border:1px solid #cddfee;border-radius:10px;margin:16px 0;padding:13px}legend{font-weight:700;padding:0 6px}.class-checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:9px}.class-checks label{display:flex;align-items:flex-start;gap:9px;background:#f3f8fd;border:1px solid #d6e5f3;padding:10px;border-radius:9px}.class-checks small,td small,.quiz-list small{display:block;font-weight:400;color:#60768a;font-size:12px;margin-top:4px}.section-line{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.section-line h2,.section-line h3{margin:0}.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:14px 0}.table-scroll{overflow:auto;max-height:560px;margin:14px 0;border:1px solid #d6e3f0;border-radius:9px}table{width:100%;border-collapse:collapse;min-width:600px}th,td{text-align:left;padding:10px;border-bottom:1px solid #dfe8f1;vertical-align:top;font-size:13px}th{background:#eaf3fb;position:sticky;top:0;color:#204d70}code{font-size:14px;white-space:nowrap}.quiz-list{display:grid;gap:10px}.quiz-list article{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px;border:1px solid #d7e5f2;background:#f7faff;border-radius:10px}.quiz-list article strong{font-size:16px}.question-inputs{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:18px}.file-button{font-size:12px;display:inline-flex;align-items:center}.file-button input{display:none}.question-preview{padding:13px;border:1px solid #dbe7f2;border-radius:9px;margin:12px 0;white-space:pre-wrap}.question-preview label{max-width:450px}.status-box{padding:10px 13px;border-radius:9px;background:#e5f3fb;border:1px solid #c5deed;margin:0 0 16px;overflow-wrap:anywhere}.status-box:empty{display:none}.status-box.error{color:#a22338;background:#fff0f3;border-color:#ecc6d0}.student-shell{max-width:900px;margin:auto;padding:22px}.student-quiz .quiz-hero{margin-top:10px}
.code-entry-card{position:relative;overflow:hidden;border:1px solid #d6e5f5;background:linear-gradient(145deg,#ffffff 0%,#f8fbff 38%,#eef6ff 100%);box-shadow:0 20px 50px rgba(16,55,92,.10)}
.code-entry-card::before{content:"";position:absolute;inset:-120px auto auto -80px;width:230px;height:230px;border-radius:50%;background:radial-gradient(circle,#56b8ff55 0%,#56b8ff12 52%,transparent 70%)}
.code-entry-card::after{content:"";position:absolute;inset:auto -70px -70px auto;width:210px;height:210px;border-radius:50%;background:radial-gradient(circle,#153f8d22 0%,#0aa5ff12 45%,transparent 72%)}
.code-entry-card>*{position:relative;z-index:1}.code-entry-hero{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:22px}.code-entry-brand{display:flex;align-items:center;gap:16px;min-width:0}.code-entry-logo-wrap{width:88px;height:88px;border-radius:22px;display:grid;place-items:center;background:linear-gradient(145deg,#ffffff,#e9f4ff);border:1px solid #d8e7f4;box-shadow:0 10px 25px rgba(15,61,102,.10);flex:0 0 88px}.code-entry-logo-wrap img{width:62px;height:62px;object-fit:contain}.code-entry-copy{min-width:0}.code-entry-kicker{display:inline-block;margin-bottom:8px;padding:6px 10px;border-radius:999px;background:#e8f4ff;color:#0a68b0;font-size:11px;font-weight:800;letter-spacing:.12em}.code-entry-title{margin:0 0 8px;font-size:32px;line-height:1.15;color:#12395b}.code-entry-lead{margin:0;color:#4d657a;font-size:15px;max-width:700px}.code-entry-school{display:inline-block;font-size:28px;line-height:1;font-weight:900;letter-spacing:.06em;color:#0b5bb2;margin-right:8px;text-shadow:0 1px 0 #fff}.code-entry-art{width:108px;height:108px;flex:0 0 108px;border-radius:28px;display:grid;place-items:center;background:linear-gradient(150deg,#0b6dbe,#53b9ff);color:#fff;box-shadow:0 16px 32px rgba(11,109,190,.24),inset 0 1px 0 rgba(255,255,255,.35)}.code-entry-art span{font-size:48px;line-height:1}.code-entry-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:18px;align-items:start}.code-entry-rules{margin:0;padding:18px 18px 16px;border-radius:18px;background:linear-gradient(180deg,#fff,#f9fcff);border:1px solid #dbe8f4;box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}.code-entry-rules h3{margin:0 0 10px;color:#10456b;font-size:18px}.code-entry-rules p{margin:0;color:#50697f;line-height:1.7}.code-entry-form{display:grid;gap:14px;max-width:none;padding:18px;border-radius:18px;background:#fff;border:1px solid #dce9f5;box-shadow:0 12px 30px rgba(18,58,96,.08)}.code-entry-check{padding:12px 14px;border-radius:14px;background:#f4f9ff;border:1px solid #dbe8f4;font-weight:700;color:#163e5f}.code-entry-check input{margin-top:1px}.code-entry-label{font-size:14px;color:#194769}.code-entry-form #studentCode{min-height:60px;border-radius:16px;border:1px solid #bcd2e7;background:linear-gradient(180deg,#fff,#f8fbff);font-size:24px;font-weight:800;letter-spacing:.12em;text-align:center;color:#0f3555;box-shadow:inset 0 1px 2px rgba(11,80,129,.06)}.code-entry-form #studentCode::placeholder{font-size:16px;font-weight:700;letter-spacing:.08em;color:#7e93a6}.code-entry-button{min-height:52px;border-radius:16px;font-size:16px;font-weight:800;letter-spacing:.02em;box-shadow:0 12px 22px rgba(9,107,186,.22)}
#codeForm{display:grid;gap:14px;max-width:500px}#studentCode{font-size:21px;letter-spacing:.08em;text-transform:uppercase}dl{display:grid;grid-template-columns:120px minmax(0,1fr);gap:9px;margin:20px 0}dt{color:#60748a}dd{margin:0;font-weight:700;overflow-wrap:anywhere}.attempt-top{display:flex;justify-content:space-between;align-items:center;gap:15px;position:sticky;top:0;z-index:5;background:#103b62;color:#fff;border-radius:10px;padding:13px 16px;margin-bottom:18px}.attempt-top small{display:block;color:#cbe0ef;font-size:12px}#quizTimer{font-size:24px;font-variant-numeric:tabular-nums;white-space:nowrap}.timer-low{color:#ffc19b}.question-card{min-width:0}.question-card h3{font-size:17px;white-space:pre-wrap;margin:6px 0 16px}.quiz-choice{display:flex;align-items:flex-start;gap:12px;margin:9px 0;padding:13px;border:1px solid #d5e3ef;border-radius:9px;background:#f7fbff;font-size:15px;font-weight:450;cursor:pointer}.quiz-choice span{white-space:pre-wrap;overflow-wrap:anywhere}.quiz-choice:has(input:checked){background:#e8f4ff;border-color:#4395d0}.score-panel{text-align:center;padding:30px}#studentScore{display:block;font-size:48px;color:#087352;margin:22px 0}summary{cursor:pointer;font-weight:650}section{scroll-margin-top:64px}#reloadStudent{margin:15px 0}.sidebar{background:#0c68f4;color:white;padding:16px;width:230px;position:fixed;inset:0 auto 0 0}.sidebar a{display:block;color:white;padding:10px}.main{margin-left:230px}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #59a9e5;outline-offset:2px}
@media(max-width:800px){.question-inputs{grid-template-columns:1fr}.quiz-management,.student-shell{padding:12px}.quiz-hero{padding:17px;align-items:flex-start;flex-direction:column}.quiz-card{padding:14px}.quiz-list article{align-items:flex-start;flex-direction:column}.class-checks{grid-template-columns:1fr}.form-grid{grid-template-columns:minmax(0,1fr)}input,select,textarea{font-size:16px}dl{grid-template-columns:85px minmax(0,1fr)}#studentScore{font-size:39px}.actions>button{flex:1 1 150px}.attempt-top{padding:10px;font-size:12px}.quiz-choice{padding:11px}.student-quiz h1{font-size:25px}.code-entry-hero{align-items:flex-start;flex-direction:column}.code-entry-brand{align-items:flex-start}.code-entry-layout{grid-template-columns:1fr}.code-entry-art{width:82px;height:82px;flex-basis:82px;align-self:flex-end}.code-entry-art span{font-size:38px}.code-entry-title{font-size:27px}.code-entry-school{font-size:24px}.code-entry-logo-wrap{width:74px;height:74px;flex-basis:74px}.code-entry-logo-wrap img{width:52px;height:52px}.code-entry-form #studentCode{font-size:20px;min-height:56px}}
@media print{.sidebar,.nk-mobilebar,.actions,.quiz-hero button{display:none!important}.main{margin:0!important}.quiz-card{break-inside:avoid}}

.class-checks label>span{min-width:0;overflow-wrap:anywhere}.question-preview strong{overflow-wrap:anywhere}
/* Quiz bank, reports, accessible answering and print layouts. */
.inline-check{display:flex;align-items:center;gap:10px;padding:8px 0}.inline-check input{flex:0 0 auto;width:22px;height:22px}.inline-check span{min-width:0;overflow-wrap:anywhere}
.question-image{display:block;max-width:100%;width:auto;max-height:480px;object-fit:contain;margin:14px 0;border:1px solid #cad9e7;border-radius:8px;background:white}
.report-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(115px,1fr));gap:10px;margin:15px 0}.report-stats>div{background:#eef6fd;border:1px solid #d5e6f5;border-radius:10px;padding:14px}.report-stats small{display:block;color:#405e77}.report-stats strong{font-size:24px;display:block}
.accessibility-tools{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;margin:0 0 15px}.student-quiz button,.student-quiz .quiet{min-height:44px}.progress-panel progress{width:100%;height:14px;accent-color:#08735a;margin:12px 0}#questionNavigation{display:flex;gap:7px;flex-wrap:wrap}#questionNavigation button{min-width:44px;min-height:44px;padding:7px;background:#fff}#questionNavigation button.answered{background:#096bba;border-color:#096bba;color:#fff}.connection-lost{color:#9e3100;font-weight:750}.progress-panel p{font-size:12px;margin-bottom:0}.student-quiz fieldset{scroll-margin-top:110px}.quiz-choice input{margin-top:3px;min-width:22px;width:22px;height:22px;flex:0 0 22px}.student-quiz .quiz-choice{min-height:52px}
.high-contrast{background:#fff;color:#000}.high-contrast .quiz-card,.high-contrast .quiz-choice,.high-contrast input,.high-contrast button{border:2px solid #000;background:#fff;color:#000}.high-contrast .quiz-card p,.high-contrast dt,.high-contrast .progress-panel p{color:#000}.high-contrast .quiz-choice:has(input:checked),.high-contrast #questionNavigation .answered,.high-contrast .primary{background:#000;color:#fff}.high-contrast a{color:#003c90}.high-contrast .quiz-hero a{color:white}.high-contrast .connection-lost{color:#8c1800}
.file-button{position:relative}.file-button input{display:block;position:absolute;width:1px;height:1px;padding:0;clip-path:inset(50%);overflow:hidden}.file-button:focus-within{outline:3px solid #177dc2;outline-offset:3px}.question-preview input{margin:5px 0}.question-preview .file-button{margin:8px 10px 8px 0}.question-preview ol{white-space:pre-wrap}a:focus-visible,summary:focus-visible{outline:3px solid #177dc2;outline-offset:3px}#validationSummary{background:#eef7ff;border-radius:8px;padding:10px;margin-top:10px}
.quiz-print{background:#fff;color:#111}.quiz-print main{max-width:1100px;margin:24px auto;padding:18px}.quiz-print table{min-width:0}.quiz-print th,.quiz-print td{overflow-wrap:anywhere}.quiz-print th{position:static}.code-slips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.code-slip{border:1px dashed #526b81;padding:18px;break-inside:avoid;overflow-wrap:anywhere}.code-slip h2{font-size:17px;margin:0 0 10px}.code-slip p{font-size:13px}.code-slip code{display:block;font-size:21px;letter-spacing:.04em;font-weight:bold}.printed-answers{break-before:page}.print-actions{background:#edf5fc;padding:14px;border:1px solid #bcd4e6;margin-bottom:20px}.quiz-print p{overflow-wrap:anywhere}
@media(max-width:600px){.code-slips{grid-template-columns:1fr}.quiz-print main{padding:10px;margin:0}.code-slip code{font-size:18px}.question-image{max-height:340px}#connectionState{font-size:12px}.report-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{.print-actions{display:none!important}.quiz-print main{margin:0;padding:0;max-width:none}.quiz-print table{font-size:10pt;min-width:0}.quiz-print thead{display:table-header-group}.quiz-print tr,.code-slip{break-inside:avoid}.code-slips{grid-template-columns:repeat(2,minmax(0,1fr))}.code-slip p{font-size:10pt}.code-slip code{font-size:15pt}.quiz-print th,.quiz-print td{font-size:10pt;padding:5px}.quiz-print h1{font-size:20pt}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.attempt-top>div{min-width:0;overflow-wrap:anywhere}.quiz-list article>div{min-width:0;overflow-wrap:anywhere}

.student-rules{white-space:pre-line;background:#edf5fc;border:1px solid #cbdeee;padding:15px;border-radius:10px;margin:14px 0}.student-rules h3{margin:0 0 8px}.student-rules p{margin:0;white-space:pre-line}#personalInstructions:empty{display:none}.access-controls{padding:16px;margin:16px 0;border:1px solid #bdd7ea;border-radius:12px;background:#f0f7fe}#toggleStudentAccess[aria-checked=false]{background:#6c2533;border-color:#6c2533;color:#fff}.student-quiz #singleControls{justify-content:space-between}.student-quiz #singleControls button{flex:0 1 auto}#questionNavigation button[aria-current=step]{box-shadow:0 0 0 3px #ffbd4a}#studentScore{overflow-wrap:anywhere}#scorePanel:has(#studentScore:empty){display:none}.high-contrast .student-rules{background:#fff;color:#000;border:2px solid #000}.high-contrast .student-rules p{color:#000}.question-preview button{margin:4px}#monitorUpdated{font-size:12px}
@media(max-width:600px){#studentScore{font-size:30px}#singleControls{gap:7px}#singleControls strong{width:100%;order:-1;text-align:center}#singleControls button{flex:1 1 120px!important}}

/* Student access fills the page; authenticated school admins retain their navigation. */
.student-quiz .quiz-access-shell{width:100%;max-width:none;min-height:100dvh;margin:0}.student-quiz.nk-has-sidebar .quiz-access-shell{min-width:0}

/* Centre the entry card within the available student/admin content area. */
.student-quiz .quiz-access-shell:has(#codeEntry:not([hidden])){display:flex;flex-direction:column}.student-quiz #codeEntry{width:min(820px,100%);margin:auto}.student-quiz #codeEntry #codeForm{max-width:none}.student-quiz #entryInstructions{overflow-wrap:anywhere}.student-quiz .quiz-access-shell:has(#codeEntry:not([hidden]))>.accessibility-tools{flex-shrink:0}

.quiz-hero .quiz-teacher-identity{display:flex;flex-wrap:wrap;gap:6px 18px;align-items:center;margin:6px 0 8px}.quiz-teacher-identity strong{color:#fff;font-size:17px}.quiz-teacher-identity span{color:#d1e4f3;overflow-wrap:anywhere}.quiz-hero>div{min-width:0}.quiz-teacher-identity strong{overflow-wrap:anywhere}

.assignment-class-picker{grid-column:1/-1;margin:0}.assignment-class-picker .class-checks{max-height:280px;overflow:auto;padding:3px}.assignment-class-picker .actions{margin:4px 0 12px}#assignmentClassCount{font-size:13px;color:#405e77}
/* Student identity and portrait stay together; questions remain centred and readable. */
.student-workspace{display:grid;grid-template-columns:minmax(0,780px) 220px;justify-content:center;align-items:start;gap:32px;width:100%;max-width:1100px;margin:24px auto}.student-main-column{min-width:0}.student-workspace:has(#studentPortrait[hidden]){grid-template-columns:minmax(0,780px)}.student-portrait{grid-column:2;grid-row:1;min-width:0;min-height:340px}.portrait-card{position:fixed;top:var(--portrait-top,200px);width:220px;padding:16px;background:#fff;border:1px solid #d9e6f3;border-radius:20px;box-shadow:0 12px 32px rgba(18,58,96,.09);z-index:7;box-sizing:border-box}.portrait-frame{height:235px;border-radius:13px;overflow:hidden;background:#edf4fb;border:1px solid #dfebf4}.portrait-frame img{display:block;width:100%;height:100%;object-fit:contain}.portrait-placeholder{width:100%;height:100%;display:grid;place-items:center;color:#1873b6;font-size:46px;font-weight:750;background:linear-gradient(145deg,#e3f0ff,#f5faff)}.portrait-caption{display:grid;gap:5px;margin-top:12px;min-width:0}.portrait-caption small{font-size:10px;letter-spacing:.06em;color:#637a90}.portrait-caption strong{font-size:14px;color:#163c5c;line-height:1.4;overflow-wrap:anywhere}.portrait-caption span{font-size:11px;color:#58738a;line-height:1.4;overflow-wrap:anywhere}.student-main-column #identityPanel{padding:26px;border-radius:20px}.student-main-column #identityPanel dl{grid-template-columns:110px minmax(0,1fr)}.student-main-column #studentQuestions .question-card{padding:22px;border-radius:20px;border-color:#d9e7f4;box-shadow:0 7px 22px rgba(22,59,94,.045);margin-bottom:22px}.student-main-column .question-card legend{background:#e8f3fd;border-radius:8px;color:#155c91;font-size:12px;padding:5px 11px}.student-main-column .question-card h3{font-size:20px;line-height:1.5;margin:8px 0 20px}.student-main-column .quiz-choice{gap:12px;padding:14px 16px;border-radius:14px;border:1px solid #dce7f1;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 2px 5px rgba(20,64,100,.025);align-items:center;line-height:1.5}.student-main-column .quiz-choice:has(input:checked){border-color:#1687ca;background:#edf8ff;box-shadow:0 0 0 2px rgba(22,135,202,.09)}.choice-letter{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:9px;background:#e9f2fa;color:#376384;font-weight:750;font-size:13px}.quiz-choice:has(input:checked) .choice-letter{background:#0b78be;color:#fff}.choice-text{min-width:0;overflow-wrap:anywhere}.student-main-column .quiz-choice input{margin:0}.student-main-column .attempt-top{border-radius:14px}.student-main-column .progress-panel{border-radius:17px}.student-quiz.nk-has-sidebar .attempt-top{top:52px}.code-length-label{display:flex;align-items:center;gap:8px}.code-length-label input{width:85px;min-height:40px}.code-slip code{white-space:normal;overflow-wrap:anywhere}.photo-upload-queue{display:grid;gap:10px;margin:16px 0}.photo-upload-item{display:grid;grid-template-columns:82px minmax(0,1fr);gap:14px;align-items:center;background:#f5f9fd;border:1px solid #dce7f1;border-radius:12px;padding:12px}.photo-upload-item>img{width:82px;height:105px;object-fit:contain;background:#fff;border-radius:8px}.photo-upload-item strong{display:block;overflow-wrap:anywhere;font-size:13px;margin-bottom:8px}.photo-upload-item small{display:block;color:#526b81;margin-top:6px}.photo-roster{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:10px;margin:16px 0}.photo-roster article{display:flex;align-items:center;gap:10px;border:1px solid #dae6f2;border-radius:12px;padding:10px;min-width:0}.photo-roster article>div:nth-child(2){min-width:0;flex:1}.photo-roster strong,.photo-roster small{display:block;overflow-wrap:anywhere;font-size:12px}.photo-roster-thumb{display:grid;place-items:center;width:50px;height:65px;flex:0 0 50px;border-radius:7px;background:#edf4fb;color:#687e92;font-size:10px}.photo-roster-thumb img{width:100%;height:100%;object-fit:contain}.photo-roster button{font-size:11px;padding:6px;min-height:36px}#photoProgress{width:100%;height:15px;accent-color:#087c67}.high-contrast .portrait-card,.high-contrast .portrait-frame{border:2px solid #000}.high-contrast .quiz-choice{background:#fff;color:#000;border:2px solid #000}.high-contrast .quiz-choice:has(input:checked){background:#000;color:#fff}.high-contrast .choice-letter{background:transparent;border:1px solid currentColor;color:inherit}
@media(min-width:801px) and (max-height:650px){.portrait-frame{height:150px}.portrait-card{padding:12px}.portrait-caption{gap:3px;margin-top:8px}}
@media(max-width:800px){.student-workspace{grid-template-columns:minmax(0,1fr);gap:0;max-width:780px;margin:10px auto}.student-portrait{grid-column:1;grid-row:auto;min-height:0}.student-profile-open .quiz-access-shell{padding-top:132px!important}.student-profile-open .quiz-access-shell>.quiz-hero{display:none}.portrait-card{position:fixed;top:0!important;left:0;right:0;width:auto;height:116px;padding:10px 14px;display:grid;grid-template-columns:70px minmax(0,1fr);align-items:center;gap:14px;border-radius:0;border-width:0 0 1px;box-shadow:0 5px 18px rgba(14,49,82,.1);z-index:10}.nk-has-sidebar .portrait-card{top:52px!important}.portrait-frame{height:94px;width:70px;border-radius:8px}.portrait-placeholder{font-size:25px}.portrait-caption{margin:0;gap:3px}.portrait-caption strong{font-size:14px}.portrait-caption span{font-size:11px}.portrait-caption small{font-size:9px}.student-profile-open .attempt-top{top:116px}.student-profile-open.nk-has-sidebar .attempt-top{top:168px}.student-profile-open #studentQuestions fieldset{scroll-margin-top:200px}.student-profile-open.nk-has-sidebar #studentQuestions fieldset{scroll-margin-top:252px}.student-main-column #identityPanel{padding:18px}.student-main-column #identityPanel dl{grid-template-columns:85px minmax(0,1fr)}.student-main-column #studentQuestions .question-card{padding:16px}.student-main-column .question-card h3{font-size:18px}.student-main-column .quiz-choice{padding:12px;gap:9px}.choice-letter{width:26px;height:26px;flex-basis:26px;font-size:12px}.photo-roster{grid-template-columns:1fr}}

.saved-assignments{border:1px solid #d4e3f1;border-radius:12px;background:#fff;margin-top:16px;overflow:hidden}.saved-assignments>summary{cursor:pointer;padding:12px 15px;background:#f0f6fc;font-weight:700;color:#17456b}.saved-assignments>summary:focus-visible{outline:3px solid #1582d0;outline-offset:-3px}.assignment-total{display:inline-block;margin-left:10px;padding:2px 9px;border-radius:20px;background:#dcecfb;font-size:12px;font-weight:600}.assignment-browser{padding:14px}.assignment-browser>label{max-width:460px}.assignment-browser>p{margin:8px 0;color:#60768a;font-size:12px}.saved-assignments .table-scroll{max-height:300px;margin:0}.saved-assignments th,.saved-assignments td{padding:8px 10px}.saved-assignments td button{min-height:32px;padding:5px 10px;font-size:12px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.preview-banner{border:2px solid #d7a32b;background:#fff9e8;max-width:1100px;margin:12px auto 20px}.preview-banner>strong{color:#795400}.preview-banner>label{max-width:520px}.preview-banner a{color:#175885;font-weight:650}

.quiz-font-setting{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:650}.quiz-font-setting input{width:96px;min-height:44px}.accessibility-tools{align-items:center}.student-quiz .student-main-column .question-card h3,.student-quiz .student-main-column .quiz-choice{font-size:var(--quiz-reading-size,18px);line-height:1.55}.student-quiz .question-card h3,.student-quiz .choice-text{overflow-wrap:anywhere;min-width:0}.student-quiz .choice-text{flex:1}.student-quiz .student-rules,.student-quiz .student-rules p{font-size:var(--quiz-reading-size,18px);line-height:1.55;overflow-wrap:anywhere}

/* Connection recovery: server confirmation and device-only work are distinct. */
.recovery-notice{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:14px auto;padding:14px 18px;border:1px solid #e3bd67;border-radius:12px;background:#fff8e7;color:#67471a;max-width:1400px}.recovery-notice p{margin:0;line-height:1.55}.recovery-notice button{white-space:nowrap}.recovery-badge{display:inline-block;margin-top:5px;padding:4px 8px;border-radius:6px;background:#fff1d0;color:#775112;font-size:12px}.recovery-review-table{width:100%;min-width:600px}.recovery-review-table th,.recovery-review-table td{white-space:normal;overflow-wrap:anywhere}.recovery-review-form{display:grid;gap:12px;margin:16px 0}.recovery-review-form label{display:grid;gap:6px}.recovery-review-form .actions{margin:0}
@media screen{html[data-nk-theme=dark] .recovery-notice{background:#413824;color:#ffe3ac;border-color:#9b8458}html[data-nk-theme=dark] .recovery-notice p{color:#ffe3ac!important}.connection-lost{font-weight:700;color:#a94915}}
@media(max-width:600px){.recovery-notice{flex-direction:column;align-items:stretch;padding:12px}.recovery-notice button{align-self:flex-start}}
@media print{.recovery-notice{display:none!important}}

/* Quiz departure safety */
.departure-rules{border-left:4px solid #2563eb;padding:12px 16px;background:#eff6ff;color:#102950;font-weight:600;border-radius:5px}.departure-warning{border:2px solid #d97706;background:#fffbeb;color:#78350f;border-radius:8px;padding:14px 18px;font-weight:700;margin:12px 0}

/* Student fullscreen entry gate: shown before the access code; other quiz UI remains unchanged. */
.fullscreen-entry-gate{text-align:center;padding:36px 24px;border-radius:20px;background:linear-gradient(160deg,#fff,#f3f9ff);box-shadow:0 12px 30px rgba(15,62,103,.08)}
.fullscreen-gate-icon{display:grid;place-items:center;width:74px;height:74px;border-radius:22px;margin:0 auto 16px;background:#e5f1ff;color:#126eaf;font-size:40px;font-weight:800}
.fullscreen-entry-gate h2{font-size:27px;margin-bottom:8px;color:#123f66}.fullscreen-entry-gate p{max-width:460px;margin:0 auto 20px;color:#526f88}
.fullscreen-entry-gate #enterQuizFullscreen{min-height:50px;min-width:min(100%,280px);font-size:16px;border-radius:13px}
.fullscreen-entry-gate #continueWithoutFullscreen{display:block;margin:14px auto 0;max-width:100%;white-space:normal;text-align:center;color:#245d87;text-decoration:underline}.fullscreen-entry-gate #continueWithoutFullscreen[hidden]{display:none}
.fullscreen-entry-gate .fullscreen-gate-message{font-size:13px;margin:14px auto 0;overflow-wrap:anywhere}
@media(max-width:600px){.fullscreen-entry-gate{padding:26px 16px}.fullscreen-entry-gate h2{font-size:23px}}


/* Require fullscreen to continue an active exam on supported browsers. */
.return-fullscreen-overlay[hidden]{display:none!important}
.return-fullscreen-overlay{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:center;padding:20px;background:rgba(6,22,43,.86);backdrop-filter:blur(12px)}
.return-fullscreen-card{width:min(100%,500px);padding:36px 28px;border-radius:24px;background:linear-gradient(150deg,#fff,#edf6ff);color:#143c63;text-align:center;border:1px solid #b9d7f0;box-shadow:0 24px 75px rgba(0,0,0,.35)}
.return-fullscreen-symbol{display:grid;place-items:center;width:76px;height:76px;margin:0 auto 18px;background:#dfefff;color:#126dbe;border-radius:22px;font-size:42px;font-weight:800}
.return-fullscreen-card h2{font-size:28px;margin:0 0 12px}.return-fullscreen-card p{font-size:15px;line-height:1.65;color:#45627c;margin:0 0 18px}.return-fullscreen-card button{min-width:220px;min-height:54px;font-size:17px;border-radius:14px}.return-fullscreen-card #returnFullscreenError{color:#ae2740;font-weight:700;margin-top:12px;font-size:13px}
@media(max-width:480px){.return-fullscreen-card{padding:28px 18px}.return-fullscreen-card h2{font-size:23px}}

/* Single-question navigation appears above and below the active question. */
.single-question-controls{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin:12px 0;padding:12px 14px;border:1px solid #d9e6f2;
  border-radius:14px;background:linear-gradient(135deg,#fff,#f4f9ff);
}
.single-question-controls strong{color:#174b75;font-size:13px;text-align:center}
.single-question-controls button{min-width:145px}
.single-question-controls-bottom{margin-top:16px;margin-bottom:18px}
@media(max-width:520px){
  .single-question-controls{gap:7px;padding:10px}
  .single-question-controls button{min-width:0;flex:1;padding:9px 8px;font-size:12px}
  .single-question-controls strong{font-size:11px;white-space:nowrap}
}

/* Student session controls */
.student-session-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;max-width:780px;margin:14px auto 10px;padding:12px 15px;border:1px solid #d8e6f3;border-radius:14px;background:linear-gradient(120deg,#f8fbff 0%,#edf5fc 100%);box-shadow:0 5px 18px rgba(21,57,91,.055);box-sizing:border-box}
.student-session-copy{display:grid;gap:3px;min-width:0}
.student-session-copy strong{font-size:13px;color:#173d60;line-height:1.35}
.student-session-copy small{font-size:11px;color:#617a91;line-height:1.4}
.student-session-bar .student-logout-button{flex:0 0 auto;min-height:38px;padding:8px 15px;border:1px solid #e4b8bd;border-radius:9px;background:#fff;color:#a12f3c;font-size:12px;font-weight:750;box-shadow:0 2px 5px rgba(120,35,45,.04)}
.student-session-bar .student-logout-button:hover{background:#fff3f4;border-color:#d78c96}
.student-session-bar .student-logout-button:disabled{opacity:.55;cursor:wait}
@media(max-width:800px){.student-session-bar{margin:10px 0;padding:10px 12px;border-radius:12px}.student-session-copy small{max-width:220px}}

/* Premium student photo roster cards: prevents names/index details from collapsing vertically. */
.photo-roster{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;margin:18px 0}.photo-student-card{position:relative;display:grid;grid-template-columns:92px minmax(0,1fr);gap:16px;align-items:center;padding:16px 16px 16px 18px;background:linear-gradient(180deg,#fff,#f7fbff);border:1px solid #d8e5f1;border-radius:20px;box-shadow:0 10px 30px rgba(17,62,101,.08);min-width:0;overflow:hidden}.photo-student-card::before{content:"";position:absolute;inset:0 auto 0 0;width:6px;background:linear-gradient(180deg,#0d6fc1,#48a4ff)}.photo-student-badge{position:absolute;top:12px;right:12px;min-width:32px;height:32px;padding:0 8px;display:grid;place-items:center;border-radius:999px;background:#e8f2fd;color:#1c5a89;font-size:12px;font-weight:800;box-shadow:inset 0 0 0 1px #d3e4f4}.photo-roster-thumb{display:grid;place-items:center;width:92px;height:112px;flex:0 0 92px;border-radius:16px;background:linear-gradient(145deg,#e7f1fb,#f7fbff);border:1px solid #d8e5f1;color:#6a8096;font-size:11px;overflow:hidden;box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}.photo-roster-thumb img{width:100%;height:100%;object-fit:cover;background:#fff}.photo-roster-thumb-button{padding:0;min-height:0;cursor:pointer}.photo-roster-thumb-button:hover{transform:translateY(-1px)}.photo-roster-placeholder{padding:10px;text-align:center;line-height:1.35;font-weight:700}.photo-student-body{min-width:0;display:grid;gap:14px}.photo-student-top{min-width:0;display:grid;gap:7px;padding-right:44px}.photo-student-name{display:block;width:100%;text-align:left;color:#113c63;font-size:18px;font-weight:800;line-height:1.35;padding:0;background:none;border:0;min-height:0;white-space:normal;overflow-wrap:anywhere}.photo-student-name:hover{color:#0a6bb9}.photo-roster-meta{display:block;color:#5a748b;font-size:12px;font-weight:700;letter-spacing:.02em;overflow-wrap:anywhere}.photo-student-actions{display:flex;gap:10px;flex-wrap:wrap}.photo-student-actions button{font-size:12px;padding:8px 12px;min-height:40px;border-radius:12px;box-shadow:0 2px 8px rgba(16,59,98,.05)}.photo-student-actions .primary{background:linear-gradient(180deg,#1780d1,#0b69b9);border-color:#0b69b9}.photo-student-actions .danger{background:#fff3f5;border-color:#efc4ce;color:#ae2740}.photo-roster-empty{padding:26px;border:1px dashed #cfe0ef;border-radius:16px;background:#f8fbfe;color:#61798f;text-align:center}

@media(max-width:800px){
  .photo-roster{grid-template-columns:1fr}
  .photo-student-card{grid-template-columns:78px minmax(0,1fr);gap:12px;padding:14px 14px 14px 16px;border-radius:18px}
  .photo-roster-thumb{width:78px;height:96px;border-radius:14px}
  .photo-student-top{padding-right:40px}
  .photo-student-name{font-size:16px}
  .photo-student-actions button{flex:1 1 120px}
}

/* Higher-specificity overrides for the older roster article/button rules. */
.photo-roster article.photo-student-card{
  display:grid;grid-template-columns:92px minmax(0,1fr);gap:16px;align-items:center;
  padding:16px 16px 16px 18px;background:linear-gradient(180deg,#fff,#f7fbff);
  border:1px solid #d8e5f1;border-radius:20px;
  box-shadow:0 10px 30px rgba(17,62,101,.08);min-width:0;overflow:hidden;
}
.photo-roster .photo-roster-thumb-button{padding:0;min-height:0;border:1px solid #d8e5f1}
@media(max-width:800px){
  .photo-roster article.photo-student-card{
    grid-template-columns:78px minmax(0,1fr);gap:12px;
    padding:14px 14px 14px 16px;border-radius:18px;
  }
}

/* Student name now occupies the full card width above the photo row. */
.photo-roster{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:14px}
.photo-roster article.photo-student-card{
  display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr;
  align-items:stretch;gap:12px;padding:15px 16px 16px 18px;min-width:0;
}
.photo-roster .photo-student-heading{
  display:flex;align-items:flex-start;gap:10px;min-width:0;width:100%;
  padding:0 2px 10px;border-bottom:1px solid #e5edf5;
}
.photo-roster .photo-student-heading .photo-student-badge{
  position:static;flex:0 0 auto;min-width:30px;height:30px;margin-top:1px;
}
.photo-roster .photo-student-name{
  display:block;flex:1 1 auto;width:auto;min-width:0;text-align:left;
  color:#113c63;font-size:16px;font-weight:800;line-height:1.35;
  padding:2px 0!important;margin:0;background:transparent;border:0;
  min-height:0;white-space:normal;word-break:normal;overflow-wrap:normal;
  hyphens:none;text-overflow:clip;
}
.photo-roster .photo-student-content{
  display:grid;grid-template-columns:92px minmax(0,1fr);gap:14px;
  align-items:center;min-width:0;
}
.photo-roster .photo-student-body{
  display:grid;align-content:center;justify-items:start;gap:12px;min-width:0;
}
.photo-roster .photo-student-top{width:100%;min-width:0;padding:0}
.photo-roster .photo-roster-meta{
  white-space:normal;word-break:normal;overflow-wrap:anywhere;
}
.photo-roster .photo-student-actions{width:100%;align-items:center}
.photo-roster .photo-student-actions button{max-width:100%;white-space:normal}
@media(max-width:800px){
  .photo-roster{grid-template-columns:1fr}
  .photo-roster article.photo-student-card{grid-template-columns:minmax(0,1fr);gap:11px;padding:14px 14px 14px 16px}
  .photo-roster .photo-student-heading{gap:9px;padding-bottom:9px}
  .photo-roster .photo-student-name{font-size:16px}
  .photo-roster .photo-student-content{grid-template-columns:78px minmax(0,1fr);gap:12px}
  .photo-roster .photo-roster-thumb{width:78px;height:96px}
}

/* Compact student photo cards: smaller footprint while keeping the name above the photo. */
.photo-roster{
  grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));
  gap:10px;margin:12px 0;
}
.photo-roster article.photo-student-card{
  gap:8px;padding:10px 11px 11px 13px;border-radius:15px;
  box-shadow:0 4px 14px rgba(17,62,101,.06);
}
.photo-roster article.photo-student-card::before{width:4px}
.photo-roster .photo-student-heading{
  gap:7px;padding:0 0 7px;border-bottom:1px solid #eaf0f6;
}
.photo-roster .photo-student-heading .photo-student-badge{
  min-width:24px;height:24px;padding:0 6px;font-size:10px;
}
.photo-roster .photo-student-name{
  font-size:14px;line-height:1.28;padding:1px 0!important;
}
.photo-roster .photo-student-content{
  grid-template-columns:64px minmax(0,1fr);gap:9px;
}
.photo-roster .photo-roster-thumb{
  width:64px;height:80px;border-radius:10px;font-size:9px;
}
.photo-roster .photo-student-body{gap:8px}
.photo-roster .photo-roster-meta{font-size:10px;line-height:1.3}
.photo-roster .photo-student-actions{gap:6px}
.photo-roster .photo-student-actions button{
  font-size:10px;padding:6px 8px;min-height:31px;border-radius:9px;
}
@media(max-width:800px){
  .photo-roster{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:9px}
  .photo-roster article.photo-student-card{gap:8px;padding:10px 10px 10px 12px}
  .photo-roster .photo-student-name{font-size:13px}
  .photo-roster .photo-student-content{grid-template-columns:58px minmax(0,1fr);gap:8px}
  .photo-roster .photo-roster-thumb{width:58px;height:74px}
  .photo-roster .photo-student-actions button{font-size:10px;padding:5px 7px;min-height:29px}
}

/* Final 10% of the allowed quiz time: clear, bold red timer. */
#quizTimer.timer-critical{
  color:#ff3030 !important;
  font-weight:900 !important;
  text-shadow:0 0 1px rgba(255,48,48,.28);
}


/* Full-screen re-entry cover: blocks answers but leaves the active quiz mounted. */
.return-fullscreen-overlay[hidden] { display: none !important; }
.return-fullscreen-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 22px;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  background: rgba(5, 20, 39, .88);
  backdrop-filter: blur(14px) saturate(.75);
  -webkit-backdrop-filter: blur(14px) saturate(.75);
}
.return-fullscreen-card {
  width: min(100%, 500px);
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid #b9d7f0;
  border-radius: 24px;
  background: linear-gradient(150deg, #fff, #edf6ff);
  color: #143c63;
  text-align: center;
  box-shadow: 0 24px 75px rgba(0, 0, 0, .38);
}
.return-fullscreen-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 17px;
  border-radius: 20px;
  background: #dfefff;
  color: #126dbe;
  font-size: 40px;
  font-weight: 800;
}
.return-fullscreen-card h2 {
  margin: 0 0 12px;
  color: #143c63;
  font-size: clamp(22px, 3vw, 28px);
}
.return-fullscreen-card p {
  margin: 0 0 18px;
  color: #45627c;
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.return-fullscreen-card button {
  min-width: min(100%, 240px);
  min-height: 54px;
  border-radius: 14px;
  font-size: 16px;
}
.return-fullscreen-card #returnFullscreenError {
  margin-top: 12px;
  color: #ae2740;
  font-size: 13px;
  font-weight: 750;
}


/* Final student photo roster: full-width name above photo; compact cards. */
.photo-roster {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,235px),1fr));
  gap:12px;
  margin:14px 0;
  align-items:stretch;
}
.photo-roster > article.photo-student-card {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:auto auto;
  gap:11px;
  align-content:start;
  align-items:stretch;
  min-width:0;
  padding:12px 13px 13px 15px;
  border:1px solid #d5e5f3;
  border-radius:16px;
  background:linear-gradient(150deg,#fff,#f6faff);
  box-shadow:0 5px 16px rgba(13,51,90,.07);
  overflow:hidden;
}
.photo-roster > article.photo-student-card::before {width:4px}
.photo-roster .photo-student-heading {
  display:flex; align-items:flex-start; gap:9px;
  min-width:0; width:100%; padding:0 0 9px;
  border-bottom:1px solid #e5eff8;
}
.photo-roster .photo-student-heading .photo-student-badge {
  position:static; flex:0 0 26px;
  display:grid;place-items:center;
  width:26px;height:26px;min-width:26px;
  margin-top:1px; padding:0;
  border-radius:50%;font-size:11px;font-weight:800;
  color:#0c4f85;background:#e7f2fc;
}
.photo-roster .photo-student-name {
  flex:1 1 0; display:block; min-width:0; max-width:100%;
  height:auto; min-height:0; margin:0;padding:2px 0;
  border:0; background:transparent; box-shadow:none;
  color:#103e66;font-size:14px;font-weight:800;line-height:1.35;
  text-align:left;white-space:normal;word-break:normal;
  overflow-wrap:normal;hyphens:none;text-overflow:clip;
  cursor:pointer;
}
.photo-roster .photo-student-name:hover {color:#076cb9;text-decoration:underline}
.photo-roster .photo-student-name:focus-visible,
.photo-roster .photo-roster-thumb-button:focus-visible {outline:3px solid #177bbb;outline-offset:3px}
.photo-roster .photo-student-content {
  display:grid;grid-template-columns:66px minmax(0,1fr);
  gap:10px;min-width:0;align-items:center;
}
.photo-roster .photo-roster-thumb {
  width:66px;height:82px;min-width:0;min-height:0;
  padding:0;border:1px solid #d2e4f4;border-radius:11px;
  background:#e9f3fc;overflow:hidden;
}
.photo-roster .photo-roster-thumb img {display:block;width:100%;height:100%;object-fit:cover}
.photo-roster .photo-roster-placeholder {font-size:10px;font-weight:600;padding:5px;color:#6a7f91}
.photo-roster .photo-student-body {
  display:flex;flex-direction:column;align-items:stretch;
  justify-content:center;gap:7px;min-width:0;
}
.photo-roster .photo-student-meta {
  color:#63778d;font-size:10px;line-height:1.35;
  font-weight:600;overflow-wrap:anywhere;
}
.photo-roster .photo-student-actions {
  display:flex;flex-direction:column;align-items:stretch;
  gap:6px;min-width:0;width:100%;
}
.photo-roster .photo-student-actions button {
  display:block;min-width:0;width:100%;max-width:100%;
  min-height:34px;margin:0;padding:7px 8px;
  border-radius:9px;font-size:11px;font-weight:700;line-height:1.25;
  white-space:normal;word-break:normal;overflow-wrap:break-word;
}
@media (max-width:560px) {
  .photo-roster {grid-template-columns:repeat(auto-fill,minmax(min(100%,218px),1fr));gap:10px}
  .photo-roster > article.photo-student-card {padding:11px 12px 12px 14px}
  .photo-roster .photo-student-name {font-size:14px}
  .photo-roster .photo-student-content {grid-template-columns:62px minmax(0,1fr);gap:10px}
  .photo-roster .photo-roster-thumb {width:62px;height:78px}
}

/* Group access codes and class result rows without altering question layout. */
.quiz-class-group th{background:#e8f2fc!important;color:#0b477d!important;text-align:left!important;font-size:14px;font-weight:850;padding:11px 13px!important;border-top:2px solid #bfd8ef!important;letter-spacing:.01em}

/* Class grouping also appears in printed code slips and score sheets. */
.quiz-print .print-group-title{grid-column:1/-1;width:100%;margin:14px 0 4px;padding:8px 10px;border-radius:8px;background:#e9f3fc;color:#114a79;font-size:17px;break-after:avoid}
.quiz-print .print-class-row th{background:#e9f3fc!important;color:#10446d;text-align:left!important;font-weight:850}


/* Student post-quiz answer review */
.answer-review-panel{margin:28px 0 22px;text-align:left;border-top:1px solid #d8e4ee;padding-top:22px}
.answer-review-panel h3{margin:0 0 8px;color:#123d60;font-size:22px}
#answerReviewMessage{color:#52677a;line-height:1.55;margin:0 0 18px}
.quiz-review-question{border:1px solid #d7e2eb;border-radius:12px;background:#fff;padding:17px;margin:14px 0;text-align:left}
.quiz-review-question h4{margin:0 0 9px;color:#123d60;font-size:16px}
.quiz-review-stem{margin:0 0 12px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}
.quiz-review-image{display:block;max-width:100%;max-height:340px;object-fit:contain;margin:10px auto 14px;border-radius:8px}
.quiz-review-options{display:grid;gap:8px}
.quiz-review-option{display:flex;align-items:flex-start;gap:10px;padding:11px 12px;border:1px solid #d5e3ef;border-radius:9px;background:#f7fbff;color:#20384d;text-align:left}
.quiz-review-option.is-correct{background:#e8f7ee;border:2px solid #219653;color:#14532d}
.quiz-review-option.is-wrong{background:#fff0f0;border:2px solid #d94848;color:#842029}
.quiz-review-letter{font-weight:750;min-width:24px}
.quiz-review-option-text{white-space:pre-wrap;overflow-wrap:anywhere;flex:1}
.quiz-review-tag{font-size:12px;font-weight:750;white-space:nowrap;margin-left:auto}
.quiz-review-unanswered{display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap;margin:0 0 12px;padding:11px 13px;border:1px solid #e4a33c;border-left:5px solid #c47a12;border-radius:9px;background:#fff7e8;color:#75440b;font-weight:650;font-size:14px;line-height:1.45}
.quiz-review-unanswered-label{display:inline-block;color:#8a3b08;font-size:12px;font-weight:850;letter-spacing:.04em}
.quiz-review-unanswered span{flex:1;min-width:180px}
@media(max-width:600px){.quiz-review-question{padding:12px}.quiz-review-option{flex-wrap:wrap}.quiz-review-tag{margin-left:34px}}


/* Optional theory prompts: display-only; no student response field is provided. */
.theory-question-card{margin:18px 0 22px;padding:22px;border:1px solid #c8d9e9;border-left:5px solid #1768bd;border-radius:14px;background:#f7fbff}
.theory-question-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.theory-question-heading h2{margin:0;color:#123d60;font-size:21px;font-weight:850;letter-spacing:.02em}
.theory-question-heading span{display:inline-block;padding:5px 9px;border-radius:999px;background:#e2effc;color:#15518a;font-size:11px;font-weight:850;letter-spacing:.05em}
.theory-question-instruction{margin:8px 0 16px;color:#536b80;font-size:14px;line-height:1.55}
.theory-question-content{padding:16px;border:1px solid #d7e4ef;border-radius:10px;background:#fff;color:#173c5d;font-size:16px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}
.theory-question-editor{margin:18px 0;padding:16px;border:1px solid #cbdced;border-radius:12px;background:#f8fbff}
.theory-question-editor p{color:#536b80;line-height:1.55}
.theory-question-editor textarea{width:100%;max-width:100%;box-sizing:border-box}
@media(max-width:640px){.theory-question-card{padding:14px}.theory-question-heading h2{font-size:18px}.theory-question-content{padding:12px;font-size:15px}}

/* Student portraits shown to the administrator in the quiz monitor. */
.quiz-result-photo{width:62px;vertical-align:middle!important}
.quiz-student-photo-thumb{display:block;width:42px;height:52px;object-fit:cover;border-radius:7px;border:1px solid #d5e4f1;background:#edf4fb}
.quiz-no-photo{color:#8ca0b4}

.theory-table{border-collapse:collapse;width:100%;margin:16px 0}.theory-table td{border:1px solid #7b899c;padding:8px}.theory-question-editor fieldset{margin:16px 0;padding:16px}.theory-question-content textarea{width:100%;box-sizing:border-box;min-height:150px}.theory-question-content fieldset{margin:20px 0;padding:18px}.theory-question-content p{white-space:pre-wrap}

.attendance-dropdown > summary{cursor:pointer;font-weight:800;font-size:1.05rem;padding:4px 0}
.attendance-dropdown[open] > summary{margin-bottom:14px}
.mark-sort-controls{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.mark-sort-controls .mark-sort-arrow{display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;width:32px;height:32px;padding:0;font-size:21px;font-weight:800;line-height:1;border-radius:6px;cursor:pointer}
.mark-sort-controls .mark-sort-arrow[aria-pressed="true"]{background:#075985;color:#fff;border-color:#075985}
.mark-sort-controls .mark-sort-arrow:focus-visible{outline:3px solid #0ea5e9;outline-offset:2px}

.question-edit-notice{border:2px solid #b35b00;background:#fff4df;color:#713800;position:sticky;top:72px;z-index:12}.question-edit-notice>strong{font-size:1.15rem}.question-edit-notice p{margin:7px 0;font-weight:700}.question-edit-notice button{margin-top:8px}
