:root{--ink:#202b27;--muted:#68756d;--line:#e3e7df;--blue:#28634b;--pale:#eaf2eb;--navy:#17251f;--green:#2d7855}*{box-sizing:border-box}body{margin:0;background:#f5f4ef;color:var(--ink);font:14px/1.9 Cairo,Tahoma,sans-serif}.top{background:var(--navy);color:white;display:flex;align-items:center;gap:35px;padding:13px 26px;position:sticky;top:0;z-index:4}.brand{display:flex;gap:10px;align-items:center;color:white;text-decoration:none;min-width:220px}.brand>b{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#c8753b;font-size:24px}.brand strong,.brand small{display:block}.brand small{color:#b9c7bf;font-size:11px}.top nav{display:flex;gap:6px;flex-wrap:wrap}.top nav button{border:0;background:transparent;color:#c5cee0;padding:9px 15px;border-radius:10px;font-weight:800}.top nav button.active,.top nav button:hover{background:#ffffff14;color:white}.layout{display:grid;grid-template-columns:285px minmax(0,1fr);max-width:1550px;margin:auto;min-height:calc(100vh - 68px)}aside{background:white;border-left:1px solid var(--line);padding:22px 16px;position:sticky;top:68px;height:calc(100vh - 68px);overflow:auto}aside h3{margin:0 8px 12px}.terms{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;background:#f1f0e9;border-radius:12px;margin-bottom:15px}.terms button{border:0;background:transparent;padding:8px 3px;border-radius:9px;font-weight:800;font-size:12px;color:var(--muted)}.terms button.sel{background:white;color:var(--blue);box-shadow:0 2px 8px #1112}.unit{margin-bottom:14px}.unit h4{font-size:12px;margin:8px;padding:3px;color:#56627a}.lesson{display:flex;gap:9px;width:100%;text-align:right;border:0;background:transparent;border-radius:9px;padding:8px;color:#58657a;font-size:12px;line-height:1.6}.lesson:hover{background:#edf3ed}.lesson.active{background:var(--pale);color:#24553f;font-weight:800}.num{display:grid;place-items:center;flex:0 0 24px;height:24px;background:#e9ece4;border-radius:7px;font-size:10px}.lesson.done .num{background:#dff1e4;color:#236f4d}.tip{font-size:11px;color:var(--muted);padding:12px;border:1px solid var(--line);border-radius:12px;margin-top:24px}main{padding:30px clamp(14px,4vw,55px) 65px;max-width:1200px;width:100%;margin:auto;min-width:0}.hero{background:linear-gradient(115deg,#17251f,#294a39,#397653);color:white;padding:27px;border-radius:22px;margin-bottom:23px}.tag{display:inline-block;background:#eaf2eb;color:#28634b;border-radius:30px;padding:4px 10px;font-size:11px;font-weight:900}.hero .tag{background:#ffffff14;color:#f5e8d9}.hero h1{font-size:32px;line-height:1.5;margin:9px 0}.hero p{color:#dbe7df;max-width:700px}.stats{display:flex;gap:8px;flex-wrap:wrap}.stats span{background:#ffffff12;border:1px solid #ffffff24;border-radius:10px;padding:5px 10px;font-size:12px}.head{display:flex;justify-content:space-between;gap:15px;margin-bottom:20px}.head h1{margin:7px 0;font-size:27px}.head p,.muted{color:var(--muted);margin:0}.card,.unitcard,.qcard{background:white;border:1px solid var(--line);border-radius:17px;padding:21px;margin-bottom:16px;box-shadow:0 4px 15px #202b2708}.card h2{font-size:20px;margin:0 0 9px}.card h3{margin:0 0 9px}.kicker{color:var(--blue);font-size:11px;font-weight:900}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.unitcard{cursor:pointer;margin:0;transition:.15s}.unitcard:hover{transform:translateY(-2px);border-color:#a9c5b0}.unitcard b{display:block;font-size:16px}.unitcard p{color:var(--muted);font-size:12px}.unitcard small{color:var(--blue);font-weight:800}.outcomes{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:14px}.outcomes div{background:#faf9f5;border:1px solid #e9ece4;padding:10px;border-radius:10px;font-size:12px}.callout{background:#edf4ed;border-right:4px solid var(--blue);padding:13px 15px;border-radius:10px;margin:14px 0}.callout.green{background:#effaf4;border-color:var(--green)}.callout.gold{background:#fff3e4;border-color:#c8753b}.steps{padding-right:22px}.steps li{margin:9px 0}.example{background:#17251f;color:#edf2ff;padding:18px;border-radius:14px;margin:12px 0}.example h3{color:white}.example p{color:#d8e0f1}.code{direction:ltr;text-align:left;background:#101a15;color:#bce8c9;border-radius:9px;padding:12px;font:13px Consolas,monospace;white-space:pre-wrap}.practice{background:#fbfcff;border:1px solid var(--line);border-radius:14px;padding:16px}.practice textarea{width:100%;padding:11px;border:1px solid #d7dfd5;border-radius:10px;font:inherit}.btn{border:0;border-radius:10px;background:var(--blue);color:white;padding:10px 16px;font-weight:800;margin:6px 4px 0 0}.btn.secondary{background:#eaf2eb;color:#24553f}.btn.ghost{background:#f0f2f7;color:#59657b}.options{display:grid;gap:8px;margin-top:12px}.option{display:flex;gap:9px;text-align:right;background:white;border:1px solid #dfe5dc;border-radius:10px;padding:10px 12px;color:var(--ink);font:inherit}.option:hover,.option.sel{background:#eaf2eb;border-color:#8db49a}.option.good{background:#effaf4;border-color:#54a779}.option.bad{background:#fff0e8;border-color:#d68a62}.feedback{padding:12px;border-radius:10px;margin-top:12px}.feedback.good{background:#eff8f0;color:#236f4d}.feedback.bad{background:#fff0e8;color:#984b2b}.qcard h3{line-height:1.8}.filters{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.filters input,.filters select{padding:10px;border:1px solid var(--line);border-radius:10px;background:white;font:inherit}.answer{background:#effaf4;padding:12px;border-radius:10px;margin-top:10px}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.metric{background:white;border:1px solid var(--line);border-radius:14px;padding:17px}.metric strong{display:block;font-size:25px}.metric span{color:var(--muted);font-size:12px}.bar{height:6px;background:#e7e9e0;border-radius:9px;overflow:hidden}.bar i{display:block;height:100%;background:linear-gradient(90deg,#28634b,#c8753b)}[hidden]{display:none!important}#toast{position:fixed;bottom:20px;left:20px;background:#17251f;color:white;padding:10px 15px;border-radius:10px;opacity:0;transition:.2s;z-index:9}#toast.show{opacity:1}@media(max-width:900px){.layout{grid-template-columns:230px 1fr}.top{gap:15px;flex-wrap:wrap}.brand{min-width:0}.top nav{flex:1}}@media(max-width:680px){.top{padding:10px 13px}.top nav{order:3;flex-basis:100%;overflow:auto;flex-wrap:nowrap}.top nav button{white-space:nowrap;padding:7px 10px}.layout{display:block}aside{position:static;height:auto;padding:12px;border:0;border-bottom:1px solid var(--line)}.unit{min-width:235px;border:1px solid var(--line);border-radius:10px;padding:5px}.unit h4{margin:3px}.layout aside #units{display:flex;gap:8px;overflow:auto}.tip{display:none}main{padding:18px 12px 45px}.grid,.outcomes,.metrics{grid-template-columns:1fr}.hero{padding:20px}.hero h1{font-size:25px}.head{display:block}.card{padding:16px}}
/* Lesson depth additions */
.teacher-card{border-color:rgba(79,125,255,.28);background:linear-gradient(145deg,rgba(79,125,255,.06),#ffffff)}
.teach-step{display:grid;grid-template-columns:34px 1fr;gap:12px;padding:16px 0;border-bottom:1px solid var(--line)}
.teach-step:last-child{border-bottom:0}.step-number{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#28634b;color:white;font-weight:800}.teach-step h3,.term-row h3{margin:0 0 7px;font-size:1.05rem}.teach-step p,.term-row p{margin:0;line-height:1.9}.term-row{padding:14px 0;border-bottom:1px solid var(--line)}.term-row:last-child{border-bottom:0}.mistakes{padding-right:22px;line-height:2.05}.mistakes li{padding:4px 0}.recap-card{background:rgba(16,185,129,.055)}.recap-card ul{padding-right:22px;line-height:2}.recap-card p{line-height:1.9}

/* Diagnostic placement test: calm, encouraging and readable */
.diagnostic-intro{background:linear-gradient(135deg,#fff 0%,#f2f5ff 100%);border-color:#dce3ff;padding:clamp(20px,4vw,34px)}
.diagnostic-intro h2{font-size:clamp(22px,3vw,30px);margin-top:12px}
.diagnostic-meta{display:flex;gap:9px;flex-wrap:wrap;margin:20px 0 8px}
.diagnostic-meta span,.diag-clock,.diag-count{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:10px;background:#f0f3fa;color:#4e5b72;font-size:12px;font-weight:800}
.diagnostic-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}
.diagnostic-top h2{margin:8px 0;font-size:22px}
.diag-head-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.diag-clock{background:#fff4dc;color:#87570a;font-variant-numeric:tabular-nums;font-size:14px}
.diag-progress{margin:12px 0 18px;height:8px}
.diag-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:18px;padding-top:15px;border-top:1px solid var(--line)}
.unit-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.unit-result{background:#fff;border:1px solid var(--line);border-radius:15px;padding:16px;min-width:0}
.unit-result-head{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-bottom:10px}
.unit-result-head p{margin:2px 0}.unit-result-head strong{font-size:21px;color:var(--blue)}
.unit-result ul{padding-right:20px}.unit-result li{margin:12px 0;line-height:1.9}
.result-hero{background:linear-gradient(135deg,#fff,#f0f4ff);border-color:#dce3ff}
.result-hero h1{font-size:clamp(38px,6vw,56px);margin:8px 0;color:var(--blue);line-height:1.3}
.result-hero h2{font-size:clamp(20px,3vw,27px)}
.result-hero .bar{height:10px;margin:18px 0}
.option{cursor:pointer;line-height:1.8}
.option:focus-visible,.btn:focus-visible,button:focus-visible{outline:3px solid #9aa8ff;outline-offset:2px}
button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:680px){.unit-results{grid-template-columns:1fr}.diagnostic-top{align-items:flex-start}.diag-controls .muted{order:3;flex-basis:100%}.diagnostic-meta span{flex:1}.unit-result{padding:14px}}
.home-progress{max-width:560px;margin-top:18px}.home-progress>div:first-child{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px;color:#e7ebff}.home-progress .bar{height:8px;background:#ffffff24}.home-progress .bar i{background:#8fe4bd}.mission-card{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#fff;border:1px solid #dce3ff;border-radius:17px;padding:20px 22px;margin-bottom:22px;box-shadow:0 5px 20px #202b2708}.mission-card h3{margin:8px 0 4px;font-size:20px}.mission-card p{margin:0;color:var(--muted)}.mission-card .btn{flex-shrink:0}.top nav button{white-space:nowrap}@media(max-width:680px){.mission-card{align-items:stretch;flex-direction:column;padding:17px}.mission-card .btn{width:100%;margin:8px 0 0}.home-progress{max-width:none}}

/* Guided worked example interaction */
#guidedSteps p{background:#f7f8fd;border:1px solid var(--line);padding:12px 14px;border-radius:10px;line-height:1.9;margin:9px 0;animation:stepIn .22s ease-out}
@keyframes stepIn{from{opacity:.25;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
#revealStep{min-width:180px}

.source-tag{background:rgba(30,120,95,.10);color:var(--accent,#157a61);border:1px solid rgba(30,120,95,.18);margin-inline-start:6px}

/* Editorial green + warm paper palette: intentionally avoids the default AI-purple look. */
body{background:#f5f4ef}
.top{background:#17251f;border-bottom:3px solid #c8753b}
.brand>b{background:#c8753b;color:#fff}
.hero{background:linear-gradient(118deg,#17251f 0%,#28533c 68%,#3b7654 100%);position:relative;overflow:hidden}
.hero:after{content:"";position:absolute;left:-35px;bottom:-95px;width:240px;height:240px;border:1px solid #ffffff25;border-radius:50%;box-shadow:0 0 0 24px #ffffff08,0 0 0 50px #ffffff05;pointer-events:none}
.tag{background:#eaf2eb;color:#28634b}
.btn{background:#28634b;transition:transform .15s,background .15s}
.btn:hover{background:#1f503a;transform:translateY(-1px)}
.btn.secondary{background:#eaf2eb;color:#24553f}
.btn.ghost{background:#f0eee6;color:#59655d}
.card,.unitcard,.qcard,.metric{box-shadow:0 5px 18px #24382a08;border-color:#e3e7df}
.unitcard:hover{border-color:#8eb39a}
.kicker,.unitcard small{color:#28634b}
.callout{background:#edf4ed;border-color:#28634b}
.callout.gold{background:#fff3e4;border-color:#c8753b}
.option:hover,.option.sel{background:#eaf2eb;border-color:#8db49a}
.option.good{background:#eff8f0;border-color:#54a779}
.essay-card{border-top:4px solid #c8753b;background:linear-gradient(180deg,#fffdf8,#fff)}
.essay-card .kicker{color:#a65d2d}
.essay-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.model-answer{background:#f4f7f0;border:1px solid #dce7d8;border-radius:12px;padding:16px;margin-top:14px;white-space:normal}
.model-answer p{line-height:2.05}
.model-answer li{margin:4px 0}
#essayText{min-height:130px;background:#fffefa}
.source-tag{background:#fff0df;color:#995724}
@media(max-width:680px){.hero:after{opacity:.45}.essay-actions .btn{flex:1}}

/* V1.7 brand system: deep forest, warm paper, copper details, no AI-purple gradients. */
:root{--ink:#202b27;--muted:#68756d;--line:#e3e7df;--blue:#285b43;--pale:#eaf2eb;--navy:#17251f;--green:#2d7855}
body{background:#f6f4ed;color:#202b27;letter-spacing:0}
.top{gap:20px;box-shadow:0 4px 20px #12251a16}
.top nav{flex:1}
.top nav button{color:#d5dfd8}
.contact-chip{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;text-decoration:none;color:#17251f;background:#f1d6b9;border-radius:999px;padding:8px 13px;font-size:12px;font-weight:900;transition:.18s}
.contact-chip:hover{background:#fff0dc;transform:translateY(-1px)}
.brand>b{font-size:23px;box-shadow:inset 0 0 0 1px #ffffff33}
.hero{padding:clamp(25px,4vw,42px);border:1px solid #3c6a50;box-shadow:0 14px 40px #17251f18}
.hero h1{max-width:780px;letter-spacing:-.4px}
.hero p{font-size:15px;line-height:2.05}
.card,.unitcard,.qcard,.metric{border-radius:18px;box-shadow:0 8px 26px #17251f08}
.card{padding:clamp(17px,2.2vw,25px)}
.card h2{letter-spacing:-.2px}
.kicker{letter-spacing:.1px}
.lesson.active{box-shadow:inset -3px 0 #c8753b}
.unitcard{position:relative;overflow:hidden}
.unitcard:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,#c8753b,#e5c7a5);opacity:.8}
.activity-card{border:1px solid #d8e3d7;background:linear-gradient(145deg,#fffefa,#f4f7f0);border-top:4px solid #285b43}
.activity-heading{display:flex;align-items:center;gap:12px;margin-bottom:8px}
.activity-heading h2{margin:2px 0 0}
.activity-icon{display:grid;place-items:center;flex:0 0 44px;height:44px;border-radius:14px;background:#e6efe5;color:#285b43;font-size:24px}
.activity-steps{display:grid;gap:9px;margin:16px 0}
.activity-step{display:flex;align-items:flex-start;gap:12px;background:#fff;border:1px solid #e3e9df;padding:12px 14px;border-radius:13px;cursor:pointer;transition:.15s}
.activity-step:has(input:checked){background:#edf5ec;border-color:#a8c4a8}
.activity-step input{width:18px;height:18px;accent-color:#285b43;margin-top:5px;flex-shrink:0}
.activity-step span{display:grid;gap:2px}
.activity-step b{font-size:11px;color:#a65d2d}
.deliverable{background:#fff0df;border-right:3px solid #c8753b;padding:12px 15px;border-radius:12px;margin:14px 0}
.deliverable p{margin:4px 0 0}
.activity-label{display:block;font-weight:900;margin:14px 0 7px}
#activityText{width:100%;border:1px solid #d7dfd5;border-radius:12px;padding:12px;background:#fffefa;font:inherit;line-height:1.9;resize:vertical}
.activity-bottom{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:7px}
.rubric{margin-top:14px;padding-top:12px;border-top:1px solid #e3e7df}
.rubric summary{font-weight:900;color:#285b43;cursor:pointer}
.rubric li{margin:5px 0}
.site-footer{display:grid;grid-template-columns:1fr auto;gap:10px 24px;align-items:center;background:#17251f;color:#eef3ee;padding:28px max(22px,calc((100% - 1240px)/2));border-top:4px solid #c8753b}
.site-footer p{margin:4px 0;color:#c3cec7;font-weight:500;font-size:12px}.site-footer .creator-credit{letter-spacing:.1px}
.site-footer small{color:#b9c7bf}
.site-footer a{display:grid;gap:3px;text-decoration:none;color:#17251f;background:#f1d6b9;border-radius:14px;padding:12px 17px;font-weight:900}
.site-footer a b{font-size:17px;direction:ltr;text-align:right}
.site-footer .footer-note{grid-column:1/-1;border-top:1px solid #ffffff20;padding-top:12px}
.wa-float{position:fixed;bottom:18px;left:18px;z-index:8;display:flex;align-items:center;gap:8px;text-decoration:none;background:#285b43;color:white;padding:12px 16px;border:1px solid #ffffff40;border-radius:999px;box-shadow:0 8px 24px #17251f30;font-weight:900}
.wa-float span{background:#f1d6b9;color:#17251f;border-radius:50%;width:24px;height:24px;display:grid;place-items:center}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #c8753b;outline-offset:3px}
@media(max-width:900px){.contact-chip{font-size:11px;padding:7px 10px}}
@media(max-width:680px){.top{gap:8px}.contact-chip{order:2;margin-right:auto}.site-footer{grid-template-columns:1fr;padding:24px 16px}.site-footer .footer-note{grid-column:auto}.site-footer a{justify-self:start}.wa-float{bottom:12px;left:12px;padding:10px 13px}.hero h1{font-size:27px}}

.source-note{font-size:11px;color:#68756d;border-top:1px solid #e5e9df;padding-top:10px;margin-top:14px}
.review-notice{margin-top:1rem;border-inline-start:4px solid var(--copper,#b87945);background:rgba(184,121,69,.08)}.review-notice p{margin:.45rem 0;color:var(--muted,#59665f);line-height:1.8}.review-notice small{display:block;margin-top:.4rem;font-weight:700;color:var(--ink,#17251f)}


/* V1.9 — cleaner typography, course drawer, game-like lesson path and polished final answers */
:root{--ink:#202b27;--muted:#68756d;--line:#e3e7df;--blue:#285b43;--pale:#eaf2eb;--navy:#17251f;--green:#2d7855;--copper:#c8753b;--paper:#f7f5ef}
body{font-family:'IBM Plex Sans Arabic','Noto Sans Arabic',Tahoma,sans-serif;font-size:15px;line-height:1.85;background:var(--paper)}
button,input,textarea,select{font-family:inherit}
.top{gap:12px;padding:11px clamp(12px,2.2vw,30px)}
.brand{min-width:auto;flex-shrink:0}.brand>b{border-radius:12px}
.top nav{justify-content:center;gap:4px}.top nav button{padding:8px 12px;font-size:13px}
.map-toggle{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;border:1px solid #ffffff30;background:#ffffff10;color:#fff;border-radius:12px;padding:9px 13px;font:inherit;font-weight:700;cursor:pointer}
.map-toggle:hover{background:#ffffff20}
.layout{display:block;max-width:1320px;min-height:calc(100vh - 70px)}
.course-drawer{position:fixed!important;z-index:12;top:0;right:0;width:min(390px,92vw);height:100dvh!important;overflow-y:auto;background:#fff;padding:20px 17px!important;border:0!important;border-left:1px solid var(--line)!important;box-shadow:-18px 0 55px #14261d1a;transform:translateX(110%);visibility:hidden;transition:transform .25s ease,visibility .25s;top:0!important}
.course-drawer.open{transform:translateX(0);visibility:visible}
.drawer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.drawer-head h3{margin:0}.drawer-close{width:38px;height:38px;border:0;border-radius:12px;background:#f3f1e9;color:var(--ink);font-size:26px;cursor:pointer}
.drawer-backdrop{position:fixed;inset:0;z-index:11;background:#101b16a6;backdrop-filter:blur(2px)}
body.drawer-open{overflow:hidden}
main{max-width:1150px;padding-top:30px}
.hero h1,.head h1{font-weight:700;letter-spacing:-.5px}
.card,.qcard,.unitcard{border-radius:20px}
.game-intro{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:22px 0 12px;padding:20px 22px;border:1px solid #d7e4d6;border-radius:20px;background:linear-gradient(120deg,#fffefa,#edf4e9)}
.game-intro h2{font-size:22px;margin:3px 0 5px}.game-intro p{margin:0;color:var(--muted)}
.game-score{display:grid;place-items:center;flex:0 0 92px;width:92px;height:92px;border-radius:26px;background:#17251f;color:#f6d9ba;box-shadow:inset 0 0 0 5px #ffffff10}
.game-score strong{font-size:29px;line-height:1.2}.game-score span{font-size:11px;color:#fff}
.game-progress{padding:0 4px;margin:12px 0 17px}.game-progress>div:first-child{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px;font-size:12px;color:var(--muted)}.game-progress .bar{height:9px}.game-progress .bar i{background:linear-gradient(90deg,#2d7855,#c8753b);transition:width .25s}
.lesson-stage{overflow:hidden;margin:10px 0;border:1px solid #e0e5db;border-radius:17px;background:#fff;transition:border-color .18s,box-shadow .18s}.lesson-stage.stage-open{border-color:#9fbea4;box-shadow:0 8px 22px #1d39260b}.lesson-stage.stage-done{border-color:#bdd8c0;background:#fcfffb}
.stage-trigger{display:flex;align-items:center;gap:13px;width:100%;padding:15px 17px;border:0;background:transparent;color:var(--ink);text-align:right;cursor:pointer}
.stage-trigger:hover{background:#f7f8f1}.stage-number{display:grid;place-items:center;flex:0 0 42px;height:42px;border-radius:14px;background:#e7efe4;color:#285b43;font-size:14px;font-weight:800}.stage-done .stage-number{background:#285b43;color:#fff}.stage-heading{display:grid;gap:1px;flex:1;min-width:0}.stage-heading small{font-size:11px;color:#a65d2d;font-weight:700}.stage-heading b{font-size:16px}.stage-heading em{font-size:12px;color:var(--muted);font-style:normal}.stage-arrow{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#f4f2ea;color:#285b43;font-size:21px;flex-shrink:0}.stage-body{padding:0 22px 20px 72px;animation:stageEnter .2s ease-out}.stage-body>p{font-size:16px;line-height:2.05;margin:3px 0 14px}.stage-complete{margin-top:6px}.stage-complete:disabled{background:#e5efe4;color:#285b43;opacity:1}
@keyframes stageEnter{from{opacity:.2;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.final-answer-board{margin-top:18px;border:1px solid #e1d5c3;border-radius:18px;overflow:hidden;background:#fffdf8;box-shadow:0 8px 24px #3827190b}
.final-answer-top{display:flex;align-items:center;gap:12px;padding:17px 19px;background:#17251f;color:white;border-bottom:3px solid #c8753b}.final-answer-top>span:first-child{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#f1d6b9;color:#17251f;font-size:23px}.final-answer-top small{color:#e6c9a9;font-size:11px}.final-answer-top h3{margin:0;font-size:20px}.answer-stamp{margin-right:auto;border:1px solid #ffffff30;border-radius:30px;padding:4px 10px;color:#f1d6b9;font-size:11px}
.final-answer-content{padding:18px 20px 8px}.answer-paragraph{display:grid;grid-template-columns:30px minmax(0,1fr);gap:11px;align-items:start;margin:0 0 14px;line-height:2.1;font-size:15px}.answer-paragraph>span{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#f6e6d4;color:#965525;font-size:11px;font-weight:800;margin-top:3px}
.answer-checklist{margin:4px 20px 14px;padding:14px;border-radius:14px;background:#eef4ea;border:1px solid #dbe7d6}.answer-checklist>b{display:block;margin-bottom:9px;color:#285b43}.answer-checklist>div{display:flex;flex-wrap:wrap;gap:7px}.answer-checklist span{display:inline-flex;align-items:center;gap:5px;border:1px solid #d5e3d1;background:#fff;border-radius:30px;padding:5px 10px;font-size:12px;color:#285b43}.answer-footnote{display:block;padding:0 20px 17px;color:var(--muted);font-size:12px}
.essay-card h2{font-size:22px}.essay-card .practice{background:#faf9f3;border-color:#e6e0d4}.essay-actions .btn{border-radius:12px;padding:11px 15px}
#essayText,#tryText,#activityText{font-family:inherit;font-size:15px;line-height:2.05}
@media(max-width:1000px){.contact-chip{display:none}.top{flex-wrap:wrap}.top nav{order:5;flex-basis:100%;justify-content:flex-start;overflow:auto}.brand{margin-inline-end:auto}}
@media(max-width:680px){.map-toggle{font-size:12px;padding:8px 10px}.top nav{gap:3px}.top nav button{font-size:12px;padding:7px 10px}.game-intro{padding:15px;align-items:flex-start}.game-intro h2{font-size:19px}.game-score{flex-basis:72px;width:72px;height:72px;border-radius:21px}.game-score strong{font-size:24px}.game-score span{font-size:10px}.stage-trigger{padding:13px 12px;gap:10px}.stage-number{flex-basis:36px;height:36px;border-radius:12px}.stage-heading b{font-size:14px}.stage-body{padding:0 14px 17px}.stage-body>p{font-size:15px}.final-answer-top{padding:14px}.final-answer-content{padding:15px 13px 5px}.answer-checklist{margin:4px 13px 13px}.answer-footnote{padding:0 13px 15px}.answer-stamp{display:none}}

.reference-fold>summary{list-style:none;cursor:pointer;position:relative;padding-left:35px}.reference-fold>summary::-webkit-details-marker{display:none}.reference-fold>summary:after{content:'＋';position:absolute;left:0;top:18px;display:grid;place-items:center;width:29px;height:29px;border-radius:10px;background:#f1eee5;color:#285b43;font-size:20px}.reference-fold[open]>summary:after{content:'−'}.reference-fold>summary h2{margin:4px 0}.reference-fold>summary small{display:block;color:var(--muted);font-size:12px}.reference-fold-body{padding-top:12px}.teacher-card{background:#fffefa}.reference-fold summary:focus-visible{outline:3px solid #9fbea4;outline-offset:4px}

/* V1.10 — prominent lesson map, stronger readability, refined editorial palette */
:root{--ink:#182b24;--muted:#53665b;--line:#d9e2d8;--blue:#1f5a40;--pale:#e5f0e6;--navy:#10291f;--green:#287b52}
body{font-family:"IBM Plex Sans Arabic",Tahoma,sans-serif;font-size:16px;line-height:2;background:#f4f2e9;color:#182b24}
.top{background:#10291f;padding-block:14px;border-bottom:3px solid #c6814d}
.top nav button{font-size:14px;padding:10px 14px}
.brand strong{font-size:17px}.brand small{font-size:12px}
main{max-width:1320px;padding-top:34px}
.hero h1{font-size:clamp(28px,3.3vw,40px);line-height:1.45;font-weight:700}
.hero p,.card p,.unitcard p,.mission-card p{font-size:15.5px;line-height:2.05}
.head h1{font-size:clamp(25px,2.6vw,33px)}
.card h2{font-size:clamp(21px,2vw,26px)}
.tag{font-size:12px;padding:5px 12px}
.btn{font:inherit;font-weight:700;padding:11px 17px;border-radius:12px}
.option{font-size:15.5px;padding:12px 15px;border-radius:12px}
.lesson-map-feature{margin-top:30px;padding:clamp(17px,2.7vw,30px);border:1px solid #d7dfd3;border-radius:24px;background:linear-gradient(145deg,#fffefa,#f0f4ec);box-shadow:0 16px 38px #1737280c}
.lesson-map-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px;padding-bottom:20px;border-bottom:1px solid #dce4d8}
.lesson-map-head h2{margin:7px 0 3px;font-size:clamp(24px,2.6vw,32px);line-height:1.5}
.lesson-map-head p{margin:0;color:#53665b;font-size:15px}
.map-unit{padding:18px 0 22px;border-bottom:1px solid #dce4d8}
.map-unit:last-child{border-bottom:0;padding-bottom:0}
.map-unit-title{display:flex;align-items:center;gap:13px;margin-bottom:15px}
.map-unit-index{display:grid;place-items:center;flex:0 0 44px;height:44px;border-radius:14px;background:#173b2b;color:#f6dfc7;font-size:17px;font-weight:700;border:1px solid #315b43}
.map-unit-title h3{font-size:19px;margin:0;line-height:1.5}.map-unit-title p{font-size:13px;color:#637267;margin:2px 0 0;line-height:1.6}
.map-unit-count{margin-inline-start:auto;white-space:nowrap;background:#e7eee4;color:#315640;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:700}
.lesson-map-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.map-lesson{position:relative;min-width:0;padding:17px 17px 15px;background:#fff;border:1px solid #dfe6db;border-radius:16px;transition:transform .18s,border-color .18s,box-shadow .18s}
.map-lesson:hover{transform:translateY(-2px);border-color:#8eae94;box-shadow:0 9px 22px #17372810}
.map-lesson.is-done{background:#f1f7ef;border-color:#a9c9ab}
.map-lesson-num{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#e8efe5;color:#275a3e;font-weight:800;font-size:12px}
.map-lesson h4{font-size:16px;line-height:1.8;margin:10px 0 3px;color:#1a3327}
.map-lesson p{font-size:12px;color:#637267;margin:0 0 12px}
.map-lesson-actions{display:flex;gap:8px;flex-wrap:wrap}.map-lesson-actions .btn{margin:0;padding:8px 12px;font-size:13px}.map-lesson-actions .btn.secondary{background:#f1e5d7;color:#784a2b}
.bank-context{background:#e8f0e5;border:1px solid #d1e0ce;border-right:4px solid #2b6747;color:#264b35;border-radius:12px;padding:12px 15px;font-weight:700;margin:12px 0 18px}
.lesson-bank-cta{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#f6f0e5;border-color:#e6d3bd;border-right:4px solid #b87543}
.lesson-bank-cta h2{margin:4px 0}.lesson-bank-cta p{margin:0;color:#5b665d}
.map-toggle{font:inherit;font-size:13px;font-weight:800}
@media(max-width:700px){body{font-size:15.5px}.lesson-map-head{align-items:stretch;flex-direction:column}.lesson-map-head .btn{width:100%;margin:0}.lesson-map-grid{grid-template-columns:1fr}.map-unit-title{align-items:flex-start}.map-unit-count{font-size:11px;padding:4px 8px}.map-unit-title h3{font-size:17px}.map-lesson h4{font-size:15.5px}.lesson-bank-cta{align-items:stretch;flex-direction:column}.lesson-bank-cta .btn{width:100%;margin:0}}

/* V1.12 — refined editorial storefront-like learning UI and durable student progress tools */
:root{--ink:#172920;--muted:#56685e;--line:#dbe2d7;--paper:#f5f3eb;--green:#245b40;--copper:#b97845;--navy:#10271d}
body{background:radial-gradient(ellipse at 85% 0%,#e8eee3 0,transparent 38%),#f5f3eb;color:var(--ink);font-family:"IBM Plex Sans Arabic",Tahoma,sans-serif;letter-spacing:0}
.top{box-shadow:0 5px 24px #10271d18;border-bottom:1px solid #ffffff1f}
main{max-width:1360px}
.card,.qcard,.unitcard,.metric{box-shadow:0 7px 25px #183a2708;border-color:#dce3d8;transition:box-shadow .18s,border-color .18s,transform .18s}
.card:hover,.qcard:hover,.unitcard:hover{box-shadow:0 12px 32px #183a2710;border-color:#c5d4c5}
.hero{border-radius:26px;background:linear-gradient(118deg,#10271d 0%,#1c4932 62%,#2b6546 100%);box-shadow:0 18px 48px #173c281c;padding:clamp(26px,4vw,46px)}
.hero h1{font-size:clamp(30px,3.7vw,46px);line-height:1.42;max-width:850px}
.hero p{font-size:16px;max-width:760px}
.lesson-map-feature{background:linear-gradient(145deg,#fffef9,#eef2e9);border-color:#d3ddcf;box-shadow:0 18px 45px #183a270a}
.map-lesson{background:#fffefb;border:1px solid #e0e6dd;box-shadow:0 5px 17px #173c2807;transition:transform .18s,box-shadow .18s,border-color .18s}
.map-lesson:hover{transform:translateY(-3px);border-color:#b8cdb9;box-shadow:0 12px 28px #173c2810}
.map-lesson h4{font-size:16px;line-height:1.7}
.map-lesson-actions{gap:8px}
.btn{border-radius:12px;background:#245b40;box-shadow:0 3px 8px #1a4a3210;transition:transform .15s,filter .15s,box-shadow .15s}
.btn:hover{filter:brightness(1.06);transform:translateY(-1px);box-shadow:0 6px 15px #1a4a3217}
.btn.secondary{background:#e9f0e7;color:#245b40;border:1px solid #d5e2d2;box-shadow:none}
.btn.ghost{background:#f0eee5;color:#48594f;border:1px solid #e1dfd4;box-shadow:none}
.option{border-radius:13px;border-color:#dce4d9;padding:13px 15px;background:#fffefa;transition:background .15s,border-color .15s,transform .15s}
.option:hover{transform:translateX(-2px);border-color:#9ebaa3;background:#f6f8f2}
.option.good{background:#e9f5e9;border-color:#6ca47a;color:#1e5736}
.option.bad{background:#fff0e7;border-color:#cf906a;color:#813f26}
.qcard{padding:clamp(18px,2.2vw,26px);border-radius:20px;background:#fffefa}
.qcard h3{font-size:17px;line-height:1.9}
.filters input,.filters select{border-color:#d5dfd3;background:#fffefa;border-radius:12px;min-height:44px}
.backup-card{background:linear-gradient(145deg,#fffefa,#f0f4ec);border-color:#d4e0d1}
.backup-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.save-status{display:inline-flex;align-items:center;gap:7px;border:1px solid #cddfca;background:#e9f3e6;color:#245b40;border-radius:999px;padding:5px 11px;font-size:12px;font-weight:700}
.save-status:before{content:"";width:7px;height:7px;border-radius:50%;background:#2f8754}
#saveStatus{font-size:12px}
.site-footer{margin-top:30px}
:focus-visible{outline:3px solid #c8753b!important;outline-offset:3px}
@media(max-width:680px){.hero{border-radius:20px}.hero h1{font-size:28px}.backup-actions{display:grid;grid-template-columns:1fr}.backup-actions .btn{width:100%;margin:0}.qcard h3{font-size:16px}}
.exam-history-item{border:1px solid #dce4d9;border-radius:13px;padding:12px 14px;margin:10px 0;background:#fffefa}.exam-history-item summary{cursor:pointer;line-height:1.9}.exam-history-item summary small{display:block;color:var(--muted);font-size:12px}.exam-history-item>div{padding-top:8px}.exam-history-item>div p{padding:10px 0;border-top:1px solid #e8ece4;margin:0}

/* V1.13 — account and cloud-sync experience */
.account-chip{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;border:1px solid #ffffff38;background:#245b40;color:#fff;border-radius:999px;padding:9px 14px;font:inherit;font-size:13px;font-weight:800;cursor:pointer;transition:background .18s,transform .18s}
.account-chip:hover{background:#317451;transform:translateY(-1px)}
.account-card{border-color:#d5e2d5;background:linear-gradient(145deg,#fffefa,#f1f5ed);box-shadow:0 12px 30px #10271d0a}
.account-heading{display:flex;align-items:center;gap:13px;margin-bottom:14px;min-width:0}
.account-heading h2{margin:2px 0!important;font-size:21px!important}
.account-heading p{margin:0;color:var(--muted);overflow-wrap:anywhere}
.account-icon{display:grid;place-items:center;flex:0 0 48px;height:48px;border-radius:15px;background:#e3efe3;color:#245b40;font-size:25px;font-weight:900}
.account-state{margin-inline-start:auto;white-space:nowrap;border-radius:999px;background:#e4f3e8;color:#1d6841;padding:5px 10px;font-size:12px;font-weight:900}
.account-tabs{display:flex;gap:6px;padding:5px;background:#eaece4;border-radius:13px;margin:16px 0}
.account-tabs button{flex:1;border:0;border-radius:9px;background:transparent;padding:10px;color:#53665b;font:inherit;font-weight:800;cursor:pointer}
.account-tabs button.active{background:#fff;color:#1f5a40;box-shadow:0 2px 9px #10271d12}
.account-form{display:grid;gap:13px}
.account-form label{display:grid;gap:6px;font-weight:800;font-size:13px}
.account-form input{width:100%;min-height:47px;border:1px solid #d4ded2;border-radius:12px;padding:10px 13px;background:#fff;color:var(--ink);font:inherit;outline:none}
.account-form input:focus{border-color:#42815b;box-shadow:0 0 0 3px #42815b20}
.account-form .btn{width:100%;margin:3px 0 0}
.account-error{min-height:0;margin:0;color:#a62f2f;font-weight:700;font-size:13px}
.account-note{margin-top:14px;font-size:12px;line-height:1.8}
.cloud-status{margin:10px 0;padding:11px 13px;border-radius:11px;background:#e8f1e6;color:#245b40;font-weight:800;font-size:13px;overflow-wrap:anywhere}
.account-actions{display:flex;gap:9px;flex-wrap:wrap}
.account-actions .btn{margin:0}
@media(max-width:1000px){.account-chip{order:3;margin-inline-start:0}}
@media(max-width:680px){.account-chip{padding:7px 10px;font-size:12px}.account-heading{align-items:flex-start}.account-icon{flex-basis:42px;height:42px;border-radius:13px}.account-heading h2{font-size:18px!important}.account-state{font-size:10px;padding:4px 7px}.account-actions{display:grid;grid-template-columns:1fr 1fr}.account-actions .btn{width:100%;margin:0}}

/* V1.15 — polished student dashboard: clean commerce-inspired hierarchy */
:root{--ink:#17211d;--muted:#68766f;--line:#e2e8e3;--blue:#008060;--pale:#e8f5ef;--navy:#10231c;--green:#008060}
body{background:#f6f8f6;color:var(--ink);font-family:"IBM Plex Sans Arabic",Tahoma,sans-serif;font-size:15px;line-height:1.85}
.top{background:#10231c;box-shadow:0 2px 10px #10231c12}
.brand>b{background:#008060;border-radius:12px}
.top nav button{color:#cbd8d1}.top nav button.active,.top nav button:hover{background:#ffffff18;color:#fff}
.btn{background:#008060;border-radius:9px;padding:11px 17px;transition:background .16s,transform .16s;cursor:pointer}.btn:hover{background:#006e52;transform:translateY(-1px)}.btn.secondary{background:#e7f4ee;color:#006e52}.btn.secondary:hover{background:#d8eee4}.btn.ghost{background:#f2f4f2;color:#526159}
.card,.unitcard,.qcard{border-color:#e4e9e5;box-shadow:0 2px 8px #17211d06;border-radius:16px}
#progress{max-width:980px;margin:0 auto}
.progress-welcome{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:25px 28px;margin-bottom:17px;border-radius:18px;background:linear-gradient(115deg,#10231c,#164b39);color:#fff;overflow:hidden;position:relative}
.progress-welcome h1{font-size:clamp(26px,4vw,35px);line-height:1.35;margin:5px 0 7px;letter-spacing:-.5px}.progress-welcome p{color:#d0e1d8;margin:0}.progress-eyebrow{font-size:12px;font-weight:800;color:#9de0c2;letter-spacing:.2px}.progress-mark{font-size:64px;line-height:1;color:#b7ead2;opacity:.9;padding:0 12px}
.account-card{padding:22px 24px;margin-bottom:17px;background:#fff;border:1px solid #e1e9e3;border-radius:16px;box-shadow:0 2px 8px #17211d05}.account-heading{gap:14px}.account-icon{background:#e6f5ed;color:#008060;border-radius:12px}.account-heading h2{font-size:19px;margin:1px 0 2px}.account-heading p{font-size:13px;color:#69766f;margin:0}.account-state{background:#e5f5ec;color:#007653;border-radius:30px;padding:4px 10px;font-size:11px;font-weight:800}.account-tabs{background:#f2f5f3;border-radius:10px;padding:4px;gap:4px}.account-tabs button{border-radius:8px}.account-tabs button.active{background:white;color:#007653;box-shadow:0 1px 4px #17211d14}.account-form{max-width:600px;gap:11px}.account-form label{font-weight:700;font-size:13px}.account-form input{border:1px solid #dce5de;border-radius:9px;min-height:45px;padding:10px 12px;font:inherit}.account-form input:focus{outline:3px solid #00806022;border-color:#008060}.account-form>button{width:100%;margin:3px 0 0}.account-note{font-size:12px;margin-top:9px}
.progress-overview,.progress-lessons{background:#fff;border:1px solid #e3e9e4;border-radius:16px;padding:22px 24px;margin-bottom:16px;box-shadow:0 2px 8px #17211d05}.progress-overview-head,.section-title{display:flex;align-items:center;justify-content:space-between;gap:15px}.progress-overview h2,.section-title h2{margin:3px 0 0;font-size:20px}.progress-percent{font-size:25px;font-weight:800;color:#008060}.progress-track{height:8px;border-radius:99px;background:#edf1ee;overflow:hidden;margin:17px 0 20px}.progress-track i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#008060,#36ad82);transition:width .25s}.progress-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.progress-stat{display:flex;align-items:center;gap:11px;min-width:0;padding:13px;background:#f8faf8;border:1px solid #edf1ed;border-radius:12px}.stat-icon{width:37px;height:37px;display:grid;place-items:center;border-radius:10px;background:#e5f4ec;color:#007d5d;font-size:18px;flex:0 0 auto}.progress-stat strong{display:block;font-size:22px;line-height:1.35;font-variant-numeric:tabular-nums}.progress-stat strong small{font-size:13px;color:#8a958f;font-weight:600}.progress-stat div>span{display:block;color:#69766f;font-size:12px}.count-pill{border-radius:8px;background:#f0f5f1;color:#52685c;padding:5px 10px;font-size:12px;font-weight:800}.completed-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:15px}.completed-item{display:flex;align-items:flex-start;gap:9px;padding:12px;border-radius:10px;background:#f8faf8;border:1px solid #edf1ed;font-size:13px;font-weight:600}.completed-check{width:21px;height:21px;display:grid;place-items:center;border-radius:50%;background:#dff3e8;color:#007d5d;flex:0 0 auto;font-size:12px}.empty-progress{display:flex;align-items:center;gap:14px;margin-top:14px;padding:15px;background:#f8faf8;border:1px dashed #dce5de;border-radius:12px}.empty-icon{display:grid;place-items:center;flex:0 0 40px;height:40px;background:#e5f4ec;color:#008060;border-radius:12px;font-size:22px}.empty-progress b{font-size:14px}.empty-progress p{margin:1px 0 0;color:#69766f;font-size:12px}.empty-progress .btn{margin-right:auto;white-space:nowrap}.diagnostic-summary{display:flex;align-items:center;justify-content:space-between;gap:15px}.diagnostic-summary p{margin:4px 0;color:var(--muted);font-size:13px}
.secondary-panel{background:#fff;border:1px solid #e3e9e4;border-radius:14px;margin:0 0 14px;overflow:hidden}.secondary-panel>summary{display:flex;align-items:center;justify-content:space-between;gap:15px;list-style:none;cursor:pointer;padding:17px 20px}.secondary-panel>summary::-webkit-details-marker{display:none}.secondary-panel>summary span:first-child{display:grid}.secondary-panel>summary b{font-size:14px}.secondary-panel>summary small{font-size:12px;color:#748078;margin-top:2px}.summary-arrow{font-size:21px;color:#64756a;transition:transform .15s}.secondary-panel[open] .summary-arrow{transform:rotate(180deg)}.secondary-panel-content{padding:0 20px 20px;border-top:1px solid #edf1ed}.secondary-panel-content>.muted{margin:14px 0;font-size:12px}.backup-actions{display:flex;gap:8px;flex-wrap:wrap}.backup-actions .btn{margin:0}.save-status{font-size:12px;color:#65766b;margin:10px 0}.danger-zone{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid #f0e7e4;padding-top:16px;margin-top:17px}.danger-zone b{font-size:13px}.danger-zone p{font-size:12px;color:#7a817d;margin:2px 0 0}.danger-btn{background:#fff0ed;color:#a33b2d;border:1px solid #f3d8d2;margin:0}.danger-btn:hover{background:#ffe2dc;color:#8c2e22}.exam-history-item{padding:12px 0;border-bottom:1px solid #edf1ed}.exam-history-item:last-child{border-bottom:0}.exam-history-item>summary{cursor:pointer;font-size:13px}.exam-history-item p{font-size:13px;background:#f8faf8;padding:10px;border-radius:8px}
@media(max-width:680px){body{font-size:14px}.progress-welcome{padding:21px 19px;border-radius:15px}.progress-mark{font-size:44px;padding:0}.account-card,.progress-overview,.progress-lessons{padding:17px 15px}.progress-stats{grid-template-columns:1fr;gap:8px}.progress-stat{padding:10px 12px}.progress-stat strong{font-size:20px}.completed-list{grid-template-columns:1fr}.empty-progress{align-items:flex-start;flex-wrap:wrap}.empty-progress .btn{margin-right:0}.diagnostic-summary{align-items:flex-start;flex-wrap:wrap}.secondary-panel>summary{padding:15px}.secondary-panel-content{padding:0 14px 16px}.danger-zone{align-items:flex-start;flex-wrap:wrap}.danger-zone .btn{margin-right:auto}}
