#lesson.exam-workspace{width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;border-radius:0;background:#fff;overflow:hidden}
#lesson.exam-workspace[open]{display:flex;flex-direction:column}
.exam-workspace .modalhead{padding:16px 28px;flex-shrink:0;border-bottom:1px solid #e0e8ed;align-items:center}
.exam-workspace .modalhead h2{font-size:20px;margin:4px 0;max-width:80vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.exam-workspace .modalhead .eyebrow{font-size:10px;margin:0}
.exam-workspace #lessonbody{padding:0;flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.test-top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 28px;border-bottom:1px solid #e0e8ed;background:#fff;flex-shrink:0}
.test-top .toolbar,.test-top .examnav{margin:0}.test-top .examtop{position:static;padding:0;border:0;background:none;min-width:270px}
.test-top .examnav{gap:5px;background:#f0f4f8;padding:5px;border-radius:30px}.test-top .examnav button{border-radius:24px;background:transparent;font-size:12px;padding:10px 14px}.test-top .examnav button[aria-current]{background:#fff;color:#00886c;box-shadow:0 2px 8px #172e221a}
.test-split{display:grid;grid-template-columns:1fr 1fr;flex:1;min-height:0;overflow:hidden}
.test-questions,.test-source{overflow:auto;min-width:0;overscroll-behavior:contain;padding:28px 36px 50px;scrollbar-width:thin;scrollbar-color:#c9d5dd transparent}
.test-questions{border-right:1px solid #dce5ed;background:#fbfcfe}.test-source{background:#fff}
.test-pane-heading{font-size:12px;font-weight:800;letter-spacing:1.5px;color:#00886c;margin-bottom:25px;display:flex;justify-content:space-between;gap:16px}.test-pane-heading span{font-size:11px;font-weight:500;letter-spacing:0;color:#687b8f}
.exam-workspace .question{padding:0;margin:0 0 32px;border:0;background:none}.exam-workspace .question>strong{font-size:18px;line-height:1.6;display:block;margin-bottom:16px;color:#17283c}
.exam-workspace .answer{position:relative;display:flex;align-items:center;gap:15px;padding:14px;margin:10px 0;border:1px solid #dce5ed;border-radius:16px;background:#fff;font-size:16px;line-height:1.6;cursor:pointer;color:#405469}
.exam-workspace .answer:hover{border-color:#5dbda7;background:#f6fdf9}.exam-workspace .answer:has(input:checked){border-color:#00a57e;background:#effcf7;box-shadow:0 0 0 2px #00a57e16;color:#006e55}
.exam-workspace .answer input{position:absolute;opacity:0;width:1px;height:1px}.exam-workspace .answer:focus-within{outline:3px solid #d79254;outline-offset:2px}.answer-letter{display:grid;place-items:center;flex-shrink:0;width:40px;height:44px;background:#f0f4f8;border-radius:10px;font-weight:800}.answer:has(input:checked) .answer-letter{background:#d2f5e8;color:#00886c}
.exam-workspace .test-source .passage{padding:0;margin:0;border:0;border-radius:0;background:none;font-size:19px;line-height:1.95;white-space:pre-wrap}.test-source h3{font-size:clamp(25px,2.7vw,42px);line-height:1.3;margin:12px 0 32px;letter-spacing:-.8px}.test-source .intro{margin:16px 0}
.test-footer{flex-shrink:0;border-top:1px solid #dce5ed;padding:14px 28px;background:#fff;box-shadow:0 -5px 20px #20354505}.test-footer .toolbar{margin:0;justify-content:space-between}.test-footer .notice{font-size:11px;margin:8px 0 0}.test-footer button{min-height:46px}.test-mobile-tabs{display:none}
@media(max-width:900px){.test-top{flex-wrap:wrap;gap:8px;padding:8px 18px}.test-top .examnav{flex-wrap:nowrap;overflow:auto;width:100%}.test-top .examnav button{white-space:nowrap}.test-questions,.test-source{padding:22px}.test-pane-heading span{display:none}}
@media(max-width:640px){.exam-workspace .modalhead{padding:10px 16px}.exam-workspace .modalhead h2{font-size:16px}.test-mobile-tabs{display:flex;padding:8px 16px;gap:8px;border-bottom:1px solid #e0e8ed}.test-mobile-tabs button{flex:1;padding:10px;border-radius:10px;background:#f0f4f8;font-weight:700}.test-mobile-tabs button[aria-pressed=true]{background:#00886c;color:#fff}.test-split{display:block;position:relative}.test-questions,.test-source{height:100%;padding:20px 18px 32px;border:0}.test-source{display:none}.show-test-source .test-source{display:block}.show-test-source .test-questions{display:none}.exam-workspace .question>strong{font-size:17px}.exam-workspace .answer{font-size:15px;padding:11px;gap:12px}.exam-workspace .test-source .passage{font-size:17px}.test-footer{padding:10px 16px;padding-bottom:max(10px,env(safe-area-inset-bottom))}.test-footer button{font-size:12px;padding:10px}.test-footer .toolbar{gap:5px;flex-wrap:wrap}.test-footer .notice{font-size:10px}.test-top .examtop{min-width:0;width:100%;font-size:12px}.test-top .toolbar{font-size:12px}.test-top .examnav button{font-size:11px;padding:8px 10px}}
.exam-workspace #lessonbody{max-height:none}.exam-workspace .test-source .passage{font-family:inherit}body:has(#lesson.exam-workspace[open]){overflow:hidden}

/* Keep the exercise usable on short screens and at browser zoom. */
#lesson.exam-workspace .modalhead{padding:10px 20px;gap:12px}
#lesson.exam-workspace .modalhead h2{white-space:normal;font-size:18px;line-height:1.3}
#lesson.exam-workspace .test-top{padding:6px 20px}
#lesson.exam-workspace .test-top button{padding:8px 12px;min-height:36px}
#lesson.exam-workspace .study-part-nav{margin:4px 20px;padding:3px;gap:3px}
#lesson.exam-workspace .study-part-nav button{padding:8px 12px;font-size:12px}
#lesson.exam-workspace .test-footer{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;padding:8px 20px}
#lesson.exam-workspace .study-actions{padding:0;margin-inline-start:auto;gap:6px}
#lesson.exam-workspace .test-footer button{min-height:40px;padding:8px 12px;font-size:12px}
#lesson.exam-workspace .test-questions,#lesson.exam-workspace .test-source{padding:20px 24px 32px;scroll-padding-top:16px}
#lesson.exam-workspace .test-pane-heading{margin-bottom:16px}
#lesson.exam-workspace .answer{padding:10px 12px;margin:8px 0;min-height:48px;overflow-wrap:anywhere}
#lesson.exam-workspace .question{scroll-margin-top:16px}
#lesson.exam-workspace .test-source .passage{font-size:17px;line-height:1.8}
#answer-status{margin:0;color:#9a3412;font-weight:600;flex-basis:100%}
.has-question-translation{position:relative}
#lesson .has-question-translation>strong{padding-right:48px}
#lesson .has-question-translation>.translate-answers{position:absolute;top:0;right:0;display:grid;place-items:center;margin:0;padding:0;width:40px;height:40px;min-height:40px;border:0;border-radius:50%;background:transparent;color:#00886c;cursor:pointer}
#lesson .has-question-translation>.translate-answers:hover,#lesson .has-question-translation>.translate-answers[aria-expanded=true]{background:#e7f8f0}
#lesson .has-question-translation>.translate-answers:focus-visible{outline:2px solid #00886c;outline-offset:2px}
#lesson .has-question-translation>.translate-answers:disabled{opacity:.5;cursor:wait}
#lesson .listening-workspace .has-question-translation>.translate-answers{top:8px;right:8px}
#lesson .listening-workspace .has-question-translation>.listening-question-text{padding-right:40px}
.answer-translation{white-space:pre-wrap;line-height:1.8;background:#effbf5;border-radius:12px;padding:14px;margin:8px 0;font-size:16px}
.answer-translation[hidden]{display:none}
.test-questions>#result{scroll-margin-top:16px;outline:none}.practice-result{margin:0 0 28px;padding:22px;border:2px solid #00886c;border-radius:16px;background:#effcf7;color:#17283c}.practice-result h3{margin:0 0 10px;font-size:22px}.practice-result p{margin:10px 0;line-height:1.65}.practice-result .result{font-size:clamp(24px,4vw,34px);font-weight:800;color:#006e55}.practice-result-incomplete{background:#fff8e7;border-color:#c58b16}

/* Focus workspace: desktop always shows source and answers together, even on short windows. */
#lesson.exam-workspace .modalhead{min-height:52px;padding:6px 16px}
#lesson.exam-workspace .modalhead>div:first-child{min-width:0}
#lesson.exam-workspace .modalhead h2{font-size:17px;margin:2px 0}
#lesson.exam-workspace .focus-controls{display:flex;align-items:center;gap:8px;flex-shrink:0}
#lesson.exam-workspace .focus-controls button{width:auto;height:auto;min-height:36px;padding:8px 12px;border-radius:9px;font-size:12px;background:#edf5f2;white-space:nowrap}
#lesson.exam-workspace .focus-controls .close{background:#fff0ed;color:#8a3024}
#lesson.exam-workspace .test-mobile-tabs{display:none}
#lesson.exam-workspace .test-split{direction:ltr;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
#lesson.exam-workspace .test-questions,#lesson.exam-workspace .test-source{direction:ltr;display:block;min-height:0}
#lesson.exam-workspace .study-part-nav{display:none}
#lesson.exam-workspace .test-top{padding:4px 16px}
#lesson.exam-workspace .test-top .toolbar{gap:12px}
#lesson.exam-workspace .test-source h3{font-size:22px;margin:0 0 16px}
#lesson.exam-workspace .test-questions,#lesson.exam-workspace .test-source{padding:16px 20px}
#lesson.exam-workspace .question>strong{font-size:16px;line-height:1.45;margin-bottom:10px}
#lesson.exam-workspace .answer{font-size:15px;line-height:1.45;gap:10px;padding:8px 10px;min-height:44px}
#lesson.exam-workspace .answer-letter{width:32px;height:34px}
#lesson.exam-workspace .question{margin-bottom:24px}
#lesson.exam-workspace .test-source .passage{font-size:16px;line-height:1.7}
.answer-copy{min-width:0;flex:1}.inline-arabic{display:block;text-align:right;color:#12654e;font-size:15px;font-weight:500;line-height:1.6;margin-top:6px;padding-top:5px;border-top:1px solid #dbece4}.inline-arabic[hidden]{display:none}
.translation-status{font-size:13px;color:#9a3412;line-height:1.5}.translation-status:empty{display:none}
@media(max-width:640px){
 #lesson.exam-workspace .modalhead{flex-wrap:wrap;gap:4px;padding:6px 10px}
 #lesson.exam-workspace .modalhead h2{font-size:15px}
 #lesson.exam-workspace .focus-controls button{font-size:10px;padding:7px}
 #lesson.exam-workspace #lessonbody{overflow:hidden;display:flex;min-height:0}
 #lesson.exam-workspace .test-split{display:flex;flex-direction:column;overflow:hidden;min-height:0}
 #lesson.exam-workspace .test-source{order:-1;height:auto;max-height:32dvh;flex:0 1 32dvh;border-bottom:1px solid #dce5ed;overflow:auto}
 #lesson.exam-workspace .test-questions{height:auto;flex:1;overflow:auto}
 #lesson.exam-workspace .test-footer{padding:6px 10px;gap:4px;max-height:20dvh;overflow:auto}
 #lesson.exam-workspace .study-actions{flex-wrap:wrap;margin:0;gap:4px}
 #lesson.exam-workspace .test-footer button{font-size:10px;padding:6px 8px;min-height:34px}
 #lesson.exam-workspace .test-pane-heading{margin-bottom:8px}
}
.skill-nav{background:#f1f5f9;border:1px solid #e0e7ef;border-radius:32px;padding:5px;gap:4px}.skill-nav button{border-radius:28px!important}.skill-nav button.active{background:white!important;box-shadow:0 2px 7px #15253620}
#practice .filters{display:flex;background:#f1f5f9;border-radius:28px;padding:5px;overflow:auto;flex-wrap:nowrap}#practice .filters button{white-space:nowrap;flex:1;border-radius:23px}#practice .filters button.active{background:white;color:#087f66;box-shadow:0 2px 8px #15253618}
#library-parts{display:flex;background:white;border:1px solid #dde6ed;border-radius:18px;padding:5px;gap:4px;overflow:auto;margin:20px 0}#library-parts[hidden]{display:none}#library-parts button{flex:1;white-space:nowrap;border-radius:14px;padding:16px 12px;background:white;color:#65758a}#library-parts button[aria-pressed=true]{background:#05a77d;color:white}
.topic-progress{border-top:1px solid #e5eaf0;padding-top:12px;margin-top:14px;font-size:12px}.topic-progress>div{display:flex;justify-content:space-between;gap:10px}.topic-progress strong{color:#087b61}.topic-progress progress,.question-progress progress,.final-report progress{display:block;width:100%;height:7px;border:0;border-radius:9px;overflow:hidden;margin:10px 0 14px;background:#e9eef4;accent-color:#04a77d}progress::-webkit-progress-bar{background:#e9eef4}progress::-webkit-progress-value{background:#04a77d;border-radius:9px}
#lesson.exam-workspace .question-progress{position:sticky;top:-16px;z-index:3;background:#fbfcfe;padding:12px 0;margin-bottom:18px;border-bottom:1px solid #e0e7ef}.question-progress>div{display:flex;justify-content:space-between;gap:8px;font-size:13px}.question-progress nav{display:flex;gap:5px;flex-wrap:wrap}.question-progress button{min-width:32px;min-height:30px;border-radius:8px;background:white;border:1px solid #d8e1eb;font-size:12px}.question-progress button.answered{background:#ddf8ed;color:#006d52;border-color:#7bd6b6}
#lesson.exam-workspace .test-top{flex-wrap:wrap;gap:5px}#lesson.exam-workspace .test-top .examnav{display:flex;overflow:auto;flex:1;min-width:0}#lesson.exam-workspace .examnav button{flex:1;white-space:nowrap;padding:7px 10px}#lesson.exam-workspace .examnav small{display:block;font-size:10px;margin-top:3px;color:#688174}
.final-report{max-width:950px;margin:0 auto;padding:12px 6px 30px}.final-report>header{text-align:center;padding:25px;border-radius:20px;background:#f5fbf8}.final-report h2{font-size:62px;margin:10px 0}.final-report h2 small{font-size:24px;color:#8293a6}.final-report header p{font-size:13px;line-height:1.6;color:#687d8c}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.result-stats span{display:grid;gap:8px;font-size:12px}.result-stats b{font-size:25px;color:#11243d}.result-section{border:1px solid #dde6ef;border-radius:17px;margin:16px 0;padding:20px;background:white}.result-section summary{cursor:pointer;display:flex;justify-content:space-between;gap:18px;align-items:center}.result-section summary small{display:block;color:#788ca3;margin-top:7px}.result-section summary>b{white-space:nowrap;color:#087d63}.answer-review{border:1px solid #e2e8f0;border-radius:14px;padding:18px;margin-top:18px}.answer-review>div:first-child{display:flex;justify-content:space-between;gap:8px;font-size:12px}.answer-review.correct>div:first-child{color:#087f63}.answer-review.incorrect>div:first-child{color:#b53e38}.answer-review h4{font-size:16px;line-height:1.6}.answer-review>p{font-size:14px;line-height:1.7}.answer-comparison{display:grid;grid-template-columns:1fr 1fr;gap:12px}.answer-comparison p{margin:0;border-radius:10px;background:#f1f5f9;padding:14px;line-height:1.6}.answer-comparison p:last-child{background:#eafbf3}.answer-comparison small{display:block;font-size:11px;color:#687e90;margin-bottom:8px}.report-actions{display:flex;gap:12px;margin-top:25px}.report-actions button{flex:1}
@media(max-width:640px){.final-report h2{font-size:42px}.final-report h2 small{font-size:17px}.answer-comparison{grid-template-columns:1fr}.result-section{padding:12px}.result-section summary{font-size:12px}.question-progress nav{max-height:70px;overflow:auto}}

#practice #filters{display:none}#practice .librarytools{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:12px}#practice .librarytools label:has(#lessonformat){display:none}@media(max-width:800px){#practice .librarytools{grid-template-columns:1fr 1fr}#practice .librarytools label:first-child{grid-column:1/-1}}

#lesson .focus-controls{display:flex;align-items:center;gap:6px;flex-shrink:0}#lesson .focus-controls button{width:auto;height:auto;min-height:34px;padding:8px 10px;border-radius:9px;font-size:12px;white-space:nowrap}#lesson .focus-controls .close{background:#fff0ed;color:#8a3024}#lesson .modalhead{gap:12px;flex-wrap:wrap}#lesson .modalbody{min-width:0;overflow-x:hidden}.final-report{min-width:0}.final-report h4,.answer-comparison p{overflow-wrap:anywhere}

.matching-instructions{color:#475569;line-height:1.7;margin:0 0 16px}.matching-options{display:grid;gap:12px}.matching-option{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;width:100%;padding:16px;text-align:left;border:1px solid #dce5ed;border-radius:14px;background:white;font-size:16px;line-height:1.6}.matching-option small{flex-shrink:0;color:#00886c;font-weight:700}.matching-option[aria-pressed=true]{border-color:#00886c;background:#e6faf3;box-shadow:0 0 0 2px #00886c33}.matching-option:disabled{cursor:default}.matching-selected{position:sticky;top:-28px;z-index:2;background:#effcf7;border:1px solid #b5e9d9;border-radius:12px;padding:14px;line-height:1.7;font-size:14px}.exam-workspace .matching-text{border:1px solid #dce5ed;border-radius:16px;background:white;padding:20px;margin:0 0 24px}.matching-text header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.matching-text header strong{font-size:18px}.matching-text header button{background:#f1f5f9;border-radius:8px;padding:8px;color:#475569;font-size:12px}.matching-slot{display:block;width:100%;padding:13px;text-align:left;background:#f8fafc;border:2px dashed #a8bbca;border-radius:10px;color:#475569;line-height:1.6}.matching-slot.assigned{border-style:solid;border-color:#00886c;background:#effcf7;color:#006e55;font-weight:700}.matching-passage{white-space:pre-wrap;font-size:18px;line-height:1.9;margin:18px 0 0}.matching-option:focus-visible,.matching-slot:focus-visible{outline:3px solid #d79254;outline-offset:3px}#matching-progress{font-size:14px;color:#006e55;font-weight:700}@media(max-width:640px){.matching-selected{top:-20px}.matching-passage{font-size:16px}.exam-workspace .matching-text{padding:16px}.matching-option{font-size:15px}}

/* Keep part navigation in the same header as the title and exit controls. */
#lesson.exam-workspace .modalhead{display:grid;grid-template-columns:minmax(180px,1fr) minmax(440px,2fr) auto;direction:ltr;gap:16px;padding:10px 18px}
#lesson.exam-workspace .modalhead h2{white-space:normal;font-size:17px;line-height:1.3}
#lesson .header-part-nav{display:flex;flex-wrap:nowrap;align-items:stretch;gap:4px;min-width:0;background:#eef3f8;border:1px solid #dfe7ef;border-radius:32px;padding:5px;direction:ltr;overflow-x:auto}
#lesson .header-part-nav button{flex:1;min-width:76px;border-radius:26px;background:transparent;color:#8696ac;padding:10px 12px;white-space:nowrap;font-size:14px;font-weight:700}
#lesson .header-part-nav button[aria-pressed=true],#lesson .header-part-nav button[aria-current]{background:white;color:#142437;box-shadow:0 2px 7px #172e2226}
#lesson .header-part-nav button:disabled{opacity:.4;cursor:not-allowed}
#lesson .header-part-nav small{display:block;font-size:10px;font-weight:500;margin-top:2px}
#lesson:not(.exam-workspace) .header-part-nav{display:none}
#library-parts{min-height:70px;margin:24px 0;border-radius:20px;padding:4px;box-shadow:0 2px 8px #173b2a08}
#library-parts button{font-size:17px;font-weight:700;padding:17px 14px;min-width:120px}
.skill-nav [data-browse="grammar"]{display:none}
@media(max-width:1100px){#lesson.exam-workspace .modalhead{grid-template-columns:1fr auto}#lesson .header-part-nav{grid-column:1/-1;grid-row:2}#lesson.exam-workspace .focus-controls{grid-column:2;grid-row:1}}
@media(max-width:640px){#lesson.exam-workspace .modalhead{padding:6px 10px;gap:6px}#lesson .header-part-nav button{min-width:72px;padding:7px;font-size:12px}#library-parts button{min-width:100px;font-size:14px}}

.exam-library-parts{display:flex;gap:4px;overflow:auto;background:white;padding:4px;border:1px solid #dde6ed;border-radius:20px;margin:24px 0}.exam-library-parts button{flex:1;min-width:110px;background:white;padding:17px 14px;border-radius:16px;font-size:17px;font-weight:700;color:#8696ac}.exam-library-parts button[aria-pressed=true]{background:#05a77d;color:white}

.scoring-reference table{width:100%;border-collapse:collapse;white-space:normal;margin:16px 0;font-size:14px}.scoring-reference th,.scoring-reference td{text-align:left;padding:10px;border-bottom:1px solid #dce5ed}.practice-points{font-size:20px;padding:14px;border-radius:12px;background:#effcf7;color:#006e55}.scoring-reference p{font-size:13px;line-height:1.7;white-space:normal}

.theme-title-ar{display:block;margin-top:.35rem;font-size:.88em;font-weight:500;line-height:1.6;unicode-bidi:isolate}.module h3>span[lang=de]{display:block;unicode-bidi:isolate}#lessontitle .theme-title-ar,#variant-picker-title .theme-title-ar{font-size:.72em}

#lesson .grammar-gap{display:inline-block;min-width:85px;max-width:100%;padding:3px 9px;margin:2px 3px;border:1px dashed #719c90;border-radius:7px;background:#f0f6f3;color:#174d3b;font:inherit;vertical-align:baseline;white-space:normal;line-height:1.5;cursor:pointer}#lesson .grammar-gap small{font-size:10px;color:#63796e;margin-right:5px}#lesson .grammar-gap.filled{border-style:solid;background:#e1f5ec;border-color:#349d7c;font-weight:700}#lesson .grammar-gap.gap-correct{background:#ddf6e8;border-color:#168252}#lesson .grammar-gap.gap-wrong{background:#fff0e9;border-color:#bb6450}#lesson [data-gap-question]:focus{outline:2px solid #349d7c;outline-offset:5px;border-radius:8px}

#lesson .placement-feedback{display:none}#lesson .placement-feedback:has(.feedback){display:block}#lesson .placement-situation .matching-option{width:100%;text-align:start}#lesson .placement-situation{margin:12px 0}#lesson .placement-ad-used{font-size:13px;font-weight:700;color:#087b61}#lesson .grammar-gap-clear{padding:2px 6px;margin-right:4px;border-radius:5px;background:#fff0e9;color:#8b3e30;font-size:14px}#lesson .grammar-gap-clear[hidden]{display:none}

#lesson .placement-ad-choice{width:100%;text-align:start;align-items:flex-start}#lesson .placement-ad-choice .matching-passage{display:block;margin-top:10px;font-weight:400;font-size:14px;line-height:1.7;white-space:pre-wrap}

#lesson .staged-answer{width:100%;text-align:start}#lesson .staged-answer[aria-pressed=true]{outline:2px solid #078466;background:#e1f8ed}#lesson .staged-answer.staged-assigned{border-color:#47aa85}#lesson .staged-destinations{margin-top:24px}

/* Sprach 1 correction: keep every option visible alongside the selected answer. */
#lesson .sprach-one-choices .staged-choice-group:has([data-correction=correct]) .matching-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#lesson .sprach-one-choices .staged-answer[data-correction]:not([data-correction=none]){min-height:64px;padding:14px 12px;outline:0;box-shadow:none;opacity:1;overflow-wrap:anywhere;align-items:center}
#lesson .sprach-one-choices .staged-answer[data-correction=correct]{border:2px dashed #168252;background:#effcf4;color:#166534}
#lesson .sprach-one-choices .staged-answer[data-correction=correct][aria-pressed=true]{border-style:solid}
#lesson .sprach-one-choices .staged-answer[data-correction=correct]::after{content:'✓';font-weight:700}
#lesson .sprach-one-choices .staged-answer[data-correction=wrong]{border:2px solid #e68b91;background:#fff2f3;color:#b42332}
#lesson .sprach-one-choices .staged-answer[data-correction=wrong]::after{content:'×';font-weight:700}
#lesson .sprach-one-choices .staged-answer[data-correction=unused]{border:1px solid #e2e8f0;background:#f8fafc;color:#94a3b8}
@media(max-width:400px){#lesson .sprach-one-choices .staged-choice-group:has([data-correction=correct]) .matching-options{grid-template-columns:1fr}}

#lesson .staged-choice-group>strong{font-size:13px;letter-spacing:.05em;color:#526977;margin-bottom:14px}#lesson .staged-answer{min-height:72px;padding:18px 20px;border-radius:16px;font-size:16px;line-height:1.7;margin:0}#lesson .staged-choice-group{margin:20px 0 30px}#lesson .staged-choice-group .matching-options{gap:12px}#lesson .staged-destinations .matching-slot{min-height:58px;padding:15px 16px}@media(max-width:640px){#lesson .staged-answer{min-height:60px;padding:14px;font-size:15px}}

#lesson .placement-situation .matching-option{min-height:72px;padding:18px 20px;border-radius:16px;font-size:16px;line-height:1.7}#lesson [data-placement-ad] .matching-slot{white-space:pre-wrap}

.practice-mode-switch{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-inline-start:auto}.practice-mode-switch>span{font-size:11px;color:#64748b}.practice-mode-switch button{padding:8px 12px;border:1px solid #dce5ed;border-radius:9px;background:#fff;font-size:12px}.practice-mode-switch button[aria-pressed=true]{background:#087f65;color:white;border-color:#087f65}.advanced-match-choices{display:grid;gap:8px;margin:6px 0 15px;padding:12px;border-left:3px solid #0b8c6c;background:#f1faf6;border-radius:8px}.advanced-match-preview{display:flex;align-items:flex-start;gap:12px;text-align:start;width:100%;padding:12px;border:1px solid #d4e4db;border-radius:9px;background:white;color:#243e35;line-height:1.65}.advanced-match-preview strong{color:#087c61;flex-shrink:0}.advanced-match-preview span{font-size:14px;white-space:pre-wrap;max-height:230px;overflow:auto}.advanced-match-preview.chosen{border-color:#0b8c6c;background:#e5f7ed}.advanced-match-change{justify-self:start;padding:5px 10px;border-radius:7px;background:#e0eee6;color:#23614b;font-size:12px}.matching-option.advanced-open,.staged-answer.advanced-open{outline:2px solid #0b8c6c}@media(max-width:640px){.practice-mode-switch{margin:0;width:100%}.practice-mode-switch button{flex:1}.advanced-match-preview{padding:10px;gap:8px}.advanced-match-preview span{font-size:13px}}

#lesson .advanced-practice-mode .advanced-match-choices{padding:6px 0 6px 16px;margin:4px 0 12px;gap:3px;border:0;background:transparent;border-radius:0}#lesson .advanced-practice-mode .advanced-match-preview{padding:7px 10px;gap:10px;border:1px solid transparent;border-radius:6px;background:transparent;line-height:1.4}#lesson .advanced-practice-mode .advanced-match-preview:hover{background:#eff8f3;border-color:#c9e8d8}#lesson .advanced-practice-mode .advanced-match-preview.chosen{background:#e5f7ed;border-color:#8dcdb2}#lesson .advanced-practice-mode .advanced-match-preview span{display:block;min-width:0;max-height:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex:1;font-size:14px}#lesson .advanced-practice-mode .advanced-match-preview strong{font-size:13px;white-space:nowrap}#lesson .advanced-practice-mode .matching-option,#lesson .advanced-practice-mode .staged-answer{scroll-margin-top:150px}

/* Status regions take space only when they have a message. */
#lesson .matching-selected:empty{display:none}
/* Advanced answers are assigned from the left-hand A–A/A–B previews. */
#lesson .advanced-practice-mode .test-source .matching-slot,
#lesson .advanced-practice-mode .test-source [data-match-clear]{display:none}

/* A question and its Advanced choices share one compact card. */
#lesson .advanced-practice-mode .advanced-question-card{border:1px solid #dce5ed;border-radius:10px;background:#fff;overflow:hidden;margin:0}
#lesson .advanced-practice-mode .advanced-question-card:has(.advanced-open){border-color:#0b8c6c}
#lesson .advanced-practice-mode .advanced-question-card>.matching-option{border:0;border-radius:0;outline:0;box-shadow:none;min-height:44px;margin:0;padding:10px 12px;font-size:14px;line-height:1.45}
#lesson .advanced-practice-mode .advanced-question-card>.advanced-match-choices{margin:0;padding:4px 8px 8px;gap:2px;border-top:1px solid #edf2ef}
#lesson .advanced-practice-mode .advanced-question-card .advanced-match-preview{min-height:44px;padding:5px 8px;gap:8px;line-height:1.35}
#lesson .advanced-practice-mode .advanced-question-card .advanced-match-preview span,#lesson .advanced-practice-mode .advanced-question-card .advanced-match-preview strong{font-size:13px}

/* Neutral choices until the learner checks the answers. */
#lesson .advanced-practice-mode .advanced-question-card .advanced-match-preview{min-height:36px;padding:4px 7px;background:transparent;border-color:transparent}
#lesson .advanced-practice-mode .advanced-question-card .advanced-match-preview span,#lesson .advanced-practice-mode .advanced-question-card .advanced-match-preview strong{font-size:12px;color:#475569}
#lesson .advanced-practice-mode .advanced-question-card .advanced-match-preview:hover{background:#f8fafc;border-color:#e2e8f0}
#lesson .advanced-practice-mode .advanced-question-card .advanced-match-preview.chosen{background:#f1f5f9;border-color:#94a3b8}
#lesson .advanced-practice-mode .advanced-question-card:has(.advanced-open){border-color:#94a3b8}
#lesson .advanced-practice-mode .advanced-question-card>.matching-option[aria-pressed=true]{background:#f1f5f9}
#lesson .advanced-practice-mode .advanced-question-card .advanced-match-preview.review-correct{background:#e5f7ed;border-color:#47aa85}
#lesson .advanced-practice-mode .advanced-question-card .advanced-match-preview.review-incorrect{background:#fff1f2;border-color:#e5a1ab}
#lesson .advanced-practice-mode .advanced-match-change{background:#f1f5f9;color:#475569}

/* Compact answer previews within the shared question card. */
#lesson .advanced-practice-mode .advanced-question-card .advanced-match-preview span,#lesson .advanced-practice-mode .advanced-question-card .advanced-match-preview strong{font-size:12px;line-height:1.4}
#lesson .advanced-practice-mode .advanced-question-card .advanced-match-preview span{white-space:normal;overflow:visible;text-overflow:clip}

/* Keep question stems with their choices in every multiple-choice section. */
#lesson .staged-question-text{margin:8px 0 14px;font-size:16px;font-weight:600;line-height:1.55;color:#243e35;white-space:pre-wrap}
/* Assigned previews remain plain text within the question card until correction. */
#lesson .advanced-practice-mode .advanced-question-card>.advanced-match-choices{border-top:0}
#lesson .advanced-practice-mode .advanced-question-card .advanced-match-preview.chosen:not(.review-correct):not(.review-incorrect),
#lesson .advanced-practice-mode .advanced-question-card .advanced-match-preview:hover:not(.review-correct):not(.review-incorrect){background:transparent;border-color:transparent;box-shadow:none}
#lesson .advanced-practice-mode .advanced-match-change{background:transparent;border:0;border-radius:0;padding:3px 7px;text-decoration:underline}

/* Keep the matched answer and Change link on one compact row. */
#lesson .advanced-practice-mode .advanced-question-card>.matching-option{min-height:32px;padding:6px 10px;line-height:1.35}
#lesson .advanced-practice-mode .advanced-question-card>.advanced-match-choices{padding:0 10px 6px;margin:0;gap:2px}
#lesson .advanced-practice-mode .advanced-question-card>.advanced-match-choices:has(.advanced-match-change){display:flex;align-items:center;gap:8px}
#lesson .advanced-practice-mode .advanced-question-card .advanced-match-preview{min-height:28px;padding:2px 4px}
#lesson .advanced-practice-mode .advanced-question-card .advanced-match-choices:has(.advanced-match-change)>.advanced-match-preview{flex:1;min-width:0}
#lesson .advanced-practice-mode .advanced-question-card .advanced-match-change{flex:0 0 auto;min-height:28px;padding:2px 4px;font-size:11px;line-height:1.3;white-space:nowrap}



/* One reusable X choice below the ten situations in Current mode. */

/* X uses the ordinary answer style and records the chosen situation. */
#lesson .placement-text-none{display:flex;align-items:center;justify-content:flex-start;width:100%;min-height:44px;margin:12px 0 0;padding:16px;font-size:16px;font-weight:400;line-height:1.6;text-align:left;border:1px solid #dce5ed;border-radius:14px;background:#fff;color:#243e35}#lesson .placement-text-none[aria-pressed=true]{border-color:#94a3b8;background:#f1f5f9}#lesson .advanced-practice-mode .placement-text-none{display:none}
#lesson .matching-slot.no-match{border-style:solid;border-color:#94a3b8;background:#f1f5f9;color:#475569;font-weight:400}
#lesson [data-placement-ad]:has(.matching-slot.multiple-answers){border:0;background:transparent;box-shadow:none}
#lesson [data-placement-ad] .matching-slot.multiple-answers{padding:14px 16px;white-space:normal;border:1px solid #00886c;border-radius:12px;background:#effcf7;box-shadow:none;color:#006e55;font-weight:400}
#lesson .placement-answer-row{display:grid;grid-template-columns:12px minmax(0,1fr);gap:8px;padding:4px 0;text-align:left}
#lesson .placement-answer-row+.placement-answer-row{margin-top:10px}
#lesson .placement-answer-marker{line-height:inherit}
#lesson .grammar-gap.gap-active{outline:2px solid #00886c;outline-offset:3px}
@media(min-width:641px){
 #lesson.exam-workspace .advanced-word-pool .test-split{grid-template-columns:minmax(0,3fr) minmax(180px,1fr);gap:18px;padding:18px;background:#f0f5f4}
 #lesson .advanced-word-pool .test-source,#lesson .advanced-word-pool .test-questions{border:1px solid #e0e8ed;border-radius:16px;background:#fff;padding:24px}
 #lesson .advanced-word-pool .test-source{grid-column:1;grid-row:1;border-right:1px solid #dce5ed}
 #lesson .advanced-word-pool .test-questions{grid-column:2;grid-row:1;border-right:0}
}
#lesson .advanced-word-pool .source-passage{font-size:18px;line-height:2.1}
#lesson .advanced-word-pool .test-source .intro,#lesson .advanced-word-pool .placement-word-letter,#lesson .advanced-word-pool [data-placement-choice] small{display:none}
#lesson .advanced-word-pool .test-source>#placement-destination-status,#lesson .advanced-word-pool .matching-instructions{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#lesson .advanced-word-pool #placement-selected{position:static;border:0;background:none;padding:0;margin:0 0 14px;font-size:12px;color:#526977}
#lesson .advanced-word-pool .question-progress{position:static;padding:0 0 10px;margin:0 0 14px;border:0;background:none}
#lesson .advanced-word-pool .question-progress nav,#lesson .advanced-word-pool .question-progress>div>span{display:none}
#lesson .advanced-word-pool .matching-options{gap:8px}
#lesson .advanced-word-pool [data-placement-choice]{justify-content:center;align-items:center;width:100%;min-height:44px;padding:8px 12px;border:1px solid #e1e8e5;border-radius:10px;background:#f0f3f2;text-align:center;font-size:16px;line-height:1.5;font-weight:400;box-shadow:0 2px 4px #14243708}
#lesson .advanced-word-pool [data-placement-choice]:hover:not(:disabled){border-color:#00886c;background:#e6faf3}
#lesson .advanced-word-pool [data-placement-choice][hidden]{display:none}
#lesson .advanced-word-pool .grammar-gap:not(.filled){min-width:75px;text-align:center;border:0;border-bottom:2px dashed #b8c8c2;border-radius:0;background:transparent;line-height:1.5;padding:3px 12px;margin-inline:6px}
#lesson .advanced-word-pool .grammar-gap:not(.filled) small{margin:0;font-size:16px;font-weight:700;color:#00886c}
#lesson .advanced-word-pool .grammar-gap:not(.filled)>span{display:none}
#lesson .advanced-word-pool .grammar-gap.gap-active{outline:0;border-bottom:2px solid #00886c;background:#effcf7;border-radius:6px}
@media(min-width:641px) and (max-width:900px){#lesson.exam-workspace .advanced-word-pool .test-split{grid-template-columns:minmax(0,2fr) minmax(170px,1fr);padding:12px;gap:12px}#lesson .advanced-word-pool .test-source,#lesson .advanced-word-pool .test-questions{padding:18px}}

/* Corrections need room for the answer and explanation, while the text stays visible. */
@media(min-width:641px){#lesson.exam-workspace .advanced-word-review .test-split{grid-template-columns:minmax(0,3fr) minmax(260px,2fr)}}
#lesson .advanced-word-review .test-questions>.test-pane-heading,#lesson .advanced-word-review [data-placement-choice],#lesson .advanced-word-review [data-placement-clear],#lesson .advanced-word-review .matching-selected,#lesson .advanced-word-review #placement-progress{display:none}
#lesson .advanced-word-review .test-source,#lesson .advanced-word-review .test-questions{overflow-anchor:none}
#lesson .advanced-word-review .practice-result{padding:16px;margin-bottom:18px;overflow-wrap:anywhere}
#lesson .advanced-word-review .practice-result h3{font-size:20px}
#lesson .advanced-word-review .practice-result .result{font-size:24px}
#lesson .advanced-word-review .practice-result p{font-size:14px}
#lesson .advanced-word-review .placement-feedback{min-width:0;margin:0 0 18px}
#lesson .advanced-word-review .feedback{padding:16px;overflow-wrap:anywhere}
