:root{--ink:#183a36;--muted:#61716a;--green:#16594c;--lime:#dceb95;--paper:#f5f6f0;--line:#e1e7dd;--white:#fff;--orange:#f2d4b5;--radius:20px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-size:15px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}button:disabled{cursor:wait;opacity:.6}button:focus-visible,a:focus-visible{outline:3px solid #a9c755;outline-offset:3px}input,select,textarea{width:100%;border:1px solid var(--input-line);border-radius:10px;padding:12px;background:var(--white);color:var(--ink)}textarea{min-height:110px;resize:vertical}input:focus,select:focus,textarea:focus{outline:2px solid #96b8a2;outline-offset:1px}label{display:block;font-size:.85rem;font-weight:600;margin-bottom:15px}label input,label select,label textarea{margin-top:7px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(2rem,3.8vw,3.2rem);letter-spacing:-1.7px;line-height:1.12;font-weight:650}h2{font-size:1.35rem;letter-spacing:-.5px}h3{font-size:1.05rem}p{line-height:1.65}small,.muted{color:var(--muted)}.eyebrow{font-size:.72rem;letter-spacing:1.9px;text-transform:uppercase;font-weight:750;color:var(--muted);margin-bottom:16px}.btn{border:0;background:var(--green);color:var(--button-ink);border-radius:10px;min-height:44px;padding:11px 18px;font-weight:600;display:inline-flex;gap:8px;align-items:center;justify-content:center}.btn:hover{background:var(--button-hover);text-decoration:none}.btn.secondary{color:var(--ink);background:var(--soft)}.btn.lime{background:var(--lime);color:var(--lime-ink)}.btn.danger{background:#a43e34}.btn.small{min-height:34px;padding:7px 12px;font-size:.8rem}.textbtn{border:0;background:transparent;color:var(--green);font-weight:650;padding:8px}.flex{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.between{justify-content:space-between}.stack{display:grid;gap:20px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.full{grid-column:1/-1}.card{border:1px solid var(--line);border-radius:var(--radius);padding:25px;background:var(--white)}.card h3{margin-bottom:10px}.card p:last-child{margin-bottom:0}.pill{display:inline-flex;border-radius:30px;background:var(--soft);padding:5px 10px;font-size:.7rem;font-weight:650;line-height:1.35;white-space:nowrap}.pill.sample{background:var(--warning-bg);color:var(--warning-ink)}.pill.green{background:var(--success-bg);color:var(--success-ink)}.pill.red{background:var(--danger-bg);color:var(--danger-ink)}.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.brand{display:flex;align-items:center;gap:10px;font-weight:750;letter-spacing:-.5px;font-size:1.25rem}.brandmark{width:38px;height:40px;display:grid;place-items:center;background:var(--green);color:var(--lime);border-radius:11px;font-family:Georgia,serif;font-size:27px;font-style:italic}.sidebar{position:fixed;inset-block:0;inset-inline-start:0;width:236px;background:var(--sidebar);border-inline-end:1px solid var(--line);display:flex;flex-direction:column;padding:30px 18px;z-index:10}.sidebar .brand{padding:0 12px;margin-bottom:45px}.nav-label{padding:0 15px;margin:8px 0 13px;font-size:.65rem;color:var(--muted);letter-spacing:1.6px;text-transform:uppercase}.nav-item{display:flex;align-items:center;gap:13px;padding:13px 15px;border-radius:10px;color:var(--muted);margin-bottom:5px;font-size:.88rem;font-weight:550}.nav-item:hover{background:var(--soft);text-decoration:none}.nav-item.active{background:var(--green);color:var(--button-ink)}.sidebar-bottom{margin-top:auto}.side-note{background:var(--soft);border:1px solid var(--line);border-radius:14px;padding:18px;margin:25px 5px 15px}.side-note p{font-size:.78rem;margin-bottom:10px}.shell{margin-inline-start:236px}.topbar{height:85px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 42px;background:var(--sidebar)}.topbar .crumb{font-size:.82rem;color:var(--muted)}.account{display:flex;align-items:center;gap:10px;color:var(--ink);font-size:.85rem}.avatar{width:37px;height:37px;background:var(--avatar-bg);border-radius:50%;display:grid;place-items:center;font-weight:700;color:var(--avatar-ink)}.content{max-width:1390px;margin:0 auto;padding:36px 42px 60px}.pagehead{margin-bottom:28px}.pagehead h1{font-size:2rem;margin-bottom:10px}.pagehead p{color:var(--muted);margin-bottom:0}.hero{position:relative;overflow:hidden;background:var(--hero);color:#fff;border-radius:23px;padding:34px 38px;min-height:260px;display:flex;align-items:center;margin-bottom:24px}.hero-copy{position:relative;z-index:1;max-width:65%}.hero .eyebrow{color:#b9cfb5}.hero h1{font-size:2.5rem;max-width:500px;margin-bottom:17px}.hero p{color:#d1ded2;max-width:470px;font-size:.88rem}.hero-art{position:absolute;right:20px;bottom:0;width:31%;height:100%;opacity:.9}.hero-art .circle{position:absolute;width:210px;height:210px;border:1px solid #5a8972;border-radius:50%;right:0;top:22px}.hero-art .circle.two{right:30px;top:50px}.book{position:absolute;background:var(--lime);color:var(--lime-ink);border-radius:7px 14px 14px 7px;right:42px;top:64px;width:135px;height:168px;transform:rotate(13deg);padding:18px;border-left:8px solid #b2ca76;box-shadow:10px 10px 0 #123e35}.book strong{font-family:Georgia,serif;font-size:38px;display:block;line-height:1.05;margin-top:22px}.book small{color:var(--lime-ink);font-size:9px;letter-spacing:2px}.star{position:absolute;right:198px;top:37px;color:var(--lime);font-size:48px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:29px}.stat{background:var(--white);border:1px solid var(--line);border-radius:16px;padding:19px 20px}.stat .label{color:var(--muted);font-size:.76rem}.stat .num{font-size:1.9rem;font-weight:650;letter-spacing:-1px;margin:11px 0 6px}.stat small{font-size:.72rem}.section-title{display:flex;align-items:center;justify-content:space-between;margin:6px 0 19px}.section-title h2{margin:0}.course-art{height:110px;border-radius:13px;background:var(--art);display:flex;align-items:center;justify-content:space-between;padding:23px;margin-bottom:21px}.course-art .big{font-family:Georgia,serif;font-size:42px;font-style:italic;letter-spacing:-3px}.course-art.peach{background:var(--art-peach)}.course-art.blue{background:var(--art-blue)}.course-art .icon{width:38px;height:38px;opacity:.6}.course{display:flex;flex-direction:column}.course p{color:var(--muted);font-size:.85rem}.course .foot{margin-top:auto;padding-top:20px;display:flex;justify-content:space-between;align-items:center}.progress{height:7px;background:var(--soft);border-radius:20px;overflow:hidden;margin:8px 0}.progress progress{width:100%;height:9px;appearance:none;display:block;border:0}.progress progress::-webkit-progress-bar{background:var(--soft)}.progress progress::-webkit-progress-value{background:#a5be67;border-radius:20px}.progress progress::-moz-progress-bar{background:#a5be67}.topic{margin:16px 0}.topic .flex{font-size:.8rem}.empty{padding:35px;text-align:center;color:var(--muted);border:1px dashed var(--input-line);border-radius:16px;background:var(--soft)}.empty .icon{width:34px;height:34px;margin-bottom:12px}.empty p{max-width:480px;margin:8px auto}.empty h3{color:var(--ink)}.filters{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:22px}.filters label{flex:1;min-width:150px;margin:0}.filters select,.filters input{background:var(--white)}.tabs{display:flex;gap:8px;flex-wrap:wrap;padding:0 0 22px}.tabs .btn{background:var(--soft);color:var(--ink)}.tabs .btn.active{background:var(--green);color:var(--button-ink)}.notice{border:1px solid var(--warning-line);background:var(--warning-bg);color:var(--warning-ink);padding:15px 19px;border-radius:12px;font-size:.85rem;line-height:1.55;margin-bottom:20px}.lesson-body{white-space:pre-wrap;line-height:1.9;color:var(--ink)}.question{margin-top:20px}.question .number{color:var(--muted);font-size:.75rem;margin-bottom:15px}.question h3{line-height:1.6}.options{display:grid;gap:10px;margin:20px 0}.option{display:flex;gap:12px;align-items:center;background:var(--soft);border:1px solid var(--line);border-radius:11px;padding:14px;margin:0;font-size:.9rem;font-weight:400;cursor:pointer}.option:has(input:checked){border-color:var(--green);background:var(--success-bg)}.option input{width:17px;height:17px;margin:0;accent-color:var(--green)}.feedback{padding:17px;border-radius:12px;background:var(--success-bg);margin-top:18px;line-height:1.6}.feedback.wrong{background:var(--danger-bg)}.feedback p{margin:7px 0 0;font-size:.86rem}.question form>input,.question form>textarea{margin-bottom:15px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:.82rem;text-align:start}th{font-size:.7rem;text-transform:uppercase;letter-spacing:.6px;color:var(--muted);background:var(--soft)}td,th{padding:13px;border-bottom:1px solid var(--line);vertical-align:top}td p{margin:0;line-height:1.5}td small{display:block;margin-top:4px}pre{white-space:pre-wrap;word-break:break-word;background:var(--soft);padding:18px;border-radius:12px}.check{display:flex;gap:9px;align-items:center}.check input{width:auto;margin:0}.auth{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-story{background:var(--hero);color:white;display:flex;flex-direction:column;justify-content:space-between;padding:52px 65px;position:relative;overflow:hidden}.auth-story .brandmark{background:var(--lime);color:var(--lime-ink)}.auth-story h1{font-size:4rem;line-height:1.07;max-width:520px}.auth-story h1 em{color:var(--lime);font-family:Georgia,serif;font-weight:400}.auth-story p{color:#c6d9c8;max-width:400px}.auth-story footer{font-size:.76rem;color:#b4ccb9}.auth-main{padding:60px 40px;display:flex;justify-content:center;align-items:center}.auth-form{max-width:400px;width:100%}.auth-form h2{font-size:2rem;margin-bottom:12px}.auth-form .btn{width:100%;margin:8px 0}.auth-form form{margin-top:28px}.auth-form footer{text-align:center;margin-top:22px;font-size:.85rem}.auth-tiles{display:flex;gap:10px;margin:30px 0}.auth-tile{border:1px solid #598773;border-radius:14px;padding:15px;font-size:.78rem;width:120px}.auth-tile .icon{display:block;margin-bottom:14px}.loading{padding:80px;text-align:center}.error{color:var(--danger-ink);font-size:.9rem;padding:12px 0}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#163f34;color:white;padding:14px 24px;border-radius:12px;box-shadow:0 5px 25px #0002;z-index:99;display:none;max-width:90vw}#toast.visible{display:block}.mail{cursor:pointer}.mail.unread{border-inline-start:4px solid #749b58}.mail p{white-space:pre-wrap}.teacher-avatar{height:65px;width:65px;border-radius:20px;background:var(--art);display:grid;place-items:center;font:28px Georgia,serif;margin-bottom:20px}.row-actions{display:flex;gap:6px;flex-wrap:wrap}.subsection{margin:30px 0 15px}.q-editor{background:var(--soft);border:1px solid var(--line);border-radius:12px;padding:18px;margin:15px 0}.q-editor textarea{min-height:80px}.mobile-brand{display:none}.footnote{margin-top:28px;font-size:.73rem;color:var(--muted)}.teacher-bio{white-space:pre-wrap}.inline-result{margin-top:18px}dialog{border:1px solid var(--line);border-radius:20px;padding:28px;max-width:720px;width:92vw;max-height:90vh;overflow:auto}dialog::backdrop{background:#102e2766}fieldset{border:0;padding:0;margin:0}.auth-error:empty{display:none}
@media(min-width:1400px){.content{padding-top:42px}.hero{min-height:290px}}
@media(max-width:1100px){.sidebar{width:200px;padding:25px 12px}.shell{margin-inline-start:200px}.content{padding:27px}.topbar{padding:0 27px}.grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}.stats{gap:10px}.stat{padding:16px}.hero h1{font-size:2.1rem}.hero-art{right:-30px}.auth-story{padding:45px}.auth-story h1{font-size:3rem}}
@media(max-width:760px){.sidebar{position:static;width:100%;height:auto;padding:12px;background:var(--sidebar);border-bottom:1px solid var(--line)}.sidebar .brand{margin:0 0 12px;padding:4px 8px}.sidebar nav{display:flex;overflow:auto;gap:5px}.nav-item{white-space:nowrap;font-size:.76rem;padding:10px;gap:7px;margin:0}.nav-item .icon{width:17px;height:17px}.nav-label,.side-note,.sidebar-bottom{display:none}.shell{margin-inline-start:0}.topbar{height:65px;padding:0 20px}.content{padding:24px 18px 40px}.hero{padding:27px;min-height:265px}.hero-copy{max-width:90%}.hero h1{font-size:2rem}.hero-art{opacity:.12;right:0;width:45%}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.grid,.grid.three{grid-template-columns:1fr}.card{padding:21px}.pagehead h1{font-size:1.8rem}.auth{grid-template-columns:1fr}.auth-story{padding:25px 28px;min-height:290px}.auth-story h1{font-size:2.6rem;margin:28px 0 15px}.auth-story footer,.auth-tiles{display:none}.auth-main{padding:35px 25px}.auth-story p{margin-bottom:0}.filters{gap:8px}.filters label{min-width:130px}.topbar .crumb{font-size:.74rem}.account span.name{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}

.auth-story .brand{color:inherit}.auth-story .eyebrow{color:#c4d8bb}

.avatar{overflow:hidden;flex-shrink:0}.avatar img{width:100%;height:100%;object-fit:cover}.avatar.large{width:88px;height:88px;font-size:26px;display:inline-flex;align-items:center;justify-content:center}.profile-photo{border-bottom:1px solid var(--line);padding-bottom:24px;margin-bottom:24px}.bookmark-toggle{margin-top:12px}.bookmark-toggle[aria-pressed="true"]{background:var(--success-bg);color:var(--success-ink)}.source-context{margin-bottom:8px}.saved-question{margin-bottom:32px}summary{cursor:pointer;font-weight:600;padding:12px 0}.source-context details .lesson-body{margin-top:12px}
.revision-links{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 28px}.club-hero{display:grid;grid-template-columns:1.2fr 1fr;gap:32px;padding:32px;background:var(--soft);border-radius:24px;margin-bottom:28px}.club-hero h2{font-size:40px;line-height:1.1}.flashcard{text-align:center;max-width:720px;margin:30px auto;padding:40px}.flashcard h1{overflow-wrap:anywhere}.flashcard .revision-links{justify-content:center}.peer-row{border-top:1px solid var(--line);padding:16px 0}#room-audio{display:flex;flex-wrap:wrap;gap:12px;padding-top:24px}#room-audio audio{max-width:100%}.source-context .lesson-body{white-space:pre-wrap}#exam-clock{font-variant-numeric:tabular-nums;font-size:22px}#timed-form .card{margin-bottom:20px}[hidden]{display:none!important}@media(max-width:700px){.club-hero{grid-template-columns:1fr;padding:22px;gap:16px}.club-hero h2{font-size:32px}.flashcard{padding:24px}.revision-links .btn{font-size:13px}}@media print{.sidebar,.topbar,button,.revision-links,#toast,.bookmark-toggle{display:none!important}.shell{margin:0!important}.content{padding:0!important;max-width:none!important}.card{box-shadow:none!important;break-inside:avoid;border:1px solid #ddd}.grid{display:block}.hero-art{display:none}body{background:var(--white);color:black}}
.sidebar{overflow-y:auto}.card,.peer-row{overflow-wrap:anywhere}.lesson-body{overflow-wrap:anywhere}

/* Appearance controls and semantic surfaces shared by every screen. */
:root{color-scheme:light;--input-line:#ccd7cd;--soft:#eef2e9;--sidebar:#fafbf6;--hero:#16594c;--button-ink:#fff;--button-hover:#0d4338;--lime-ink:#183a36;--warning-bg:#faf3df;--warning-line:#ded6b6;--warning-ink:#785323;--success-bg:#e4f2df;--success-ink:#356a31;--danger-bg:#fbe9e5;--danger-ink:#943c31;--avatar-bg:#ecdfca;--avatar-ink:#786042;--art:#edf1df;--art-peach:#f9e6d5;--art-blue:#e7edf3}
:root[data-theme="dark"]{color-scheme:dark;--ink:#e7f0ec;--muted:#b0c1b9;--green:#a2d4bb;--lime:#dceb95;--paper:#111c1a;--line:#344842;--white:#1b2b26;--input-line:#4b6359;--soft:#263a31;--sidebar:#16221e;--hero:#163e32;--button-ink:#122a21;--button-hover:#b8e2cb;--lime-ink:#183a36;--warning-bg:#3b3422;--warning-line:#716343;--warning-ink:#f2d79c;--success-bg:#244333;--success-ink:#c1e8b8;--danger-bg:#492d29;--danger-ink:#ffc2b3;--avatar-bg:#4b4536;--avatar-ink:#f1dfba;--art:#344637;--art-peach:#493b30;--art-blue:#303e4a}
:root[data-theme="gray"]{color-scheme:dark;--ink:#f0f0f2;--muted:#c0c0c8;--green:#d3d3dc;--lime:#e1e1e6;--paper:#292a2e;--line:#53545c;--white:#37383e;--input-line:#6c6d77;--soft:#43444c;--sidebar:#303137;--hero:#3e4047;--button-ink:#27282d;--button-hover:#e7e7ed;--lime-ink:#27282d;--warning-bg:#484538;--warning-line:#75705b;--warning-ink:#f2dfab;--success-bg:#37473c;--success-ink:#cee7ce;--danger-bg:#4d3a3b;--danger-ink:#ffd0c9;--avatar-bg:#515158;--avatar-ink:#efeff2;--art:#45484b;--art-peach:#4c4745;--art-blue:#43474f}
body{background:var(--paper);color:var(--ink)}input,select,textarea,dialog{background:var(--white);color:var(--ink)}input::placeholder,textarea::placeholder{color:var(--muted);opacity:.85}.btn.danger{color:#fff}.feedback.wrong{color:var(--danger-ink)}.feedback{color:var(--ink)}.book{color:var(--lime-ink)}.brandmark{color:var(--button-ink)}.auth-story .brandmark{color:var(--lime-ink)}.auth-story .brand{color:inherit}.auth-story .eyebrow{color:#c4d8bb}.auth-story .brandmark{background:var(--lime)}.pill{color:var(--ink)}.preferences{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.preferences label{margin:0;font-size:.72rem;min-width:100px}.preferences select{padding:8px 10px;min-height:40px;margin-top:5px;font-size:.8rem}.topbar{gap:20px;height:auto;min-height:85px;padding-block:12px}.topbar .crumb{flex:1}.auth-form>.preferences{margin-bottom:30px;padding-bottom:20px;border-bottom:1px solid var(--line)}.auth-form>.preferences label{flex:1}.preferences select[data-preference="language"]{min-width:155px}.unread-count{margin-inline-start:auto;padding:2px 6px;border-radius:10px;background:var(--soft);color:var(--ink);font-size:.7rem}.nav-item{min-width:0}.card,.grid,.auth-main,.topbar{min-width:0}a,button{overflow-wrap:anywhere}[dir="rtl"] h1,[dir="rtl"] h2,[dir="rtl"] .eyebrow,[dir="rtl"] .nav-label,[dir="rtl"] th{letter-spacing:normal}[dir="rtl"] h1{line-height:1.35}[dir="rtl"] .hero-art{right:auto;left:20px}[dir="rtl"] .hero-copy{text-align:right}[dir="rtl"] .auth-story h1 em{font-family:inherit}[dir="rtl"] .book strong{font-family:inherit;font-size:31px}[dir="rtl"] .book small{letter-spacing:normal}[dir="rtl"] .auth-story h1{font-size:3.3rem}html[lang="ar"]{font-family:Tahoma,"Segoe UI",Arial,system-ui,sans-serif}.lesson-body[dir="auto"],[dir="auto"]{unicode-bidi:plaintext}.lesson-body[dir="ltr"],[lang="en"][dir="ltr"]{text-align:left;unicode-bidi:isolate}.question .option{direction:ltr;text-align:left}.question .number{line-height:1.7}.question fieldset .btn{direction:inherit}.auth-form .preferences select{width:100%}
@media(max-width:1100px){[dir="rtl"] .hero-art{left:-30px;right:auto}[dir="rtl"] .auth-story h1{font-size:2.7rem}.topbar{gap:12px}.topbar .crumb{max-width:180px}}
@media(max-width:760px){.topbar{padding:14px 18px;flex-wrap:wrap}.topbar .crumb{order:1;max-width:none;flex:1}.topbar .account{order:2}.topbar>.preferences{order:3;flex:1 1 100%;gap:12px}.topbar>.preferences label{flex:1;min-width:0}.preferences select[data-preference="language"]{min-width:0}[dir="rtl"] .hero-art{left:0;right:auto}[dir="rtl"] .auth-story h1{font-size:2.6rem}.auth-story{min-height:310px}.sidebar{border-inline-end:0}.hero-copy{max-width:100%}.book{max-width:100%}}
@media print{:root[data-theme]{--ink:#111;--muted:#444;--green:#154e46;--paper:#fff;--white:#fff;--line:#ccc;--soft:#f5f5f5;--success-bg:#f5f5f5;--danger-bg:#f5f5f5;--danger-ink:#111;--warning-bg:#f5f5f5;--warning-ink:#111;--warning-line:#ccc;color-scheme:light}.preferences{display:none!important}.shell{margin-inline-start:0!important}.hero,.auth-story{background:#fff;color:#111}.hero p,.hero .eyebrow{color:#333}}

[dir="rtl"] .icon.directional{transform:scaleX(-1)}

/* Uploaded SVG logos: switching follows the root theme without rerendering. */
.brand{display:inline-flex;align-items:center;gap:0;max-width:100%;direction:ltr;line-height:1}.brand-logo{display:block;width:184px;max-width:100%;height:auto;aspect-ratio:7/3;object-fit:contain;flex:none}.brand-logo--dark{display:none}:root[data-theme="dark"] .brand-logo--light,:root[data-theme="gray"] .brand-logo--light{display:none}:root[data-theme="dark"] .brand-logo--dark,:root[data-theme="gray"] .brand-logo--dark{display:block}.sidebar .brand{padding:0;margin:0 8px 30px;align-self:flex-start}.auth-story .brand{align-self:flex-start;background:var(--white);padding:14px 18px;border:1px solid var(--line);border-radius:18px;box-shadow:0 6px 22px #0000000d}.auth-story .brand-logo{width:212px}.stream-caption{display:block;font-family:Tahoma,"Segoe UI",Arial,sans-serif;font-size:.8rem;font-weight:400;line-height:1.8;white-space:normal;overflow-wrap:anywhere;margin-top:9px;text-align:right;color:var(--muted)}select[name="stream"]{font-family:Tahoma,"Segoe UI",Arial,sans-serif;direction:rtl;text-align:right}select[name="stream"] option{direction:rtl}.topbar .crumb{overflow-wrap:anywhere}@media(max-width:1100px){.sidebar .brand{margin-inline:0}.sidebar .brand-logo{width:174px}}@media(max-width:760px){.sidebar .brand{margin:4px 8px 14px}.sidebar .brand-logo{width:170px}.auth-story .brand{padding:12px 15px;border-radius:15px}.auth-story .brand-logo{width:195px}.stream-caption{font-size:.78rem}}@media print{:root[data-theme] .brand-logo--light{display:block}:root[data-theme] .brand-logo--dark{display:none}.auth-story .brand{background:#fff}}

/* Mobile navigation items keep their full width and scroll instead of overlapping. */
@media(max-width:760px){
 .sidebar{padding:12px 14px;overflow-y:visible}
 .sidebar .brand{margin:4px 4px 12px}
 .sidebar .brand-logo{width:144px}
 .sidebar nav{display:flex;flex-wrap:nowrap;gap:8px;width:100%;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;padding:4px 0 8px;scrollbar-width:thin;scrollbar-color:var(--input-line) transparent;-webkit-overflow-scrolling:touch}
 .sidebar nav .nav-item{flex:0 0 auto;width:max-content;min-width:max-content;max-width:none;min-height:44px;gap:8px;padding:11px 13px;white-space:nowrap;margin:0;overflow-wrap:normal}
 .sidebar nav .nav-item .icon,.sidebar nav .nav-item>[data-ui-key]{flex-shrink:0}
 .sidebar nav::-webkit-scrollbar{height:4px}
 .sidebar nav::-webkit-scrollbar-thumb{background:var(--input-line);border-radius:4px}
 .sidebar nav::-webkit-scrollbar-track{background:transparent}
}

/* Structured source lessons keep their learning text in English. */
.lesson-document{white-space:normal;max-width:78ch;margin-inline:auto;text-align:left}.lesson-document section{margin-block:20px}.lesson-document h2{font-size:1.35rem;margin:28px 0 12px;color:var(--ink)}.lesson-document h3{font-size:1.02rem;margin:22px 0 10px;color:var(--muted)}.lesson-document p{white-space:pre-wrap;line-height:1.8;overflow-wrap:anywhere;margin:12px 0}.lesson-document section:first-child h2{margin-top:0}

/* Interactive national exam; uses the existing theme colours. */
.interactive-intro{margin-bottom:24px}.interactive-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:24px;align-items:start}.interactive-layout aside{position:sticky;top:24px}.interactive-layout progress{width:100%;margin:12px 0}.interactive-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin:18px 0}.interactive-grid button{min-height:40px;border:1px solid currentColor;border-radius:8px;background:transparent;color:inherit;cursor:pointer}.interactive-grid .current{outline:3px solid #28a99a}.interactive-grid .answered{background:#22977a22}.interactive-options{display:grid;gap:12px;margin:24px 0}.interactive-options button{padding:16px;text-align:start;border:1px solid currentColor;border-radius:12px;background:transparent;color:inherit;cursor:pointer}.interactive-options .good,.interactive-feedback.good{background:#16834920;border:2px solid #168349}.interactive-options .bad,.interactive-feedback.bad{background:#d4474720;border:2px solid #d44747}.interactive-feedback{padding:20px;border-radius:12px;margin:20px 0}.interactive-feedback.pending{border:2px solid #bd8824;background:#bd882415}.interactive-passage{max-height:420px;overflow:auto;line-height:1.85}.interactive-layout textarea{width:100%;box-sizing:border-box}.interactive-layout .row-actions{flex-wrap:wrap}.interactive-feedback table{width:100%}@media(max-width:800px){.interactive-layout{grid-template-columns:1fr}.interactive-layout aside{position:static}.interactive-grid{grid-template-columns:repeat(8,1fr)}.interactive-layout h2{font-size:1.2rem}}@media(max-width:400px){.interactive-grid{grid-template-columns:repeat(5,1fr)}}
/* Exam paper layout: original sections, exercise headings and chart structures. */
.exam-workspace{max-width:1100px;margin:auto}.exam-back{display:inline-block;margin-bottom:18px}.exam-paper-head{background:var(--white);border:2px solid var(--ink);border-radius:4px;margin-bottom:14px}.exam-head-title{text-align:center;padding:22px}.exam-head-title>span{font-size:.72rem;letter-spacing:2px;font-weight:750}.exam-head-title h1{font-size:clamp(1.5rem,3vw,2.1rem);letter-spacing:-.5px;margin:10px 0}.exam-head-title p{margin:0;font-size:.9rem;direction:rtl}.exam-head-meta{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--ink)}.exam-head-meta>span{padding:10px 14px;border-inline-end:1px solid var(--ink);display:flex;justify-content:space-between;gap:8px;font-size:.8rem}.exam-head-meta>span:last-child{border-inline-end:0}.exam-practice-note{font-size:.8rem;color:var(--muted);margin-bottom:24px;line-height:1.6}.exam-workspace .interactive-layout{grid-template-columns:230px minmax(0,1fr);gap:20px}.exam-navigation{padding:18px;border-radius:10px}.exam-nav-top{display:flex;justify-content:space-between;gap:8px}.exam-nav-section{margin-top:20px;padding-top:14px;border-top:1px solid var(--line)}.exam-nav-section h3{font-size:.75rem;letter-spacing:.5px;display:flex;justify-content:space-between}.exam-nav-group>span{font-size:.72rem;color:var(--muted)}.exam-nav-group .interactive-grid{margin:6px 0 12px;grid-template-columns:repeat(4,1fr)}.exam-nav-group .interactive-grid button{min-height:33px;font-size:.75rem;padding:5px}.exam-navigation .row-actions button,.exam-question-footer button,.exam-subitems button,.exam-bookmark{background:var(--soft);color:var(--ink);border:1px solid var(--line);padding:8px 11px;border-radius:7px;font-size:.78rem}.exam-navigation .btn{width:100%;margin-top:16px;font-size:.8rem}.exam-reading,.exam-question-paper{border-radius:4px;border:1px solid var(--ink);padding:24px}.exam-reading{margin-bottom:20px}.exam-reading>summary{font-weight:750;font-size:.85rem;letter-spacing:1px;cursor:pointer}.exam-reading-help{display:flex;justify-content:flex-end;margin-top:8px}.exam-reading .interactive-passage{font-size:.94rem;line-height:1.8;max-height:390px}.exam-section-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;border-bottom:2px solid var(--ink);padding-bottom:12px}.exam-section-heading h2{font-size:1rem;letter-spacing:1px;margin:0}.exam-section-heading strong{font-size:.8rem;white-space:nowrap}.exam-section-rule{font-size:.78rem;font-weight:700;text-align:center;margin:12px 0 24px}.exam-exercise-heading{display:flex;gap:12px;align-items:start;justify-content:space-between}.exam-exercise-heading h3{font-size:.84rem;line-height:1.6;letter-spacing:.45px;margin:0}.exam-exercise-heading>span{font-size:.8rem;white-space:nowrap}.exam-subitems{display:flex;gap:5px;flex-wrap:wrap;margin:14px 0 20px}.exam-subitems button.active{border-color:var(--green);background:var(--green);color:var(--button-ink)}.exam-source-table{border-collapse:collapse;width:100%;margin:0 0 24px;font-size:.85rem}.exam-source-table th,.exam-source-table td{border:1px solid var(--ink);padding:10px;text-align:left;vertical-align:top}.exam-source-table th{background:var(--soft);font-weight:700}.exam-source-table .active-row{background:var(--success-bg)}.exam-item-meta{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:14px}.exam-item-meta>span{font-size:.73rem;color:var(--muted)}.exam-prompt-line h4{font-size:1rem;font-weight:600;line-height:1.7;margin:0 0 12px}.exam-prompt-line{margin-bottom:18px}.exam-answer-label{font-size:.78rem}.exam-question-paper textarea{border:1px solid var(--line);border-radius:4px;line-height:1.8;background:repeating-linear-gradient(transparent,transparent 1.8em,var(--line) 1.8em,var(--line) calc(1.8em + 1px));background-color:var(--white);padding:12px}.exam-question-paper .interactive-options button{display:flex;gap:12px;align-items:baseline;border-radius:6px;padding:14px;text-align:left;font-size:.95rem}.exam-option-letter{font-weight:750;min-width:18px}.exam-question-footer{border-top:1px solid var(--line);padding-top:18px;margin-top:24px;display:flex;align-items:center;justify-content:space-between;gap:12px}.exam-question-footer>span{font-size:.75rem;color:var(--muted)}.exam-arabic-help{margin:8px 0;max-width:100%}.exam-arabic-help>summary{list-style:none;display:inline-flex;align-items:center;gap:7px;cursor:pointer;color:var(--muted);font-size:.75rem;padding:3px;border-radius:20px}.exam-arabic-help>summary::-webkit-details-marker{display:none}.exam-arabic-help>summary:hover,.exam-arabic-help>summary:focus-visible{color:var(--ink);background:var(--soft);outline:2px solid var(--line)}.arabic-help-icon{width:27px;height:27px;display:grid;place-items:center;border:1px solid var(--line);background:var(--soft);border-radius:50%;font-size:1rem;font-weight:700}.arabic-help-label{font-size:.7rem}.arabic-help-body{background:var(--soft);color:var(--ink);border-inline-start:3px solid var(--green);padding:16px;margin-top:10px;border-radius:6px;font-size:.95rem;line-height:1.95}.arabic-help-body p{line-height:1.95;margin:6px 0 0}.exam-arabic-help[open]>summary{color:var(--green)}.exam-question-paper .interactive-feedback{border-radius:6px;font-size:.9rem}.exam-question-paper .interactive-feedback h4{font-size:.8rem;margin:20px 0 8px}.exam-question-paper .interactive-feedback form{border-top:1px solid var(--line);padding-top:16px;margin-top:16px}
@media(max-width:850px){.exam-workspace .interactive-layout{grid-template-columns:1fr}.exam-workspace .interactive-layout aside{position:static}.exam-nav-section{display:inline-block;vertical-align:top;width:32%;padding:10px;box-sizing:border-box}.exam-navigation .btn{width:auto}.exam-head-meta{grid-template-columns:repeat(2,1fr)}.exam-head-meta>span:nth-child(2){border-inline-end:0}.exam-head-meta>span:nth-child(-n+2){border-bottom:1px solid var(--ink)}}@media(max-width:520px){.exam-reading,.exam-question-paper{padding:17px}.exam-nav-section{display:block;width:100%;margin-top:12px}.exam-nav-group{display:inline-block;vertical-align:top;margin-inline-end:10px}.exam-nav-group .interactive-grid{grid-template-columns:repeat(3,30px)}.exam-head-title{padding:18px 12px}.exam-head-meta>span{font-size:.7rem;padding:9px}.exam-section-heading{align-items:start}.exam-exercise-heading{display:block}.exam-exercise-heading>span{display:block;margin-top:6px}.exam-source-table{font-size:.75rem}.exam-source-table th,.exam-source-table td{padding:7px}}

.exam-nav-outline{max-height:460px;overflow:auto;overscroll-behavior:contain;padding-inline-end:4px}.exam-arabic-help:not([open]) .arabic-help-label{display:none}@media(max-width:850px){.exam-nav-outline{max-height:220px}.exam-workspace .exam-navigation{position:static}}@media(max-width:520px){.exam-nav-outline{max-height:180px}}
/* Arabic exam identity with a stronger visual hierarchy. */
.exam-paper-head{position:relative;overflow:hidden;border:1px solid #246b60;border-radius:20px;background:linear-gradient(135deg,#edf5ee 0%,#fffef8 60%,#e3f0e9 100%);box-shadow:0 16px 40px #143d3410;margin-bottom:18px}.exam-paper-head:before{content:"";position:absolute;width:260px;height:260px;border:1px solid #31675916;border-radius:50%;top:-120px;left:-90px;pointer-events:none}.exam-paper-head:after{content:"";position:absolute;width:190px;height:190px;border:1px solid #31675916;border-radius:50%;right:-80px;top:50px;pointer-events:none}.exam-header-brand{position:relative;z-index:1;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 24px 0;color:#235d50;font-size:.68rem;font-weight:800;letter-spacing:2px}.exam-session-badge{letter-spacing:0;font-size:.76rem;background:#dceab9;color:#294931;border:1px solid #aabb7438;border-radius:30px;padding:7px 12px}.exam-head-title{position:relative;z-index:1;padding:22px 24px 28px;color:#163f36}.exam-head-title h1{font-family:Tahoma,"Segoe UI",Arial,sans-serif;font-size:clamp(1.6rem,3.5vw,2.5rem);font-weight:800;letter-spacing:0;line-height:1.6;margin:0 0 4px;overflow-wrap:break-word}.exam-arabic-session{font-size:clamp(1rem,2vw,1.25rem);font-weight:650;line-height:1.8;margin-bottom:12px}.exam-subject-tag{display:inline-block;background:#fff9;border:1px solid #b6ccc0;padding:6px 14px;border-radius:30px;font-size:.8rem;font-weight:700;letter-spacing:0!important}.exam-head-title .exam-stream-name{font-size:clamp(.92rem,1.6vw,1.08rem);font-weight:650;line-height:1.9;margin:16px auto 10px;max-width:700px}.exam-english-subtitle{font-size:.7rem;color:#5c796f;letter-spacing:1px;line-height:1.5}.exam-head-meta{position:relative;z-index:1;margin:0 16px 16px;gap:8px;border:0}.exam-head-meta>span{border:1px solid #c5d6cb!important;border-radius:10px;background:#ffffffb8;padding:13px 14px;display:flex;flex-direction:column;align-items:center;gap:6px;color:#5a746a;font-size:.75rem}.exam-head-meta strong{font-size:1rem;color:#183f36;font-weight:750}.interactive-intro{border:1px solid #b2cdbd;position:relative;background:linear-gradient(120deg,var(--white),var(--soft));box-shadow:0 8px 24px #183f3609}.interactive-intro .exam-intro-title{font-family:Tahoma,"Segoe UI",Arial,sans-serif;font-size:1.5rem;line-height:1.7}.exam-intro-session{font-weight:700;color:var(--green)}[data-theme="dark"] .exam-paper-head,[data-theme="gray"] .exam-paper-head{background:linear-gradient(135deg,#183a35,#203d37 65%,#314a3d);border-color:#4f7b6a;box-shadow:0 18px 40px #0002}[data-theme="dark"] .exam-head-title,[data-theme="gray"] .exam-head-title,[data-theme="dark"] .exam-header-brand,[data-theme="gray"] .exam-header-brand{color:#f1f5e9}[data-theme="dark"] .exam-english-subtitle,[data-theme="gray"] .exam-english-subtitle{color:#b1c5ba}[data-theme="dark"] .exam-subject-tag,[data-theme="gray"] .exam-subject-tag{background:#ffffff0c;border-color:#658071}[data-theme="dark"] .exam-head-meta>span,[data-theme="gray"] .exam-head-meta>span{background:#ffffff08;color:#bfd0c4;border-color:#648170!important}[data-theme="dark"] .exam-head-meta strong,[data-theme="gray"] .exam-head-meta strong{color:#edf3df}@media(max-width:520px){.exam-header-brand{padding:16px 16px 0;font-size:.6rem;letter-spacing:1.5px}.exam-head-title{padding:18px 16px 22px}.exam-head-title h1{font-size:1.6rem;line-height:1.6}.exam-head-meta{margin:0 12px 12px}.exam-head-meta>span{padding:10px;font-size:.72rem}.exam-head-meta strong{font-size:.95rem}.exam-paper-head{border-radius:15px}.interactive-intro .exam-intro-title{font-size:1.2rem}}
.exam-question-tools{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap;flex:1;justify-content:flex-end}.exam-note{max-width:100%}.exam-note>summary{cursor:pointer;padding:8px 11px;border:1px solid var(--line);border-radius:7px;background:var(--soft);font-size:.78rem;list-style:none}.exam-note>summary::-webkit-details-marker{display:none}.exam-note[open]{width:100%;margin-top:8px}.exam-note form{padding:15px;margin-top:10px;border:1px solid var(--line);background:var(--soft);border-radius:8px}.exam-note textarea{background:var(--white);line-height:1.7;min-height:100px}.note-status{display:block;font-size:.8rem;margin-top:10px;color:var(--green)}.exam-question-tools [aria-pressed="true"]{border-color:var(--green);color:var(--green)}@media(max-width:520px){.exam-item-meta{flex-wrap:wrap}.exam-question-tools{justify-content:flex-start;flex-basis:100%}}

/* Original paper identity block: Arabic labels on the right, values on the left. */
.exam-identity-table{border-collapse:collapse;width:100%;margin:20px 0 16px;background:#ffffffb0;color:#163f36;text-align:center;font-family:Tahoma,"Segoe UI",Arial,sans-serif}.exam-identity-table th,.exam-identity-table td{border:2px solid #315b4d;padding:14px 18px;vertical-align:middle}.exam-identity-table th{width:150px;font-size:.9rem;font-weight:750}.exam-identity-table td{font-size:1.12rem;font-weight:750;line-height:1.9}.exam-head-title .exam-identity-table .exam-stream-name{margin:0;max-width:none;font-size:1.08rem;line-height:1.9}.exam-identity-table th{background:#eef4e9}.exam-identity-table td:first-child{width:auto}[data-theme="dark"] .exam-identity-table,[data-theme="gray"] .exam-identity-table{background:#ffffff08;color:#f1f5e9}[data-theme="dark"] .exam-identity-table th,[data-theme="gray"] .exam-identity-table th{background:#ffffff08}[data-theme="dark"] .exam-identity-table th,[data-theme="gray"] .exam-identity-table th,[data-theme="dark"] .exam-identity-table td,[data-theme="gray"] .exam-identity-table td{border-color:#829c8b}@media(max-width:520px){.exam-identity-table th{width:90px;font-size:.72rem}.exam-identity-table th,.exam-identity-table td{padding:10px 8px}.exam-identity-table td{font-size:.95rem}.exam-head-title .exam-identity-table .exam-stream-name{font-size:.86rem;line-height:1.9}}

/* Per-question review toolbar */
.exam-question-paper>.exam-question-tools,.card>.exam-question-tools{justify-content:flex-start;flex:none;border-top:1px solid var(--line);padding-top:18px;margin-top:24px;gap:10px}.exam-question-tools .exam-bookmark,.exam-question-tools .exam-note>summary{background:var(--white);font-size:.85rem;padding:10px 14px;min-height:42px;line-height:1.4}.exam-question-tools .exam-flag[aria-pressed="true"]{color:var(--ink);border-color:var(--ink);background:var(--soft)}.exam-question-tools .exam-note[open]{flex-basis:100%}.exam-question-tools button:focus-visible,.exam-note>summary:focus-visible{outline:2px solid var(--green);outline-offset:3px}@media(max-width:520px){.exam-question-tools{gap:8px}.exam-question-tools .exam-bookmark,.exam-question-tools .exam-note>summary{font-size:.78rem;padding:9px 10px}}

.visual-course-card{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-bottom:28px;border:1px solid var(--line)}.visual-course-card h2{margin:10px 0}.visual-course-tools{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:20px}.visual-course-tools small{color:var(--muted)}@media(max-width:700px){.visual-course-card{align-items:flex-start;flex-direction:column}}

.sidebar{overflow-x:hidden}.content:has(.native-course){max-width:1400px}.native-course{min-width:0}
