:root{color-scheme:light;--page:#f5f5f0;--paper:#fffefa;--ink:#29362e;--muted:#8b928a;--pending:#a4aaa1;--green:#446955;--green-light:#e9eee6;--line:#e7e8df;--red:#c64747;--typing-font:"Cascadia Mono","SFMono-Regular",Consolas,"Liberation Mono",monospace;--typing-size:22px;--typing-leading:1.85}
*{box-sizing:border-box}body{margin:0;background:var(--page);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;-webkit-font-smoothing:antialiased}button,input,textarea{font:inherit}button,a,label,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button,textarea,input{outline:none}button:focus-visible,a:focus-visible,input:focus-visible,.file-button:has(+input:focus-visible){outline:3px solid #8fac96;outline-offset:4px}[hidden]{display:none!important}svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}.page-shell{width:min(1080px,calc(100% - 80px));margin:0 auto}.site-header{height:108px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:13px;text-decoration:none;color:var(--ink)}.brand-mark{display:grid;place-items:center;width:42px;height:42px;background:var(--green);border-radius:12px;color:#fffefa;font:32px Georgia,serif;position:relative}.brand-mark>span{position:absolute;width:5px;height:5px;border-radius:50%;background:#d2dcb9;right:9px;bottom:10px}.brand-name{font-size:21px;font-weight:650;letter-spacing:2px;display:flex;align-items:center;gap:18px}.brand-description{font-size:12px;font-weight:400;letter-spacing:.8px;color:#858d82;border-left:1px solid #d7dbd0;padding-left:18px}.local-badge{font-size:11px;letter-spacing:.6px;color:#798675;display:flex;align-items:center;gap:7px}.local-badge>span{width:6px;height:6px;border-radius:50%;background:#7f9879}.intro{padding:48px 0 33px}.eyebrow{display:flex;align-items:center;gap:8px;color:#6a806b;font-size:11px;letter-spacing:2px;font-weight:500}.eyebrow>span{width:17px;height:1px;background:#7d9278}h1{font-size:34px;letter-spacing:1.2px;font-weight:550;margin:14px 0 13px;line-height:1.5}h1>span{color:var(--green)}.intro-copy>p{font-size:13px;line-height:1.8;color:#82897f;margin:0;letter-spacing:.3px}.toolbar{display:flex;align-items:center;justify-content:space-between;padding-bottom:20px;gap:20px}.toolbar-buttons{display:flex;gap:10px}.button{min-height:41px;display:inline-flex;justify-content:center;align-items:center;gap:8px;padding:10px 17px;border-radius:8px;font-size:12px;font-weight:500;line-height:1.5;transition:background .15s,transform .15s;border:1px solid transparent;text-decoration:none;white-space:nowrap}.button:active{transform:translateY(1px)}.button-primary{background:var(--green);color:#fff}.button-primary:hover{background:#355641}.button-secondary{background:#fafaf6;border-color:#dfe3d8;color:#687263}.button-secondary:hover{background:#eef0e7;border-color:#cbd3c2}.button svg{width:16px;height:16px}.timer-toggle{display:inline-flex;align-items:center;gap:12px;font-size:12px;letter-spacing:.3px;color:#737d6e;cursor:pointer;position:relative;min-height:41px}.timer-toggle input{position:absolute;right:0;top:10px;width:34px;height:20px;opacity:0;margin:0;cursor:pointer}.switch-track{width:34px;height:20px;background:#d3d9ce;border-radius:20px;position:relative;transition:background .2s}.switch-track:after{content:"";position:absolute;left:3px;top:3px;width:14px;height:14px;background:white;border-radius:50%;transition:transform .2s;box-shadow:0 1px 2px #0001}.timer-toggle input:checked+.switch-track{background:var(--green)}.timer-toggle input:checked+.switch-track:after{transform:translateX(14px)}.timer-toggle input:focus-visible+.switch-track{outline:3px solid #8fac96;outline-offset:4px}.practice-card{background:var(--paper);border:1px solid #e1e4d9;border-radius:15px;box-shadow:0 4px 24px #38492d04;overflow:hidden;transition:border-color .2s,box-shadow .2s}.practice-card:has(.typing-input:focus){border-color:#a7b69d;box-shadow:0 0 0 3px #6a85530a}.paper-header{padding:30px 38px 23px;display:flex;justify-content:space-between;gap:24px;align-items:center}.article-heading{min-width:0}.article-kind{display:inline-flex;background:#f0f2e9;color:#7a876f;font-size:10px;padding:4px 8px;letter-spacing:1px;border-radius:4px}h2{font-size:23px;line-height:1.45;font-weight:500;margin:10px 0 8px}.article-heading h2{font-family:Georgia,"Times New Roman","Microsoft YaHei",serif;overflow-wrap:anywhere}.article-meta{font-size:11px;letter-spacing:.3px;color:#939a8e;margin:0}.timer-display{flex:none;text-align:right;align-self:center;padding-left:24px;border-left:1px solid var(--line);min-width:123px}.timer-label{display:flex;justify-content:flex-end;align-items:center;gap:5px;font-size:10px;letter-spacing:.7px;color:#969d90}.timer-label svg{width:13px;height:13px}.timer-value{display:block;font-family:var(--typing-font);font-size:29px;font-weight:400;font-variant-numeric:tabular-nums;color:#4e634d;letter-spacing:1px;line-height:1.5;margin-top:4px}.paper-divider{height:1px;background:var(--line);margin:0 38px}.practice-instructions{margin:22px 38px 2px;font-size:10px;line-height:1.7;color:#939b8c;display:flex;align-items:center;gap:7px;letter-spacing:.3px}.instruction-dot{display:inline-block;width:4px;height:4px;flex:none;border-radius:50%;background:#a5b498}.typing-area{position:relative;margin:0 38px;min-height:215px;cursor:text}.typing-text,.typing-input{font-family:var(--typing-font);font-size:var(--typing-size);line-height:var(--typing-leading);font-weight:400;font-variant-ligatures:none;letter-spacing:0;tab-size:1;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;padding:22px 0 25px;margin:0;text-align:left;line-break:auto}.typing-text{min-height:215px;color:var(--pending);position:relative;pointer-events:none}.typing-input{position:absolute;inset:0;width:100%;height:100%;border:none;border-radius:0;resize:none;background:transparent;color:transparent;-webkit-text-fill-color:transparent;caret-color:transparent;overflow:hidden;z-index:2;cursor:text}.typing-input::selection{background:#66875a30;color:transparent}.character{position:relative}.character.correct{color:var(--ink)}.character.incorrect,.character.extra{color:var(--red);background:#c6474709;text-decoration:underline;text-decoration-color:#c6474738;text-underline-offset:5px}.character.space.incorrect:before,.character.space.extra:before{content:"·";position:absolute;left:0;top:0;color:var(--red)}.character.newline:before{content:"↵";position:absolute;left:0;top:0;font-size:.7em;line-height:calc(var(--typing-leading) / .7);opacity:.6}.character.newline.correct:before{opacity:.18}.character.newline.pending:before{opacity:.4}.character.incorrect.newline:before,.character.extra.newline:before{opacity:1}.character.tab:before{content:"⇥";position:absolute;left:0;top:0;color:var(--red)}.caret-anchor{position:relative;display:inline;font-size:inherit}.caret-anchor:after{content:"";position:absolute;left:-1px;top:.05em;bottom:.02em;width:2px;min-height:1.15em;background:var(--green);border-radius:2px;animation:caret-blink 1.1s step-end infinite}.typing-area:not(:focus-within) .caret-anchor:after{visibility:hidden}.practice-card.is-complete .caret-anchor:after{display:none}.typing-area.is-selecting .caret-anchor:after{display:none}@keyframes caret-blink{0%,100%{opacity:1}50%{opacity:0}}.feedback-row{margin:0 38px 22px;display:flex;justify-content:space-between;align-items:center;gap:14px;min-height:23px}.error-hint{font-size:11px;line-height:1.8;color:#8b9583;margin:0;overflow-wrap:anywhere}.error-hint.has-error{color:#b65049}.error-count{font-size:10px;color:#b65049;white-space:nowrap;background:#fcf0ed;padding:4px 8px;border-radius:4px}.paper-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 38px;border-top:1px solid var(--line);background:#fafbf5}.color-legend{display:flex;gap:19px;font-size:10px;color:#89917f;letter-spacing:.5px}.color-legend>span{display:flex;align-items:center;gap:6px}.color-legend i{width:5px;height:5px;border-radius:50%;display:inline-block}.legend-pending{background:#a4aaa1}.legend-correct{background:#29362e}.legend-error{background:var(--red)}.keyboard-tip{display:flex;align-items:center;gap:5px;font-size:10px;color:#a0a797}.keyboard-tip>span{margin:0 5px}kbd{font:inherit;min-width:18px;height:18px;text-align:center;line-height:16px;border:1px solid #e1e5d8;border-radius:3px;padding:0 4px;background:#fffefa;color:#909a85}.progress-track{height:3px;background:#f0f2e9}.progress-track>div{height:100%;width:0;background:#749366;transition:width .15s}.session-footer{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:18px}.session-status{display:flex;align-items:center;gap:7px;font-size:11px;color:#75816d;margin:0;line-height:1.7}.status-dot{width:6px;height:6px;background:#a7b39c;border-radius:50%;flex:none}.session-status.running .status-dot{background:#739266;box-shadow:0 0 0 3px #73926612}.session-status.complete .status-dot{background:#446955}.session-status.complete{color:var(--green)}#statusDescription{color:#a0a796;margin-left:8px;font-size:10px}.character-progress{font-size:10px;color:#8b9583;font-variant-numeric:tabular-nums;white-space:nowrap}.page-note{text-align:center;font-size:10px;letter-spacing:.2px;color:#a4ab9c;margin:38px 0 0;line-height:1.9}.site-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:21px 0;margin-top:35px;color:#a2aa99;font-size:10px;letter-spacing:.5px}.site-footer>span:first-child{letter-spacing:2px}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
dialog{width:min(680px,calc(100% - 32px));max-height:calc(100dvh - 48px);border:1px solid #dce2d3;border-radius:18px;padding:30px;background:var(--paper);color:var(--ink);box-shadow:0 25px 100px #24351e26;overflow:auto}dialog::backdrop{background:#23302155;backdrop-filter:blur(4px)}body:has(dialog[open]){overflow:hidden}.dialog-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.dialog-header .eyebrow{font-size:10px;letter-spacing:1px}.dialog-header h2{margin:8px 0 0;font-size:24px}.icon-button{width:32px;height:32px;border:none;border-radius:6px;background:transparent;color:#85917d;display:grid;place-items:center}.icon-button:hover{background:var(--green-light)}.dialog-description{font-size:12px;color:#8c9584;line-height:1.8;margin:12px 0 18px}.file-row{display:flex;align-items:center;gap:12px}.file-button{cursor:pointer;flex:none}.file-name{font-size:11px;color:#7b8872;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.file-note{font-size:10px;color:#a1aa96;line-height:1.7;margin:9px 0 24px}.editor-label{font-size:12px;display:flex;justify-content:space-between;align-items:center;gap:10px;color:#5e7055;margin-bottom:10px}.editor-label>span{font-size:10px;color:#a0a992}.source-editor{display:block;resize:vertical;width:100%;min-height:180px;max-height:400px;border:1px solid #dee4d4;border-radius:8px;padding:14px;background:#fff;color:#465340;font-family:var(--typing-font);font-size:13px;line-height:1.8}.source-editor::placeholder{font-family:-apple-system,"Microsoft YaHei",sans-serif;color:#acb3a3;font-size:12px}.source-editor:focus{border-color:#879e77;box-shadow:0 0 0 3px #879e7710}.preview-heading{display:flex;justify-content:space-between;align-items:center;margin:20px 0 9px;font-size:11px;color:#6c7e61}.preview-heading>span+span{font-size:10px;color:#9aa78d}.source-preview{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.8 var(--typing-font);margin:0;padding:12px 14px;min-height:64px;max-height:120px;overflow:auto;border:1px solid #e8ecdf;border-radius:8px;color:#7d8a71;background:#f6f8ef}.source-preview.preview-empty{font-family:-apple-system,"Microsoft YaHei",sans-serif;font-size:11px;color:#a2ae94}.normalization-note{font-size:10px;color:#9ca98e;line-height:1.8;margin:9px 0 0}.import-error{font-size:12px;color:var(--red);line-height:1.8;background:#fcf0ed;padding:9px 12px;border-radius:6px;margin:14px 0 0}.dialog-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.timer-display{min-width:174px}.timer-state{display:block;margin-top:1px;color:#8c9685;font-size:10px;line-height:1.7}.timer-controls{display:flex;justify-content:flex-end;gap:5px;margin-top:9px}.timer-button{min-width:42px;min-height:32px;padding:6px 8px;border:1px solid #dfe3d8;border-radius:6px;background:#fafaf6;color:#687263;font-size:11px;line-height:1.5;transition:background .15s}.timer-button:hover:not(:disabled){background:#eef0e7;border-color:#cbd3c2}.timer-button-start{background:var(--green-light);border-color:#d7e0d2;color:var(--green)}.timer-button-start:hover:not(:disabled){background:#dce7d7;border-color:#bccdb4}.timer-button:disabled{opacity:.4;cursor:not-allowed}.timer-hint{display:block;margin-top:8px;color:#9ba48f;font-size:9px;line-height:1.7;white-space:nowrap}
.selection-help{margin:5px 38px 0;color:#788873;font-size:10px;line-height:1.7;letter-spacing:.2px}.typing-text{pointer-events:auto;user-select:text;-webkit-user-select:text;outline:none}.typing-input{pointer-events:none}.typing-text:focus-visible{outline:2px solid #8fac96;outline-offset:5px;border-radius:4px}.typing-text::selection,.typing-text .character::selection{background:#cddfc4;color:#213c28}.typing-area.is-source-selecting .caret-anchor:after{visibility:hidden}.selection-translation-popup{position:fixed;z-index:30;width:min(340px,calc(100vw - 24px));max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow:auto;padding:14px 18px 18px;background:var(--paper);color:var(--ink);border:1px solid #d5dfcc;border-radius:12px;box-shadow:0 12px 38px #24351e24;font-size:13px;line-height:1.8;overscroll-behavior:contain}.selection-translation-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:9px;border-bottom:1px solid var(--line);color:var(--green);font-size:11px;font-weight:600;letter-spacing:.6px}.selection-translation-header .icon-button{width:28px;height:28px;flex:none}.selection-translation-header svg{width:16px;height:16px}.selection-translation-source{margin:12px 0 8px;font-family:var(--typing-font);font-size:12px;line-height:1.8;color:#7a8572;white-space:pre-wrap;overflow-wrap:anywhere}.selection-translation-text{margin:0;font-size:14px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.selection-translation-status{margin:9px 0 0;color:#8b9583;font-size:11px;line-height:1.7;overflow-wrap:anywhere}.selection-translation-status:empty,.selection-translation-text:empty{display:none}.selection-translation-retry{margin-top:10px;min-height:34px;padding:6px 11px;font-size:11px}
@media(min-width:1500px){.page-shell{width:1120px}.intro{padding-top:60px;padding-bottom:39px}.typing-area{min-height:260px}.typing-text{min-height:260px}}
@media(max-width:760px){:root{--typing-size:19px;--typing-leading:1.9}.page-shell{width:calc(100% - 40px)}.site-header{height:85px}.brand-mark{width:36px;height:36px;font-size:27px;border-radius:10px}.brand-name{font-size:19px}.brand-description{display:none}.local-badge{font-size:10px;letter-spacing:0}.intro{padding:33px 0 27px}h1{font-size:27px;letter-spacing:0;margin:11px 0 10px}.intro-copy>p{font-size:11px;max-width:330px}.toolbar{gap:12px;padding-bottom:16px}.button{padding:9px 12px;font-size:11px;min-height:39px}.toolbar-buttons{gap:7px}.timer-toggle{font-size:10px;gap:7px}.paper-header{padding:24px 23px 21px;gap:15px}.article-heading h2{font-size:21px}.timer-display{min-width:94px;padding-left:15px}.timer-value{font-size:24px}.paper-divider{margin:0 23px}.practice-instructions{margin:18px 23px 0;font-size:9px;align-items:flex-start}.instruction-dot{margin-top:5px}.typing-area{margin:0 23px}.typing-text,.typing-input{padding-top:18px;padding-bottom:21px}.feedback-row{margin:0 23px 19px;align-items:flex-start}.error-hint{font-size:10px}.paper-footer{padding:14px 23px}.color-legend{gap:13px;font-size:9px}.keyboard-tip{display:none}.session-footer{margin-top:15px;align-items:flex-start}.session-status{font-size:10px;flex-wrap:wrap}#statusDescription{display:none}.character-progress{font-size:9px;line-height:1.9}.page-note{margin-top:28px;font-size:9px}.site-footer{margin-top:25px}dialog{padding:24px;max-height:calc(100dvh - 28px)}.editor-label{align-items:flex-start}.editor-label>span{font-size:9px}.source-editor{min-height:150px}}
@media(max-width:400px){.page-shell{width:calc(100% - 28px)}.local-badge{font-size:9px}.toolbar{flex-wrap:wrap;gap:8px}.timer-toggle{margin-left:auto;min-height:30px}.timer-toggle input{top:5px}.paper-header{padding-left:19px;padding-right:19px}.timer-display{min-width:84px}.timer-value{font-size:21px}.article-heading h2{font-size:18px}.paper-divider{margin:0 19px}.practice-instructions{margin-left:19px;margin-right:19px}.typing-area{margin:0 19px}.feedback-row{margin-left:19px;margin-right:19px}.paper-footer{padding-left:19px;padding-right:19px}}
@media(max-width:760px){.paper-header{flex-direction:column;align-items:stretch;gap:18px}.timer-display{display:grid;grid-template-columns:minmax(0,1fr) auto;align-self:stretch;min-width:0;padding:13px 0 0;border-left:0;border-top:1px solid var(--line);text-align:left;column-gap:16px}.timer-label{grid-column:1;justify-content:flex-start}.timer-value{grid-column:1;margin-top:3px}.timer-state{grid-column:1}.timer-controls{grid-column:2;grid-row:1 / span 3;align-self:center;justify-content:flex-end;margin:0}.timer-hint{grid-column:1 / -1;margin-top:7px}.timer-button{min-height:36px;min-width:44px}}
@media(max-width:400px){.timer-display{grid-template-columns:minmax(0,1fr) auto;column-gap:8px}.timer-label{grid-column:1}.timer-value{grid-column:1}.timer-state{grid-column:2;grid-row:2;align-self:center;margin:3px 0 0}.timer-controls{grid-column:1 / -1;grid-row:3;justify-content:stretch;margin-top:9px}.timer-button{flex:1}.timer-hint{grid-row:4}}
@media(max-width:760px){.selection-help{margin-left:23px;margin-right:23px;font-size:9px}.selection-translation-popup{padding:12px 15px 15px}.selection-translation-header .icon-button{width:34px;height:34px}.selection-translation-retry{min-height:40px}}
@media(max-width:400px){.selection-help{margin-left:19px;margin-right:19px}}

.selection-translation-popup{width:min(420px,calc(100vw - 24px));scrollbar-gutter:stable}
.selection-translation-header{position:sticky;top:-14px;background:var(--paper);z-index:1;padding-top:5px}
.selection-analysis-type{display:inline-block;margin-left:6px;padding:1px 6px;background:var(--green-light);border-radius:4px;font-size:10px;font-weight:400;letter-spacing:0}
.selection-analysis-type:empty{display:none}
.selection-translation-source{max-height:112px;overflow:auto;padding-right:5px}
.selection-analysis-brief:empty,.selection-analysis-details:empty{display:none}
.selection-analysis-brief{margin-top:13px;border-top:1px solid var(--line);padding-top:2px}
.selection-analysis-row{margin:10px 0 0;overflow-wrap:anywhere}
.selection-analysis-label{display:block;margin:0 0 3px;color:var(--green);font-size:11px;line-height:1.7;font-weight:600;letter-spacing:.2px}
.selection-analysis-value{margin:0;color:var(--ink);font-size:13px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere}
.selection-analysis-expand{margin-top:14px;min-height:34px;padding:6px 12px;font-size:11px}
.selection-analysis-details{margin-top:14px;padding-top:2px;border-top:1px solid var(--line)}
@media(max-width:760px){.selection-translation-header{top:-12px}.selection-analysis-expand{min-height:40px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

.page-shell{padding-bottom:32px}
.intro{padding:24px 0}
.intro h1{margin:0;font-size:28px;line-height:1.4;letter-spacing:0}
.dialog-header h2{margin-top:0}
@media(max-width:760px){.intro{padding:18px 0 22px}.intro h1{font-size:24px}}

.site-header{gap:20px}
.site-nav{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px 14px;flex:none;font-size:11px;line-height:1.7}
.site-nav a{color:#73816a;text-decoration:none;text-underline-offset:4px}
.site-nav a:hover{text-decoration:underline;color:var(--green)}
.site-nav a[aria-current="page"]{color:var(--green);font-weight:600}
.intro{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px 24px}
.intro-copy{flex:1 1 520px;min-width:0}
.intro-heading{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin-bottom:8px}
.intro-heading h1{min-width:0;overflow-wrap:anywhere}
.free-badge{display:inline-flex;flex:none;padding:4px 9px;border-radius:5px;background:var(--green-light);color:var(--green);font-size:10px;font-weight:500;line-height:1.7;letter-spacing:.3px;white-space:nowrap}
@media(max-width:760px){.brand-name{font-size:18px;letter-spacing:1px}.site-header{gap:12px}.site-nav{font-size:10px}.intro-heading{gap:8px 10px}.intro-copy>p{max-width:none}}
