#mainNav:not([data-ready="true"]){visibility:hidden}
/* Minimal design system: one language, three destinations, one main action. */
:root,:root[data-theme="light"]{--teal:#136f63;--teal2:#0d554c;--ink:#192c32;--muted:#62737a;--bg:#fff;--card:#fff;--line:#e3e9ec;--soft:#edf6f3;--tint:#edf6f3;--simple-neutral:#f4f6f7;--l-bg:var(--bg);--l-surface:var(--card);--l-border:var(--line);--l-text:var(--ink);--l-muted:var(--muted);--l-teal:var(--teal);--l-teal-dark:#fff;--l-blue:var(--teal);--l-gold:#a96a14}
:root[data-theme="dark"]{--teal:#82d7c7;--teal2:#b0ebdf;--ink:#edf6f5;--muted:#adc1c4;--bg:#101e23;--card:#101e23;--line:#2b4148;--soft:#19342f;--tint:#19342f;--simple-neutral:#192a30}
body,body.view-home,body.view-profile,body.view-practice{display:block;margin:0;background:var(--bg);color:var(--ink);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:1rem;line-height:1.55;padding-bottom:calc(88px + env(safe-area-inset-bottom));min-height:100vh;min-height:100dvh}
body.view-profile,body.view-practice{--card:inherit;--ink:inherit;--muted:inherit;--line:inherit;--soft:inherit}
button,a,input,summary{touch-action:manipulation}button{color:inherit}a{color:var(--teal)}h1,h2,h3{letter-spacing:-.035em}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--teal);outline-offset:4px}h1:focus{outline:none}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.topbar,body.view-home .topbar,body.view-profile .topbar,body.view-practice .topbar{position:relative;display:flex;align-items:center;justify-content:space-between;background:var(--bg);color:var(--ink);border:0;min-height:80px;max-width:640px;margin:0 auto;padding:16px 28px;gap:16px}
.brand,body.view-home .brand,body.view-profile .brand,body.view-practice .brand{font-size:1rem;font-weight:750;letter-spacing:-.025em;color:var(--ink);white-space:normal;overflow:visible}.simple-language{width:40px;height:40px;min-width:40px;border:0;border-radius:50%;background:var(--simple-neutral);color:var(--ink);font-size:.8125rem;font-weight:650;cursor:pointer}
.wrap,.wrap.wide,body.view-home .wrap,body.view-profile .wrap,body.view-practice .wrap{display:block;width:100%;max-width:640px;padding:28px 28px 24px;margin:0 auto;min-width:0}
#app>h1,.simple-home-content>h1{font-size:clamp(1.8rem,4.8vw,2.25rem);font-weight:750;line-height:1.17;margin:0 0 24px;max-width:520px}
.simple-home #app{min-height:calc(100dvh - 168px - env(safe-area-inset-bottom));display:flex;flex-direction:column}.simple-home-content>h1{max-width:420px;margin-bottom:12px}.simple-intro{color:var(--muted);font-size:1rem;line-height:1.55;margin:0 0 28px}.simple-device-note{font-size:.75rem;line-height:1.55;color:var(--muted);margin:40px 0 0}.simple-home .simple-device-note{margin-top:auto;padding-top:48px}
.simple-icon{width:24px;height:24px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.nav{position:fixed;top:auto;bottom:0;left:0;right:0;display:flex;flex-direction:row;align-items:stretch;justify-content:center;gap:0;width:100%;height:auto;min-height:76px;padding:8px 16px calc(8px + env(safe-area-inset-bottom));background:var(--bg);border:0;border-top:1px solid var(--line);box-shadow:none;z-index:40}
.nav button{flex:1 1 0;max-width:200px;width:auto;min-width:0;min-height:58px;padding:4px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;background:transparent;border:0;border-radius:10px;color:var(--muted);font-size:.75rem;font-weight:500;line-height:1.2;cursor:pointer}.nav button.active{color:var(--teal);background:transparent;font-weight:700}.nav button:hover{background:var(--simple-neutral)}.nav .simple-icon{width:24px;height:24px}
.simple-next{background:var(--soft);border:0;border-radius:18px;padding:24px;margin:0 0 24px}.simple-lesson-number{font-size:.875rem;margin:0 0 10px;color:var(--muted)}.simple-next h2{margin:0 0 22px;font-size:1.5rem;font-weight:700;line-height:1.3}.simple-primary{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#136f63;color:#fff;border:0;border-radius:12px;min-height:58px;width:100%;padding:14px 18px;font-size:1rem;font-weight:650;text-align:left;cursor:pointer}.simple-primary:hover{background:#0d554c}.simple-primary .simple-icon{width:22px;height:22px}
.simple-progress{height:6px;background:var(--line);border-radius:8px;overflow:hidden;margin:18px 0 10px}.simple-progress i{display:block;height:100%;background:var(--teal);border-radius:8px}.simple-progress-caption{font-size:.8125rem;color:var(--muted);margin:0}
.simple-row{display:flex;align-items:center;gap:16px;width:100%;min-height:66px;text-align:left;padding:16px 0;background:transparent;border:0;border-bottom:1px solid var(--line);font-size:1rem;line-height:1.4;font-weight:450;cursor:pointer}.simple-row>span{flex:1;min-width:0}.simple-row>small{font-size:.875rem;color:var(--muted);max-width:35%;overflow-wrap:anywhere}.simple-row>.simple-icon:last-child{width:18px;height:18px;color:var(--muted)}.simple-row:hover{color:var(--teal)}
.simple-back,.simple-text-button{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:8px 0;background:none;border:0;border-radius:0;color:var(--teal);font-size:.875rem;font-weight:550;cursor:pointer}.simple-back{margin:0 0 16px}.simple-back .simple-icon{width:18px;height:18px}.simple-text-button{display:flex}
.simple-label{font-size:.875rem;font-weight:500;color:var(--muted);margin:24px 0 8px}#academyUnit{margin:0 0 20px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--ink);min-height:52px;font-size:1rem;max-width:100%}.simple-lesson{display:flex;align-items:center;gap:14px;width:100%;min-height:74px;padding:16px 0;background:none;border:0;border-bottom:1px solid var(--line);text-align:left;font-size:1rem;line-height:1.4;cursor:pointer}.simple-lesson>span:nth-child(2){flex:1}.simple-lesson:disabled{cursor:not-allowed;color:var(--muted)}.simple-lesson-index{display:flex;align-items:center;justify-content:center;min-width:32px;height:32px;font-size:.875rem;color:var(--teal)}.simple-lesson>.simple-icon{width:18px;height:18px;color:var(--muted)}
.dictionary-search{display:flex;align-items:center;gap:8px;width:100%;border:1px solid var(--line);border-radius:14px;padding:6px 6px 6px 14px;margin:0 0 32px;background:var(--bg)}.dictionary-search>.simple-icon{color:var(--muted);width:20px;height:20px}.dictionary-search input[type="search"]{flex:1;min-width:0;width:0;border:0;outline:none;box-shadow:none;border-radius:0;background:transparent;color:var(--ink);font-size:1rem;min-height:44px;padding:6px 0;appearance:none}.dictionary-search:focus-within{border-color:var(--teal);box-shadow:0 0 0 2px var(--soft)}.dictionary-search input:focus-visible{outline:none}.dictionary-search button{min-height:44px;border:0;border-radius:10px;background:#136f63;color:#fff;font-size:.875rem;font-weight:600;padding:10px 16px;cursor:pointer}
.dictionary-entry-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.live-entry{padding:8px 0 0;overflow-wrap:anywhere}.live-entry h2{font-size:2rem;font-weight:750;line-height:1.2;margin:0}.phonetic{font-size:1rem;color:var(--muted);margin:8px 0 0}.dictionary-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.simple-icon-button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;border-radius:50%;border:1px solid var(--line);background:var(--bg);color:var(--ink);cursor:pointer}.simple-icon-button .simple-icon{width:21px;height:21px}.dict-save.selected{color:var(--teal);background:var(--soft)}.dict-save.selected .simple-icon{fill:var(--teal)}
.dictionary-translation{color:var(--teal);font-size:1.25rem;font-weight:600;margin:18px 0 10px}.dictionary-part,.dictionary-language{font-size:.875rem;color:var(--muted);margin:14px 0}.dictionary-definition{font-size:1rem;margin:12px 0 18px}.live-entry blockquote{margin:18px 0 20px;padding:16px 18px;border:0;border-radius:12px;background:var(--simple-neutral);font-size:1rem;line-height:1.55}.dictionary-attribution{font-size:.75rem;color:var(--muted);padding:20px 0;line-height:1.7}.dictionary-attribution a{color:var(--muted);text-underline-offset:3px}.dictionary-status{color:var(--muted);font-size:.9375rem;line-height:1.55;margin:24px 0}
.simple-details{background:transparent;border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;padding:0;margin:12px 0 0}.simple-details+.simple-details{border-top:0;margin-top:0}.simple-details summary{display:list-item;min-height:56px;padding:16px 0;font-size:.9375rem;font-weight:450;color:var(--ink);cursor:pointer;list-style-position:inside}.simple-details[open]>summary{color:var(--teal)}.simple-details li{margin:12px 0}.simple-details ol{padding-left:24px}.simple-details>.simple-text-button{margin:8px 0 12px}
.dictionary-course-row{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line);padding:14px 0}.dictionary-course-word{flex:1;min-width:0;text-align:left;background:none;border:0;padding:6px 0;font:inherit;cursor:pointer}.dictionary-course-word strong{display:block;font-size:1rem;font-weight:600}.dictionary-course-word span{display:block;font-size:.875rem;color:var(--muted);margin-top:4px}.saved-word{border-bottom:1px solid var(--line);padding:12px 0}.saved-word .live-entry{padding:16px 0}.saved-word .dictionary-course-word{display:block}
.simple-person{display:flex;align-items:center;gap:18px;margin:30px 0 32px}.simple-avatar{width:64px;height:64px;min-width:64px;border-radius:50%;background:var(--soft);color:var(--teal);display:flex;align-items:center;justify-content:center;font-size:1.5rem;font-weight:600}.simple-person h2{font-size:1.25rem;margin:0;font-weight:700}.simple-person p{font-size:.9375rem;color:var(--muted);margin:4px 0 0}.simple-profile-rows{border-top:1px solid var(--line)}
.simple-options{margin-top:20px}.simple-options button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:64px;text-align:left;padding:16px 0;background:transparent;border:0;border-bottom:1px solid var(--line);font-size:1rem;cursor:pointer}.simple-options button[aria-pressed="true"]{color:var(--teal);font-weight:600}.simple-toggle{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 0;font-size:1rem;font-weight:400}.simple-toggle input{width:24px;height:24px;accent-color:var(--teal)}.simple-progress-stat{display:flex;flex-direction:column;margin:32px 0;color:var(--muted)}.simple-progress-stat strong{font-size:3rem;font-weight:650;color:var(--teal);line-height:1.2}
/* Existing advanced tools remain behind More settings and optional lesson resources. */
.btn,body.view-profile .btn,body.view-practice .btn,.lesnav .btn{background:#136f63;border-color:#136f63;color:#fff;border-radius:12px;box-shadow:none;font-weight:600}.btn.secondary,body.view-profile .btn.secondary,body.view-practice .btn.secondary,.lesnav .btn.secondary{background:var(--bg);color:var(--teal);border-color:var(--line);box-shadow:none}.btn.ghost,body.view-profile .btn.ghost{background:transparent;color:var(--ink);border-color:var(--line);box-shadow:none}.card{background:var(--card);border-color:var(--line);border-radius:14px;box-shadow:none}.f-group,.f-pass,.f-acadcard,.lesnav-in{background:var(--card);border-color:var(--line);color:var(--ink);box-shadow:none}.f-row{color:var(--ink);border-color:var(--line)}.f-lab .en,.f-val,.f-chev,.f-passstage,.f-acadcard .en,.f-acadcard .chev,.lesnav .navind span{color:var(--muted)}.f-stagebar{background:var(--line)}.lesnav .navind{color:var(--ink)}.f-ic{background:var(--soft);color:var(--teal)}
html[data-ui-language="en"] .f-lab .so,html[data-ui-language="en"] .f-acadcard .so{display:none}html[data-ui-language="en"] .f-lab .en{font-size:1rem;color:var(--ink)}html[data-ui-language="so"] .f-lab .en,html[data-ui-language="so"] .f-acadcard .en{display:none}
body.inLesson .lesnav{left:0;bottom:calc(10px + env(safe-area-inset-bottom))}.lesnav-in{max-width:600px}.lessonfoot{bottom:96px}body.inLesson .wrap{padding-bottom:110px}#simpleResources{margin:32px 0 12px}#simpleResources .simple-text-button{padding:8px 12px}
@media(min-width:1024px){.topbar,body.view-home .topbar{max-width:920px;padding-left:28px;padding-right:28px;min-height:96px}.wrap,.wrap.wide{padding-top:44px}.simple-home #app{min-height:calc(100dvh - 184px)}.simple-home-content>h1{font-size:2.5rem}.nav button{max-width:190px}.simple-next{padding:30px}.simple-row{min-height:72px}}
@media(max-width:600px){.topbar,body.view-home .topbar,body.view-profile .topbar,body.view-practice .topbar{min-height:76px;padding:14px 24px}.wrap,.wrap.wide,body.view-home .wrap,body.view-profile .wrap,body.view-practice .wrap{padding:24px 24px 20px}.simple-home #app{min-height:calc(100dvh - 164px - env(safe-area-inset-bottom))}.simple-next{padding:22px}.simple-next h2{font-size:1.35rem}.simple-home-content>h1{font-size:1.9rem;max-width:330px}.simple-intro{font-size:.9375rem;margin-bottom:26px}.simple-next .simple-primary{font-size:1rem}.simple-profile-rows .simple-row{min-height:64px;gap:14px}.simple-person{margin:28px 0}.simple-row>small{font-size:.8125rem}.dictionary-search button{padding:10px 12px}.dictionary-actions{gap:6px}.live-entry h2{font-size:1.8rem}}
@media(max-width:360px){.topbar,.wrap,body.view-home .topbar,body.view-home .wrap,body.view-profile .wrap,body.view-practice .wrap{padding-left:18px;padding-right:18px}.simple-home-content>h1{font-size:1.75rem}.simple-next{padding:18px}.simple-primary{padding:12px 14px;font-size:.9375rem}.simple-profile-rows .simple-row{gap:10px}.simple-row{font-size:.9375rem}.simple-person{gap:12px}.simple-avatar{width:52px;height:52px;min-width:52px}.simple-person p{font-size:.875rem}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.simple-welcome h1{font-size:2rem;line-height:1.2;margin:0 0 16px}.simple-welcome form{margin-top:36px}.simple-welcome input{background:var(--bg);color:var(--ink);border-color:var(--line);margin-bottom:20px}.simple-welcome .simple-primary:disabled{opacity:.6;cursor:wait}
@media print{.simple-language,.simple-primary,.simple-back{display:none}.simple-next{background:#fff;color:#000}}
/* Legacy inline styles load after this stylesheet; explicit overrides are needed. */
#app .f-group,#app .f-pass,#app .f-acadcard{background:var(--card)!important;color:var(--ink)!important;border-color:var(--line)!important}
#app .f-row,#app .f-lab,#app .f-lab .en,#app .f-lab .so{color:var(--ink)!important}
#app .f-val,#app .f-chev{color:var(--muted)!important}
#academyTutor textarea{width:100%;min-height:100px;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:12px}
#academyTutor button{background:#136f63;color:white;border:0;border-radius:10px;padding:12px 18px;min-height:48px}

.conversation-audio{display:flex;gap:24px;flex-wrap:wrap;margin:-8px 0 18px}.conversation-audio button{min-height:44px}

.conversation-translation{color:var(--muted);font-size:.95rem;margin-top:-6px;padding-left:12px;border-left:3px solid var(--teal);line-height:1.6}
.coach-today{margin-top:28px;padding:22px;background:var(--soft);border-radius:16px}.coach-today h2{font-size:1.2rem;margin:0 0 10px}.coach-today p{font-size:.95rem}.coach-today .simple-row:last-child{border-bottom:0}.coach-plan{display:grid;gap:14px}.coach-plan select{width:100%;min-height:52px;padding:12px;border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:12px}.coach-stat{display:flex;align-items:center;gap:20px;border-bottom:1px solid var(--line);padding:20px 0}.coach-stat strong{font-size:2rem;color:var(--teal);min-width:64px}.coach-phrase{padding:12px 0;border-bottom:1px solid var(--line)}.coach-recorder{margin-top:24px}.coach-recorder audio{width:100%;margin-top:16px}.coach-recorder button:disabled{opacity:.55;cursor:default}.coach-milestone{color:var(--teal);font-weight:600}
