.we-student{background:#f7f5ef;color:#172e42}.we-student main{max-width:1440px;margin:30px auto 65px}.we-student main>.eyebrow,.we-student #heading,.we-student #intro{display:none}.we-student header{padding:16px 32px}.we-student #status:empty{display:none}#student-app{min-width:0}.student-kicker{font-size:11px;font-weight:750;letter-spacing:1.6px;color:#637568;margin:0 0 10px}.student-hero{padding:44px 0 34px;border-bottom:1px solid #d6dcd2;max-width:100%}.student-hero h2{font-size:clamp(32px,4vw,48px);line-height:1.2;letter-spacing:-1.3px;font-weight:650;margin:10px 0 20px}.student-hero>p:last-child{color:#5e6d76;max-width:620px}.student-catalogue{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:32px 0}.student-exam{position:relative;padding:30px;border:1px solid #d8ded3;background:#fffefa;border-top:3px solid #17384a;display:flex;flex-direction:column}.student-exam h3{font-size:23px;line-height:1.35;font-weight:650;max-width:90%;margin:15px 0}.student-exam>p:not(.student-kicker){color:#657077;font-size:15px}.exam-number{position:absolute;top:22px;right:24px;font-size:13px;color:#8b8e80}.student-link{font-weight:650;display:inline-block;margin-top:auto;padding-top:18px;text-decoration:none}.student-heading{padding:24px 0}.student-heading h2{font-size:34px;line-height:1.3;margin:6px 0 12px;font-weight:650}.student-heading>p{color:#52656b}.breadcrumb{font-size:13px}.student-test{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:35px;background:#fffefa;border:1px solid #d7ddd3;padding:28px 32px;margin-bottom:16px}.student-test h3{font-size:22px;margin:8px 0}.student-test p{color:#5e7077;margin:5px 0}.test-stats{display:flex;flex-wrap:wrap;gap:28px;padding:20px 0;border-top:1px solid #e2e6dc;margin-top:20px;color:#5a6b70;font-size:14px}.test-stats strong{color:#17384a;font-size:19px;margin-right:4px}.test-entry{border-left:1px solid #dce1d8;padding-left:26px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;font-size:13px}.access-tag{color:#1a654e;border:1px solid #c9d9c8;padding:3px 10px;background:#f0f5eb}.instructions-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:28px}.instruction-panel,.start-panel{border:1px solid #d9dfd4;background:#fffefa;padding:28px 32px}.start-panel{align-self:start;position:sticky;top:24px}.start-panel h3{font-size:24px;margin:5px 0}.acknowledgement{display:flex;gap:12px;align-items:flex-start;font-size:14px;margin:24px 0}.acknowledgement input{margin-top:6px;width:18px;height:18px;flex-shrink:0;accent-color:#17664f}.rules-list{display:grid;grid-template-columns:160px minmax(0,1fr);gap:14px;font-size:14px}.rules-list dt{font-weight:650}.rules-list dd{margin:0;color:#53666f}.published-instructions{white-space:pre-wrap}.student-notice{border-left:3px solid #287956;background:#eaf2e9;padding:14px 18px;font-size:14px}.student-notice.error{border-color:#a45e34;background:#fff0df;color:#70401e}.we-student button{font-size:14px;min-height:42px;border-radius:3px;padding:9px 16px}.we-student button.secondary,.student-dialog .secondary{background:#fffefa;color:#274553;border-color:#c8d1c7}.we-student :is(button,a,input,select):focus-visible,.student-dialog :focus-visible{outline:3px solid #b67d2b;outline-offset:3px}.we-attempt main{max-width:1600px;margin:22px auto;padding:0 24px}.we-attempt footer{display:none}.we-attempt #admin-link{display:none}.exam-topbar{display:flex;align-items:center;gap:30px;border:1px solid #cdd6ce;background:#173347;color:#fffefa;padding:20px 24px}.exam-topbar h2{font-size:21px;font-weight:600;margin:3px 0;line-height:1.4}.exam-topbar .student-kicker{color:#bbc9c7;font-size:10px}.exam-clock{margin-left:auto;flex-shrink:0;text-align:center}.exam-clock span{font-size:11px;display:block;color:#d6dfda}.exam-clock strong{font-variant-numeric:tabular-nums;font-size:27px;letter-spacing:1px}.exam-sectionbar{display:flex;align-items:center;gap:24px;padding:13px 22px;background:#edf0e8;border:1px solid #d4dccf;border-top:0;font-size:13px}.exam-sectionbar label{margin-left:auto;display:flex;gap:10px;align-items:center}.we-student select{font:inherit;background:#fffefa;color:#243d48;padding:7px 10px;border:1px solid #c6d1c4;border-radius:3px;max-width:100%}#save-indicator{font-size:12px;color:#526b5b}.cbt-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;margin-top:20px;align-items:start}.question-workspace{background:#fffefa;border:1px solid #d5ddcf;min-width:0}.question-heading{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e1e6da;padding:18px 26px;gap:15px}.question-heading h3{font-size:18px;margin:0;font-weight:650}.question-heading h3 span{font-size:13px;color:#53665b;font-weight:400}.question-heading>span{color:#66776d;font-size:13px}.question-body{font-size:19px;line-height:1.85;padding:12px 28px}.question-body p{margin:15px 0}.answer-options{border:0;padding:0 28px 28px;margin:0;min-width:0}.answer-option{display:flex;align-items:flex-start;gap:14px;border:1px solid #d9dfd2;padding:14px 18px;margin:12px 0;cursor:pointer;font-size:17px;line-height:1.75}.answer-option.selected{border-color:#25745a;background:#f1f6ed;box-shadow:inset 3px 0 #25745a}.answer-option input{width:18px;height:18px;flex-shrink:0;margin-top:6px;accent-color:#19694f}.answer-option p{margin:0}.option-letter{font-weight:700;font-size:14px;border:1px solid #d1d9cc;min-width:28px;height:28px;text-align:center;color:#587060}.answer-option>div{min-width:0;overflow-wrap:anywhere}.language-tag{display:block;font-size:10px;text-transform:uppercase;letter-spacing:1px;color:#768474;margin-top:10px}.question-actions{display:flex;flex-wrap:wrap;gap:10px;padding:18px 22px;border-top:1px solid #d9e0d3;background:#f6f7f0}.action-spacer{flex:1}.question-palette{background:#fffefa;border:1px solid #d4ddcf;padding:20px;min-width:0}.palette-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.palette-heading h3{font-size:16px;margin:0}.palette-heading>span{font-size:11px;color:#728070}.section-select{display:block;font-size:12px;margin:16px 0}.section-select select{display:block;width:100%;margin-top:5px}.palette-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:20px 0;max-height:350px;overflow:auto;padding:3px}.we-student .palette-item{min-height:42px;padding:2px;font-size:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #b9c7b5;border-radius:3px;line-height:1.2}.palette-item small{font-size:9px}.palette-item[aria-current]{outline:2px solid #183b50;outline-offset:2px}.we-student .not_visited,.status-symbol.not_visited{background:#f0f1eb;color:#53645d}.we-student .not_answered,.status-symbol.not_answered{background:#fbeadc;color:#854627;border-color:#d5aa89}.we-student .answered,.status-symbol.answered{background:#22694f;color:#fff;border-color:#22694f}.we-student .marked_for_review,.status-symbol.marked_for_review{background:#eee7f6;color:#684787;border-color:#b4a1c8}.we-student .answered_and_marked_for_review,.status-symbol.answered_and_marked_for_review{background:#6c5487;color:#fff;border-color:#6c5487}.status-legend{display:grid;gap:10px;font-size:12px;margin:20px 0}.status-legend>span{display:flex;align-items:center;gap:9px}.status-legend strong{margin-left:auto}.status-symbol{display:inline-flex;align-items:center;justify-content:center;width:29px;height:26px;border:1px solid #c5d0bd;border-radius:3px;font-size:12px;flex-shrink:0}.palette-note{font-size:12px;color:#6d7c71;line-height:1.6;border-top:1px solid #dce3d6;padding-top:15px}.recovery-actions{display:flex;gap:10px;margin-top:16px;flex-wrap:wrap}.submission-confirmation{max-width:650px;margin:70px auto;text-align:center;padding:40px;background:#fffefa;border:1px solid #d3ddcc}.submission-confirmation h2{font-size:30px;line-height:1.35}.confirmation-mark{font-size:34px;color:#1a7656;margin:20px}.receipt-id{font:12px/1.7 monospace;overflow-wrap:anywhere;color:#68786c}.student-dialog{width:min(560px,94vw);max-height:90vh;overflow:auto;border:1px solid #bfcdb6;background:#fffefa;padding:32px;color:#213e4b;font:15px/1.7 system-ui}.student-dialog::backdrop{background:#112b4077}.student-dialog h2{margin:8px 0}.dialog-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:24px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.question-table{overflow:auto}.question-table table{border-collapse:collapse}.question-table td{border:1px solid #ccd8c5;padding:8px 12px}
@media(max-width:1100px){.student-catalogue{grid-template-columns:repeat(2,minmax(0,1fr))}.cbt-layout{grid-template-columns:minmax(0,1fr) 260px}.question-actions{gap:8px}.action-spacer{display:none}.instructions-grid{grid-template-columns:minmax(0,1fr) 280px}}
@media(max-width:760px){.we-student main,.we-attempt main{padding:0 14px;margin-top:18px}.we-student header{padding:14px}.student-catalogue,.instructions-grid,.cbt-layout{grid-template-columns:1fr}.student-test{grid-template-columns:1fr;gap:15px;padding:22px}.test-entry{border-left:0;border-top:1px solid #dce1d8;padding:15px 0 0}.start-panel{position:static}.instruction-panel,.start-panel{padding:22px}.rules-list{grid-template-columns:1fr;gap:6px}.rules-list dd{margin-bottom:12px}.exam-topbar{flex-wrap:wrap;padding:16px;gap:14px}.exam-topbar>div:first-child{flex:1 1 100%}.exam-clock{margin-left:0;margin-right:auto;text-align:left}.exam-sectionbar{flex-wrap:wrap;gap:12px;padding:12px}.exam-sectionbar label{margin-left:0}.question-body{padding:8px 18px;font-size:18px}.answer-options{padding:0 16px 18px}.answer-option{padding:12px;gap:10px}.question-actions{padding:14px}.question-actions button{flex:1 1 40%;font-size:13px}.palette-grid{grid-template-columns:repeat(8,minmax(0,1fr))}.status-legend{grid-template-columns:1fr}.student-hero{padding-top:20px}.student-heading h2{font-size:28px}.submission-confirmation{padding:24px;margin:35px auto}.dialog-actions{flex-wrap:wrap}.question-heading{padding:15px}.we-student button:disabled{cursor:not-allowed}.student-dialog{padding:22px}}
.recovery-actions{margin-bottom:16px}.recovery-actions[hidden]{display:none}
.question-time{margin:12px 26px 0;font-size:13px;color:#53666f}.question-time strong{font-variant-numeric:tabular-nums;color:#17384a;white-space:nowrap}

/* Phase 7.5: attempt-only CBT presentation; authority remains in the accepted model. */
body.we-attempt{background:#eef2f5;color:#203346;line-height:1.55}
.we-attempt>header,.we-attempt main>h1,.we-attempt main>.eyebrow{display:none}
.we-attempt main{max-width:none;margin:0;padding:0;min-height:0}
.we-attempt #student-app{height:100dvh;display:flex;flex-direction:column;min-height:0}
.we-attempt .exam-topbar{flex:none;border:0;border-bottom:3px solid #25836b;padding:12px 24px;gap:24px;background:#142f43}
.we-attempt .exam-identity{min-width:0;flex:1}
.exam-brand{font-size:18px;font-weight:750;letter-spacing:-.4px;display:block}
.exam-brand span{font-size:10px;letter-spacing:1.5px;font-weight:500;margin-left:12px;color:#c9d9e2}
.we-attempt .exam-topbar .student-kicker{margin:3px 0 0;letter-spacing:.6px;font-size:11px;color:#c9d9e2}
.we-attempt .exam-topbar h2{font-size:16px;margin:1px 0 0;overflow-wrap:anywhere}
.we-attempt .exam-clock{margin-left:auto;min-width:135px;border-left:1px solid #496071;padding-left:22px}
.we-attempt .exam-clock strong{font-size:28px;letter-spacing:1px}
.we-attempt #submit-test{margin-left:8px;background:transparent;color:#fff;border:1px solid #9aacb8;white-space:nowrap}
.we-attempt .exam-sectionbar{flex:none;min-width:0;border:0;border-bottom:1px solid #cdd7df;background:#fff;padding:9px 24px;gap:20px;font-size:12px}
.current-section{font-weight:700;overflow-wrap:anywhere}
.exam-progress{color:#485d6d;white-space:nowrap}
.we-attempt #save-indicator{color:#244f43;font-weight:600;white-space:nowrap}
.we-attempt .cbt-layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,3fr) minmax(285px,1fr);gap:0;margin:0;align-items:stretch;position:relative}
.we-attempt .question-workspace{border:0;display:flex;flex-direction:column;min-height:0;background:white}
.question-scroll{flex:1;overflow:auto;min-height:0;overscroll-behavior:contain;scrollbar-gutter:stable}
.we-attempt .question-heading{padding:17px 28px;background:#f7f9fb;border-bottom:1px solid #e1e7ec}
.we-attempt .question-heading h3{font-size:18px}
.we-attempt .question-heading>span{color:#455e6a}
.we-attempt .question-time{margin:14px 28px 0;font-size:12px;color:#4f6373}
.we-attempt .question-body{font-size:18px;line-height:1.85;padding:8px 28px}
.we-attempt .answer-options{padding:0 28px 24px}
.we-attempt .answer-option{background:#fff;border:1px solid #ccd7df;border-radius:6px;padding:13px 16px;min-height:54px;font-size:16px;margin:12px 0;gap:13px;line-height:1.7}
.we-attempt .answer-option:hover{border-color:#477e74;background:#f7faf9}
.we-attempt .answer-option.selected{background:#edf7f2;border:2px solid #24745e;padding:12px 15px;box-shadow:inset 3px 0 #24745e}
.we-attempt .answer-option:focus-within{outline:3px solid #b5791d;outline-offset:2px}
.we-attempt .option-letter{border:0;border-radius:4px;background:#edf1f5;color:#3f5665}
.we-attempt .language-tag{color:#4e6473;font-size:11px;letter-spacing:.5px}
.we-attempt .question-actions{flex:none;position:sticky;bottom:0;background:#f7f9fb;border-top:1px solid #cdd7df;padding:14px 20px;gap:8px;box-shadow:0 -3px 10px #18344b08}
.we-attempt button{min-height:44px;border-radius:5px;font-size:13px;padding:9px 14px}
.we-attempt .question-actions .secondary{background:white;color:#304c5d;border-color:#b6c6d0}
.we-attempt #mark-next{color:#63457f;border-color:#b5a1c7}
.we-attempt #save-next{background:#17694f;border-color:#17694f;margin-left:auto}
.we-attempt .question-palette{border:0;border-left:1px solid #cdd7df;padding:19px 20px;background:#f8fafc;display:flex;flex-direction:column;min-height:0;overflow:auto}
.we-attempt .palette-heading h3{font-size:16px}.we-attempt .palette-heading>span{color:#4f6373}
.we-attempt .section-select{margin:12px 0 5px;font-weight:600;color:#435d6c}
.we-attempt select{background:white;border-color:#b9c8d2;min-height:38px}
.section-policy{font-size:11px;color:#526574;margin:4px 0 8px}
.we-attempt .palette-grid{flex:1 1 180px;min-height:100px;max-height:none;overflow:auto;align-content:start;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;padding:4px;margin:6px -4px 14px;overscroll-behavior:contain}
.we-attempt .palette-item{min-height:44px;border-radius:5px;font-size:14px;gap:2px;font-weight:700}
.we-attempt .palette-item small{font-size:11px;line-height:1}
.we-attempt .palette-item[aria-current]{outline:2px solid #142f43;outline-offset:2px;box-shadow:inset 0 0 0 2px white}
.we-attempt .not_visited{background:white;color:#526574;border-color:#b9c7d2}
.we-attempt .not_answered{background:#fff0e4;color:#853d20;border-color:#c78c68;border-radius:5px 5px 12px 5px}
.we-attempt .marked_for_review{background:#f2eafa;color:#613d7e;border-color:#a78cbf;border-radius:12px 12px 5px 5px}
.we-attempt .answered_and_marked_for_review{background:#6b4888;color:white;border-radius:12px 12px 5px 5px}
.we-attempt button:disabled{cursor:not-allowed;opacity:.55}
.legend-title{font-size:11px;letter-spacing:.5px;text-transform:uppercase;font-weight:700;color:#4a6170;margin:0;border-top:1px solid #d7e0e6;padding-top:12px}
.we-attempt .status-legend{margin:10px 0;gap:7px;font-size:12px}
.we-attempt .status-symbol{width:26px;height:24px;border-radius:4px}
.we-attempt .palette-note{font-size:11px;line-height:1.5;margin:6px 0 0;padding-top:10px;color:#4f6373}
.we-attempt .student-notice{flex:none;margin:0;padding:10px 20px;font-size:13px;max-height:20dvh;overflow:auto}
.we-attempt .recovery-actions{flex:none;background:#fff2e3;gap:8px;margin:0;padding:8px 20px;border-bottom:1px solid #d8b792}
.we-attempt #toggle-palette{display:none}
.we-attempt :is(button,a,input,select):focus-visible{outline:3px solid #b5791d;outline-offset:3px}
@media(max-width:1100px) and (min-width:761px){.we-attempt .question-actions{padding:10px}.we-attempt .question-actions button{padding:9px;font-size:12px}.we-attempt .exam-sectionbar{gap:12px}.exam-progress{display:none}}
@media(max-width:760px){
 .we-attempt .exam-topbar{padding:10px 12px;gap:10px;flex-wrap:wrap}
 .we-attempt .exam-topbar>div:first-child{flex:1 1 50%;min-width:0}
 .exam-brand{font-size:16px}.exam-brand span{display:none}
 .we-attempt .exam-topbar h2{font-size:13px}.we-attempt .exam-topbar .student-kicker{font-size:10px}
 .we-attempt .exam-clock{min-width:0;padding-left:10px;margin:0;text-align:right;border-left:0}
 .we-attempt .exam-clock strong{font-size:23px}.we-attempt .exam-clock span{font-size:10px}
 .we-attempt #submit-test{min-height:36px;font-size:11px;padding:5px 10px;margin:0 0 0 auto}
 .we-attempt .exam-sectionbar{padding:8px 12px;gap:8px;flex-wrap:wrap;align-items:center}
 .we-attempt .current-section{flex:1 1 100%;font-size:12px}
 .we-attempt .exam-sectionbar label{margin:0;gap:5px;font-size:11px;flex:1;min-width:0}
 .we-attempt .exam-sectionbar select{min-width:0;width:125px;padding:5px;font-size:12px}
 .we-attempt #toggle-palette{display:block;min-height:40px;padding:6px 10px;font-size:12px}
 .we-attempt #save-indicator{font-size:11px;flex:1 1 100%}.exam-progress{display:none}
 .we-attempt .cbt-layout{display:flex;flex-direction:column}
 .we-attempt .question-workspace{flex:1;min-height:0}
 .we-attempt .question-heading{padding:12px 14px}.we-attempt .question-heading h3{font-size:16px}
 .we-attempt .question-time{margin:10px 14px 0;font-size:11px}
 .we-attempt .question-body{padding:5px 14px;font-size:16px;line-height:1.8}
 .we-attempt .answer-options{padding:0 14px 18px}.we-attempt .answer-option{padding:12px 10px;gap:8px;font-size:15px}
 .we-attempt .answer-option.selected{padding:11px 9px}
 .we-attempt .question-actions{padding:10px;gap:8px;display:grid;grid-template-columns:1fr 1fr}
 .we-attempt .question-actions button{font-size:12px;padding:9px 7px;min-height:44px;min-width:0}
 .we-attempt .action-spacer{display:none}.we-attempt #save-next{margin:0}
 .we-attempt .question-palette{display:none;border-left:0;padding:14px;flex:1;min-height:0}
 .we-attempt .palette-open .question-palette{display:flex}.we-attempt .palette-open .question-workspace{display:none}
 .we-attempt .palette-grid{grid-template-columns:repeat(5,minmax(0,1fr));min-height:90px}
 .we-attempt .recovery-actions{padding:8px 12px;gap:6px;max-height:24dvh;overflow:auto}
 .we-attempt .recovery-actions button{font-size:11px;min-height:40px;padding:6px 10px}
 .we-attempt .student-notice{padding:8px 12px;font-size:12px}
}

/* Consolidated Phase 7.5: give navigation the remaining height, compact whole-test legend. */
.we-attempt .question-palette{padding:14px 16px;gap:0}
.we-attempt .question-palette>*{flex-shrink:0}
.we-attempt .question-palette .palette-grid{flex:1 1 0;min-height:90px;margin:8px -4px 10px;align-content:start}
.we-attempt .question-palette .section-select{margin:8px 0 3px}
.we-attempt .question-palette .section-policy{margin:3px 0;font-size:11px}
.we-attempt .question-palette .legend-title{padding-top:8px;font-size:10px}
.we-attempt .question-palette .status-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px;margin:8px 0;font-size:11px;line-height:1.35}
.we-attempt .question-palette .status-legend>span{gap:5px;min-width:0;align-items:center}
.we-attempt .question-palette .status-legend>span:last-child{grid-column:1/-1}
.we-attempt .question-palette .status-symbol{width:22px;height:22px;font-size:11px}
.we-attempt .question-palette .status-legend strong{font-size:12px;padding-left:3px}
.we-attempt .question-palette .palette-note{margin:4px 0 0;padding-top:6px;font-size:11px}
@media(max-width:760px){.we-attempt .question-palette{padding:12px 14px}.we-attempt .question-palette .palette-grid{min-height:90px}}

/* Phase 7.5: reading order and submission action spacing. */
.we-student .instructions-grid{grid-template-columns:minmax(0,1fr)}
.we-student .start-panel{position:static;width:100%;box-sizing:border-box}
.submission-links{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px 24px;margin-top:20px}
.submission-links p{flex-basis:100%;margin:0}


/* Testbook-reference palette: dedicated full-height five-column navigation.
   Server acknowledgement is the source of truth for colour/counters. */
@media (min-width:761px) {
 .we-attempt .cbt-layout{grid-template-columns:minmax(0,1fr) 322px;}
 .we-attempt .cbt-layout.palette-collapsed{grid-template-columns:minmax(0,1fr) 0px;}
 .we-attempt .palette-collapsed .question-palette{display:none;}
 .we-attempt .palette-collapsed .question-workspace{min-width:0;}
 .we-attempt #submit-test-top{display:none;}
}
.we-attempt .question-palette{
 padding:0;background:#d9edf7;border-left:1px solid #bed8e6;
 overflow:hidden;min-height:0;display:flex;flex-direction:column;
}
.we-attempt .tb-palette-user{flex:none;min-height:42px;padding:7px 12px;display:flex;gap:9px;align-items:center;background:#d5eaf6;color:#183a50;font-weight:600;font-size:13px;}
.we-attempt .tb-palette-user small{margin-left:auto;font-size:10px;color:#496679;font-weight:500;}
.we-attempt .tb-palette-avatar{width:26px;height:26px;display:flex;align-items:center;justify-content:center;color:#fff;background:#08768e;border-radius:50%;font-size:16px;}
.we-attempt .tb-status-summary{flex:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 6px;padding:7px 10px 9px;border-bottom:1px solid #bbdbe9;}
.we-attempt .tb-status{display:flex;align-items:center;gap:5px;min-width:0;color:#243d4b;font-size:10px;line-height:1.2;}
.we-attempt .tb-status span{overflow-wrap:anywhere;}
.we-attempt .tb-status-count{flex:none;display:inline-flex;justify-content:center;align-items:center;min-width:22px;height:20px;padding:0 3px;box-sizing:border-box;border-radius:12px;color:#fff;background:#a1aab0;font-size:11px;font-weight:700;font-variant-numeric:tabular-nums;}
.we-attempt .tb-status-count.answered{background:#137438;color:#fff;}
.we-attempt .tb-status-count.marked_for_review{background:#9855be;color:#fff;}
.we-attempt .tb-status-count.not_visited{background:#fff;color:#222;border:1px solid #4b5155;border-radius:0;}
.we-attempt .tb-status-count.answered_and_marked_for_review{background:#9855be;color:#fff;position:relative;}
.we-attempt .tb-status-count.not_answered{background:#bb3325;color:#fff;}
.we-attempt .tb-palette-section{flex:none;background:#b5dff2;border-bottom:1px solid #9bc5d8;color:#1d384a;font-weight:700;font-size:12px;min-height:32px;display:flex;align-items:center;padding:4px 11px;}
.we-attempt .question-palette .section-select{flex:none;margin:5px 9px;background:transparent;}
.we-attempt .question-palette .palette-grid{flex:1 1 0;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-content:start;grid-auto-rows:30px;gap:11px 11px;margin:0;padding:11px 15px 15px;overscroll-behavior:contain;scrollbar-gutter:stable;}
.we-attempt .palette-grid .palette-item{box-sizing:border-box;min-width:0;min-height:30px;height:30px;padding:0;border:1px solid #565a5b;border-radius:0;background:#fff;color:#171d20;line-height:1;font-weight:500;font-size:14px;display:flex;align-items:center;justify-content:center;position:relative;box-shadow:none;}
.we-attempt .palette-grid .palette-item span{line-height:1;}
.we-attempt .palette-grid .palette-item[aria-current]{outline:1px solid #1b4254;outline-offset:1px;box-shadow:inset 0 0 0 1px #fff;border-radius:50%;}
.we-attempt .palette-grid .palette-item.not_answered{background:#bb3325;color:#fff;border-color:#c0392b;border-radius:0 0 11px 11px;}
.we-attempt .palette-grid .palette-item.answered{background:#22ae54;color:#fff;border-color:#119346;border-radius:0 0 11px 11px;}
.we-attempt .palette-grid .palette-item.marked_for_review{background:#8656b6;color:#fff;border-color:#7746a2;border-radius:50%;}
.we-attempt .palette-grid .palette-item.answered_and_marked_for_review{background:#8656b6;color:#fff;border-color:#7746a2;border-radius:50%;}
.we-attempt .palette-grid .palette-item.answered_and_marked_for_review::after{content:'✓';position:absolute;right:-3px;bottom:-3px;width:12px;height:12px;line-height:12px;border-radius:50%;background:#24b65f;color:#fff;border:1px solid #fff;font-size:9px;}
.we-attempt .palette-grid .palette-item.tb-unsaved::before{content:'';position:absolute;top:-3px;right:-3px;border-radius:50%;background:#e2a329;width:7px;height:7px;border:1px solid #fff;z-index:1;}
.we-attempt .tb-palette-footer{flex:none;margin-top:auto;background:#d4ebf7;padding:8px 14px 10px;border-top:1px solid #b7d6e8;display:flex;flex-direction:column;gap:7px;}
.we-attempt .tb-footer-links{display:grid;grid-template-columns:1fr 1fr;gap:7px;}
.we-attempt .tb-palette-footer button{font-size:12px;min-height:34px;border-radius:3px;padding:6px 5px;background:#a7d4f4;border-color:#83c4eb;color:#1f4050;font-weight:500;}
.we-attempt .tb-palette-footer #submit-test{width:100%;min-height:38px;background:#08768e;border-color:#08768e;color:#fff;font-size:13px;font-weight:700;}
.we-attempt .tb-rail-toggle{position:absolute;z-index:5;right:322px;top:50%;transform:translateY(-50%);min-height:52px!important;width:21px;padding:0!important;background:#28343c!important;border:none!important;color:white!important;font-size:23px!important;border-radius:2px 0 0 2px!important;}
.we-attempt .palette-collapsed .tb-rail-toggle{right:0;}
.we-attempt .answer-option.selected{background:#f0f7ff;border-color:#4688c1;box-shadow:inset 3px 0 #4688c1;}
.we-attempt .answer-option input{accent-color:#2c81c4;}
.we-attempt .question-palette .palette-grid .palette-item:disabled{opacity:.55;}
.palette-info-dialog{width:min(850px,94vw);}
.palette-info-dialog .palette-paper-list{max-height:60vh;overflow:auto;border:1px solid #d7e1e6;padding:8px 18px;}
.palette-info-dialog .palette-paper-list section{padding:10px 2px;border-bottom:1px solid #dce4e9;}
.palette-info-dialog .palette-paper-list h3{font-size:14px;}
@media (max-width:760px){
 .we-attempt .tb-rail-toggle{display:none;}
 .we-attempt #submit-test-top{display:block;}
 .we-attempt .question-palette{min-height:0;overflow:hidden;}
 .we-attempt .question-palette .palette-grid{min-height:0;grid-auto-rows:36px;gap:10px;}
 .we-attempt .palette-grid .palette-item{height:36px;min-height:36px;}
 .we-attempt .palette-open .question-palette{display:flex;}
}

/* October 24: keep Testbook-style navigation on the entire exam-row height.
   Desktop only.  The palette itself must stretch with the question workspace:
   the numbered scroll area grows, while the footer stays on the last edge. */
@media (min-width:761px) {
  body.we-attempt .cbt-layout {
    grid-template-rows:minmax(0,1fr);
    align-items:stretch;
    min-height:0;
  }
  body.we-attempt .cbt-layout > .question-workspace {
    grid-column:1;
    grid-row:1;
    align-self:stretch;
    min-height:0;
  }
  body.we-attempt .cbt-layout > .question-palette {
    grid-column:2;
    grid-row:1;
    align-self:stretch;
    justify-self:stretch;
    height:100%;
    min-height:0;
    max-height:none;
    overflow:hidden;
  }
  body.we-attempt .cbt-layout > .question-palette > .palette-grid {
    flex:1 1 0%;
    min-height:0;
    max-height:none;
    overflow-y:auto;
    overflow-x:hidden;
    align-content:start;
    grid-auto-rows:29px;
    gap:8px 10px;
    padding:9px 14px 10px;
  }
  body.we-attempt .cbt-layout > .question-palette > .tb-palette-footer {
    flex:0 0 auto;
    margin-top:0;
  }
}

/* Explicit exam exit: no timer is paused until the server acknowledges Pause. */
.we-attempt #exit-exam{background:#fff;color:#17384a;border:1px solid #cddae3;white-space:nowrap;font-weight:750}
.student-dialog.exit-dialog{position:fixed;inset:0;margin:auto;max-width:min(460px,calc(100vw - 24px));width:100%;border:1px solid #d2dce5;border-radius:16px;padding:26px;background:#fff;box-shadow:0 20px 70px #0c243c55;color:#203346}
.student-dialog.exit-dialog::backdrop{background:rgba(9,26,42,.68)}
.exit-dialog h2{font-size:23px;margin:6px 0 10px}
.exit-dialog-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}
.exit-dialog-options button{min-height:56px;font-weight:750;white-space:normal}
.exit-dialog #pause-exit{background:#17694f;color:#fff;border-color:#17694f}
.exit-dialog #exit-submit{background:#a63533;color:#fff;border-color:#a63533}
.exit-help{font-size:13px;color:#526574;line-height:1.6;margin:12px 0 18px}
@media(max-width:760px){.we-attempt #exit-exam{min-height:38px;padding:6px 11px}.student-dialog.exit-dialog{padding:20px}.exit-dialog-options{gap:8px}}

/* Local G09 correction: native high zoom leaves too little height for a fixed exam viewport. */
@media (max-width:760px) and (max-height:600px) {
 body.we-attempt {height:auto;overflow:auto;}
 .we-attempt #student-app {height:auto;min-height:100dvh;}
 .we-attempt .cbt-layout,.we-attempt .question-workspace {flex:none;min-height:auto;}
 .we-attempt .question-scroll {flex:none;overflow:visible;}
 .we-attempt .question-actions {position:static;}
}