/* Shared layout contract: readable text, intrinsic sizing, consistent response controls. */
:root{--paper:#fff;--white:#fff;--soft:#f5f7fa;--text:#334155;--navy:#172337;--deep:#172337;--muted:#59677b;--line:#e1e7ef;--radius:16px;--teal:#087363;--aqua:#ecf7f4;--blue:#245bb5;--red:#b7343a;--red-bg:#fff1f2;--shadow:0 2px 8px #17233705;--accent:#087363;--accent-soft:#ecf7f4;--accent-line:#a7d8cb;--accent-ink:#fff}
html[data-theme=dark]{--paper:#111827;--white:#192333;--soft:#202d40;--text:#e2e8f0;--navy:#f1f5f9;--deep:#f1f5f9;--muted:#b0bed0;--line:#39485c;--teal:#7ee0c2;--aqua:#173e38;--blue:#a4c9ff;--red:#ffabb0;--red-bg:#452932;--accent:#7ee0c2;--accent-soft:#173e38;--accent-line:#397762;--accent-ink:#102c25}
body{background:var(--paper);font-size:16px;line-height:1.7}
body::before{display:none}
.question-translation{margin:8px 0 18px;padding:10px 14px;border-inline-start:3px solid var(--accent-line);background:var(--soft);border-radius:8px;font-size:16px;line-height:1.9;font-weight:400;unicode-bidi:isolate}
.preview-options .preview-answer{display:grid;gap:4px;padding-block:10px;border-bottom:1px solid var(--line)}
.preview-answer>.option-ar{display:block}
.content-review-note{padding:12px 16px;border:1px solid var(--line);border-radius:10px;background:var(--soft);color:var(--muted);line-height:1.8}
.archive-answer{padding:16px 0;border-bottom:1px solid var(--line)}
.archive-answer p{margin:5px 0}.archive-answer-choice{font-size:14px}
.mixed-exam-entry{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-top:22px;margin-top:22px;border-top:1px solid var(--line)}
.mixed-exam-entry p{font-size:14px;color:var(--muted);margin:4px 0}.mixed-exam-entry .button{flex-shrink:0}
@media(max-width:640px){.mixed-exam-entry{align-items:stretch;flex-direction:column;gap:12px}}
.shell{width:100%;max-width:1380px;margin-inline:auto;padding:32px clamp(16px,3vw,40px) 110px}
.screen{min-width:0;max-width:100%}
h1,h2,h3,h4,p,button,label{overflow-wrap:break-word}h1,h2,h3,h4{letter-spacing:normal;color:var(--navy)}
h1{font-size:clamp(28px,3.5vw,42px);line-height:1.35}
h2{font-size:clamp(21px,2.5vw,27px);line-height:1.45}
h3{line-height:1.5}
.screen p{max-width:100%}
.screen .eyebrow{font-size:12px;line-height:1.6}
[lang=de],[lang=fr],[lang=en]{unicode-bidi:isolate}
[lang=de]{text-align:left;letter-spacing:normal}
[lang=ar-MA],[lang=ar]{text-align:right;letter-spacing:normal}
button,input,select,textarea{max-width:100%}
input,select,textarea{color:var(--text);background:var(--white);border-color:var(--line)}
button:not(.learn-star),select,input:not([type=checkbox]):not([type=radio]):not([type=range]){min-height:44px}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.button{white-space:normal;line-height:1.45;padding:12px 18px;font-size:15px;text-align:center}
.button-quiet{background:var(--white);color:var(--text);border:1px solid var(--line)}
.button-primary,html[data-theme=dark] .button-primary{color:var(--accent-ink);background:var(--accent);border-color:var(--accent)}
.button:hover{background:var(--soft);color:var(--text);border-color:var(--accent)}
.button-primary:hover{background:var(--accent);color:var(--accent-ink);filter:brightness(.95)}
.card{box-shadow:none;border:1px solid var(--line);border-radius:var(--radius);background:var(--white)}
.topbar{position:static;background:var(--white);padding:0;border-bottom:1px solid var(--line)}
.topbar-inner{width:100%;max-width:1460px;margin:auto;padding:12px 24px;border:0;border-radius:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:18px}
.brand{min-width:0}.brand-logo{width:44px;height:44px}.brand small{font-size:12px}.brand strong{font-size:18px}
.topnav{display:flex;flex-wrap:wrap;justify-content:center;gap:3px;padding:0;background:none;margin:0;border-radius:0;min-width:0}
.nav-link{font-size:14px;padding:10px 12px;white-space:normal}
.nav-link.active,.nav-link[aria-current=page]{background:var(--aqua);box-shadow:none;color:var(--teal)}
.header-actions{flex-wrap:wrap;gap:6px;justify-content:flex-end}
.server-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.header-actions .icon-button,.header-actions .theme-toggle{min-width:44px;min-height:44px;height:auto}
.header-actions .level-switch[hidden]{display:none!important}
.context-levels{width:max-content;margin:0 0 20px;gap:6px;direction:ltr}
.context-levels button{min-width:64px}
.page-heading,.home-head,.learn-heading,.explore-header{margin-bottom:26px}
.page-heading h1,.explore-header h1{font-size:clamp(28px,3vw,36px);margin:8px 0}
.page-heading p,.explore-header>p:last-child{font-size:16px;line-height:1.8}
.section-heading{gap:16px;flex-wrap:wrap;margin:28px 0 16px;align-items:center}
.explorer-tabs,.explore-skill-switch,.reader-tabs,.exam-part-tabs{gap:8px}
.explore-skill-switch,.reader-tabs{display:flex;flex-wrap:wrap}
.explorer-toolbar,.reader-tools,.fiche-toolbar,.experience-actions,.backup-actions,.finished-actions{gap:10px;flex-wrap:wrap}
.explorer-toolbar input{min-width:0}
.explorer-cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,255px),1fr));gap:16px}
.subject-card{padding:22px;min-height:190px;min-width:0;gap:10px;border-radius:16px;border-top:3px solid var(--accent-line);box-shadow:none}
.subject-card:hover,.skill-card:hover{border-color:var(--accent);background:var(--accent-soft);box-shadow:none;transform:none}
.subject-top{color:var(--muted);font-size:13px}.subject-subtitle{font-size:15px;line-height:1.6}.subject-footer{border-top:1px solid var(--line);padding-top:14px;margin-top:auto;gap:8px}
.subject-progress-track{height:5px}.subject-progress-track>span{background:var(--accent)}
.subject-title{font-size:22px;line-height:1.4;overflow-wrap:anywhere}
.subject-meta,.subject-progress-label,.reader-meta,.fiche-breadcrumb{font-size:13px;line-height:1.7}
.library-workspace{grid-template-columns:minmax(230px,280px) minmax(0,1fr);gap:24px;align-items:start}
.library-panel,.library-controls,.reader{min-width:0}
.library-list{max-height:70vh;overflow:auto}
.reader{padding:26px}
.reader-title,.reader h2{font-size:28px;line-height:1.4}
.reader-head{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid var(--line)}
.reader-meta{display:flex;gap:12px;flex-wrap:wrap}
.reader-back{display:inline-flex}
.reader-text,.fiche-body{font-size:18px;line-height:1.9;max-height:none;min-height:0;overflow:visible;padding:0;white-space:normal}
.readable-content p{font-size:18px;line-height:1.9;max-width:74ch;margin:0 0 20px;overflow-wrap:anywhere}
.readable-content .exam-arabic{font-size:17px;line-height:2;color:var(--blue);max-width:74ch}
.structured-document>.document-block,.document-section{margin:0 0 26px}
.document-section{padding:22px;border:1px solid var(--line);border-radius:14px;background:var(--white)}
.document-section-title{font-size:18px;margin:0 0 20px;padding-bottom:12px;border-bottom:1px solid var(--line);color:var(--teal)}
.document-answer-heading{font-size:17px;line-height:1.6;margin:22px 0 12px;color:var(--navy)}
.document-summary-heading{font-size:14px;color:var(--blue);margin:14px 0 8px}
.document-block p:last-child{margin-bottom:0}
.note-area{padding-top:24px;border-top:1px solid var(--line)}
.note-area textarea,.experience-form textarea{min-height:150px;resize:vertical}
.reader-foot{font-size:14px;line-height:1.8}
.fiche-layout{grid-template-columns:minmax(0,1.4fr) minmax(300px,1fr);gap:24px}
.fiche-questions{max-height:none;padding:22px}
.fiche-actions{position:static}
.preview-context,.preview-question,.guide-card{overflow-wrap:anywhere}
.guide-disclosure,.guide-card>span,.save-caption,.muted,.subtle{color:var(--muted)}
.guide-disclosure,.save-caption{font-size:13px!important}
.production-layout,.exam-layout,.heading-exam{gap:16px;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.production-support,.production-response{height:auto;min-height:0;overflow:visible;min-width:0}
.production-source,.production-response-body{padding:24px;max-height:none;overflow:visible;min-width:0}
.production-response .workshop-draft{min-height:320px;max-height:none;height:42dvh;line-height:1.9;font-size:18px;border-radius:12px;padding:20px;direction:ltr;text-align:left}
.in-exam .exam-intro{flex-wrap:wrap;gap:10px;padding-block:12px;height:auto}
.exam-intro>.text-button{font-size:14px;min-width:44px;max-width:none;direction:rtl}.exam-intro>.text-button::before{content:none}
.exam-subject-label{max-width:260px;min-width:0}
.exam-subject-label strong{font-size:18px;overflow-wrap:anywhere}
.exam-part-tabs{flex-wrap:wrap;min-width:0;max-width:100%;justify-content:center}
.exam-part-tabs button{font-size:14px;min-height:44px}
.exam-support,.batch-card,.heading-texts,.heading-options{max-height:calc(100dvh - 230px);min-height:220px;min-width:0;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.exam-support-body,.heading-passage{font-size:18px;line-height:1.85}
.option-de{font-size:16px;line-height:1.7}.option-ar{font-size:15px;line-height:1.9}
.option.bilingual-option{align-items:flex-start;text-align:start;padding:14px;gap:12px}
.option .option-body,.option .option-copy{min-width:0}
.batch-item h3{font-size:18px;line-height:1.7}
.advert-exam{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:0}
.situation-row{grid-template-columns:28px minmax(0,1fr) 66px;gap:12px}
.situation-row select{width:66px}
.listening-statement p{font-size:17px;line-height:1.8}
audio{width:100%;max-width:100%}
.audio-tools{flex-wrap:wrap;gap:8px}
.audio-status{font-size:14px;line-height:1.7}
.exam-dock{gap:8px 16px;min-height:88px;box-shadow:none}.exam-dock .button{font-size:14px;min-height:44px}.exam-dock-center{flex-direction:row;flex-wrap:wrap;justify-content:center;gap:8px}
.exam-total-progress{font-size:13px}
.exam-results .result-columns{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.result-metrics,.path-stats{gap:16px}.result-metric{min-width:0}
.review-answer,.result-error,.attempt-card{overflow-wrap:anywhere}
.experience-layout{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:24px}
.experience-form{gap:12px;padding:24px}.experience-story,.experience-tip{white-space:pre-wrap;line-height:1.9}
.backup-card{gap:24px;flex-wrap:wrap}.backup-card>div{min-width:0}
.method-grid{gap:16px}.method-card{min-width:0;padding:22px}
dialog{color:var(--text);background:var(--white);border:1px solid var(--line);border-radius:16px;max-width:min(94vw,640px);max-height:85dvh;overflow:auto}
dialog::backdrop{background:#101a2a80}
#screen-learn .learn-heading h1{font-size:clamp(28px,4vw,40px)}
#screen-learn .learn-levels,#screen-learn .learn-tabs{flex-wrap:wrap;overflow:visible}
#screen-learn .learn-levels button{min-width:56px}
#screen-learn .learn-word-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,270px),1fr))}
#screen-learn .learn-reader{min-width:0;max-height:none;overflow:visible}
#screen-learn .learn-markdown{max-width:100%;font-size:17px;line-height:1.85;overflow-wrap:anywhere}
#screen-learn .learn-markdown table{display:block;width:100%;overflow-x:auto}
#screen-learn .learn-markdown pre{white-space:pre-wrap;overflow-wrap:anywhere}
#screen-learn .learn-grammar-card{max-width:800px;margin-inline:auto}
#screen-learn .learn-choice{white-space:normal;font-size:17px}
.journey-heading{margin-bottom:28px}.journey-heading h1{margin:8px 0 10px}
.journey-heading p{margin:0}.journey-subtitle{color:var(--muted);font-size:18px}
.journey-home-grid{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(280px,1fr);gap:24px}
.journey-next{padding:clamp(24px,4vw,42px);background:var(--soft);border:1px solid var(--line);border-inline-start:4px solid var(--teal);border-radius:16px}
.journey-next h2{font-size:clamp(25px,3vw,36px);margin:20px 0 4px}
.journey-next>p{margin:10px 0}.journey-badge{display:inline-block;font-size:12px;letter-spacing:.06em;font-weight:750;color:var(--teal)}
.journey-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px}
.journey-next .journey-method{margin-top:26px;color:var(--muted);font-size:14px}
.journey-daily{padding:26px}.journey-daily h2{font-size:22px;margin:0}
.journey-number{font-size:42px;line-height:1.2;font-weight:750;font-variant-numeric:tabular-nums;margin:16px 0 8px}
.journey-daily label{display:grid;gap:8px;font-size:14px;margin-top:20px}.journey-daily select{border:1px solid var(--line);border-radius:10px;padding:8px 12px;width:100%}
.journey-daily small{display:block;font-size:13px;color:var(--muted);margin-top:12px}
.journey-daily progress{width:100%;height:10px;accent-color:var(--teal);border:0;border-radius:10px;overflow:hidden;background:var(--line)}
.journey-daily progress::-webkit-progress-bar{background:var(--line)}.journey-daily progress::-webkit-progress-value{background:var(--teal)}
.journey-count{color:var(--muted);font-size:14px}
.journey-unit-list{list-style:none;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0}
.journey-unit-list li{min-width:0}
.journey-unit{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:16px;width:100%;padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--white);color:var(--text);text-align:start}
.journey-unit:hover{background:var(--soft)}.journey-unit.is-next{border-color:var(--teal);background:var(--aqua)}
.journey-index{color:var(--muted);font-size:17px;font-weight:700}.journey-unit-copy{display:grid;gap:4px}
.journey-unit-copy strong{font-size:18px;font-weight:650}.journey-unit-copy>span{font-size:14px;color:var(--muted)}
.journey-unit-status{font-size:13px;color:var(--teal);white-space:nowrap}
.journey-disclaimer{font-size:13px;color:var(--muted);line-height:1.8;margin:18px 0}
.journey-further{display:flex;gap:10px;flex-wrap:wrap;padding-block:12px}
.journey-resume-exam{margin-top:12px}
.advanced-home{margin-top:28px;border-top:1px solid var(--line);padding-top:20px}
.advanced-home>summary{cursor:pointer;font-size:17px;color:var(--muted);padding:14px 0}
.advanced-home-body{padding-top:20px}.advanced-home .home-head{display:flex}
.journey-lesson-top{display:flex;justify-content:space-between;gap:12px;margin-bottom:20px}
.journey-stepper{display:flex;gap:20px;margin:12px 0 26px;padding:14px 0;border-block:1px solid var(--line);color:var(--muted);flex-wrap:wrap}
.journey-stepper [aria-current=step]{color:var(--teal);font-weight:750}
.journey-lesson-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:24px;align-items:start}
.journey-examples{padding:26px}.journey-examples h2{margin-top:0}
.journey-example{display:flex;align-items:center;gap:16px;justify-content:space-between;padding:18px 0;border-top:1px solid var(--line)}
.journey-example>div{min-width:0;flex:1}.journey-example [lang=de]{font-size:20px;font-weight:650;margin:0 0 8px}
.journey-example [lang=ar-MA]{margin:0;color:var(--blue);font-size:17px;line-height:1.9}
.journey-example button{flex:0 0 auto}.journey-coach{padding:26px;background:var(--soft);border-radius:14px;line-height:2;font-size:17px}
.journey-coach h2{font-size:22px}.journey-coach h3{font-size:18px;margin-top:26px}.journey-coach small{font-size:13px;color:var(--muted)}
.journey-start-quiz{margin-top:24px;min-width:220px}
.journey-quiz,.journey-result{max-width:800px;margin:0 auto 24px;padding:clamp(20px,4vw,36px)}
.journey-quiz h2{font-size:25px;line-height:1.7;margin:14px 0}.journey-prompt-ar{font-size:18px;color:var(--blue)}
.journey-options{border:0;padding:0;margin:24px 0;display:grid;gap:12px;min-width:0}
.journey-option{display:flex;align-items:flex-start;gap:14px;border:1px solid var(--line);border-radius:12px;padding:16px;cursor:pointer;direction:ltr;background:var(--white)}
.journey-option input{margin-top:6px;min-width:20px;width:20px;height:20px;accent-color:var(--teal);flex-shrink:0}
.journey-option>span{display:grid;gap:6px;flex:1;min-width:0}.journey-option strong{font-size:18px}.journey-option [lang=ar-MA]{color:var(--blue);font-size:16px}
.journey-option:has(input:checked){border-color:var(--teal);background:var(--aqua)}
.journey-option.is-correct{border-color:#2a8a6c;border-inline-start-width:4px}.journey-option.is-incorrect{border-inline-start:4px solid var(--red)}
.journey-feedback:not(:empty){background:var(--soft);padding:20px;border-radius:12px;margin:22px 0;font-size:17px;line-height:1.9}
.journey-feedback p{margin:8px 0}.journey-question-next{margin-top:12px}
.journey-result-row{padding:20px 0;border-top:1px solid var(--line)}.journey-result-row p{margin:10px 0}
.journey-result .journey-number{font-size:48px;color:var(--teal)}
.journey-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0}
.journey-metrics .stat-card{padding:24px;display:flex;flex-direction:column;gap:8px;min-width:0}
.journey-metrics strong{font-size:32px;margin:0;line-height:1.3}.journey-metrics span{font-size:14px;line-height:1.8;color:var(--muted)}
.journey-progress-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr);gap:24px}
.journey-activity,.journey-recent{padding:24px}.journey-activity h2,.journey-recent h2{font-size:23px;margin-top:0}
.journey-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;padding:0;list-style:none;margin:24px 0}
.journey-calendar li{display:flex;flex-direction:column;align-items:center;border:1px solid var(--line);background:var(--soft);border-radius:8px;padding:8px 2px;font-size:15px;line-height:1.5}
.journey-calendar small{font-size:12px;color:var(--muted)}.journey-calendar .has-activity{background:var(--aqua);border-color:var(--teal);color:var(--teal);font-weight:750}
.journey-week summary{cursor:pointer;padding:12px 0}.journey-week table{width:100%;font-size:13px;border-collapse:collapse}
.journey-week th,.journey-week td{text-align:start;border-bottom:1px solid var(--line);padding:10px 6px}
.journey-recent-list{list-style:none;margin:0;padding:0}.journey-recent-list li{padding:12px 0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr auto;gap:4px 14px}
.journey-recent-list strong{font-size:15px}.journey-recent-list small{font-size:12px;color:var(--muted)}.journey-recent-list span{font-size:13px;color:var(--teal)}
/* One frame, four recognizable exam accents. */
[data-skill=Lesen],[data-skill=Sprachbausteine]{--accent:#245bb5;--accent-soft:#eff5ff;--accent-line:#b8d0f4;--accent-ink:#fff}
[data-skill="Hören"]{--accent:#087363;--accent-soft:#ecf7f4;--accent-line:#a7d8cb;--accent-ink:#fff}
[data-skill=Schreiben]{--accent:#6950b3;--accent-soft:#f5f2fc;--accent-line:#cbbfeb;--accent-ink:#fff}
[data-skill=Sprechen]{--accent:#b94a08;--accent-soft:#fff7ed;--accent-line:#fed7aa;--accent-ink:#fff}
html[data-theme=dark] [data-skill=Lesen],html[data-theme=dark] [data-skill=Sprachbausteine]{--accent:#a4c9ff;--accent-soft:#213654;--accent-line:#435f86;--accent-ink:#14243b}
html[data-theme=dark] [data-skill="Hören"]{--accent:#7ee0c2;--accent-soft:#173e38;--accent-line:#397762;--accent-ink:#102c25}
html[data-theme=dark] [data-skill=Schreiben]{--accent:#d0bfff;--accent-soft:#352c50;--accent-line:#625184;--accent-ink:#28203d}
html[data-theme=dark] [data-skill=Sprechen]{--accent:#ffba79;--accent-soft:#3a2c25;--accent-line:#805037;--accent-ink:#332015}
.explore-skill-switch{padding-bottom:20px;border-bottom:1px solid var(--line);gap:10px}
.explore-skill-switch button{min-height:48px;border-radius:10px;font-size:16px}
.explore-skill-switch button.active{background:var(--accent-soft);border-color:var(--accent-line);color:var(--accent)}
.explorer-tabs{flex-wrap:wrap;overflow:visible;box-shadow:none;padding:5px;gap:6px}
.explorer-tab{min-height:46px;flex:1 1 120px;padding:10px 16px;font-size:15px}
.explorer-tab[aria-pressed=true],html[data-theme=dark] .explorer-tab[aria-pressed=true]{background:var(--accent);color:var(--accent-ink)}
.level-switch button[aria-pressed=true],.context-levels button[aria-pressed=true]{background:var(--teal);color:var(--accent-ink);box-shadow:none}
.explorer-toolbar{padding:0;margin-block:20px}.explorer-toolbar input{flex:1 1 230px}.explorer-toolbar select{flex:0 1 230px}
.explorer-footer{margin-top:28px}.skill-card,.method-card,.stat-card,.workshop-tile{box-shadow:none;background:var(--white);border-color:var(--line)}
.journey-next{background:var(--white);border-color:var(--line);border-inline-start-color:var(--teal)}
.journey-daily,.journey-coach,#screen-learn .learn-coach{background:var(--soft)}
.journey-unit,.learn-unit,.library-item{transition:background .15s ease,border-color .15s ease}
#screen-learn .learn-tabs{padding-block:8px;border-bottom:1px solid var(--line);gap:8px}
#screen-learn .learn-word-card,#screen-learn .learn-reader,#screen-learn .learn-verb-tense{box-shadow:none;border-radius:var(--radius)}
#screen-learn .learn-page-controls{font-size:14px}.reader-tabs button{min-height:44px;font-size:14px}
.backup-card,.method-strip{background:var(--soft);border-color:var(--line)}
.result-hero{background:var(--white);border-top:4px solid var(--accent)}.result-metric{background:var(--soft);border:1px solid var(--line);border-radius:12px;padding:20px}
.result-hero h2{font-size:clamp(24px,3vw,34px)}.result-bar span{background:var(--accent)}
.in-exam{background:var(--soft)}
.in-exam .shell{max-width:1600px;padding-inline:24px;padding-top:0;padding-bottom:150px}
.in-exam .exam-intro{margin:0 -24px 20px;padding-inline:24px;min-height:80px;box-shadow:none}
.exam-subject-label{max-width:300px;flex:1 1 160px}.exam-subject-label small{font-size:12px;line-height:1.6;color:var(--muted)}
.exam-tools .icon-button{min-width:44px;min-height:44px;border-radius:10px;border:1px solid var(--line);background:var(--soft);color:var(--text);font-size:15px;padding:8px}
.exam-tools .icon-button[aria-pressed=true]{color:var(--accent);border-color:var(--accent-line);background:var(--accent-soft)}
.exam-clock{font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums;min-width:42px}
.exam-dock:not(.production-dock)>.exam-total-progress{grid-column:auto;text-align:start;font-size:13px}.exam-total-progress::before{left:0;top:-6px;max-width:100%;background:var(--accent)}
.exam-part-tabs button[aria-pressed=true],.exam-part-tabs button.active{background:var(--accent-soft);color:var(--accent);border-color:var(--accent-line)}
.exam-support,.question-card,.heading-texts,.heading-options{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);box-shadow:none}
.heading-texts,.heading-options{padding:20px}.heading-options-head{padding-top:0}.heading-title{font-size:25px;line-height:1.5}
.exam-support-body{padding:24px}.batch-item{padding-block:24px}.batch-item:last-child{border-bottom:0}
.option.bilingual-option{border-radius:12px;border-color:var(--line);background:var(--white);min-height:68px}
.option.bilingual-option.selected,.batch-card .option[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent);box-shadow:inset 3px 0 0 var(--accent)}
.exam-question .option.correct,.option.bilingual-option.correct{background:var(--aqua);border-color:var(--teal);color:var(--text);box-shadow:inset 3px 0 0 var(--teal)}
.exam-question .option.wrong,.option.bilingual-option.wrong{background:var(--red-bg);border-color:var(--red);color:var(--text);box-shadow:inset 3px 0 0 var(--red)}
.option:disabled{opacity:1}
.option-ar{display:block;direction:rtl;text-align:right;color:var(--blue);padding-top:7px;margin-top:7px;border-top:1px solid var(--line)}
.option-key{flex:0 0 auto}.heading-option{line-height:1.7}.listening-sheet{border-top:3px solid var(--accent-line);box-shadow:none}
.listening-heading h1{border-color:var(--accent)}.listening-table th{font-size:14px}.listening-choice input{accent-color:var(--accent)}
.listening-player{background:var(--soft);border:1px solid var(--line);border-radius:12px;padding:18px;margin-bottom:22px}
.listening-statement .exam-arabic{padding-top:8px;color:var(--blue)}.listening-exam .options{grid-template-columns:1fr 1fr}
.audio-tool{min-height:44px;font-size:14px;border-radius:9px}.audio-tools select{min-height:44px}
.production-layout{align-items:stretch}.production-support{background:transparent;border:0;gap:16px}
.production-subject{border:1px solid var(--line);border-radius:var(--radius);background:var(--white);padding:20px 24px;direction:ltr;display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px 12px}
.production-subject .subject-part{width:max-content;background:var(--soft);border:1px solid var(--line);border-radius:7px;padding:3px 10px;font-size:12px;color:var(--muted)}
.production-subject h2{grid-column:1/-1;grid-row:2;font-size:26px;line-height:1.5;text-align:start;margin:0}
.production-subject .text-button{font-size:13px;text-align:right;direction:rtl;padding:4px 0;color:var(--accent)}
.production-source{border:1px solid var(--line);border-radius:var(--radius);background:var(--white)}
.production-source>.reading-heading{margin:0 0 18px;color:var(--accent);font-size:14px;letter-spacing:.08em}
.production-source>.reading-heading:not(:first-child){margin-top:28px;padding-top:24px;border-top:1px solid var(--line)}
.opinion-card{padding:22px;border:1px solid var(--accent-line);border-radius:14px;background:var(--accent-soft);margin-bottom:18px}
.opinion-card:last-child{margin-bottom:0}.opinion-card .reading-heading{margin:0 0 14px;font-size:16px;color:var(--accent)}
.opinion-card p{max-width:none;font-size:17px;line-height:1.85;margin-bottom:18px}
.opinion-card .exam-arabic{font-size:16px;line-height:2;color:var(--text);border-top:1px solid var(--accent-line);padding-top:16px;margin-bottom:0}
.production-source>.exam-arabic{border-inline-start:3px solid var(--accent-line);padding-inline-start:16px;color:var(--text)}
.reading-tasks{padding-inline-start:28px;margin:18px 0}.reading-tasks li{padding:10px 6px;line-height:1.9;font-size:17px}.reading-tasks li::marker{font-weight:700;color:var(--accent)}
.reading-tasks li::before{color:var(--accent)}
.production-response{align-self:stretch}.production-response .pane-heading{padding:20px 24px;min-height:100px}.production-response .pane-heading h2{font-size:19px}
.production-response .pane-heading .eyebrow{color:var(--accent);font-size:12px}.production-response-body{display:flex;flex-direction:column;gap:16px;flex:1}
.production-response-body .draft-label{font-size:14px;margin:0;direction:rtl;text-align:right;color:var(--muted)}
.editor-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;direction:ltr}
.editor-characters{display:flex;flex-wrap:wrap;gap:5px}.editor-character,.editor-expand{min-height:44px;border:1px solid var(--line);background:var(--soft);color:var(--text);border-radius:8px;padding:8px 12px;font-size:16px}
.editor-character:hover,.editor-expand:hover{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}.editor-expand{font-size:13px;direction:rtl}
.editor-expanded{grid-template-columns:minmax(0,1fr)}.editor-expanded .production-response{max-width:1040px;width:100%;margin-inline:auto}
.production-response-body .draft-info{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:13px;line-height:1.7;margin:0;color:var(--muted)}
.workshop-checklist{margin:0;border-top:1px solid var(--line);padding-top:16px;direction:rtl;font-size:15px;line-height:1.9}
.workshop-checklist summary{min-height:44px;cursor:pointer}.workshop-checklist label{display:flex;align-items:flex-start;gap:10px;padding:8px 0}.workshop-checklist input{width:18px;height:18px;flex-shrink:0;accent-color:var(--accent);margin-top:5px}
.workshop-steps{gap:5px;font-size:14px}.workshop-steps span{padding:6px 10px}.workshop-steps .active{color:var(--accent);background:var(--accent-soft)}
.oral-controls{border:1px solid var(--line);background:var(--soft);padding:10px 14px;border-radius:12px;gap:12px;flex-wrap:wrap}.oral-clock{font-size:22px;font-variant-numeric:tabular-nums;color:var(--accent)}
.production-dock{grid-template-columns:minmax(90px,1fr) auto minmax(90px,1fr);padding-block:10px;gap:6px 16px}
.production-dock>.workshop-previous{justify-self:start}.production-dock>.workshop-next{justify-self:end}.production-dock>.exam-total-progress{grid-column:1/-1;text-align:center;font-size:12px;line-height:1.5}
.production-dock .assistant-roadmap{display:none}.production-position{font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums;padding-inline:8px}
.production-feedback{border-top:2px solid var(--accent-line);padding-top:24px;scroll-margin-block:30px}.production-feedback h3{color:var(--accent)}.rating-actions{display:flex;gap:12px;flex-wrap:wrap}
@media(max-width:1150px){
 .topbar-inner{grid-template-columns:1fr auto}.topnav{grid-row:2;grid-column:1/-1;justify-content:flex-start}
 .exam-intro{position:static!important}.exam-part-tabs{order:3;flex-basis:100%}
 .fiche-layout,.library-workspace{gap:18px}
}
@media(max-width:900px){
 .shell{padding:24px 18px 115px}.topbar-inner{padding:12px 18px}.topnav{display:none}
 .mobile-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:8px 8px calc(8px + env(safe-area-inset-bottom));gap:2px;background:var(--white);border-top:1px solid var(--line)}
 .mobile-nav button{font-size:13px;line-height:1.4;min-height:44px;white-space:normal;min-width:0;padding:8px 4px;color:var(--muted)}
 .mobile-nav button.active{background:var(--aqua);color:var(--teal);border-radius:8px}
 .journey-home-grid,.journey-lesson-layout,.journey-progress-grid,.fiche-layout,.production-layout,.exam-layout,.heading-exam,.advert-exam,.experience-layout{grid-template-columns:minmax(0,1fr)}
 .journey-daily{display:grid;grid-template-columns:1fr 1fr;gap:8px 20px}.journey-daily h2,.journey-daily progress,.journey-daily small{grid-column:1/-1}.journey-daily label{margin-top:0}.journey-daily .journey-number{margin:0}
 .exam-support,.batch-card,.heading-texts,.heading-options,.exam-question,.advert-reading,.situations-panel,.production-source,.production-support,.production-response,.listening-exam .exam-support,.fiche-questions{height:auto;max-height:none;min-height:0;overflow:visible;position:static}
 .exam-support-body{max-height:none;overflow:visible}.heading-texts{padding-inline:0}.heading-options{padding:16px 0}.advert-exam{margin:0}.advert-reading{padding:20px}
 .situation-row{grid-template-columns:24px minmax(0,1fr) 64px}.situations-panel{border:0}
 .exam-results .result-columns{grid-template-columns:1fr}.production-source,.production-response-body{padding:20px}
 .exam-dock{padding:10px 14px calc(10px + env(safe-area-inset-bottom));grid-template-columns:1fr 1fr}.exam-dock-center{grid-column:1/-1;flex-wrap:wrap;justify-content:center}
 .in-exam .shell{padding-inline:18px;padding-bottom:220px}.in-exam .mobile-nav{display:none}
 .in-exam .exam-intro{margin-inline:-18px;padding-inline:18px}.exam-subject-label{max-width:none}
 .production-dock{grid-template-columns:1fr 1fr}.production-dock>.workshop-previous{grid-row:2;grid-column:1}.production-dock>.workshop-next{grid-row:2;grid-column:2}.production-dock>.exam-dock-center{grid-row:1;grid-column:1/-1;flex-direction:row;gap:8px}
 .exam-dock:not(.production-dock)>.exam-total-progress{grid-column:1/-1;text-align:center}.exam-dock:not(.production-dock)>.exam-dock-center{grid-column:1;grid-row:2;gap:8px}.exam-dock:not(.production-dock)>.exam-next{grid-column:2;grid-row:2;justify-self:end;max-width:none}.exam-dock .assistant-roadmap{display:none}
 .production-layout{gap:20px}.production-response .workshop-draft{height:340px}.production-subject{padding:18px 20px}.production-subject h2{font-size:24px}
 .heading-texts,.heading-options{padding:20px}.editor-expand{display:none}
 .library-workspace{grid-template-columns:1fr}.library-workspace.reading .library-panel{display:none}.library-workspace:not(.reading) .reader{display:none}.reader{padding:22px}
 #screen-learn .learn-lessons{grid-template-columns:1fr}#screen-learn .learn-lesson-nav{display:flex;flex-wrap:wrap;gap:8px;position:static}#screen-learn .learn-lesson-nav button{width:auto;min-width:100px}
 .journey-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:580px){
 .topbar-inner{padding:10px 12px;gap:8px}.brand strong{font-size:16px}.brand small{font-size:11px}.brand-logo{width:36px;height:36px}.header-actions{gap:4px}.header-actions .level-switch{display:none}
 .header-actions #open-settings{display:none}.header-actions .icon-button,.header-actions .theme-toggle{min-width:40px;padding:6px}
 .journey-unit-list{grid-template-columns:1fr}.journey-unit{padding:16px;gap:12px;grid-template-columns:28px minmax(0,1fr) auto}
 .journey-daily{display:block}.journey-daily .journey-number{margin:16px 0}.journey-daily label{margin-top:16px}
 .journey-example{align-items:flex-start;gap:10px}.journey-example [lang=de]{font-size:18px}.journey-examples,.journey-coach{padding:20px}
 .journey-next{padding:24px}.journey-actions{display:grid;grid-template-columns:1fr}.journey-actions button{width:100%}
 .journey-activity,.journey-recent{padding:18px}.journey-calendar{gap:5px}.journey-calendar li{padding:7px 0}.journey-metrics .stat-card{padding:18px}.journey-metrics strong{font-size:28px}
 .document-section{padding:16px}.reader{padding:18px}.readable-content p{font-size:17px}
 .reader-tools .button,.fiche-actions .button{flex:1 1 150px}.reader-tabs button{flex:1 1 auto}
 .listening-statement p{font-size:16px}.listening-table th,.listening-table td{padding:10px 6px}.listening-table th{font-size:12px}.listening-heading{align-items:flex-start;flex-wrap:wrap;gap:8px}
 .production-subject{grid-template-columns:1fr}.production-subject .text-button{grid-row:3;justify-self:start}.production-source,.production-response-body{padding:18px}.opinion-card{padding:18px}.opinion-card p{font-size:16px}
 .workshop-steps{order:3;flex-basis:100%;justify-content:center}.exam-tools{margin-left:0}.exam-tools .icon-button{min-width:40px;padding:6px}.exam-subject-label{flex-basis:180px}
 .exam-dock .button{font-size:14px}.production-position{flex-basis:100%;text-align:center}.production-dock .exam-dock-center .button{flex:1}.production-dock .exam-total-progress{font-size:12px}
 .editor-character{padding:7px 11px}.editor-characters{gap:4px}.production-response .workshop-draft{padding:16px;font-size:17px}.listening-exam .options{grid-template-columns:1fr}
 .exam-part-tabs button{flex:1 1 64px}.exam-intro .text-button{font-size:13px}.exam-tools{gap:5px;flex-wrap:wrap}
 #screen-learn .learn-heading{align-items:flex-start;flex-direction:column;gap:14px}#screen-learn .learn-tabs button{white-space:normal;flex:1 1 120px}#screen-learn .learn-levels{justify-content:flex-start}
 #screen-learn .learn-toolbar{flex-wrap:wrap;gap:12px}#screen-learn .learn-toolbar input{flex-basis:100%}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}


/* Daily learning: one clear recommended action, with visible lesson phases. */
.journey-today{position:relative;overflow:hidden;padding:clamp(24px,4vw,40px);background:linear-gradient(135deg,var(--aqua),var(--white) 72%);border:1px solid var(--accent-line);border-radius:18px;box-shadow:0 12px 36px #123c3210;}
.journey-today-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.journey-duration{font-size:14px;font-weight:650;color:var(--muted);background:var(--white);border:1px solid var(--line);border-radius:999px;padding:7px 12px}
.journey-today h2{font-size:clamp(25px,3vw,34px);line-height:1.65;margin:18px 0 4px;color:var(--navy)}.journey-today .journey-subtitle{margin:4px 0;font-size:16px;color:var(--muted)}.journey-today-goal{font-size:17px;line-height:1.9;margin:12px 0;color:var(--text)}
.journey-session-steps{list-style:none;padding:0;margin:20px 0 4px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;direction:rtl}.journey-session-steps li{position:relative;min-height:52px;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:10px;background:var(--white);font-size:15px;font-weight:650;color:var(--muted)}.journey-session-steps li.is-current{border:2px solid var(--teal);background:var(--white);color:var(--teal);box-shadow:0 3px 12px #08736312}.journey-session-steps li.is-complete{border-color:var(--accent-line);background:var(--soft);color:var(--teal)}.journey-session-steps li.is-complete::before{content:'✓';margin-inline-end:6px;font-weight:800}
#daily-session-start{min-height:52px;min-width:min(290px,100%);font-size:16px;font-weight:750}.journey-today .journey-method{margin:20px 0 0;color:var(--muted);font-size:14px;line-height:1.85}.journey-next{background:var(--white)}
html[data-theme=dark] .journey-today{background:linear-gradient(135deg,#123b39,var(--white) 92%);box-shadow:none}html[data-theme=dark] .journey-session-steps li{background:var(--white)}
@media(max-width:760px){.journey-today{padding:22px}.journey-today h2{font-size:24px}.journey-session-steps{gap:6px}.journey-session-steps li{min-height:46px;font-size:14px}.journey-today .journey-actions{display:grid;grid-template-columns:1fr}.journey-today .journey-actions button{width:100%;min-width:0}}
@media(max-width:380px){.journey-session-steps li{font-size:13px;padding-inline:4px}.journey-today-top{align-items:flex-start}.journey-duration{font-size:13px}}
