.reading-practice{--pp:#fdfcf8;--ink:#29312f;--muted:#77817b;--line:#d9ded8;--green:#3c8875;--orange:#bb762f;position:fixed;inset:0;z-index:50;overflow-y:auto;background:var(--pp);color:var(--ink);font-family:Arial,PingFang SC,sans-serif}.reading-practice[data-theme=dark]{--pp:#17231f;--ink:#e1e9e2;--muted:#a1b3a7;--line:#46574e;--green:#8dceb7;--orange:#efb264}.reading-practice *{box-sizing:border-box}.reading-practice button{color:inherit;font:inherit;background:transparent;border:0;border-radius:7px;cursor:pointer;min-height:42px;padding:8px 12px;display:inline-flex;align-items:center;justify-content:center;gap:8px}.reading-practice button:hover:not(:disabled){background:color-mix(in srgb,var(--green) 8%,transparent)}.reading-practice button:disabled{opacity:.35;cursor:default}.reading-practice button:focus-visible,.reading-practice input:not(.practice-capture):focus-visible,.reading-practice select:focus-visible{outline:2px solid var(--green);outline-offset:3px}.practice-top{min-height:66px;padding:8px 20px;display:flex;gap:12px;align-items:center;border-bottom:1px solid var(--line)}.practice-top h1{font-size:16px;font-weight:500;line-height:1.5;margin:0;min-width:0}.practice-top h1 small{display:inline;margin-left:12px;font-size:12px;color:var(--muted);white-space:nowrap}.practice-top nav{margin-left:auto;display:flex;align-items:center;gap:3px}.practice-top nav button{padding:8px 10px}.practice-top nav span{font-size:12px}.practice-session{display:flex;justify-content:space-between;gap:16px;padding:20px 28px;color:var(--muted);font-size:12px}.practice-paper{max-width:1280px;margin:0 auto;padding:0 40px 28px}.practice-question{min-height:calc(100dvh - 165px);display:flex;flex-direction:column}.practice-stage{flex:1;min-height:400px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 0 60px}.practice-chinese{font-size:clamp(22px,2.4vw,30px);font-weight:500;line-height:1.7;text-align:center;margin:0 0 40px;max-width:1000px}.practice-reference{font-size:19px;line-height:1.7;color:var(--muted);text-align:center;margin:-18px 0 30px;max-width:950px;overflow-wrap:anywhere}.practice-keywords{color:var(--green);font-size:14px;margin:-18px 0 30px;text-align:center}.practice-slots{position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:24px 10px;width:100%;margin:8px 0;min-height:85px;cursor:text;font-size:var(--practice-size)}.practice-capture{position:absolute;opacity:0;width:1px;height:1px;left:50%;top:50%;padding:0;border:0;pointer-events:none}.practice-word{position:relative;max-width:100%;font-family:Arial,sans-serif;line-height:1.3;display:inline-flex;flex-direction:column;align-items:stretch;isolation:isolate}.reading-practice .practice-word-text{font:inherit;min-height:1.5em;width:100%;border-radius:0;border-bottom:2px solid var(--line);padding:0 5px 6px;overflow-wrap:anywhere;background:none;text-align:center}.practice-word:before{content:"";position:absolute;inset:55% -4px -7px;z-index:-1;border-radius:50%;filter:blur(11px);opacity:0;pointer-events:none}.practice-word.active{color:var(--green)}.practice-word.active .practice-word-text{border-color:var(--green)}.reading-practice[data-glow=true] .practice-word.active:before{background:#8cc5a6;animation:practice-breathe 3s ease-in-out infinite}.practice-word.entered{color:var(--muted)}.practice-word.wrong{color:var(--orange)}.practice-word.wrong .practice-word-text{border-color:var(--orange);background:color-mix(in srgb,var(--orange) 6%,transparent)}.practice-word.correct .practice-word-text{border-color:var(--green);border-bottom-width:3px}.practice-word.revealed .practice-word-text{border-bottom-style:dashed;border-color:var(--green)}.practice-punctuation{align-self:center;font-size:1em;margin-left:-7px}.practice-ipa{text-align:center;font:12px/1.7 Arial,sans-serif;color:var(--muted);margin-bottom:6px}.practice-meaning{text-align:center;display:flex;flex-direction:column;gap:5px;padding-top:10px;font-size:13px;max-width:180px;align-self:center}.practice-meaning b{font-weight:400;line-height:1.6}.practice-meaning small{color:var(--muted);font-size:10px}.show-meanings{gap:32px 13px}.show-meanings .practice-word{min-width:3ch}.practice-answer-chinese{font-size:21px;line-height:1.8;text-align:center;margin:40px 0 0}.practice-answer-chinese>span{display:block;margin-top:10px;font-size:12px;color:var(--green)}.practice-feedback{font-size:13px;color:var(--muted);line-height:1.7;text-align:center;margin:20px 0 0}.practice-feedback.wrong{color:var(--orange)}.practice-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;min-height:70px}.practice-controls>div{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}.practice-controls button{font-size:13px}.practice-controls button>span{display:inline-flex;align-items:center;gap:8px}.reading-practice kbd{display:inline-block;border:1px solid var(--line);border-radius:5px;padding:3px 6px;font:11px Arial,sans-serif;color:var(--muted);background:color-mix(in srgb,var(--muted) 5%,transparent)}.reading-practice .practice-primary{background:var(--green);color:var(--pp);padding:10px 20px}.reading-practice .practice-primary kbd{color:inherit;border-color:currentColor;opacity:.8}.practice-dictionary{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:12px;padding:16px;border:1px solid var(--line);border-radius:9px;margin-top:25px;max-width:650px;font-size:13px}.practice-dictionary b{font-size:20px}.practice-dictionary small{width:100%;line-height:1.8}.practice-shade{position:fixed;inset:0;z-index:4;background:#0006;display:grid;place-items:center;padding:24px}.practice-menu,.practice-settings{width:min(820px,100%);max-height:85dvh;overflow:auto;background:var(--pp);border:1px solid var(--line);border-radius:14px;box-shadow:0 25px 90px #0003}.practice-menu>header,.practice-settings>header{display:flex;align-items:center;justify-content:space-between;padding:16px 22px;border-bottom:1px solid var(--line)}.practice-menu h2,.practice-settings h2{margin:0;font-size:19px;font-weight:500}.ps-layout{display:grid;grid-template-columns:135px minmax(0,1fr);min-height:420px}.ps-layout nav{border-right:1px solid var(--line);padding:15px 10px;display:flex;flex-direction:column;gap:6px}.ps-layout nav button{justify-content:flex-start;font-size:14px;padding:12px 18px}.ps-layout nav button[aria-selected=true]{background:color-mix(in srgb,var(--green) 12%,transparent);color:var(--green)}.ps-content{padding:18px 28px 30px;min-width:0}.ps-content h3{margin:10px 0 15px;font-size:16px;font-weight:500}.ps-content p{color:var(--muted);font-size:12px;line-height:1.8;margin-bottom:20px}.ps-row,.ps-toggle{min-height:55px;display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:13px;padding:11px 0;border-bottom:1px solid color-mix(in srgb,var(--line) 60%,transparent)}.ps-row select{border:1px solid var(--line);color:var(--ink);background:var(--pp);font:inherit;padding:8px;border-radius:6px;max-width:65%}.ps-row input[type=range]{width:42%;accent-color:var(--green)}.ps-row output{color:var(--muted);min-width:35px;font-size:12px}.ps-toggle>span{display:flex;flex-direction:column;gap:5px}.ps-toggle b{font-weight:400}.ps-toggle small{color:var(--muted);font-size:11px;line-height:1.5}.ps-toggle input{appearance:none;position:relative;background:var(--line);border:1px solid var(--line);border-radius:999px;width:37px;height:22px;flex-shrink:0;cursor:pointer}.ps-toggle input:after{content:"";position:absolute;width:16px;height:16px;top:2px;left:2px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transition:transform .15s}.ps-toggle input:checked{background:var(--green);border-color:var(--green)}.ps-toggle input:checked:after{transform:translateX(15px)}.ps-keys{display:grid;grid-template-columns:115px 1fr;gap:20px 15px;font-size:13px;line-height:1.8}.ps-keys dt{color:var(--green)}.ps-keys dd{margin:0}.practice-menu{width:min(600px,100%);padding-bottom:18px}.reading-practice .practice-mode-option{position:relative;width:calc(100% - 40px);margin:10px 20px 0;display:flex;align-items:flex-start;flex-direction:column;padding:18px;border:1px solid var(--line);text-align:left}.practice-mode-option span{font-size:12px;color:var(--muted)}.practice-mode-option svg{position:absolute;right:18px;top:20px;color:var(--green)}.practice-sentence-list{list-style:none;padding:8px 20px;margin:0}.practice-sentence-list button{width:100%;justify-content:flex-start;text-align:left;border-bottom:1px solid var(--line);padding:14px 8px}.practice-sentence-list b{font-weight:400;font-size:13px;flex:1;line-height:1.7}.practice-sentence-list small,.practice-sentence-list span{font-size:11px;color:var(--muted)}.practice-sentence-list [aria-current=step]{color:var(--green)}.practice-paused{position:fixed;inset:110px 0 0;z-index:2;background:color-mix(in srgb,var(--pp) 95%,transparent);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px}.practice-paused h2{font-size:25px;font-weight:400}.practice-summary{padding:90px 15px;text-align:center}.practice-seal{display:inline-grid;place-items:center;width:58px;height:58px;border-radius:50%;color:var(--green);background:color-mix(in srgb,var(--green) 10%,transparent)}.practice-summary h2{font-size:28px;font-weight:400}.practice-summary p{color:var(--muted);font-size:14px;line-height:1.8}.practice-totals{display:flex;justify-content:center;gap:40px;margin:35px 0}.practice-totals b{display:block;font-size:35px;font-weight:400;margin-bottom:10px}.practice-totals span{font-size:12px}@keyframes practice-breathe{0%,to{opacity:.12}50%{opacity:.4}}@media (max-width:650px){.practice-top{flex-wrap:wrap;padding:10px 12px;gap:4px}.practice-top>button{padding:8px}.practice-top h1{font-size:14px;flex:1}.practice-top h1 small{display:block;margin:3px 0 0;font-size:10px}.practice-top nav{width:100%;justify-content:flex-end}.practice-top nav button{min-height:38px;padding:7px 10px}.practice-session{padding:14px 18px;font-size:10px}.practice-session>span:last-child{display:none}.practice-paper{padding:0 20px 20px}.practice-question{min-height:calc(100dvh - 190px)}.practice-stage{min-height:320px;padding:25px 0 45px}.practice-chinese{font-size:21px;margin-bottom:32px}.practice-reference{font-size:15px;line-height:1.9}.practice-slots{font-size:clamp(23px,calc(var(--practice-size) * .7),34px);gap:18px 7px}.practice-word-text{padding:0 3px 5px!important}.practice-controls{gap:0}.practice-controls>div{gap:5px}.practice-controls button{padding:8px;font-size:11px}.practice-controls kbd{display:none}.practice-controls svg{width:16px}.practice-ipa{font-size:10px}.practice-meaning{font-size:11px;max-width:125px}.practice-meaning small{font-size:9px}.practice-answer-chinese{font-size:19px;margin-top:30px}.practice-shade{padding:12px}.ps-layout{grid-template-columns:1fr}.ps-layout nav{flex-direction:row;overflow-x:auto;padding:7px;border-right:0;border-bottom:1px solid var(--line);gap:2px}.ps-layout nav button{flex-shrink:0;font-size:12px;padding:8px 12px}.ps-content{padding:14px 18px}.ps-keys{grid-template-columns:90px 1fr;gap:15px 10px}.practice-menu,.practice-settings{max-height:90dvh}.practice-paused{inset:145px 0 0}}@media (prefers-reduced-motion:reduce){.reading-practice *,.reading-practice :before{animation:none!important;transition:none!important}}.practice-word.typo{color:var(--orange)}.practice-word.typo .practice-word-text{border-color:var(--orange);border-bottom-style:dashed}.practice-modes{display:inline-flex;border:1px solid var(--line);border-radius:999px;padding:2px;gap:2px}.reading-practice .practice-modes button{min-height:30px;padding:3px 14px;font-size:13px;border-radius:999px;color:var(--muted)}.reading-practice .practice-modes button[aria-pressed=true]{background:var(--green);color:var(--pp)}.practice-session{align-items:center;flex-wrap:wrap}.cloze-sentence{position:relative;max-width:1000px;text-align:center;font-size:calc(var(--practice-size) * .72);line-height:2.1;overflow-wrap:anywhere;cursor:text}.reading-practice .cloze-word{display:inline-flex;gap:.08em;min-height:0;padding:0 .1em;margin:0 .05em;border-radius:6px;vertical-align:baseline;font:inherit;line-height:1.3}.cloze-word i{font-style:normal;font-family:ui-monospace,Menlo,Consolas,monospace;font-weight:700;min-width:.78em;text-align:center;border-bottom:2px solid var(--line);color:var(--ink)}.cloze-word i.auto{border-bottom-color:transparent;min-width:.4em}.cloze-word.active i{border-bottom-color:color-mix(in srgb,var(--green) 45%,var(--line))}.cloze-word.active i.shown{color:var(--green);border-bottom-color:var(--green)}.cloze-word.active i.cursor{border-bottom:3px solid var(--green);background:color-mix(in srgb,var(--green) 10%,transparent)}.cloze-word i.cursor.wrong{color:var(--orange);border-bottom-color:var(--orange);background:color-mix(in srgb,var(--orange) 12%,transparent);animation:cloze-shake .3s 1}.cloze-word.right i{color:var(--green);border-bottom-color:var(--green)}.cloze-word.missed i{color:var(--orange);border-bottom-color:var(--orange)}.cloze-word.waiting{opacity:.75}.cloze-tiles{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:30px;max-width:420px}.reading-practice .cloze-tiles button{width:44px;height:48px;padding:0;font:700 21px ui-monospace,Menlo,Consolas,monospace;border:solid var(--line);border-width:1px 1px 3px;border-radius:10px;background:color-mix(in srgb,var(--pp) 80%,#fff)}.reading-practice[data-theme=dark] .cloze-tiles button{background:color-mix(in srgb,var(--ink) 8%,var(--pp))}.reading-practice .cloze-tiles button.used{opacity:.25}.reading-practice .cloze-tiles button.shake{border-color:var(--orange);color:var(--orange);animation:cloze-shake .3s 1}.cloze-answers{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:34px;max-width:900px}.reading-practice .cloze-answers>button{flex-direction:column;gap:2px;min-width:120px;padding:10px 16px;border:1px solid var(--line);border-radius:10px}.cloze-answers>button b{font-size:18px;color:var(--green)}.cloze-answers>button.missed b{color:var(--orange)}.cloze-answers>button span{font-size:12px;color:var(--muted)}.cloze-answers>button small{font-size:13px}.cloze-answers .practice-answer-chinese{width:100%;margin-top:8px}.practice-missed{max-width:520px;margin:0 auto 28px;text-align:left}.practice-missed h3{font-size:15px;font-weight:500;margin:0 0 10px;text-align:center}.practice-missed ul{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}.practice-missed li{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line)}.reading-practice .practice-missed-word{flex:1;justify-content:flex-start;gap:14px;text-align:left}.practice-missed-word b{font-size:17px}.practice-missed-word span{font-size:13px;color:var(--muted)}.reading-practice .practice-keep{font-size:12px;color:var(--green);gap:5px}.reading-practice .practice-keep:disabled{opacity:.7}.reading-practice .practice-keep-all{display:flex;margin:14px auto 0;border:1px solid var(--green);color:var(--green);padding:8px 18px}.practice-missed .practice-note{text-align:center}@keyframes cloze-shake{25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}@media (max-width:650px){.practice-modes{order:3;width:100%;justify-content:space-between}.reading-practice .practice-modes button{flex:1;padding:3px 6px;font-size:12px}.cloze-sentence{font-size:clamp(18px,calc(var(--practice-size) * .5),24px);line-height:2.2}.cloze-tiles{gap:7px;margin-top:24px}.reading-practice .cloze-tiles button{width:40px;height:46px;font-size:19px}.cloze-answers{gap:8px;margin-top:24px}.reading-practice .cloze-answers>button{min-width:0;padding:8px 12px}}.reading-practice .practice-primary:hover:not(:disabled){background:color-mix(in srgb,var(--green) 86%,var(--ink))}.reading-practice .practice-modes button:disabled{opacity:.55}