:root{--bg:#f7f5f0;--surface:#fff;--surface-2:#efece4;--text:#1d2321;--muted:#5e6763;--line:#dcd7cc;--primary:#1f6f5c;--primary-ink:#fff;--primary-soft:#dcefe8;--accent:#b5651d;--accent-soft:#f8e7d4;--good:#2e7d4f;--good-soft:#e1f2e7;--miss:#9a5b00;--miss-soft:#fdf0d8;--wrong:#a33b3b;--wrong-soft:#f9e3e1;--radius:14px;--shadow:0 1px 2px #0000000f, 0 4px 16px #0000000a;--font:system-ui, -apple-system, "Segoe UI", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;--en:"Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root{--bg:#141816;--surface:#1c211f;--surface-2:#252b28;--text:#e8ece9;--muted:#9aa5a0;--line:#34403b;--primary:#5cc2a3;--primary-ink:#0c1a15;--primary-soft:#1d3a31;--accent:#e7a35d;--accent-soft:#3a2a19;--good:#6fcf97;--good-soft:#1c3326;--miss:#f0b54a;--miss-soft:#3a2f17;--wrong:#f08a8a;--wrong-soft:#3d2222;--shadow:none;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*{box-sizing:border-box}html,body{background:var(--bg);color:var(--text);font-family:var(--font);margin:0}body{-webkit-text-size-adjust:100%;font-size:17px;line-height:1.6}a{color:var(--primary)}h1,h2,h3{margin:0 0 .5em;line-height:1.3}h1{font-size:1.5rem}h2{font-size:1.2rem}h3{font-size:1.05rem}p{margin:0 0 .8em}.app{min-height:100dvh;padding-bottom:calc(72px + env(safe-area-inset-bottom))}.app.focus{padding-bottom:24px}.page{max-width:680px;margin:0 auto;padding:20px 16px}.loading{place-items:center;min-height:60vh;display:grid}.spinner{border:4px solid var(--line);border-top-color:var(--primary);border-radius:50%;width:36px;height:36px;animation:.9s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.tabs{z-index:10;background:var(--surface);border-top:1px solid var(--line);padding:6px 4px calc(6px + env(safe-area-inset-bottom));justify-content:space-around;display:flex;position:fixed;bottom:0;left:0;right:0}.tabs a{color:var(--muted);border-radius:10px;flex-direction:column;flex:1;align-items:center;gap:2px;padding:4px 0;font-size:.75rem;text-decoration:none;display:flex}.tabs a.active{color:var(--primary);font-weight:600}.tabs svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:24px;height:24px}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:14px;padding:18px}.card.soft{background:var(--surface-2);box-shadow:none}.muted{color:var(--muted)}.small{font-size:.88rem}.row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.row.end{justify-content:flex-end}.row.between{justify-content:space-between}.stack>*+*{margin-top:10px}.grid2{grid-template-columns:1fr 1fr;gap:10px;display:grid}.notice{background:var(--accent-soft);border-radius:12px;padding:12px 14px}button,.btn{font:inherit;cursor:pointer;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:12px;justify-content:center;align-items:center;gap:8px;min-height:46px;padding:10px 16px;text-decoration:none;transition:transform 60ms,background .15s;display:inline-flex}button:active,.btn:active{transform:scale(.98)}button:disabled{opacity:.45;cursor:default}button.primary,.btn.primary{background:var(--primary);color:var(--primary-ink);border-color:var(--primary);font-weight:600}button.big,.btn.big{width:100%;min-height:56px;font-size:1.08rem}button.ghost{background:0 0}button.chip{border-radius:999px;min-height:38px;padding:6px 12px;font-size:.92rem}button.chip.on{background:var(--primary-soft);border-color:var(--primary);color:var(--text)}button.rec{background:var(--wrong-soft);border-color:var(--wrong)}button.rec.live{background:var(--wrong);color:#fff;animation:1.2s infinite pulse}@keyframes pulse{50%{opacity:.75}}:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.grades{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.grades button{flex-direction:column;gap:0;min-height:60px}.grades button small{color:var(--muted);font-size:.75rem;font-weight:400}.grades .again{border-color:var(--miss)}.grades .good{border-color:var(--good);background:var(--good-soft)}input[type=text],textarea{font:inherit;font-family:var(--en);border:1.5px solid var(--line);background:var(--surface);width:100%;color:var(--text);border-radius:12px;padding:12px 14px;font-size:1.1rem}input[type=text]:focus,textarea:focus{border-color:var(--primary);outline:none}.en{font-family:var(--en);letter-spacing:.005em;font-size:1.22rem;line-height:1.7}.en.big{font-size:1.4rem}.zh{color:var(--muted)}.speaker{color:var(--muted);letter-spacing:.02em;font-size:.82rem;font-weight:600}.mk{border-radius:4px}.mk-link{color:var(--accent);margin:0 -.12em;font-weight:700}.mk-silent{color:var(--muted);opacity:.55;text-decoration:line-through;text-decoration-thickness:1px}.mk-label{font-family:var(--font);color:var(--accent);vertical-align:super;margin-left:1px;font-size:.62em;font-weight:700;line-height:0}.mk-weak{color:var(--muted)}.mk-say{color:var(--accent);background:var(--accent-soft);border-radius:6px;margin-left:3px;padding:0 5px;font-size:.78em;font-weight:600}.mk-arrow{color:var(--accent);margin-left:2px;font-weight:700}.mk-pause{color:var(--accent);margin:0 2px;font-weight:700}.mk-stress{color:var(--text);-webkit-text-decoration:underline 2px var(--accent);text-decoration:underline 2px var(--accent);text-underline-offset:4px}.mk-note{-webkit-text-decoration:underline dotted 2px var(--accent);text-decoration:underline dotted 2px var(--accent);text-underline-offset:4px}.rh-strong{font-weight:700}.rh-weak{opacity:.45;font-size:.9em}.words{font-family:var(--en);font-size:1.2rem;line-height:2}.w{vertical-align:bottom;border-radius:6px;margin:0 2px 4px 0;padding:1px 4px;line-height:1.5;display:inline-block}.w.spelling{background:var(--good-soft)}.w.wrong{background:var(--wrong-soft)}.w.missed{background:var(--miss-soft);border-bottom:2px dashed var(--miss)}.w .typed{color:var(--muted);font-size:.7rem;line-height:1.1;text-decoration:line-through;display:block}.legend{color:var(--muted);flex-wrap:wrap;gap:12px;font-size:.8rem;display:flex}.legend span:before{content:"";vertical-align:-1px;border-radius:3px;width:10px;height:10px;margin-right:4px;display:inline-block}.legend .l-missed:before{background:var(--miss-soft);border:1px dashed var(--miss)}.legend .l-wrong:before{background:var(--wrong-soft)}.legend .l-spelling:before{background:var(--good-soft)}.progressbar{background:var(--surface-2);border-radius:999px;height:6px;overflow:hidden}.progressbar>div{background:var(--primary);height:100%;transition:width .3s}.lesson-head{z-index:5;background:var(--bg);padding:8px 0 12px;position:sticky;top:0}.stat{flex-direction:column;display:flex}.stat b{font-variant-numeric:tabular-nums;font-size:1.6rem;line-height:1.2}.stat span{color:var(--muted);font-size:.82rem}.pill{background:var(--primary-soft);border-radius:999px;padding:2px 10px;font-size:.8rem;display:inline-block}.pill.accent{background:var(--accent-soft)}details summary{cursor:pointer;color:var(--muted)}canvas.pitch{background:var(--surface-2);border-radius:10px;width:100%;height:90px}.sr-only{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}hr{border:0;border-top:1px solid var(--line);margin:16px 0}
