:root{font-family:ui-rounded,'SF Pro Rounded','PingFang SC','Microsoft Yahei',system-ui,sans-serif;color:#30473d;background:#faf9f5;font-synthesis:none;--green:#347b5d;--muted:#7c8a82;--line:#e6e9e1;--paper:#fff;--coral:#dc8868}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #dd9b50;outline-offset:4px}button{border:0;background:none}a{color:var(--green)}h1,h2,h3,p{margin-top:0}h1{font-size:32px;letter-spacing:-1px;line-height:1.4}h2{font-size:23px;line-height:1.5}h3{font-size:17px}p{line-height:1.8}small,.muted{color:var(--muted)}.app-shell{max-width:1600px;margin:auto;display:grid;grid-template-columns:226px 1fr;min-height:100vh}.sidebar{padding:38px 24px;border-right:1px solid var(--line);position:sticky;top:0;height:100vh;display:flex;flex-direction:column;background:#fcfbf7}.brand{display:flex;align-items:center;gap:10px;margin-bottom:47px;text-align:left;padding:0}.brand img{width:42px;height:42px}.brand strong{font-size:19px;display:block;letter-spacing:-.6px}.brand small{font-size:10px;letter-spacing:1.5px}.nav{display:grid;gap:11px}.nav button{display:flex;align-items:center;gap:14px;padding:14px 17px;border-radius:13px;text-align:left;font-size:14px;font-weight:650;color:#819087}.nav button.active{background:#e8f0e4;color:#397654}.nav button:hover{background:#edf1e9}.nav-icon{font-size:22px;min-width:25px}.sidebar-bottom{margin-top:auto;padding-top:35px}.book-label{border-top:1px solid var(--line);padding-top:23px;line-height:1.9;font-size:12px;color:#8a9389}.sidebar-bottom button{padding:15px 0;font-size:13px;color:#748176}.workspace{min-width:0}.topbar{height:88px;margin:0 44px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:13px}.crumb{color:#89948b}.crumb b{color:#516454;font-weight:500}.stats{display:flex;gap:23px;align-items:center}.stats span{font-weight:700;white-space:nowrap}.stats .avatar{width:35px;height:35px;display:grid;place-items:center;border:2px solid #e7d9c5;border-radius:50%;background:#f1e7d7}.content{padding:35px 44px 60px;max-width:1200px;margin:auto}.welcome{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px}.welcome h1{margin-bottom:6px}.welcome p{color:#8b948c;font-size:14px;margin:0}.pill{border-radius:30px;padding:8px 14px;background:#eeeee5;color:#80876e;font-size:11px;white-space:nowrap}.dashboard{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:26px}.hero{position:relative;border:1px solid #dde5d4;border-radius:24px;padding:29px 30px;min-height:240px;overflow:hidden;background:#edf2e6}.eyebrow{font-size:10px;letter-spacing:2px;color:#709477;font-weight:700;margin-bottom:13px;display:block}.hero h2{font-size:26px;max-width:64%;margin-bottom:12px}.hero p{font-size:13px;color:#74866d;max-width:62%;margin-bottom:22px}.primary{background:var(--green);color:white;border-radius:12px;padding:13px 22px;font-weight:650;font-size:14px;box-shadow:0 3px 0 #276249;transition:transform .15s}.primary:hover{background:#286a4d;transform:translateY(-1px)}.primary:active{transform:translateY(2px);box-shadow:none}.secondary{border:1px solid #d9e2d5;background:white;border-radius:11px;padding:12px 18px;font-size:13px}.secondary:hover{background:#eff4eb}.hero-pet{position:absolute;width:210px;right:-3px;bottom:4px;transform:rotate(4deg)}.pet-mascot{overflow:visible;animation:bob 4s ease-in-out infinite}.hero .decor{position:absolute;right:18px;top:18px;font-size:24px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:30px 0 17px}.section-heading h2{font-size:18px;margin:0}.section-heading small{font-size:11px}.unit-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.unit-card{border:1px solid var(--line);border-radius:19px;overflow:hidden;background:white;transition:transform .2s,box-shadow .2s;text-align:left;padding:0;display:block;width:100%}.unit-card:hover{transform:translateY(-4px);box-shadow:0 7px 20px #30473d0b}.unit-art{height:108px;position:relative;overflow:hidden;display:grid;place-items:center;background:var(--bg)}.unit-art::after{content:'';width:220px;height:90px;border-radius:50%;background:#ffffff45;position:absolute;bottom:-65px}.unit-art .scene{font-size:54px;position:relative;z-index:1;filter:drop-shadow(0 6px 2px #0000000d);transition:transform .4s}.unit-card:hover .scene{transform:rotate(-8deg) scale(1.12)}.unit-art .mini{position:absolute;font-size:27px;opacity:.75}.unit-art .mini.a{left:25%;top:30px;transform:rotate(-20deg)}.unit-art .mini.b{right:18%;bottom:23px;transform:rotate(20deg)}.unit-no{position:absolute;top:13px;left:15px;font-size:10px;font-weight:700;letter-spacing:1px;color:#ffffff;background:#ffffff40;padding:4px 8px;border-radius:6px;mix-blend-mode:multiply}.unit-body{padding:16px 18px 17px}.unit-body h3{margin:0 0 5px;font-size:16px}.unit-body p{font-size:11px;color:#91998f;margin:0 0 16px}.track{height:5px;background:#edf0e9;border-radius:10px;overflow:hidden}.track>i{display:block;height:100%;background:#81a77a;border-radius:10px;transition:width .3s}.unit-footer{margin-top:8px;font-size:10px;color:#9aa194;display:flex;justify-content:space-between}.right-rail{display:grid;gap:19px;align-content:start}.panel{border:1px solid var(--line);background:white;border-radius:20px;padding:22px}.panel h3{margin:0;font-size:15px}.panel p{font-size:12px;color:#8a948a}.panel .row{display:flex;justify-content:space-between;align-items:center}.goal-ring{width:105px;height:105px;border-radius:50%;background:conic-gradient(#88aa73 var(--pct),#edf1e7 0);margin:21px auto;display:grid;place-items:center}.goal-ring>div{width:85px;height:85px;display:grid;place-content:center;text-align:center;background:white;border-radius:50%}.goal-ring strong{font-size:26px}.goal-ring small{font-size:10px}.task{border-top:1px solid #f0f1ec;padding:14px 0 0;margin-top:13px;font-size:11px;display:flex;justify-content:space-between;gap:7px}.task span{color:#8b9b80}.buddy-panel{background:#f4efe5;border-color:#e9e1d1;text-align:center}.buddy-panel .pet-mascot{width:92px;height:104px}.buddy-panel h3{margin-top:7px}.buddy-panel p{margin:8px 0}.tip-panel{background:#edf0f7;border-color:#e2e6f0}.tip-panel h3{color:#7587a3}.tip-panel p{color:#8c98a9;margin-bottom:0}.text-button{color:var(--green);font-size:12px;padding:4px 0}.footer-note{font-size:10px;color:#a0a69c;text-align:center;margin-top:27px}.subhead{margin-bottom:26px}.subhead .back{font-size:12px;color:#849284;margin-bottom:20px;padding:0}.subhead h1{margin-bottom:8px}.lesson-list{display:grid;gap:13px;margin-top:24px}.lesson-card{display:flex;align-items:center;text-align:left;gap:18px;background:#fff;border:1px solid var(--line);border-radius:17px;padding:18px 20px;transition:transform .2s}.lesson-card:hover{transform:translateX(4px);border-color:#a8bca0}.lesson-icon{font-size:28px;background:#f3f5ee;border-radius:13px;width:55px;height:55px;display:grid;place-items:center}.lesson-card strong{font-size:15px;display:block;margin-bottom:5px}.lesson-card small{font-size:11px}.lesson-card .end{margin-left:auto;color:#91a583;font-size:16px;white-space:nowrap}.learn-grid{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:26px}.rule{background:#f1f4ea;border-radius:15px;padding:20px;margin:16px 0}.rule p{font-size:13px;margin-bottom:0}.example{font-size:16px;margin-top:12px}.example button{font-size:13px}.quiz-wrap{max-width:760px;margin:auto}.quiz-top{display:flex;align-items:center;gap:22px;margin:6px 0 25px}.quiz-top .track{flex:1;height:10px}.quiz-header{font-size:12px;color:#8a9789;display:flex;justify-content:space-between;margin-bottom:18px}.quiz-card{background:white;border:1px solid var(--line);border-radius:23px;padding:32px;min-height:350px}.quiz-card h2{font-size:24px}.options{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:27px}.option{border:2px solid #e7ebe3;border-bottom-width:4px;background:#fff;border-radius:14px;padding:18px;text-align:left;min-height:67px;font-size:15px}.option:hover{border-color:#b6c8ad;background:#f9fbf5}.option.selected{border-color:#7caa70;background:#f0f7ea}.option.correct{border-color:#75a26e;background:#eff7e7;opacity:1}.option.wrong{border-color:#d7a68d;background:#fbf0e7;opacity:1}.option small{border:1px solid #e1e7dc;border-radius:5px;padding:2px 6px;margin-right:10px}.quiz-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:25px;min-height:80px}.feedback{background:#eef4e8;border-radius:15px;padding:20px;margin-top:22px;line-height:1.7;font-size:14px}.feedback.wrong{background:#fbf0e4}.feedback strong{display:block;margin-bottom:5px}.audio-button{background:#e9f1e2;border:1px solid #dce8d2;border-radius:18px;font-size:28px;padding:20px 32px;box-shadow:0 4px 0 #d3dfc9;margin:7px 0}.audio-button.small{font-size:16px;padding:11px 15px;box-shadow:none;margin-left:8px}.audio-row{display:flex;align-items:center;gap:10px}.passage{background:#faf9f4;padding:20px;border-radius:14px;line-height:1.9;margin-bottom:24px;font-size:16px}.token-area{display:flex;gap:8px;flex-wrap:wrap;min-height:72px;border-bottom:2px dashed #dce3d5;padding:12px 0;margin-bottom:20px}.tokens{display:flex;gap:9px;flex-wrap:wrap}.token{padding:12px 14px;border:1px solid #dce3d5;border-bottom-width:3px;border-radius:9px;background:white}.token.used{opacity:.25}.text-input,textarea,select{border:1px solid #d6dfd0;border-radius:12px;background:white;padding:14px;color:#30473d}.text-input,textarea{width:100%}.text-input{font-size:20px;margin-top:15px}textarea{min-height:110px;resize:vertical;line-height:1.7}.result{text-align:center;padding:35px 15px}.result .pet-mascot{width:150px}.result h1{margin:20px 0 12px}.result-stats{display:flex;justify-content:center;gap:16px;margin:25px 0}.result-stats>div{background:white;border:1px solid var(--line);border-radius:15px;padding:20px;min-width:110px}.result-stats b{font-size:26px;display:block;color:#55885c}.result-stats small{display:block;margin-top:5px}.badge-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.badge{background:#fff;border:1px solid var(--line);border-radius:18px;padding:25px 15px;text-align:center}.badge .emoji{font-size:45px;display:block;margin-bottom:14px}.badge.locked{filter:grayscale(.8);opacity:.55}.badge p{font-size:11px;color:#86907f;margin-bottom:0}.words-toolbar{display:flex;gap:12px;margin-bottom:20px}.words-toolbar input{font-size:14px;margin:0}.word-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.word-card{background:white;border:1px solid var(--line);border-radius:14px;padding:17px;text-align:left}.word-card b{display:block;font-size:16px;margin-bottom:5px}.word-card small{font-size:12px}.word-card .speaker{float:right}.tabs{display:flex;gap:8px;margin-bottom:24px;flex-wrap:wrap}.tabs button{border:1px solid var(--line);border-radius:25px;padding:10px 17px;font-size:12px}.tabs button.active{background:var(--green);color:white}.play-stage{background:#efeadd;min-height:220px;border-radius:20px;text-align:center;padding:30px;position:relative;overflow:hidden}.play-stage .actor{font-size:70px;display:block;animation:bob 3s ease-in-out infinite}.speech-bubble{display:inline-block;position:relative;background:white;padding:18px;border-radius:18px;margin:20px 0 0;max-width:100%;font-size:19px;line-height:1.6}.setting-row{display:flex;justify-content:space-between;gap:20px;align-items:center;border-bottom:1px solid var(--line);padding:20px 0}.setting-row p{font-size:12px;color:#8b9588;margin:5px 0 0}.switch{background:#e3e7dc;border-radius:20px;width:48px;height:28px;padding:4px}.switch span{display:block;width:20px;height:20px;border-radius:50%;background:white;transition:transform .2s}.switch.on{background:#7ba16d}.switch.on span{transform:translateX(20px)}.action-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}.report-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:20px}.report-grid .panel strong{font-size:28px;display:block}.report-grid .panel small{font-size:12px}.week{display:flex;justify-content:space-between;margin-top:22px}.week>div{text-align:center;font-size:11px;color:#8b9485}.week i{display:grid;place-items:center;background:#eef1e7;width:30px;height:30px;border-radius:50%;margin:8px 0;font-style:normal}.week i.done{background:#8cac78;color:#fff}.wish{display:block;border-radius:0 22px 22px 22px;background:#e7efd8;margin:12px 0;padding:15px;line-height:1.7;font-size:13px;overflow-wrap:anywhere}.source-note{font-size:11px;color:#90998a;margin-top:20px;line-height:1.8}.speech-controls{margin-top:20px;display:flex;gap:10px;flex-wrap:wrap}.speech-status{min-height:48px;font-size:13px;color:#768773;margin:15px 0}.speech-example{font-size:25px;margin:25px 0 12px;line-height:1.7}.success-pop{animation:pop .4s ease-out}.confetti{position:fixed;inset:0;pointer-events:none;z-index:20;overflow:hidden}.confetti i{position:absolute;top:-30px;width:9px;height:16px;animation:fall 2s ease-in forwards}.skip{position:absolute;top:-100px}.skip:focus{top:12px;left:12px;z-index:100;background:white;padding:15px}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#304e3f;color:white;padding:13px 22px;border-radius:13px;box-shadow:0 5px 20px #0002;max-width:90%;z-index:100;font-size:13px;display:none}.empty{text-align:center;padding:40px 20px}.empty .emoji{font-size:60px}.empty p{color:#8a9483;font-size:14px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px}.details{line-height:1.9;font-size:13px;color:#73816d;margin-top:18px}.details summary{cursor:pointer}.break-note{padding:15px;background:#f3efe3;border-radius:12px;margin-top:20px;font-size:13px}.no-motion *{animation:none!important;transition:none!important}@keyframes bob{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-7px) rotate(2deg)}}@keyframes pop{50%{transform:scale(1.04)}}@keyframes fall{to{transform:translateY(110vh) rotate(540deg)}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}@media(min-width:1450px){.content{padding-top:42px}.hero{min-height:255px}.unit-art{height:126px}}@media(max-width:1150px){.app-shell{grid-template-columns:190px 1fr}.sidebar{padding:30px 18px}.brand strong{font-size:16px}.topbar{margin:0 27px}.content{padding:28px 27px}.dashboard,.learn-grid{grid-template-columns:minmax(0,1fr) 220px;gap:20px}.hero{padding:25px 22px}.hero-pet{width:170px;right:-15px}.hero h2{font-size:23px}.word-grid{grid-template-columns:1fr 1fr}.stats{gap:12px}}@media(max-width:950px){.dashboard,.learn-grid{grid-template-columns:1fr}.right-rail{grid-template-columns:repeat(2,1fr)}.tip-panel{display:none}.goal-ring{width:85px;height:85px;margin:13px auto}.goal-ring>div{width:65px;height:65px}.hero-pet{right:35px;width:190px}.sidebar{padding:28px 15px}.brand small{letter-spacing:.5px}.welcome .pill{display:none}.hero h2{max-width:65%}.badge-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.app-shell{display:block}.sidebar{position:fixed;top:auto;bottom:0;left:0;right:0;height:auto;border:0;border-top:1px solid var(--line);background:#fffefa;padding:8px 5px max(8px,env(safe-area-inset-bottom));z-index:30}.brand,.sidebar-bottom{display:none}.nav{display:flex;justify-content:space-around;gap:0}.nav button{padding:6px;display:flex;flex-direction:column;gap:4px;font-size:10px;border-radius:10px;min-width:52px}.nav-icon{font-size:20px}.topbar{height:68px;margin:0 20px}.crumb{font-size:11px}.crumb b{display:none}.stats{gap:13px;font-size:12px}.stats .avatar{width:30px;height:30px}.content{padding:25px 18px 110px}.welcome{margin-bottom:23px}.welcome h1{font-size:26px}.welcome p{font-size:12px}.hero{padding:24px 20px;min-height:238px}.hero h2{font-size:22px;max-width:68%}.hero p{max-width:65%;font-size:12px}.hero-pet{width:153px;right:-17px;bottom:4px}.hero .decor{right:18px;font-size:18px}.primary{padding:12px 17px;font-size:13px}.hero .primary{position:relative;z-index:2}.unit-grid{gap:12px}.unit-art{height:95px}.unit-art .scene{font-size:45px}.unit-art .mini.a{left:12%}.unit-art .mini.b{right:8%}.unit-art .mini{font-size:21px}.unit-body{padding:14px 12px}.unit-body h3{font-size:14px}.unit-body p{font-size:10px;min-height:28px;line-height:1.5}.right-rail{gap:12px;margin-top:3px}.panel{padding:18px}.panel h3{font-size:13px}.task{font-size:10px}.quiz-card{padding:23px 18px}.quiz-card h2{font-size:21px}.options{grid-template-columns:1fr;gap:10px}.option{padding:15px;min-height:58px;font-size:14px}.quiz-bottom{flex-wrap:wrap}.quiz-bottom .primary{margin-left:auto}.quiz-header{font-size:11px}.quiz-top{margin-top:0}.word-grid{grid-template-columns:1fr 1fr;gap:9px}.word-card{padding:14px}.word-card b{font-size:14px}.words-toolbar{flex-wrap:wrap}.words-toolbar select{width:100%}.report-grid{gap:8px}.report-grid .panel{padding:15px 10px}.report-grid .panel strong{font-size:24px}.report-grid .panel small{font-size:10px}.two-col{grid-template-columns:1fr}.subhead h1{font-size:26px}.setting-row{gap:12px}.setting-row p{font-size:11px}.lesson-card{padding:15px;gap:12px}.lesson-icon{width:45px;height:45px;font-size:24px}.result-stats{gap:10px}.result-stats>div{min-width:90px;padding:16px 12px}.result-stats b{font-size:23px}.badge{padding:20px 12px}.badge h3{font-size:14px}#toast{bottom:100px}.source-note{font-size:10px}}

.shortcut-hint{display:none;margin-left:14px;color:#7c8a82}.shortcut-hint kbd{font:inherit;border:1px solid #dce3d5;border-bottom-width:2px;background:#fff;border-radius:5px;padding:2px 6px}@media(hover:hover) and (pointer:fine){.shortcut-hint{display:inline-block}}
/* Native inline editing, with a separate underline for every letter. */
.spelling-blank{position:relative;display:inline-block;vertical-align:-.3em;margin:0 .15em;font-family:ui-monospace,'SFMono-Regular',Menlo,Consolas,'Liberation Mono',monospace;font-size:1em;font-weight:600;line-height:1.5;color:var(--green);border-radius:4px;background:#edf3e8}
.spelling-slots{display:flex;height:1.5em;padding-right:.4ch;pointer-events:none}
.spelling-slot{flex:0 0 1ch;width:1ch;margin:0 .25ch;border-bottom:2px solid #8da58c}
.spelling-slot.separator{border-bottom-color:transparent}
.spelling-input{position:absolute;inset:0;width:100%;height:100%;min-width:0;border:0;border-radius:4px;padding:0 0 .15em .25ch;background:transparent;color:inherit;font:inherit;letter-spacing:.5ch;caret-color:var(--green);box-shadow:none}
.spelling-input:focus-visible{outline:2px solid var(--green);outline-offset:4px}
.spelling-input:disabled{opacity:1;-webkit-text-fill-color:currentColor}
.spelling-blank:focus-within .spelling-slot,.spelling-blank.correct .spelling-slot{border-bottom-color:var(--green)}
.spelling-blank.wrong{color:#a75038;background:#fbede7}
.spelling-blank.wrong .spelling-slot{border-bottom-color:#c3836f}
.spelling-blank .spelling-slot.separator{border-bottom-color:transparent}
.context-scene.spelling-context{grid-template-columns:190px minmax(0,1fr)}
@media(max-width:750px){.context-scene.spelling-context{grid-template-columns:1fr;gap:12px}.spelling-context>.learning-art{width:145px;justify-self:center}.spelling-context>div{min-width:0}.spelling-context #spelling-hint{display:block;font-size:11px;line-height:1.7}}
.learning-art{display:grid;place-items:center;width:100%;aspect-ratio:1;background:#faf4e5;border-radius:12px;padding:8%;overflow:hidden}
.learning-art>svg,.learning-art>img{display:block;width:100%;height:100%;min-width:0;min-height:0;object-fit:contain;object-position:center}
.immersive-quiz{max-width:850px}.immersive-quiz .quiz-card{padding:24px 28px}.question-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.question-heading h2{margin:7px 0;font-size:30px}.question-heading p{margin:0;font-size:13px}.question-heading .audio-button{font-size:15px;padding:12px 17px;border-radius:12px;white-space:nowrap;box-shadow:none}.question-heading .audio-button.small{margin-left:0}.question-heading .audio-row{flex-shrink:0}
.picture-options{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:24px}.picture-option{padding:6px;min-width:0;overflow:hidden;transition:transform .15s,border-color .15s}.picture-option:hover:not(:disabled){transform:translateY(-3px)}.picture-option .learning-art{border-radius:9px}.picture-option:disabled{opacity:.7}.picture-option.correct:disabled,.picture-option.wrong:disabled{opacity:1}.option-label{display:flex;align-items:center;min-height:42px;padding:5px;font-size:13px;overflow-wrap:anywhere}.option-label small{flex-shrink:0}.picture-choice-label{font-size:11px;color:#758575}.selection-mark{margin-left:auto;color:var(--green);font-weight:800;font-size:17px}.selected .option-label small{background:#427c57;color:white;border-color:#427c57}.selected .picture-choice-label{color:#427c57}.context-scene{display:grid;grid-template-columns:190px 1fr;gap:24px;align-items:center;background:#faf8f1;border-radius:17px;padding:15px;margin:20px 0 5px}.context-scene p{font-size:21px;line-height:1.65;margin:8px 0}.context-scene small{font-size:12px}.feedback-example{margin:8px 0;font-size:18px}.translation-label{font-size:11px;color:#6c846c;margin-right:5px}.visual-word-card{padding:12px}.word-picture{display:block;padding:0;width:100%;text-align:left}.word-title{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px 2px 3px}.word-title b{margin:0}.word-example{font-size:13px;line-height:1.6;margin:5px 2px 10px;min-height:42px}.word-meaning{border-top:1px solid var(--line);padding-top:10px;font-size:12px;color:#7c8a82}.word-meaning summary{cursor:pointer;line-height:1.6}.word-meaning p{color:#30473d;margin:10px 0 0}.immersive-quiz .shortcut-hint{display:block;margin:6px 0 0;line-height:1.7}
@media(max-width:1100px){.picture-options{grid-template-columns:repeat(2,minmax(0,1fr))}.picture-option .learning-art{max-height:200px;max-width:200px;margin:auto}.question-heading{flex-wrap:wrap;gap:6px}.question-heading .audio-row{margin-top:5px}}
@media(max-width:600px){.immersive-quiz .quiz-card{padding:18px 14px}.question-heading h2{font-size:25px}.picture-options{gap:10px;margin-top:18px}.option-label{font-size:12px;padding:4px 2px}.picture-choice-label{font-size:10px}.context-scene{grid-template-columns:115px 1fr;gap:12px;padding:10px}.context-scene p{font-size:16px}.context-scene .eyebrow{font-size:8px}.context-scene small{display:none}.quiz-bottom{gap:10px}.quiz-bottom .primary{padding:13px 18px}.quiz-bottom>small{font-size:10px}.immersive-quiz .shortcut-hint{display:none}.word-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.visual-word-card{min-width:0}.word-title b{font-size:14px}}
.voice-notice{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:8px 0 4px;min-height:22px;font-size:11px;color:#819183}.voice-notice .secondary{font-size:12px;padding:8px 12px}.voice-notice [hidden]{display:none}

.voice-picker{margin-left:auto;flex-shrink:0}.voice-picker-controls{display:flex;align-items:center;gap:7px}.voice-picker label{font-size:11px;color:#7c8a82}.voice-picker select{border:1px solid #d9e2d5;border-radius:9px;background:#fff;color:#347b5d;font-size:12px;padding:7px 5px;min-height:36px}.voice-picker small{display:block;font-size:10px;margin-top:4px;color:#8a948a}.topbar .stats{gap:15px}
@media(max-width:1250px){.topbar .crumb{display:none}.voice-picker{margin-left:0}}
@media(max-width:600px){.topbar{height:85px;gap:10px}.voice-picker-controls{gap:5px}.voice-picker label{font-size:10px}.topbar .stats{gap:9px;font-size:11px}.topbar .stats .avatar{width:28px;height:28px}.voice-picker select{min-height:34px;font-size:12px}.voice-notice{align-items:flex-start}}
@media(max-width:359px){.topbar .stats>span:first-child{display:none}}

.phonetics{display:grid;gap:5px;margin:9px 0 13px;font-size:15px;font-weight:400;line-height:1.5;color:#536b60}.phonetics>span{display:flex;gap:8px;align-items:baseline;min-width:0}.phonetics small{flex-shrink:0;color:#8a978c;font-size:10px;font-family:system-ui,sans-serif;border:0;padding:0;margin:0}.ipa{font-family:'Charis SIL','Doulos SIL','Arial',sans-serif;overflow-wrap:anywhere}.phonetics.compact{font-size:12px;margin:4px 6px 7px;gap:3px}.phonetics.compact small{font-size:9px}.feedback-word{margin:10px 0}.feedback-word>b{font-size:18px}.feedback-word .phonetics{margin:5px 0 10px}.question-heading .phonetics{font-size:17px}.visual-word-card .phonetics{padding:0 2px}
@media(max-width:600px){.phonetics{font-size:13px}.question-heading .phonetics{font-size:15px}.phonetics.compact{font-size:11px;margin-left:3px;margin-right:3px}.phonetics>span{gap:6px}}

.option.wrong{border-color:#d9847b;background:#fff0ec}.option.wrong .selection-mark{color:#b54f46}.replay-label{display:block;font-size:11px;color:#687963;text-align:left;padding:3px 8px 5px}.option.wrong .replay-label{color:#a85c50}.choice-feedback{display:grid;gap:4px;margin-top:18px;color:#96634e;font-size:12px;line-height:1.7}.choice-feedback strong{font-size:14px}.choice-instruction{color:#7a8d7b;font-size:13px;text-align:right}

/* A keepsake-style finale. The facts remain visible throughout the short film. */
.adventure-result{max-width:820px;padding:28px 34px 30px;border:1px solid #e3e8d9;border-radius:28px;background:#fffef9;box-shadow:0 16px 55px #354c3210;text-align:center}
.result-kicker{font-size:12px;color:#647766;margin-bottom:20px}.result-kicker span{color:#8e9988}
.reward-label{display:inline-block;padding:7px 17px;border:1px solid #e5d5a6;border-radius:30px;color:#8b6829;background:#fff6d9;font-size:16px;font-weight:750;letter-spacing:.04em}
.adventure-result h1{font-size:29px;line-height:1.4;margin:13px 0 8px;color:#31573d;outline-offset:6px}
.reward-message{font-size:14px;line-height:1.9;max-width:600px;margin:0 auto 17px;color:#6e7e68}
.celebration-controls{display:flex;justify-content:center;gap:18px;margin:5px 0 16px}.celebration-controls button{font-size:12px;min-height:40px}
.adventure-result .result-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0}
.adventure-result .result-stats>div{min-width:0;display:grid;justify-items:center;gap:7px;padding:17px 8px;border:1px solid #e4eadd;background:#f6f8f0;border-radius:16px}
.adventure-result .result-stats>div.stat-xp{background:#fff8e5;border-color:#efe2b8}.stat-symbol{font-size:20px;color:#91a67b}.stat-xp .stat-symbol{color:#c09a46}
.adventure-result .result-stats b{font-size:31px;font-variant-numeric:tabular-nums;line-height:1.2;color:#3c704a}.adventure-result .result-stats b span{font-size:14px}.adventure-result .result-stats small{font-size:11px;color:#62765e}
.learning-takeaway{display:flex;justify-content:center;flex-wrap:wrap;gap:12px 30px;margin:20px 0 8px;font-size:12px;color:#577b50}.result-method{font-size:10px;line-height:1.8;color:#89917f;margin:10px 0 20px}.reward-note{font-size:13px;color:#6f805b;line-height:1.8}.result-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:12px}.adventure-result .break-note{font-size:12px;line-height:1.8;margin:20px 0 0}
@media(max-width:600px){.adventure-result{padding:22px 12px;border-radius:21px}.adventure-result h1{font-size:23px}.reward-message{font-size:12px;padding:0 5px}.result-kicker{font-size:10px;margin-bottom:15px}.adventure-result .result-stats{gap:7px}.adventure-result .result-stats>div{padding:13px 4px;gap:6px;border-radius:12px}.adventure-result .result-stats b{font-size:24px}.adventure-result .result-stats small{font-size:9px}.adventure-result .result-stats b span{font-size:11px}.result-actions button{padding:13px 16px;font-size:12px}.learning-takeaway{font-size:11px;gap:10px}}
/* Paired interface labels keep English readable without crowding the Chinese. */
.bi-label{display:inline-flex;flex-direction:column;align-items:stretch;vertical-align:middle;min-width:0;max-width:100%;gap:3px;line-height:1.45;white-space:normal;letter-spacing:normal}
.bi-primary{display:block;font:inherit;color:inherit}
.bi-secondary{display:block;font-size:.8em;font-weight:500;line-height:1.35;color:#526d5b;letter-spacing:.01em;overflow-wrap:break-word}
h1 .bi-secondary{font-size:.53em}h2 .bi-secondary{font-size:.65em}h3 .bi-secondary{font-size:.76em}
.primary .bi-secondary,.tabs .active .bi-secondary,.review-scenes [aria-pressed=true] .bi-secondary{color:#fff}
.nav button{padding:12px 13px;gap:10px}.nav .bi-secondary{font-size:11px}.nav button .bi-label{flex:1}
.app-shell{--app-header-height:100px}
.topbar{position:sticky;top:0;z-index:40;background:#faf9f5;box-shadow:0 5px 12px #30473d08;height:auto;min-height:var(--app-header-height);padding:14px 0;flex-wrap:wrap;gap:12px}.crumb{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#main,#result-title,#reward-statistics{scroll-margin-top:calc(var(--app-header-height) + 16px)}
@media(max-width:650px){.app-shell{--app-header-height:72px}}
.voice-picker-controls{flex-wrap:wrap}.voice-picker select{max-width:165px}.voice-picker label .bi-secondary{font-size:10px}
.pill{white-space:normal}.hero{min-height:300px}.hero-pet{pointer-events:none}.hero .primary{position:relative;z-index:2;max-width:70%}
.unit-footer{gap:8px;align-items:center}.unit-footer>.bi-label:first-child{flex:1}.unit-body h3{min-height:43px}
.section-heading{gap:12px}.section-heading>small{text-align:right}.lesson-icon,.switch{flex-shrink:0}.lesson-card>span:nth-child(2){min-width:0;flex:1}.lesson-card .end{white-space:normal;max-width:90px;text-align:right;font-size:12px}
.goal-ring{width:122px;height:122px}.goal-ring>div{width:102px;height:102px}.task{align-items:center;flex-wrap:wrap}.task>.bi-label{flex:1}
.audio-row{flex-wrap:wrap}.audio-button .bi-secondary{font-size:12px}.quiz-header{gap:15px;align-items:start}.quiz-header>span{max-width:65%}.quiz-header>span:last-child{text-align:right;max-width:35%}
.option .bi-label{vertical-align:middle}.option small .bi-label{display:inline-flex}.phonetics small .bi-label{gap:1px}.phonetics small .bi-secondary{font-size:9px}
.shortcut-hint{align-items:center;gap:5px;flex-wrap:wrap}.shortcut-hint .bi-label{display:inline-flex}.shortcut-hint .bi-secondary{display:block;margin-left:0}
.setting-row>div{min-width:0}.setting-row>select{max-width:160px}.xp-journey-caption{gap:12px}.xp-journey-caption>span:last-child{text-align:right}.xp-journey-heading [data-stat=xp-message]{max-width:70%}
.stats-accessible{white-space:normal}.reward-statistics .bi-secondary{font-size:11px}.result-stats small{line-height:1.5}.review-head h1 .bi-secondary{font-size:16px}
@media(max-width:1150px) and (min-width:651px){.app-shell{grid-template-columns:210px 1fr}.nav button{padding:11px 7px}.nav .bi-secondary{font-size:10px}}
@media(max-width:650px){.nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}.nav button{min-width:0;width:100%;padding:5px 2px;gap:3px}.nav button .bi-label{align-items:center;gap:2px;flex:none}.nav .bi-primary{font-size:11px}.nav .bi-secondary{font-size:10px;line-height:1.15;min-height:22px;max-width:72px;text-align:center;overflow-wrap:normal}.nav-icon{line-height:1.1}.content{padding-bottom:138px}.topbar{min-height:110px;gap:9px;margin:0 18px}.topbar .crumb{font-size:11px}.voice-picker{width:100%;order:3}.voice-picker-controls{justify-content:flex-start}.voice-picker label .bi-secondary{font-size:9px}.voice-picker select{font-size:11px;padding:7px 5px;max-width:110px}.hero{min-height:300px}.hero h2{max-width:70%}.hero p{max-width:65%}.hero .primary{max-width:75%}.unit-body h3{font-size:14px;min-height:59px}.unit-body h3 .bi-secondary{font-size:11px}.unit-footer{align-items:flex-start;font-size:10px}.right-rail{grid-template-columns:1fr}.goal-ring{width:122px;height:122px}.goal-ring>div{width:102px;height:102px}.quiz-header{font-size:11px}.quiz-header>span:last-child{max-width:38%}.lesson-card{gap:10px;padding:15px 12px}.lesson-icon{width:40px;height:45px;font-size:24px}.lesson-card .end{max-width:62px}.audio-row{gap:7px}.audio-button{font-size:18px;padding:12px 17px}.audio-button.small{font-size:14px;padding:10px;margin-left:0}.section-heading{align-items:start}.setting-row{gap:12px}.setting-row>select{max-width:120px}.week>div>.bi-label{font-size:10px}.report-grid .bi-secondary{font-size:10px}}

/* Voice preferences belong to settings, with one language per line. */
/* Language controls affect interface copy, not English learning material. */
.language-setting{align-items:flex-start;gap:24px}.language-setting>div{flex:1}.language-setting select{min-height:44px;width:auto;min-width:260px;max-width:100%;flex-shrink:0}.language-setting p{max-width:620px}
html[data-display-language="en"] .bi-primary,html[data-display-language="en"] [data-chinese-only],html[data-display-language="en"] .word-meaning{display:none!important}
html[data-display-language="zh-CN"] .bi-secondary,html[data-display-language="zh-TW"] .bi-secondary,html:not([data-display-language="en"]) [data-english-only]{display:none!important}
html[data-display-language="en"] .bi-secondary{font:inherit;color:inherit;letter-spacing:inherit;min-height:0;max-width:none}
html:not([data-display-language="bilingual"]) .unit-body h3{min-height:0}
.brand strong .bi-secondary{font-size:10px;letter-spacing:1px;margin-top:5px}
@media(max-width:650px){.language-setting{flex-direction:column}.setting-row.language-setting>select{width:100%;min-width:0;max-width:none}.nav button .bi-secondary{overflow-wrap:anywhere}html[data-display-language="en"] .nav .bi-secondary{font-size:10px}}
.voice-setting{align-items:flex-start;flex-wrap:wrap}.voice-setting>div:first-child{flex:1;min-width:220px}.voice-setting .voice-picker{margin:0;flex:0 1 330px;min-width:0;width:auto;order:0}.voice-setting .voice-picker-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:14px}.voice-field{display:flex;flex-direction:column;gap:8px;min-width:0}.voice-setting select{width:100%;max-width:none;min-height:44px}.voice-setting .voice-picker small{margin-top:12px;line-height:1.6}.topbar .stats{margin-left:auto}
@media(max-width:650px){.topbar{min-height:72px}.voice-setting{display:block}.voice-setting .voice-picker{width:100%;margin-top:18px}.voice-setting .voice-picker-controls{gap:12px}.voice-setting select{font-size:13px}}

/* One native range control keeps touch, pointer and keyboard behavior consistent. */
.daily-goal-control{min-width:0;margin-top:20px;--goal-color:#60894d;--goal-fill:10%}
.goal-value-row{display:flex;justify-content:space-between;align-items:center;gap:12px}
.goal-value-row label{font-size:12px;font-weight:650}.goal-value-row output{text-align:right;font-size:16px;font-weight:750;color:var(--goal-color)}
.goal-value-row output .bi-secondary{font-size:10px}.goal-value-row label .bi-secondary{font-size:10px}
.goal-slider{display:block;appearance:none;-webkit-appearance:none;width:100%;height:44px;margin:14px 0 0;padding:0;cursor:pointer;background:transparent;touch-action:pan-y}
.goal-slider::-webkit-slider-runnable-track{height:8px;border-radius:10px;background:linear-gradient(to right,var(--goal-color) 0 var(--goal-fill),#e4e9dc var(--goal-fill) 100%)}
.goal-slider::-moz-range-track{height:8px;border-radius:10px;background:linear-gradient(to right,var(--goal-color) 0 var(--goal-fill),#e4e9dc var(--goal-fill) 100%)}
.goal-slider::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:25px;height:25px;margin-top:-8.5px;border:3px solid #fff;border-radius:50%;background:var(--goal-color);box-shadow:0 2px 8px #30473d30,0 0 0 1px var(--goal-color)}
.goal-slider::-moz-range-thumb{width:19px;height:19px;border:3px solid #fff;border-radius:50%;background:var(--goal-color);box-shadow:0 2px 8px #30473d30,0 0 0 1px var(--goal-color)}
.goal-slider:focus-visible{outline:3px solid #dd9b50;outline-offset:3px;border-radius:8px}
.goal-ticks{display:flex;justify-content:space-between;margin:5px 8px 0;color:#6c7e65;font-size:10px;font-variant-numeric:tabular-nums}.goal-ticks span{width:10px;text-align:center}.goal-ticks span:last-child{color:var(--goal-color);font-size:15px;line-height:1}
.goal-scale{display:flex;justify-content:space-between;gap:10px;margin-top:8px;font-size:10px;color:#7b8871}.goal-scale>.bi-label:last-child{text-align:right}.goal-scale .bi-secondary{font-size:9px}
.goal-role-label{text-align:center;font-size:10px;color:#7b8871;margin:23px 0 10px}.goal-role-label .bi-secondary{font-size:10px}
.goal-role{border:1px solid #e5e8db;border-radius:16px;background:linear-gradient(145deg,#f9f7e9,#f1f5eb);padding:17px 13px;text-align:center;min-height:195px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px}
.goal-role-icon{display:block;font-size:33px;line-height:1.2}.goal-role>strong{display:block;font-size:15px;line-height:1.5;color:var(--goal-color)}.goal-role>strong .bi-secondary{font-size:11px}.goal-role p{font-size:11px;line-height:1.7;margin:2px 0 0;color:#6a7c61}.goal-role p .bi-secondary{font-size:10px}
/* Fit the complete 17-character dream into the card without a forced line break. */
.goal-role{container-type:inline-size}
.goal-role p.goal-role-hint-single{max-width:100%}
.goal-role-hint-single .bi-primary{font-size:9px;font-size:min(11px,5.7cqi);white-space:nowrap}
.daily-goal-control .goal-description{font-size:10px;line-height:1.7;color:#839079;text-align:center;margin:12px 0 16px}
.goal-status{border-top:1px dashed #dce4d3;padding-top:15px;font-size:11px}.goal-status-copy{display:flex;align-items:center;justify-content:space-between;gap:8px;font-weight:650}.goal-done-check{color:#4d8058;font-size:18px}.goal-progress{height:6px;border-radius:6px;overflow:hidden;background:#eaf0e2;margin-top:10px}.goal-progress>i{display:block;height:100%;background:#88aa71;border-radius:6px;transition:width .2s}.goal-status p{font-size:10px;margin:10px 0 0;color:#6e8065}
.goal-setting{display:grid;grid-template-columns:minmax(180px,1fr) minmax(0,430px);align-items:start;gap:28px}.goal-setting .daily-goal-control{margin:0;padding:22px;border:1px solid #e5e9df;border-radius:18px;background:#fcfcf8}.goal-setting .goal-role{min-height:180px}.goal-setting-intro p{max-width:340px}
@media(max-width:800px){.goal-setting{grid-template-columns:1fr}.goal-setting .daily-goal-control{width:100%;max-width:480px;padding:18px}.goal-setting-intro p{max-width:none}}
@media(prefers-reduced-motion:reduce){.goal-progress>i{transition:none}}.no-motion .goal-progress>i{transition:none}
/* Keep the book reference visible without competing with the exercise itself. */
.textbook-path{padding:15px 20px;margin:0 0 22px;border-radius:15px;background:#e9f0df;color:#365833;font-weight:700}
.question-source{border:1px solid #d3dfc8;border-left:4px solid #7c9b5e;border-radius:13px;background:#f5f8f0;padding:14px 16px;margin:0 0 23px;font-size:12px;color:#405636;text-align:left}
.source-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
.source-kind{font-size:12px;line-height:1.4}.source-pages{display:flex;gap:16px;align-items:flex-start;flex-wrap:wrap}
.book-pages{font-size:14px;font-weight:800;color:#36542d}.pdf-pages{color:#687762;font-size:11px}
.source-topic{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-top:9px}.source-topic>small{color:#718069;font-size:10px}
.question-source p{font-size:11px;margin:8px 0 0;line-height:1.55}.source-audio{display:block;margin-top:8px;color:#69745f}
.question-source .bi-secondary{font-size:10px}.source-evidence{margin-top:12px;border-top:1px solid #dae3d0;padding-top:9px}.source-evidence summary{cursor:pointer}.source-evidence p{white-space:pre-line;font-size:13px}
.extension-source{background:#fff8ea;border-color:#ead5a5;border-left-color:#cf9c43}.extension-source .source-kind{color:#846125}
.textbook-lesson{border:1px solid var(--line,#e6e7df);border-radius:15px;background:#fff;overflow:hidden}.textbook-lesson .lesson-card{border:0;width:100%;border-radius:0;background:transparent}
.lesson-book-pages{display:flex!important;gap:12px;flex-wrap:wrap;margin-top:7px!important}.lesson-book-pages .book-pages{font-size:11px}.lesson-book-pages .pdf-pages{font-size:10px}.lesson-book-pages .bi-secondary{font-size:9px}
.lesson-extension{padding:9px 20px 12px 74px;border-top:1px dashed #e8ebdf;color:#87917f;font-size:11px}.lesson-extension .text-button{padding:0;font-size:12px;text-align:left}.lesson-card .end .bi-secondary{font-size:9px;white-space:normal}
.result-extension{display:flex;gap:18px;align-items:center;justify-content:center;flex-wrap:wrap;padding:18px;background:#f5f8ed;border-radius:16px;margin:22px 0;font-size:13px;text-align:left}
.word-source{display:flex;gap:12px;margin:10px 0;flex-wrap:wrap}.word-source .book-pages{font-size:11px}.word-source .pdf-pages{font-size:10px}.word-source .bi-secondary{font-size:9px}
.passage{white-space:pre-line}.passage-title{display:block;font-size:18px;margin-bottom:3px}.passage>small{display:block;margin-bottom:14px;font-size:11px}.rule .question-source{margin:15px 0}.question-source .bi-label{vertical-align:top}
@media(max-width:600px){.question-source{padding:12px;margin-bottom:18px}.source-top{gap:9px}.source-pages{gap:14px}.source-topic{gap:5px}.lesson-extension{padding-left:18px}.textbook-lesson .lesson-card{gap:9px;padding:14px 12px}.textbook-lesson .lesson-icon{font-size:21px;width:33px;flex-shrink:0}.textbook-lesson .end{max-width:92px}.source-kind{font-size:11px}.book-pages{font-size:13px}.textbook-path{padding:13px;font-size:13px}.result-extension{text-align:center}}

/* Context-only words do not reserve an empty illustration column. */
.context-scene.text-context,.context-scene.spelling-context.text-context{grid-template-columns:minmax(0,1fr)}
.word-format{display:block;border-radius:10px;background:#eff3e8;color:#617450;padding:13px;font-size:12px;margin-bottom:4px}
.action-scene-steps{list-style:none;padding:0;margin:12px 0;display:grid;gap:9px}.action-scene-steps li{display:flex;align-items:flex-start;gap:10px;background:#f5f7ef;border-radius:10px;padding:12px}.action-scene-steps li>span{flex:0 0 23px;height:23px;border-radius:50%;background:#dfe9d4;color:#48643d;text-align:center;line-height:23px;font-size:12px}.action-scene-steps p{margin:0;font-size:14px;line-height:1.65;overflow-wrap:anywhere}

/* Keep the selected voice and its explicit audition control together. */
.voice-preview-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:14px}
.voice-preview-button{min-height:44px;padding:9px 13px;flex:1}
.voice-preview-button[aria-pressed=true]{background:#eaf1e5;border-color:#7e9c70}
.voice-preview-profile{font-size:11px;color:#64765c;white-space:nowrap}
.setting-row .voice-preview-text{margin:10px 0 0;font-size:12px;line-height:1.7;color:#65765f;overflow-wrap:anywhere}
.voice-setting .voice-picker .voice-preview-status{margin-top:9px;color:#46653c}
.voice-setting .voice-picker .voice-preview-status[hidden]{display:none}

/* Keep the greeting together in the middle, with its badges beside it. */
.home-welcome{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2.4fr) minmax(0,1fr);grid-template-areas:"title copy note";align-items:center;gap:18px;margin-bottom:20px}
.welcome-copy{grid-area:copy;min-width:0;text-align:center}
.home-welcome .welcome-copy h1{display:flex;align-items:flex-start;justify-content:center;gap:6px;font-size:30px;line-height:1.35;margin:0 0 6px}
.welcome-copy h1 .bi-label{align-items:center}
.welcome-sun{font-size:24px;line-height:1.65;flex-shrink:0}
.home-welcome .welcome-copy p{font-size:13px;line-height:1.6;margin:0}
.welcome-copy p .bi-label{align-items:center}
.welcome-title{grid-area:title;min-width:0;justify-self:start}
.home-welcome .welcome-title .achievement-title{margin:0;max-width:100%;font-size:12px;padding:8px 10px}
.home-welcome>.welcome-note{grid-area:note;display:inline-flex;justify-self:end;max-width:100%;padding:8px 12px;text-align:center;font-size:10px}
@media(max-width:1000px){.home-welcome{gap:12px;grid-template-columns:minmax(0,1fr) minmax(0,2.8fr) minmax(0,1fr)}.home-welcome .welcome-copy h1{font-size:26px}.home-welcome .welcome-copy p{font-size:12px}.home-welcome>.welcome-note{padding:8px}.welcome-sun{font-size:21px}}
@media(max-width:900px){.home-welcome{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"copy copy" "title note";gap:12px;margin-bottom:18px}.home-welcome .welcome-copy h1{font-size:26px}.home-welcome>.welcome-note{font-size:9px}.home-welcome .welcome-title .achievement-title{font-size:11px}.home-welcome .welcome-title .bi-secondary{font-size:10px}}

/* Keep textbook references beside the task when the learning area has room. */
.quiz-wrap.quiz-with-source { max-width:none; container-type:inline-size; }
.quiz-workspace {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-areas:"practice" "reference";
  align-items:start;
  gap:24px;
}
.quiz-practice { grid-area:practice; min-width:0; }
.quiz-workspace>.question-source {
  grid-area:reference;
  min-width:0;
  margin:0;
  overflow-wrap:anywhere;
}
.quiz-practice .quiz-bottom { margin-top:16px; min-height:64px; }
.quiz-bottom .quiz-action { display:inline-flex; align-items:center; justify-content:center; gap:14px; max-width:100%; }
.quiz-action-label { min-width:0; text-align:left; }
.quiz-action-key { flex-shrink:0; font:inherit; font-size:11px; line-height:1.3; white-space:nowrap; border:1px solid #ffffff70; border-bottom-width:2px; border-radius:5px; padding:4px 7px; background:#ffffff14; }
@container (min-width:820px) {
  .quiz-workspace {
    grid-template-columns:224px minmax(0,1fr);
    grid-template-areas:"reference practice";
  }
  .quiz-workspace>.question-source {
    position:sticky;
    top:calc(var(--app-header-height) + 20px);
    max-height:calc(100dvh - var(--app-header-height) - 40px);
    overflow-y:auto;
    scrollbar-width:thin;
    scrollbar-gutter:stable;
    padding:16px 14px;
  }
  .quiz-workspace .source-top { flex-direction:column; gap:12px; }
  .quiz-workspace .source-pages { flex-direction:column; gap:5px; }
  .quiz-workspace .source-topic { flex-direction:column; gap:5px; }
  .quiz-workspace .book-thumbnails { display:grid; grid-template-columns:minmax(0,1fr); }
  .quiz-workspace .book-page-button { width:100%; min-width:0; padding:7px; gap:8px; }
  .quiz-workspace .book-page-button img { width:43px; height:61px; }
  .quiz-workspace .book-page-button>span { min-width:0; }
  .quiz-practice .quiz-card { padding:24px; }
}

/* Keep pronunciation controls beside the prompt and supporting copy to the right. */
.quiz-content { padding-top:22px; padding-bottom:28px; }
.quiz-content .quiz-top { margin-bottom:16px; }
.quiz-content .quiz-header { margin-bottom:12px; }
.quiz-practice .question-heading { display:flex; flex-wrap:wrap; align-items:flex-start; gap:12px 24px; }
.question-main { flex:1 1 270px; min-width:0; }
.question-title-row { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-start; gap:8px 14px; }
.question-title-row h2 { min-width:0; max-width:100%; margin:0; overflow-wrap:anywhere; }
.question-title-row .audio-row { flex-wrap:nowrap; gap:8px; margin:0; }
.question-title-row .audio-button { min-height:44px; padding:8px 12px; margin:0; font-size:14px; }
.question-main>.phonetics { display:flex; flex-wrap:wrap; gap:6px 18px; margin:8px 0 0; font-size:15px; }
.question-guidance { flex:1 1 220px; max-width:340px; min-width:0; padding-top:3px; }
.question-guidance p { font-size:12px; line-height:1.45; }
.question-guidance .voice-notice { display:flex; flex-wrap:wrap; justify-content:flex-start; gap:6px 10px; min-height:0; margin:7px 0 0; font-size:11px; line-height:1.45; }
.question-guidance .voice-notice:first-child { margin-top:0; }
.question-guidance #voice-status { min-width:0; overflow-wrap:anywhere; }
@media(max-width:650px) {
  .content.quiz-content { padding-bottom:138px; }
  .quiz-practice .question-heading { gap:10px; }
  .question-main { flex-basis:100%; }
  .question-guidance { flex-basis:100%; max-width:none; padding-top:0; }
  .question-title-row { gap:8px 12px; }
  .question-title-row h2 { font-size:24px; }
  .question-title-row .audio-button { padding:7px 10px; font-size:13px; }
  .question-main>.phonetics { font-size:14px; gap:5px 12px; }
}
/* Keep the next/check action reachable when feedback makes the task taller. */
.quiz-practice .quiz-bottom:has(.quiz-action) {
  position:sticky;
  bottom:12px;
  z-index:5;
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fffefa;
  box-shadow:0 6px 24px #354c3210;
}
@media(max-width:650px) {
  .quiz-practice .quiz-bottom:has(.quiz-action) { bottom:112px; gap:8px; padding:8px 10px; }
}

.quiz-top .quiz-home { flex-shrink:0; display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:5px 8px; font-size:13px; text-align:left; }
.quiz-top .track { min-width:24px; }
.quiz-top>small { flex-shrink:0; white-space:nowrap; }
@media(max-width:650px) { .quiz-content .quiz-top { gap:12px; } .quiz-top .quiz-home { font-size:12px; padding:4px 6px; } }

/* Reserve the progress track space when a daily limit is turned off. */
.goal-status-space { height:6px; margin-top:10px; }

/* Keep the creation date with its wish, including on narrow screens. */
.wish{display:flex;flex-direction:column;gap:5px;max-width:100%;overflow-wrap:anywhere}.wish time,.wish>small{font-size:12px;line-height:1.5;color:#526c5a;font-variant-numeric:tabular-nums}.wish time{white-space:nowrap}
