:root{--ink:#24304a;--muted:#68728a;--purple:#6857d9;--purple-soft:#eeeaff;--math:#ff8a55;--english:#6558db;--science:#2aa978;--paper:#fff;--bg:#f7f6fc;--line:#e4e2ef;--shadow:0 16px 45px rgba(58,48,113,.11)}
*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-rounded,"SF Pro Rounded",system-ui,-apple-system,sans-serif;color:var(--ink);background:var(--bg)}button,input,select{font:inherit}button{cursor:pointer}.topbar{height:76px;padding:0 clamp(20px,5vw,72px);display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}.brand{display:flex;align-items:center;gap:12px;border:0;background:none;font-weight:850;color:var(--ink);font-size:18px}.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:linear-gradient(145deg,#7667eb,#5142bc);color:#fff;font-size:23px;box-shadow:0 7px 16px rgba(104,87,217,.3)}nav{display:flex;gap:8px}.nav-btn{border:0;background:transparent;padding:11px 16px;border-radius:12px;color:var(--muted);font-weight:750}.nav-btn.active,.nav-btn:hover{background:var(--purple-soft);color:var(--purple)}main{width:min(1180px,92vw);margin:auto;min-height:calc(100vh - 140px)}.page{display:none;padding:48px 0 70px}.page.active{display:block}.hero{display:grid;grid-template-columns:1.7fr .8fr;align-items:center;background:linear-gradient(120deg,#fff,#f0edff);border:1px solid #e7e2ff;border-radius:28px;padding:50px clamp(28px,6vw,70px);box-shadow:var(--shadow);overflow:hidden}.hero h1,.page-title h1,.exercise-head h1,.result-card h1{font-size:clamp(32px,5vw,54px);line-height:1.05;margin:8px 0 16px;letter-spacing:-1.8px}.hero p,.page-title>p:last-child{color:var(--muted);font-size:18px;line-height:1.6}.eyebrow{font-size:12px!important;letter-spacing:2px;color:var(--purple)!important;font-weight:900;margin:0;text-transform:uppercase}.hero-art{font-size:120px;text-align:center;filter:drop-shadow(0 16px 15px rgba(74,57,145,.17));position:relative}.hero-art span{font-size:60px;position:absolute;right:8%;bottom:-8px}.streak{display:inline-flex;align-items:center;gap:9px;background:#fff;border-radius:999px;padding:10px 16px;margin-top:12px;box-shadow:0 8px 22px rgba(70,57,138,.09)}.section-heading{display:flex;align-items:end;justify-content:space-between;margin:46px 2px 20px}.section-heading h2{font-size:29px;margin:6px 0 0}.section-heading label{font-size:13px;font-weight:800;color:var(--muted)}select{display:block;margin-top:6px;border:1px solid var(--line);background:#fff;border-radius:12px;padding:10px 34px 10px 12px;color:var(--ink);font-weight:750}.subject-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.subject-card{border:1px solid var(--line);background:#fff;border-radius:22px;padding:25px;box-shadow:0 9px 26px rgba(46,41,85,.06);transition:.2s;position:relative;overflow:hidden}.subject-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}.subject-icon{width:60px;height:60px;display:grid;place-items:center;border-radius:19px;font-size:29px;margin-bottom:18px}.subject-card.math .subject-icon{background:#fff0e8}.subject-card.english .subject-icon{background:#eeecff}.subject-card.science .subject-icon{background:#e4f8f0}.subject-card h3{font-size:24px;margin:0 0 6px}.subject-card p{color:var(--muted);line-height:1.55;min-height:49px}.subject-meta{display:flex;justify-content:space-between;align-items:center;margin-top:25px}.done-badge{font-size:12px;font-weight:850;color:var(--science)}.start-btn,.primary-btn{border:0;background:var(--purple);color:#fff;font-weight:850;border-radius:13px;padding:13px 18px;box-shadow:0 8px 18px rgba(104,87,217,.24)}.start-btn:hover,.primary-btn:hover{background:#5848c6}.back-btn{border:0;background:none;color:var(--purple);font-weight:850;margin-bottom:24px}.exercise-shell{max-width:820px;margin:auto}.exercise-head{display:flex;justify-content:space-between;align-items:end}.exercise-head h1{font-size:38px}.progress-pill{background:#fff;border:1px solid var(--line);border-radius:999px;padding:10px 15px;font-weight:850}.question-progress{height:8px;background:#e7e4f2;border-radius:99px;margin:20px 0}.question-progress span{display:block;height:100%;background:linear-gradient(90deg,var(--purple),#9c8cf3);border-radius:99px;transition:.3s}.question-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:clamp(25px,5vw,50px);box-shadow:var(--shadow)}.question-prompt{font-size:clamp(25px,4vw,38px);font-weight:850;line-height:1.3;margin:12px 0 30px}.answer-wrap label{display:block;color:var(--muted);font-size:13px;font-weight:850;margin-bottom:8px}.answer-wrap input{width:100%;border:2px solid #dcd8ed;border-radius:15px;padding:17px;font-size:22px;font-weight:750;outline:none}.answer-wrap input:focus{border-color:var(--purple);box-shadow:0 0 0 4px var(--purple-soft)}.choice-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.choice-btn{border:2px solid #e4e0f1;background:#fff;border-radius:15px;padding:17px;font-weight:850;color:var(--ink)}.choice-btn:hover,.choice-btn.selected{border-color:var(--purple);background:var(--purple-soft);color:var(--purple)}.answer-mode{display:flex;gap:9px;margin-top:25px;padding-top:20px;border-top:1px solid var(--line)}.mode-btn,.secondary-btn{border:1px solid var(--line);background:#fff;color:var(--muted);font-weight:800;border-radius:12px;padding:11px 15px}.mode-btn.active{background:var(--purple-soft);border-color:#cfc8fa;color:var(--purple)}.pencil-panel{margin-top:16px}#writingCanvas{width:100%;height:210px;border:2px dashed #cfc9e6;background:#fcfbff;border-radius:16px;touch-action:none}.canvas-actions{display:flex;align-items:center;gap:15px;margin-top:9px}.canvas-actions p{color:var(--muted);font-size:13px}.question-actions{display:flex;gap:10px;margin-top:22px;flex-wrap:wrap}.feedback{margin-top:20px;border-radius:15px;padding:15px 17px;font-weight:800}.feedback.correct{background:#e4f8f0;color:#147553}.feedback.incorrect{background:#fff0eb;color:#af4d2b}.speak-btn{border:0;background:#e9f7ff;color:#176a92;border-radius:999px;padding:10px 15px;font-weight:850}.hidden{display:none!important}.result-card{max-width:650px;margin:30px auto;text-align:center;background:#fff;border:1px solid var(--line);border-radius:28px;padding:55px;box-shadow:var(--shadow)}.result-emoji{font-size:72px}.big-score{font-size:68px;font-weight:950;color:var(--purple);margin:15px}.result-card>p:not(.eyebrow){color:var(--muted);font-size:18px}.result-actions{display:flex;justify-content:center;gap:12px;margin-top:30px;flex-wrap:wrap}.page-title{max-width:760px;margin-bottom:35px}.curriculum-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.curriculum-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:24px}.curriculum-card h2{margin:0 0 15px}.skill-list{padding:0;margin:0;list-style:none}.skill-list li{padding:10px 0;border-top:1px solid #efedf5;color:var(--muted)}.dashboard-controls{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.range-tabs{display:flex;background:#eae7f4;padding:4px;border-radius:13px}.range-btn{border:0;background:transparent;padding:10px 15px;border-radius:10px;color:var(--muted);font-weight:800}.range-btn.active{background:#fff;color:var(--purple);box-shadow:0 3px 10px rgba(41,36,72,.1)}.danger-link{border:0;background:none;color:#b74c51;font-weight:800}.summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.summary-card,.chart-card,.history-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px}.summary-card span{color:var(--muted);font-size:13px;font-weight:800}.summary-card strong{display:block;font-size:31px;margin-top:9px}.chart-card{margin-top:18px}.chart-heading{display:flex;justify-content:space-between;align-items:center}.chart-heading h2,.history-card h2{margin:0}.chart-heading p{color:var(--muted);margin:5px 0}.legend{display:flex;gap:18px;font-size:12px;font-weight:850}.legend span:before{content:"";display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px}.math-dot:before{background:var(--math)}.english-dot:before{background:var(--english)}.science-dot:before{background:var(--science)}#progressChart{width:100%;height:340px;margin-top:18px}.history-card{margin-top:18px}.history-row{display:grid;grid-template-columns:1fr 1fr auto;gap:15px;padding:14px 0;border-top:1px solid var(--line);align-items:center}.history-row span{color:var(--muted)}.history-row strong{font-size:20px}.empty-state{padding:30px;text-align:center;color:var(--muted)}footer{display:flex;justify-content:space-between;padding:22px clamp(20px,5vw,72px);border-top:1px solid var(--line);color:var(--muted);font-size:13px;background:#fff}
@media(max-width:760px){.topbar{height:auto;align-items:flex-start;gap:14px;padding:15px 18px;flex-direction:column}.brand{font-size:16px}nav{width:100%;overflow:auto}.nav-btn{flex:1;white-space:nowrap}.page{padding-top:28px}.hero{grid-template-columns:1fr;padding:32px 25px}.hero-art{display:none}.subject-grid,.curriculum-grid{grid-template-columns:1fr}.section-heading{align-items:center}.choice-grid,.summary-grid{grid-template-columns:1fr 1fr}.exercise-head{align-items:center}.exercise-head h1{font-size:29px}.question-card{padding:24px}.chart-heading{align-items:flex-start;gap:15px;flex-direction:column}.legend{gap:10px}.history-row{grid-template-columns:1fr auto}.history-row span{grid-column:1/-1}.result-card{padding:38px 22px}.dashboard-controls{align-items:flex-start;gap:15px;flex-direction:column}footer{gap:8px;flex-direction:column}}

.learn-level{display:block;margin:0 0 24px;font-weight:800}.learn-level select{max-width:200px}.lesson{border-top:1px solid var(--line);padding:16px 0}.lesson summary{cursor:pointer;font-weight:800;line-height:1.5}.lesson-body p{line-height:1.7}.lesson-visual{background:var(--purple-soft);border-radius:14px;padding:18px 10px;text-align:center;font-size:clamp(18px,2.4vw,25px);line-height:1.9;overflow-wrap:anywhere;color:var(--ink)}.mini-check{margin-top:18px;padding:12px;background:#e4f8f0;border-radius:12px}.lesson-practice{margin-top:18px;width:100%}.curriculum-card{min-width:0}button:focus-visible,summary:focus-visible{outline:3px solid #176a92;outline-offset:4px}

/* Aqsa's portrait remains visible on phones as well as larger screens. */
.brand-photo{object-fit:cover;flex-shrink:0;border:2px solid #e7e2ff}
.hero-portrait{position:relative;width:min(100%,250px);justify-self:center;margin:12px}
.hero-portrait img{display:block;width:100%;height:auto;aspect-ratio:1;border-radius:50%;object-fit:cover;border:7px solid #fff;box-shadow:0 16px 35px rgba(74,57,145,.18)}
.portrait-badge{position:absolute;right:0;bottom:5px;display:grid;place-items:center;width:56px;height:56px;border:4px solid #fff;border-radius:50%;background:#e4f8f0;font-size:30px}
@media(max-width:760px){.hero-portrait{grid-row:1;width:150px;margin:0 auto 24px}.hero-portrait img{border-width:5px}.portrait-badge{width:42px;height:42px;font-size:23px;right:-4px;bottom:0}}
