.exam-page{margin:0;background:#f1f5fa;color:#13304a;font:16px/1.5 system-ui,Segoe UI,sans-serif}.exam-page *{box-sizing:border-box}.exam-page main{max-width:1100px;margin:30px auto;padding:0 20px 50px}.exam-page header{padding:22px;background:#123d61;color:white;border-radius:14px}.exam-page h1{font-size:1.7rem;margin:7px 0}.exam-page h2{font-size:1.25rem}.exam-page .eyebrow{font-size:.8rem;text-transform:uppercase;letter-spacing:.08em}.exam-card,.exam-question{background:white;border:1px solid #c5d6e5;padding:24px;border-radius:12px;margin:20px 0}.exam-page label{display:block;font-weight:600;margin:12px 0 5px}.exam-page input:not([type=checkbox]):not([type=radio]),.exam-page select,.exam-page textarea{display:block;width:100%;font:inherit;padding:10px;border:1px solid #a5bcd0;border-radius:6px;background:white;color:#13304a}.exam-page textarea{min-height:120px}.exam-page button,.exam-page .exam-link{font:600 .95rem system-ui;background:#0865d9;color:white;border:0;border-radius:7px;padding:11px 17px;cursor:pointer}.exam-page button:disabled{opacity:.55;cursor:wait}.exam-page button:focus-visible,.exam-page a:focus-visible,.exam-page input:focus-visible,.exam-page textarea:focus-visible,.exam-page select:focus-visible{outline:3px solid #f4a522;outline-offset:2px}.exam-page button[type=submit]{margin-top:20px}.exam-page [hidden]{display:none!important}.password-row{display:flex;gap:8px}.password-row input{min-width:0}.password-row button{flex-shrink:0}.exam-toolbar{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:15px;background:#e4f4f1;border:1px solid #a3cfc5;border-radius:8px}.exam-question legend{font-weight:700;padding:0 8px;white-space:pre-wrap}.exam-question label{display:flex;gap:12px;align-items:flex-start;padding:10px;border:1px solid #d7e1eb;border-radius:6px;font-weight:400}.exam-question input[type=radio]{width:20px;height:20px;flex-shrink:0}.exam-question textarea{white-space:pre-wrap}.exam-backdrop{position:fixed;inset:0;z-index:1000;background:#001b35aa;display:grid;place-items:center;padding:20px}.exam-backdrop>section{max-width:520px;width:100%;max-height:90vh;overflow:auto;background:white;padding:25px;border-radius:12px}.exam-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.exam-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.exam-table{overflow:auto;max-height:550px}.exam-page table{border-collapse:collapse;width:100%}.exam-page th,.exam-page td{text-align:left;border:1px solid #c5d6e5;padding:10px}.exam-page th{background:#eaf2f8}.exam-page td button{margin:3px}.exam-page .muted{font-size:.9rem;color:#4e667e}.exam-page .bad{color:#b41937}.exam-page .good{color:#087557}.exam-page .question-editor{border:1px solid #c5d6e5;padding:18px;margin:14px 0;border-radius:8px}.exam-page .access-card{break-inside:avoid;border:1px solid #9fb3c5;padding:15px;margin:12px}.exam-page .access-card code{overflow-wrap:anywhere}.exam-page .test-link{overflow-wrap:anywhere}.exam-page .row-check{display:flex;gap:8px;align-items:center}.exam-page .row-check input{width:20px;height:20px}.exam-page .exam-options{max-height:250px;overflow:auto}.exam-page .exam-options label{font-weight:400}.exam-page pre{white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:650px){.exam-page main{padding:0 10px;margin-top:10px}.exam-grid{grid-template-columns:1fr}.exam-card,.exam-question{padding:16px}.exam-toolbar{font-size:.9rem}.exam-page button{padding:10px 12px}}@media print{.exam-page{background:white;color:black}.exam-page main{max-width:none;margin:0}.exam-page .no-print{display:none!important}.exam-page main>*{display:none!important}.exam-page #accessCards{display:block!important}.exam-page .access-card{font-size:12px}.exam-page #accessCards .exam-actions{display:none}}
.exam-page .exam-logo{float:right;width:64px;height:64px;object-fit:contain;background:white;border-radius:8px;padding:5px;margin:0 0 12px 15px}.exam-page .access-card p{overflow-wrap:anywhere}

.exam-paper-preview {max-height:65vh;overflow:auto;border:1px solid #b7c9da;background:#eef3f8;margin:12px 0;padding:8px}.exam-paper-preview img{display:block;width:100%;height:auto;margin:0 auto 12px;background:white}.exam-paper-preview:empty{display:none}.exam-paper-preview p{padding:8px}#documentKeys{min-height:90px}
#candidatePaper{max-height:none;overflow:hidden}.exam-paper-viewport{max-height:65vh;overflow:auto;max-width:100%}.exam-paper-pages{min-width:100%}#candidatePaper .exam-actions{align-items:center}

.active-sitting main {max-width:1500px;margin:0 auto;padding:12px clamp(10px,2vw,30px)}
.active-sitting main > header, .active-sitting #examStatus:empty {display:none}
.sitting-heading,.sitting-footer,.pad-heading {display:flex;align-items:center;justify-content:space-between;gap:12px}
.sitting-heading {margin:0 0 10px}.sitting-heading .eyebrow {font-weight:750;color:#087865}
.sitting-heading h1 {margin:3px 0;font-size:clamp(1.25rem,2.4vw,2rem);line-height:1.2}
.sitting-heading span,.sitting-timer,.sitting-footer {color:#405f76}
.sitting-timer {flex:none;min-width:8rem;padding:5px 12px;text-align:center;font-size:.8rem}
.sitting-timer strong {display:block;font-size:1.55rem;font-variant-numeric:tabular-nums;color:#102f4d}
.sitting-timer,.sitting-map,.sitting-workspace,.sitting-pad,.sitting-footer {border:1px solid #c9d8e5;border-radius:12px;background:white}
.active-sitting .exam-toolbar {position:static;min-height:40px;border:0;border-left:4px solid #087865;padding:5px 12px;font-size:.85rem}
.active-sitting .exam-toolbar button,.sitting-layout button {color:#214663;background:white;border:1px solid #b5c9d8;border-radius:7px;padding:5px 8px;min-height:34px}
.sitting-layout {display:grid;grid-template-columns:clamp(88px,12vw,165px) minmax(0,1fr) clamp(220px,23vw,320px);gap:10px;height:clamp(410px,calc(100dvh - 190px),1000px);margin:10px 0}
.sitting-layout.pad-collapsed {grid-template-columns:clamp(88px,12vw,165px) minmax(0,1fr) 100px}
.sitting-map,.sitting-workspace,.sitting-pad {min-width:0;overflow:auto;padding:10px;overscroll-behavior:contain}
.sitting-map small {display:block;margin:3px 0 8px;font-size:.73rem}
#questionMap {display:grid;grid-template-columns:repeat(auto-fit,minmax(32px,1fr));gap:4px}
#questionMap button.answered,.sitting-pad button[aria-pressed=true] {color:#075e51;background:#d9f5e9;border-color:#07836d}
#questionMap button.flagged,.pad-row button:last-child[aria-pressed=true] {background:#fff2d0;color:#744900;border-color:#b9831e}
#questionMap button[aria-current=true] {outline:2px solid #1769e0;outline-offset:-2px}
.pad-heading {position:sticky;top:-10px;background:white;padding:3px 0 7px}
.pad-collapsed .pad-heading {flex-direction:column}
.pad-row {display:flex;align-items:center;gap:4px;flex-wrap:wrap;padding:6px 0;border-top:1px solid #e2eaf1}
.pad-row button {min-width:28px;font-size:.78rem;padding:4px 6px}.pad-row button:first-child {border:0;color:#405f76}
.sitting-workspace #candidatePaper {margin:0}.sitting-workspace .exam-paper-viewport {max-height:60dvh}
.sitting-workspace .exam-question {min-width:0;margin:9px 0;padding:12px 14px;scroll-margin:8px}
.sitting-workspace .exam-question legend {font-size:.8rem;color:#506a80}
.sitting-workspace .exam-question p {margin:0 0 8px;white-space:pre-wrap;font-weight:650}
.sitting-workspace .exam-question label {margin:5px 0;padding:7px 10px}
.sitting-workspace .exam-question label:has(:checked) {border-color:#087865;background:#e6f6ef}
.sitting-footer {padding:8px 12px;font-size:.86rem}.sitting-footer button {background:#087865}
@media(max-width:700px) {
  .sitting-layout,.sitting-layout.pad-collapsed {grid-template-columns:minmax(0,1fr);height:auto}
  .sitting-map {padding:6px 8px}.sitting-map small {display:inline;margin-left:8px}
  #questionMap {display:flex;overflow-x:auto;padding:4px 0}#questionMap button {flex:none;min-width:35px}
  .sitting-workspace {max-height:55dvh}.sitting-workspace .exam-paper-viewport {max-height:43dvh}
  .sitting-pad {max-height:32dvh}.pad-collapsed .pad-heading {flex-direction:row}
  .sitting-timer {min-width:6rem}.sitting-heading h1 {font-size:1.15rem}
}

.remote-paper-grid {display:grid;grid-template-columns:minmax(12rem,max-content) minmax(0,1fr);gap:14px;align-items:start}
.remote-paper-stack {display:grid;gap:14px;min-width:0}
.remote-paper-stack:only-child {grid-column:1/-1}
.remote-answer-key {border:1px solid #cadbea;border-radius:10px;overflow:hidden;background:#fff}
.remote-answer-key h4,.remote-paper-well h4 {margin:0;padding:.7rem;color:#153f69}
.remote-answer-key>div {max-height:32rem;overflow:auto}
.remote-answer-key fieldset {display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin:0;padding:6px;border:0;border-top:1px solid #dbe5ed;min-width:0}
.remote-answer-key fieldset b {min-width:2em;text-align:center}
.remote-answer-key label {display:inline-flex;margin:0;position:relative;cursor:pointer}
.remote-answer-key legend,.remote-answer-key input {position:absolute;width:1px;height:1px;min-width:0;min-height:0;padding:0;margin:0;clip-path:inset(50%)}
.remote-answer-key label span {border:1px solid #b7cadd;border-radius:5px;padding:.3rem .5rem;background:#fff}
.remote-answer-key input:checked+span {border:2px solid #087f6d;background:#dff5ed;color:#074d40;font-weight:bold}
.remote-answer-key input:focus-visible+span {outline:2px solid #1769e0;outline-offset:1px}
.remote-paper-well {min-width:0;border:2px dashed #9fb8c9;border-radius:10px;background:#eff7f6;padding:10px}
.remote-paper-well[data-part="theory"] {border-color:#cbb775;background:#fff9e9}
.remote-paper-well h4 {padding:0}.remote-paper-well p {margin:.25rem 0 .65rem}
.remote-paper-well .exam-paper-preview {max-height:32rem;overflow:auto}
.remote-paper-well figure {margin:0;background:#fff}.remote-paper-well figcaption {padding:6px;overflow-wrap:anywhere}
.remote-paper-well img {display:block;width:100%;height:auto}
@media(max-width:760px) {.remote-paper-grid {grid-template-columns:minmax(0,1fr)}.remote-answer-key>div {max-height:12rem}}
