/* v7: one compact exam toolbar, white reading surfaces, warm brand accents. */
.writing-prep,.speech-practice{margin:18px 0;padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--aqua);color:var(--text)}.writing-prep h3,.speech-practice h3{margin:3px 0 8px;color:var(--navy);font-size:20px}.writing-prep .eyebrow{margin:0;color:var(--teal);font-size:12px;font-weight:750}.writing-prep-intro,.speech-disclosure{margin:0 0 14px;color:var(--muted);font-size:14px;line-height:1.85}.writing-prep-label{margin:16px 0 8px;color:var(--navy);font-size:14px}.writing-task-list{display:grid;gap:7px;margin:0;padding-inline-start:22px}.writing-task-list li{padding:8px 10px;border-radius:9px;background:var(--white);color:var(--text);line-height:1.7}.writing-phrase-actions{display:flex;flex-wrap:wrap;gap:8px}.writing-phrase,.grammar-replacement{border:1px solid var(--line);border-radius:10px;padding:8px 12px;background:var(--white);color:var(--teal);font:inherit;font-size:14px;font-weight:650;cursor:pointer}.writing-phrase:hover,.grammar-replacement:hover{border-color:var(--teal);background:var(--soft)}.writing-phrase:focus-visible,.grammar-replacement:focus-visible,.speech-start:focus-visible{outline:3px solid var(--blue);outline-offset:2px}.speech-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:14px}.speech-status{color:var(--muted);font-size:13px;line-height:1.65}.speech-start:disabled{opacity:.7;cursor:not-allowed}.production-response .speech-transcript{height:190px;min-height:130px;max-height:40dvh;margin-bottom:14px}.language-checker{margin:16px 0;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--soft);color:var(--text)}.language-tool-credit{margin:10px 0;color:var(--muted);font-size:13px;line-height:1.8}.language-tool-credit a{color:var(--teal);font-weight:700;text-decoration:underline;text-underline-offset:3px}.grammar-results{display:grid;gap:10px;margin-top:12px;font-size:14px}.grammar-match{display:grid;gap:7px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--white);overflow-wrap:anywhere}.grammar-match p{margin:0;color:var(--muted);direction:ltr;text-align:left}.grammar-match small{color:var(--muted)}.grammar-replacement{justify-self:start;max-width:100%;overflow-wrap:anywhere}.grammar-replacement:disabled{opacity:.58;cursor:default}.grammar-results>small{color:var(--muted);line-height:1.7}html[data-theme=dark] .writing-task-list li,html[data-theme=dark] .writing-phrase,html[data-theme=dark] .grammar-match,html[data-theme=dark] .grammar-replacement{background:var(--white);color:var(--text)}
:root{--paper:#fbfaf8;--white:#fff;--soft:#f4f3f0;--text:#2c3036;--navy:#202830;--muted:#656c76;--line:#e3e4e6;--teal:#a9273c;--aqua:#fceff0;--lime:#dfb44f;--deep:#30353c;--shadow:0 4px 20px #20283006;--blue:#365eca;--decor:#c4a97624}
html[data-theme=dark]{--paper:#171a20;--white:#20252d;--soft:#2a303a;--text:#e8edf3;--navy:#f4f6fa;--muted:#b2bdca;--line:#39424e;--teal:#ff9eaa;--aqua:#432c35;--lime:#ebc16b;--deep:#e8edf3;--shadow:0 4px 20px #0002;--blue:#9fbeff;--decor:#ead9b416}
body{font-family:"Segoe UI",Tahoma,Arial,sans-serif;font-size:16px;line-height:1.65;background-color:var(--paper);background-image:radial-gradient(circle at 1px 1px,var(--decor) 1px,transparent 1.3px);background-size:24px 24px}
body:before{content:"";position:fixed;top:-160px;right:-170px;width:440px;height:440px;border:1px solid var(--decor);border-radius:90px;transform:rotate(35deg);pointer-events:none;z-index:-1}
[lang=ar],[lang=ar-MA],.option-ar{font-family:"Segoe UI",Tahoma,Arial,sans-serif;letter-spacing:normal}
.topbar{padding:9px 0;background:var(--paper);border:0}.topbar-inner{width:calc(100% - 36px);padding:7px 14px;min-height:64px;background:var(--white)!important;border:1px solid var(--line);border-radius:22px;gap:10px}.brand{min-width:178px;color:var(--navy)}.brand strong{font-size:18px;color:var(--navy)}.brand small{font-size:11px;color:var(--muted)}.brand-logo{width:45px;height:45px}.topnav{border-radius:17px;gap:0;padding:4px;background:var(--soft)}.nav-link{font-size:13px;padding:8px 10px;border-radius:13px}.nav-link.active{color:var(--teal);background:var(--white);box-shadow:var(--shadow)}.header-actions{gap:5px}.header-actions .level-switch button{padding:6px 9px}.theme-toggle{min-height:38px;height:38px;padding:0 9px;font-size:12px;background:var(--white);color:var(--text)}.theme-toggle span{display:none}
.shell{max-width:1440px;padding:30px 30px 100px}.explore-header{padding:15px 0 0;margin:0}.explore-header h1{font-size:58px;font-weight:760}.explore-header .eyebrow{font-size:12px;background:var(--white)}.explore-header>p:last-child{font-size:15px}.explorer-levels{margin:15px auto 28px;border:1px solid var(--line);background:var(--white);border-radius:15px}.explorer-levels button{min-width:75px;font-size:17px;padding:8px 20px;border-radius:11px}.level-switch button[aria-pressed=true]{background:var(--teal);color:var(--white)}html[data-theme=dark] .level-switch button[aria-pressed=true]{background:#a9273c;color:white}.explorer-tabs{margin-bottom:20px;padding:4px;border-radius:14px;background:var(--white)}.explorer-tab{min-height:51px;font-size:16px}.explorer-tab[aria-pressed=true]{background:#a9273c;color:#fff}.explorer-search input,.explorer-toolbar select{min-height:48px;font-size:15px}.explorer-cards{gap:18px}.subject-card{min-height:165px;padding:22px;border-radius:15px}.subject-title{font-size:20px}.subject-footer{font-size:13px}.subject-top{font-size:12px}.subject-card:hover{border-color:var(--teal);box-shadow:0 7px 24px #6c25300c}.subject-card:focus-visible{outline-color:var(--blue)}.archive-filter{font-size:13px;display:flex;justify-content:flex-start;margin-top:12px;direction:rtl}.archive-filter input{accent-color:var(--teal)}
.icon-button{border:1px solid var(--line);background:var(--white);color:var(--text);border-radius:11px;min-width:38px;min-height:38px;padding:6px 9px;cursor:pointer;font-size:15px;font-weight:650;line-height:1.3;white-space:nowrap}.icon-button:hover{border-color:var(--teal);background:var(--soft)}.icon-button[aria-pressed=true]{color:var(--teal);background:var(--aqua);border-color:var(--teal)}.server-status{font-size:10px;max-width:65px;line-height:1.3;color:var(--muted);text-align:center}.server-status.sync-error{color:var(--red)}.sync-banner{position:fixed;bottom:8px;left:50%;transform:translateX(-50%);z-index:99;padding:9px 18px;max-width:90vw;border:1px solid var(--red);border-radius:12px;background:var(--white);color:var(--red);direction:rtl}
.in-exam .topbar,.in-exam .mobile-nav{display:none}.in-exam .shell{max-width:1660px;padding:0 24px 20px}.in-exam .practice-stage{margin:0}.in-exam .exam-intro{position:sticky;top:0;z-index:10;min-height:74px;margin:0 -24px 20px;padding:10px 24px;gap:14px;flex-wrap:nowrap;background:var(--white);border-bottom:1px solid var(--line)}.exam-subject-label{min-width:110px;max-width:220px;line-height:1.35}.exam-subject-label strong{font-size:18px}.exam-subject-label small{font-size:11px;margin-top:3px}.exam-intro>.text-button{font-size:12px;max-width:110px}.exam-part-tabs{max-width:630px;padding:4px;border:1px solid var(--line);border-radius:25px;margin:0 auto}.exam-part-tabs button{font-size:14px;min-width:64px;min-height:38px}.exam-tools{display:flex;align-items:center;gap:6px;direction:ltr;flex-shrink:0}.exam-clock{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums;min-width:46px;text-align:center}.exam-layout{gap:22px;grid-template-columns:minmax(0,1.4fr) minmax(360px,1fr)}.exam-support{background:var(--white);border-radius:16px;max-height:calc(100dvh - 125px);position:sticky;top:94px}.exam-support-head{padding:12px 22px;gap:5px}.exam-support-head .eyebrow{flex-basis:auto;font-size:11px}.exam-support-head h2{font-size:15px;margin-left:auto;margin-right:0}.exam-support-body{padding:8px 24px 24px;font-size:16px;line-height:1.8;overflow:auto;scrollbar-width:thin}.exam-support-body .exam-paragraph{margin:16px 0}.exam-support-body .exam-arabic,.fiche-body .arabic-block{font-size:15px;line-height:1.9;padding-bottom:14px;color:var(--blue);margin:7px 0 14px}.batch-card{max-height:calc(100dvh - 125px);overflow:auto;scrollbar-width:thin;background:var(--white)}.question-header{padding:14px 20px;font-size:12px;background:var(--white);color:var(--muted)}.progress-track{background:var(--line);height:4px}.batch-questions{padding:0 20px}.batch-item{padding:19px 0}.batch-item h3{font-size:17px;margin:7px 0 10px;line-height:1.5}.batch-item>.eyebrow{font-size:10px}.options{gap:9px}.option.bilingual-option{padding:12px;min-height:55px;gap:12px;border-radius:12px;background:var(--white);border-color:var(--line)}.option.bilingual-option .option-letter{font-size:13px;flex-basis:28px;min-height:28px;background:var(--soft);color:var(--muted)}.option-copy{gap:4px}.option-de{font-size:15px;line-height:1.55;font-weight:600}.option-ar{font-size:14px;line-height:1.8;color:var(--blue)}.option-ar:empty{display:none}.option.selected{background:var(--aqua);border-color:var(--teal)}.option:hover:not(:disabled){border-color:var(--teal);background:var(--soft)}.option.correct{border-color:#358565;background:var(--soft)}.option.wrong{border-color:var(--red);background:var(--red-bg)}.batch-footer{padding:12px 20px;background:var(--white);gap:10px}.batch-progress{font-size:13px}.button{font-size:14px;padding:9px 15px}.button-primary{background:#ae2940;border-color:#ae2940;color:#fff}.button-primary:hover{background:#8d1d30;border-color:#8d1d30}.question-guide{font-size:14px;margin:14px 20px;padding:10px 14px}.question-guide p{font-size:14px;line-height:1.9}.gemini-disclosure{font-size:11px;color:var(--muted)}.exam-question .question-inner{padding:22px}.question-inner h2{font-size:20px;line-height:1.5}.answer-tools{display:flex;justify-content:flex-end;gap:5px;margin:4px 0 9px;direction:ltr}.answer-tools .icon-button{min-height:30px;min-width:34px;font-size:12px;padding:4px 8px}.heading-options-head{display:grid;grid-template-columns:1fr auto;gap:4px 12px;background:var(--white)}.heading-options-head h2{grid-column:1;margin:0;font-size:15px}.heading-options-head .heading-status{grid-row:2;grid-column:1;margin:0}.heading-options-head .progress-track{grid-column:1/-1;grid-row:3}.heading-options-head .answer-tools{grid-column:2;grid-row:1/3;margin:0;align-items:start}
.heading-exam{gap:28px;grid-template-columns:minmax(0,1.65fr) minmax(340px,1fr)}.heading-texts{max-height:calc(100dvh - 177px);overflow:auto;scrollbar-width:thin;padding:4px 7px 10px}.heading-title{font-size:40px;line-height:1.2;margin:8px 0 6px}.heading-subtitle{font-size:11px;letter-spacing:.06em;margin:0 0 27px}.heading-text{padding:25px;margin-bottom:22px;border-radius:18px;background:var(--white)}.text-number{width:38px;min-width:38px;height:38px;font-size:14px}.heading-passage{font-size:16px;line-height:1.8;margin:20px 0 23px}.heading-answer-slot{font-size:14px;min-height:52px;padding:12px}.heading-text.active{border-color:var(--blue);box-shadow:0 0 0 3px var(--aqua)}.heading-options{top:94px;max-height:calc(100dvh - 177px);padding:0 8px 10px}.heading-choices{gap:11px}.heading-choices .option{padding:16px 14px}.matching-help{font-size:13px;line-height:1.8;margin:12px 0}.matching-footer{bottom:0;min-height:66px;padding:10px 15px;margin:0 -15px;background:var(--white);border-color:var(--line);border-radius:14px 14px 0 0}.matching-guide{font-size:14px}.matching-guide p{font-size:14px}.mobile-text-tabs{display:none}.translations-hidden .option-ar,.translations-hidden .exam-arabic,.translations-hidden .arabic-block{display:none!important}
.resume-banner{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 20px;margin:0 0 20px;border:1px solid var(--line);border-inline-start:3px solid var(--teal);border-radius:14px;background:var(--white);direction:rtl}.settings-dialog{width:min(480px,calc(100vw - 30px));padding:24px;border:1px solid var(--line);border-radius:20px;color:var(--text);background:var(--white);direction:rtl;box-shadow:0 20px 80px #0003}.settings-dialog::backdrop{background:#13182088;backdrop-filter:blur(3px)}.settings-dialog header{display:flex;justify-content:space-between;align-items:center}.settings-dialog h2{margin:0;font-size:23px}.settings-dialog label{display:grid;gap:7px;margin:17px 0;font-size:14px}.settings-dialog input{background:var(--soft);border:1px solid var(--line);color:var(--text);border-radius:10px;min-height:44px;padding:10px}.settings-dialog p{font-size:14px}.startup-notice{position:fixed;inset:0;z-index:100;background:var(--paper);color:var(--text);display:flex;align-items:center;justify-content:center;padding:35px;text-align:center;direction:rtl;font-size:21px}.attempt-list{display:grid;gap:16px}.attempt-card{padding:22px;direction:rtl}.attempt-heading{display:flex;justify-content:space-between;gap:20px;align-items:center}.attempt-heading h2{margin:0;font-size:20px;direction:ltr}.attempt-heading strong{font-size:24px;direction:ltr;color:var(--teal)}.attempt-card summary{cursor:pointer;color:var(--teal)}.archive-answer{border-top:1px solid var(--line);padding-top:12px}.archive-empty{padding:24px}.result-hero{background:var(--white)}.fiche-raw,select,input[type=search],input[type=text],textarea{background:var(--white);color:var(--text);border-color:var(--line)}.reader,.reader-empty,.library-sidebar,.mobile-nav{background:var(--white);color:var(--text)}.focus-card{background:#292b32}.method-strip{background:var(--white)}.guide-card{background:var(--white)}
@media(max-width:1200px){.server-status{display:none}.topnav .nav-link{font-size:12px;padding:8px}.brand{min-width:155px}.exam-intro>.text-button{font-size:0;min-width:30px}.exam-intro>.text-button:before{content:'←';font-size:22px}.exam-tools{gap:4px}.exam-part-tabs button{font-size:13px;min-width:58px}.exam-subject-label{min-width:90px;max-width:165px}.exam-subject-label strong{font-size:16px}.in-exam .shell{padding-inline:16px}.in-exam .exam-intro{margin-inline:-16px;padding-inline:16px;gap:10px}.heading-exam{gap:20px}.heading-text{padding:22px}.exam-layout{grid-template-columns:minmax(0,1.2fr) minmax(340px,1fr)}}
@media(max-width:900px){.topbar-inner{width:calc(100% - 20px)}.shell{padding:22px 18px 95px}.topnav{display:none}.exam-layout,.heading-exam{grid-template-columns:1fr}.in-exam .exam-intro{flex-wrap:wrap;margin-bottom:15px;gap:8px}.exam-tools{margin-left:auto}.exam-part-tabs{order:3;flex-basis:100%;max-width:100%;margin:0;overflow:auto}.exam-part-tabs button{min-height:32px;font-size:12px}.exam-support{position:static;max-height:42dvh}.exam-support-body{font-size:15px;max-height:none}.batch-card{max-height:none;overflow:visible}.heading-texts,.heading-options{max-height:none;overflow:visible;position:static}.heading-title{font-size:29px}.heading-subtitle{margin-bottom:12px}.heading-text{display:none}.heading-text.active{display:block}.mobile-text-tabs{display:flex;justify-content:center;gap:8px;direction:ltr;margin:12px 0 18px}.mobile-text-tabs button{min-width:38px;min-height:38px;border:1px solid var(--line);border-radius:10px;background:var(--white);color:var(--text)}.mobile-text-tabs button[aria-pressed=true]{border-color:var(--teal);background:var(--aqua)}.heading-options-head{position:static}.heading-options{padding:0 5px}.heading-choices{grid-template-columns:1fr}.heading-passage{font-size:15px}.matching-footer{bottom:0;margin-inline:-16px;border-radius:0;padding-inline:16px}.matching-guide{max-width:60%}.matching-footer .button{min-width:120px}.matching-guide[open]{max-height:40dvh;overflow:auto}.batch-footer{bottom:0}.exam-support-head{padding:10px 17px}.exam-support-body{padding-inline:17px}.heading-text{padding:18px}.heading-answer-slot{margin-bottom:0}.archive-filter{margin-bottom:14px}.resume-banner{font-size:14px}}
@media(max-width:500px){.header-actions .theme-toggle{display:none}.brand strong{font-size:16px}.brand-logo{width:40px;height:40px}.brand{min-width:0}.exam-tools .icon-button{min-width:32px;min-height:32px;font-size:12px;padding:5px 7px}.exam-clock{min-width:35px;font-size:11px}.exam-subject-label{max-width:125px}.exam-subject-label strong{font-size:14px}.exam-subject-label small{font-size:10px}.exam-intro>.text-button{min-width:24px;padding:3px}.in-exam .exam-intro{padding:8px 10px}.explorer-cards{gap:12px}.subject-card{padding:16px;min-height:150px}.subject-title{font-size:18px}.batch-item .letter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.option-de{font-size:14px}.option-ar{font-size:14px}.settings-dialog{padding:20px}.matching-guide{font-size:12px}.matching-footer .button{font-size:13px}.exam-results .result-columns{grid-template-columns:1fr}}

html[data-theme=dark]{color-scheme:dark}html[data-theme=light]{color-scheme:light}
.sync-banner{cursor:pointer}.server-status{cursor:pointer}

@media(max-width:500px){.header-actions .theme-toggle{display:inline-flex;min-width:34px;padding:0 8px}.brand small{display:none}}

/* Continuous subject workspace: reference hierarchy, calm reading surfaces. */
:root{--paper:#fff;--soft:#f4f7fa;--text:#334155;--navy:#172337;--muted:#708095;--line:#e1e8f0;--teal:#0b7562;--aqua:#edf5ff;--blue:#245de1;--decor:#d6e0eb55}
html[data-theme=dark]{--paper:#111722;--white:#1a2433;--soft:#202d40;--text:#e1e8f2;--navy:#f1f5fb;--muted:#a6b7cc;--line:#344359;--teal:#73d8bd;--aqua:#223d65;--blue:#9bbcff;--decor:#31435d55}
body:before{display:none}.in-exam{background:var(--paper)}.button-primary{background:#2655d5;border-color:#2655d5}.button-primary:hover{background:#1842b5;border-color:#1842b5}.explorer-tab[aria-pressed=true]{background:#0b7562}.level-switch button[aria-pressed=true],html[data-theme=dark] .level-switch button[aria-pressed=true]{background:#0b7562;color:white}.nav-link.active{color:var(--teal)}.explore-header h1{font-size:48px;letter-spacing:-.04em}.explorer-levels{margin:8px auto 22px}.subject-card{min-height:204px;display:flex;flex-direction:column;text-align:left;background:var(--white);box-shadow:0 2px 4px #20304003}.subject-title{font-size:23px;letter-spacing:-.025em;line-height:1.3}.subject-subtitle{font-size:13px;color:var(--muted)}.subject-top{font-size:11px}.subject-footer{margin-top:auto;padding-top:16px}.subject-progress{display:grid;gap:6px;margin:14px 0 0;font-size:11px;color:var(--muted);width:100%}.subject-progress-track{display:block;background:var(--soft);height:3px;border-radius:4px;overflow:hidden}.subject-progress-track>span{display:block;background:var(--teal);height:100%}.learning-bottom{margin-top:36px;padding:28px;border-top:1px solid var(--line);background:var(--white);display:flex;align-items:center;gap:24px;flex-wrap:wrap}.learning-bottom h2{font-size:22px;margin:5px 0}.learning-bottom p{margin:0;color:var(--muted);font-size:14px}.learning-bottom-actions{display:flex;gap:10px;flex-wrap:wrap}.roadmap-assistant{margin-inline-start:auto;border:1px dashed var(--line);border-radius:15px;padding:14px 20px;display:flex;gap:12px;align-items:center}.roadmap-assistant>span{font-size:25px;color:var(--blue)}.roadmap-assistant small{display:block;color:var(--muted);font-size:12px}
.in-exam .shell{max-width:none;padding-bottom:110px}.in-exam .exam-intro{margin-bottom:0;min-height:78px}.exam-part-tabs{background:var(--soft)}.exam-part-tabs button[aria-pressed=true]{background:var(--white);color:var(--navy);box-shadow:0 2px 8px #2030401a}.exam-part-tabs button:disabled{opacity:.4;cursor:not-allowed}.exam-part-tabs .part-complete:after{content:' •';color:var(--teal)}.heading-exam,.exam-layout{padding-top:24px}.exam-layout{grid-template-columns:minmax(0,1fr) minmax(360px,1fr)}.exam-support,.batch-card{max-height:calc(100dvh - 190px);top:96px}.heading-texts,.heading-options{max-height:calc(100dvh - 196px)}.heading-exam{grid-template-columns:minmax(0,1.8fr) minmax(350px,1fr);gap:28px}.heading-title{font-size:48px;font-weight:750;letter-spacing:-.04em}.heading-subtitle{margin-bottom:30px}.heading-options{background:var(--white)}.option.selected{border-color:var(--blue);background:var(--aqua)}.heading-text.active{border-color:var(--blue)}.exam-dock{position:fixed;bottom:0;inset-inline:0;z-index:20;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:5px 20px;background:var(--white);border-top:1px solid var(--line);padding:7px 24px 12px;box-shadow:0 -3px 15px #20304004}.exam-total-progress{grid-column:1/-1;text-align:center;font-size:11px;line-height:1.6;color:var(--muted);position:relative;padding-top:3px}.exam-total-progress:before{content:'';position:absolute;top:-8px;left:-24px;height:3px;width:var(--completion);background:var(--blue);transition:width .2s}.exam-finish{justify-self:start}.exam-next{justify-self:end;direction:ltr}.exam-dock-center{display:flex;align-items:center;gap:10px}.assistant-roadmap{font-size:11px;color:var(--muted);border:1px dashed var(--line);padding:6px 10px;border-radius:30px;white-space:nowrap}.local-coach>button{float:left}.local-coach p{line-height:2}.grammar-help{padding:0 20px;direction:rtl;font-size:14px}.grammar-row{display:flex;gap:18px;align-items:center;margin:14px 24px;padding:8px 0;direction:ltr}.grammar-row>span{width:25px;color:var(--muted)}.grammar-input{min-width:0;width:100%;border:1px solid var(--line);border-radius:10px;padding:12px;font-size:17px}.grammar-context{min-width:0}.grammar-context .exam-support{height:100%}
.advert-exam{display:grid;grid-template-columns:minmax(0,2fr) minmax(330px,1fr);margin:0 -24px;min-height:calc(100dvh - 185px)}.advert-reading{padding:35px 30px 24px;max-height:calc(100dvh - 185px);overflow:auto;scrollbar-width:thin;background:var(--soft)}.advert-reading>.heading-title,.advert-reading>.heading-subtitle{text-align:center}.advert-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-top:35px}.advert-card{padding:24px;border:1px solid var(--line);border-radius:18px;background:var(--white);box-shadow:0 2px 8px #20304004}.advert-label{display:inline-block;font-size:12px;color:var(--blue);background:var(--aqua);padding:5px 12px;border-radius:7px}.advert-card p{white-space:pre-line;font-size:16px;line-height:1.8;margin:18px 0 0}.advert-card .exam-arabic{color:var(--blue);font-size:14px;line-height:1.9}.situations-panel{max-height:calc(100dvh - 185px);overflow:auto;background:var(--white);border-left:1px solid var(--line);scrollbar-width:thin}.situations-panel .heading-options-head{position:sticky;top:0;padding:20px;z-index:1;border-bottom:1px solid var(--line)}.situation-rows{display:grid;gap:15px;padding:20px}.situation-row{display:grid;grid-template-columns:30px minmax(0,1fr) 58px;gap:14px;align-items:center;border:1px solid var(--line);border-radius:15px;padding:18px 14px;line-height:1.7;background:var(--white)}.situation-number{font-size:12px;color:var(--muted)}.situation-copy{font-size:15px}.situation-row select{min-width:0;width:58px;min-height:44px;border:1px solid var(--line);border-radius:10px;background:var(--soft);color:var(--text);padding:6px;font-size:15px}.exam-review{margin:28px 0}.review-part{margin:12px 0;padding:18px 24px}.review-part summary{font-weight:700;cursor:pointer;direction:ltr}.review-answer{padding:18px 0;border-top:1px solid var(--line);margin-top:18px}.review-answer>strong{display:block;direction:ltr}.review-answer p{margin:8px 0}.review-correct{color:var(--teal)}.review-advice{font-size:14px;color:var(--muted)}.incomplete-dialog .button{margin:6px}.in-exam .preview-notice{display:none}.exam-results{padding-top:28px}.exam-results .result-hero h2{direction:rtl}.exam-dock button:focus-visible,.situation-row select:focus-visible,.grammar-input:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
@media(max-width:1100px){.advert-exam{grid-template-columns:minmax(0,1.4fr) minmax(320px,1fr)}.advert-grid{grid-template-columns:1fr}.advert-reading{padding:25px 20px}.heading-exam{grid-template-columns:minmax(0,1.4fr) minmax(320px,1fr)}}
@media(max-width:900px){.in-exam .shell{padding-bottom:130px}.exam-layout,.heading-exam,.advert-exam{grid-template-columns:1fr}.heading-texts,.heading-options,.batch-card{max-height:none}.exam-support{max-height:42dvh}.advert-exam{margin:0 -16px}.advert-reading{max-height:48dvh}.advert-reading>.heading-title{font-size:32px}.advert-grid{margin-top:20px}.situations-panel{max-height:none;border-left:0}.advert-card p{font-size:15px}.heading-title{font-size:34px}.exam-dock{padding:7px 12px 12px;gap:5px 8px}.exam-dock .button{font-size:12px;padding:9px 11px}.exam-dock-center{flex-direction:column;gap:0}.assistant-roadmap{font-size:9px;border:0;padding:0}.exam-total-progress{font-size:10px}.learning-bottom{padding:22px 0;gap:16px}.roadmap-assistant{margin-inline-start:0;width:100%}.heading-exam,.exam-layout{padding-top:15px}.exam-dock .exam-next{max-width:118px}.exam-total-progress:before{left:-12px}.situations-panel .heading-options-head{position:static}}
@media(prefers-reduced-motion:reduce){.exam-total-progress:before{transition:none}}
.advert-exam,.advert-grid,.situation-row,.exam-dock{direction:ltr}.advert-card{text-align:left}.advert-card .exam-arabic{text-align:right}.exam-dock-center button{direction:rtl}.local-coach p{white-space:pre-line}.grammar-input:focus{border-color:var(--blue)}

/* One readable workspace for every skill; no long page before the answer field. */
.production-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;padding:22px 0;direction:ltr;align-items:stretch}.production-support,.production-response{display:flex;flex-direction:column;min-width:0;height:calc(100dvh - 215px);min-height:360px;overflow:hidden;background:var(--white);border:1px solid var(--line);border-radius:18px}.pane-heading{padding:18px 24px;border-bottom:1px solid var(--line);flex-shrink:0;direction:rtl}.pane-heading .eyebrow{display:block;direction:ltr;text-align:left;font-size:11px}.pane-heading h2{font-size:19px;line-height:1.5;margin:6px 0 0;color:var(--navy)}.production-source,.production-response-body{min-height:0;overflow:auto;scrollbar-width:thin;padding:22px 26px;overscroll-behavior:contain}.production-response-body{direction:rtl;flex:1}.readable-content{overflow-wrap:anywhere}.readable-content p{font-size:17px;line-height:1.85;margin:0 0 20px;white-space:pre-line;max-width:74ch}.readable-content .exam-arabic{font-size:16px;line-height:2;color:var(--blue);text-align:right}.readable-content .reading-paragraph{text-align:left;color:var(--text)}.reading-heading{font-size:13px;letter-spacing:.04em;margin:24px 0 16px;color:var(--blue);font-weight:750}.reading-heading:first-child{margin-top:0}.reading-tasks{list-style:none;counter-reset:task;display:grid;gap:10px;padding:0;margin:18px 0 26px}.reading-tasks li{counter-increment:task;display:flex;gap:13px;padding:14px;background:var(--soft);border:1px solid var(--line);border-radius:12px;font-size:16px;line-height:1.65}.reading-tasks li:before{content:attr(value);color:var(--blue);font-weight:750;min-width:20px}.draft-label{display:block;font-size:14px;font-weight:700;margin-bottom:10px}.production-response .workshop-draft{min-height:260px;height:35dvh;max-height:55dvh;resize:vertical;font-size:17px;line-height:1.85;padding:20px;border:1px solid var(--line);background:var(--white);color:var(--text);border-radius:12px;text-align:start;width:100%;box-sizing:border-box}.production-response .workshop-draft:focus{border-color:var(--blue);outline:2px solid var(--aqua)}.draft-info{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:12px;color:var(--muted);margin:8px 0 20px}.draft-word-count{font-variant-numeric:tabular-nums}.workshop-checklist{padding:14px 16px;background:var(--soft);border:1px solid var(--line);border-radius:12px;font-size:14px}.workshop-checklist summary{cursor:pointer;font-weight:650}.workshop-checklist label{display:flex;align-items:center;gap:10px;margin:12px 0}.workshop-checklist input{min-height:auto;width:17px;height:17px;accent-color:var(--blue)}.production-feedback{padding-top:22px;margin-top:20px;border-top:1px solid var(--line)}.production-feedback>h3{font-size:20px;margin:0 0 18px}.workshop-model{border:1px solid var(--line);padding:20px;border-radius:12px}.workshop-steps{display:flex;gap:20px;direction:rtl;margin-inline:auto;font-size:13px;color:var(--muted)}.workshop-steps span{padding:7px 14px;border-radius:20px}.workshop-steps .active{background:var(--aqua);color:var(--blue)}.oral-controls{display:flex;align-items:center;gap:16px;padding:14px;background:var(--soft);border-radius:12px;margin-bottom:20px}.oral-clock{direction:ltr;font-size:24px;font-weight:750;color:var(--blue);font-variant-numeric:tabular-nums}.production-dock .workshop-next{justify-self:end;direction:rtl}.production-dock .workshop-compare{justify-self:start}.production-dock .exam-total-progress{direction:rtl}.exam-support-body{min-height:0;flex:1}.exam-layout>*,.heading-exam>*,.advert-exam>*,.fiche-layout>*{min-width:0}.batch-item h3,.option-copy,.review-answer,.workshop-prompt{overflow-wrap:anywhere}.batch-card{overscroll-behavior:contain}.listening-exam .exam-support{min-height:270px}.listening-exam audio{width:100%;display:block;margin:24px 0 16px}.listening-exam .audio-tools{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.listening-exam .audio-status{flex-basis:100%;font-size:13px;direction:rtl}.listening-exam .options{grid-template-columns:1fr 1fr}.listening-exam .batch-item{padding:22px 0}.listening-exam .batch-item h3{font-size:18px}.listening-exam .batch-card .question-header{position:sticky;top:0;z-index:1;background:var(--white)}.audio-tool{background:var(--soft);color:var(--text);border:1px solid var(--line);border-radius:9px;padding:8px 11px;min-height:38px}.audio-tool[aria-pressed=true]{background:var(--aqua);border-color:var(--blue)}
/* Read-only documents use the same bounded text pane and reachable actions. */
#screen-fiche{max-width:1480px;margin:0 auto}.fiche-layout{grid-template-columns:minmax(0,1.35fr) minmax(320px,1fr);align-items:start;gap:24px}.fiche-main{min-width:0;padding:24px}.fiche-heading h1{font-size:30px;line-height:1.3;overflow-wrap:anywhere}.fiche-content-heading h2{font-size:20px}.fiche-stepper{display:none}.fiche-body{max-height:calc(100dvh - 370px);min-height:220px;overflow:auto;scrollbar-width:thin;overscroll-behavior:contain;padding-inline:6px 16px}.fiche-actions{position:sticky;bottom:0;background:var(--white);border-top:1px solid var(--line);padding:15px 0 0;display:flex;gap:10px;flex-wrap:wrap;z-index:2}.fiche-original{margin:16px 0}.fiche-original .fiche-raw{max-height:35dvh;overflow:auto}.fiche-side{min-width:0}.fiche-side .guide-card{padding:24px}.fiche-side .darija-result{font-size:16px;line-height:1.95}.fiche-side .guide-disclosure{font-size:12px}.fiche-audios audio{width:100%}.fiche-questions{max-height:48dvh;overflow:auto}.reader-text{max-height:60dvh;overflow:auto;line-height:1.85;overflow-wrap:anywhere}.note-area textarea{font-size:16px;line-height:1.7}.grammar-row input,.option,.situation-row select{min-height:44px}.exam-question{max-height:calc(100dvh - 200px);overflow:auto;scrollbar-width:thin}
@media(max-width:1100px){.production-layout{gap:18px}.production-source,.production-response-body{padding:20px}.workshop-steps{gap:4px}.workshop-steps span{padding:7px 8px}.workshop-nav .exam-subject-label{max-width:220px}}
@media(max-width:900px){.production-layout{grid-template-columns:1fr;padding-top:16px}.production-support{height:auto;min-height:0;max-height:46dvh}.production-response{height:auto;min-height:0;max-height:none;overflow:visible}.production-source{max-height:34dvh;min-height:100px}.production-response-body{overflow:visible}.production-response .workshop-draft{height:300px;max-height:none;min-height:230px}.workshop-steps{order:3;flex-basis:100%;justify-content:center}.pane-heading{padding:14px 20px}.pane-heading h2{font-size:18px}.readable-content p{font-size:16px}.reading-tasks li{font-size:15px}.production-source,.production-response-body{padding:18px}.fiche-layout{grid-template-columns:1fr}.fiche-main{padding:18px}.fiche-body{max-height:55dvh}.fiche-side{display:grid;grid-template-columns:1fr}.fiche-actions{position:static}.exam-question{max-height:none;overflow:visible}.listening-exam .exam-support{min-height:0;max-height:48dvh}.listening-exam .exam-support-body{overflow:auto}.listening-exam .options{grid-template-columns:1fr 1fr}.production-dock .workshop-next{max-width:115px}.production-dock .workshop-compare{max-width:110px}}
@media(max-width:500px){.workshop-nav .exam-subject-label{max-width:160px}.workshop-steps span{font-size:12px}.reading-tasks li{padding:12px}.fiche-main{padding:15px}.fiche-heading h1{font-size:25px}.production-dock .button{font-size:11px;padding:9px 7px}.oral-controls{flex-wrap:wrap}.listening-exam .bilingual-option{padding:10px;gap:6px}.listening-exam .option-de{font-size:14px}}
.listening-sheet{max-width:1100px;margin:24px auto;background:var(--white);padding:24px;border:1px solid var(--line);border-radius:18px;direction:ltr}.listening-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.listening-heading h1{margin:0;border-left:4px solid #13af88;padding-left:14px;font-size:24px;line-height:1.4}.listening-count{font-size:14px;color:var(--muted);white-space:nowrap}.listening-player{padding:0 0 22px}.listening-player audio{margin:0;width:100%}.listening-player .audio-tools{margin:10px 0 0}.listening-table{border-collapse:separate;border-spacing:0;width:100%;border:1px solid var(--line);border-radius:12px;overflow:hidden;table-layout:fixed}.listening-table th{background:var(--soft);font-size:12px;font-weight:700;color:var(--muted);padding:14px 10px;text-align:left;border-bottom:1px solid var(--line)}.listening-table th:nth-child(-n+2){width:85px;text-align:center}.listening-table td{border-bottom:1px solid var(--line);padding:16px 12px;vertical-align:middle}.listening-table tr:last-child td{border-bottom:0}.listening-choice{text-align:center;border-right:1px solid var(--line)}.listening-choice label{display:flex;align-items:center;justify-content:center;min-height:44px;cursor:pointer}.listening-choice input{appearance:auto;width:20px;height:20px;min-height:20px;accent-color:#0b9775;cursor:pointer}.listening-statement>div{display:inline-block;vertical-align:middle;width:calc(100% - 38px)}.listening-statement p{margin:0;font-size:16px;line-height:1.75}.statement-number{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--soft);font-size:12px;margin-right:12px;color:var(--muted)}.listening-table tr:has(input:checked){background:var(--aqua)}.listening-memory{margin-top:20px;border:1px solid var(--line);border-radius:12px;background:var(--soft);padding:16px;direction:rtl}.listening-memory summary{cursor:pointer;color:var(--teal);font-size:14px;font-weight:700}.listening-memory .readable-content{padding-top:18px}.listening-hint{font-size:14px;color:var(--muted);margin-bottom:0}.listening-row input:focus-visible{outline:3px solid var(--blue);outline-offset:4px}
@media(max-width:700px){.listening-sheet{padding:15px;margin:16px auto}.listening-heading h1{font-size:20px}.listening-table th:nth-child(-n+2){width:53px}.listening-table th{font-size:10px;padding:12px 4px}.listening-table td{padding:12px 5px}.listening-statement p{font-size:15px}.statement-number{display:none}.listening-statement>div{width:100%}.listening-player .audio-tool{font-size:12px;padding:8px}.listening-choice input{width:19px;height:19px}}
