@font-face{font-family:Nunito;src:url('/assets/nunito-latin.woff2') format('woff2');font-style:normal;font-weight:200 1000;font-display:swap}
:root{font-family:Nunito,"Avenir Next",ui-rounded,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#284637;background:#f7f8f2;font-synthesis:none;--green:#3b7055;--ink:#284637;--muted:#7a887c;--line:#e5e9de;--coral:#e97e64;--coral-dark:#bd5741;--pale:#eaf2dd;--white:#fffefa;font-size:100%;
 /* Readable UI scale; rem respects the browser text-size preference. */
 --font-caption:.75rem;
 --font-small:.875rem;
 --font-body:1rem;
 --font-lead:1.125rem;
 --font-title:1.25rem;
 --font-heading:1.5rem;
 --font-page:1.75rem;
 --font-large:2rem;
 --font-display:2.5rem;
 --font-hero:3rem;
 --mobile-nav-height:calc(24px + 3rem);}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;min-width:320px;font-size:var(--font-body);line-height:1.6}
button,a,input,select{-webkit-tap-highlight-color:transparent}
button,input,select{font:inherit}
button,a{touch-action:manipulation}
button{cursor:pointer;color:inherit}
button{border:0}
button:disabled{cursor:default}
a{color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,audio:focus-visible{outline:3px solid #438a70;outline-offset:4px}
button{transition:background .18s,transform .18s,box-shadow .18s}
button:not(:disabled):active{transform:translateY(1px)}
button:disabled{opacity:.5}
img{max-width:100%;height:auto}
i.ph{font-size:22px;vertical-align:middle;font-weight:normal;flex:none}
.skip-link{position:fixed;z-index:100;top:12px;left:12px;background:white;padding:14px;transform:translateY(-180%);border-radius:8px}
.skip-link:focus{transform:none}
.sidebar{position:fixed;inset:0 auto 0 0;width:224px;padding:35px 20px 22px;background:#fbfcf6;border-right:1px solid var(--line);z-index:20;display:flex;flex-direction:column}
.brand{display:flex;align-items:center;gap:5px;padding:0 8px;margin-bottom:55px;font-size:var(--font-page);font-weight:900;line-height:1;color:#355e46;letter-spacing:-1px}
.mascot{object-fit:contain;flex:none}
.brand-mascot{width:58px;height:66px;margin-left:-7px}
.brand-small{display:block;font-size:var(--font-caption);font-weight:900;letter-spacing:3px;margin-top:8px;margin-left:2px}
.nav-caption{font-size:var(--font-caption);letter-spacing:1.9px;font-weight:900;color:#9aa391;padding-left:18px;margin-bottom:19px}
.sidebar nav{display:grid;gap:8px}
.nav-item{display:flex;gap:13px;align-items:center;min-height:50px;border-radius:13px;padding:0 18px;font-size:var(--font-body);font-weight:750;color:#7a887b;background:transparent;text-align:left}
.nav-item .ph{font-size:23px}
.nav-item:hover{background:#f0f3e8;color:#3d6b50}
.nav-item.active{color:#3e6d4f;background:#e6eed9;font-weight:900}
.nav-item.active .ph{color:#52845e}
.nav-count{margin-left:auto;background:#d5e3c5;min-width:23px;border-radius:8px;font-size:var(--font-caption);text-align:center;padding:3px}
.sidebar-bottom{margin-top:auto}
.sidebar-note{display:flex;align-items:center;gap:13px;margin:45px 14px 24px;padding:18px 0;border-top:1px solid var(--line)}
.sidebar-note .ph{color:#94af68;font-size:30px}
.sidebar-note p{margin:0;font-size:var(--font-small);line-height:1.65;color:#94a08b}
.sidebar-note strong{font-weight:650;color:#819475}
.settings-button{width:100%;font-size:var(--font-small)}
.main-shell{margin-left:224px;max-width:1560px;padding:40px 48px 28px;min-height:100dvh}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:31px}
.topbar h1{font-size:var(--font-page);letter-spacing:-1.15px;font-weight:850;margin:0 0 6px;line-height:1.3}
.topbar p{font-size:var(--font-small);color:var(--muted);margin:0;font-weight:550}
.topbar-tools{display:flex;align-items:center;gap:18px}
.small-pill{display:flex;gap:7px;align-items:center;background:#edf1e6;border:1px solid #e6eadf;border-radius:22px;white-space:nowrap;padding:9px 13px;font-size:var(--font-caption);font-weight:800;color:#69805d}
.small-pill .ph{font-size:18px;color:#87a962}
.profile-button{border:3px solid white;width:43px;height:43px;background:#f2dfc5;border-radius:50%;font-size:var(--font-caption);font-weight:900;color:#94744d;box-shadow:0 0 0 1px #e9e9db}
.mobile-brand{display:none}
.island-hero{position:relative;min-height:358px;border-radius:25px;background:#edf3df;overflow:hidden;isolation:isolate;border:1px solid #e6ecd8}
.hero-copy{position:relative;z-index:2;padding:32px 0 31px 36px;width:43%;min-width:350px}
.island-label{display:inline-flex;align-items:center;gap:7px;letter-spacing:1.6px;font-size:var(--font-caption);font-weight:900;color:#6a8656;background:#e3eccf;padding:8px 11px;border-radius:7px}
.island-label .ph{font-size:15px}
.hero-copy h2{font-size:var(--font-hero);font-weight:900;letter-spacing:-2.1px;line-height:1.13;margin:19px 0 15px;color:#35583d}
.hero-copy>p{max-width:320px;font-size:var(--font-body);line-height:1.7;color:#798b70;margin:0 0 23px;font-weight:600}
.button{min-height:47px;border-radius:12px;padding:11px 20px;font-size:var(--font-body);line-height:1.6;font-weight:850;display:inline-flex;align-items:center;justify-content:center;gap:10px;white-space:nowrap}
.button .ph{font-size:18px}
.button.primary{background:var(--coral);color:#fff;border:1px solid #d87359;box-shadow:0 3px 0 #cf6954}
.button.primary:hover:not(:disabled){background:#e1765d;box-shadow:0 4px 0 #c96a52;transform:translateY(-1px)}
.button.primary:disabled{background:#d6ded1;border-color:#cbd4c6;box-shadow:0 3px 0 #c1ccba;color:#73806a;opacity:1}
.button.secondary{background:#fffdf5;border:1px solid #dfe6d5;color:#5b7658;box-shadow:0 2px 0 #e1e7d9}
.button.secondary:hover{background:#f2f5e8}
.hero-cta{padding-left:18px;padding-right:21px}
.hero-meta{display:flex;flex-wrap:wrap;gap:18px;font-size:var(--font-caption);color:#809274;font-weight:750;margin-top:19px}
.hero-meta>span{display:flex;gap:5px;align-items:center}
.hero-meta .ph{font-size:14px}
.hero-island{position:absolute;width:62%;max-width:750px;right:-4%;top:50%;transform:translateY(-49%);z-index:1;pointer-events:none}
.hello-note{position:absolute;top:37px;right:28px;z-index:3;background:#fffdf4;border:1px solid #f3eed8;box-shadow:0 4px 10px #485e3510;border-radius:16px 16px 16px 4px;padding:9px 17px;transform:rotate(7deg);display:grid;text-align:center;gap:2px}
.hello-note>span:first-child{font-size:var(--font-heading);font-weight:800;color:#71854c}
.hello-note>span:last-child{font-size:var(--font-caption);color:#9a9c79;font-weight:700}
.journey-section{margin-top:35px}
.section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}
.section-heading h2{margin:0;font-size:var(--font-title);font-weight:850;letter-spacing:-.5px;display:flex;gap:9px;align-items:center}
.section-heading h2 .ph{color:#81945e;font-size:21px}
.section-heading p{margin:5px 0 0;font-size:var(--font-small);color:#8c9687}
.progress-caption{font-size:var(--font-caption);color:#899980;font-weight:800;white-space:nowrap}
.lesson-path{display:grid;grid-template-columns:repeat(5,1fr);position:relative;gap:12px;padding:17px 0 20px}
.lesson-path:before{content:"";position:absolute;top:51px;left:9%;right:9%;border-top:2px dashed #dfe6d6;z-index:0}
.lesson-node{position:relative;z-index:1;background:none;display:flex;flex-direction:column;align-items:center;text-align:center;padding:0 5px;min-height:175px}
.node-icon{width:70px;height:70px;border-radius:24px;background:#edf0e6;border:5px solid #f7f8f2;box-shadow:0 0 0 1px #e4e9da;display:flex;align-items:center;justify-content:center;position:relative;margin-bottom:14px;color:#9ca994}
.node-icon>.ph{font-size:28px}
.node-number{position:absolute;bottom:-3px;right:-3px;border:3px solid #f7f8f2;background:#dfe5d5;border-radius:50%;min-width:22px;height:22px;font-size:var(--font-caption);font-weight:900;display:grid;place-items:center;color:#9aa58d}
.lesson-node strong{font-size:var(--font-body);font-weight:850;letter-spacing:-.1px}
.node-subtitle{font-size:var(--font-small);color:#929b8c;line-height:1.45;max-width:140px;margin-top:5px;min-height:29px}
.node-status{font-size:var(--font-caption);font-weight:800;line-height:1;margin-top:11px;color:#a3ab98;display:flex;align-items:center;gap:5px}
.node-status .ph{font-size:12px}
.lesson-node.current .node-icon{background:#fce5d7;color:#d5845e;box-shadow:0 0 0 2px #e6b790}
.lesson-node.current .node-number{background:#e9a984;color:#fff}
.lesson-node.current .node-status{color:#d78562}
.lesson-node.complete .node-icon{background:#dfeccf;color:#608b46}
.lesson-node.complete .node-number{background:#98ba74;color:#fff}
.lesson-node.complete .node-status{color:#7e9b60}
.lesson-node:hover .node-icon{transform:translateY(-3px);box-shadow:0 0 0 2px #b9cca3}
.node-icon{transition:transform .2s,box-shadow .2s}
.home-bottom{display:grid;grid-template-columns:1.25fr 1fr;gap:24px;margin-top:4px}
.word-pocket{background:#fffefa;border:1px solid #e9ecdf;border-radius:17px;padding:21px 23px;min-width:0}
.word-pocket .section-heading{margin-bottom:18px}
.word-pocket .section-heading h2{font-size:var(--font-lead)}
.text-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;background:none;color:#7e8f70;font-size:var(--font-small);font-weight:800;min-height:34px;padding:3px 0}
.text-button .ph{font-size:14px}
.text-button:hover{color:#3b7055}
.word-preview{display:flex;gap:17px;align-items:center;padding-top:2px}
.word-preview>span{background:#eff3e5;flex:none;padding:14px 11px;border-radius:10px;font-size:var(--font-heading);color:#6f8153;letter-spacing:2px}
.word-preview strong{font-size:var(--font-body)}
.word-preview p{margin:4px 0 0;font-size:var(--font-small);color:#94a08c;line-height:1.6;max-width:240px}
.word-preview .audio-button{margin-left:auto}
.audio-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;border:1px solid #d9e4cb;border-radius:11px;padding:8px 13px;background:#edf3e3;color:#63814f;font-weight:850;font-size:var(--font-body)}
.audio-button .ph{font-size:19px}
.audio-button:hover{background:#e4eed8}
.audio-button.playing{background:#d8e7c7;color:#3f6a3d}
.audio-button.icon-only{width:38px;min-width:38px;height:38px;border-radius:50%;padding:0}
.icon-only>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.little-tip{display:flex;gap:15px;padding:23px 14px 15px 12px}
.little-tip>.ph{font-size:30px;color:#c7ac75;margin-top:2px}
.little-tip span{font-size:var(--font-caption);letter-spacing:1.5px;font-weight:900;color:#b7a17b}
.little-tip p{font-size:var(--font-body);line-height:1.8;margin:6px 0 3px;max-width:300px;color:#8d9682}
.little-tip .text-button{font-size:var(--font-small);color:#a89a76}
.word-chips{display:flex;flex-wrap:wrap;gap:8px}
.word-chip{display:flex;align-items:center;gap:7px;background:#f0f4e7;padding:8px 11px;border-radius:9px;min-height:42px}
.word-chip>span:first-child{font-size:var(--font-heading);font-weight:700}
.word-chip>span:nth-child(2){font-size:var(--font-small);color:#889b76}
.word-chip .ph{font-size:15px;color:#899b76}
.page-footer{text-align:center;font-size:var(--font-caption);font-weight:650;color:#a6af9a;padding:30px 0 4px}
.page-footer .ph{font-size:13px;margin-right:4px}
.eyebrow{font-size:var(--font-caption);letter-spacing:1.7px;font-weight:900;color:#899978;display:block}
.lesson-header{display:flex;align-items:center;gap:23px;max-width:950px;margin:0 auto 24px}
.round-button{display:grid;place-items:center;min-width:40px;width:40px;height:40px;background:#edf1e7;border-radius:50%;color:#91a080}
.round-button:hover{background:#e1e8d6;color:#59794d}
.round-button .ph{font-size:19px}
.lesson-progress-track{height:9px;border-radius:10px;background:#e6eddd;flex:1;overflow:hidden}
.lesson-progress-track>span{height:100%;display:block;border-radius:10px;background:#96ba70;transition:width .35s}
.step-count{font-size:var(--font-caption);color:#93a281;font-weight:850}
.lesson-heading{max-width:760px;margin:0 auto;display:flex;justify-content:space-between;align-items:center}
.pinyin-toggle{font-size:var(--font-body);font-weight:800;background:#edf2e6;border:1px solid #e0e8d6;color:#7c9367;padding:7px 11px;border-radius:9px;min-height:34px}
.pinyin-toggle[aria-pressed=false]{background:transparent;color:#99a28c}
.exercise{max-width:640px;margin:31px auto 115px;text-align:center;min-height:440px}
.exercise-category{font-size:var(--font-caption);letter-spacing:1.8px;font-weight:900;color:#92a07f;display:flex;justify-content:center;align-items:center;gap:7px;margin-bottom:12px}
.exercise-category .ph{font-size:16px;color:#a0b17b}
.exercise h1{font-size:var(--font-page);line-height:1.35;font-weight:900;letter-spacing:-1.1px;margin:0 0 24px}
.listen-stage{margin:14px auto 22px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px}
.listening-disc{width:79px;height:79px;border-radius:28px;background:#f5e6d1;color:#c9a36a;display:grid;place-items:center}
.listening-disc .ph{font-size:35px}
.listen-stage p{font-size:var(--font-small);color:#98a28c;margin:0}
.large-audio{font-size:var(--font-body);padding:10px 18px;min-height:44px;border-radius:13px}
.answer-options{display:grid;gap:11px;text-align:left;margin:0 auto;max-width:530px}
.answer-option{display:flex;align-items:center;gap:16px;background:#fffefa;border:1.5px solid #e3e8da;border-radius:13px;min-height:61px;padding:12px 18px;font-size:var(--font-body);font-weight:750;box-shadow:0 2px 0 #e7ebdf}
.answer-option:hover:not(:disabled){background:#f2f6e8;border-color:#b9cda4}
.answer-option.selected{border-color:#94b77c;background:#ecf4df;box-shadow:0 2px 0 #bdd3a4}
.answer-option:disabled{opacity:1}
.answer-option .ph{margin-left:auto;font-size:20px}
.answer-number{border:1px solid #e2e6d9;border-radius:7px;min-width:24px;height:24px;display:grid;place-items:center;font-size:var(--font-caption);color:#a2ac98;background:#fafbf6}
.answer-option.right-answer{border-color:#9dbb82;background:#eaf2df;color:#597c45}
.answer-option.wrong-answer{border-color:#df9c87;background:#fbece4;color:#b56b56}
.phrase-card{display:flex;align-items:center;flex-direction:column;gap:13px;padding:31px 25px 25px;background:#fffdf7;border:1px solid #e8ecdf;border-radius:22px;margin:0 auto 23px;max-width:580px;box-shadow:0 4px 0 #eef0e5}
.phrase-zh{font-family:Nunito,"PingFang SC","Microsoft YaHei",sans-serif;font-size:var(--font-display);font-weight:650;line-height:1.6;letter-spacing:3px;color:#41694d}
.phrase-pinyin{font-size:var(--font-body);letter-spacing:.3px;line-height:1.5;color:#91a27a;font-weight:600}
.phrase-gloss{color:#9a9f8d;font-size:var(--font-body);margin-bottom:10px}
.phrase-card .audio-button{margin-top:8px}
.phrase-card.compact{padding:18px;gap:7px}
.compact .phrase-zh{font-size:var(--font-large);letter-spacing:1px}
.compact .phrase-gloss{margin-bottom:0}
.compact .audio-button{margin-top:5px;font-size:var(--font-body);min-height:36px;padding:6px 12px}
.lesson-note{display:flex;align-items:flex-start;gap:10px;max-width:440px;text-align:left;margin:20px auto}
.lesson-note .ph{font-size:24px;color:#c3ab6c;margin-top:4px}
.lesson-note p{font-size:var(--font-small);color:#94a089;line-height:1.8;margin:0}
.sentence-tray{min-height:96px;display:flex;gap:9px;flex-wrap:wrap;align-items:center;justify-content:center;padding:20px;border:2px dashed #dce5cd;border-radius:15px;background:#f1f5e8;margin:40px auto 24px;max-width:560px}
.sentence-tray>span{font-size:var(--font-small);color:#a5b097}
.sentence-token,.token{font-size:var(--font-heading);padding:10px 19px;min-height:53px;background:#fffefa;border:1px solid #dfe5d5;border-radius:11px;font-weight:650;box-shadow:0 3px 0 #dce4d0}
.sentence-token{background:#e3edd6;border-color:#b8cea0;box-shadow:0 3px 0 #b9cea4;color:#527547}
.token-bank{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-bottom:16px}
.token.used{opacity:.2}
.lesson-bottom{position:fixed;left:224px;bottom:0;right:0;padding:21px 48px;border-top:1px solid #e5e9db;background:#f7f8f2;display:flex;align-items:center;justify-content:space-between;gap:20px;z-index:12;min-height:92px}
.lesson-bottom>.button{min-width:160px}
.lesson-feedback{display:flex;align-items:center;gap:12px;max-width:630px}
.gentle-reminder{display:flex;align-items:center;gap:8px;font-size:var(--font-small);color:#9aa68a;font-weight:700}
.gentle-reminder .ph{color:#a8b88d}
.lesson-feedback>i{font-size:31px;color:#799856}
.lesson-feedback strong{font-size:var(--font-body);font-weight:850;display:block}
.lesson-feedback div>span{display:block;font-size:var(--font-small);margin-top:3px;color:#7c8f65}
.lesson-bottom.is-correct{background:#edf4e1}
.lesson-bottom.is-incorrect{background:#fbf1e1}
.is-incorrect .lesson-feedback>i,.is-incorrect .lesson-feedback strong{color:#ae8957}
.is-incorrect .lesson-feedback div>span{color:#9a896f}
.recorder{max-width:500px;margin:17px auto}
.record-button{display:flex;gap:10px;align-items:center;justify-content:center;width:100%;min-height:52px;padding:10px 20px;background:#f7e9dc;border:1.5px solid #e9c2a9;border-radius:13px;color:#bc7b58;font-size:var(--font-body);font-weight:850}
.record-button:hover{background:#f5dfcc}
.record-button.recording{background:#fae4dc;color:#bd5f4c;border-color:#df9d8c}
.record-button.recording>.ph{animation:pulse 1s infinite}
.record-time{font-size:var(--font-caption);margin-left:4px}
.recording-result{background:#f0f4e8;border-radius:12px;padding:12px;margin-top:12px}
.recording-result>span{display:block;text-align:left;font-size:var(--font-small);color:#869775;margin-bottom:8px}
.recording-result audio{display:block;width:100%;height:38px}
[hidden]{display:none!important}
.privacy-note{font-size:var(--font-small);color:#94a08c;line-height:1.7;max-width:470px}
.privacy-note .ph{font-size:12px;margin-right:3px}
.self-check{display:flex;gap:10px;align-items:flex-start;text-align:left;font-size:var(--font-body);line-height:1.6;color:#7b8b6d;max-width:480px;margin:16px auto}
input[type=checkbox]{accent-color:#83a76c;width:17px;height:17px;flex:none;margin-top:1px;cursor:pointer}
.assessment-note{font-size:var(--font-small);color:#97a18c;line-height:1.8;max-width:530px;margin:12px auto}
.completion-page{max-width:770px;text-align:center;margin:22px auto 30px;padding:24px 12px}
.celebration-mascot{width:160px;height:160px;display:block;margin:0 auto 10px}
.completion-page h1{font-size:var(--font-display);font-weight:900;letter-spacing:-1.7px;line-height:1.25;margin:12px 0 15px}
.completion-page>p{font-size:var(--font-body);color:#8b9980;line-height:1.8}
.completion-stats{display:flex;justify-content:center;gap:0;margin:30px auto;max-width:630px;background:#fffef8;border:1px solid #e6ebdc;border-radius:19px;padding:22px 10px}
.completion-stats>div{flex:1;display:flex;align-items:center;flex-direction:column;gap:7px;padding:0 10px;border-right:1px solid #e7ecdf}
.completion-stats>div:last-child{border:0}
.completion-stats .ph{font-size:24px;color:#a2b87f}
.completion-stats strong{font-size:var(--font-lead);color:#58774e}
.completion-stats span{font-size:var(--font-caption);color:#96a387}
.completion-actions{display:flex;justify-content:center;gap:12px;margin:22px 0}
.practice-intro{display:grid;grid-template-columns:1fr 1.15fr;align-items:center;gap:0;background:#edf3df;border:1px solid #e5ebd8;border-radius:25px;padding:32px 30px;overflow:hidden;min-height:520px}
.practice-intro-copy{position:relative;z-index:2}
.practice-intro h2{font-size:var(--font-display);font-weight:900;line-height:1.15;letter-spacing:-1.8px;margin:20px 0 15px}
.practice-intro p{font-size:var(--font-body);color:#859478;line-height:1.8;max-width:330px}
.practice-intro>img{max-width:130%;width:130%;margin-left:-10%;pointer-events:none}
.goal-picker{border:0;padding:0;margin:24px 0}
.goal-picker legend{font-size:var(--font-small);font-weight:850;color:#7a8b65;padding:0;margin-bottom:9px}
.goal-options{display:flex;gap:8px;margin-bottom:17px}
.goal-chip{display:flex;align-items:center;gap:7px;padding:10px 18px;background:#f8faef;border:1px solid #dfe8d1;border-radius:10px;font-weight:800;font-size:var(--font-body);min-height:42px;color:#879875}
.goal-chip .ph{font-size:19px}
.goal-chip.selected{background:#dce9ca;border-color:#a9c38d;color:#587b44}
.practice-intro .privacy-note{font-size:var(--font-small);margin-top:20px;max-width:340px}
.conversation-layout{display:grid;grid-template-columns:235px 1fr;gap:28px;align-items:start}
.order-note{border-radius:18px;padding:24px;background:#f4ead4;border:1px solid #e9dfc8;position:sticky;top:30px}
.order-note>.ph{font-size:40px;color:#c6ab72;margin:20px 0 5px;display:block}
.order-note h2{font-size:var(--font-page);font-weight:900;letter-spacing:-1px;line-height:1.2;margin:10px 0 14px;color:#8b7f51}
.order-note p{font-size:var(--font-small);line-height:1.8;color:#a69b78}
.order-note .eyebrow{color:#b6a375}
.order-note .text-button{color:#a08e63;font-size:var(--font-small);margin-top:13px}
.conversation-panel{background:#fffefa;border:1px solid #e7ebdf;border-radius:20px;padding:24px}
.clerk-row{display:flex;align-items:center;gap:10px;margin-bottom:17px}
.clerk-avatar{width:52px;height:52px;background:#f1f5e6;border-radius:16px}
.clerk-row>div{display:grid;gap:3px}
.clerk-row strong{font-size:var(--font-small);font-weight:850}
.clerk-row div>span{font-size:var(--font-small);color:#a0a98f}
.live-dot{margin-left:auto;background:#e7efd9;color:#869b66;padding:5px 9px;border-radius:7px;font-size:var(--font-caption);font-weight:850}
.clerk-bubble{background:#f0f5e5;border-radius:5px 17px 17px 17px;padding:22px;text-align:center}
.clerk-zh{font-size:var(--font-heading);line-height:1.6;letter-spacing:1px;margin:15px 0 5px;font-weight:650;color:#65824f}
.clerk-gloss{font-size:var(--font-small);color:#9aa98a;margin:8px 0 0}
.hidden-transcript{font-size:var(--font-small);color:#98aa82;margin-bottom:0}
.hint-button{font-size:var(--font-small);margin-top:5px}
.conversation-panel h3{font-size:var(--font-body);letter-spacing:-.1px;font-weight:850;margin:22px 0 12px}
.conversation-panel .recorder{margin-top:0}
.conversation-options{display:grid;gap:9px}
.conversation-answer{border:1px solid #e3e8d9;border-radius:12px;background:#fffdf8;text-align:left;padding:13px 17px;display:flex;flex-direction:column;gap:4px;position:relative}
.conversation-answer:hover{background:#f2f7e8;border-color:#b4cd99}
.conversation-answer>strong{font-size:var(--font-heading);font-weight:650;letter-spacing:1px}
.conversation-answer>span{font-size:var(--font-small);color:#93a17f}
.conversation-answer>.ph{position:absolute;right:16px;top:50%;transform:translateY(-50%);color:#a8b696;font-size:18px}
.conversation-answer .phrase-pinyin{font-size:var(--font-body)}
.repeat-button{display:flex;gap:7px;align-items:center;flex-wrap:wrap;background:none;color:#91a079;font-size:var(--font-body);margin-top:14px;padding:8px 0;min-height:40px}
.repeat-button .ph{font-size:16px}
.repeat-button>span:last-child{font-size:var(--font-small);color:#abb49e}
.conversation-feedback{font-size:var(--font-small);line-height:1.7;color:#a58d5d;background:#faf1df;border-radius:10px;padding:12px;display:flex;gap:8px}
.conversation-feedback .ph{font-size:19px}
.empty-state{min-height:480px;padding:30px 15px;text-align:center;display:flex;align-items:center;justify-content:center;flex-direction:column}
.empty-mascot{width:150px;height:150px;margin-bottom:15px}
.empty-state h2{font-size:var(--font-page);font-weight:900;letter-spacing:-1px;margin:10px 0}
.empty-state p{font-size:var(--font-body);color:#96a287;line-height:1.8;max-width:400px;margin:0 0 24px}
.review-banner{background:#edf3df;border-radius:20px;border:1px solid #e3ead6;padding:26px 30px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.review-banner>div{position:relative;padding-left:48px}
.review-banner>div>.ph{position:absolute;left:0;top:3px;font-size:34px;color:#9bb777}
.review-banner h2{font-size:var(--font-title);letter-spacing:-.6px;margin:0 0 7px;font-weight:850}
.review-banner p{font-size:var(--font-body);color:#92a17f;margin:0}
.word-library{display:grid;grid-template-columns:repeat(2,1fr);gap:0 30px;margin-top:24px}
.library-word{display:flex;align-items:center;gap:16px;padding:20px 6px;border-bottom:1px solid #e7eadf}
.library-word>div{display:grid;gap:5px;min-width:90px}
.library-word strong{font-size:var(--font-heading);letter-spacing:1px;font-weight:650}
.library-word div>span{font-size:var(--font-small);color:#9aa889}
.library-word p{font-size:var(--font-small);color:#93a084;flex:1}
.review-session{max-width:640px;padding:25px 0;margin:0 auto;text-align:center}
.review-session-header{display:flex;align-items:center;justify-content:space-between}
.review-session h2{font-size:var(--font-page);font-weight:900;margin-top:25px;letter-spacing:-1px}
.review-word{background:#fffef9;border:1px solid #e5eadb;border-radius:22px;display:flex;flex-direction:column;align-items:center;gap:13px;padding:30px 25px;min-height:260px;margin:22px 0}
.review-word>strong{font-size:var(--font-display);letter-spacing:4px;font-weight:650;margin-top:14px}
.review-word>p{font-size:var(--font-small);color:#a0ac91}
.review-meaning{font-size:var(--font-body);color:#859777}
.review-session h3{font-size:var(--font-small);color:#8e9f79}
.review-ratings{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0 25px}
.review-ratings button{background:#f0f4e6;border:1px solid #dee7cf;border-radius:12px;padding:14px 8px;display:flex;flex-direction:column;align-items:center;gap:7px;min-height:95px}
.review-ratings button:hover{background:#e4eed7}
.review-ratings .ph{color:#8aa56a;font-size:21px}
.review-ratings strong{font-size:var(--font-small)}
.review-ratings span{font-size:var(--font-small);color:#97a583}
.progress-overview{display:flex;align-items:center;gap:20px;background:#edf3df;border:1px solid #e2e9d5;border-radius:23px;padding:28px 34px;min-height:225px}
.progress-total{flex:1;min-width:250px}
.progress-total h2{font-size:var(--font-display);margin:12px 0;font-weight:900;line-height:1;letter-spacing:-2px}
.progress-total h2>span{font-size:var(--font-title);letter-spacing:-.5px;color:#9aa886;font-weight:650}
.wide-progress{height:9px;background:#dfe9cc;border-radius:10px;overflow:hidden;max-width:350px;margin:18px 0}
.wide-progress>span{height:100%;background:#97b66d;display:block;border-radius:10px}
.progress-total p{font-size:var(--font-small);color:#91a27b;line-height:1.8}
.progress-mascot{width:170px;height:170px}
.progress-numbers{display:flex;gap:25px;flex-direction:column;border-left:1px solid #dce6cc;padding-left:32px;min-width:145px}
.progress-numbers>div{display:grid;gap:4px}
.progress-numbers strong{font-size:var(--font-heading);color:#7b985f;font-weight:900}
.progress-numbers span{font-size:var(--font-small);color:#9ba98a}
.progress-detail{margin-top:34px}
.progress-detail .section-heading>span{font-size:var(--font-caption);color:#9ba88d}
.evidence-row{display:flex;align-items:center;gap:15px;padding:18px 5px;border-bottom:1px solid #e5eadc}
.evidence-icon{width:42px;height:42px;background:#eaf1dd;border-radius:12px;color:#9aae83;display:grid;place-items:center}
.evidence-icon .ph{font-size:21px}
.evidence-row>div{flex:1}
.evidence-row strong{font-size:var(--font-body)}
.evidence-row p{font-size:var(--font-small);color:#97a389;line-height:1.6;margin:5px 0 0}
.evidence-status{font-size:var(--font-caption);color:#8a9d74;white-space:nowrap;margin-left:10px}
.evidence-row .text-button{min-width:50px;margin-left:15px}
.honest-note{display:flex;gap:14px;padding:22px 25px;border-radius:15px;background:#f0f2e9;margin-top:30px}
.honest-note>.ph{color:#a1b08c;margin-top:1px}
.honest-note h3{font-size:var(--font-small);margin:0 0 8px;color:#869675}
.honest-note p{font-size:var(--font-small);color:#99a48e;line-height:1.9;margin:3px 0}
.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);max-width:calc(100% - 40px);padding:13px 20px;z-index:100;background:#3e5d43;color:#fffef4;border:1px solid #657c59;border-radius:13px;box-shadow:0 6px 20px #33462d22;font-size:var(--font-small);line-height:1.7;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
.toast.visible{opacity:1;transform:translate(-50%,0)}
dialog{border:1px solid #e1e7d6;border-radius:22px;background:#fffef8;color:var(--ink);max-width:520px;width:calc(100% - 36px);padding:28px;box-shadow:0 20px 80px #2d462b26}
dialog::backdrop{background:#31463145;backdrop-filter:blur(4px)}
.modal-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:24px}
.modal-heading h2{font-size:var(--font-heading);letter-spacing:-.8px;margin:5px 0;font-weight:900}
.modal-heading .round-button{min-width:33px;width:33px;height:33px}
.setting-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 0;border-top:1px solid #e8ecdf}
.setting-row strong{font-size:var(--font-body);display:block;font-weight:850}
.setting-row small{font-size:var(--font-small);line-height:1.7;color:#9aa58b;display:block;margin-top:5px}
.setting-row select{font-size:var(--font-body);color:#7a8f66;border:1px solid #dce5ce;border-radius:8px;background:#f3f6e9;padding:8px;max-width:155px;min-height:38px}
.modal-info{display:flex;align-items:flex-start;gap:10px;background:#f0f5e5;padding:15px;border-radius:12px;margin:8px 0 20px}
.modal-info>.ph{font-size:20px;color:#93aa74;margin-top:3px}
.modal-info p{font-size:var(--font-small);color:#8e9d7c;line-height:1.8;margin:0}
.full-width{width:100%}
.danger{color:#b7957c;display:flex;margin:12px auto 0;font-size:var(--font-small)}
.modal-copy{font-size:var(--font-body);color:#8c9d7d;line-height:1.9}
.modal-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:22px}
@keyframes pulse{50%{opacity:.35}}
@media(min-width:1600px){.main-shell{padding-left:64px;padding-right:64px}.island-hero{min-height:390px}.hero-copy{padding-top:38px;padding-bottom:38px}}
@media(max-width:1200px){.sidebar{width:198px;padding-left:16px;padding-right:16px}.main-shell{margin-left:198px;padding:32px}.lesson-bottom{left:198px;padding:18px 32px}.hero-copy{padding-left:27px;min-width:320px}.hero-copy h2{font-size:var(--font-display)}.hero-copy>p{max-width:275px}.hero-island{width:65%;right:-7%}.hello-note{right:18px;top:30px}.home-bottom{gap:12px}.word-pocket{padding:20px 18px}.word-preview{gap:11px}.section-heading .text-button{font-size:var(--font-small)}.conversation-layout{grid-template-columns:190px 1fr;gap:18px}.order-note{padding:20px}.progress-overview{padding:25px}.progress-mascot{width:140px;height:140px}.progress-numbers{padding-left:20px;min-width:110px}}
@media(max-width:1000px){.sidebar{width:87px;padding:25px 12px}.brand{padding:0;justify-content:center;margin-bottom:42px}.brand>span,.nav-caption,.nav-item>span,.nav-count,.sidebar-note{display:none}.brand-mascot{width:58px;height:58px;margin:0}.nav-item{justify-content:center;padding:0;min-height:52px}.nav-item .ph{font-size:25px}.main-shell{margin-left:87px;padding:30px}.lesson-bottom{left:87px;padding:18px 30px}.topbar-tools{gap:10px}.hero-copy{width:46%;min-width:290px}.hero-copy h2{font-size:var(--font-display);letter-spacing:-1.5px}.hero-copy>p{max-width:260px}.hero-island{width:69%;right:-12%}.hero-meta{gap:10px}.hello-note{right:16px}.topbar p{max-width:390px}.profile-button{display:none}.home-bottom{grid-template-columns:1fr 1fr}.little-tip{padding-left:15px}.word-pocket .section-heading{gap:7px}.word-preview .audio-button{display:none}.progress-overview{gap:5px}.progress-mascot{width:115px;height:140px}.progress-total{min-width:200px}.practice-intro{grid-template-columns:1fr 1fr;padding:28px 25px}.practice-intro>img{width:155%;max-width:155%;margin-left:-22%}.practice-intro-copy>p{max-width:285px}.word-library{gap:0 18px}.library-word{gap:9px}.library-word>div{min-width:70px}.review-banner{padding:22px;gap:15px}}
@media(max-width:760px){.main-shell{padding:25px 22px}.topbar{gap:10px}.topbar p{max-width:300px}.small-pill{padding:7px 9px;}.hero-copy{min-width:265px;padding:25px}.hero-copy h2{font-size:var(--font-large)}.hero-copy>p{max-width:240px}.hero-island{right:-18%;width:78%;top:57%}.hello-note{right:14px;top:23px;padding:7px 11px}.hero-meta{gap:9px}.hero-cta{font-size:var(--font-body);padding:10px 15px}.lesson-path{gap:5px}.node-icon{width:57px;height:57px;border-radius:20px}.node-icon>.ph{font-size:23px}.lesson-path:before{top:44px}.node-subtitle{min-height:35px}.home-bottom{grid-template-columns:1fr}.little-tip{padding:17px 12px}.little-tip p{max-width:none}.word-preview .audio-button{display:inline-flex}.lesson-bottom{padding:18px 22px}.lesson-bottom>.button{min-width:140px;font-size:var(--font-body)}.conversation-layout{grid-template-columns:1fr;gap:16px}.order-note{position:static;display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:16px 20px}.order-note .eyebrow{width:100%;font-size:var(--font-caption)}.order-note>.ph{margin:0;font-size:24px}.order-note h2{margin:0;line-height:1.4}.order-note h2 br{display:none}.order-note p{display:none}.order-note .text-button{margin:0 0 0 auto}.practice-intro{grid-template-columns:1fr;min-height:0;position:relative}.practice-intro-copy{width:100%}.practice-intro>img{position:absolute;width:72%;max-width:72%;right:-13%;top:10%;opacity:.65;z-index:0}.practice-intro h2{font-size:var(--font-large)}.practice-intro-copy>p{width:65%;font-size:var(--font-body)}.goal-picker{position:relative;z-index:2}.practice-intro .privacy-note{width:100%;max-width:100%}.progress-mascot{display:none}.progress-detail .section-heading>span{display:none}.evidence-status{display:none}.progress-numbers{min-width:120px}.word-library{grid-template-columns:1fr}.review-banner{align-items:flex-start;flex-direction:column}.review-banner .button{align-self:flex-start;margin-left:48px}}
@media(max-width:600px){body{padding-bottom:80px}.sidebar{width:auto;height:70px;top:auto;right:0;bottom:0;inset-inline:0;border-right:0;border-top:1px solid #e2e8d8;padding:5px 12px 6px;background:#fcfdf8;backdrop-filter:none}.sidebar .brand,.sidebar-bottom{display:none}.sidebar nav{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;height:100%}.nav-item{display:flex;flex-direction:column;gap:3px;min-height:55px;border-radius:12px;padding:6px 4px}.nav-item>span{display:block;font-size:var(--font-caption)}.nav-item .ph{font-size:22px}.nav-item.active{background:#edf3e3}.main-shell{margin-left:0;padding:24px 20px 20px;min-height:calc(100dvh - 70px)}.mobile-brand{display:block;font-size:var(--font-caption);letter-spacing:2px;margin-bottom:8px}.topbar{margin-bottom:24px;align-items:center}.topbar h1{letter-spacing:-.9px;max-width:290px}.topbar p{max-width:280px;line-height:1.6}.small-pill{width:35px;height:35px;border-radius:50%;padding:0;justify-content:center}.small-pill span{display:none}.small-pill .ph{font-size:20px}.island-hero{min-height:530px;border-radius:22px}.hero-copy{padding:27px 25px 20px;width:100%;min-width:0;max-width:none}.hero-copy h2{font-size:var(--font-display);letter-spacing:-1.6px;margin:17px 0 13px;line-height:1.13}.hero-copy>p{line-height:1.7;max-width:275px;margin-bottom:19px}.island-label{padding:7px 9px;letter-spacing:1.3px}.hero-cta{font-size:var(--font-body);min-height:44px;padding:10px 17px}.hero-meta{gap:15px;margin-top:15px}.hero-island{width:110%;max-width:none;left:-5%;right:auto;top:auto;bottom:-5px;transform:none}.hello-note{top:auto;right:16px;bottom:190px;padding:7px 12px;border-radius:12px 12px 12px 4px}.journey-section{margin-top:28px}.section-heading{margin-bottom:16px}.section-heading p{max-width:220px;line-height:1.5}.lesson-path{grid-template-columns:1fr;gap:0;padding:0 0 8px}.lesson-path:before{left:30px;right:auto;top:30px;bottom:35px;border-top:0;border-left:2px dashed #dce5cf}.lesson-node{display:grid;grid-template-columns:65px 1fr auto;grid-template-rows:25px 24px;align-items:center;min-height:93px;padding:15px 0;text-align:left;column-gap:13px}.node-icon{width:59px;height:59px;border-radius:20px;margin:0;grid-row:1/3;grid-column:1}.node-icon>.ph{font-size:25px}.lesson-node strong{grid-column:2;align-self:end;line-height:1.5}.node-subtitle{min-height:0;max-width:none;grid-column:2;margin-top:4px;align-self:start}.node-status{grid-column:3;grid-row:1/3;margin:0;min-width:40px;justify-content:flex-end}.node-number{width:21px;height:21px;min-width:21px;}.home-bottom{margin-top:9px}.word-pocket{padding:19px 17px;border-radius:15px}.word-pocket .text-button{font-size:var(--font-small)}.word-preview{gap:13px}.word-preview>span{padding:13px 10px}.word-preview .audio-button{display:none}.little-tip{gap:13px;padding:15px 5px 0}.little-tip>.ph{font-size:27px}.page-footer{padding-top:20px}.lesson-header{gap:15px;margin-bottom:20px}.round-button{width:35px;min-width:35px;height:35px}.lesson-heading .eyebrow{font-size:var(--font-caption);letter-spacing:1px}.pinyin-toggle{padding:5px 9px;min-height:32px}.exercise{margin-top:29px;margin-bottom:110px;min-height:0}.exercise h1{line-height:1.35;letter-spacing:-.7px;margin-bottom:23px}.exercise-category{letter-spacing:1.4px}.listen-stage{margin:16px auto 23px}.listening-disc{width:69px;height:69px;border-radius:24px}.listening-disc .ph{font-size:30px}.answer-option{min-height:59px;padding:12px 14px;gap:12px;border-radius:12px}.answer-number{min-width:22px;width:22px;height:22px;}.lesson-bottom{left:0;bottom:70px;padding:14px 20px;gap:12px;min-height:80px}.lesson-feedback{gap:7px;flex:1}.lesson-feedback>i{font-size:22px}.lesson-feedback strong{line-height:1.5}.lesson-feedback div>span{line-height:1.5}.gentle-reminder{gap:5px}.gentle-reminder .ph{font-size:17px}.lesson-bottom>.button{font-size:var(--font-body);min-width:125px;min-height:43px;padding:9px 13px;white-space:normal}.lesson-bottom>.button .ph{font-size:15px}.phrase-card{padding:25px 15px 22px;border-radius:19px;gap:12px}.phrase-zh{font-size:var(--font-large);letter-spacing:1px}.compact .phrase-zh{font-size:var(--font-page);letter-spacing:.3px}.lesson-note{max-width:320px;margin:22px auto}.sentence-tray{padding:17px 12px;min-height:96px;gap:8px;margin-top:32px}.sentence-token,.token{padding:10px 15px;min-height:51px}.token-bank{gap:9px}.record-button{min-height:49px}.completion-page{padding:12px 0}.celebration-mascot{width:140px;height:140px}.completion-page h1{letter-spacing:-1px}.completion-stats{margin:23px 0;padding:19px 5px}.completion-stats>div{padding:0 5px}.completion-stats span{line-height:1.5}.completion-stats .ph{font-size:21px}.completion-actions{flex-direction:column;gap:13px}.completion-actions .button{width:100%;font-size:var(--font-body)}.practice-intro{border-radius:21px;padding:25px 23px}.practice-intro h2{letter-spacing:-1.4px}.practice-intro>img{width:87%;max-width:87%;right:-23%;top:15%;opacity:.65}.practice-intro-copy>p{max-width:200px;width:65%;font-size:var(--font-body)}.goal-picker{margin:23px 0}.goal-options{gap:7px}.goal-chip{padding:9px 16px;min-height:41px}.practice-intro .button{font-size:var(--font-body)}.practice-intro .privacy-note{max-width:100%;}.conversation-panel{padding:19px 16px;border-radius:17px}.order-note{padding:15px 17px}.clerk-avatar{width:45px;height:45px}.clerk-bubble{padding:20px 13px}.clerk-zh{letter-spacing:.6px}.empty-state{min-height:430px;padding:20px 5px}.empty-state p{max-width:310px}.empty-mascot{width:135px;height:135px}.review-banner{padding:22px 18px;border-radius:18px}.review-banner h2{line-height:1.4}.review-banner p{line-height:1.7}.review-banner>div{padding-left:42px}.review-banner>div>.ph{font-size:29px}.review-banner .button{margin-left:42px;font-size:var(--font-body)}.library-word{padding:19px 4px}.library-word>div{min-width:100px}.review-session{padding:8px 0}.review-session .eyebrow{font-size:var(--font-caption)}.review-word{min-height:250px;padding:25px 20px}.review-ratings{gap:7px}.review-ratings button{padding:13px 5px;min-height:100px}.progress-overview{padding:23px;gap:10px;flex-wrap:wrap;min-height:0}.progress-total{min-width:0;width:100%;flex:auto}.wide-progress{max-width:none}.progress-numbers{flex-direction:row;gap:45px;padding-left:0;padding-top:17px;margin-top:5px;border-left:0;border-top:1px solid #dbe5ca;width:100%}.progress-numbers>div{gap:2px}.progress-detail{margin-top:28px}.evidence-row{gap:11px;padding:17px 0}.evidence-icon{width:37px;height:37px;border-radius:10px;flex:none}.evidence-row p{max-width:200px}.evidence-row .text-button{font-size:var(--font-small);min-width:42px;margin-left:0}.honest-note{padding:18px 16px;gap:10px}.honest-note>.ph{font-size:20px}.toast{bottom:90px;width:calc(100% - 40px);text-align:center;padding:11px 15px}.setting-row{gap:10px}.setting-row select{max-width:133px}dialog{padding:23px}.modal-actions{flex-direction:column}.modal-actions .button{width:100%}}
@media(max-width:360px){.main-shell{padding-left:15px;padding-right:15px}.hero-copy{padding-left:21px;padding-right:21px}.hero-copy h2{font-size:var(--font-display)}.island-hero{min-height:510px}.hero-island{bottom:0}.hello-note{bottom:173px}.hero-meta{gap:10px;}.lesson-bottom{padding-left:15px;padding-right:15px}.phrase-zh{font-size:var(--font-large)}.conversation-panel{padding-left:13px;padding-right:13px}.practice-intro{padding-left:20px;padding-right:20px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}
/* Keep the soft palette readable on cream and pale-green surfaces. */
.hero-copy>p,.hero-meta,.topbar p,.section-heading p,.node-subtitle,.privacy-note,.assessment-note,.phrase-gloss,.phrase-pinyin,.word-preview p,.little-tip p,.library-word p,.library-word div>span,.evidence-row p,.honest-note p,.practice-intro p,.order-note p,.clerk-gloss,.clerk-row div>span,.conversation-answer>span,.setting-row small,.modal-info p,.modal-copy,.review-banner p,.empty-state p,.progress-total p,.progress-numbers span,.completion-page>p,.completion-stats span,.review-word>p,.review-ratings span,.progress-detail .section-heading>span,.progress-caption,.page-footer,.sidebar-note p,.node-status{color:#63745d}
.button.primary{background:#ba523e;border-color:#ac4936;box-shadow:0 3px 0 #9e4330}
.button.primary:hover:not(:disabled){background:#ad4836;box-shadow:0 4px 0 #923b29}
.hero-cta{font-size:var(--font-body)}
@media(max-width:600px){.island-hero{min-height:0}.hero-copy{padding-bottom:15px}.hero-island{position:relative;display:block;top:auto;bottom:auto;margin-top:-6px;margin-bottom:-6px}.hello-note{bottom:183px}.profile-button{display:grid;place-items:center;width:35px;height:35px;}.small-pill{display:none}.hero-cta{font-size:var(--font-body)}}
@media(max-width:360px){.island-hero{min-height:0}.hello-note{bottom:165px}}
@media(min-width:601px){.hero-island{width:60%;height:94%;right:-1%;top:50%;object-fit:contain;transform:translateY(-50%)}}

/* Let readable text wrap instead of shrinking it at narrow widths. */
.hero-copy>p{max-width:340px}
.lesson-heading{gap:16px}.lesson-heading .eyebrow{line-height:1.5}.pinyin-toggle{flex:none}
.phrase-gloss,.answer-option,.review-banner p,.modal-copy{line-height:1.6}
.button{white-space:normal;max-width:100%}
.exercise{margin-bottom:11rem}
.setting-row>span{min-width:0;flex:1 1 140px}.setting-row select{flex-shrink:0;max-width:48%;min-height:44px}
.review-ratings{grid-template-columns:repeat(3,minmax(0,1fr))}.review-ratings button,.completion-stats>div{min-width:0;overflow-wrap:anywhere}
.library-word{flex-wrap:wrap}.library-word p{min-width:80px}
@media(max-width:1000px){.home-bottom{grid-template-columns:1fr}}
@media(max-width:600px){
 .sidebar nav{grid-template-columns:repeat(4,minmax(0,1fr))}.nav-item{min-width:0}.nav-item>span{max-width:100%;overflow-wrap:anywhere;line-height:1.2}
 .topbar h1{max-width:100%;overflow-wrap:anywhere}.topbar>div:first-child{min-width:0}.profile-button{flex-shrink:0;width:auto;height:auto;min-width:35px;min-height:35px;padding:5px}
 .topbar p,.hero-copy>p{max-width:none}.hero-copy h2{font-size:var(--font-display)}
 .hello-note{bottom:33vw}
 .sidebar{height:var(--mobile-nav-height)}body{padding-bottom:calc(var(--mobile-nav-height) + 10px)}
 .main-shell{min-height:calc(100dvh - var(--mobile-nav-height))}.lesson-bottom{bottom:var(--mobile-nav-height)}.toast{bottom:calc(var(--mobile-nav-height) + 20px)}
 .island-label{max-width:100%;overflow-wrap:anywhere}.hero-copy h2{overflow-wrap:anywhere}
 .hero-meta{gap:8px 16px}.hero-meta>span{line-height:1.5}
 .section-heading{align-items:flex-start;flex-wrap:wrap;gap:8px 16px}
 .lesson-node{grid-template-columns:65px minmax(0,1fr) auto;grid-template-rows:auto auto;row-gap:2px;min-height:104px}
 .node-subtitle{line-height:1.5}.node-status{line-height:1.4;max-width:52px;text-align:right}
 .lesson-bottom{flex-wrap:wrap;gap:8px 14px}.lesson-feedback,.gentle-reminder{flex:1 1 130px}.lesson-bottom>.button{min-width:148px}
 .exercise{margin-bottom:calc(8rem + var(--mobile-nav-height))}.lesson-heading .eyebrow{letter-spacing:.6px}
 .practice-intro-copy>p{width:100%;max-width:none}.practice-intro>img{opacity:.25}
 .conversation-answer{padding-right:38px}.conversation-answer>strong{line-height:1.5}
 .progress-numbers{flex-wrap:wrap;gap:20px}.progress-numbers>div{min-width:0;flex:1 1 100px;overflow-wrap:anywhere}
 .completion-stats span{line-height:1.5}.review-ratings button{padding:14px 6px}
 .setting-row{align-items:flex-start;flex-wrap:wrap}.setting-row select{max-width:100%;width:100%}
 .word-pocket .section-heading{align-items:center}.word-preview>div{min-width:0}
}

/* Keep the course entry complete in a phone viewport and reserve real space for lesson controls. */
@media(max-width:600px){
 .main-shell:has(.island-hero){padding-top:16px}
 .main-shell:has(.island-hero) .topbar{margin-bottom:14px;gap:12px}
 .main-shell:has(.island-hero) .topbar h1{font-size:var(--font-heading);line-height:1.25;letter-spacing:-.6px;margin-bottom:0}
 .main-shell:has(.island-hero) .topbar p{display:none}
 .main-shell:has(.island-hero) .mobile-brand{margin-bottom:5px}
 .island-hero{display:grid;grid-template-columns:minmax(0,1fr);gap:9px;padding:18px;min-height:0}
 .hero-copy{display:contents}
 .island-label{grid-row:1;justify-self:start;padding:6px 9px;letter-spacing:1px;line-height:1.2}
 .hero-copy h2{grid-row:2;font-size:var(--font-large);line-height:1.12;letter-spacing:-1px;margin:0}
 .hero-island{grid-row:3;position:static;display:block;left:auto;right:auto;top:auto;bottom:auto;width:100%;height:145px;max-width:100%;margin:0;transform:none;object-fit:contain}
 .hero-copy>p{grid-row:4;font-size:var(--font-body);line-height:1.5;margin:0;max-width:none}
 .hero-cta{grid-row:5;width:100%;min-height:48px;margin-top:3px}
 .hero-meta{grid-row:6;justify-content:center;gap:6px 16px;margin-top:2px;line-height:1.4}
 .hello-note{display:none}
 .journey-section{margin-top:24px}
 .sidebar{height:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));padding-bottom:calc(6px + env(safe-area-inset-bottom))}
 body{padding-bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 10px)}
 body.learning-session{padding-bottom:0}
 .learning-session .sidebar{display:none}
 .learning-session .main-shell{margin:0;padding:max(12px,env(safe-area-inset-top)) 16px 0;max-width:none;min-height:0;height:100dvh;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;row-gap:10px;overflow:hidden}
 .learning-session .lesson-header{gap:12px;margin:0;width:100%;max-width:none}
 .learning-session .round-button{width:44px;min-width:44px;height:44px}
 .learning-session .step-count{white-space:nowrap}
 .learning-session .lesson-heading{width:100%;max-width:none;gap:12px}
 .learning-session .lesson-heading .eyebrow{line-height:1.4;letter-spacing:.5px}
 .learning-session .pinyin-toggle{min-height:40px;padding:6px 10px}
 .learning-session .exercise{width:100%;max-width:640px;min-height:0;margin:0 auto;padding:4px 1px 16px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
 .learning-session .exercise-category{margin-bottom:10px;letter-spacing:1.2px}
 .learning-session .exercise h1{font-size:var(--font-page);line-height:1.25;margin-bottom:14px}
 .learning-session .listen-stage{margin:8px auto 16px;gap:8px}
 .learning-session .listening-disc,.learning-session .listen-stage p{display:none}
 .learning-session .large-audio{min-height:48px;padding:10px 16px}
 .learning-session .answer-options{gap:9px}
 .learning-session .answer-option{min-height:56px;padding:11px 13px;gap:11px}
 .learning-session .answer-option>span:nth-child(2){min-width:0;overflow-wrap:anywhere}
 .learning-session .answer-number{flex:none}
 .learning-session .lesson-bottom{position:static;left:auto;right:auto;bottom:auto;min-height:0;max-width:none;margin:0 -16px;padding:10px 16px calc(12px + env(safe-area-inset-bottom));display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
 .learning-session .lesson-bottom:not(.is-correct):not(.is-incorrect) .lesson-feedback{display:none}
 .learning-session .lesson-feedback{gap:8px;max-width:none;min-width:0}
 .learning-session .lesson-feedback>i{font-size:22px}
 .learning-session .lesson-feedback strong{line-height:1.35}
 .learning-session .lesson-feedback div>span{line-height:1.4;margin-top:2px}
 .learning-session .lesson-bottom>.button{width:100%;min-width:0;min-height:48px;padding:10px 14px}
 .learning-session .phrase-card{padding:20px 14px;margin-bottom:16px;gap:10px}
 .learning-session .phrase-gloss{margin-bottom:0}
 .learning-session .phrase-card.compact{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:6px 10px;padding:16px;text-align:left}
 .learning-session .compact .phrase-zh,.learning-session .compact .phrase-pinyin,.learning-session .compact .phrase-gloss{grid-column:1}
 .learning-session .compact .audio-button{grid-column:2;grid-row:1/4;width:44px;height:44px;min-width:44px;padding:0;margin:0}
 .learning-session .compact .audio-button>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .learning-session .phrase-card .audio-button{margin-top:2px;min-height:44px}
 .learning-session .lesson-note{margin:16px auto}
 .learning-session .sentence-tray{margin:16px auto;min-height:80px;padding:12px}
 .learning-session .token-bank{gap:8px}
 .learning-session .sentence-token,.learning-session .token{padding:9px 13px;min-height:48px}
 .learning-session .recorder{margin:10px auto}
 .learning-session .privacy-note{line-height:1.5;margin:8px 0 0}.learning-session .assessment-note{line-height:1.5;margin:8px auto 0}
 .learning-session .self-check{margin:10px auto;line-height:1.5}
 .learning-session .toast{top:calc(12px + env(safe-area-inset-top));bottom:auto}
}
@media(max-width:600px) and (max-height:740px){
 .island-hero{gap:8px;padding:16px}
 .hero-copy h2{font-size:var(--font-page)}
 .hero-copy>p{display:none}
 .hero-island{height:155px}
}
@media(max-width:360px) and (max-height:620px){
 .main-shell:has(.island-hero){padding-top:12px}
 .main-shell:has(.island-hero) .topbar{margin-bottom:10px}
 .main-shell:has(.island-hero) .mobile-brand{display:none}
 .island-hero{gap:7px;padding:14px}
 .hero-island{height:140px}
 .hero-meta{gap:5px 10px}
 .learning-session .main-shell{padding-top:max(8px,env(safe-area-inset-top));row-gap:8px}
}
