:root{--purple:#6545d6;--ink:#272539;--muted:#777486;--line:#ebe9f1;--bg:#f8f9fc;--pale:#f0ecfc;--green:#23856b;--font:'DM Sans','Noto Sans Malayalam',sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:16px;line-height:1.6}button,input,select{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}a{color:inherit;text-decoration:none}button{border:0;background:none;color:inherit}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #aa8df8;outline-offset:4px}h1,h2,h3,p{margin-top:0}h1{font-size:32px;line-height:1.3;letter-spacing:-1.2px;margin-bottom:10px}h2{font-size:23px;line-height:1.4;letter-spacing:-.5px}h3{font-size:17px;line-height:1.5;margin-bottom:5px}p{margin-bottom:0}[lang=ml]{font-family:'Noto Sans Malayalam',sans-serif;line-height:1.9;letter-spacing:0}.sidebar{position:fixed;inset:0 auto 0 0;width:244px;background:white;border-right:1px solid var(--line);padding:34px 23px;display:flex;flex-direction:column;z-index:10}.brand{display:flex;gap:11px;align-items:center;font-size:31px;font-weight:700;letter-spacing:-1px;line-height:1}.brand-mark{width:45px;height:45px;border-radius:14px;background:var(--purple);color:#fff;text-align:center;font-size:29px;font-weight:500}.brand-sub{display:block;font-size:8px;letter-spacing:1.15px;color:#918b9d;margin-top:10px}.nav-label{font-size:10px;font-weight:700;letter-spacing:1.5px;color:#9791a5;margin:53px 12px 15px}nav{display:flex;flex-direction:column;gap:8px}.nav-item{display:flex;gap:14px;align-items:center;padding:12px 16px;border-radius:10px;color:#777284;font-size:14px;font-weight:500}.nav-item svg{width:20px;height:20px}.nav-item:hover{background:#f7f5fc}.nav-item.active{background:var(--pale);color:var(--purple);font-weight:700}.sidebar-bottom{margin-top:auto}.language-note{padding:26px 16px}.language-note>span{font-size:24px;color:#b5a6db}.language-note p{font-size:12px;color:#a09aaa;line-height:1.8;margin-top:10px}.profile{border-top:1px solid var(--line);padding:23px 0 0;display:flex;align-items:center;gap:11px;width:100%;text-align:left;font-size:12px;font-weight:600}.profile small{display:block;color:var(--muted);font-size:11px;font-weight:400}.avatar{border-radius:50%;background:#ece6dc;color:#776853;display:grid;place-items:center;font-weight:600;flex-shrink:0;width:39px;height:39px}.small{width:34px;height:34px;font-size:13px}.app-shell{margin-left:244px}.topbar{height:82px;border-bottom:1px solid var(--line);background:#fff;display:flex;justify-content:space-between;align-items:center;padding:0 42px}.breadcrumb{font-size:13px;color:#94909e}.breadcrumb span{margin:0 15px;color:#ccc}.breadcrumb strong{font-weight:500;color:#4d485e}.header-actions{display:flex;gap:23px;align-items:center}.language-tag{font-size:12px;display:flex;gap:7px;align-items:center;color:#666071}.language-tag>span{color:var(--purple);font-size:21px}.icon-button{width:36px;height:36px;border-radius:50%;display:inline-grid;place-items:center;color:#82798e}.icon-button:hover{background:var(--pale);color:var(--purple)}main{max-width:1320px;margin:auto;padding:37px 42px 25px}.intro{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:28px;gap:20px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:1.6px;color:var(--purple);text-transform:uppercase}.intro .eyebrow{display:block;margin-bottom:9px}.intro p{font-size:14px;color:var(--muted)}.audience{display:flex;align-items:center;gap:9px;font-size:12px;color:#827b91;background:white;border:1px solid var(--line);padding:8px 12px;border-radius:8px;white-space:nowrap}.audience select{border:0;background:transparent;color:#585068;font-size:12px;max-width:115px;cursor:pointer}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:27px}.stat{background:#fff;border:1px solid var(--line);border-radius:12px;display:flex;align-items:center;padding:17px 21px;gap:15px}.stat-icon{height:42px;width:42px;border-radius:12px;display:grid;place-items:center}.stat-icon svg{height:23px;width:23px}.peach{color:#df8b45;background:#fff1e5}.lilac{color:#8d6edf;background:#f2edfc}.mint{color:#39a688;background:#e9f7f2}.stat-value{font-size:21px;line-height:1.3;font-weight:700}.stat-value small{font-size:12px;font-weight:400;color:var(--muted);margin-left:5px}.stat-label{font-size:12px;color:var(--muted);margin-top:3px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:26px}.hero{border-radius:16px;background:#6848d7;color:#fff;padding:27px 29px;display:flex;align-items:center;justify-content:space-between;min-height:235px;overflow:hidden;position:relative}.hero-copy{max-width:65%;z-index:1}.hero .eyebrow{color:#dfd4ff;font-size:10px}.hero h2{font-size:27px;margin:10px 0 9px}.hero p{font-size:13px;color:#e1d8fa;margin-bottom:21px;max-width:290px}.hero button{background:#fff;color:#6848ce;padding:11px 19px;border-radius:8px;font-size:13px;font-weight:700;display:inline-flex;align-items:center;gap:25px}.letter-art{display:grid;grid-template-columns:repeat(2,65px);gap:10px;transform:rotate(9deg);margin-right:4px}.letter-art span{background:#ffffff18;border:1px solid #ffffff30;border-radius:13px;font-size:39px;height:67px;display:grid;place-items:center;line-height:1}.letter-art span:first-child{background:#ffe49b;color:#6e46bb;transform:translateY(-10px)}.letter-art span:last-child{background:#d4c5ff;color:#6741c5;transform:translateY(10px)}.section-head{display:flex;justify-content:space-between;align-items:center;margin:29px 0 16px;gap:10px}.section-head h2{font-size:19px;margin:0}.section-head p{font-size:12px;color:var(--muted);margin:3px 0 0}.text-button{color:var(--purple);font-size:12px;font-weight:600;padding:5px 0}.tabs{display:flex;padding:4px;gap:4px;background:#efedf5;border-radius:9px;margin-bottom:19px}.tabs button{flex:1;border-radius:7px;padding:8px 6px;font-size:12px;color:#82798f}.tabs button.selected{color:var(--purple);background:white;box-shadow:0 2px 5px #27203009;font-weight:600}.lesson-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.lesson-card{background:white;border:1px solid var(--line);border-radius:12px;padding:19px;text-align:left;position:relative;transition:transform .2s,border-color .2s;min-width:0}.lesson-card:hover{transform:translateY(-3px);border-color:#b7a6e8}.lesson-card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.lesson-symbol{width:40px;height:40px;border-radius:10px;display:grid;place-items:center;font-size:22px}.lesson-tag{font-size:10px;color:#93899f}.lesson-card h3{font-size:15px}.lesson-card p{color:var(--muted);font-size:12px}.lesson-meta{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#9690a1;margin-top:16px;border-top:1px solid #f2eff7;padding-top:12px}.lesson-meta svg{width:16px;height:16px;color:var(--purple)}.rail-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:21px;margin-bottom:19px}.rail-heading{display:flex;align-items:center;justify-content:space-between}.rail-heading h3{font-size:14px}.pill{padding:4px 7px;font-size:9px;letter-spacing:.6px;color:#8f71c2;background:#f3eefb;border-radius:5px}.word{font-size:33px;text-align:center;color:var(--purple);margin:22px 0 0}.word-roman{text-align:center;font-size:12px;color:#98909f;margin-top:0}.word-meaning{font-size:14px;text-align:center;margin-top:7px}.listen{display:flex;align-items:center;justify-content:center;gap:8px;color:var(--purple);background:#f5f1fe;border-radius:7px;padding:9px;width:100%;font-size:12px;margin-top:18px}.listen svg{width:16px;height:16px}.word-note{font-size:11px;line-height:1.8;color:#98909f;text-align:center;border-top:1px solid var(--line);margin-top:18px;padding-top:14px}.goal-header{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#97909f}.goal-header strong{font-size:14px;color:#3c3448}.goal-subtitle{font-size:12px;color:var(--muted);margin:5px 0 14px}.progress-track{height:7px;background:#eee9f6;border-radius:9px;overflow:hidden}.progress-track>span{display:block;height:100%;background:var(--purple);border-radius:9px;transition:width .3s}.goal-bottom{font-size:11px;color:#938b9f;margin-top:10px}.tip{background:#eaf5f0;border:0}.tip .eyebrow{color:#468d77;font-size:10px}.tip h3{font-size:15px;margin:9px 0}.tip p{font-size:12px;color:#6e8b7f}.practice-banner{margin-top:25px;border:1px dashed #d9d2e9;border-radius:12px;padding:19px 22px;display:flex;gap:17px;align-items:center;background:#f4f1fb}.practice-banner>span{color:#987dd3}.practice-banner h3{font-size:14px;margin:0}.practice-banner p{font-size:12px;color:var(--muted)}.practice-banner button{margin-left:auto;white-space:nowrap}footer{font-size:11px;color:#a19aa9;padding:10px 42px 27px;max-width:1320px;margin:auto;display:flex;justify-content:space-between}footer span{font-size:12px}.primary{background:var(--purple);color:white;padding:12px 22px;border-radius:9px;font-size:14px;font-weight:600}.secondary{background:var(--pale);color:var(--purple);padding:12px 22px;border-radius:9px;font-size:14px;font-weight:600}.full{width:100%;margin-top:20px}.activity-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.activity-card{background:white;border:1px solid var(--line);border-radius:15px;padding:25px;text-align:left}.activity-card .lesson-symbol{width:55px;height:55px;margin-bottom:20px}.activity-card h3{font-size:20px}.activity-card p{font-size:14px;color:var(--muted);margin:8px 0 22px}.alphabet-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}.alphabet-card{border:1px solid var(--line);border-radius:13px;padding:20px;background:white;text-align:center}.alphabet-card .glyph{font-size:43px;color:var(--purple)}.alphabet-card p{font-size:14px;color:var(--muted)}.alphabet-card:hover{border-color:var(--purple);background:#f4f0ff}.speak-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.phrase-card{padding:25px;background:#fff;border:1px solid var(--line);border-radius:14px}.phrase-card h3{font-size:24px}.phrase-card p{color:var(--muted);font-size:14px}.phrase-card .row{margin-top:16px}.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.muted{color:var(--muted);font-size:14px}.page-note{background:#eeebf7;border-radius:10px;padding:14px 18px;font-size:14px;color:#766789;margin-bottom:25px}.completed-list{background:white;border:1px solid var(--line);border-radius:12px;padding:24px}.completed-row{padding:15px 0;display:flex;justify-content:space-between;border-bottom:1px solid var(--line);gap:15px}.completed-row:last-child{border:0}.empty{padding:50px 20px;text-align:center;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:21px;padding:30px;max-width:560px;width:calc(100% - 32px);box-shadow:0 24px 90px #24154222;color:var(--ink);max-height:90dvh;overflow:auto}dialog::backdrop{background:#211b4059;backdrop-filter:blur(4px)}.dialog-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}dialog h2{margin:12px 0}dialog label{display:block;font-size:14px;font-weight:600;margin:24px 0 8px}dialog select{width:100%;padding:12px;border:1px solid #ddd6ec;border-radius:8px;background:#fff}#voice-status{margin-top:20px}.settings-note{font-size:12px;color:#898092;margin-top:16px}.question-type{font-size:12px;color:var(--purple);margin-top:25px}.question{font-size:28px;text-align:center;margin:28px 0 10px}.translation{text-align:center;color:#8d8499;font-size:14px}.choices{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:25px 0}.choice{border:2px solid var(--line);padding:13px 12px;border-radius:10px;font-size:17px;background:white}.choice.chosen{border-color:var(--purple);background:var(--pale)}.choice.correct{border-color:#4eaa83;background:#eaf8f0}.choice.wrong{border-color:#cf746e;background:#fdf0ed}.feedback{padding:14px;border-radius:9px;background:#eaf7ef;color:#2f7454;font-size:14px;margin-top:15px}.feedback.error{background:#fff2e9;color:#925537}.answer-slot{min-height:65px;border:2px dashed #d9cfed;border-radius:10px;padding:14px;display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:20px 0}.word-chip{padding:10px 15px;border-radius:8px;background:var(--pale);color:var(--purple);font-size:19px}.word-bank{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}.matching{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:25px 0}.match-column{display:flex;flex-direction:column;gap:10px}.match-button{padding:14px 10px;border:2px solid var(--line);border-radius:10px;font-size:17px}.match-button.chosen{border-color:var(--purple);background:var(--pale)}.match-button.matched{background:#e8f7ef;border-color:#75b69a;color:#397457}.result{text-align:center;padding:22px 0}.result-badge{background:#eee7ff;color:var(--purple);font-size:38px;border-radius:50%;width:85px;height:85px;display:grid;place-items:center;margin:auto auto 20px}.result-score{font-size:38px;font-weight:700;color:var(--purple);margin:22px 0 0}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);width:max-content;background:#312548;color:white;padding:14px 23px;border-radius:12px;z-index:100;box-shadow:0 5px 25px #0002;font-size:14px}.recording-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#de574d;margin-right:7px;animation:pulse 1s infinite}audio{width:100%;margin-top:20px}.record-status{min-height:24px;margin-top:15px;font-size:14px;color:var(--muted)}@keyframes pulse{50%{opacity:.25}}@media(min-width:1500px){main{padding-top:45px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 310px}.hero{min-height:260px}}@media(max-width:1150px){.sidebar{width:205px;padding:30px 17px}.app-shell{margin-left:205px}main{padding:28px 25px}.topbar{padding:0 25px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 235px;gap:18px}.hero{padding:25px 20px}.letter-art{grid-template-columns:repeat(2,45px);gap:7px}.letter-art span{height:50px;font-size:29px}.hero h2{font-size:23px}.stat{padding:14px 12px;gap:10px}.stat-label{font-size:11px}.rail-card{padding:18px}h1{font-size:28px}}@media(max-width:930px){.sidebar{width:78px;padding:25px 12px}.brand>span:last-child,.nav-label,.nav-item>span,.sidebar-bottom{display:none}.brand{justify-content:center}.nav-item{padding:13px;justify-content:center}nav{margin-top:35px}.app-shell{margin-left:78px}.intro{align-items:flex-start}.audience{margin-top:3px}.activity-grid{grid-template-columns:1fr}.alphabet-grid{grid-template-columns:repeat(4,1fr)}}@media(max-width:700px){.sidebar{inset:auto 0 0;width:100%;height:71px;border-right:0;border-top:1px solid var(--line);padding:6px 9px}.brand{display:none}nav{flex-direction:row;margin:0;justify-content:space-around;gap:2px}.nav-item{flex-direction:column;gap:2px;padding:6px 9px;min-width:52px;font-size:10px}.nav-item>span{display:block}.nav-item svg{width:19px;height:19px}.app-shell{margin:0;padding-bottom:71px}.topbar{height:65px;padding:0 20px}.breadcrumb{font-size:12px}.breadcrumb span{margin:0 8px}.header-actions{gap:10px}.language-tag{display:none}main{padding:25px 20px 15px}.intro{display:block;margin-bottom:23px}h1{font-size:27px}.intro p{font-size:13px}.audience{width:max-content;margin-top:18px}.stats{gap:8px;margin-bottom:20px}.stat{padding:12px 9px;gap:8px;align-items:flex-start}.stat-icon{width:29px;height:29px;border-radius:8px;flex-shrink:0}.stat-icon svg{width:16px;height:16px}.stat-value{font-size:18px}.stat-value small{display:none}.stat-label{font-size:9px;line-height:1.5}.dashboard-grid{grid-template-columns:1fr}.hero{min-height:225px;padding:24px}.hero h2{font-size:24px}.hero-copy{max-width:65%}.hero p{font-size:12px}.letter-art{grid-template-columns:repeat(2,46px)}.lesson-grid{gap:11px}.lesson-card{padding:15px}.lesson-card h3{font-size:14px}.lesson-card p{font-size:11px}.lesson-meta{font-size:9px}.practice-banner{padding:15px}.practice-banner>span{display:none}.practice-banner p{font-size:11px}.rail{display:grid;grid-template-columns:1fr 1fr;gap:14px}.rail-card{margin:0}.rail .tip{grid-column:1/-1}.rail-heading h3{font-size:12px}.pill{font-size:8px}.word{font-size:28px}.word-note{font-size:10px}.rail-card{padding:15px}.goal-header{align-items:flex-start;gap:6px}.goal-header strong{font-size:13px}.goal-subtitle{font-size:11px}.alphabet-grid{grid-template-columns:repeat(3,1fr);gap:10px}.alphabet-card{padding:15px}.speak-grid{grid-template-columns:1fr}.phrase-card h3{font-size:23px}footer{padding:20px;font-size:10px;gap:20px}dialog{padding:23px}.question{font-size:24px}.choices .choice{font-size:16px}.result h2{font-size:22px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.trace-wrap{border:2px solid var(--line);border-radius:16px;background:#fdfbff;margin:22px 0 16px;overflow:hidden}.trace-wrap canvas{display:block;width:100%;height:auto;touch-action:none;cursor:crosshair}.trace-example{margin:22px 0 15px;font-size:15px}.trace-example strong{font-size:22px;margin:0 10px}.trace-navigation{display:flex;justify-content:space-between;align-items:center;margin-top:23px;border-top:1px solid var(--line);padding-top:15px;font-size:12px;color:var(--muted)}.practice-banner>span svg{width:30px;height:30px}body[data-profile=kids]{--purple:#7753cb;--pale:#f0e8ff;--bg:#fffaf0;--line:#eee4d8;--font:'Nunito','Noto Sans Malayalam',sans-serif;font-size:18px}body[data-profile=kids] h1,body[data-profile=kids] h2,body[data-profile=kids] h3{font-weight:900}body[data-profile=kids] .hero{background:#7753cb;border-radius:24px;border-bottom:6px solid #6040af}body[data-profile=kids] .intro .eyebrow{color:#ae7627}body[data-profile=kids] .lesson-card{border:2px solid #e8def4;border-bottom:5px solid #dfd2ef;border-radius:20px}body[data-profile=kids] .lesson-card:nth-child(2){background:#fff5e5;border-color:#f1dbb7}body[data-profile=kids] .lesson-card:nth-child(3){background:#ecf8f3;border-color:#cce9dc}body[data-profile=kids] .lesson-card:nth-child(4){background:#eff6fe;border-color:#d5e5f7}body[data-profile=kids] .lesson-card h3{font-size:18px}body[data-profile=kids] .lesson-card p{font-size:14px}body[data-profile=kids] .primary{background:#7753cb;border-bottom:4px solid #58369f;font-size:17px;border-radius:14px}body[data-profile=kids] .stat{border-radius:17px}body[data-profile=kids] .activity-card{border-radius:23px;border-bottom:5px solid #e2d6f1}body[data-profile=kids] .alphabet-card{border:2px solid #e2d5f1;border-bottom:5px solid #d9c5ed;border-radius:19px}body[data-profile=kids] .alphabet-card:nth-child(3n+2){background:#fff1d8;border-color:#f1dba9}body[data-profile=kids] .alphabet-card:nth-child(3n){background:#e5f6ef;border-color:#c6e6d8}body[data-profile=kids] .alphabet-card .glyph{font-size:49px}body[data-profile=kids] .nav-item{font-size:15px;font-weight:800}body[data-profile=kids] .choice{border-radius:16px;border-bottom-width:4px;font-size:19px}body[data-profile=kids] .hero p{font-size:15px}body[data-profile=kids] .tip{background:#fff0cc}body[data-profile=kids] .page-note{background:#fff0cc;color:#816631}body[data-profile=teens]{--purple:#326da0;--pale:#e8f1fa;--bg:#f6f9fc}body[data-profile=teens] .hero{background:#326da0}body[data-profile=teens] .hero button{color:#326da0}body[data-profile=teens] .hero .eyebrow,body[data-profile=teens] .hero p{color:#e0edf9}@media(max-width:700px){body[data-profile=kids] .nav-item{font-size:10px}body[data-profile=kids] .lesson-card h3{font-size:16px}body[data-profile=kids] .lesson-card p{font-size:13px}body[data-profile=kids] .hero p{font-size:13px}.trace-example strong{margin:0 5px}}
