/* A clear reading order, with the first workspace on the right. */
.topbar-inner,.topnav,.mobile-nav,.header-actions{direction:rtl}
.topnav{flex-wrap:wrap;justify-content:flex-start;gap:3px}
.topnav .nav-link{padding-inline:10px;font-size:.92rem}
.mobile-nav{grid-template-columns:repeat(6,minmax(0,1fr))!important}
.screen,.page-heading,.section-heading,.explore-header,.explorer-tabs,.explorer-levels,.explorer-cards,.fiche-layout,.exam-layout,.exam-intro,.exam-part-tabs,.heading-exam,.path-stats,.result-columns,.library-workspace,.workshop-actions{direction:rtl}
.page-heading,.section-heading,.cloud-page{ text-align:start }
#screen-learn .learn-levels,#screen-learn .learn-tabs,#screen-learn .learn-plan,#screen-learn .learn-lessons,#screen-learn .learn-lesson-nav{direction:rtl}
#screen-learn .learn-levels{justify-content:flex-start}
.daily-motivation{border:1px solid var(--accent-line);border-inline-start:5px solid var(--blue);background:var(--white);border-radius:18px;padding:24px 28px;margin:0 0 24px;box-shadow:var(--shadow)}
.daily-motivation-top{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:12px}
.daily-motivation .eyebrow{font-size:1rem;margin:0}
.daily-motivation-date{font-size:.9rem;color:var(--muted)}
.daily-motivation h1{font-size:clamp(1.5rem,2.6vw,2.2rem)!important;line-height:1.55!important;text-align:right!important;margin:0 0 8px!important;color:var(--navy)}
.daily-motivation-darija{font-size:1.25rem!important;line-height:1.9!important;margin:0!important;color:var(--teal)!important;font-weight:600}
.profile-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 24px}
.profile-person{display:flex;align-items:center;gap:14px;min-width:0}
.profile-person h2{margin:0;font-size:1.5rem}
.profile-person p{margin:3px 0;color:var(--muted);font-size:.95rem;overflow-wrap:anywhere}
.profile-logo{width:62px;height:62px;flex:none}
.profile-home-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;direction:rtl;align-items:start}
.profile-next,.profile-guide,.profile-metrics{padding:24px;background:var(--white);border:1px solid var(--line);border-radius:16px}
.profile-next h2,.profile-guide h2{margin:0 0 8px;font-size:1.4rem}
.profile-next p,.profile-guide p,.profile-guide li{font-size:1rem;line-height:1.9}
.profile-next .journey-actions{margin-top:18px}
.profile-metrics{display:flex;gap:18px;justify-content:space-between;margin:22px 0}
.profile-metrics strong{display:block;color:var(--blue);font-size:1.9rem}
.profile-metrics span{color:var(--muted);font-size:.95rem}
.profile-guide ol{padding-inline-start:24px;margin-block:16px}
.profile-guide li{padding-inline-start:5px;margin-bottom:10px}
.profile-tip{padding:14px 18px;background:var(--soft);border-radius:12px;border:1px solid var(--accent-line)}
.profile-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:22px;direction:rtl}
.profile-steps button{background:var(--white);color:var(--text);border:1px solid var(--line);border-radius:12px;padding:18px;text-align:right;cursor:pointer;font:inherit;min-height:108px}
.profile-steps strong,.profile-steps span{display:block}
.profile-steps strong{font-size:1.1rem;margin-bottom:6px}
.profile-steps span{font-size:.92rem;line-height:1.7;color:var(--muted)}
.profile-steps button:hover{border-color:var(--blue);background:var(--soft)}
#screen-accueil .advanced-home{margin-top:24px}
.beginner-unit-picker{margin-top:16px}
.beginner-unit-picker summary{cursor:pointer;font-size:1rem;font-weight:650;padding:12px 0}
.beginner-unit-picker .journey-unit-list{margin:8px 0}
.explore-header{padding:22px 0 18px!important;margin-bottom:12px!important}
.explore-header>.eyebrow{font-size:1rem;line-height:1.8}
.explore-skill-switch{direction:rtl!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px!important;max-width:920px;margin-block:16px 22px!important}
.explore-skill-switch button{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:1.1rem!important;padding:17px 20px!important;min-height:66px!important;text-align:right}
.explore-skill-switch button .skill-name-de{direction:ltr;unicode-bidi:isolate;color:var(--muted);font-size:1rem}
.explore-skill-switch button.active .skill-name-de{color:inherit}
.explore-skill-title{display:flex;align-items:baseline;gap:18px;flex-wrap:wrap;direction:rtl}
#explorer-title{font-size:clamp(2rem,4vw,3rem)!important;line-height:1.4;margin:0;text-align:right;direction:rtl}
#explorer-title-de{font-size:1.6rem;color:var(--muted);direction:ltr}
#explorer-subtitle{font-size:1.08rem;line-height:1.9;margin-top:8px}
.location-title{font-size:1.08rem}
.page-location{margin-bottom:16px}
.lesson-practice{direction:rtl;text-align:right;border-top:2px solid var(--accent-line);padding-top:20px;margin-top:24px}
.lesson-practice>h3{text-align:right!important;font-size:1.4rem!important}
.lesson-practice-guide{padding:12px 16px;background:var(--soft);border-radius:10px;color:var(--teal)}
.lesson-choice-card{padding:20px;border:1px solid var(--line);border-radius:14px;background:var(--white);margin:16px 0}
.lesson-choice-card fieldset{border:0;min-width:0;padding:0;margin:0 0 18px}
.lesson-question-prompt{float:none;width:100%;text-align:left;font-size:1.2rem;line-height:1.7;font-weight:650;margin-bottom:16px;padding:0}
.lesson-choice{display:flex;align-items:center;gap:12px;direction:ltr;min-height:52px;padding:12px 16px;border:1px solid var(--line);border-radius:9px;margin:9px 0;cursor:pointer;text-align:left;font-size:1.08rem;overflow-wrap:anywhere}
.lesson-choice input{width:20px;height:20px;accent-color:var(--blue);flex:none}
.lesson-choice:has(input:checked){border-color:var(--blue);background:var(--soft)}
#screen-learn .lesson-choice.is-correct{border-color:#16805c;background:#e9f7f0}
#screen-learn .lesson-choice.is-incorrect{border-color:#c63f4b;background:#fff0f1}
#screen-learn .lesson-choice.is-correct span{color:#174a35}
#screen-learn .lesson-choice.is-incorrect span{color:#831729}
.lesson-choice-feedback:not(:empty){border-top:1px solid var(--line);margin-top:16px;padding-top:16px}
.lesson-choice-feedback p{margin:8px 0;line-height:1.9}
.lesson-practice-summary{border:1px solid var(--accent-line);border-radius:12px;padding:16px;background:var(--soft)}
.pdf-language-picker{width:100%;text-align:right}
.pdf-language-picker select{width:100%;margin-top:8px;min-height:48px;background:var(--white);border:1px solid var(--line);border-radius:9px;color:var(--text);font:inherit;padding:10px}
.pdf-export-status{font-size:1rem;line-height:1.8;width:100%;margin:0;color:var(--teal)}
#screen-mock-exams .page-heading h1{font-size:clamp(2rem,4vw,3rem);line-height:1.5}
#screen-mock-exams .exam-roadmap{margin-top:20px}
@media(max-width:1000px){.topbar-inner{grid-template-columns:1fr auto}.topnav{grid-column:1/-1;grid-row:2;justify-content:center}.profile-home-grid{grid-template-columns:minmax(0,1fr) 270px}.explore-skill-switch{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.topnav{display:none}.mobile-nav button{font-size:.875rem!important;line-height:1.5;min-width:0;padding:7px 3px!important}.profile-home-grid{grid-template-columns:1fr}.profile-heading{align-items:flex-start;flex-direction:column}.profile-steps{grid-template-columns:1fr}.daily-motivation{padding:18px;margin-bottom:20px}.daily-motivation h1{font-size:1.4rem!important}.daily-motivation-darija{font-size:1.08rem!important}.profile-next,.profile-guide,.profile-metrics{padding:18px}.profile-metrics{gap:10px;flex-wrap:wrap}.profile-metrics>div{flex:1;min-width:85px}.profile-metrics strong{font-size:1.7rem}.profile-metrics span{font-size:.875rem}.explore-skill-switch{gap:8px!important}.explore-skill-switch button{padding:12px!important;gap:8px;min-height:62px!important;font-size:1rem!important}.explore-skill-switch button .skill-name-de{font-size:.92rem}.lesson-choice-card{padding:15px}.lesson-choice{padding:12px}.lesson-question-prompt{font-size:1.1rem}#screen-learn .learn-levels{justify-content:flex-start}.page-breadcrumbs{font-size:.9rem}}
@media print{.mobile-nav,.topbar{display:none}}
@media(max-width:760px){#screen-learn .learn-levels{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px!important}#screen-learn .learn-levels button{min-width:0!important;padding-inline:6px!important;font-size:1rem}.mobile-nav button{overflow-wrap:normal;word-break:normal}}
@font-face{font-family:'Yallah Report';src:url('./assets/report/DejaVuSans.ttf') format('truetype');font-style:normal;font-weight:400;font-display:block}
@font-face{font-family:'Yallah Report';src:url('./assets/report/DejaVuSans-Bold.ttf') format('truetype');font-style:normal;font-weight:600 900;font-display:block}

@media(max-width:760px){.mobile-nav button{min-height:60px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:clamp(11px,3.2vw,13px)!important;line-height:1.45;gap:2px;text-align:center}.mobile-nav button>span{white-space:normal;max-width:100%}.mobile-nav small{font-size:10px;line-height:1.3;white-space:nowrap;unicode-bidi:isolate}.shell{padding-bottom:calc(106px + env(safe-area-inset-bottom))}}
