/* A viewport-sized workspace; only the task and answer panes scroll. */
body.test-focus{overflow:hidden}
body.test-focus .toast{bottom:76px;pointer-events:none}
body.test-focus .sidebar,body.test-focus .topbar,body.test-focus .footer,body.test-focus .sidebar-scrim{display:none!important}
body.test-focus .main{margin:0!important;width:100%;height:100dvh;min-height:0}
body.test-focus .content{padding:0!important;max-width:none;width:100%;height:100dvh;min-height:0}
body.test-focus #view{height:100%;min-height:0}
.exam-shell{display:flex;flex-direction:column;height:100dvh;min-height:0;overflow:hidden;background:var(--surface-soft);position:relative}
.exam-header,.exam-header.player-header{display:flex;align-items:center;gap:18px;padding:10px 22px;flex-shrink:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:linear-gradient(120deg,var(--glass-top),var(--glass-bottom));box-shadow:0 2px 12px #10223808}
.exam-title,.exam-header .editor-heading{flex:1;min-width:120px}
.exam-header h1,.exam-header .draft-title{font-size:1.05rem;line-height:1.4;letter-spacing:-.2px;max-width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
.exam-header .eyebrow{font-size:.65rem;letter-spacing:.1em;margin:0 0 2px}
.exam-header .player-save-status,.exam-header .save-status{font-size:.7rem;line-height:1.3;margin:3px 0 0}
.exam-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.exam-actions .button{min-height:36px;padding:7px 11px;font-size:.8rem;white-space:nowrap}
.exam-header .player-clock{min-width:84px;padding:0 16px;border:0;border-left:1px solid var(--line)}
.exam-header .player-clock strong{font-size:1.4rem;letter-spacing:0}
.exam-header .player-clock>span{font-size:.65rem}
.exam-subbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:32px;padding:5px 22px;font-size:.73rem;color:var(--muted);border-bottom:1px solid var(--line);flex-shrink:0}
.exam-selection-tip{margin-left:auto}
.exam-shell .reading-workspace{flex:1;min-height:0}
body.test-focus .exam-shell .reader-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;height:100%;min-height:0}
.exam-shell .passage-pane,.exam-shell .question-pane{height:100%;min-height:0;min-width:0;max-width:none;padding:26px 32px;overflow:auto;scrollbar-gutter:stable;scroll-padding:25px;border-radius:0;background:var(--surface);border:0}
.exam-shell .passage-pane{border-right:1px solid var(--line)}
.exam-shell .passage-heading{padding-bottom:16px;margin-bottom:20px}
.exam-shell .passage-heading h2{font-size:1.4rem;line-height:1.5}
.exam-shell .passage-prose{font-size:1.08rem;line-height:1.95}
.exam-shell .passage-prose p{margin-bottom:22px}
.exam-shell .passage-introduction{font-size:1rem;line-height:1.8;margin-bottom:18px}
.exam-shell .passage-footnotes{font-size:.875rem}
.question-context{white-space:pre-wrap;line-height:2;margin:18px 0;color:var(--ink)}
.exam-shell .question-group-heading h3{font-size:1.1rem}
.exam-shell .question-group-heading p{font-size:.95rem;line-height:1.7;margin-top:7px}
.exam-shell .reading-question{padding:12px 0 18px;margin:12px 0 0}
.exam-shell .reading-question legend{font-size:1rem;line-height:1.8}
.exam-shell .question-tools{margin:7px 0 10px}
.exam-shell .flag-button,.exam-shell .clear-answer{font-size:.7rem;padding:3px 7px}
.exam-shell .answer-option{padding:9px 11px;font-size:1rem}
.exam-shell .question-group+.question-group{margin-top:28px;padding-top:22px}
.completion-sentence{font-size:1.03rem;line-height:2.65;color:var(--ink);overflow-wrap:anywhere}
.reading-question.completion-question{border:0;padding:3px 0;margin:8px 0}
.inline-answer{display:inline-flex;align-items:center;gap:5px;vertical-align:baseline;white-space:nowrap;max-width:100%;scroll-margin:40px 0}
.gap-number{font-size:.75rem;font-weight:750;color:var(--muted);padding-left:3px}
.inline-answer .completion-input.gap-input{display:inline-block;width:clamp(110px,11vw,190px);max-width:45vw;min-height:36px;height:36px;margin:3px 0;padding:4px 9px;border:1px solid var(--muted);border-radius:6px;font-size:1rem;line-height:1.4;background:var(--field-bg)}
.inline-answer .gap-input:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:transparent}
.gap-flag{padding:0;border:0;background:transparent;color:var(--muted);opacity:.5;font-size:.9rem;width:20px;height:30px}
.gap-flag:hover,.gap-flag:focus-visible,.gap-flag.is-flagged{opacity:1;color:var(--accent)}
.exam-shell .exam-nav{flex-shrink:0;display:flex;align-items:center;gap:12px;padding:9px 18px;margin:0;border-radius:0;border:0;border-top:1px solid var(--line);background:var(--opaque-surface);min-height:59px}
.exam-nav-strip{display:flex;align-items:center;gap:12px;min-width:0;flex:1;overflow-x:auto;scrollbar-width:thin;padding:3px}
.exam-current-part{display:flex;gap:5px;align-items:center;flex-shrink:0;padding-right:2px}
.exam-part{white-space:nowrap;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft);padding:7px 12px;font-size:.82rem;font-weight:650;color:var(--ink)}
.exam-part:hover,.exam-part.active{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}
.exam-nav .question-jump{flex:none;width:32px;height:32px;border-radius:50%;border:1px solid #8390a2;background:#dce1e8;color:#344052;font-size:.75rem;font-weight:650}
.exam-nav .question-jump.answered{background:#247449;border-color:#247449;color:white}
.exam-nav .question-jump.current-question{outline:2px solid var(--accent);outline-offset:2px}
.exam-nav .question-jump.flagged:after{width:8px;height:8px;right:-2px;top:-1px;border-radius:50%;border:1px solid var(--opaque-surface)}
[data-theme=dark] .exam-nav .question-jump:not(.answered){background:#465267;color:#f0f4fa;border-color:#67758c}
.exam-nav-toggle{border:0;border-left:1px solid var(--line);padding:7px 0 7px 13px;background:transparent;color:var(--muted);white-space:nowrap;font-size:.75rem}
.exam-shell .reader-mobile-switch{display:none;margin:0;border:0;padding:0;background:none}
.exam-shell .practice-paused{border-radius:0;background:color-mix(in srgb,var(--opaque-surface) 85%,transparent);z-index:5}
.exam-shell .practice-save-error{margin:0;border-radius:0;padding:8px 22px;font-size:.8rem;flex-shrink:0}
body.test-focus .listening-workspace .reader-layout{grid-template-columns:minmax(0,1fr)}
.exam-shell .listening-workspace .question-pane{padding:24px clamp(22px,6vw,110px);justify-self:stretch;width:100%;max-width:none}
.exam-shell .listening-workspace .passage-heading{display:flex;align-items:center;gap:16px;margin:0 0 18px;padding-bottom:12px}
.exam-shell .listening-workspace .passage-heading .eyebrow{margin:0;white-space:nowrap}
.exam-shell .listening-workspace .passage-heading h2{font-size:1.2rem}
.exam-audio-status{display:flex;align-items:center;justify-content:center;gap:9px;font-size:.75rem;color:var(--muted);flex-wrap:wrap;max-width:340px}
.exam-audio-status audio{display:none}
.audio-status-dot{width:7px;height:7px;border-radius:50%;background:var(--green)}
.volume-control{display:flex;align-items:center;gap:7px;margin-left:8px;font-size:.7rem}
.volume-control input{padding:0;width:75px;height:20px;accent-color:var(--accent)}
.selection-menu{position:fixed;z-index:60;display:flex;flex-wrap:wrap;gap:3px;max-width:calc(100vw - 16px);padding:5px;border:1px solid var(--line);border-radius:10px;background:var(--opaque-surface);box-shadow:0 6px 28px #0003}
.selection-menu button{border:0;border-radius:6px;background:transparent;padding:8px 10px;color:var(--ink);font-size:.8rem;white-space:nowrap}
.selection-menu button:hover{background:var(--accent-soft);color:var(--accent)}
.exam-shell .reading-notes,.writing-review-drawer{position:absolute;right:12px;top:85px;bottom:70px;z-index:25;width:min(380px,calc(100% - 24px));padding:20px;margin:0;overflow:auto;background:var(--opaque-surface);box-shadow:0 12px 40px #0003}
.exam-shell .reading-notes [data-notes-list]{display:grid;grid-template-columns:1fr;max-height:none;overflow:visible;margin-top:14px}
.reading-note textarea{resize:vertical}
.writing-timer{display:flex;align-items:center;gap:8px}
.writing-timer strong{font-variant-numeric:tabular-nums;font-size:1.4rem;min-width:64px}
.writing-timer select{width:auto;max-width:125px;font-size:.75rem;padding:6px 8px}
.writing-timer .button{padding:5px 9px;font-size:.75rem;min-height:34px}
.writing-timer .icon-button{width:30px;height:32px}
.writing-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);flex:1;min-height:0}
.writing-task-pane{padding:26px 32px;overflow:auto;min-width:0;min-height:0;background:var(--surface);border-right:1px solid var(--line);scrollbar-gutter:stable}
.writing-pane-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px;min-height:32px}
.writing-pane-heading h2{font-size:1.1rem}
.writing-pane-heading>span{font-size:.85rem;color:var(--muted)}
.writing-task-text{white-space:pre-line;font-size:1.05rem;line-height:1.9;color:var(--ink);margin-bottom:25px}
.writing-task-pane .prompt-input{font-size:1.05rem;line-height:1.8;min-height:190px;width:100%;padding:14px;background:var(--field-bg);border:1px solid var(--line);border-radius:10px}
.writing-task-pane .content-image{margin:22px 0 0}
.writing-task-pane .content-image img{max-width:100%;height:auto;max-height:none;object-fit:contain}
.writing-response-pane{display:flex;flex-direction:column;min-height:0;min-width:0;background:var(--surface)}
.writing-response-pane .writing-pane-heading{padding:20px 26px 14px;margin:0;border-bottom:1px solid var(--line)}
.writing-response-pane .essay-input{flex:1;min-height:0;height:100%;width:100%;resize:none;overflow:auto;border:0;border-radius:0;padding:22px 28px;background:transparent;font-size:1.06rem;line-height:1.95;color:var(--ink)}
.writing-response-pane .essay-input:focus{outline:none;box-shadow:inset 0 0 0 2px var(--accent-soft)}
.writing-response-pane .editor-foot{flex-shrink:0;padding:9px 24px;font-size:.72rem}
.writing-mobile-switch{display:none}
.writing-review-drawer{bottom:18px}
.writing-review-drawer .checklist{padding:18px 0}
.writing-review-drawer .writing-sample{padding:15px 0;white-space:pre-line}
.writing-review-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
.vocabulary-add{padding:22px;margin-bottom:22px}
.vocabulary-add>label{display:block;font-size:.85rem;font-weight:600;margin-bottom:10px}
.vocabulary-add>div{display:flex;gap:12px}
.vocabulary-add input{flex:1;min-width:0}
.vocabulary-filters{display:flex;gap:12px;align-items:center;margin:0 0 22px}
.vocabulary-filters input{flex:1;min-width:0}
.vocabulary-filters select{width:auto;max-width:220px}
.vocabulary-filters>span{font-size:.75rem;white-space:nowrap}
.vocabulary-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:18px;align-items:start}
.vocabulary-card{padding:22px}
.vocabulary-word{display:flex;align-items:center;justify-content:space-between;gap:12px}
.vocabulary-word h2{font-size:1.3rem;overflow-wrap:anywhere}
.vocabulary-word .icon-button{flex-shrink:0}
.vocabulary-source{font-size:.73rem;margin:7px 0;line-height:1.6}
.vocabulary-context{margin:12px 0;font-size:.85rem;color:var(--muted)}
.vocabulary-context summary{cursor:pointer}
.vocabulary-context p{padding:12px 0;line-height:1.7;white-space:pre-line;overflow-wrap:anywhere}
.vocabulary-card>label{display:block;font-size:.78rem;margin:17px 0 8px;font-weight:600}
.vocabulary-card textarea{width:100%;min-height:84px;resize:vertical;font-size:1rem}
.vocabulary-card>small{display:block;font-size:.7rem;color:var(--muted);margin-top:7px}
@media(max-width:1100px){
 .exam-header,.exam-header.player-header{gap:10px;padding:9px 15px}
 .exam-header h1,.exam-header .draft-title{font-size:.95rem}
 .exam-actions{gap:5px}.exam-actions .button{padding:6px 8px;font-size:.73rem}
 .exam-shell .passage-pane,.exam-shell .question-pane,.writing-task-pane{padding:22px}
 .writing-timer{gap:5px}.writing-timer strong{font-size:1.2rem;min-width:54px}
 .exam-audio-status{max-width:190px}.volume-control{margin:0}
}
@media(max-width:760px){
 .exam-header,.exam-header.player-header{flex-wrap:wrap;gap:8px;padding:8px 12px}
 .exam-title,.exam-header .editor-heading{flex:1;min-width:170px}
 .exam-header .exam-actions{width:100%;justify-content:flex-end;flex-wrap:nowrap}
 .exam-header .exam-actions .button{min-height:32px;font-size:.7rem;padding:6px 7px;flex:1;white-space:normal;line-height:1.2;text-align:center}
 .exam-header .player-clock{padding:0;min-width:65px}
 .exam-subbar{padding:4px 12px;min-height:38px}
 .exam-selection-tip{display:none}
 .exam-shell .reader-mobile-switch{display:flex;gap:3px}
 .exam-shell .reader-mobile-switch button{font-size:.75rem;padding:4px 10px}
 body.test-focus .exam-shell .reader-layout{display:block;height:100%;min-height:0}
 .exam-shell .passage-pane,.exam-shell .question-pane,.exam-shell .listening-workspace .question-pane{padding:19px;height:100%}
 .exam-shell .reading-workspace[data-mobile-tab=passage] .question-pane{display:none}
 .exam-shell .reading-workspace[data-mobile-tab=questions] .passage-pane{display:none}
 .exam-shell .listening-workspace .question-pane{display:block!important}
 .exam-shell .exam-nav{gap:6px;padding:5px 8px;min-height:52px}
 .exam-nav-strip{gap:7px}.exam-current-part{gap:5px}
 .exam-nav .question-jump{width:29px;height:29px}.exam-part{padding:5px 8px;font-size:.75rem}
 .exam-nav-toggle{max-width:65px;white-space:normal;line-height:1.3;font-size:.68rem;padding-left:6px}
 .inline-answer .completion-input.gap-input{width:130px;min-height:36px}
 .completion-sentence{font-size:1rem}
 .exam-audio-status{max-width:165px;gap:4px;font-size:.7rem;justify-content:flex-end}
 .volume-control{font-size:.65rem}.volume-control input{width:65px}
 .exam-shell .reading-notes,.writing-review-drawer{top:110px;bottom:58px}
 .writing-mobile-switch{display:flex;padding:5px 12px;gap:8px;border-bottom:1px solid var(--line)}
 .writing-mobile-switch button{flex:1;padding:6px;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--muted);font-size:.8rem}
 .writing-mobile-switch button.active{background:var(--accent-soft);border-color:var(--accent);color:var(--ink)}
 .writing-split{display:block;min-height:0}
 .writing-task-pane,.writing-response-pane{height:100%;padding:0}
 .writing-task-pane{padding:20px}
 .writing-split[data-writing-view=task] .writing-response-pane{display:none}
 .writing-split[data-writing-view=response] .writing-task-pane{display:none}
 .writing-response-pane .essay-input{padding:18px;font-size:1rem}
 .writing-response-pane .writing-pane-heading{padding:12px 18px}
 .writing-response-pane .editor-foot{font-size:.68rem;padding:8px 15px}
 .writing-timer{margin-left:auto}.writing-timer .icon-button{display:none}
 .writing-timer select{max-width:100px;font-size:.68rem}
 .vocabulary-add{padding:18px}.vocabulary-add>div{gap:8px}
 .vocabulary-add .button{font-size:.8rem;padding:8px 10px}
 .vocabulary-filters{flex-wrap:wrap}.vocabulary-filters input{flex-basis:100%}
 .vocabulary-filters>span{margin-left:auto}
 .vocabulary-card{padding:19px}
}
