/* Mobile-only presentation. Desktop never imports this stylesheet. */
:root{--bg:#f5f6f2;--surface:#fff;--ink:#1d3530;--muted:#61716b;--brand:#235c50;--soft:#eaf1eb;--line:#dfe6df;--accent:#bf784a;--gutter:20px;--tab:70px;--action:122px;--safe-bottom:env(safe-area-inset-bottom,0px);color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;font-size:16px;-webkit-text-size-adjust:100%;color:var(--ink);background:var(--bg)}
*{box-sizing:border-box}body{margin:0;min-width:280px;background:var(--bg)}[hidden]{display:none!important}button,input,select{font:inherit}button,a,input,label{-webkit-tap-highlight-color:transparent}button{border:1px solid var(--line);background:var(--surface);border-radius:14px;color:var(--ink);min-height:48px;padding:10px 15px;cursor:pointer;touch-action:manipulation}button:disabled{opacity:.42;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #bf784a;outline-offset:3px}button:hover:not(:disabled){filter:brightness(.97)}button:active:not(:disabled){transform:translateY(1px)}a{color:var(--brand);text-decoration:none}h1,h2,h3,p{margin:0}h1{font-size:28px;line-height:1.25;letter-spacing:-.035em}h2{font-size:19px;line-height:1.35}h3{font-size:16px;line-height:1.5}p{line-height:1.65}svg.icon{width:22px;height:22px;stroke:currentColor;stroke-width:1.75;fill:none;stroke-linecap:round;stroke-linejoin:round;flex:none;vertical-align:middle}span[data-icon]{display:inline-flex;align-items:center;justify-content:center;flex:none}.app-shell{max-width:620px;margin:0 auto;min-height:100svh}.app-header{display:flex;justify-content:space-between;align-items:center;padding:calc(16px + env(safe-area-inset-top,0px)) var(--gutter) 14px;gap:16px}.brand{display:flex;gap:10px;align-items:center}.brand-mark{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:14px;background:var(--brand);color:white;font-family:Georgia,serif;font-size:32px;line-height:1;padding-bottom:6px}.brand-mark span{color:#dbb588}.brand-name{font-size:19px;font-weight:720;letter-spacing:-.03em}.brand-sub{font-size:11px;color:var(--muted);letter-spacing:.08em;margin-top:3px}.icon-btn{width:44px;height:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;border-color:transparent;background:transparent;padding:8px;flex:none;position:relative}.status-dot{position:absolute;width:7px;height:7px;right:8px;top:8px;background:#b8c5be;border:2px solid var(--bg);border-radius:50%}.has-course .status-dot{background:var(--brand)}#mainContent{padding:0 var(--gutter) calc(var(--tab) + var(--safe-bottom) + 22px)}body[data-tab=learn].has-course #mainContent{padding-bottom:calc(var(--tab) + var(--action) + var(--safe-bottom) + 24px)}.screen{animation:appear .16s ease-out}.eyebrow{text-transform:none;font-size:12px;line-height:1.6;letter-spacing:.065em;color:var(--muted);font-weight:550}.small{font-size:13px;color:var(--muted);line-height:1.65}.subtle{font-size:15px;color:var(--muted);margin-top:10px}.course-crumb{display:flex;justify-content:space-between;align-items:center;width:100%;background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;min-height:52px;padding:9px 0;font-size:13px}.course-crumb>span{display:flex;gap:8px;align-items:center}.course-crumb>span:last-child{color:var(--muted)}.course-crumb .icon{width:15px;height:15px}.crumb-dot{color:#b4c0b8;margin:0 4px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0 18px}.section-heading h1{font-size:25px;margin-top:5px;letter-spacing:-.025em}.mode-tabs{display:flex;gap:6px;margin-bottom:14px;overflow-x:auto;scrollbar-width:none}.mode-tabs:empty{display:none}.mode-tabs button{min-height:44px;border:0;padding:8px 15px;background:transparent;color:var(--muted);font-size:14px;border-radius:12px;white-space:nowrap}.mode-tabs button[aria-selected=true]{background:var(--soft);color:var(--brand);font-weight:700}.focus-card{background:var(--surface);border:1px solid var(--line);border-radius:24px;box-shadow:0 6px 22px #183b2704;padding:14px 20px 10px;min-height:248px;display:flex;flex-direction:column;justify-content:space-between}.focus-top{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.focus-top>span{letter-spacing:.12em}.focus-top .icon-btn[aria-pressed=true]{color:var(--accent)}.focus-top .icon-btn[aria-pressed=true] svg{fill:#e6caaa66}.focus-text{font-size:36px;line-height:1.32;letter-spacing:-.03em;font-weight:620;text-align:center;margin:18px 0 4px;overflow-wrap:anywhere}.focus-text.phoneme{font-family:"Arial","Helvetica Neue",sans-serif;font-size:62px;letter-spacing:.015em;font-weight:500}.focus-text.sentence,.focus-text.phrase{font-size:30px;text-align:left;margin:18px 0 8px}.focus-text button{font:inherit;letter-spacing:inherit;min-height:44px;padding:0 1px;border:0;border-radius:8px;background:transparent}.focus-text button.word-token{border-bottom:2px solid #e1e7e0;padding:1px 3px;margin:1px 0;min-width:28px}.focus-text button.word-token.is-word-selected{background:var(--soft);border-bottom-color:var(--brand);color:var(--brand)}.focus-hint{font-size:13px;color:var(--muted);text-align:center;margin:8px 0 16px}.sentence-words:empty{display:none}.sentence-words{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.sentence-words button{font-size:17px;min-height:44px;padding:6px 10px}.focus-meta{display:flex;justify-content:space-between;align-items:center;gap:5px;border-top:1px solid #edf0ea;margin-top:14px;padding:7px 0 0;flex-wrap:wrap}.quiet-btn{border:0;background:transparent;color:var(--muted);font-size:11px;min-height:44px;display:flex;align-items:center;gap:5px;padding:6px 0;border-radius:8px}.quiet-btn .icon{width:14px;height:14px}.candidate-dot{height:5px;width:5px;border-radius:50%;background:var(--accent)}.stepper{display:flex;align-items:center;justify-content:space-between;gap:4px;margin:12px 0 10px}.stepper button{border:0;background:transparent;display:flex;align-items:center;gap:8px;padding:8px 0;font-size:13px;min-height:44px}.stepper .icon{width:17px;height:17px}.stepper>span{font-size:11px;color:var(--muted);text-align:center}.reference-row{display:grid;grid-template-columns:1fr 94px;gap:10px}.reference-tile{display:flex;align-items:center;gap:10px;text-align:left;border-radius:18px;padding:14px 12px}.reference-tile>span:nth-child(2){flex:1}.reference-tile strong{display:block;font-size:14px;font-weight:630}.reference-tile small{display:block;font-size:10px;color:var(--muted);margin-top:5px;line-height:1.5}.reference-tile .tile-icon{width:34px;height:38px;border-radius:9px;background:var(--soft);color:var(--brand)}.reference-tile>span:last-child .icon{width:15px;height:15px}.block-tile{border-radius:18px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;font-size:12px;background:#eef1ea}.block-tile .icon{height:20px;width:20px}.history-link{display:flex;align-items:center;gap:8px;background:transparent;border:0;width:100%;font-size:12px;color:var(--muted);padding:14px 0;margin:2px 0}.history-link>span:nth-child(2){flex:1;text-align:left}.history-link .icon{width:16px;height:16px}.practice-actions{position:fixed;z-index:20;left:50%;transform:translateX(-50%);bottom:calc(var(--tab) + var(--safe-bottom));width:min(100%,620px);background:linear-gradient(0deg,var(--bg) 92%,#f5f6f2dd);padding:12px var(--gutter) 12px;border-top:1px solid var(--line)}.compact-status{font-size:11px;color:var(--muted);margin-bottom:10px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.5;min-height:17px}.primary-actions{display:grid;grid-template-columns:1fr 1.3fr 58px;gap:9px}.primary-actions button{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 10px;min-height:55px;font-size:14px;font-weight:650;border-radius:17px}.primary{background:var(--brand);color:#fff;border-color:var(--brand);font-weight:650}.primary .icon{stroke-width:1.6}.primary-actions .compare-btn{display:flex;flex-direction:column;gap:3px;font-size:10px;padding:7px 4px;background:transparent;border-color:transparent}.primary-actions .compare-btn .icon{width:23px;height:23px}.wide{width:100%;display:flex;align-items:center;justify-content:center;gap:10px}.recording-indicator{display:flex;align-items:center;justify-content:center;gap:3px;margin-top:8px;color:var(--brand)}.recording-indicator>span{height:10px;width:3px;background:var(--brand);border-radius:3px;animation:wave .6s ease-in-out infinite alternate}.recording-indicator>span:nth-child(2n){height:17px;animation-delay:.2s}.recording-indicator strong{font-size:11px;font-weight:500;margin-left:7px}.recording .record-btn{background:#8e3d37;border-color:#8e3d37}.tab-bar{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;z-index:21;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,620px);height:calc(var(--tab) + var(--safe-bottom));padding:8px 8px calc(8px + var(--safe-bottom));background:#fff;border-top:1px solid var(--line)}.tab-bar button{border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:10px;border-radius:14px;color:#839087;min-height:48px;padding:6px 8px}.tab-bar .icon{width:23px;height:23px}.tab-bar .is-active{color:var(--brand);font-weight:650}.tab-bar .is-active>span[data-icon]{background:var(--soft);padding:3px 15px;margin-top:-3px;border-radius:14px}.page-heading{margin:16px 0 26px}.page-heading h1{font-size:30px;margin-top:8px}.week-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.week-grid button{display:flex;flex-direction:column;gap:6px;align-items:flex-start;min-height:76px;text-align:left;padding:12px 14px;border-radius:17px}.week-grid .week-num{font-size:23px;line-height:1;font-weight:600;letter-spacing:-.035em}.week-grid .week-label{font-size:10px;color:var(--muted)}.week-grid button[aria-selected=true]{background:var(--brand);border-color:var(--brand);color:white}.week-grid button[aria-selected=true] .week-label{color:#d6e8df}.week-grid .not-imported{border-style:dashed;background:transparent;color:#99a69d}.part-tabs{display:flex;gap:6px;margin:24px 0 16px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}.part-tabs button{font-size:13px;min-height:44px;white-space:nowrap;background:transparent;border-color:transparent;padding:8px 14px}.part-tabs button[aria-selected=true]{background:white;border-color:var(--line);font-weight:650}.lesson-list{display:flex;flex-direction:column;gap:10px}.lesson-item{display:flex;align-items:center;gap:13px;width:100%;padding:17px 14px;background:white;border:1px solid var(--line);border-radius:19px;text-align:left;min-height:84px}.lesson-letter{width:38px;height:44px;display:grid;place-items:center;background:var(--soft);border-radius:12px;flex:none;font-size:17px;color:var(--brand);font-weight:650}.lesson-item.is-current{border-color:#9dbdaf;background:#fafffa}.lesson-item.is-current .lesson-letter{background:var(--brand);color:white}.lesson-body{flex:1;min-width:0}.lesson-body strong{font-size:15px;font-weight:600;line-height:1.5;display:block}.lesson-body small{font-size:11px;color:var(--muted);display:block;margin-top:5px;line-height:1.55}.lesson-item .icon{width:18px;height:18px;color:var(--muted)}.quiet-wide{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;font-size:14px;border:0;background:transparent;min-height:52px;color:var(--muted);padding:12px 0;margin:12px 0}.quiet-wide .icon{width:19px;height:19px}.review-summary{display:flex;gap:12px;background:var(--soft);padding:17px;border-radius:18px;margin-bottom:22px;font-size:14px;color:var(--brand)}.settings-card{background:white;border:1px solid var(--line);border-radius:22px;padding:19px;margin-bottom:15px}.setting-title{display:flex;align-items:center;gap:9px;margin-bottom:13px}.setting-title>h2{flex:1;font-size:17px}.setting-title .icon{width:19px;height:19px;color:var(--brand)}.badge{padding:5px 8px;font-size:10px;border-radius:20px;background:var(--soft);color:var(--brand);white-space:nowrap}.setup-actions{display:flex;flex-wrap:wrap;gap:8px;margin:13px 0}.setup-actions>button,.setup-actions>.file-button{flex:1 1 auto;font-size:14px}.file-button{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:14px;min-height:48px;padding:11px 14px;cursor:pointer;overflow:hidden;background:var(--soft);font-size:14px}.file-button.primary{background:var(--brand);color:#fff}.file-button input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.file-button:focus-within{outline:3px solid var(--accent);outline-offset:2px}.file-button:has(input:disabled){opacity:.4}.file-button input[type=file]:disabled{cursor:default}.settings-card #setupStatus{font-size:13px;color:var(--muted);margin-bottom:12px}.settings-card .small{font-size:12px}.setting-switch{display:flex;align-items:center;justify-content:space-between;padding:18px 0;border-bottom:1px solid var(--line);font-size:15px}.setting-switch input{width:25px;height:25px;accent-color:var(--brand)}details{border-top:1px solid var(--line);padding-top:12px;margin-top:15px}summary{font-size:13px;cursor:pointer;padding:10px 0;min-height:44px;color:var(--muted)}details p{font-size:13px;margin:10px 0;color:var(--muted)}.welcome{padding:26px 14px 30px}.welcome-symbol{width:74px;height:74px;border-radius:26px;background:var(--soft);color:var(--brand);margin:8px 0 28px}.welcome-symbol .icon{width:38px;height:38px}.welcome h1{font-size:46px;margin:14px 0 20px;line-height:1.18}.welcome p:not(.eyebrow):not(.small){color:var(--muted);font-size:16px;line-height:1.9}.welcome .primary{margin-top:32px;min-height:56px}.welcome .small{text-align:center;margin-top:15px}.empty-state{border:1px dashed var(--line);border-radius:20px;padding:28px 20px;color:var(--muted);font-size:15px;line-height:1.8;text-align:center}.bottom-sheet{margin:auto auto 0;width:min(100%,620px);max-width:620px;max-height:calc(94dvh - env(safe-area-inset-top,0px));height:auto;overflow:hidden;border:0;border-radius:26px 26px 0 0;background:var(--bg);color:var(--ink);padding:0;box-shadow:0 -12px 70px #102b2520}.bottom-sheet::backdrop{background:#132b2866}.bottom-sheet[open]{display:flex;flex-direction:column}.sheet-handle{width:32px;height:4px;min-height:4px;border-radius:5px;background:#c6cec7;margin:10px auto 2px}.sheet-header{display:flex;align-items:center;justify-content:space-between;padding:5px 14px 6px 22px;flex:none}.sheet-header h2{font-size:18px}.sheet-body{overflow:auto;overscroll-behavior:contain;padding:12px 20px calc(24px + var(--safe-bottom));min-height:0}.toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0 14px}.toolbar button{font-size:12px;min-height:44px;padding:8px 10px}.toolbar>div{display:flex;gap:5px;flex-wrap:wrap}.page-tools{justify-content:flex-start}.page-scroll{width:100%;overflow-x:auto;overscroll-behavior:contain;border-radius:14px;background:white;border:1px solid var(--line)}.word-page{position:relative;max-width:none;min-width:100%;margin:0}.word-page img{width:100%;height:auto;display:block}.word-page .section-hit{position:absolute;border:1px solid #73a28d;background:#edf7f006;padding:0;min-height:0;border-radius:0;z-index:1}.section-hit>span{position:absolute;left:0;top:0;font-size:10px;color:white;background:var(--brand);padding:3px 6px;border-radius:0 0 5px 0;white-space:nowrap}.word-page button{touch-action:manipulation;min-height:0}.word-page .unit-hit{min-width:0}.cards .word-row{border:1px solid var(--line);padding:13px;border-radius:17px;margin:11px 0;background:white}.row-title{font-size:11px;color:var(--muted);margin-bottom:8px}.word-list,.chip-list{display:flex;flex-wrap:wrap;gap:7px}.word-chip{font-size:17px;min-height:48px;border-radius:12px;text-align:left}.word-chip.unit-selected{background:var(--brand);color:white}.word-chip.unit-pending{border-style:dashed;color:#8c7565}.searchbox{display:flex;align-items:center;gap:8px;padding:10px 12px;background:white;border:1px solid var(--line);border-radius:14px}.searchbox input{font-size:16px;background:none;min-width:0;width:100%;border:0;padding:3px;outline:none}.take{border-top:1px solid var(--line);margin-top:13px;padding:14px 0}.take>strong{font-size:18px}.take>.small{display:block;margin-top:4px}.take .setup-actions button{min-height:44px;font-size:12px}#unitTrainer .toolbar h2{font-size:16px}#unitTrainer>p.small{font-size:12px;margin:10px 0}#targetText{font-size:26px}#recordLevel{width:100%;height:6px;accent-color:var(--brand)}#trainerStatus{font-size:13px;margin:12px 0;color:var(--muted)}.error{color:#9b4235!important;background:#fbf0eb;padding:9px;border-radius:10px}#unitStatus{font-size:14px;margin:12px 0;line-height:1.65}#chosen{font-size:22px;font-weight:600}.audio-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:16px 0}.audio-row>input{flex:1;min-width:90px;accent-color:var(--brand)}.audio-row>span{font-size:12px}.audio-row>button{min-height:44px;font-size:12px}.toast{position:fixed;z-index:200;left:50%;bottom:calc(var(--tab) + var(--safe-bottom) + 15px);transform:translateX(-50%);max-width:calc(100% - 32px);width:max-content;background:var(--ink);color:white;font-size:13px;padding:12px 17px;border-radius:14px;box-shadow:0 4px 20px #15272222}.large-text{font-size:18px}.large-text .focus-text{font-size:42px}.large-text .focus-text.sentence,.large-text .focus-text.phrase{font-size:35px}.large-text .focus-text.phoneme{font-size:70px}.large-text .lesson-body strong{font-size:18px}.large-text .small,.large-text .subtle,.large-text .focus-hint{font-size:16px}.large-text .primary-actions button{font-size:16px}.large-text .quiet-btn{font-size:13px}.large-text .reference-tile small{font-size:13px}.large-text .lesson-body small{font-size:14px}.large-text .brand-sub{font-size:13px}.large-text .compact-status{font-size:13px}body.locked .tab-bar button:disabled{opacity:.32}body.modal-open{overflow:hidden}#mobileDraft{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}#mobileDraft button{font-size:12px;min-height:44px;padding:5px 9px}#practiceActions #compactStatus.error{white-space:normal;-webkit-line-clamp:3}.record-btn .icon{width:20px;height:20px}@media(min-width:700px){body{background:#e9eee7}.app-shell{background:var(--bg);box-shadow:0 0 0 1px #dce4db;min-height:100svh}.app-header{padding-top:22px}.focus-card{min-height:270px}.focus-text.phrase,.focus-text.sentence{font-size:36px}}@media(max-width:359px){:root{--gutter:15px}.brand-name{font-size:17px}.focus-card{padding:10px 15px 8px}.focus-text.sentence,.focus-text.phrase{font-size:26px}.focus-meta{gap:2px}.quiet-btn{font-size:10px}.section-heading h1{font-size:22px}.reference-row{grid-template-columns:1fr 80px}.reference-tile small{font-size:9px}.primary-actions{gap:6px;grid-template-columns:1fr 1.25fr 44px}.primary-actions button{font-size:12px;padding:10px 6px}.primary-actions .compare-btn{font-size:10px}.week-grid{gap:6px}.week-grid button{padding:12px 10px}}@media(max-height:680px){.app-header{padding-top:calc(10px + env(safe-area-inset-top,0px));padding-bottom:9px}.section-heading{margin:7px 0 12px}.mode-tabs{margin-bottom:9px}.focus-card{min-height:212px}.focus-text{margin:8px 0 2px}.focus-hint{margin:6px 0 8px}.stepper{margin:8px 0}.brand-sub{display:none}.history-link{margin:0}.course-crumb{min-height:44px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important;transition:none!important}}@keyframes appear{from{opacity:.4;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}@keyframes wave{to{height:5px;opacity:.6}}
