@font-face{font-family:LocalRounded;src:local('Avenir Next');font-display:swap}
:root{--bg:#f8f8f2;--paper:#fffefa;--ink:#294439;--muted:#64746a;--green:#225e46;--line:#e1e7dc;--mint:#e3eee1;--peach:#f6e4d8;--yellow:#f8eecb;--lilac:#ede6f3;--radius:24px;font-family:LocalRounded,'Avenir',system-ui,-apple-system,'PingFang HK',sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}a{color:inherit;text-decoration:none}button{border:0;background:none}button:disabled{cursor:default;opacity:.48}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #b48b39;outline-offset:4px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(32px,3.5vw,46px);font-weight:650;line-height:1.17;letter-spacing:-1.8px}h2{font-size:25px;font-weight:650;letter-spacing:-.5px}h3{font-size:18px}p{line-height:1.65}small{line-height:1.5}.muted{color:var(--muted)}.eyebrow{text-transform:uppercase;letter-spacing:1.7px;font-size:14px;font-weight:750;color:var(--muted)}.icon{width:21px;height:21px;flex:none}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.skip-link{position:fixed;top:-80px;left:20px;z-index:100;background:var(--green);color:white;padding:12px}.skip-link:focus{top:12px}
.layout{max-width:1660px;margin:auto;display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;border-right:1px solid var(--line);padding:35px 22px;display:flex;flex-direction:column;gap:34px;background:var(--paper)}.brand{display:flex;align-items:center;gap:10px;text-align:left;padding:0}.brand img{width:41px;height:41px}.brand strong{display:block;font-size:15px;letter-spacing:-.5px}.brand small{font-size:14px;letter-spacing:2px;color:var(--muted)}.side-caption{font-size:14px;letter-spacing:1.7px;color:#7a867d;padding:0 13px;margin-bottom:12px}.side-nav{display:flex;flex-direction:column;gap:9px}.nav-link{display:flex;align-items:center;gap:13px;padding:13px 15px;border-radius:13px;color:var(--muted);font-size:14px;font-weight:600;text-align:left}.nav-link:hover{background:#f2f4eb}.nav-link.active{color:var(--green);background:var(--mint)}.nav-link .dot{margin-left:auto;background:var(--green);color:white;padding:2px 6px;border-radius:10px;font-size:14px}.side-bottom{margin-top:auto}.side-note{background:#f6f4e9;border:1px solid #eee8d7;border-radius:18px;padding:18px;font-size:14px;line-height:1.6}.side-note b{display:block;margin:9px 0 4px}.side-note svg{color:#6f865b}.side-bottom .nav-link{padding-left:5px;margin-top:23px;font-size:14px}.main-column{min-width:0}.topbar{padding:27px 42px 19px;display:flex;align-items:center;justify-content:space-between;gap:15px}.crumb{font-size:14px;color:var(--muted)}.crumb b{color:var(--ink);font-weight:500}.top-controls{display:flex;gap:13px;align-items:center}.language-btn{font-size:14px;padding:8px 10px;border-radius:9px;border:1px solid var(--line)}.profile-button{display:flex;gap:10px;align-items:center;text-align:left;padding:4px;max-width:190px}.profile-button span:not(.avatar){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:650}.avatar{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;background:var(--yellow);border-radius:50%;font-size:23px;flex:none}.avatar.big{width:64px;height:64px;font-size:38px}.avatar.bear{background:var(--peach)}.avatar.cat{background:var(--lilac)}.avatar.rabbit{background:var(--mint)}.main-content{max-width:1250px;padding:10px 42px 70px;margin:auto}.page-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-end;margin:12px 0 27px}.page-head h1{font-size:32px;letter-spacing:-1px;margin-bottom:9px}.page-head p{font-size:14px;margin:0;color:var(--muted)}.pill{font-size:14px;border:1px solid var(--line);border-radius:40px;padding:7px 12px;white-space:nowrap}.pill.soft{background:var(--mint);border:0;color:var(--green)}.dev-label{font-size:14px;color:#7a795e;background:#f3f0de;border-radius:6px;padding:4px 8px;white-space:nowrap}.mobile-brand,.mobile-nav{display:none}
.hero{background:#edf0df;border:1px solid #e3e7d4;border-radius:var(--radius);display:grid;grid-template-columns:1.05fr 1fr;align-items:center;min-height:295px;overflow:hidden;position:relative}.hero-copy{padding:33px 0 33px 34px;z-index:1}.hero h1{font-size:clamp(31px,3vw,43px);letter-spacing:-1.6px;margin:14px 0 16px}.hero p{font-size:14px;max-width:340px;color:#526651;margin-bottom:23px}.hero img{width:110%;max-width:520px;justify-self:end;margin-left:-10%;align-self:end}.primary,.secondary,.quiet-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:12px;padding:14px 20px;font-size:14px;font-weight:650;min-height:45px}.primary{background:var(--green);color:#fffef7;box-shadow:0 3px 0 #173e3017}.primary:hover{background:#184d37}.secondary{background:var(--paper);border:1px solid var(--line)}.secondary:hover{border-color:#9cae9e}.quiet-button{padding:10px 3px;font-size:14px;color:var(--green)}.button-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.metrics-strip{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);border-radius:18px;margin:20px 0 31px;background:var(--paper);padding:20px 0}.mini-stat{display:flex;align-items:center;justify-content:center;gap:13px;border-right:1px solid var(--line)}.mini-stat:last-child{border:0}.mini-stat .stat-icon{display:flex;padding:10px;border-radius:12px;background:var(--yellow)}.mini-stat:nth-child(2) .stat-icon{background:var(--mint)}.mini-stat:nth-child(3) .stat-icon{background:var(--peach)}.mini-stat strong{display:block;font-size:22px;line-height:1.1}.mini-stat small{font-size:14px;color:var(--muted)}.section-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 16px}.section-title h2{margin:0;font-size:21px}.section-title p{margin:6px 0 0;font-size:14px;color:var(--muted)}.home-columns{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(230px,1fr);gap:22px}.lesson-feature{display:flex;align-items:center;gap:21px;background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:22px;text-align:left;width:100%;margin-bottom:13px}.lesson-feature:hover{border-color:#b7c6af;transform:translateY(-1px)}.lesson-symbol{width:76px;height:80px;background:var(--peach);border-radius:18px;display:flex;align-items:center;justify-content:center;font-size:39px;flex:none}.lesson-feature h3{font-size:18px;margin:6px 0 8px}.lesson-feature p{font-size:14px;color:var(--muted);margin:0}.lesson-feature .arrow{margin-left:auto}.lesson-feature .eyebrow{font-size:14px}.review-card{border:1px solid var(--line);border-radius:20px;padding:22px;background:var(--paper);position:relative;min-height:180px}.review-card .review-icon{width:39px;height:39px;display:flex;align-items:center;justify-content:center;background:var(--lilac);border-radius:12px;margin-bottom:16px}.review-card h3{margin-bottom:9px;font-size:18px}.review-card p{font-size:14px;color:var(--muted)}.review-card .pill{position:absolute;right:18px;top:23px}.family-note{margin-top:25px;border:1px dashed #cbd8bf;display:flex;align-items:center;gap:20px;background:#f0f4e9;padding:20px 23px;border-radius:18px}.family-note>span{font-size:32px}.family-note h3{font-size:14px;margin:0 0 5px}.family-note p{font-size:14px;margin:0;color:var(--muted)}.family-note .quiet-button{margin-left:auto;flex:none}.page-footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);margin-top:33px;padding-top:20px;font-size:14px;color:var(--muted)}
.course-intro{display:flex;gap:23px;align-items:center;background:var(--green);color:#f9f8e8;border-radius:22px;padding:25px 30px;margin-bottom:24px}.course-intro .eyebrow{color:#c7d8bd}.course-intro h2{margin:9px 0;font-size:26px}.course-intro p{font-size:14px;margin:0;max-width:600px;color:#d8e5d0}.course-intro>span{font-size:52px}.course-progress{margin-left:auto;min-width:130px;text-align:right;font-size:14px}.progress-track{height:7px;background:#ffffff2b;border-radius:20px;overflow:hidden;margin-top:11px}.progress-track i{height:100%;display:block;background:#e5c373;border-radius:20px}.unit{border:1px solid var(--line);background:var(--paper);border-radius:21px;overflow:hidden;margin-bottom:18px}.unit-heading{padding:21px 24px;display:flex;align-items:center;gap:17px;border-bottom:1px solid var(--line)}.unit-heading .unit-number{font-size:25px;opacity:.6;font-weight:500}.unit-heading h2{font-size:18px;margin:0 0 5px}.unit-heading p{font-size:14px;margin:0;color:var(--muted)}.unit-heading .unit-check{margin-left:auto}.peach{background:var(--peach)!important}.mint{background:var(--mint)!important}.yellow{background:var(--yellow)!important}.lilac{background:var(--lilac)!important}.course-row{display:flex;align-items:center;gap:16px;padding:19px 24px;width:100%;text-align:left;border-bottom:1px solid #eef0e9}.course-row:last-child{border:0}.course-row:hover{background:#f8faf3}.course-row .lesson-symbol{width:49px;height:49px;font-size:27px;border-radius:13px;background:#f2f3ea}.course-row h3{font-size:15px;margin:0 0 5px}.course-row p{font-size:14px;color:var(--muted);margin:0}.course-row .row-end{margin-left:auto;font-size:14px;color:var(--muted);display:flex;align-items:center;gap:14px}.finished{color:var(--green)}.search-bar{display:flex;gap:13px;align-items:center;border:1px solid var(--line);background:var(--paper);padding:12px 17px;border-radius:13px;margin-bottom:15px}.search-bar input{border:0;outline:none;background:none;width:100%;font-size:14px;color:var(--ink)}.filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}.filter{font-size:14px;border-radius:30px;border:1px solid var(--line);padding:8px 14px;background:var(--paper)}.filter[aria-pressed=true]{background:var(--green);color:white;border-color:var(--green)}.word-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.word-card{padding:23px 18px 19px;border:1px solid var(--line);border-radius:19px;background:var(--paper);text-align:center;min-width:0}.word-card>span{font-size:43px;display:block;margin-bottom:17px}.word-card h3{font-size:23px;line-height:1.5;margin:0 0 5px}.word-card .word-en{font-size:14px;color:var(--muted);min-height:38px;margin:0 0 7px}.word-card .jyutping{font-size:14px;color:#74816c;min-height:18px}.word-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:17px;border-top:1px solid #edf0e6;padding-top:14px}.word-actions button{font-size:14px;padding:6px 0;display:flex;align-items:center;gap:6px}.word-actions .icon{width:17px;height:17px}.word-card.long h3{font-size:19px}.empty{padding:44px 25px;text-align:center;border:1px dashed #cbd8bf;border-radius:22px;background:var(--paper);grid-column:1/-1}.empty>span{font-size:43px}.empty h2{font-size:22px;margin:16px 0 12px}.empty p{font-size:14px;color:var(--muted);max-width:440px;margin:0 auto 22px}.panel{border:1px solid var(--line);background:var(--paper);padding:25px;border-radius:21px;margin-bottom:20px}.panel h2{font-size:20px;margin-bottom:12px}.panel p{font-size:14px;color:var(--muted)}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:20px}.two-col>*{min-width:0}.field{margin-bottom:17px}.field label{display:block;font-size:14px;font-weight:650;margin-bottom:9px}.field input,.field select{width:100%;border:1px solid #ccd6c7;border-radius:10px;background:var(--paper);padding:12px;color:var(--ink)}.small-note{font-size:14px!important;color:var(--muted);line-height:1.7}.hint-box{background:#f5f2e4;border-radius:13px;padding:14px 17px;color:#6b684f;font-size:14px;line-height:1.6}.warning{background:#fff2de;color:#795924;border:1px solid #e5c798;border-radius:12px;padding:13px 17px;font-size:14px;margin-bottom:15px}.danger{color:#a34835}.progress-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:22px}.metric-box{background:var(--paper);padding:23px;border:1px solid var(--line);border-radius:18px}.metric-box strong{display:block;font-size:33px;margin:12px 0 7px;letter-spacing:-1px}.metric-box small{font-size:14px;color:var(--muted)}.history-row{display:flex;align-items:center;gap:15px;border-top:1px solid var(--line);padding:15px 0;font-size:14px}.history-row .date{margin-left:auto;color:var(--muted);font-size:14px;white-space:nowrap}.history-row small{display:block;color:var(--muted);font-size:14px;margin-top:5px}.profile-row{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.profile-row .primary,.profile-row .secondary{padding:8px 12px;min-height:36px;font-size:14px;margin-left:auto}.profile-row .profile-name{flex:1;min-width:0;overflow-wrap:anywhere}.profile-row small{display:block;font-size:14px;color:var(--muted)}.avatar-choices{display:flex;gap:12px;margin:14px 0 22px}.avatar-choice{padding:4px;border:2px solid transparent;border-radius:50%}.avatar-choice[aria-pressed=true]{border-color:var(--green)}.age-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:15px 0 22px}.age-choice{padding:15px;border:1px solid var(--line);border-radius:14px;text-align:left}.age-choice[aria-pressed=true]{background:var(--mint);border-color:var(--green)}.age-choice strong,.age-choice small{display:block}.age-choice strong{font-size:17px}.age-choice small{font-size:14px;margin-top:5px;color:var(--muted)}
.welcome{max-width:990px;margin:35px auto;display:grid;grid-template-columns:1fr 1fr;background:var(--paper);border:1px solid var(--line);border-radius:27px;overflow:hidden}.welcome-art{background:#edf0df;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:40px 20px}.welcome-art img{width:120%;max-width:530px}.welcome-art p{font-size:14px;max-width:230px;text-align:center;color:#5b725a}.welcome-form{padding:37px}.welcome-form h1{font-size:32px;margin:14px 0 15px}.welcome-form>p{font-size:14px;color:var(--muted)}.welcome-form .primary{width:100%}.welcome-top{display:flex;align-items:center;justify-content:space-between;max-width:1080px;margin:25px auto;padding:0 25px}.welcome-footer{max-width:650px;text-align:center;margin:25px auto;font-size:14px;color:var(--muted);padding:0 25px}
.practice-shell{max-width:815px;margin:auto;padding:27px 25px 60px}.practice-nav{display:flex;gap:18px;align-items:center;margin-bottom:25px}.practice-nav a,.practice-nav button{font-size:14px;display:flex;align-items:center;gap:7px;flex:none}.practice-nav .track{height:7px;border-radius:20px;background:#e2e8dc;flex:1;overflow:hidden}.practice-nav .track i{height:100%;display:block;border-radius:20px;background:#688f61;transition:width .25s}.practice-nav .counter{font-size:14px;color:var(--muted)}.practice-card{background:var(--paper);border:1px solid var(--line);border-radius:27px;overflow:hidden}.practice-heading{background:var(--mint);padding:16px 25px;display:flex;justify-content:space-between;align-items:center;font-size:14px;gap:10px}.practice-body{padding:30px 37px;text-align:center;min-height:380px}.step-label{font-size:14px;letter-spacing:2px;color:var(--muted);text-transform:uppercase;font-weight:700;margin:0 0 23px}.practice-emoji{font-size:68px;display:block;margin:8px 0 16px}.practice-body h1{font-size:39px;line-height:1.5;letter-spacing:0;margin:0 0 12px}.practice-body .translation{font-size:16px;color:var(--muted);margin:8px 0 21px}.practice-body .jyutping{font-size:14px;color:#718268;margin-top:12px}.play-button{display:inline-flex;align-items:center;justify-content:center;gap:11px;background:var(--green);color:white;border-radius:50px;padding:14px 26px;font-size:14px;min-width:160px}.play-button .icon{width:24px;height:24px}.help-details{font-size:14px;color:var(--muted);margin:23px auto 0;max-width:450px}.help-details summary{cursor:pointer}.help-details p{margin-top:10px;font-size:14px}.practice-bottom{border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px;padding:21px 26px}.practice-bottom .small-note{margin:0;max-width:340px}.inline-status{min-height:25px;font-size:14px;color:var(--green);margin:16px 0 0;line-height:1.6}.inline-status.error{color:#a34835}.answer-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin:28px 0 17px}.answer{border:2px solid var(--line);border-radius:17px;padding:19px 10px;min-width:0}.answer span{font-size:36px;display:block;margin-bottom:13px}.answer strong{font-size:14px;font-weight:500;line-height:1.5;display:block;overflow-wrap:anywhere}.answer.correct{border-color:#719c68;background:var(--mint)}.answer.wrong{border-color:#c47c60;background:var(--peach)}.record-button{display:inline-flex;gap:10px;align-items:center;border:2px solid #c88360;background:var(--peach);color:#7d432b;padding:17px 23px;border-radius:40px;font-size:14px;font-weight:650}.record-button.active{background:#b9513d;color:white;border-color:#b9513d;animation:pulse 1.4s infinite}.record-actions{display:flex;gap:14px;align-items:center;justify-content:center;margin:18px 0}.record-actions .secondary{font-size:14px}.record-fallback{display:block;text-decoration:underline;text-underline-offset:4px;font-size:14px;color:var(--muted);margin:23px auto 0;min-height:32px}.rating-options{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:29px 0 8px}.rating-option{border:1px solid var(--line);background:#f6f8ef;border-radius:17px;padding:21px 10px;font-size:14px;font-weight:600}.rating-option span{font-size:33px;display:block;margin-bottom:13px}.rating-option:hover{border-color:#849979;background:var(--mint)}.challenge-box{background:var(--yellow);border-radius:18px;padding:26px;margin:22px 0}.challenge-box h2{font-size:23px;line-height:1.5;margin:0 0 15px}.challenge-box p{font-size:14px;margin:0;color:var(--muted)}.hint-answer{border-top:1px solid #e3d9b7;padding:17px;margin-top:16px}.hint-answer strong{font-size:22px;display:block}.hint-answer small{display:block;margin:8px 0}.completion{padding:31px;text-align:center;background:var(--paper);border:1px solid var(--line);border-radius:26px}.completion .success-symbol{font-size:61px;margin:8px 0 21px}.completion h1{font-size:33px;letter-spacing:-1px;margin:15px 0}.completion p{font-size:14px;color:var(--muted);max-width:510px;margin:15px auto}.completion .family-note{text-align:left;margin:25px 0}.completion .button-row{justify-content:center}.session-summary{display:flex;justify-content:center;gap:30px;margin:24px 0;padding:20px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:14px}.session-summary strong{display:block;font-size:25px;margin-bottom:7px}
dialog{border:1px solid var(--line);border-radius:24px;padding:28px;width:min(470px,calc(100vw - 30px));background:var(--paper);color:var(--ink);max-height:85vh}dialog::backdrop{background:#203c2c70;backdrop-filter:blur(4px)}dialog h2{font-size:24px;margin-bottom:13px}dialog p{font-size:14px;color:var(--muted)}dialog .dialog-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}dialog .dialog-top h2{margin:0}dialog .close{padding:5px;display:flex}dialog .field{margin-top:16px}.dialog-error{color:#9d4937;font-size:14px;min-height:15px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(100px);opacity:0;transition:.2s;z-index:150;background:var(--green);color:white;padding:13px 21px;border-radius:14px;font-size:14px;max-width:90vw;box-shadow:0 8px 40px #0002;pointer-events:none}#toast.visible{opacity:1;transform:translateX(-50%) translateY(0)}.status-chip{font-size:14px;color:var(--muted);display:inline-flex;align-items:center;gap:6px}.status-chip i{width:6px;height:6px;background:#749766;border-radius:100%}.storage-error{margin:15px 0}.linklike{text-decoration:underline;text-underline-offset:4px;font-size:14px}.install-row{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.install-row p{margin:0;flex:1;min-width:190px}
.lesson-parent-tips{margin:0;padding:0 24px;border-bottom:1px solid var(--line);font-size:14px;color:var(--muted);text-align:left}.lesson-parent-tips summary{min-height:48px;display:flex;align-items:center;cursor:pointer;color:var(--green);font-weight:600}.lesson-parent-tips summary::before{content:'＋';margin-right:9px}.lesson-parent-tips[open] summary::before{content:'−'}.lesson-parent-tips p{line-height:1.8;margin:0 0 15px}.age-prompt{font-size:14px;line-height:1.7;color:var(--muted);max-width:410px;margin:0 auto 20px}.food-boundary{font-size:14px;line-height:1.7;background:var(--yellow);border-radius:12px;padding:12px 16px;max-width:430px;margin:12px auto 18px}.practice-exits{padding:8px 24px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.practice-exits button{min-height:44px;text-decoration:underline;text-underline-offset:4px}.practice-exits span{font-size:14px;color:var(--muted)}.choice-help{padding:12px;background:var(--yellow);border-radius:14px;font-size:14px}.mic-unavailable{font-size:14px;padding:15px;background:var(--mint);border-radius:14px}.practice-nav button,.language-btn,.help-details summary,.record-fallback,.record-actions button,dialog .close,.word-actions button,.profile-row button{min-height:44px}.language-btn,dialog .close{min-width:44px}.help-details summary{display:flex;align-items:center;justify-content:center}.trial-link{display:inline-flex;align-items:center;min-height:44px;text-decoration:underline;text-underline-offset:4px}.field input,.field select{font-size:16px}.session-summary>div{min-width:0;overflow-wrap:anywhere}.practice-shell{padding-bottom:max(45px,env(safe-area-inset-bottom))}.record-actions{flex-wrap:wrap}
@media(max-width:570px){.lesson-parent-tips{padding:0 16px}.practice-exits{padding:8px 16px 16px;justify-content:center;text-align:center}.practice-exits span{width:100%}.session-summary{gap:14px}.practice-heading{flex-wrap:wrap}.practice-nav{gap:10px}.practice-body .translation{font-size:16px}}
@keyframes pulse{50%{box-shadow:0 0 0 7px #b9513d20}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(min-width:1500px){.main-content{padding-top:20px}.hero{min-height:325px}.hero-copy{padding-left:42px}.hero h1{font-size:46px}}
@media(max-width:1100px){.layout{grid-template-columns:200px minmax(0,1fr)}.sidebar{padding:30px 16px}.brand strong{font-size:14px}.brand img{width:34px;height:34px}.topbar{padding:23px 27px 16px}.main-content{padding:10px 27px 55px}.hero-copy{padding-left:26px}.hero h1{font-size:32px}.hero img{width:115%}.hero p{font-size:14px}.home-columns{grid-template-columns:1.3fr 1fr}.lesson-feature{gap:13px;padding:18px}.lesson-symbol{width:59px;height:67px;font-size:32px}.lesson-feature h3{font-size:16px}.mini-stat{gap:9px}.mini-stat .stat-icon{padding:8px}.word-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.layout{display:block}.sidebar{display:none}.mobile-brand{display:flex}.crumb{display:none}.topbar{padding:18px 23px 13px}.main-content{padding:10px 23px 110px}.mobile-nav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;bottom:0;left:0;right:0;padding:9px 8px max(9px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fffefaf7;backdrop-filter:blur(12px);z-index:20}.mobile-nav a,.mobile-nav button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;padding:6px 2px;font-size:14px;color:var(--muted)}.mobile-nav .active{color:var(--green);font-weight:750}.mobile-nav .icon{width:21px;height:21px}.hero{min-height:270px}.hero h1{font-size:35px}.hero-copy{padding:25px 0 25px 28px}.hero img{width:110%}.welcome{margin:20px;max-width:700px}.welcome-form{padding:30px}.welcome-art{padding:20px 10px}.page-head{margin-top:13px}.page-head h1{font-size:29px}.profile-button span:not(.avatar){max-width:100px}.practice-shell{padding-bottom:45px}.hero .eyebrow{font-size:14px}.page-footer{font-size:14px}}
@media(max-width:570px){.topbar{padding:17px 19px 11px}.main-content{padding:9px 19px 110px}.brand strong{font-size:14px}.brand img{width:34px;height:34px}.brand small{font-size:14px}.top-controls{gap:6px}.profile-button span:not(.avatar){display:none}.profile-button .icon{display:none}.language-btn{font-size:14px;padding:7px}.profile-button .avatar{width:33px;height:33px;font-size:20px}.dev-label{font-size:14px}.page-head{align-items:center;margin-bottom:20px;gap:10px}.page-head h1{font-size:28px;margin-bottom:7px}.page-head p{font-size:14px}.hero{grid-template-columns:1fr;min-height:0}.hero-copy{padding:27px 26px 0}.hero h1{font-size:37px;margin:14px 0}.hero p{font-size:14px;max-width:290px;margin-bottom:20px}.hero img{width:100%;height:200px;object-fit:contain;max-width:410px;justify-self:center;margin-top:-8px;margin-left:0}.hero .primary{padding:12px 18px;min-height:44px}.metrics-strip{padding:16px 0;margin:17px 0 25px}.mini-stat{flex-direction:column;text-align:center;gap:8px}.mini-stat .stat-icon{display:none}.mini-stat strong{font-size:23px}.mini-stat small{font-size:14px}.home-columns{grid-template-columns:1fr;gap:21px}.section-title h2{font-size:20px}.section-title .quiet-button{font-size:14px}.lesson-feature{padding:18px;gap:14px}.lesson-symbol{width:65px;height:70px;font-size:35px}.lesson-feature h3{font-size:17px}.lesson-feature .eyebrow{font-size:14px}.review-card{min-height:0;padding:20px}.review-card .review-icon{float:left;margin:0 14px 0 0}.review-card h3{margin:0 0 8px}.review-card .pill{top:18px;font-size:14px}.review-card p{clear:both;padding-top:13px;margin-bottom:4px}.family-note{align-items:flex-start;gap:13px;padding:18px;flex-wrap:wrap}.family-note .quiet-button{margin-left:45px;padding:0;min-height:26px}.family-note>div{flex:1;min-width:180px}.family-note>span{font-size:29px}.course-intro{padding:22px;align-items:flex-start;gap:13px;flex-wrap:wrap}.course-intro>span{font-size:37px}.course-intro h2{font-size:22px}.course-intro>div:not(.course-progress){flex:1;min-width:190px}.course-progress{width:100%;margin-left:0;text-align:left}.course-intro p{font-size:14px}.unit-heading{padding:18px;gap:12px}.unit-heading h2{font-size:17px}.unit-heading p{font-size:14px}.course-row{padding:18px 15px;gap:12px}.course-row h3{font-size:14px}.course-row .row-end{gap:4px}.course-row .row-end .time{display:none}.course-row p{font-size:14px;max-width:200px}.course-row .lesson-symbol{width:42px;height:45px;font-size:26px}.word-grid{gap:10px}.word-card{padding:19px 12px 13px}.word-card>span{font-size:39px}.word-card h3{font-size:23px}.word-card.long h3{font-size:17px}.word-card .word-en{font-size:14px}.word-actions{gap:5px}.word-actions button{font-size:14px}.word-actions .icon{width:16px;height:16px}.word-card .jyutping{font-size:14px;line-height:1.6;overflow-wrap:anywhere}.filters{gap:6px}.filter{padding:7px 11px;font-size:14px}.two-col{grid-template-columns:1fr;gap:0}.panel{padding:21px}.progress-metrics{gap:8px}.metric-box{padding:16px 12px}.metric-box strong{font-size:29px}.metric-box small{font-size:14px}.metric-box>.icon{width:19px;height:19px}.history-row{gap:10px;font-size:14px}.history-row .date{font-size:14px}.welcome{display:block;margin:20px}.welcome-art{display:none}.welcome-form{padding:27px}.welcome-form h1{font-size:32px}.welcome-top{margin:22px auto;padding:0 23px}.welcome-footer{line-height:1.8}.practice-shell{padding:20px 15px 40px}.practice-nav{gap:12px}.practice-nav a{font-size:14px}.practice-heading{padding:15px 19px;font-size:14px}.practice-body{padding:25px 19px;min-height:370px}.practice-emoji{font-size:63px}.practice-body h1{font-size:30px}.practice-body .translation{font-size:14px}.practice-body .jyutping{font-size:14px}.practice-bottom{padding:19px;flex-direction:column-reverse;gap:12px}.practice-bottom .primary{width:100%}.practice-bottom .small-note{text-align:center;font-size:14px!important}.answer-grid{gap:8px}.answer{padding:17px 8px}.answer span{font-size:31px}.answer strong{font-size:14px}.rating-options{gap:8px}.rating-option{padding:18px 6px;font-size:14px}.rating-option span{font-size:28px}.challenge-box{padding:22px 19px}.challenge-box h2{font-size:22px}.completion{padding:24px 20px}.completion h1{font-size:28px}.completion .button-row>*{width:100%}.completion .family-note{gap:10px}.completion .family-note>div{min-width:160px}.session-summary{gap:22px}.page-footer{gap:13px;flex-wrap:wrap}#toast{bottom:85px;min-width:220px;text-align:center}.record-actions{gap:10px}.record-actions .secondary{padding:11px 15px;font-size:14px}}
@media(max-width:360px){.main-content{padding-left:14px;padding-right:14px}.topbar{padding-left:14px;padding-right:14px}.hero h1{font-size:33px}.hero-copy{padding-left:22px;padding-right:22px}.brand small{display:none}.page-head .dev-label{max-width:100px;white-space:normal;text-align:center}.lesson-feature .eyebrow{letter-spacing:1px}.welcome-form{padding:22px}.age-choice{padding:12px}.word-actions button{font-size:14px}.course-row h3{font-size:14px}.course-row .row-end .icon{width:16px}.practice-body{padding-left:15px;padding-right:15px}}

.resume-label{display:block;margin-top:7px;color:var(--green);font-size:14px;font-weight:650;line-height:1.5}

/* Offline preparation updates only these controls, preserving parent drafts. */
[data-action="offline-retry"][hidden],[data-offline-detail][hidden]{display:none}
.install-row[data-offline-state="failed"] .status-chip i{background:#b66b46}
.install-row[data-offline-state="preparing"] .status-chip i{background:#b48b39}
.offline-recovery .small-note{margin:12px 0}

/* Private account candidate: parent controls, no learner names on a locked view. */
.account-welcome{max-width:680px;margin:24px auto;padding:0 20px}
.account-lock{max-width:620px;margin:40px auto;padding:20px}
.account-panel{margin-bottom:24px}
.account-panel .button-row,.account-lock .button-row{flex-wrap:wrap}
.account-note{padding:12px;border-radius:12px;background:#fff3db;line-height:1.6}
.account-check{display:flex;align-items:flex-start;gap:10px;margin:18px 0;line-height:1.6}
.account-check input{flex:0 0 auto;width:20px;height:20px;margin-top:3px}
.account-choices{border:1px solid #d4ddd7;border-radius:12px;padding:14px;margin:16px 0}
.account-choices label{display:flex;gap:10px;margin:14px 0;line-height:1.5}
.account-choices input{flex:0 0 auto;width:18px;height:18px}
.recovery-code{display:block;padding:16px;border-radius:12px;background:#eff5ed;overflow-wrap:anywhere;user-select:all;font-size:17px;line-height:1.6}
.account-devices .profile-row{flex-wrap:wrap;gap:12px}

/* Original-file management uses the same restrained family-account controls. */
.source-panel > .dialog-error:empty { display: none; }
.source-panel form { display: grid; gap: 12px; margin-top: 20px; }
.source-panel input[type="file"] { width: 100%; max-width: 100%; font: inherit; font-size: 14px; color: var(--muted); }
.source-panel input[type="file"]::file-selector-button { padding: 9px 12px; margin-right: 8px; border: 1px solid #dce3d4; border-radius: 10px; background: #f6f8f1; color: #244538; font: inherit; }
.source-panel details { margin-top: 18px; }
.source-panel bdi { overflow-wrap: anywhere; }
.source-panel [data-account-form="archive-migration"] fieldset { min-width: 0; }
.source-panel [data-account-form="archive-migration"] label:has(select),
.source-panel [data-account-form="archive-migration"] label:has(input:not([type="checkbox"])) { display: block; }
.source-panel [data-account-form="archive-migration"] select,
.source-panel [data-account-form="archive-migration"] input:not([type="checkbox"]) { display: block; width: 100%; min-width: 0; height: auto; min-height: 44px; margin-top: 7px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 16px; color: var(--ink); background: var(--paper); }
