/* Umul Madaris crest palette: midnight indigo, rose, pale sky and a little gold. */
:root{--ink:#211947;--muted:#625e78;--green:#292069;--green-dark:#1d164d;--mint:#eeeafa;--paper:#f8f7fc;--line:#e5e1ef;--purple:#f5e9f2;--orange:#fff5d8;--blue:#e9f6ff;--shadow:0 16px 38px #21194713}
body{background:var(--paper)}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline-color:#c51768}
.sidebar{background:#261c61;color:#fff;border:0}
.brand{color:#fff;margin-bottom:38px}
.brand-mark{background:#fff;width:48px;height:48px;border-radius:50%;overflow:hidden;box-shadow:0 6px 18px #160d3d55}
.brand-mark img{width:100%;height:100%;object-fit:cover}
.brand-name{letter-spacing:-.035em}
.brand-dot{color:#ee4997}
.brand-tag{color:#e4d9ff;font-size:10px;letter-spacing:.07em}
.sidebar .nav-link{color:#e2dcf6}
.sidebar .nav-link:hover{background:#ffffff1c;color:#fff}
.sidebar .nav-link.active{background:#fff;color:#292069;box-shadow:0 5px 18px #140b3a36}
.sidebar .nav-count{color:#292069}
.school{border-color:#ffffff42;color:#fff}
.school span{color:#dbd2f3}
.school-mark{background:#fff;color:#292069}
.menu-button{color:#292069}
.topbar{border-color:var(--line)}
.class-chip{display:inline-flex;align-items:center;min-height:35px;padding:6px 11px;border-radius:8px;background:#eeeafa;color:#292069;font-size:12px;font-weight:800;white-space:nowrap}
.class-chip:hover{background:#e0d8f4}
.next-lesson,.submission-overview{background:#292069}
.next-lesson:before{content:"";position:absolute;width:190px;height:190px;border:28px solid #ec3c9140;border-radius:50%;right:-80px;top:-110px;pointer-events:none}
.next-lesson p,.submission-overview p{color:#ece7ff}
.next-lesson .tag{background:#dc2d7d;color:#fff}
.lesson-monogram{background:#e9f6ff;color:#292069;box-shadow:0 12px 30px #150f4450;transform:rotate(5deg)}
.lesson-monogram span{border-color:#b4aade}
.btn{background:#bd1764;color:#fff}
.btn:hover{background:#9f1254}
.btn.light{color:#292069}
.btn.soft{background:#eeeafa;color:#292069}
.tag{background:#f8e7f0;color:#95144d}
.nav-link.active .tag{color:#292069}
.text-link{color:#9d1556}
.text-link:hover{color:#75113f}
.progress-fill{background:#bd1764}
.word-card{background:#f6eaf4}
.word-card h3,.word-card .word-meaning,.word-card .text-link{color:#731e54}
.unit-symbol.green{background:#e9f6ff;color:#292069}
.footer-note[data-phase="ready"]{color:#292069}

.class-choice{display:grid;grid-template-columns:124px minmax(0,1fr);align-items:start;gap:25px;max-width:760px;padding:28px}
.class-choice img{border-radius:50%;border:4px solid #eeeafa;width:104px;height:104px;object-fit:cover}
.class-choice h2{font-size:24px;margin-bottom:7px}
.class-choice p{color:var(--muted);font-size:14px;max-width:56ch}
.class-choice form{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin-top:25px}
.class-choice label{flex-basis:100%;font-size:13px;font-weight:800}
.class-choice select,.settings-layout select{min-height:44px;border:1px solid #bcb4d4;border-radius:9px;background:#fff;color:var(--ink);padding:9px 12px}
.class-choice select{min-width:190px}

.starter-intro{display:flex;justify-content:space-between;align-items:center;gap:26px;padding:29px 32px;border-radius:16px;background:#292069;color:#fff;overflow:hidden;position:relative}
.starter-intro:after{content:"";position:absolute;width:165px;height:165px;border:25px solid #e335864d;border-radius:50%;right:-80px;bottom:-110px;pointer-events:none}
.starter-intro h2{font-size:27px;max-width:530px}
.starter-intro p{max-width:65ch;font-size:14px;color:#ece7ff;margin-top:8px}
.starter-intro .ur{color:#f5e6fa}
.starter-count{flex:none;display:grid;place-items:center;min-width:145px;padding:18px;border-radius:13px;background:#ffffff1b;z-index:1}
.starter-count strong{font-size:38px;line-height:1.15}
.starter-count strong span{font-size:18px;opacity:.8}
.starter-count>span{font-size:12px}
.starter-list{display:grid;gap:10px;margin:22px 0}
.starter-row{display:grid;grid-template-columns:43px minmax(0,1fr) auto;align-items:center;gap:16px;padding:17px 20px;background:#fff;border:1px solid var(--line);border-radius:12px;transition:border-color .18s,transform .18s}
.starter-row:hover{border-color:#c72c75;transform:translateY(-2px)}
.starter-number{width:40px;height:40px;border-radius:11px;background:#f8e7f0;color:#a31358;display:grid;place-items:center;font-weight:800}
.starter-row strong,.starter-row small{display:block}
.starter-row strong{font-size:16px}
.starter-row small{color:var(--muted);font-size:12px;margin-top:2px}
.starter-row small[lang="ur"]{font-size:15px;color:#403762;text-align:left}
.starter-row-end{font-size:12px;font-weight:800;color:#a31358;white-space:nowrap}
.class-course-link{margin-top:24px;padding:22px 25px;border-radius:13px;background:#e9f6ff;color:#211947}
.class-course-link strong{font-size:16px}
.class-course-link p{font-size:13px;margin:5px 0 12px;color:#474263}
.starter-lesson{max-width:860px;background:#fff;border-radius:16px;padding:29px;border:1px solid var(--line)}
.starter-lesson-head{display:flex;justify-content:space-between;gap:14px;color:#8c1450;font-weight:800;font-size:12px;margin-bottom:7px}
.starter-lesson>.ur{color:#51466d;font-size:17px;margin-bottom:20px}
.starter-lesson h2{font-size:21px;margin:20px 0 13px}
.starter-phrases{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.starter-phrases article{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;background:#f8f7fc;padding:18px;border-radius:11px;min-width:0}
.starter-phrases strong{font-size:18px}
.starter-phrases p{font-family:'Noto Sans Arabic','Segoe UI',sans-serif;font-size:17px;line-height:1.8;color:#5e315b}
.starter-phrases small{display:block;color:var(--muted);line-height:1.5}
.starter-phrases .icon-button{flex:none;color:#292069}
.starter-say{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:19px 21px;margin:23px 0;background:#e9f6ff;border-radius:11px}
.starter-say h3{margin-bottom:5px}
.starter-say p{font-weight:750;color:#292069}
.starter-say small{display:block;color:#514a6d}
.starter-check{padding-top:19px;border-top:1px solid var(--line)}
.starter-check h3{margin-bottom:5px}
.starter-check>p{font-size:14px}
.starter-choices{display:grid;gap:8px;margin-top:14px}
.starter-choice{width:100%;padding:12px 15px;background:#f8f7fc;border:1px solid #ddd6ed;border-radius:9px;text-align:left;font-weight:650}
.starter-choice:hover{border-color:#bd1764;background:#fff6fb}
.starter-choice.correct{border-color:#326f55;background:#e9f5ee;color:#20543e}
.starter-choice.incorrect{border-color:#bd1764;background:#fff1f7}
.starter-feedback{font-weight:750;color:#292069;margin-top:12px}
.starter-next{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:27px;font-size:13px;color:var(--muted)}
@media(max-width:700px){.class-choice{grid-template-columns:1fr;padding:23px}.class-choice img{width:86px;height:86px}.class-choice form{align-items:stretch}.class-choice select,.class-choice .btn{width:100%}.starter-intro{align-items:flex-start;flex-direction:column;padding:25px}.starter-count{min-width:0;display:flex;gap:10px;align-items:baseline}.starter-row{grid-template-columns:38px minmax(0,1fr);gap:10px}.starter-row-end{grid-column:2}.starter-lesson{padding:21px 16px}.starter-phrases{grid-template-columns:1fr}.starter-say,.starter-next{align-items:flex-start;flex-direction:column}.top-actions{gap:7px}.class-chip{font-size:11px;padding:5px 7px}}

/* Signed entry and first-use class choice */
.auth-gate{min-height:100dvh;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);background:#f8f7fc}
.auth-story{padding:clamp(38px,7vw,96px);display:flex;flex-direction:column;justify-content:space-between;gap:70px;background:#261c61;color:#fff;position:relative;overflow:hidden}
.auth-story:after{content:"";position:absolute;width:430px;height:430px;border:70px solid #ee49972e;border-radius:50%;right:-230px;bottom:-230px}
.auth-brand{display:flex;align-items:center;gap:15px;position:relative;z-index:1}
.auth-brand img{width:70px;height:70px;border-radius:50%;border:4px solid #fff;object-fit:cover}
.auth-brand strong{display:block;font-size:30px;letter-spacing:-.035em}.auth-brand strong span{color:#ee4997}.auth-brand small{color:#ddd4f5}
.auth-copy{position:relative;z-index:1;max-width:770px}.auth-copy h1{font-size:clamp(36px,5.5vw,70px);line-height:1.04;letter-spacing:-.04em;max-width:13ch}.auth-copy>p{font-size:17px;line-height:1.65;color:#e6e0f6;max-width:60ch;margin-top:24px}.auth-copy .ur{font-size:21px;line-height:1.9;text-align:left}
.auth-benefits{position:relative;z-index:1;display:flex;flex-wrap:wrap;gap:12px}.auth-benefits span{display:flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid #ffffff3b;border-radius:999px;font-size:12px;font-weight:750;color:#eee9fa}
.auth-action{padding:clamp(30px,6vw,74px);display:flex;flex-direction:column;justify-content:center;gap:24px;width:100%;max-width:640px}.auth-action h2{font-size:30px;letter-spacing:-.03em}.auth-action p{color:var(--muted);line-height:1.65}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:5px;background:#eae6f3;border-radius:12px}.auth-tabs a{display:grid;place-items:center;min-height:44px;border-radius:9px;color:#4b4169;font-size:14px;font-weight:800;text-decoration:none}.auth-tabs a[aria-current="page"]{background:#fff;color:#211947;box-shadow:0 4px 12px #21194716}.auth-tabs a:hover:not([aria-current="page"]){background:#f7f5fb}.auth-panel{max-width:510px}.auth-intro{margin:8px 0 22px}.auth-status{padding:11px 13px;margin:0 0 17px;border-radius:9px;background:#eeeafa;color:#292069!important;font-size:13px}.auth-status[role="alert"]{background:#fff0f4;color:#8b164c!important}.auth-button{width:100%;justify-content:center;min-height:52px}.auth-button:disabled{opacity:.72;cursor:wait}.auth-explainer{font-size:13px;margin:12px 0 0}.auth-privacy{border-top:1px solid var(--line);margin-top:24px;padding-top:21px}.auth-privacy strong{font-size:13px}.auth-privacy p{font-size:12px;margin:7px 0 0;line-height:1.55}
.loading-gate{min-height:100dvh;display:grid;place-items:center;padding:25px;background:#f8f7fc;text-align:center}.loading-gate img{border-radius:50%;margin-bottom:18px}.loading-gate p{color:var(--muted);margin-top:8px}
.class-onboarding{min-height:100dvh;background:linear-gradient(180deg,#eeeafa 0,#f8f7fc 38%);padding:28px clamp(18px,5vw,70px) 60px}.class-onboarding>header{max-width:1120px;margin:0 auto 45px;display:flex;align-items:center;gap:14px}.class-onboarding>header img{border-radius:50%;object-fit:cover;border:3px solid #fff;box-shadow:var(--shadow)}.class-onboarding>header div{display:grid}.class-onboarding>header strong{font-size:18px}.class-onboarding>header span{color:var(--muted);font-size:12px}.class-onboarding>header .btn{margin-left:auto}.class-onboarding>section{max-width:960px;margin:auto}.class-intro{text-align:center;max-width:720px;margin:0 auto 30px}.class-step{display:inline-block;color:#9d1556;background:#f8e7f0;padding:7px 11px;border-radius:999px;font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.06em}.class-intro h1{font-size:clamp(34px,5vw,54px);letter-spacing:-.05em;margin:14px 0 10px}.class-intro p{color:var(--muted);line-height:1.65}.class-intro .ur{font-size:18px;margin-top:7px}.class-onboarding fieldset{border:0}.class-onboarding legend{font-size:13px;font-weight:850;margin-bottom:12px}.class-card-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.class-option{position:relative;min-height:185px;padding:20px 16px;border:2px solid transparent;border-radius:16px;background:#fff;box-shadow:0 10px 28px #2119470d;cursor:pointer;display:flex;flex-direction:column;gap:16px;transition:transform .18s,border-color .18s,box-shadow .18s}.class-option:hover{transform:translateY(-3px);box-shadow:0 16px 34px #21194719}.class-option:has(input:checked){border-color:#bd1764;box-shadow:0 14px 35px #bd176426}.class-option input{position:absolute;opacity:0;pointer-events:none}.class-number{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:#eeeafa;color:#292069;font-size:22px;font-weight:900}.class-option:has(input:checked) .class-number{background:#bd1764;color:#fff}.class-option strong,.class-option small,.class-option em{display:block}.class-option strong{font-size:17px}.class-option small{font-size:12px;color:var(--muted);margin-top:5px;line-height:1.35}.class-option em{font-size:10px;color:#9d1556;font-style:normal;font-weight:800;margin-top:9px}.class-check{position:absolute;right:12px;top:12px;width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:#f0edf7;color:transparent}.class-option:has(input:checked) .class-check{background:#bd1764;color:#fff}.class-option:focus-within{outline:3px solid #e9388a55;outline-offset:3px}.class-continue{display:flex;margin:24px auto 0;min-width:260px;justify-content:center}.class-sync-note{text-align:center;font-size:12px;color:var(--muted);margin-top:13px}

/* Class-specific grammar paths */
.level-hero{display:grid;grid-template-columns:1fr;background:#292069;color:#fff;border-radius:18px;overflow:hidden;min-height:330px}.level-hero>div:first-child{padding:clamp(28px,5vw,55px);align-self:center}.level-hero h2{font-size:clamp(29px,4vw,46px);letter-spacing:-.045em;margin:14px 0 10px}.level-hero p{color:#e8e3f5;line-height:1.65;max-width:58ch}.level-hero .ur{font-size:18px;line-height:1.9;margin:6px 0 22px}.level-dashboard{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(250px,.65fr);gap:20px;margin-top:25px}.level-dashboard>section,.level-dashboard>aside{background:#fff;border:1px solid var(--line);border-radius:15px;padding:23px}.level-dashboard>aside{background:#e9f6ff}.level-dashboard aside>p{font-size:13px;color:var(--muted);line-height:1.6;margin:8px 0 16px}.level-path-list{display:grid;gap:8px;margin-top:15px}.level-path-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px;border-radius:11px;color:var(--ink);background:#f8f7fc}.level-path-row:hover{background:#eeeafa}.level-path-row>span{width:35px;height:35px;border-radius:10px;background:#fff;display:grid;place-items:center;color:#9d1556;font-weight:850}.level-path-row strong,.level-path-row small{display:block}.level-path-row small{font-size:14px;color:#625e78;text-align:left}.level-path-row em{font-size:11px;color:#9d1556;font-style:normal;font-weight:800}.starter-mini-progress{display:flex;align-items:baseline;gap:7px;margin:18px 0}.starter-mini-progress strong{font-size:34px}.starter-mini-progress span{font-size:11px;color:var(--muted)}.sync-explainer{padding-top:15px;border-top:1px solid #cce3f1}.level-course-intro{display:grid;grid-template-columns:1fr minmax(240px,.55fr);align-items:center;gap:30px;padding:25px;background:#292069;color:#fff;border-radius:15px;margin-bottom:22px}.level-course-intro p{color:#e6e0f6;font-size:13px;margin-top:6px}.level-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.level-course-card{display:grid;grid-template-columns:1fr;background:#fff;border:1px solid var(--line);border-radius:15px;overflow:hidden;color:var(--ink);transition:transform .18s,box-shadow .18s}.level-course-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.level-course-card>div{padding:22px}.level-course-card span{font-size:10px;text-transform:uppercase;color:#9d1556;font-weight:850;letter-spacing:.04em}.level-course-card h2{font-size:20px;margin:8px 0 2px}.level-course-card .ur{font-size:16px;color:#51466d}.level-course-card>div>p:not(.ur){font-size:12px;line-height:1.55;color:var(--muted);margin:10px 0}.level-course-card>div>strong{font-size:12px;color:#9d1556}.level-lesson{display:grid;gap:22px;max-width:930px}.level-rule,.level-lesson>section{background:#fff;border:1px solid var(--line);border-radius:15px;padding:25px}.level-rule{background:#e9f6ff}.level-rule h2{font-size:23px}.level-rule>p{line-height:1.7;margin-top:10px}.level-rule .ur{font-size:18px;line-height:1.9;color:#4b3f67}.level-examples{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:14px}.level-examples>div{display:flex;justify-content:space-between;gap:14px;background:#f8f7fc;padding:17px;border-radius:11px}.level-examples p{font-size:15px;color:#625e78;margin-top:5px}.level-check h2{margin-bottom:5px}.level-mission{display:flex;align-items:center;justify-content:space-between;gap:24px;background:#292069!important;color:#fff!important}.level-mission>div{display:flex;align-items:flex-start;gap:14px}.level-mission>div>span{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#ffffff1c}.level-mission p{color:#e5def5;font-size:13px;margin-top:5px}.back-link{display:inline-flex;align-items:center;gap:5px;margin-bottom:18px}.back-link svg{transform:rotate(180deg)}
@media(max-width:1000px){.class-card-grid{grid-template-columns:repeat(3,1fr)}.level-card-grid{grid-template-columns:1fr}.level-course-card{grid-template-columns:1fr}}
@media(max-width:800px){.auth-gate{grid-template-columns:1fr;align-content:start}.auth-story{padding:25px 24px 29px;gap:22px}.auth-copy h1{font-size:clamp(30px,6vw,38px);max-width:21ch}.auth-copy>p{font-size:14px;margin-top:12px;line-height:1.5}.auth-copy .ur{font-size:16px;line-height:1.65;margin-top:9px}.auth-benefits{display:none}.auth-action{max-width:none;padding:22px 24px 44px;gap:21px;background:#fff}.level-hero,.level-dashboard{grid-template-columns:1fr}.level-dashboard>aside{order:-1}.level-course-intro{grid-template-columns:1fr}.class-card-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.auth-story{padding:16px 20px 18px;gap:13px}.auth-brand img{width:52px;height:52px;border-width:3px}.auth-brand strong{font-size:25px}.auth-brand small{font-size:11px}.auth-copy h1{font-size:30px;line-height:1.08}.auth-action{padding:16px 20px 36px;gap:16px}.auth-action h2{font-size:25px}.auth-intro{font-size:14px;margin:7px 0 15px}.auth-privacy{margin-top:20px;padding-top:17px}.class-onboarding{padding:18px 14px 44px}.class-onboarding>header{margin-bottom:34px}.class-onboarding>header img{width:52px;height:52px}.class-onboarding>header .btn{padding:8px 10px}.class-card-grid{grid-template-columns:1fr}.class-option{min-height:0;display:grid;grid-template-columns:48px minmax(0,1fr);align-items:start}.class-check{top:50%;transform:translateY(-50%)}.class-continue{width:100%;min-width:0}.level-course-card{grid-template-columns:1fr}.level-examples{grid-template-columns:1fr}.level-mission{align-items:flex-start;flex-direction:column}}

/* Class 8 unit illustrations: the complete scene stays visible at every width. */
.unit-illustration{margin:0;min-width:0}
.unit-illustration img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;background:#eeeafa}
.unit-illustration.card{overflow:hidden;border-radius:11px;margin:0 0 20px}
.unit-illustration.lesson{max-width:800px;margin:24px 0 26px}
.unit-illustration.lesson img{border-radius:14px}
.unit-illustration.reading{max-width:800px;margin:20px 0 25px}
.unit-illustration.reading img{border-radius:14px}
.unit-illustration figcaption{font-size:13px;line-height:1.55;color:#51466d;margin-top:10px}
@media(max-width:700px){.unit-illustration.card{margin-bottom:18px}.unit-illustration.lesson,.unit-illustration.reading{margin:20px 0 22px}.unit-illustration figcaption{font-size:12px}}

/* Private learner details collected after Google creates the account. */
.profile-onboarding>section{max-width:820px}.profile-intro{margin-bottom:26px}.profile-intro h1{font-size:clamp(30px,4vw,46px)}
.learner-profile-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px;padding:28px;max-width:820px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}
.learner-profile-form .field{margin:0 0 20px;min-width:0}.learner-profile-form .field label{display:block}.learner-profile-form .field input,.learner-profile-form .field select{width:100%}
.learner-profile-form>.notice,.learner-profile-form>.btn,.learner-profile-form>.small{grid-column:1/-1}.learner-profile-form>.btn{justify-self:start;min-width:220px}.learner-profile-form>.small{margin-top:13px;line-height:1.6}
.profile-page{max-width:840px}.profile-page .learner-profile-form{margin:0}
@media(max-width:650px){.learner-profile-form{grid-template-columns:1fr;padding:22px}.learner-profile-form>.btn{width:100%}.profile-onboarding>header{margin-bottom:24px}.profile-onboarding>header span{overflow-wrap:anywhere}.profile-intro{text-align:left}}
