.journey-unit-header{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#27378f;color:white;border-radius:22px;padding:22px;margin:24px 0}.journey-unit-header h2{color:inherit;margin:4px 0 0;font-size:23px}.journey-unit-header small{color:white;font-weight:800}.journey-unit-header>.btn{color:#1b2462;background:white}.journey-path{list-style:none;max-width:520px;margin:0 auto;padding:8px 12px 36px}.journey-path-stop{position:relative;display:flex;align-items:center;flex-direction:column;gap:10px;margin:0 auto;min-height:150px;width:200px;transform:translateX(var(--offset))}.journey-path-stop:before{content:'';position:absolute;top:78px;height:68px;left:calc(50% - 3px);width:6px;border-radius:6px;background:repeating-linear-gradient(to bottom,#dce0ef 0 7px,transparent 7px 14px);z-index:-1}.journey-path-stop:last-child:before{display:none}.journey-node{position:relative;display:grid;place-items:center;width:76px;height:76px;border:4px solid white;border-radius:50%;background:#e9ecf7;color:#27378f;font-size:30px;font-weight:900;box-shadow:0 6px 0 #c8cee5;cursor:pointer}.journey-path-stop.current .journey-node{background:#efc34b;color:#1d286e;box-shadow:0 6px 0 #c79c26,0 0 0 6px #fff0b8}.journey-path-stop.complete .journey-node{background:#21ac7a;color:white;box-shadow:0 6px 0 #17845d}.journey-node-count{position:absolute;bottom:-8px;right:-8px;background:#27378f;color:#fff;border:2px solid #fff;border-radius:50%;font-size:13px;width:25px;height:25px;display:grid;place-items:center}.journey-node-label{text-align:center;max-width:200px;font-size:15px;line-height:1.35}.journey-node-label small{display:block;color:var(--muted,#666a7e);margin-top:4px}.journey-path-brandy{position:absolute;width:74px;height:84px;top:0;left:calc(50% + 48px)}.journey-stop-heading,.journey-toolbar{display:flex;align-items:center;gap:12px;justify-content:space-between}.journey-stop-heading h2{margin:0}.journey-sessions{display:grid;gap:16px;margin:24px 0}.journey-session{display:flex;align-items:center;gap:16px;background:var(--surface,#fff);border:2px solid var(--line,#e4e5ed);border-bottom-width:5px;border-radius:22px;padding:18px;flex-wrap:wrap}.journey-session h3,.journey-session p{margin:0}.journey-session p{font-size:14px;color:var(--muted,#666a7e);margin-top:6px}.journey-session>div{flex:1;min-width:130px}.journey-session.complete{border-color:#9cd6b2}.journey-skill{display:grid;place-items:center;flex:0 0 52px;height:52px;border-radius:18px;background:#fff1bb;color:#242d79;font-size:28px}.journey-progress{height:12px;flex:1;background:#e5e7f0;border-radius:20px;overflow:hidden}.journey-progress i{display:block;height:100%;background:linear-gradient(90deg,#f4b936,#ffe18a);border-radius:20px;transition:width .2s}.journey-toolbar .btn{padding:10px;font-size:14px}.journey-stage{min-height:40vh;max-width:650px;margin:24px auto}.journey-stage .q{border:none;padding:0;background:transparent}.journey-stage .qth{font-size:clamp(24px,6vw,38px);line-height:1.45;margin:24px 0}.journey-stage .qopts{display:grid;gap:var(--question-answer-gap,12px);margin:24px 0}.journey-stage .qopt{border:2px solid var(--line,#dddfea);border-bottom-width:5px;border-radius:16px;min-height:var(--question-answer-height,62px);text-align:start;font-size:var(--question-answer-font,18px);padding:var(--question-answer-y,16px) var(--question-answer-x,16px)}.journey-stage .qopt.selected{border-color:#6672db;background:#eef0ff;color:#20275f}.journey-footer{position:sticky;bottom:calc(72px + env(safe-area-inset-bottom,0px));display:flex;gap:12px;padding:16px 0;background:var(--surface,#fff);z-index:3}.journey-footer>.btn{flex:1;min-height:54px}.journey-notebook{color:var(--ink,#182040);background:var(--surface,#fff);border:0;border-radius:24px;padding:24px;width:min(94vw,720px);max-height:85dvh;overflow:auto}.journey-notebook::backdrop{background:#111735a8}.journey-notebook>.btn{float:right}.journey-result{text-align:center}.journey-result img{width:140px;height:140px}.journey-result-stats{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.journey-result-stats strong{border:2px solid #efc657;border-radius:14px;padding:16px;color:var(--ink,#182040)}.journey-correction,.journey-brandy-bubble{padding:18px;background:#fff1bb;color:#242d79;border-radius:18px}.journey-answer{display:block;width:100%;font-size:24px;min-height:56px;padding:12px;border:2px solid #b6bedc;border-radius:14px;margin-top:8px}.journey-input-label{display:block;margin:24px 0;font-weight:700}@media(prefers-reduced-motion:reduce){.journey-progress i{transition:none}}@media(max-width:420px){.journey-session{padding:14px;gap:10px}.journey-session>.btn{width:100%}.journey-toolbar{gap:8px}.journey-path-stop{min-height:158px}}
.q.hide-pronunciation-helpers .rom,.q.hide-pronunciation-helpers .qrom{display:none}
.journey-activity-complete{box-sizing:border-box;max-width:620px;height:calc(100dvh - 32px);display:flex;flex-direction:column;margin:0 auto;overflow:hidden}
.journey-activity-celebration{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding:16px 0;text-align:center}
.journey-activity-mascot{display:flex;justify-content:center}.journey-activity-mascot>img{width:140px;height:170px;object-fit:contain}
.journey-activity-celebration h2{font-size:28px;line-height:1.4;margin:0;overflow-wrap:anywhere}

.journey-activity-complete>.journey-footer{position:static;flex:none;margin:0;padding:12px 0 calc(12px + env(safe-area-inset-bottom,0px))}
.journey-stage.journey-jump{box-sizing:border-box;width:min(calc(100vw - 32px),620px,100%)}
.journey-jump{max-width:620px;margin:0 auto;padding:16px 0 30px;overflow-wrap:anywhere}.journey-jump>.btn{margin:8px 0;min-height:52px}.journey-jump>.qth{font-size:26px}.journey-jump .qopts{display:grid;gap:12px;margin:22px 0}.journey-jump .qopt{width:100%}.journey-jump .qrom{display:block}.journey-jump>.journey-footer{bottom:calc(72px + env(safe-area-inset-bottom,0px))}
.journey-unit-header{background:#2e3d9e;color:#fff;border-radius:20px;padding:0;display:flex;align-items:stretch;gap:0;overflow:hidden;margin-bottom:28px;box-shadow:0 5px 0 #1f2b75}
.journey-section-open{appearance:none;background:transparent;color:inherit;border:0;flex:1;min-width:0;text-align:start;padding:18px 20px;cursor:pointer;font:inherit}
.journey-section-open small{display:block;color:#e1e5ff;font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.journey-section-open h2{color:inherit;font-size:20px;line-height:1.3;margin:5px 0 0;overflow-wrap:anywhere}
.journey-unit-header>[data-notebook]{border:0;border-inline-start:1px solid #ffffff38;border-radius:0;background:transparent;color:#fff;min-width:66px;padding:16px;font-size:27px}
.journey-section{border:2px solid var(--line,#dddfea);border-radius:18px;margin:16px 0;overflow:hidden}
.journey-section summary{padding:18px;cursor:pointer;display:grid;gap:6px;background:var(--surface,#f7f8fc)}
.journey-section summary b{font-size:20px}.journey-section summary span{color:var(--muted,#61687c)}
.journey-section progress{display:block;appearance:none;-webkit-appearance:none;width:100%;height:10px;border:0;border-radius:10px;overflow:hidden;background:#e2e6ee;color:#26aa80}
.journey-section progress::-webkit-progress-bar{background:#e2e6ee;border-radius:10px}
.journey-section progress::-webkit-progress-value{background:#26aa80;border-radius:10px}
.journey-section progress::-moz-progress-bar{background:#26aa80;border-radius:10px}
.journey-unit-option{width:100%;display:flex;align-items:center;gap:12px;min-height:66px;border:0;border-top:1px solid var(--line,#dddfea);background:var(--surface,#fff);color:var(--ink,#182040);padding:14px 18px;text-align:start;font:inherit;cursor:pointer}
.journey-unit-option>span:first-child{font-size:12px;min-width:52px;color:var(--muted,#61687c)}
.journey-unit-option[aria-current=true]{background:#edf0ff;color:#25358e}.journey-unit-option b{flex:1;min-width:0;font-size:15px;overflow-wrap:anywhere}
.journey-section-open:focus-visible,.journey-unit-option:focus-visible{outline:3px solid #efb936;outline-offset:-4px}
.journey-course-sheet[open]{display:flex;flex-direction:column;overflow:hidden}
.journey-section-card{display:grid;gap:8px;width:100%;padding:18px;text-align:start;background:var(--surface,#f7f8fc);color:var(--ink,#182040);font:inherit;cursor:pointer}
.journey-section-card b{font-size:20px}.journey-section-card>span{color:var(--muted,#61687c)}.journey-section-card[aria-current=true]{border-color:#6672db}
.course-journey-unit{scroll-margin-top:12px}.course-journey-placeholder{display:flex;flex-direction:column;align-items:center;gap:76px;padding:34px 0}
.course-journey-placeholder i{display:block;width:72px;height:66px;border-radius:50%;background:#e4e7ef;box-shadow:0 6px 0 #d2d7e3;transform:translateX(calc(var(--turn)*60px))}
.journey-course-header{display:flex;align-items:flex-start;gap:16px;flex:none;padding-bottom:16px;border-bottom:1px solid var(--line,#dddfea)}
.journey-course-header h2{flex:1;min-width:0;margin:0;font-size:24px;font-weight:800;line-height:1.3;overflow-wrap:anywhere}
.journey-course-header .journey-course-close{flex:none;width:48px;min-width:48px;height:48px;padding:0;border-radius:18px;background:var(--surface2,#f5f6fa);font-size:30px;line-height:1}
.journey-course-body{min-height:0;overflow:auto;padding-top:14px;overscroll-behavior:contain}
.journey-unit-guide{padding:0 22px 24px;max-width:760px;line-height:1.65}
.journey-guide-head{position:sticky;top:0;z-index:2;display:flex;align-items:flex-start;gap:16px;padding:22px 0 16px;background:var(--surface,#fff);border-bottom:1px solid var(--line,#dddfea)}
.journey-guide-head>div{flex:1;min-width:0}.journey-guide-head small{font-size:12px;color:var(--muted,#61687c);font-weight:800;text-transform:uppercase;letter-spacing:.06em}.journey-guide-head h2{font-size:24px;margin:4px 0;line-height:1.25}



.journey-node-preview{position:relative;z-index:2;background:var(--surface,#fff);border:2px solid #e6bd48;border-bottom-width:5px;border-radius:20px;padding:18px;width:min(300px,calc(100vw - 64px));box-shadow:0 8px 24px #20275f12;text-align:start}.journey-node-preview p{margin:8px 0 14px;color:var(--muted,#666a7e)}.journey-node-preview .btn{width:100%}.journey-exercise{max-width:760px;margin:0 auto}.journey-exercise>.btn{margin-bottom:18px}.journey-exercise #gmain{padding:0;background:transparent;border:0}.journey-exercise .journey-stop-heading{padding-top:10px}

.journey-path-wrap{position:relative;isolation:isolate}.journey-path{position:relative;z-index:1}.journey-path-stop{--offset:calc(var(--turn,0) * clamp(30px,14vw,70px))}.journey-path-stop:before{display:none}.journey-trail{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}.journey-trail path{fill:none;stroke:#dce0ef;stroke-width:8;stroke-linecap:round;stroke-dasharray:2 15}.journey-node-preview{transform:translateX(calc(-1 * var(--offset)))}.journey-path-character{position:absolute;right:-72px;top:8px;background:none;border:0;padding:0;width:100px;height:116px;cursor:pointer}.journey-path-character.on-left{right:auto;left:-72px}.journey-path-character svg{max-width:100%;height:100%}.journey-path-character:focus-visible{outline:3px solid #edbd3c;border-radius:20px}.journey-path-character:active{transform:rotate(-5deg) scale(.96)}
.journey-path-stop.bend-right .journey-path-brandy{left:auto;right:calc(50% + 42px)}
.journey-scenery{position:absolute;inset:0;pointer-events:none;z-index:0}.journey-landscape{position:absolute;display:block;opacity:var(--journey-scenery-opacity,.48);pointer-events:none}.journey-landscape svg{display:block;width:100%;height:100%}
.journey-path-character{isolation:isolate;z-index:2}.journey-path-character:before{content:'';position:absolute;inset:12px 0 3px;border-radius:46% 46% 38% 38%;background:#fff8df;border:2px solid #e3c96c;box-shadow:0 4px 0 #decfa4;z-index:-1}.journey-path-character .kc{max-width:100%;filter:drop-shadow(0 2px 1px #2f35682b)}.journey-talk-cue{position:absolute;bottom:-13px;left:50%;transform:translateX(-50%);width:max-content;max-width:110px;border:1px solid #e3c96c;border-radius:12px;background:#fff;color:#27378f;padding:4px 8px;font-size:11px;font-weight:800;line-height:1.2}.journey-path-character .arm-r{animation:journey-invite-wave 7s ease-in-out infinite!important;transform-origin:0 0}.journey-path-character .fig{animation:none}.journey-path-character[data-visible=false] .kc *{animation-play-state:paused!important}@keyframes journey-invite-wave{0%,7%,35%,100%{transform:rotate(-12deg)}12%,22%{transform:rotate(-148deg)}17%,27%{transform:rotate(-176deg)}}@media(prefers-reduced-motion:reduce){.journey-path-character .kc *,.journey-discovery-character .kc *{animation:none!important;transition:none!important}}
.word-definition-token{cursor:pointer;text-decoration:underline dotted;text-underline-offset:5px;text-decoration-color:var(--muted,#69718a)}.word-definition-token:focus-visible{outline:2px solid var(--blue,#3047ce);outline-offset:3px;border-radius:3px}.word-definition-dialog{width:min(420px,calc(100vw - 32px));box-sizing:border-box;border:1px solid var(--line,#dddfea);border-radius:24px;background:var(--surface,#fff);color:var(--ink,#192042);padding:24px;box-shadow:0 16px 60px #0003}.word-definition-dialog::backdrop{background:#11173580}.word-definition-dialog h2{margin:0 0 16px;font-size:26px}.word-definition-dialog p{line-height:1.65;white-space:pre-wrap}.word-definition-dialog .btn{width:100%;margin-top:16px}
.word-definition-popover{position:fixed;margin:0;width:min(280px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:16px;border-radius:16px;overflow:auto;box-shadow:0 6px 24px #10173526}.word-definition-popover::backdrop{background:transparent}.word-definition-popover h2{font-size:20px;margin-bottom:8px}.word-definition-popover p{margin:8px 0;line-height:1.4}.word-definition-popover .btn{margin-top:8px;padding:8px;font-size:14px;min-height:40px}
.journey-footer.journey-refill-footer{position:relative;bottom:auto;display:grid;grid-template-columns:minmax(0,1fr);max-width:650px;margin:0 auto;padding:16px 0 calc(24px + env(safe-area-inset-bottom,0px))}.journey-refill-footer>.btn{width:100%;min-width:0;white-space:normal}.journey-rest-recovery{font-size:15px;line-height:1.5;color:var(--muted,#666a7e)}

.journey-jump .journey-toolbar .journey-assessment-back{width:48px;height:48px;min-height:48px;flex:0 0 48px;padding:0;font-size:32px;line-height:1;border-radius:14px}.journey-jump .journey-toolbar{margin-bottom:calc(var(--question-bubble-padding,16px)/2)}
.journey-jump .journey-assessment-count{font-size:14px;line-height:1.5;margin:calc(var(--question-bubble-padding,12px)/2) 0}
.journey-session-active .journey-stage.journey-jump{margin-top:4px}
.journey-jump .qprompt{font-size:24px;line-height:1.4}
.journey-stage.journey-jump .qprompt{margin:calc(var(--question-bubble-padding,16px)/2) 0}
.journey-jump>.qline{margin:4px 0}
.journey-jump .journey-assessment-audio{flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;box-sizing:border-box;display:grid;place-items:center;padding:8px}
.journey-assessment-prompt{display:flex;align-items:center;gap:12px}.journey-assessment-prompt>.qprompt{flex:1;min-width:0}.journey-assessment-prompt>.qline{flex:0 0 44px;width:44px;height:44px;min-height:44px;box-sizing:border-box;display:grid;place-items:center;padding:8px}
.journey-session-active .journey-jump[data-assessment-question]{display:flex;flex-direction:column;height:var(--assessment-height,calc(100dvh - 24px));max-height:var(--assessment-height,calc(100dvh - 24px))}
.journey-jump[data-assessment-question]>*{flex-shrink:0}
.journey-jump[data-assessment-question]>.qopts{flex:0 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;align-content:start;grid-auto-rows:max-content;padding:0 2px 6px;scroll-padding:6px}
.journey-jump[data-assessment-question] .qopt{display:block;white-space:normal}
@media(max-width:600px){.journey-jump .qprompt{font-size:19px}.journey-jump .lesson-speaker{margin:8px 0}.journey-jump .qopts{margin:8px 0;gap:8px}}

.journey-toolbar{gap:10px;min-height:48px}
.journey-toolbar .journey-toolbar-action{display:grid;place-items:center;box-sizing:border-box;flex:0 0 48px;width:48px;height:48px;min-height:48px;padding:12px;border:1px solid var(--line,#dddfea);border-radius:14px;background:#fff;color:var(--ink,#182040);box-shadow:none}
.journey-toolbar-action svg{display:block;width:24px;height:24px;pointer-events:none}
.journey-toolbar-action:focus-visible{outline:3px solid #6672db;outline-offset:2px}

.journey-notebook.journey-exit{box-sizing:border-box;position:fixed;inset:auto 0 0;margin:0 auto;width:100%;max-width:620px;max-height:90dvh;border-radius:24px 24px 0 0;padding:24px 20px calc(20px + env(safe-area-inset-bottom,0px));text-align:center;background:#fff;color:#182040}
.journey-notebook.journey-exit[open]{display:flex;flex-direction:column;overflow:hidden}
.journey-exit-content{min-height:0;overflow:auto;overscroll-behavior:contain}
.journey-exit-mascot{display:flex;justify-content:center;height:190px;margin:0 auto 16px}
.journey-exit-mascot .kc-svg{max-height:190px}
.journey-exit-mascot>img{display:block;object-fit:contain;width:140px;height:170px}
.journey-exit-actions{flex:none}
.journey-exit .journey-brandy-bubble{font-size:23px;font-weight:700;line-height:1.5;margin:0;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}
.journey-exit-saved{font-size:17px;line-height:1.5;color:#666a7e;margin:16px 0 20px}
.journey-exit-actions>.btn{box-sizing:border-box;float:none;display:block;width:100%;min-height:48px;margin:12px 0 0;white-space:normal}
.journey-exit-actions>.btn:not(.primary){background:transparent;color:#b43a49;border-color:transparent;box-shadow:none}
.journey-word-locked h2{text-align:center;margin:0 0 10px}
.journey-notebook.journey-stepback .journey-exit-actions>.btn:not(.primary){background:#fff;color:#182040;border-color:#e0e2ec;border-radius:24px}
.journey-stepback .journey-brandy-bubble{color:#182040}

/* Active lessons own navigation; their action row sits above the system edge. */
/* Reports use separate readable rows; only the reason list scrolls on short screens. */
.question-feedback-body{min-height:0;overflow-y:auto;overscroll-behavior:contain}
.question-report-reason{display:flex;align-items:flex-start;gap:12px;padding:12px 2px;min-height:44px;box-sizing:border-box;font-size:16px;line-height:1.5;cursor:pointer}
.question-report-reason input{flex:0 0 20px;width:20px;height:20px;margin:3px 0 0;accent-color:#2747c4}
.question-report-reason span{min-width:0;overflow-wrap:anywhere}
.question-feedback textarea{display:block;box-sizing:border-box;width:100%;min-height:80px;resize:vertical;border:2px solid var(--line,#dddfea);border-radius:12px;padding:12px;font:inherit;font-size:16px;color:var(--ink,#182040);background:var(--surface,#fff)}
.question-feedback [role=status]:empty{display:none}
.question-feedback-actions{display:flex;gap:10px;flex:none}
.question-feedback-actions>.btn{flex:1;min-width:0;min-height:48px;white-space:normal;float:none}
.question-explanation[open]{display:flex;flex-direction:column;box-sizing:border-box;width:min(94vw,720px);max-height:85dvh;padding:20px;gap:16px}
.question-explanation-header{display:flex;align-items:center;gap:12px;flex:none}
.question-explanation-header h2{margin:0;font-size:24px;line-height:1.4;overflow-wrap:anywhere}
.question-explanation-header>.btn{display:grid;place-items:center;flex:0 0 48px;width:48px;min-height:48px;padding:8px;float:none}
.question-explanation-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;font-size:18px;line-height:1.6}
.question-explanation-body p{white-space:pre-line}
.question-explanation-body .question-answer-comparison{margin-top:0}
.question-explanation-actions{flex:none;display:grid;gap:12px}
.word-definition-token+.word-definition-token{margin-inline-start:.14em}
.word-definition-popover .word-definition-reading{margin:0 0 6px;color:var(--muted,#69718a);font-size:.9rem}
.question-explanation-actions>.btn{width:100%;min-height:48px;white-space:normal;float:none}
.journey-path-character{right:auto;top:0;width:86px;height:112px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.journey-path-wrap:has(.journey-node-preview) .journey-path-character{visibility:hidden}
.journey-path-character .lesson-speaker-portrait{display:block;width:64px;height:73px;flex:0 0 73px;margin:0 auto;aspect-ratio:auto}
.journey-path-character .journey-talk-cue{position:static;transform:none;width:auto;max-width:86px;padding:4px;text-align:center}
.journey-node-label{background:var(--bg,#f5f6fc);border-radius:8px}
.journey-discovery-header{display:flex;align-items:center;gap:16px;margin:16px 0}
.journey-discovery-character{flex:0 0 112px}
.journey-discovery-character .lesson-speaker-portrait{display:block;width:112px;height:127px;aspect-ratio:auto}
.journey-discovery-dialogue{flex:1;min-width:0;border:2px solid var(--line,#e2e6ee);border-radius:22px;background:var(--surface,#fff);padding:16px;font-size:18px;line-height:1.4;color:var(--ink,#18213a)}
.journey-discovery-title{font-size:24px;margin:16px 0}
.journey-discovery-actions{position:sticky;bottom:calc(72px + env(safe-area-inset-bottom,0px));padding:16px 0;background:var(--bg,#f5f6fc)}
.journey-discovery-actions>.btn{width:100%;min-height:54px}
.journey-path-character[data-visible=false] .lesson-speaker-portrait{animation-play-state:paused}
button,.btn,[role=button]{text-align:center!important}
.panel>.btn:is([style*="width:100%"],[style*="width: 100%"]) + .btn:is([style*="width:100%"],[style*="width: 100%"]){margin-block-start:12px}
.journey-stage .lesson-speaker{gap:var(--question-character-gap,14px)}
.journey-stage .lesson-speaker-portrait{width:var(--question-portrait,96px);flex-basis:var(--question-portrait,96px)}
.journey-stage .lesson-speaker-bubble{padding:var(--question-bubble-padding,16px)}
@media(max-width:600px){
 .journey-session-active main{padding-top:12px}
 .journey-session-active .banner .wrap{padding-block:6px;gap:8px;flex-wrap:nowrap;align-items:center}
 .journey-session-active .banner p{flex:1 1 auto;font-size:14px;line-height:1.3}
 .journey-session-active .banner #bannerHint{display:none}
 .journey-session-active .banner .row{flex-wrap:nowrap;gap:6px}
 .journey-session-active .banner .btn{font-size:12px;min-height:32px;padding:5px 8px}
 .journey-session-active .journey-stage{min-height:0;margin:12px auto;padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))}
 .journey-stage .lesson-speaker{gap:var(--question-character-gap);margin:8px 0 12px}
 .journey-stage .lesson-speaker-portrait{width:var(--question-portrait);flex-basis:var(--question-portrait)}
 .journey-stage .lesson-speaker-bubble{padding:var(--question-bubble-padding)}
 .journey-stage .qth{font-size:24px;line-height:1.5;margin:12px 0}
 .journey-stage .q{gap:6px}
 .journey-stage .lesson-speaker-bubble .qth{margin:0}
 .journey-stage .qprompt{font-size:19px;line-height:1.4;margin:8px 0}
 .journey-stage .qopts{gap:var(--question-answer-gap,8px);margin:8px 0}
 .journey-stage .qopt{min-height:var(--question-answer-height,48px);padding:var(--question-answer-y,10px) var(--question-answer-x,12px);font-size:var(--question-answer-font,17px);line-height:1.35}
 .journey-stage .vocabulary-picture-grid .qopt img{width:64px;height:64px}
 .journey-stage .reading .passage,.journey-stage .qpassage{max-height:min(28dvh,220px);overflow-y:auto;overscroll-behavior:contain;font-size:16px;line-height:1.5}
}
body.journey-session-active #tabbar{display:none}
@media(max-width:360px) and (max-height:700px){
 .journey-session-active .journey-stage .lesson-speaker{gap:var(--question-character-gap);margin:4px 0 8px}
 .journey-session-active .journey-stage .lesson-speaker-portrait{width:var(--question-portrait);flex-basis:var(--question-portrait)}
 .journey-session-active .journey-stage .lesson-speaker-bubble{padding:var(--question-bubble-padding)}
 .journey-session-active .journey-stage .qth{font-size:22px}
 .journey-session-active .journey-stage .qopts{gap:var(--question-answer-gap,4px)}
 .journey-session-active .journey-stage .qopt{padding:var(--question-answer-y,8px) var(--question-answer-x,10px)}
}
.journey-session-active .journey-footer:not(.journey-refill-footer){position:fixed;left:20px;right:20px;bottom:0;max-width:650px;margin:0 auto;padding:16px 0 calc(16px + env(safe-area-inset-bottom,0px))}
.journey-session-active .journey-stage{padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))}
.journey-session-active .topbar{display:none}










/* Keep the conversation player controls in the same two rows as Android. */
.journey-listening-track .player{display:block;border-radius:24px;padding:6px 10px 6px 6px}
.journey-listening-track .player-main{display:flex;align-items:center;gap:10px;min-width:0}
.journey-listening-track .player-main .seek{flex:1 1 0;min-width:0;width:0}
.journey-listening-track .player-main .time{flex:0 0 84px;min-width:0;overflow-wrap:anywhere}
.journey-listening-track .player-tools{display:flex;align-items:center;gap:10px;margin-top:10px}
.journey-listening-track .player-tools .back5,.journey-listening-track .player-tools .spd{box-sizing:border-box;min-height:44px}
.journey-listening-track .player-tools .spd{width:96px}
.journey-listening-track .player.audio-failed .time{font-size:12px}
.journey-listening-track>h3{font-size:18px;font-weight:700;line-height:1.15;margin:0}
.journey-listening-track>.journey-track-instructions{font-size:16px;line-height:1.5;margin:16px 0}
.journey-listening-track>details>summary{min-height:44px;font-size:16px;line-height:1.5;cursor:pointer}
.journey-transcript-row{display:flex;align-items:flex-start;gap:8px}
.journey-listening-track .journey-transcript-play{flex:0 0 48px;width:48px;min-height:48px;padding:0;display:grid;place-items:center}
.journey-transcript-play svg{width:20px;height:20px}
.journey-transcript-words{flex:1;min-width:0;font-size:16px;line-height:1.5}
.journey-transcript-sentence{display:flex;align-items:flex-start;gap:4px;padding:6px 0}
.journey-transcript-sentence>b{flex:0 1 auto;max-width:100px;overflow-wrap:anywhere}
.journey-transcript-sentence>.th{flex:1;min-width:0;overflow-wrap:anywhere}
.journey-transcript-words>p{margin:0;padding:6px 0}
.journey-transcript-error{font-size:14px;color:var(--muted);line-height:1.5}

/* Shared full-body Brandy frame for completed lessons, review and verified ad rewards. */
.journey-brandy-portrait{display:flex;align-items:center;justify-content:center;width:140px;height:170px;max-width:100%;margin:0 auto 12px;flex:none}.journey-brandy-portrait>.kc{width:140px!important;max-width:100%;margin:0}.journey-brandy-portrait>img{width:140px;height:140px;object-fit:contain}

.journey-node-art{display:block;width:32px;height:32px;pointer-events:none}.journey-node-art>svg{display:block;width:100%;height:100%}
.journey-game-empty{margin:0 0 16px;padding:16px;border:2px solid #e2e6ee;border-radius:16px;background:#eef0ff;color:#20275f;font-size:16px;line-height:1.5}

.journey-session-active .journey-footer.journey-share-actions{display:flex;gap:12px}.journey-share-actions>.btn{flex:1;min-width:0;white-space:normal}.journey-share-notice{font-size:14px;line-height:1.5;color:#677084;margin:0;overflow-wrap:anywhere}.journey-share-notice:empty{display:none}

/* Guidebook loading fills the same body as the finished guide. */
.journey-guide-loading{display:grid;flex:1;place-items:center;color:var(--accent,#2747c4)}
.journey-guide-loading .guide-spinner{width:26px;height:26px;border:3px solid #e4e9f8;border-top-color:currentColor;border-radius:50%;animation:guide-spin .8s linear infinite}
@keyframes guide-spin{to{transform:rotate(1turn)}}
@media(prefers-reduced-motion:reduce){.journey-guide-loading .guide-spinner{animation:none}}

/* BEGIN generated unit guide layout */
.journey-unit-guide{box-sizing:border-box;width:min(94vw,720px);padding:0 22px 24px;border-radius:24px;overflow:hidden}.journey-unit-guide[open]{display:flex;flex-direction:column;height:85dvh}
.journey-guide-head{flex:none;display:flex;align-items:flex-start;gap:16px;padding:22px 0 16px;background:#fff;border-bottom:1px solid #e4e5ed}
.journey-guide-head>div{flex:1;min-width:0}.journey-guide-head small{display:block;font-size:12px;line-height:1.5;color:#666a7e;font-weight:800;text-transform:none;letter-spacing:normal}.journey-guide-head h2{font-size:24px;font-weight:700;margin:4px 0 0;line-height:1.3;overflow-wrap:anywhere;color:#182040}
.journey-guide-head .journey-guide-close{box-sizing:border-box;flex:0 0 48px;width:48px;height:48px;min-height:48px;display:grid;place-items:center;padding:12px;border:1px solid #e4e5ed;border-radius:16px;background:#f5f6fa;color:#182040;box-shadow:none}.journey-guide-close svg{width:100%;height:100%}
.journey-guide-body{min-height:0;overflow:auto;overscroll-behavior:contain}
.journey-guide-card .wordlist{grid-template-columns:minmax(0,1fr);gap:8px}.journey-guide-card .word{gap:12px;padding:10px 12px;border:1px solid #e4e5ed;border-radius:8px;background:#fff}
.journey-guide-card .word>div{flex:1;min-width:0}
.journey-guide-card .word .saypair{gap:8px}.journey-guide-card .word .say{width:48px;height:48px;border-color:#e4e5ed;background:#f5f6fa}.journey-guide-card .word .say .icon{width:22px;height:22px}
.journey-guide-card .word .th{font-size:22px;font-weight:700;line-height:1.7}.journey-guide-card .word .rom{font-size:15px;line-height:1.5;color:#666a7e}.journey-guide-card .word .en{font-size:14px;line-height:1.5;color:#182040}
.journey-guide-card .gblock>h4{margin:0;padding:3px 0 7px;font-size:17px;font-weight:700;line-height:1.5;color:#182040;letter-spacing:normal;text-transform:none}
.pron.pron-guide{color-scheme:light;--surface:#fff;--surface2:#f5f6fa;--ink:#182040;--muted:#666a7e;--line:#e4e5ed;--accent:#2747c4;--accent-soft:#e7ecfb;--good:#15803d;--good-soft:#dcf3e4;--bad:#c0352b;--bad-soft:#fbe4e1}
.journey-guide-nav{display:flex;gap:8px;overflow-x:auto;padding:16px 0}.journey-guide-nav .btn{flex:none;max-width:240px;text-align:start;line-height:1.3;font-size:13px;border-radius:18px}
.journey-guide-section{scroll-margin-top:110px;padding:16px 0 22px;border-bottom:1px solid #e4e5ed}.journey-guide-section:last-child{border:0}
.journey-guide-section h3{display:flex;align-items:flex-start;gap:12px;font-size:21px;line-height:1.3;margin:0 0 18px}
.journey-guide-number{display:grid;place-items:center;flex:0 0 32px;min-height:32px;border-radius:12px;background:#fff1bb;color:#242d79;font-size:17px}
.journey-guide-card{padding:16px 16px 12px;margin-bottom:16px;border:1px solid #e4e5ed;border-radius:20px;background:#f7f8fc;color:#182040;min-width:0}
.journey-guide-card>section{margin:0;background:transparent;border:0;padding:0;box-shadow:none}.journey-guide-card[data-guide-kind=culture]{background:#fff6df}.journey-guide-card[data-guide-kind=tip]{background:#edf5ff}
.journey-guide-card p{font-size:17px;line-height:1.65}.journey-guide-card>:last-child{margin-bottom:0}
.journey-guide-section .table-wrap{overflow-x:auto}.journey-guide-section table{width:100%;font-size:15px;border-collapse:separate;border-spacing:0}.journey-unit-guide .journey-guide-section th,.journey-unit-guide .journey-guide-section td{padding:12px;text-align:start;line-height:1.5}.journey-guide-section th{background:var(--surface,#f2f4fb)}
.journey-unit-guide{color-scheme:light;--ink:#182040;--muted:#666a7e;--surface:#fff;--line:#e4e5ed;color:var(--ink);background:var(--surface)}
.journey-guide-head h2,.journey-guide-section h3{letter-spacing:-0.01em;text-wrap:balance}.journey-guide-card>.gblock{gap:10px}
/* END generated unit guide layout */

/* One section at a time; its unit description follows the scroll position. */
.course-journey-unit[hidden]{display:none}.course-journey-pinned{position:sticky;top:0;z-index:8;background:var(--surface,#fff);padding:1px 0 10px}.course-journey-pinned .journey-unit-header{margin:0}.course-journey-unit>.journey-unit-header{display:none}.course-journey-unit{scroll-margin-top:130px}.journey-unit-jump{display:flex;flex-direction:column;align-items:center;gap:12px;margin:20px auto 40px;color:#27378f}.journey-unit-jump .journey-node{background:#efc34b;box-shadow:0 6px 0 #c79c26}

.course-journey{overflow-anchor:none}

.journey-path-brandy .kc{width:74px;height:84px}

.jump-tries{display:flex;gap:3px;font-size:20px;flex-shrink:0}.jump-tries .used{filter:grayscale(1);opacity:.25}.journey-jump-intro{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;min-height:65dvh;text-align:center}.journey-jump-intro>.btn.primary{width:min(100%,460px);margin-top:auto}.journey-jump-intro .journey-brandy-bubble{max-width:460px}

.jump-tries{color:#f1a822}.jump-tries .used{color:#d6dbe6;filter:none;opacity:1}

.jump-tries{height:32px;justify-content:flex-end;align-items:center;margin:0 0 8px;gap:4px}.jump-tries span{width:24px;height:24px;display:block}.jump-tries svg{width:100%;height:100%}

.journey-jump-destination{font-size:clamp(28px,6vw,40px);font-weight:800;color:var(--ink,#242d79);margin:8px 0}.journey-jump-intro>.brandy-portrait{flex-shrink:0}.journey-jump-intro>p{max-width:460px;line-height:1.5}.journey-jump-intro .jump-tries{justify-content:center;color:#f1a822}

.course-journey-loading{display:flex;min-height:55dvh;flex-direction:column;align-items:center;justify-content:center;gap:18px;text-align:center;padding:24px;font-size:18px}.course-journey-loading[hidden],.course-journey-content[hidden],.course-journey-pinned[hidden]{display:none!important}

.journey-path-stop.locked .journey-node{background:#d8dde5;color:#8e94a1;box-shadow:0 6px 0 #bcc2cc}

/* Section boundaries remain visible; locked section paths do not. */
.journey-section-range{justify-self:end;background:#edf0f5;border-radius:10px;padding:4px 10px;font-weight:700;font-size:14px}
.journey-section-card .journey-section-action{color:#2c52ae;font-weight:800;text-transform:uppercase;font-size:15px}
.journey-section-next{text-align:center;padding:36px 20px 44px;border-top:2px solid #e2e6ee;background:#f7f8fc;color:#657086;margin-top:24px}
.journey-section-next small{display:inline-block;background:#e9ebf0;border-radius:8px;padding:6px 12px;text-transform:uppercase;font-weight:800}
.journey-section-next h2{font-size:24px;line-height:1.5}.journey-section-next p{line-height:1.6}.journey-section-next>.btn{width:100%;margin-top:20px;color:#2c52ae;font-weight:800}
.journey-unit-jump .journey-jump-bubble{order:-1;position:relative;border:2px solid #dfe3eb;border-radius:14px;padding:12px 16px;background:#fff}
.journey-jump-bubble:after{content:'';position:absolute;width:12px;height:12px;bottom:-8px;left:calc(50% - 7px);background:#fff;border-right:2px solid #dfe3eb;border-bottom:2px solid #dfe3eb;transform:rotate(45deg)}

.journey-unit-divider{display:flex;align-items:center;gap:16px;color:#788195;font-weight:700;text-align:center;padding:22px 0 30px;line-height:1.5}.journey-unit-divider:before,.journey-unit-divider:after{content:"";height:2px;background:#e2e6ee;flex:1}.journey-unit-divider span{max-width:75%}

.journey-return-current{position:fixed;z-index:12;bottom:calc(96px + env(safe-area-inset-bottom,0px));inset-inline-end:max(20px,calc((100vw - 720px)/2));width:54px;height:54px;border:2px solid #dfe3eb;border-radius:17px;background:#fff;color:#2f48a7;box-shadow:0 4px 0 #dfe3eb;font-size:32px;font-weight:800;cursor:pointer}.journey-return-current[hidden]{display:none}.journey-return-current:focus-visible{outline:3px solid #efb936;outline-offset:3px}

.journey-answer-feedback{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:18px!important;border-radius:18px;box-sizing:border-box}.journey-answer-feedback.correct{background:#e1f6df;color:#176b32}.journey-answer-feedback.incorrect{background:#ffe5e4;color:#a72c30}.journey-answer-feedback p{margin:0;line-height:1.5}.journey-answer-feedback>.primary{width:100%}

.journey-loading-mascot{margin:0 auto 16px;width:140px;height:160px;display:grid;place-items:center}.journey-loading-mascot img{max-width:100%;max-height:100%;object-fit:contain}.journey-loading-progress{display:block;width:min(280px,80%);height:14px;margin:18px auto;accent-color:#4255be}.journey-loading-dots{display:inline-flex;min-width:1.2em}.journey-loading-dots i{font-style:normal;animation:journey-loading-dot 1.2s infinite}.journey-loading-dots i:nth-child(2){animation-delay:.2s}.journey-loading-dots i:nth-child(3){animation-delay:.4s}@keyframes journey-loading-dot{0%,70%,100%{opacity:.25;transform:translateY(0)}35%{opacity:1;transform:translateY(-3px)}}@media(prefers-reduced-motion:reduce){.journey-loading-dots i{animation:none}}

/* Keep milestone feedback above Continue even on a short viewport. */
.journey-footer:has(>.journey-combo){flex-direction:column;gap:8px}
.journey-combo{display:flex;align-items:center;justify-content:center;gap:8px;align-self:center;box-sizing:border-box;max-width:100%;margin:0;padding:6px 16px;border-radius:18px;background:#fff1bb;color:#242d79;font-size:16px;font-weight:700;line-height:1.5;text-align:center;overflow-wrap:anywhere}
.journey-combo>span::before{content:"\2726";color:#854900;font-size:18px;line-height:1}
.journey-session-active .journey-stage:has(+.journey-footer>.journey-combo){padding-bottom:calc(156px + env(safe-area-inset-bottom,0px))}
@media(prefers-reduced-motion:no-preference){
 .journey-combo{animation:journey-combo-pop 350ms ease-out both}
 @keyframes journey-combo-pop{0%{transform:scale(.88)}55%{transform:scale(1.06)}100%{transform:scale(1)}}
}

.feature-coach{position:fixed;inset:auto;z-index:20000;box-sizing:border-box;width:max-content;max-width:min(274px,calc(100vw - 16px));margin:0;padding:9px 13px;border:1px solid #e6cd85;border-radius:12px;background:#fff5d9;color:#242d59;font-size:14px;font-weight:650;line-height:1.5;text-align:start;pointer-events:none;box-shadow:0 4px 12px #151f3826}
.feature-coach::before{content:'';position:absolute;top:-5px;left:var(--tip);width:8px;height:8px;background:inherit;border-top:inherit;border-left:inherit;transform:translateX(-50%) rotate(45deg)}
.feature-coach[data-above=true]::before{top:auto;bottom:-5px;transform:translateX(-50%) rotate(225deg)}


.paw-coach{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;overflow:hidden;color:#182040}
.paw-coach::backdrop{background:transparent}
.paw-coach[open]{display:flex;align-items:flex-end;justify-content:center;background:radial-gradient(circle at var(--paw-x) var(--paw-y),transparent var(--paw-radius),#101831a8 calc(var(--paw-radius) + 2px))}
.paw-coach-sheet{box-sizing:border-box;width:min(100%,520px);max-height:64%;overflow:auto;background:#fff;border-radius:28px 28px 0 0;padding:20px 20px calc(16px + env(safe-area-inset-bottom,0px));text-align:start}
.paw-coach-sheet h2{font-size:clamp(21px,5vw,25px);line-height:1.25;margin:8px 0}
.paw-coach-sheet p{font-size:15px;line-height:1.45;margin:8px 0;color:#56617a}
.paw-coach-tokens{display:block;color:#56390a;font-size:14px;font-weight:750}
.paw-coach-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:16px 0 0}
.paw-coach-actions .btn{min-height:44px;line-height:1.25;white-space:normal}
.paw-coach-actions .btn:last-child{grid-column:1/-1}
.paw-coach-status:empty{display:none}

.paw-coach[open]:not([data-mode=coach]){background:#101831a8}
.paw-coach-balance{display:block;padding:10px 12px;border-radius:12px;background:#fff5d9;color:#56390a}
.paw-coach[data-mode=details] .paw-coach-sheet,.paw-coach[data-mode=rest] .paw-coach-sheet{max-height:84%}

.paw-coach-sheet{background:var(--surface,#fff);color:var(--ink,#182040)}
.paw-coach-tokens{text-align:end;color:#885813}
.paw-meter-heading{display:flex;justify-content:space-between;gap:.5rem;align-items:center;margin:1rem 0 .4rem;font-size:.87rem;font-weight:750;color:#56617a}
.paw-recharge-time{font-variant-numeric:tabular-nums}
.paw-meter-track{position:relative;isolation:isolate;display:grid;place-items:center;min-height:34px;border-radius:999px;background:#eee7f8;color:#20133d}
.paw-meter-track::before{content:'';position:absolute;z-index:-1;inset-block:0;inset-inline-start:0;width:var(--paw-fill);border-radius:inherit;background:linear-gradient(110deg,#ffc76c,#ffdc91)}
.paw-coach-actions{grid-template-columns:1fr;gap:12px}
.paw-coach-actions .btn{min-height:52px;text-align:start;padding:12px 16px;border:1px solid #ddd7ec;border-radius:16px;font-weight:750}
.paw-coach-actions .btn:last-child{text-align:center}
.paw-coach-actions .paw-option-pro{background:linear-gradient(115deg,#35266f,#54419d);color:#fff;border-color:transparent}
.paw-coach[data-mode=details] .paw-coach-sheet{height:100%;max-height:none;border-radius:0}
.paw-coach-actions .paw-option-tokens{background:#fff5dd;border-color:#ead398;color:#56390a}
.paw-coach-actions .paw-option-ad{background:#edf3ff;border-color:#d8e3fb;color:#273e89}
.paw-coach-actions .paw-option-wake{background:#f4effb;border-color:#e4d9f4;color:#49347e}
.paw-coach-actions .btn:disabled{background:#f3f2f6;border-color:#e5e1eb;color:#66647a;opacity:1}
.paw-coach-actions .paw-option-close{border-color:transparent;background:transparent}
.paw-hero{display:grid;grid-template-columns:minmax(0,1fr) 78px;gap:10px;align-items:center;min-height:94px;padding:10px 14px;border-radius:22px;background:radial-gradient(circle at 88% 26%,#fff7da 0 23%,transparent 24%),linear-gradient(122deg,#fff4d3,#ffe6a5);color:#2f2248}
.paw-hero h2{margin:0 0 6px}
.paw-hero .paw-coach-tokens{display:inline-block;padding:4px 8px;border-radius:9px;background:#fff8e8;color:#624012;text-align:start}
.paw-hero-art{display:grid;width:78px;height:78px;grid-template: minmax(0,1fr) / minmax(0,1fr);place-items:center}
.paw-hero-art>:is(img,svg,.kc),.paw-reward-art>:is(img,svg,.kc){display:block;width:100%;height:100%;object-fit:contain}
.paw-hero-art .journey-brandy-portrait,.paw-reward-art .journey-brandy-portrait{width:100%;height:100%;margin:0}
.paw-hero-art .journey-brandy-portrait>img,.paw-reward-art .journey-brandy-portrait>img{width:100%;height:100%}
.paw-hero-art .journey-brandy-portrait>.kc,.paw-reward-art .journey-brandy-portrait>.kc{display:flex;align-items:center;height:100%}
.paw-hero-art .kc svg,.paw-reward-art .kc svg{width:100%;max-height:100%}
.paw-hero[data-resting=true]{background:radial-gradient(circle at 87% 22%,#f3edff 0 23%,transparent 24%),linear-gradient(122deg,#f7edff,#e2defb)}
.paw-meter-track{min-height:36px;border:1px solid #e6dbee}
.paw-meter-track::before{transition:width .3s ease-out}
.paw-coach-actions .btn:has(.paw-option-icon){display:grid;grid-template-columns:32px minmax(0,1fr);gap:10px;align-items:center;padding:7px 12px}
.paw-coach-actions .btn:focus-visible{outline:2px solid #6255a6;outline-offset:2px}
.paw-coach-actions [hidden]{display:none!important}
.paw-option-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#fff9;font-size:1.22rem;line-height:1}
.paw-option-pro .paw-option-icon{background:#fff3}
.paw-option-trial{display:block;margin-top:4px;color:#ffe4a3;font-size:.85em;font-weight:700}
.paw-option-pro:disabled .paw-option-trial{color:inherit}
.paw-coach[data-mode=details] .paw-coach-sheet{padding:0 clamp(18px,5vw,32px) calc(36px + env(safe-area-inset-bottom,0px));background:#fff;color:#182040}
.paw-wallet-header{position:sticky;z-index:1;top:0;display:grid;grid-template-columns:44px minmax(0,1fr) minmax(0,auto);align-items:center;gap:10px;min-height:68px;padding:6px 0;background:#fff;border-bottom:1px solid #ece7f4}
.paw-wallet-header h2{margin:0}
.paw-wallet-header .paw-coach-tokens{max-width:15ch;padding:5px 9px;border-radius:12px;background:#fff4d6;overflow-wrap:anywhere}
.paw-wallet-close{width:44px;height:44px;border:1px solid #e6dbee;border-radius:15px;background:#f6f3fc;color:#382664;font:600 26px/1 system-ui;cursor:pointer}
.paw-coach[data-mode=details] .paw-hero{min-height:0;margin-top:clamp(28px,5.5dvh,46px);padding:16px;grid-template-columns:minmax(0,1fr) 64px;gap:14px;background:#fff9ec;border:1px solid #f3e4c3}
.paw-coach[data-mode=details] .paw-hero[data-resting=true]{background:#faf5ff;border-color:#ece1f9}
.paw-coach[data-mode=details] .paw-hero-art{width:64px;height:64px;border-radius:50%;background:#fff4d3}
.paw-coach[data-mode=details] .paw-hero[data-resting=true] .paw-hero-art{background:#f4edff}
.paw-coach[data-mode=details] .paw-meter-heading{margin:0;display:grid;justify-content:start;gap:6px;color:#593d21}
.paw-coach[data-mode=details] .paw-meter-heading>span:first-child{font-size:1.125rem;color:#2f2248}
.paw-coach[data-mode=details] .paw-meter-track{grid-column:1/-1;min-height:42px;box-shadow:inset 0 2px 3px #41286d12}
.paw-coach[data-mode=details] .paw-meter-track::before{background:linear-gradient(180deg,#ffe7ae 0%,#ffda88 28%,#ffc45e 29%,#ffc45e 100%)}
.paw-coach[data-mode=details] .paw-coach-actions{margin-top:clamp(34px,6dvh,54px);gap:clamp(26px,4.1dvh,38px)}
.paw-coach[data-mode=details] .paw-coach-actions .btn:has(.paw-option-icon){box-sizing:border-box;min-height:96px;grid-template-columns:48px minmax(0,1fr);gap:16px;padding:20px 18px;border-radius:22px;box-shadow:0 4px 0 #42366316;text-align:start;font-size:1rem}
.paw-coach[data-mode=details] .paw-coach-actions .btn:enabled:active{transform:translateY(2px);box-shadow:0 2px 0 #42366316}
.paw-coach[data-mode=details] .paw-option-icon{width:48px;height:48px;border-radius:15px;font-size:1.65rem}
.paw-coach[data-mode=details] .paw-coach-actions .paw-option-pro:has(.paw-option-icon){gap:3px 16px;min-height:108px;padding-top:23px}
.paw-coach[data-mode=details] .paw-option-pro:not(:disabled){background:linear-gradient(95deg,#6144ae,#8e58bd) top / 100% 8px no-repeat,#faf7ff;color:#35266f;border-color:#dfd3f4;box-shadow:0 4px 0 #dfd3f4}
.paw-coach[data-mode=details] .paw-option-pro .paw-option-icon{grid-row:span 2;background:linear-gradient(140deg,#49328b,#7653bf);color:#fff}
.paw-coach[data-mode=details] .paw-option-pro .paw-option-label{align-self:end}
.paw-coach[data-mode=details] .paw-option-trial{align-self:start;margin:0;color:#503093}
.paw-coach[data-mode=details] :is(.paw-option-tokens,.paw-option-ad,.paw-option-wake):not(:disabled){background:#fff}
.paw-coach[data-mode=details] .paw-option-tokens:not(:disabled) .paw-option-icon{background:#fff0c8}
.paw-coach[data-mode=details] .paw-option-ad:not(:disabled) .paw-option-icon{background:#e9efff}
.paw-coach[data-mode=details] .paw-option-wake:not(:disabled) .paw-option-icon{background:#f0e8fb}
.paw-coach[data-mode=result] .paw-coach-sheet{max-height:90%;text-align:center}
.paw-coach[data-mode=result] .paw-coach-actions .btn{text-align:center}
.paw-coach[data-mode=result] .paw-coach-actions .btn.primary{background:#35266f;color:#fff;border-color:#35266f}
.paw-reward-art{box-sizing:border-box;position:relative;width:156px;height:116px;margin:4px auto 18px;padding:6px 26px 6px 0;border-radius:38px;background:radial-gradient(circle,#fff6db,#ffe4a6)}
.paw-reward-badge{position:absolute;inset-inline-end:5px;bottom:-7px;display:grid;place-items:center;min-width:56px;height:48px;padding:0 8px;border:2px solid #fff5d9;border-radius:17px;background:#573da0;color:#fff;font-size:1.45rem;animation:paw-reward-in .32s ease-out both}
@keyframes paw-reward-in{from{transform:scale(.75);opacity:0}to{transform:scale(1);opacity:1}}
@media(prefers-reduced-motion:reduce){.paw-reward-badge{animation:none}.paw-meter-track::before{transition:none}}

/* Reserve room for responses and actions before sizing the reading area. */
.journey-session-active :has(> .journey-stage .question-fit):has(> .journey-footer){
 display:flex;flex-direction:column;
 height:calc(100dvh - var(--question-page-top,0px) - env(safe-area-inset-bottom,0px));
 min-height:0
}
.journey-session-active :has(> .journey-stage .question-fit)>:not(.journey-stage){flex:none}
.journey-session-active :has(> .journey-stage .question-fit)>.journey-stage{
 display:flex;flex-direction:column;flex:1;min-height:0;width:100%;margin:4px auto 0;padding:0;overflow:hidden
}
.journey-session-active .journey-stage :has(> .question-fit),.journey-session-active .journey-stage .question-fit{
 display:flex;flex-direction:column;flex:1;min-height:0
}
.journey-session-active .question-fit>.question-reading-area{
 display:flex;flex-direction:column;gap:8px;flex:0 100 auto;min-height:min(64px,25%);overflow:auto;
 overscroll-behavior:contain;scrollbar-gutter:stable
}
.question-reading-area>*{flex:none}
.journey-stage .question-reading-area :is(.qpassage,.reading .passage){max-height:none;overflow:visible}
.journey-stage .question-fit .lesson-speaker-bubble{max-height:none;overflow:visible}
.journey-session-active .question-fit>[data-answer-viewport]{
 flex:0 1 auto;min-height:0;max-height:80%;overflow:auto;overscroll-behavior:contain;
 margin:8px 0 4px;padding:0 2px 6px
}
.journey-session-active :has(> .journey-stage .question-fit)>.journey-footer:not(.journey-refill-footer):not(:has(>.lesson-docked-feedback)){
 position:static;box-sizing:border-box;width:100%;margin:0 auto;padding:6px 0 12px
}
.journey-session-active :has(> .journey-stage .question-fit)>.journey-footer:empty{display:none}
.journey-session-active :has(> .journey-stage .question-fit)>.journey-footer:has(> .btn[hidden]):not(:has(> .btn:not([hidden]), > .journey-combo, > .lesson-docked-feedback)){display:none}
.journey-jump[data-assessment-question] .question-reading-area{min-height:min(54px,22%);flex:0 100 auto;overflow:auto;overscroll-behavior:contain}
.journey-session-active .journey-jump[data-assessment-question]>.journey-footer:not(.journey-refill-footer){position:static;flex:none;padding:6px 0 12px}
.journey-session-active .journey-jump[data-assessment-question]{box-sizing:border-box;padding-bottom:0}
@media(max-height:650px){
 .journey-stage .question-fit .qopt{padding:7px 10px;line-height:1.3;min-height:var(--question-answer-height,60px)}
 .journey-jump[data-assessment-question] .qopt{padding:7px 10px;line-height:1.3;min-height:44px}
 .journey-stage .question-fit .qopts:not(.vocabulary-picture-grid),.journey-jump[data-assessment-question] .qopts{grid-template-columns:repeat(2,minmax(0,1fr))}
 .journey-stage .question-fit .vocabulary-picture-grid .qopt img{width:44px;height:44px}
}

body.testing #root:has(.placement-answer-dock){
 box-sizing:border-box;height:100dvh;min-height:0;display:flex;flex-direction:column
}
body.testing #root:has(.placement-answer-dock)>.qtop,body.testing #root:has(.placement-answer-dock)>.qmeta{flex:none}
body.testing .qcard:has(.placement-answer-dock){
 display:flex;flex:1;min-height:0;flex-direction:column;gap:8px;overflow:hidden;padding-bottom:4px
}
body.testing .qcard:has(.placement-answer-dock)>.placement-reading-area{flex:0 100 auto;min-height:min(58px,22%);overflow:auto;overscroll-behavior:contain}
body.testing .qcard:has(.placement-answer-dock)>.placement-answer-dock{flex:0 1 auto;min-height:0;display:flex;flex-direction:column;padding:0 2px}
body.testing .qcard .placement-answer-dock :is(.opts,.tiles){flex:0 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain}
body.testing .placement-answer-dock>.idk,body.testing .placement-answer-dock>.stickycta{flex:none}
body.testing .placement-answer-dock>.stickycta{position:static}
@media(max-height:650px){
 body.testing .placement-answer-dock .opts{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.testing .placement-answer-dock .opt{min-height:44px;padding:7px 9px;line-height:1.3}
}
.journey-session-active .journey-footer:has(>.lesson-docked-feedback):not(.journey-refill-footer){
 position:fixed;z-index:8;inset:auto 0 0;width:min(650px,100%);max-width:none;margin:auto;
 padding:12px clamp(14px,4vw,24px) calc(12px + env(safe-area-inset-bottom,0px));
 flex-direction:column;gap:8px;background:var(--good-soft);box-shadow:0 -2px 14px #15213b1a;
}
.journey-session-active .journey-footer:has(>.lesson-docked-feedback[data-correct=false]){background:var(--bad-soft)}
.journey-footer>.lesson-docked-feedback{
 width:100%;max-height:42dvh;overflow:auto;overscroll-behavior:contain;padding:0;border:0;background:transparent;
}
.lesson-docked-feedback .question-feedback-header strong{font-size:clamp(18px,5vw,23px);color:var(--good)}
.lesson-docked-feedback[data-correct=false] .question-feedback-header strong{color:var(--bad)}
.lesson-docked-feedback .question-feedback-header strong::before{content:'✓';display:inline-block;margin-inline-end:8px}
.lesson-docked-feedback[data-correct=false] .question-feedback-header strong::before{content:'×'}
.lesson-docked-feedback .question-feedback-content{padding:4px 0;max-height:none;overflow:visible}
.lesson-docked-feedback>.question-see-why{width:100%;min-height:42px;margin-top:6px}
.journey-footer:has(>.lesson-docked-feedback)>.btn.primary:not([hidden]){flex:none;width:100%;background:var(--good);border-color:var(--good);color:var(--surface)}
.journey-footer:has(>.lesson-docked-feedback[data-correct=false])>.btn.primary:not([hidden]){background:var(--bad);border-color:var(--bad)}
.question-meaning-clue{border-inline-start:3px solid var(--accent);padding-inline-start:10px;color:var(--muted)}
.question-meaning-clue small{font-weight:700}

/* Keep the same question viewport while the result is overlaid. */
.journey-session-active :has(> .journey-history-navigation):has(> .journey-stage .question-fit){overflow-anchor:none}
.journey-session-active :has(> .journey-history-navigation) .question-fit .qopt{
 min-height:max(56px,var(--question-answer-height,62px));padding-block:max(10px,var(--question-answer-y,12px))
}
