:root{color-scheme:light;--bg:#f9f9ff;--surface:#fff;--soft:#f0f0fb;--text:#3d4251;--muted:#6a6f80;--secondary:#5f6474;--border:#e9e9f3;--green:#6258e8;--green-dark:#5043d0;--green-light:#ededff;--accent:#6258e8;--coral:#b06b50;--shadow:0 16px 30px #42368a19,0 3px 6px #37326606}[data-theme=dark]{color-scheme:dark;--bg:#202127;--surface:#2b2c35;--soft:#353642;--text:#e5e6ef;--muted:#a6a8b9;--secondary:#babdcc;--border:#3b3d49;--green:#aaa1ff;--green-dark:#bfb8ff;--green-light:#38344f;--accent:#aaa1ff;--coral:#dda087;--shadow:0 16px 30px #00000020}*{box-sizing:border-box;letter-spacing:0}html{min-width:320px;background:var(--bg)}body{margin:0;font:14px/1.5 -apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;color:var(--text);-webkit-font-smoothing:antialiased}button,input,textarea{font:inherit}button{color:inherit;cursor:pointer;border:0;background:none;-webkit-tap-highlight-color:transparent}button:disabled{cursor:default}button,input,textarea{outline-offset:4px}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--green)}button{transition:color .15s,background .15s,box-shadow .15s}button svg{flex-shrink:0}h1,h2,h3,p{margin:0}button,h1,h2,h3,p{overflow-wrap:anywhere}::selection{background:#d6d0ff;color:#3e347c}.app-shell{min-height:100svh;display:flex;flex-direction:column}.repository-footer{display:flex;justify-content:center;flex-shrink:0;margin-top:auto;padding:12px 24px max(16px,env(safe-area-inset-bottom))}.repository-link{position:relative;display:inline-grid;place-items:center;width:44px;height:44px;border-radius:6px;color:var(--muted);text-decoration:none;-webkit-tap-highlight-color:transparent}.repository-link:focus-visible,.repository-link:hover{color:var(--text)}.repository-link:focus-visible{outline:2px solid var(--green);outline-offset:2px}.repository-mark{width:20px;height:20px;background:currentColor;-webkit-mask:url(/images/github-mark.svg) center/contain no-repeat;mask:url(/images/github-mark.svg) center/contain no-repeat}.repository-link .repository-tooltip{position:absolute;bottom:calc(100% + 4px);left:50%;transform:translateX(-50%)}.header{min-height:124px;justify-content:space-between;gap:28px;padding:28px 42px}.brand,.header{display:flex;align-items:center}.brand{gap:10px;padding:0;flex-shrink:0}.brand-keycap{width:66px;height:66px;object-fit:contain}.brand-name{font-size:31px;line-height:1.2;font-weight:700;color:var(--green);white-space:nowrap}.top-toolbar{display:flex;align-items:center;justify-content:center;gap:8px;min-height:64px;padding:12px 17px;border-radius:8px;background:var(--surface);box-shadow:var(--shadow)}.collection-select{display:flex;align-items:center;gap:6px;font-size:14px;white-space:nowrap;padding:6px 3px}.collection-select svg{color:var(--muted)}.collection-select:hover{color:var(--green)}.session-progress{display:flex;align-items:center;gap:2px;font-size:12px;white-space:nowrap}.session-progress strong{font-weight:500}.session-progress .icon-button{width:20px}.session-progress>span{margin:0 3px}.tool-divider{width:1px;height:20px;background:var(--border);margin:0 2px}.icon-button,.main-nav button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:30px;height:32px;border-radius:4px;color:var(--green);padding:0}.icon-button:hover:not(:disabled),.main-nav button:hover{background:var(--green-light)}.icon-button:disabled{opacity:.3}.speech-button[aria-pressed=true]{background:var(--green-light);color:var(--green-dark)}.main-nav{display:flex;gap:5px}.main-nav button.active{color:var(--green-dark)}.toolbar-start{display:flex;justify-content:center;align-items:center;gap:5px;min-width:76px;height:38px;padding:0 12px;background:var(--green);color:#fff;border-radius:6px;box-shadow:0 5px 9px #6258e833;margin-left:4px;white-space:nowrap;font-size:14px}.toolbar-start:hover:not(:disabled){background:var(--green-dark)}.toolbar-start:disabled{opacity:.5}[data-theme=dark] .toolbar-start{color:#252133}.practice-view{flex:1 1;display:flex;flex-direction:column;padding:0 32px}.practice-stage{position:relative;flex:1 1;display:flex;align-items:center;justify-content:center;min-height:448px;padding:22px 0 30px}.exercise-area{display:flex;flex-direction:column;width:min(900px,100%);margin:0 auto}.mode-row{order:1;margin-bottom:12px}.exercise-toolbar,.mode-row{display:flex;justify-content:center}.exercise-toolbar{order:2;align-items:center;gap:6px;min-height:34px;max-width:100%;margin:0 auto 16px}.action-tooltip-anchor{display:inline-flex;flex-shrink:0}.exercise-toolbar .action-icon-button{width:34px;height:34px;padding:0;color:var(--muted)}.action-icon-button:disabled{pointer-events:none}.exercise-toolbar .action-icon-button:hover:not(:disabled),.exercise-toolbar .action-icon-button[aria-pressed=true]{color:var(--green);background:var(--green-light)}.action-tooltip{position:fixed;z-index:150;width:max-content;max-width:min(220px,calc(100vw - 16px));padding:7px 10px;border:1px solid var(--border);border-radius:5px;background:var(--surface);color:var(--text);box-shadow:0 5px 16px #27223e14;font-size:12px;line-height:1.5;overflow-wrap:anywhere;pointer-events:none}.segmented{gap:24px}.segmented,.segmented button{display:flex;align-items:center}.segmented button{gap:7px;height:33px;padding:0 2px;color:var(--muted);font-size:13px;border-bottom:2px solid transparent}.segmented button svg{width:16px}.segmented button.selected{color:var(--green);border-bottom-color:var(--green)}.answer-workspace{order:3;position:relative}.answer-workspace,.sentence-input{background:transparent;border:0;min-height:78px}.sentence-input{display:block;width:100%;max-height:240px;resize:none;text-align:center;padding:10px 0;color:var(--text);caret-color:var(--green);font:600 34px/1.6 SFMono-Regular,Consolas,Liberation Mono,monospace;overflow-y:auto}.sentence-input:focus{outline:none}.sentence-input::placeholder{color:#858899}.sentence-input:placeholder-shown{width:min(100%,calc(13ch + 4px));margin-inline:auto;padding-inline:2px;text-align:left}.question-block{order:4;display:flex;align-items:center;justify-content:center;gap:10px;margin:9px 0 25px;min-height:35px}.question-meta{display:none}.question-block h1{font-size:21px;line-height:1.65;font-weight:450;text-align:center;min-width:0;max-width:100%;overflow-wrap:anywhere}.question-actions{display:flex;align-items:center;flex-shrink:0;gap:3px}.question-actions .icon-button{color:#9397a6;width:25px}.bookmarked,.question-actions .bookmarked{color:var(--coral)}.question-actions .word-assist-button{color:var(--green)}.word-section{order:5;width:min(800px,100%);margin:0 auto;padding:0 0 8px}.word-section:empty{display:none}.word-bank-heading{display:flex;align-items:center;justify-content:center;gap:24px;color:var(--muted);font-size:11px;margin-bottom:14px}.word-count{margin-left:8px;font-size:10px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.switch-label{display:flex;gap:8px;align-items:center;cursor:pointer;position:relative}.switch-label input{position:absolute;width:27px;height:15px;opacity:0;margin:0}.switch-track{width:27px;height:15px;border-radius:20px;background:#d0d1e0;padding:2px;transition:background .15s}.switch-track:after{content:"";display:block;width:11px;height:11px;background:#fff;border-radius:50%;transition:transform .15s}.switch-label input:checked+.switch-track{background:var(--green)}.switch-label input:checked+.switch-track:after{transform:translateX(12px)}.switch-label input:focus-visible+.switch-track{outline:2px solid var(--green);outline-offset:3px}.word-bank{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;min-height:39px;gap:9px}.bank-word{height:38px;padding:0 15px;border-radius:5px;border:1px solid #e4e3f0;box-shadow:0 3px 0 #dfdeec;background:var(--surface);font:14px SFMono-Regular,Consolas,monospace;color:var(--secondary)}.bank-word:hover:not(:disabled){background:var(--green-light);color:var(--green);border-color:#c7c1fa}.bank-word:active:not(:disabled){box-shadow:0 1px 0 #dfdeec}.bank-word:disabled{background:transparent;color:#babac9;border-color:#eeeef6;box-shadow:none}[data-theme=dark] .bank-word{border-color:var(--border);box-shadow:0 3px 0 #15151e}[data-theme=dark] .bank-word:disabled{color:#6a6b7a;box-shadow:none}.reveal-button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:38px;border:1px dashed #b2aae9;border-radius:5px;color:var(--green);font-size:12px;padding:0 13px}.reveal-button:hover:not(:disabled){background:var(--green-light)}.reveal-button:disabled{opacity:.4}.reveal-button small{margin-left:4px;color:var(--muted);font-size:10px}.all-revealed{display:flex;font-size:11px}.all-revealed,.quiet-button{align-items:center;gap:6px;color:var(--muted)}.quiet-button{display:inline-flex;justify-content:center;min-height:31px;font-size:12px;padding:3px 0}.quiet-button.is-active,.quiet-button:hover:not(:disabled){color:var(--green)}.quiet-button:disabled{opacity:.35}.primary-button,.secondary-button{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:37px;padding:0 17px;border-radius:5px;font-size:12px;white-space:nowrap;background:var(--green);color:#fff;border:1px solid transparent}.primary-button:hover:not(:disabled){background:var(--green-dark)}.primary-button:disabled{background:#e8e6f5;color:#9e99b4}.secondary-button{color:var(--secondary);background:var(--surface);border-color:var(--border)}.secondary-button:hover{background:var(--soft)}[data-theme=dark] .primary-button{color:#24212f}[data-theme=dark] .primary-button:disabled{background:var(--soft);color:var(--muted)}.feedback-slot{order:6;min-height:52px;padding-top:19px;max-width:690px;width:100%;margin:0 auto}.focus-note{display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:11px;gap:9px}.focus-dot{width:4px;height:4px;border-radius:50%;background:#b7a474}.focus-note>span:last-child{color:var(--muted);font-size:10px}.feedback{display:flex;gap:12px;border-left:2px solid;padding:3px 0 3px 13px}.feedback strong{font-size:13px;line-height:1.6;font-weight:500}.feedback p{font-size:12px;line-height:1.7;margin-top:5px;color:var(--secondary)}.feedback .reference-answer{font-family:SFMono-Regular,Consolas,monospace;color:var(--text);font-size:15px}.sentence-playback{padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left}.sentence-playback:hover{color:var(--green)}.sentence-input[readonly]{cursor:pointer}.feedback-icon{padding-top:2px}.feedback.success{color:#398065}[data-theme=dark] .feedback.success{color:#9cceb7}.feedback.warning{color:var(--coral)}.feedback.neutral{color:var(--secondary)}.is-correct .sentence-input{color:#398065}.is-incorrect .sentence-input{color:var(--coral)}.retry-answer{color:var(--green);margin-top:6px}.is-paused .exercise-area{filter:blur(6px);opacity:.55;-webkit-user-select:none;user-select:none}.pause-overlay{position:absolute;inset:0;display:grid;place-items:center}.resume-button{display:flex;align-items:center;gap:9px;font-size:18px;padding:12px 18px;color:var(--text);background:var(--bg);border-radius:6px}.resume-button:hover{color:var(--green)}.session-stats{width:min(900px,100%);margin:6px auto 35px;padding:28px 26px 25px;min-height:128px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:20px;border-radius:8px;background:var(--surface);box-shadow:var(--shadow)}.session-stats>div{display:flex;flex-direction:column;align-items:center;gap:11px}.session-stats strong{font:600 22px/1.35 -apple-system,BlinkMacSystemFont,sans-serif;color:var(--muted);width:100%;padding:5px 0 13px;border-bottom:1px solid var(--border);text-align:center;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.session-stats strong small{font-size:13px;font-weight:400}.session-stats>div>span{color:var(--muted);font-size:12px}.loading-view{flex:1 1;min-height:430px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;color:var(--muted)}.loading-view h2{font-size:20px;font-weight:500}.history-view{width:min(1060px,calc(100% - 80px));flex:1 1;margin:38px auto 60px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:25px}.eyebrow{color:var(--green);font-size:10px;margin-bottom:11px}.page-heading h1{font-size:25px;font-weight:500}.history-heading{display:flex;align-items:center;gap:16px;min-width:0}.history-back{width:40px;height:40px;flex-shrink:0}.small-count{color:var(--muted);font-size:11px}.history-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:25px;border-bottom:1px solid var(--border);margin:35px 0 30px;padding:25px 0}.history-stats>div{display:flex;flex-direction:column;gap:14px}.history-stats>div>span{font-size:12px;color:var(--muted)}.history-stats strong{font-size:27px;font-weight:500}.history-stats small{font-size:11px;color:var(--muted);margin-left:9px}.history-view .library-toolbar{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border);margin-bottom:10px}.underline-tabs{display:flex;gap:25px}.underline-tabs button{color:var(--muted);font-size:12px;padding:10px 0;border-bottom:2px solid transparent}.underline-tabs button.active{color:var(--green);border-color:var(--green)}.underline-tabs button span{margin-left:7px}.history-row{display:flex;align-items:center;gap:16px;padding:20px 0;border-bottom:1px solid var(--border)}.history-status{width:28px;height:28px;display:grid;place-items:center;flex-shrink:0}.history-status.correct{color:#398065}.history-status.incorrect{color:var(--coral)}.history-sentence{flex:1 1;min-width:0}.history-sentence h3{font-size:13px;font-weight:500}.history-sentence p{font-size:13px;color:var(--secondary);margin-top:7px}.history-assistance{color:var(--muted);font-size:10px}.history-row time{font-size:11px;color:var(--muted);text-align:right;white-space:nowrap}.history-row time span{display:block;font-size:10px;margin-top:6px}.button-count{font-size:11px;opacity:.75}.empty-state{min-height:250px;display:flex;flex-direction:column;gap:18px;align-items:center;justify-content:center;color:var(--muted);text-align:center;padding:30px 0}.empty-state h2{font-size:18px;font-weight:500;color:var(--secondary)}.empty-state p{font-size:12px}.dialog{border:1px solid var(--border);border-radius:8px;width:min(460px,calc(100vw - 32px));max-height:calc(100svh - 48px);background:var(--surface);color:var(--text);padding:0;box-shadow:var(--shadow)}.dialog::backdrop{background:#29243850;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.dialog-content{padding:25px}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.dialog-heading h2{font-size:18px;font-weight:550}.setting-row{justify-content:space-between;gap:20px;padding:21px 0;border-bottom:1px solid var(--border)}.setting-row,.setting-row>span{display:flex;align-items:center}.setting-row>span{gap:13px;font-size:13px;color:var(--secondary)}.setting-row input{width:17px;height:17px;accent-color:var(--green);cursor:pointer}.settings-note{color:var(--muted);font-size:11px;display:flex;align-items:center;gap:8px;margin-top:24px}.local-dot{width:5px;height:5px;border-radius:50%;background:#85a88b}.summary{text-align:center;padding-top:8px}.summary-icon{width:65px;height:65px;border-radius:50%;display:grid;place-items:center;background:var(--green-light);color:var(--green);margin:10px auto 24px}.summary h3{font-size:18px;font-weight:500}.summary-numbers{display:grid;grid-template-columns:1fr 1fr;margin:32px 0}.summary-numbers>div{display:flex;flex-direction:column;gap:10px}.summary-numbers>div+div{border-left:1px solid var(--border)}.summary-numbers strong{font-size:29px;font-weight:500}.summary-numbers small{font-size:13px;color:var(--muted)}.summary-numbers span{font-size:11px;color:var(--muted)}.summary-actions{display:flex;justify-content:center;gap:13px;margin-bottom:8px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:13px;border-radius:6px;background:var(--text);color:var(--surface);padding:12px 15px 12px 20px;max-width:calc(100vw - 32px);width:max-content;box-shadow:var(--shadow);z-index:20;font-size:12px}.toast .icon-button{color:var(--surface);width:23px;height:23px}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(1turn)}}@media (min-width:1700px){.header{padding:35px 62px;min-height:150px}.brand-name{font-size:37px}.brand-keycap{width:80px;height:80px}.top-toolbar{gap:12px;min-height:72px;padding:14px 22px}.collection-select{font-size:16px}.session-progress{font-size:14px}.session-stats{width:min(1080px,100%);min-height:148px;padding:35px;margin-bottom:40px}.session-stats strong{font-size:25px}.exercise-area{width:min(1000px,100%)}}@media (max-width:1190px){.header{padding:25px 28px;gap:18px}.brand-name{font-size:25px}.brand-keycap{width:51px;height:51px}.top-toolbar{gap:4px;padding:11px 12px}.collection-select{font-size:12px}.main-nav{gap:2px}.icon-button,.main-nav button{width:27px}.toolbar-start{min-width:65px;font-size:12px}.top-toolbar>.tool-divider{margin:0}}@media (max-width:960px){.header{flex-direction:column;align-items:center;padding:18px 24px;gap:15px}.brand-name{font-size:29px}.brand-keycap{width:54px;height:54px}.top-toolbar{gap:9px;padding:11px 16px}.practice-stage{min-height:445px}}@media (max-width:700px){.header{padding:18px 16px 10px;gap:17px}.brand{gap:7px}.brand-name{font-size:28px}.brand-keycap{width:49px;height:49px}.top-toolbar{display:grid;width:100%;max-width:100%;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px 0;padding:10px 11px;min-height:76px}.top-toolbar .collection-select{grid-column:1/5;grid-row:1;justify-self:start}.top-toolbar .session-progress{grid-column:5/8;grid-row:1;justify-self:end}.top-toolbar .main-nav{grid-column:1/4;grid-row:2;justify-content:space-around}.top-toolbar .theme-button{grid-column:4;grid-row:2;justify-self:center}.top-toolbar .settings-button{grid-column:5;grid-row:2;justify-self:center}.top-toolbar .toolbar-start{grid-column:6/8;grid-row:2;margin-left:0}.collection-select{font-size:12px}.session-progress{font-size:11px}.top-toolbar>.tool-divider{display:none}.main-nav button,.top-toolbar>.icon-button{width:27px;height:28px}.main-nav svg,.top-toolbar>.icon-button>svg{width:18px}.toolbar-start{height:32px;min-width:61px;font-size:12px}.practice-view{padding:0 19px}.practice-stage{min-height:431px;padding:30px 0 23px}.mode-row{margin-bottom:12px}.segmented{gap:23px}.segmented button{font-size:12px}.exercise-toolbar{gap:4px;min-height:32px}.exercise-toolbar .action-icon-button{width:32px;height:32px}.answer-workspace{min-height:66px}.sentence-input{font-size:25px;min-height:66px;line-height:1.55;padding:9px 0}.question-block{margin:8px 0 25px;gap:5px}.question-block h1{font-size:17px}.question-actions .icon-button{width:23px}.word-bank-heading{font-size:11px;gap:15px}.word-bank{gap:9px 7px}.bank-word{font-size:12px;height:34px;padding:0 11px}.quiet-button{font-size:11px}.primary-button,.secondary-button{font-size:11px;min-height:35px;padding:0 12px;gap:8px}.feedback-slot{min-height:46px;padding-top:17px}.focus-note{font-size:10px}.session-stats{gap:9px;padding:18px 14px;margin:10px auto 29px;min-height:104px}.session-stats strong{font-size:17px;padding:3px 0 9px}.session-stats strong small{font-size:9px}.session-stats>div{gap:9px}.session-stats>div>span{font-size:10px}.history-view{width:calc(100% - 38px);margin-top:27px}.page-heading{align-items:flex-start;flex-direction:column;gap:15px}.page-heading h1{font-size:22px}.history-stats{gap:12px;margin-top:20px}.history-stats>div>span{font-size:10px}.history-stats strong{font-size:22px}.history-stats small{font-size:9px;margin-left:4px}.history-row{gap:10px}.history-sentence h3,.history-sentence p{font-size:12px}.history-assistance{display:none}.history-row time{font-size:10px}.history-view .library-toolbar>.small-count{font-size:9px}.dialog-content{padding:21px}}@media (min-width:961px) and (max-height:820px){.header{min-height:94px;padding-top:17px;padding-bottom:17px}.practice-stage{min-height:388px;padding:10px 0 20px}.mode-row{margin-bottom:21px}.word-section{padding-bottom:0}.practice-actions{margin-top:20px}.session-stats{min-height:108px;padding:20px 25px;margin-bottom:25px}.session-stats strong{font-size:20px;padding-bottom:9px}}@media (prefers-reduced-motion:reduce){*,:after,:before{animation:none!important;transition:none!important}}