/* BOYAN: forest green / warm white identity. Shared semantic color roles. */
:root{--bg:#F7F8F5;--surface:#FFFFFF;--ink:#203A34;--muted:#60736B;--line:#DBE3DC;--line-strong:#B4C5B9;--brand:#1B5E4B;--brand-deep:#124836;--brand-hover:#174F3F;--soft:#EDF4ED;--accent:#DEEDB4;--subtle:#FCFDF9;--selected:#DCEBDC;--on-brand:#FFFFFF;--on-brand-muted:#E1EADE;--hero-line:#4B806B;--orange:#8C5E1E;--warning-bg:#FFF5E5;--warning-border:#DECBA7;--danger:#A13D35;--danger-bg:#FFF0ED;--danger-border:#D6A49B;--disabled:#E9EDE8;--serif:Georgia,'Times New Roman',serif;--radius:16px;--control-radius:10px;color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;font-synthesis:none}

*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-size:15px;line-height:1.6}
::selection{background:var(--accent);color:var(--brand-deep)}
button,input,textarea{font:inherit}
button,a,input,textarea{touch-action:manipulation}
button{border:0;padding:0;background:none;color:inherit;cursor:pointer}
button:disabled{cursor:default;color:var(--muted);background:var(--disabled);border-color:var(--line);opacity:.65}
button,a{transition:background-color .16s,color .16s,border-color .16s,opacity .12s}
button:active:not(:disabled){opacity:.76}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--brand);outline-offset:3px}
button:hover:not(:disabled){filter:brightness(.97)}
input,textarea{caret-color:var(--brand)}
input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}
a{color:var(--brand);text-underline-offset:4px}
svg{flex-shrink:0;width:20px;height:20px;vertical-align:middle}
.shell{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}
.sidebar{position:fixed;inset:0 auto 0 0;width:224px;display:flex;flex-direction:column;padding:36px 20px;background:var(--bg);border-right:1px solid var(--line);z-index:10}
.brand{display:flex;align-items:center;gap:12px;padding:0 12px}
.brandmark{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex-shrink:0;border-radius:13px;overflow:hidden}
.brandname{font-size:25px;letter-spacing:3px;font-weight:600;line-height:1.35}
.brand small{display:block;font-size:9px;letter-spacing:1.3px;color:var(--muted);margin-top:4px;white-space:nowrap}
.nav{display:grid;gap:4px;margin-top:32px}
.nav button{display:flex;align-items:center;gap:12px;min-height:44px;padding:8px 16px;text-align:left;border-radius:12px;font-size:15px;color:var(--muted)}
.nav button.active{color:var(--brand);background:var(--selected);font-weight:600}
.sidebar-note{margin-top:auto;padding:24px 12px 0;border-top:1px solid var(--line);color:var(--muted);font-size:12px}
.sidebar-note b{display:block;color:var(--ink);font-weight:500;margin-bottom:4px}
.main{grid-column:2;min-width:0;width:100%;max-width:1280px;margin:auto;padding:36px 48px 64px}
.topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;color:var(--muted);font-size:12px;margin-bottom:32px}
.topbar>span{display:inline-flex;align-items:center;gap:7px}
.topbar svg{width:16px;height:16px}
.mobile-top{display:none}
.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}
.title{font-size:32px;line-height:1.4;letter-spacing:0;font-weight:600;margin:0 0 8px}
.subtitle{font-size:14px;line-height:1.7;color:var(--muted);margin:0}
.streak{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:10px;background:var(--soft);color:var(--brand);font-size:12px;white-space:nowrap}
.streak svg{width:16px;height:16px}
.hero{position:relative;isolation:isolate;overflow:hidden;background:var(--brand);border-radius:20px;color:var(--on-brand);padding:28px;display:grid;grid-template-columns:minmax(0,1fr) 200px;gap:32px;align-items:center}
.hero-label{display:flex;align-items:center;gap:7px;color:var(--on-brand-muted);font-size:13px;font-weight:500}
.hero-label svg{width:18px;height:18px}
.hero h2,.hero h1{font-size:29px;line-height:1.4;font-weight:600;margin:14px 0 5px;letter-spacing:-.3px}
.hero .en{font-family:var(--serif);font-size:23px;line-height:1.4;color:var(--on-brand-muted)}
.hero p{font-size:14px;line-height:1.7;color:var(--on-brand-muted);margin:16px 0 24px;max-width:42ch}
.hero .primary{background:var(--accent);color:var(--brand-deep);min-width:208px}
.hero-summary{position:relative;z-index:1;align-self:stretch;display:flex;flex-direction:column;justify-content:center;padding-left:28px;border-left:1px solid var(--hero-line)}
.hero-progress-copy{display:flex;align-items:baseline;justify-content:space-between;gap:12px;color:var(--on-brand-muted);font-size:12px}
.hero-progress-copy strong{font-size:30px;font-weight:600;color:var(--on-brand);font-variant-numeric:tabular-nums;line-height:1.3}
.hero-progress{height:7px;border-radius:8px;overflow:hidden;background:var(--hero-line);margin:16px 0}
.hero-progress-fill{display:block;height:100%;background:var(--accent);border-radius:inherit;transition:transform .18s cubic-bezier(.22,1,.36,1);transform-origin:left}
.actual-time{font-size:12px;color:var(--on-brand-muted);line-height:1.8}
.actual-time span{display:block}
.primary,.secondary,.pronunciation-button,.answer-toggle{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:50px;padding:12px 20px;border-radius:var(--control-radius);font-size:15px;font-weight:500;line-height:1.5}
.primary{background:var(--brand);color:var(--on-brand)}
.primary svg{width:19px;height:19px}
.secondary{background:var(--surface);border:1px solid var(--line-strong);color:var(--brand);min-height:48px}
.pronunciation-button{min-height:58px;min-width:184px;background:var(--soft);color:var(--brand);border:1px solid var(--line-strong);margin-top:20px;align-self:flex-start;font-size:16px}
.pronunciation-button svg{width:20px;height:20px}
.example-audio{margin-top:20px}
.text-button{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:13px;color:var(--brand);padding:9px 0;font-weight:500}
.text-button svg{width:18px;height:18px}
.dashboard{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr);gap:28px;margin-top:32px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px}
.section-head h2{font-size:17px;line-height:1.5;font-weight:600;margin:0}
.section-head>span{font-size:12px;color:var(--muted)}
.section-head>button{min-height:44px;font-size:13px;color:var(--brand)}
.panel{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);padding:4px 24px}
.panel.plan-panel{padding:0;overflow:hidden}
.task{display:flex;align-items:center;gap:14px;padding:20px 24px;width:100%;text-align:left;border-bottom:1px solid var(--line);background:var(--surface)}
.task:last-child{border-bottom:0}
.task-icon{display:grid;place-items:center;width:36px;height:36px;background:var(--bg);border-radius:10px;color:var(--brand);flex-shrink:0}
.task-icon svg{width:21px;height:21px}
.task .copy{flex:1;min-width:0}
.task-title-row{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px}
.task strong{font-size:15px;font-weight:600;line-height:1.5}
.task small{display:block;font-size:12px;color:var(--muted);line-height:1.6;margin-top:5px}
.task .duration{font-size:12px;color:var(--muted);white-space:nowrap;display:inline-flex;align-items:center;gap:6px}
.task .duration svg{width:15px;height:15px}
.task-status{font-size:11px;color:var(--muted);font-weight:400;white-space:nowrap}
.task-done{background:var(--surface)}
.task-done .task-icon{background:var(--selected)}
.task-done strong,.task-done .task-status{color:var(--brand)}
.task-done .task-status,.task-progress .task-status{padding:0;background:transparent}
.task-progress .task-status{color:var(--brand);background:transparent}
.task-progress .task-icon{background:var(--soft);color:var(--brand)}
.quote-card{padding:28px;background:var(--soft);border:1px solid var(--line);border-radius:var(--radius)}
.quote-card blockquote{font-family:var(--serif);font-size:25px;line-height:1.5;margin:0 0 16px;overflow-wrap:anywhere}
.quote-card .translation{font-size:14px;color:var(--muted);line-height:1.7}
.quote-card .pronunciation-button{background:var(--surface);width:100%;min-width:0}
.daily-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;border-top:1px solid var(--line);padding-top:20px;margin-top:24px}
.daily-stats strong{font-size:24px;font-weight:600;font-variant-numeric:tabular-nums;display:block}
.daily-stats small{font-size:12px;color:var(--muted)}
.footer-note,.soft-note,.content-origin{font-size:12px;line-height:1.8;color:var(--muted);margin:16px 0 0}
.footer-note{display:flex;align-items:flex-start;gap:7px}
.footer-note svg{width:16px;height:16px;margin-top:3px}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0}
.chip{min-height:46px;display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--muted);font-size:14px;line-height:1.5}
.chip.active{background:var(--selected);color:var(--brand-deep);border-color:var(--line-strong);font-weight:600}
.search-field{display:flex;align-items:center;gap:12px;min-height:52px;padding:0 16px;background:var(--surface);border:1px solid var(--line-strong);border-radius:12px;margin-top:10px}
.search-field svg{color:var(--muted);width:21px;height:21px}
.search{width:100%;min-width:0;min-height:50px;border:0;background:transparent;padding:12px 0;font-size:15px;color:var(--ink)}
.word-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.word-item{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px;display:flex;align-items:flex-start;gap:16px;min-width:0}
.word-copy{flex:1;min-width:0}
.word-copy b{display:block;font-family:var(--serif);font-weight:500;font-size:27px;line-height:1.25;margin-bottom:10px;overflow-wrap:anywhere}
.word-copy small{display:block;font-size:14px;color:var(--muted)}
.word-copy .meta{font-size:12px;color:var(--muted);margin-top:12px}
.word-actions{display:flex;flex-direction:column;gap:12px}
.icon-button{display:inline-grid;place-items:center;width:46px;height:46px;border:1px solid var(--line-strong);border-radius:12px;color:var(--brand);background:var(--surface);flex-shrink:0}
.icon-button.active{background:var(--soft);border-color:var(--line-strong)}
.icon-button svg{width:20px;height:20px}
.icon-button.active svg{fill:var(--accent)}
.scene-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.scene-card{display:flex;flex-direction:column;min-height:245px;padding:26px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);text-align:left}
.tag{display:inline-flex;align-self:flex-start;padding:4px 9px;border-radius:6px;background:var(--soft);color:var(--brand);font-size:12px;font-weight:500}
.scene-card h3{font-size:21px;font-weight:600;line-height:1.5;margin:18px 0 4px}
.scene-card .en{font:19px/1.5 var(--serif);color:var(--muted)}
.scene-card p{font-size:14px;color:var(--muted);line-height:1.7;margin:16px 0 24px}
.scene-card footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:16px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.scene-card footer svg{width:20px;height:20px;color:var(--brand)}
.back{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin:0 0 20px;color:var(--muted);font-size:13px}
.back svg{width:18px;height:18px}
.study-layout{max-width:720px;margin:auto}
.study-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.study-heading p{font-size:18px;font-weight:600;margin:0}
.study-heading .soft-note{margin:0;font-variant-numeric:tabular-nums}
.progress-track{height:6px;background:var(--selected);border-radius:6px;overflow:hidden;margin:16px 0 24px}
.progress-track span{display:block;height:100%;background:var(--brand);border-radius:inherit}
.flashcard{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);padding:28px 32px;min-height:335px;display:flex;flex-direction:column}
.flashcard-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.flashcard-head>span{font-size:13px;color:var(--muted)}
.word-main{font:46px/1.2 var(--serif);color:var(--ink);overflow-wrap:anywhere;margin:32px 0 8px}
.word-meaning{font-size:25px;line-height:1.5;margin:32px 0 8px}
.recall-instruction{font-size:14px;color:var(--muted);line-height:1.7;margin:8px 0 0;max-width:46ch}
.answer{border-top:1px solid var(--line);margin-top:28px;padding-top:24px}
.answer h3{font-size:20px;font-weight:500;margin:0 0 12px}
.answer .collocation{font:22px/1.5 var(--serif);color:var(--brand);margin:8px 0 16px}
.answer .example{font-size:17px;line-height:1.7;margin:16px 0 8px}
.answer .translation{font-size:14px;line-height:1.7;color:var(--muted)}
.reveal{width:100%;margin-top:20px}







.notice{padding:16px;background:var(--warning-bg);border:1px solid var(--warning-border);border-radius:12px;color:var(--orange);font-size:14px;margin-bottom:24px}
.empty{padding:40px 24px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);text-align:center}
.empty h2{font-size:23px;font-weight:600;margin:16px 0}
.empty p{font-size:14px;line-height:1.8;color:var(--muted)}
.empty .primary{margin-top:16px}
.empty-icon{display:grid;place-items:center;width:56px;height:56px;border-radius:16px;background:var(--soft);color:var(--brand);margin:auto}
.empty-icon svg{width:28px;height:28px}
.practice-header{padding:28px;background:var(--soft);border:1px solid var(--line);border-radius:var(--radius)}
.practice-header h2{font-size:25px;font-weight:600;line-height:1.45;margin:14px 0 10px}
.practice-header p{font-size:14px;line-height:1.8;color:var(--muted);margin:0}
.practice-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;background:var(--selected);padding:6px;border-radius:14px;margin:24px 0}
.practice-tabs .chip{border:1px solid transparent;background:transparent;border-radius:9px;padding:10px 6px;font-size:14px;min-height:46px}
.practice-tabs .chip.active{border-color:var(--line);background:var(--surface);color:var(--brand);font-weight:600}
.dialogue{padding:24px 28px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);margin-bottom:16px}
.line-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.eyebrow{font-size:12px;color:var(--muted);font-weight:500;line-height:1.5}
.dialogue>p{font:23px/1.6 var(--serif);margin:16px 0 10px;overflow-wrap:anywhere}
.dialogue>small{font-size:14px;line-height:1.8;color:var(--muted)}
.recall-line{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin:20px 0 8px}
.recall-line>p{flex:1;min-width:0;font-size:15px;line-height:1.8;margin:8px 0}
.answer-toggle{flex-shrink:0;min-height:46px;padding:10px 12px;border:1px solid var(--line-strong);background:var(--soft);color:var(--brand);font-size:13px;border-radius:10px}
.mask{color:var(--muted);letter-spacing:1px;overflow-wrap:anywhere}
.recall-check{margin-top:20px;width:100%}
.checked{background:var(--soft);border-color:var(--line-strong)}
.exercise{padding:28px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.exercise h3{font:29px/1.5 var(--serif);margin:20px 0 24px;overflow-wrap:anywhere}
.exercise label{display:block;font-size:14px;color:var(--muted);margin-bottom:10px}
.exercise textarea,.backup-text{width:100%;min-height:150px;padding:16px;border:1px solid var(--line-strong);border-radius:12px;background:var(--subtle);color:var(--ink);font-size:15px;line-height:1.7;resize:vertical}
.exercise details{padding:12px 16px;background:var(--bg);border-radius:10px;margin-top:16px;font-size:14px}
.exercise summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;min-height:44px;color:var(--brand);list-style:none}
.exercise summary svg{width:18px;height:18px}
.exercise details[open] summary svg{transform:rotate(90deg)}
.exercise details p{font-size:15px;line-height:1.8}
.action-row{display:flex;align-items:stretch;flex-wrap:wrap;gap:12px;margin-top:20px}
.action-row>.primary,.action-row>.secondary{flex:1}
.record-button{background:var(--soft);border-color:var(--line-strong)}
.record-button.is-recording{color:var(--danger);background:var(--danger-bg);border-color:var(--danger-border)}
.radio-row{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0 24px}
.radio-row label{display:flex;align-items:center;gap:8px;min-height:46px;margin:0;padding:8px 12px;border:1px solid var(--line);border-radius:10px;font-size:14px;color:var(--ink)}
.radio-row label:has(input:checked){background:var(--soft);border-color:var(--line-strong);color:var(--brand)}
.radio-row input{width:18px;height:18px;accent-color:var(--brand);margin:0}
.voice-player{display:block;width:100%;margin-top:20px}
.stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:28px 0}
.stat{padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:14px;min-width:0}
.stat strong{color:var(--brand);display:block;font-size:34px;line-height:1.3;font-weight:600;font-variant-numeric:tabular-nums;margin-bottom:10px}
.stat small{font-size:13px;color:var(--muted);line-height:1.6;display:block}
.reflection-panel{padding:28px;background:var(--soft);border:1px solid var(--line);border-radius:var(--radius);margin:28px 0}
.reflection-panel h2{font-size:21px;line-height:1.6;font-weight:600;margin:0 0 8px}
.reflection-panel p{font-size:14px;line-height:1.8;color:var(--muted);margin:0 0 20px}
.record{padding:24px 0;border-bottom:1px solid var(--line)}
.record:last-child{border-bottom:0}
.record b{font-size:16px;font-weight:600}
.record p{font-size:14px;line-height:1.8;margin:12px 0;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere}
.record small{font-size:12px;color:var(--muted);display:block;margin-top:12px}
.record .text-button{display:flex;width:max-content}
.backup{margin-top:28px;padding:28px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.backup h3{font-size:18px;font-weight:600;margin:0 0 12px}
.backup p{font-size:14px;line-height:1.8;color:var(--muted)}
.source-link{display:block;padding:20px 0;text-decoration:none;border-bottom:1px solid var(--line)}
.source-link:last-child{border-bottom:0}
.source-link strong{font-size:15px;font-weight:500;display:block}
.source-link span{font-size:13px;line-height:1.8;color:var(--muted);display:block;margin-top:6px}
.assessment-result{border-top:1px solid var(--line);margin-top:28px;padding-top:24px}
.assessment-result h2{font-size:17px}
.score-main{font-size:48px;font-weight:600;line-height:1.3;color:var(--brand);font-variant-numeric:tabular-nums}
.score-main small{font-size:15px;font-weight:400;color:var(--muted)}
.score-details{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0;font-size:13px}
.word-feedback{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}
.word-feedback span{background:var(--soft);padding:6px 10px;border-radius:6px;font-size:13px}
.word-feedback .needs-work{background:var(--warning-bg);color:var(--orange)}
.assessment-result>p{font-size:14px;line-height:1.8}
#toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);max-width:min(90vw,600px);padding:14px 20px;border-radius:12px;background:var(--brand-deep);color:var(--on-brand);font-size:14px;line-height:1.7;z-index:30;pointer-events:none;opacity:0}
#toast.show{opacity:1}

@media(min-width:1440px){.main{padding:44px 64px 64px}
.hero{padding:36px}
.dashboard{gap:32px}
}

@media(max-width:1100px){.main{padding:32px}
.dashboard{grid-template-columns:1fr}
.word-list{grid-template-columns:1fr}
.hero{grid-template-columns:minmax(0,1fr) 180px;gap:24px}
.hero-summary{padding-left:20px}
}

@media(max-width:760px){.shell{display:block}
.sidebar{inset:auto 0 0;width:100%;height:auto;padding:0 8px env(safe-area-inset-bottom);border-right:0;border-top:1px solid var(--line)}
.sidebar>.brand,.sidebar-note{display:none}
.nav{display:flex;gap:4px;margin:0}
.nav button{flex:1;min-width:0;min-height:68px;display:flex;flex-direction:column;justify-content:center;gap:5px;padding:10px 4px 8px;border-radius:0;font-size:11px}
.nav button.active{background:none}
.nav button svg{width:20px;height:20px}
.nav button.active svg{background:var(--soft);border-radius:8px;box-shadow:0 0 0 5px var(--soft)}
.main{max-width:560px;padding:24px 20px calc(108px + env(safe-area-inset-bottom))}
.topbar{gap:12px;margin-bottom:28px}
.topbar>span:last-child{display:none}
.topbar>span{font-size:12px}
.mobile-top{display:flex;align-items:center;gap:9px;font-size:14px;font-weight:600;color:var(--ink)}
.mobile-top .brandmark{width:34px;height:34px;border-radius:10px}
.page-heading{display:block;margin-bottom:24px}
.title{font-size:26px;letter-spacing:0;margin-bottom:8px}
.subtitle{font-size:14px}
.page-heading .streak{display:none}
.hero{display:block;padding:24px;border-radius:20px}
.hero h2,.hero h1{font-size:24px;margin-top:12px}
.hero .en{font-size:20px}
.hero p{font-size:13px;margin:12px 0 20px}
.hero .primary{width:100%;min-width:0;min-height:52px}
.hero-summary{border-left:0;border-top:1px solid var(--hero-line);padding:18px 0 0;margin-top:24px}
.hero-progress-copy strong{font-size:21px}
.hero-progress-copy{font-size:13px}
.hero-progress{margin:10px 0;height:6px}
.actual-time{display:flex;justify-content:space-between;flex-wrap:wrap;gap:2px 8px;font-size:12px;line-height:1.6}
.actual-time span{display:inline}
.dashboard{gap:32px;margin-top:32px}
.section-head{gap:8px;margin-bottom:14px;min-height:32px}
.section-head h2{font-size:16px}
.section-head>span{font-size:12px;white-space:nowrap}
.panel{padding:4px 20px}
.task{padding:20px;gap:12px}
.task-icon{width:40px;height:40px;border-radius:12px}
.task-icon svg{width:20px;height:20px}
.task strong{font-size:15px}
.task small{font-size:12px}
.task .duration{font-size:12px;gap:4px}
.task .duration svg{width:14px;height:14px}
.task-status{font-size:12px}
.task-title-row{gap:3px 6px}
.quote-card{padding:24px}
.quote-card blockquote{font-size:25px}
.daily-stats{gap:12px}
.chips{gap:8px;margin:24px 0}
.chip{font-size:14px;padding:10px 14px}
.word-item{padding:22px;gap:14px}
.word-copy b{font-size:27px}
.word-actions{gap:14px}
.scene-grid{grid-template-columns:1fr}
.scene-card{padding:24px;min-height:235px}
.scene-card h3{font-size:21px}
.flashcard{padding:24px;min-height:340px}
.word-main{font-size:42px;margin-top:32px}
.flashcard-head>span{font-size:12px}
.recall-instruction{font-size:14px}
.pronunciation-button{width:100%;min-width:0;min-height:58px}



.practice-header{padding:24px}
.practice-header h2{font-size:23px}
.practice-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
.practice-tabs .chip{font-size:14px}
.dialogue{padding:22px}
.dialogue>p{font-size:22px}
.recall-line{gap:10px}
.recall-line>p{font-size:14px}
.answer-toggle{font-size:12px;padding:10px;min-height:46px}
.exercise{padding:22px}
.exercise h3{font-size:26px}
.action-row{gap:10px}
.action-row>.primary,.action-row>.secondary{min-width:120px}
.exercise .action-row:has(.primary){display:grid;grid-template-columns:1fr}
.action-row:has(.record-button){display:grid;grid-template-columns:minmax(0,1fr) auto}
.action-row .record-button{min-width:0;padding:12px 16px}
.stat-grid{gap:10px;margin:24px 0}
.stat{padding:20px 12px}
.stat strong{font-size:30px;margin-bottom:8px}
.stat small{font-size:12px}
.reflection-panel{padding:24px}
.reflection-panel h2{font-size:20px}
.reflection-panel .primary{width:100%}
.backup{padding:24px}
.backup .action-row{display:grid;grid-template-columns:1fr 1fr}
.backup .action-row button{min-width:0;font-size:13px;padding:12px 8px}
#toast{bottom:92px}
.search,.exercise textarea{font-size:16px}
}

@media(max-width:360px){.main{padding-left:16px;padding-right:16px}
.hero,.flashcard,.exercise{padding:20px}
.task{padding:18px 16px;gap:10px}
.task-icon{width:32px;height:32px}
.task .duration svg{display:none}
.task strong{font-size:14px}
.title{font-size:24px}

.answer-toggle{font-size:12px;padding:10px 8px}
}

@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}


/* Brand geometry, page hierarchy and quiet interaction states. */
.brandmark svg{display:block;width:100%;height:100%}
.mobile-top{letter-spacing:.5px}
.page-kicker{font-size:12px;font-weight:500;letter-spacing:0;color:var(--brand);margin-bottom:10px;line-height:1.5}
.hero-main{position:relative;z-index:1}

.quote-eyebrow{font-size:12px;font-weight:500;letter-spacing:0;color:var(--brand);margin-bottom:18px}
.hero .primary:hover{background:var(--selected);filter:none}
.primary:hover:not(:disabled){background:var(--brand-hover);filter:none}
.hero .primary:hover:not(:disabled){background:var(--selected)}
.task:hover:not(:disabled),.scene-card:hover{background:var(--subtle);filter:none}
.task-done:hover:not(:disabled){background:var(--selected)}
.word-item,.scene-card,.flashcard,.exercise,.dialogue,.stat,.backup{box-shadow:none}

.scene-top{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%}
.scene-index{font-size:12px;letter-spacing:0;color:var(--muted);font-variant-numeric:tabular-nums}
.hero-progress-copy strong,.stat strong{letter-spacing:0}
@media(max-width:760px){.page-kicker{font-size:12px;letter-spacing:0;margin-bottom:8px}.topbar{margin-bottom:24px}.nav button{font-size:12px;min-height:72px}.nav button.active svg{background:var(--selected);box-shadow:0 0 0 5px var(--selected)}.task .duration{font-size:11px}.section-head{flex-wrap:wrap}.section-head h2{font-size:16px}.quote-eyebrow{margin-bottom:16px}.scene-card{min-height:240px}.main{padding-top:24px}}
@media(max-width:360px){.task{padding:18px 14px}.task-icon{width:34px;height:34px}.task-title-row{gap:4px 6px}}

/* Home opens directly on the plan, with no separate brand / slogan header. */
.main-home>.topbar{display:none}
.main-home .dashboard{margin-top:24px}
@media(max-width:760px){.main-home{padding-top:20px}.main-home .hero{padding:20px}.main-home .hero h1{font-size:24px;margin-top:12px}.main-home .hero p{margin:12px 0 16px}.main-home .hero-summary{margin-top:18px;padding-top:16px}}

/* Memory choices are peers, with a small signal instead of four loud fills. */
.rating-caption{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted);margin:24px 0 12px}
.rating-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.rating-grid button{display:flex;align-items:center;justify-content:center;gap:12px;min-height:82px;min-width:0;text-align:left;padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:12px;color:var(--ink)}
.rating-grid button:hover{background:var(--soft);border-color:var(--line-strong);filter:none}
.memory-glyph{display:inline-flex;align-items:flex-end;justify-content:center;gap:3px;padding:11px 9px;width:38px;height:38px;border-radius:8px;background:var(--bg);color:var(--brand);flex-shrink:0}
.level-bar{display:block;width:3px;background:currentColor;border-radius:2px;opacity:.18}
.level-bar.on{opacity:1}.bar-1{height:5px}.bar-2{height:8px}.bar-3{height:12px}.bar-4{height:16px}

.rating-copy{min-width:0;display:flex;flex-direction:column;gap:4px}
.rating-title{font-size:14px;line-height:1.5;font-weight:500;white-space:nowrap}
.rating-interval{display:block;font-size:12px;line-height:1.5;font-weight:400;color:var(--muted)}
.save-word-button{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;flex-shrink:0;border-radius:50%;background:var(--subtle);color:var(--muted)}
.save-word-button svg{width:20px;height:20px;fill:none}
.save-word-button.saved{color:var(--brand);background:var(--soft)}
.save-word-button.saved svg{fill:var(--brand);stroke:var(--brand)}
.save-word-button:hover{background:var(--selected);filter:none}
.study-tools{display:flex;align-items:center;gap:16px}.study-wordbook{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;font-size:13px;color:var(--brand)}
.study-wordbook svg{width:19px;height:19px}.main-detail>.topbar{display:none}
.wordbook-entry{display:flex;align-items:center;gap:16px;width:100%;text-align:left;padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--soft);margin:24px 0}
.wordbook-entry-icon{display:grid;place-items:center;width:46px;height:52px;flex-shrink:0;border:1px solid var(--line-strong);border-radius:7px 12px 12px 7px;background:var(--surface);color:var(--brand)}
.wordbook-entry-copy{flex:1;min-width:0}.wordbook-entry-copy strong{display:block;font-size:16px;font-weight:600}.wordbook-entry-copy small{display:block;font-size:12px;line-height:1.7;color:var(--muted);margin-top:4px}
.wordbook-entry>svg{width:18px;height:18px;color:var(--brand)}
.wordbook-summary{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:24px;border:1px solid var(--line);border-radius:16px;background:var(--soft);margin:24px 0}
.wordbook-number{font-size:32px;font-weight:500;line-height:1.3;color:var(--brand);font-variant-numeric:tabular-nums}.wordbook-number span{font-size:14px;font-weight:400;color:var(--muted)}
.wordbook-summary p{font-size:13px;color:var(--muted);margin:10px 0 0}.wordbook-summary>svg{width:32px;height:32px;color:var(--brand)}
.wordbook-review{display:flex;width:100%;margin-bottom:24px}
.wordbook-item{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden}
.wordbook-item .word-item{margin:0;border:0;border-radius:0;box-shadow:none}
.wordbook-example{padding:0 24px 16px;border-top:1px solid var(--line);font-size:14px}
.wordbook-example summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;cursor:pointer;color:var(--brand);list-style:none}
.wordbook-example summary svg{width:17px;height:17px}.wordbook-example[open] summary svg{transform:rotate(90deg)}
.wordbook-example .collocation{font-size:19px;line-height:1.6;margin:12px 0}.wordbook-example .example{font-size:16px;line-height:1.8;margin:12px 0}.wordbook-example .translation{color:var(--muted);line-height:1.8}
.wordbook-example>.text-button{margin-right:24px}
@media(max-width:760px){.rating-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.rating-grid button{justify-content:flex-start;min-height:68px;padding:12px;gap:10px}.rating-caption{margin-top:24px}.wordbook-entry{padding:18px;gap:12px}.study-tools{gap:12px}.study-wordbook{font-size:12px}.flashcard{min-height:310px}.wordbook-summary{padding:22px}.wordbook-example{padding-left:22px;padding-right:22px}}
@media(max-width:360px){.rating-grid button{gap:8px;padding:10px}.memory-glyph{width:34px;height:36px;padding-left:7px;padding-right:7px}.rating-title{font-size:13px}.study-tools{gap:8px}}

@media(min-width:761px) and (max-width:1100px){.rating-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rating-grid button{justify-content:flex-start}}
.course-entry{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;gap:16px;padding:16px 20px;margin:16px 0 0;border:1px solid var(--line,#E0E7E1);border-radius:16px;background:#fff;min-height:64px}.course-entry strong,.course-entry small{display:block}.course-entry small{color:var(--muted);margin-top:4px}.course-summary,.course-check,.course-unit{padding:24px;border:1px solid #E0E7E1;border-radius:16px;background:#fff}.course-summary{background:#EDF4ED;margin:24px 0}.course-summary h2,.course-unit h3,.course-check h3{margin:0 0 10px}.course-summary p,.course-check p,.course-unit p{color:var(--muted);line-height:1.6}.checkpoint-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.course-row-top{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:12px;color:var(--muted);margin-bottom:16px}.course-list{display:grid;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}.course-unit.current{border-color:#1B5E4B}.course-scene{width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border:0;border-bottom:1px solid #EDF1EB;text-align:left;min-height:72px;background:transparent}.course-scene strong,.course-scene small{display:block}.course-scene strong{font-weight:600;line-height:1.5}.course-scene small{margin-top:4px;color:var(--muted);line-height:1.5}.course-scene svg{width:20px;flex-shrink:0}@media(max-width:760px){.checkpoint-grid,.course-list{grid-template-columns:1fr}}

/* Focused practice: keep all four choices close to the word, above the mobile nav. */
.hero-progress-fill{will-change:auto}
.primary,.secondary,.pronunciation-button,.answer-toggle{font-weight:500}
.task-status{background:transparent}.task-progress .task-status{color:var(--brand)}
.undo-notice{display:flex;align-items:center;justify-content:space-between;gap:16px;background:var(--soft);border:1px solid var(--line);border-radius:10px;padding:8px 16px;margin:16px 0;font-size:14px}
.undo-notice>span{min-width:0;overflow-wrap:anywhere}.undo-notice .text-button{flex-shrink:0;min-width:44px;justify-content:center}
.wordbook-summary,.stat-grid,.daily-stats,.scene-index,.rating-interval{font-variant-numeric:tabular-nums}
button,a{transition-timing-function:cubic-bezier(.22,1,.36,1)}
@media(max-width:760px){
 .main-detail{padding-top:16px}.study-layout>.back{margin-bottom:12px}
 .study-heading{margin-bottom:8px}.study-heading p{font-size:17px}
 .progress-track{margin:12px 0 16px;height:4px}
 .flashcard{padding:20px;min-height:268px}
 .word-main{font-size:38px;margin-top:24px}.word-meaning{font-size:24px;margin-top:24px}
 .pronunciation-button{min-height:48px;font-size:15px;margin-top:16px;padding:12px 16px}
 .rating-caption{margin:20px 0 12px}.rating-grid{gap:8px}.rating-grid button{min-height:64px}
 .memory-glyph{width:32px;height:32px;padding:8px 6px;background:var(--bg)}
 .reveal{margin-top:16px}.main-detail .back{font-size:12px}
 .wordbook-summary{padding:20px}.wordbook-example{padding-left:20px;padding-right:20px}
 .quote-card,.word-item,.dialogue,.exercise{padding:20px}.quote-card{background:var(--soft)}
 .task{padding:16px;gap:12px}.task-icon{width:36px;height:36px;border-radius:10px}
 .task-icon svg{width:18px;height:18px}.task small{margin-top:4px}.task .duration{font-size:12px}
 .hero .primary{min-height:48px}.course-entry{padding:16px;margin-top:16px}
 .brandname{font-weight:600}.section-head{margin-bottom:12px}
}
