:root,[data-theme=dark]{--bg: #121110;--bg-elevated: #1a1917;--bg-subtle: #22201d;--bg-hover: #2b2925;--border: rgba(236, 232, 223, .08);--border-strong: rgba(236, 232, 223, .16);--text-primary: #ece8df;--text-secondary: #a5a198;--text-muted: #6e6b63;--text-dim: #4b4944;--accent: #e05a47;--hanko-ink: #dc493d;--accent-soft: rgba(224, 90, 71, .15);--accent-glow: rgba(224, 90, 71, .35);--amber: #e2a44b;--chart-line: #d6d2c8;--amber-soft: rgba(226, 164, 75, .16);--success: #66bb8a;--success-soft: rgba(102, 187, 138, .14);--error: #f05252;--error-soft: rgba(240, 82, 82, .18);--mistype-bar: #8c887f;--kana-done: #66bb8a;--kana-current-bg: rgba(224, 90, 71, .22);--kana-current-text: #fff5f2;--kana-remaining: #a5a198;--sentence-done: #6e6b64;--sentence-current-bg: rgba(224, 90, 71, .14);--sentence-current-text: #fffaf5;--kanji-progress-fill: rgba(224, 90, 71, .32);--kanji-track-underline: rgba(224, 90, 71, .34);--ruby-remaining: #9b978e;--ruby-done: #5c5953;--romaji-done: #5e5b55;--romaji-pending: #e2a44b;--romaji-next: #ece8df;--romaji-remaining: #75726a;--shadow-card: 0 12px 36px rgba(0, 0, 0, .32);--shadow-modal: 0 24px 64px rgba(0, 0, 0, .6);--font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;--font-sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", sans-serif;--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;--font-sentence: var(--font-sans)}[data-font=serif]{--font-sentence: var(--font-serif)}[data-theme=light]{--bg: #f6f3ec;--bg-elevated: #fdfcf9;--bg-subtle: #ede8dd;--bg-hover: #e4ded0;--border: rgba(29, 31, 36, .09);--border-strong: rgba(29, 31, 36, .18);--text-primary: #1d1f24;--text-secondary: #4f525a;--text-muted: #72747b;--text-dim: #8a8881;--accent: #c9412f;--hanko-ink: #c8302a;--accent-soft: rgba(201, 65, 47, .11);--accent-glow: rgba(201, 65, 47, .26);--amber: #b8781b;--chart-line: #2a2c31;--amber-soft: rgba(184, 120, 27, .13);--success: #2a8754;--success-soft: rgba(42, 135, 84, .11);--error: #d63232;--error-soft: rgba(214, 50, 50, .14);--mistype-bar: #a8a39a;--kana-done: #2a8754;--kana-current-bg: rgba(201, 65, 47, .14);--kana-current-text: #a12919;--kana-remaining: #5a5d66;--sentence-done: #9b9991;--sentence-current-bg: rgba(201, 65, 47, .09);--sentence-current-text: #8c2012;--kanji-progress-fill: rgba(201, 65, 47, .22);--kanji-track-underline: rgba(201, 65, 47, .28);--ruby-remaining: #6e7079;--ruby-done: #aba8a0;--romaji-done: #b5b4ae;--romaji-pending: #b8781b;--romaji-next: #1d1f24;--romaji-remaining: #8b8d94;--shadow-card: 0 8px 28px rgba(29, 31, 36, .07);--shadow-modal: 0 24px 64px rgba(29, 31, 36, .22)}*,*:before,*:after{box-sizing:border-box}html,body{margin:0;padding:0;min-height:100vh;background-color:var(--bg);color:var(--text-primary);font-family:var(--font-sans);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;transition:background-color .22s ease,color .22s ease}::selection{background:#e05a4747;color:var(--text-primary)}[data-theme=light] ::selection{background:#c4453633;color:var(--text-primary)}button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit;padding:0}button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.app-shell{min-height:100vh;max-width:1060px;margin:0 auto;padding:20px 24px 28px;display:flex;flex-direction:column;gap:20px}.app-main{flex:1;display:flex;flex-direction:column;justify-content:center;min-height:440px}.header{display:flex;flex-direction:column;gap:18px}.header-top{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap;padding-bottom:10px;border-bottom:1px solid var(--border)}.brand-wordmark{display:inline-flex;align-items:flex-end;gap:6px;font-family:var(--font-serif);font-size:1.5rem;font-weight:500;letter-spacing:.14em;color:var(--text-primary);line-height:1.1;-webkit-user-select:none;user-select:none;transition:opacity .15s ease}.brand-hanko{display:block;width:24px;height:24px;color:var(--hanko-ink);opacity:.92;transform:rotate(-5deg);margin-bottom:0;flex-shrink:0;transition:opacity .15s ease}.brand-wordmark:hover{opacity:.84}.brand-wordmark:hover .brand-hanko{opacity:1}.header-nav{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.nav-action{display:inline-flex;align-items:baseline;gap:5px;font-size:.82rem;font-weight:400;color:var(--text-secondary);padding:2px 0;border-bottom:1.5px solid transparent;transition:color .15s ease,border-color .15s ease}.nav-action:hover,.nav-action.is-open{color:var(--text-primary)}.nav-action.is-open{border-bottom-color:var(--text-primary)}.nav-caret{font-size:.68rem;opacity:.7}.nav-count{font-family:var(--font-mono);font-size:.72rem;color:var(--text-muted)}.nav-mono{font-family:var(--font-mono);font-size:.78rem}.nav-icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:3px 2px;line-height:1}.popover-wrap{position:relative}.display-popover{position:absolute;top:calc(100% + 10px);right:0;width:max-content;min-width:300px;max-width:calc(100vw - 32px);background:var(--bg-elevated);border:1px solid var(--border-strong);border-radius:10px;padding:14px 16px;box-shadow:var(--shadow-modal);z-index:60;display:flex;flex-direction:column;gap:10px;animation:fadeIn .14s ease}.popover-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.popover-label{font-size:.8rem;color:var(--text-secondary);white-space:nowrap}.popover-segments{display:inline-flex;align-items:center;gap:4px;flex-wrap:wrap}.popover-seg{font-size:.76rem;color:var(--text-muted);padding:3px 8px;border-radius:5px;transition:color .12s ease,background-color .12s ease}.popover-seg:hover{color:var(--text-primary);background:var(--bg-subtle)}.popover-check{display:inline-block;width:.9em;margin-right:3px;font-size:.85em;opacity:.7}.popover-seg.active{color:var(--text-primary);background:var(--bg-subtle);font-weight:600;box-shadow:inset 0 0 0 1px var(--border-strong)}.popover-segments-binary .popover-seg{min-width:42px;text-align:center}.popover-divider{height:1px;background:var(--border);margin:2px 0}.controls-strip{display:flex;flex-direction:column;gap:6px;transition:opacity .25s ease;animation:controlsStripIn .32s cubic-bezier(.22,1,.36,1) backwards}@keyframes controlsStripIn{0%{opacity:0;transform:translateY(-4px)}}.controls-strip.dimmed{opacity:.32}.controls-strip.dimmed:hover{opacity:1}.text-nav-row{display:flex;align-items:baseline;gap:16px;flex-wrap:wrap}.text-nav-types{margin-bottom:2px}.text-nav-modes{gap:12px}.text-nav-types .text-link{font-size:.88rem;color:var(--text-secondary)}.text-nav-types .text-link.active{color:var(--text-primary);font-weight:600;border-bottom-color:var(--text-primary)}.text-nav-item-wrap{display:inline-flex;align-items:baseline;gap:4px}.text-link{font-size:.82rem;font-weight:400;color:var(--text-muted);padding:1px 0 2px;border-bottom:1.5px solid transparent;transition:color .14s ease,border-color .14s ease;white-space:nowrap}.text-link:hover{color:var(--text-secondary)}.text-link.active{color:var(--text-primary);font-weight:600}.epub-continue{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:2px 0 14px;border-bottom:1px solid var(--border)}.epub-continue-main{display:flex;flex-direction:column;gap:4px;min-width:0}.epub-continue-settings{padding-top:10px;border-top:1px solid var(--border)}.epub-continue-actions{justify-content:flex-end}.custom-mix-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:12px;border-top:1px solid var(--border)}.custom-mix-copy{display:flex;flex-direction:column;gap:2px;min-width:0}.custom-mix-hint{font-size:.72rem;color:var(--text-muted)}.epub-or-divider{display:flex;align-items:center;gap:10px;color:var(--text-dim);font-size:.72rem}.epub-or-divider:before,.epub-or-divider:after{content:"";flex:1;height:1px;background:var(--border)}.quiet-action.quiet-danger{color:var(--error)}.epub-progress{height:3px;margin-top:4px;border-radius:2px;background:var(--border-strong);overflow:hidden}.epub-progress-fill{height:100%;background:var(--text-secondary)}.text-link-range{margin-left:4px;font-family:var(--font-mono);font-size:.72em;opacity:.6}.text-link-sub{font-size:.72rem;color:var(--text-muted);transition:color .14s ease}.text-link-sub:hover{color:var(--text-primary)}.text-nav-sep{color:var(--text-dim);font-size:.8rem;-webkit-user-select:none;user-select:none}.ime-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;border-radius:10px;background:var(--bg-subtle);border:1px solid var(--border-strong);border-left:3px solid var(--accent);color:var(--text-primary);font-size:.84rem;margin-bottom:14px;animation:fadeIn .2s ease}.ime-banner-close{font-size:.76rem;padding:3px 8px;border-radius:5px;background:#00000026;color:inherit}.typing-stage{position:relative;display:flex;flex-direction:column;gap:20px;width:100%;outline:none;animation:fadeIn .22s ease backwards}.hud-bar{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:0 4px}.hud-primary{display:flex;align-items:baseline;gap:10px}.hud-timer{font-family:var(--font-mono);font-size:1.55rem;font-weight:500;color:var(--text-secondary);letter-spacing:-.02em;font-variant-numeric:tabular-nums;line-height:1}.hud-timer-unit{font-size:.82rem;font-weight:400;color:var(--text-muted);margin-left:3px}.hud-metrics{display:flex;align-items:baseline;gap:22px;flex-wrap:wrap}.hud-stat{display:flex;align-items:baseline;gap:6px;transition:opacity .2s ease}.hud-stat.is-idle{opacity:0}.hud-stat-label{font-family:var(--font-sans);font-size:.76rem;color:var(--text-muted);letter-spacing:.02em}.hud-stat-val{font-family:var(--font-mono);font-size:1.05rem;font-weight:500;color:var(--text-secondary);font-variant-numeric:tabular-nums}.stage-card{position:relative;background:transparent;border:none;border-radius:0;padding:18px 0 12px;box-shadow:none}.stage-card.error-flash{animation:mistypeShake .14s ease-out both}.stage-meta{display:flex;align-items:baseline;gap:8px;margin-bottom:18px;flex-wrap:wrap;font-size:.8rem}.meta-diff{font-family:var(--font-mono);font-size:.76rem;font-weight:500;letter-spacing:.02em}.meta-diff-0{color:#7fb4e0}.meta-diff-1{color:var(--success)}.meta-diff-2{color:var(--text-secondary)}.meta-diff-3{color:var(--amber)}.meta-diff-4{color:#d9826c}.meta-diff-5{color:#b794f4}.meta-diff-6{color:#e67e9a;font-weight:600}[data-theme=light] .meta-diff-0{color:#2f6f9e}[data-theme=light] .meta-diff-4{color:#9e4736}[data-theme=light] .meta-diff-5{color:#6b21a8}[data-theme=light] .meta-diff-6{color:#a3294d}.meta-sep{color:var(--text-dim)}.meta-source{color:var(--text-muted);font-size:.78rem}.diff-badge{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:6px;font-family:var(--font-mono);font-size:.72rem;font-weight:600}.diff-1{background:#66bb8a24;color:var(--success)}.diff-2{background:#60a5fa26;color:#60a5fa}.diff-3{background:var(--amber-soft);color:var(--amber)}.diff-4{background:var(--accent-soft);color:var(--accent)}.diff-5{background:#c084fc29;color:#c084fc}.diff-6{background:linear-gradient(135deg,#b91c1c47,#d99b4338);color:#f3c677;border:1px solid rgba(226,164,75,.42);box-shadow:0 0 10px #e05a472e}[data-theme=light] .diff-2{color:#2563eb}[data-theme=light] .diff-5{color:#7e22ce}[data-theme=light] .diff-6{background:linear-gradient(135deg,#a91d1d24,#b8781b2e);color:#8c1d18;border:1px solid rgba(184,120,27,.4);box-shadow:none}.source-tag{font-size:.75rem;color:var(--text-muted);padding:2px 8px;border-radius:5px;background:var(--bg-subtle)}.stage-progress-track{position:absolute;top:0;left:16px;right:16px;height:2px;background:transparent;overflow:hidden;border-radius:2px}.stage-progress-fill{height:100%;background:var(--accent);transition:width .1s ease-out}.sentence-text{position:relative;font-family:var(--font-sentence);font-size:clamp(1.5rem,2.75vw,2.05rem);font-weight:500;line-height:2.35;letter-spacing:.045em;color:var(--text-primary);margin:0 0 14px;word-break:break-all;word-break:auto-phrase;text-wrap:pretty;ruby-position:over;ruby-align:center}.seg-glide-highlight{position:absolute;top:0;left:0;z-index:0;pointer-events:none;border-radius:4px;background-color:var(--sentence-current-bg);box-shadow:inset 0 -2px 0 var(--accent);opacity:0;overflow:hidden;will-change:transform,width,height;transition:transform 75ms cubic-bezier(.22,1,.36,1),width 75ms cubic-bezier(.22,1,.36,1),height 75ms cubic-bezier(.22,1,.36,1),background-color 75ms ease}.seg-glide-highlight.is-kanji{box-shadow:inset 0 -2.5px 0 var(--kanji-track-underline)}.seg-glide-fill{position:absolute;top:0;left:0;bottom:0;background-color:var(--kanji-progress-fill);transition:width 75ms ease-out}.seg-glide-underline{position:absolute;left:0;bottom:0;height:2.5px;background-color:var(--accent);transition:width 75ms ease-out}.seg-glide-highlight.is-error{background-color:var(--error-soft);box-shadow:inset 0 -2.5px 0 var(--error)}.seg-glide-highlight.is-error .seg-glide-fill,.seg-glide-highlight.is-error .seg-glide-underline{opacity:0}.flow-viewport{position:relative;font-size:clamp(1.5rem,2.75vw,2.05rem);height:calc(3 * 2.35em);overflow:hidden;margin:0 0 14px}.flow-text.sentence-text{position:relative;font-size:inherit;margin:0;word-break:keep-all;overflow-wrap:break-word;transition:transform .2s ease-out;will-change:transform}.sentence-seg.seg-space{letter-spacing:0;padding:0;background:none;box-shadow:none}.sentence-seg{position:relative;z-index:1;display:inline;border-radius:4px;padding-bottom:3px;transition:color .1s ease;-webkit-box-decoration-break:clone;box-decoration-break:clone}.sentence-seg.kind-kanji{white-space:nowrap}.sentence-seg.done{color:var(--sentence-done)}.sentence-seg.kind-kana.current,.sentence-seg.kind-punctuation.current,.sentence-seg.kind-kanji.current:not(.sentence-ruby),.sentence-ruby.kind-kanji.current .sentence-ruby-base{color:var(--sentence-current-text)}.sentence-seg.current.error:not(.sentence-ruby),.sentence-ruby.current.error .sentence-ruby-base{color:var(--error)}.sentence-seg.remaining{color:var(--text-primary)}.sentence-ruby{display:ruby;padding-bottom:0}.sentence-ruby-base{display:inline;border-radius:4px;padding-bottom:3px;transition:color .1s ease,background-color .1s ease}.sentence-rt{font-family:var(--font-sans);font-size:.44em;font-weight:500;line-height:1;letter-spacing:.02em;color:var(--ruby-remaining);-webkit-user-select:none;user-select:none;transition:color .1s ease}.sentence-ruby.done .sentence-rt{color:var(--ruby-done)}.sentence-ruby.current .sentence-rt{color:var(--accent);font-weight:600}.sentence-ruby.is-peek .sentence-rt{animation:fadeIn .14s ease}.sentence-ruby.current.error .sentence-rt{color:var(--error)}.input-buffer{position:relative;display:flex;align-items:center;justify-content:flex-start;height:36px;min-height:36px;margin:0 0 16px;padding:0 0 6px;border-radius:0;background:transparent;border:none;border-bottom:1px solid var(--border-strong);overflow:hidden;-webkit-user-select:none;user-select:none}.input-buffer-echo{display:inline-flex;align-items:center;gap:8px;min-width:0}.app-shell:not(.focus-active) .input-buffer-echo{animation:echoFocusOut .2s cubic-bezier(.22,1,.36,1) both}.app-shell.focus-active .input-buffer-echo{position:absolute;top:0;bottom:6px;left:calc(50% - 1px);animation:echoFocusIn .24s cubic-bezier(.22,1,.36,1) both}.app-shell.focus-active .input-buffer-prefix{display:none}.input-buffer-prefix{font-family:var(--font-mono);font-size:.92rem;color:var(--text-secondary);line-height:1;flex-shrink:0}.input-buffer-content{display:inline-flex;align-items:center;gap:3px;min-width:0;white-space:nowrap}.input-buffer-kana{font-size:1.1rem;font-weight:500;color:var(--text-primary);letter-spacing:.04em}.input-buffer-romaji{font-family:var(--font-mono);font-size:1.06rem;font-weight:600;color:var(--romaji-pending);letter-spacing:.03em}.input-buffer-ime-composing{font-size:1.1rem;font-weight:500;color:var(--text-primary);text-decoration:underline;text-decoration-style:dotted;text-decoration-color:var(--accent);text-underline-offset:4px;letter-spacing:.03em}.input-buffer-peek-btn{position:absolute;right:0;top:50%;transform:translateY(calc(-50% - 2px));display:inline-flex;align-items:center;gap:6px;font-size:.74rem;color:var(--text-muted);white-space:nowrap;transition:color .14s ease}.input-buffer-peek-btn:hover,.input-buffer-peek-btn.is-nudge{color:var(--text-primary)}.ime-hidden-input{position:fixed;top:0;left:0;width:1px;height:1px;opacity:0;pointer-events:none;border:0;padding:0;margin:0;font-size:16px}.input-buffer-caret{display:inline-block;width:2px;height:1.18em;background:var(--accent);border-radius:1px;margin-left:1px;animation:caretBlink 1.05s steps(1,end) infinite}.input-buffer-error{font-family:var(--font-mono);font-size:.94rem;font-weight:700;color:var(--error);background:var(--error-soft);padding:0 5px;border-radius:4px;margin-left:4px;animation:fadeIn .1s ease}.input-buffer-peek{margin-left:auto;display:inline-flex;align-items:center;gap:6px;padding:2px 8px;border-radius:5px;background:var(--bg-subtle);border:1px solid var(--border-strong);color:var(--text-primary);font-size:.84rem;font-weight:600;letter-spacing:.04em;white-space:nowrap;animation:fadeIn .12s ease}.input-buffer .input-buffer-peek,.input-buffer .input-buffer-hint{position:absolute;right:0;top:50%;transform:translateY(calc(-50% - 2px));margin-left:0}.input-buffer-peek-label{font-size:.68rem;font-weight:500;opacity:.78}.input-buffer-peek.mono{font-family:var(--font-mono);letter-spacing:.03em}.sprint-progress{margin-top:16px;display:flex;flex-direction:column;gap:6px}.sprint-progress-track{width:100%;height:7px;border-radius:999px;background:var(--bg-subtle);overflow:hidden;border:1px solid var(--border)}.sprint-progress-fill{height:100%;border-radius:999px;background:var(--text-secondary);transition:width .1s ease-out}.sprint-progress-meta{display:flex;align-items:center;justify-content:space-between;font-family:var(--font-mono);font-size:.75rem}.sprint-progress-pct{color:var(--text-secondary);font-weight:500}.sprint-progress-count{color:var(--text-muted)}.input-buffer-hint{margin-left:auto;display:inline-flex;align-items:center;gap:5px;font-size:.75rem;color:var(--text-muted);white-space:nowrap;animation:fadeIn .16s ease}.peek-reading-row{display:flex;align-items:center;margin:-4px 0 12px}.peek-reading-row .input-buffer-peek,.peek-reading-row .input-buffer-hint{margin-left:0}.footer-corpus-meta{display:inline-flex;align-items:center;gap:6px;font-family:var(--font-mono);font-size:.74rem;color:var(--text-muted)}.footer-meta-sep{opacity:.45}.footer-github-link{color:inherit;text-decoration:none;transition:color .14s ease}.footer-github-link:hover{color:var(--text-primary)}.english-hint{font-size:.85rem;color:var(--text-muted);margin:-6px 0 16px;font-style:italic}.kana-line{font-size:clamp(1.05rem,1.8vw,1.28rem);line-height:1.85;letter-spacing:.06em;margin-bottom:14px;word-break:break-all;-webkit-user-select:none;user-select:none}.kana-char{display:inline;border-radius:4px;transition:color .08s ease,background-color .08s ease}.kana-char.done{color:var(--kana-done)}.kana-char.current{color:var(--kana-current-text);background:var(--kana-current-bg);border-bottom:2px solid var(--accent);padding:1px 2px;margin:0 -1px}.kana-char.current.error{background:var(--error-soft);border-bottom-color:var(--error);color:var(--error)}.kana-char.remaining{color:var(--kana-remaining)}.romaji-line{font-family:var(--font-mono);font-size:clamp(.95rem,1.5vw,1.12rem);line-height:1.7;letter-spacing:.04em;word-break:break-all;padding-top:12px;border-top:1px solid var(--border);-webkit-user-select:none;user-select:none}.romaji-done{color:var(--romaji-done)}.romaji-pending{color:var(--romaji-pending);font-weight:600}.romaji-next{color:var(--romaji-next);font-weight:700;text-decoration:underline;text-decoration-color:var(--accent);text-underline-offset:4px;text-decoration-thickness:2px}.romaji-remaining{color:var(--romaji-remaining)}.stage-prompt{margin-top:16px;font-size:.78rem;color:var(--text-muted);display:flex;align-items:center;gap:8px;transition:opacity .25s ease}.stage-prompt.tap-to-type{padding:6px 0;color:var(--text-secondary);text-align:left}.touch-romaji-input{position:absolute;top:0;left:0;width:1px;height:1px;opacity:0;border:0;padding:0;margin:0;font-size:16px;caret-color:transparent;pointer-events:none}.stage-prompt.is-hidden{opacity:0;pointer-events:none}.stage-prompt-dot{width:5px;height:5px;border-radius:50%;background:var(--text-muted);opacity:.65}.quiet-action{display:inline-flex;align-items:center;gap:8px;padding:4px 0;font-size:.8rem;color:var(--text-muted);transition:color .14s ease}.quiet-action:hover{color:var(--text-primary)}.quiet-action-strong{color:var(--text-primary);border-bottom:1px solid var(--border-strong)}.stage-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.stage-action-buttons{display:flex;align-items:center;gap:12px}.stage-action-sep{color:var(--text-dim);font-size:.8rem;-webkit-user-select:none;user-select:none}.kbd-group{display:inline-flex;align-items:center;gap:4px}.kbd-sep{color:var(--text-dim);font-size:.72rem}.kbd{display:inline-flex;align-items:center;justify-content:center;font-family:var(--font-mono);font-size:.68rem;line-height:1.25;padding:2px 6px;border-radius:5px;background:var(--bg-subtle);border:1px solid var(--border-strong);box-shadow:0 1px #00000047;color:var(--text-secondary)}[data-theme=light] .kbd{background:var(--bg-elevated);box-shadow:0 1px #1d1f241f}.next-preview{display:flex;align-items:baseline;gap:10px;padding:6px 0;border-radius:0;background:transparent;border:none;color:var(--text-muted);font-family:var(--font-sentence);font-size:.92rem;opacity:.68;overflow:hidden}.next-preview-label{font-family:var(--font-sans);font-size:.76rem;font-weight:500;letter-spacing:.01em;color:var(--text-muted);flex-shrink:0}.next-preview-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.results-container{display:flex;flex-direction:column;gap:28px;padding:12px 0;animation:fadeIn .22s ease;--results-cols: repeat(5, minmax(0, 1fr));--results-col-gap: 20px}@media(max-width:780px){.results-container{--results-cols: repeat(auto-fit, minmax(130px, 1fr))}}.results-strip{display:grid;grid-template-columns:var(--results-cols);gap:20px var(--results-col-gap);padding-bottom:22px;border-bottom:1px solid var(--border)}.results-metric{display:flex;flex-direction:column;gap:4px}.results-metric-label{font-family:var(--font-sans);font-size:.76rem;font-weight:500;letter-spacing:.01em;color:var(--text-muted);display:flex;align-items:center;gap:8px}.results-metric-value{display:flex;align-items:flex-end;gap:10px;min-height:2.6rem;font-family:var(--font-mono);font-size:2rem;font-weight:500;color:var(--text-primary);font-variant-numeric:tabular-nums;line-height:1.05}.results-metric-hero{font-size:2.35rem;font-weight:600}.new-best-hanko{display:block;width:24px;height:24px;color:var(--hanko-ink);opacity:.88;margin-bottom:3px;flex-shrink:0;transform:rotate(-5deg);transform-origin:center;animation:hankoStampIn .24s cubic-bezier(.22,1,.36,1) both}@keyframes hankoStampIn{0%{opacity:0;transform:rotate(-8deg) scale(1.32)}70%{opacity:.96;transform:rotate(-4.5deg) scale(.97)}to{opacity:.92;transform:rotate(-5deg) scale(1)}}.results-metric-sub{font-size:.75rem;color:var(--text-muted)}.results-grid{display:grid;grid-template-columns:var(--results-cols);gap:28px var(--results-col-gap);align-items:start}.results-grid>.results-section:first-child{grid-column:span 3}.results-grid>.results-section:last-child{grid-column:span 2}@media(max-width:780px){.results-grid{grid-template-columns:1fr}.results-grid>.results-section:first-child,.results-grid>.results-section:last-child{grid-column:auto}}.results-section{display:flex;flex-direction:column;gap:14px}.results-history-block{display:flex;flex-direction:column;gap:12px;padding-top:18px;border-top:1px solid var(--border)}.results-typed-block{display:flex;flex-direction:column;gap:10px;padding-top:16px;border-top:1px solid var(--border)}.results-typed-single{display:flex;flex-direction:column;gap:4px}.results-typed-label{font-size:.75rem;font-weight:500;color:var(--text-muted)}.results-typed-toggle{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;font-size:.8rem;font-weight:500;color:var(--text-secondary);padding:2px 0;transition:color .14s ease}.results-typed-toggle:hover{color:var(--text-primary)}.results-typed-chevron{font-size:.72rem;color:var(--text-muted)}.results-typed-list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column}.results-typed-item{display:flex;flex-direction:column;gap:2px;padding:8px 0;border-bottom:1px solid var(--border)}.results-typed-item:last-child{border-bottom:none}.results-typed-text{margin:0;font-family:var(--font-sentence);font-size:.96rem;line-height:1.65;color:var(--text-primary);-webkit-user-select:text;user-select:text}.results-typed-source{font-size:.74rem;color:var(--text-muted)}.panel-header{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.panel-title{font-size:.84rem;font-weight:500;color:var(--text-primary);letter-spacing:.03em;margin:0}.panel-subtitle{font-family:var(--font-mono);font-size:.72rem;color:var(--text-muted)}.sparkline-svg{width:100%;height:150px;display:block}.mistype-list{display:flex;flex-direction:column}.mistype-row{display:grid;grid-template-columns:28px 1fr 38px;align-items:center;gap:12px;padding:7px 0;border-bottom:1px solid var(--border)}.mistype-row:last-child{border-bottom:none}.mistype-kana{display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--border-strong);border-radius:3px;font-size:1rem;font-weight:500;line-height:1;color:var(--accent)}.mistype-bar-track{height:4px;border-radius:2px;background:var(--bg-subtle);overflow:hidden}.mistype-bar-fill{height:100%;border-radius:2px;background:var(--mistype-bar)}.mistype-count{font-family:var(--font-mono);font-size:.76rem;color:var(--text-muted);text-align:right;font-variant-numeric:tabular-nums}.editorial-perfect{display:flex;align-items:flex-start;gap:12px;padding-top:6px}.perfect-maru{width:28px;height:28px;color:var(--hanko-ink);opacity:.85;flex-shrink:0}.editorial-perfect-copy{display:flex;flex-direction:column;gap:3px}.editorial-perfect-title{color:var(--text-primary);font-size:.9rem;font-weight:500;letter-spacing:.01em}.editorial-perfect-sub{font-family:var(--font-mono);font-size:.72rem;color:var(--text-muted)}.results-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.editorial-btn-primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:7px 16px;border-radius:8px;font-size:.81rem;font-weight:500;background:var(--bg-hover);color:var(--text-primary);border:1px solid var(--border-strong);box-shadow:inset 0 1px #ffffff0d;transition:opacity .14s ease,background-color .14s ease,border-color .14s ease,transform .1s ease}.editorial-btn-primary:hover{background:#ece8df1f;border-color:#ece8df42}.editorial-btn-primary:active:not(:disabled){transform:translateY(.5px)}[data-theme=light] .editorial-btn-primary{background:var(--text-primary);color:var(--bg);border-color:transparent;box-shadow:0 1px 2px #1d1f2424}[data-theme=light] .editorial-btn-primary:hover{background:var(--text-primary);opacity:.88}.editorial-btn-accent{background:var(--accent);color:#fffaf5;border-color:transparent;box-shadow:0 1px 3px #00000047,inset 0 1px #ffffff29}.editorial-btn-accent:hover:not(:disabled){background:var(--accent);border-color:transparent;filter:brightness(1.06)}[data-theme=light] .editorial-btn-accent{background:var(--accent);color:#fffaf5;box-shadow:0 1px 3px #c9412f47}[data-theme=light] .editorial-btn-accent:hover:not(:disabled){background:var(--accent);opacity:1;filter:brightness(1.05)}.editorial-btn-primary:disabled{opacity:.35;cursor:not-allowed}.results-buttons{display:flex;align-items:center;gap:10px}.editorial-btn-secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:7px 16px;border-radius:8px;font-size:.81rem;font-weight:500;background:transparent;color:var(--text-secondary);border:1px solid var(--border-strong);transition:color .14s ease,background-color .14s ease,border-color .14s ease,transform .1s ease}.editorial-btn-secondary:hover{color:var(--text-primary);background:var(--bg-subtle)}.editorial-btn-secondary:active{transform:translateY(.5px)}.kbd-inv{font-family:var(--font-mono);font-size:.68rem;padding:1px 5px;border-radius:3px;border:1px solid currentColor;opacity:.65}.quiet-danger-link{font-size:.78rem;color:var(--text-muted);transition:color .14s ease}.quiet-danger-link:hover{color:var(--error)}.quiet-danger-link.is-armed{color:var(--error);font-weight:600}.history-clear-confirm{display:inline-flex;align-items:baseline;flex-wrap:wrap;gap:6px 14px}.history-clear-question{font-size:.78rem;color:var(--text-secondary)}.history-table-wrap{overflow-x:auto}.history-table{width:100%;border-collapse:collapse;font-size:.8rem}.history-table th{text-align:left;font-family:var(--font-sans);font-size:.75rem;font-weight:500;letter-spacing:.01em;color:var(--text-muted);padding:7px 8px;border-bottom:1px solid var(--border-strong)}.history-table th.num,.history-table td.num{text-align:right;font-variant-numeric:tabular-nums}.history-table td{padding:9px 8px;border-bottom:1px solid var(--border);color:var(--text-secondary)}.history-table td.mono{font-family:var(--font-mono);font-variant-numeric:tabular-nums;color:var(--text-primary)}.history-table td.history-date{color:var(--text-secondary);white-space:nowrap}.history-table td.mode-cell{font-family:var(--font-sans);font-weight:400;color:var(--text-secondary);white-space:nowrap}.history-table td.kpm-cell{font-family:var(--font-mono);font-weight:600;color:var(--text-primary);white-space:nowrap}.history-table td.muted-num{font-family:var(--font-mono);font-weight:400;color:var(--text-secondary)}.pb-tag{display:inline-block;font-family:var(--font-mono);font-size:.62rem;font-weight:600;letter-spacing:.05em;color:var(--accent);border:1px solid var(--accent-glow);border-radius:4px;padding:0 4px;margin-right:6px;vertical-align:1px}.history-table td.muted{color:var(--text-muted)}.history-table td.strong{font-weight:600}.history-table tr:last-child td{border-bottom:none}.history-table-truncated tbody tr{transition:opacity .16s ease}.history-table-truncated tbody tr:nth-last-child(2){opacity:.8}.history-table-truncated tbody tr:last-child{opacity:.55}.history-table-truncated tbody tr:hover{opacity:1}.history-row-expandable{cursor:pointer;transition:background-color .12s ease}.history-row-expandable:hover,.history-row-expandable.is-expanded{background:var(--bg-hover)}.history-row-expandable:hover .history-chevron,.history-row-expandable.is-expanded .history-chevron{color:var(--text-primary)}.history-chevron{display:inline-block;width:12px;margin-right:5px;color:var(--text-secondary);transition:color .12s ease}.history-summary-block{display:flex;flex-direction:column;gap:18px;padding:2px 2px 20px;border-bottom:1px solid var(--border)}.profile-progress-block{display:flex;flex-direction:column;gap:14px;padding:2px 2px 18px;border-bottom:1px solid var(--border)}.profile-level-row{display:flex;flex-direction:column;gap:6px}.profile-level-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.profile-level-tag{font-family:var(--font-mono);font-size:.92rem;font-weight:600;color:var(--text-primary)}.profile-level-next{font-family:var(--font-mono);font-size:.72rem;color:var(--text-muted)}.profile-level-track{height:3px;border-radius:2px;background:var(--bg-subtle);overflow:hidden}.profile-level-fill{height:100%;background:var(--text-secondary);transition:width .25s cubic-bezier(.22,1,.36,1)}.profile-stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}@media(max-width:600px){.profile-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.profile-sync-area{margin-left:auto;align-self:center;display:inline-flex;align-items:center;gap:14px;padding-bottom:6px}.profile-sync-area .quiet-action{gap:6px;font-size:.78rem}.profile-sync-area .quiet-action:disabled{cursor:default;color:var(--text-muted)}.profile-sync-sep{width:1px;height:12px;background:var(--border-strong)}.sync-icon{flex-shrink:0}.sync-spinner{width:12px;height:12px;margin:0 1px;flex-shrink:0;border:1.5px solid var(--border-strong);border-top-color:var(--text-secondary);border-radius:50%;animation:syncSpin .8s linear infinite}@keyframes syncSpin{to{transform:rotate(360deg)}}.profile-sync-error{font-size:.74rem;color:var(--error)}.history-summary-top{display:flex;flex-wrap:wrap;gap:16px 48px}.history-mode-bests-section{display:flex;flex-direction:column;gap:8px}.mode-bests-grid{display:flex;flex-wrap:wrap;gap:10px 32px}.mode-best-stat{display:flex;flex-direction:column;gap:2px}.mode-best-name{font-size:.72rem;color:var(--text-muted)}.mode-best-kpm{font-family:var(--font-mono);font-size:1.2rem;font-weight:600;color:var(--text-primary);font-variant-numeric:tabular-nums;line-height:1.15}.history-drawer-row td{padding:0;border-bottom:1px solid var(--border)}.history-drawer{margin:4px 0 8px;padding:10px 14px 12px 16px;background:var(--bg);border-left:2px solid var(--accent);border-radius:0 8px 8px 0;display:flex;flex-direction:column;gap:8px}.history-drawer-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.history-sentence-list{display:flex;flex-direction:column}.history-sentence-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px solid var(--border)}.history-sentence-item:last-child{border-bottom:none}.history-sentence-info{display:flex;flex-direction:column;gap:2px;min-width:0}.history-sentence-text{font-size:.84rem;color:var(--text-primary);line-height:1.5;word-break:break-all}.history-sentence-source{font-size:.72rem;color:var(--text-muted)}.history-retry-btn{flex-shrink:0;font-size:.74rem;font-weight:500;color:var(--text-secondary);padding:3px 9px;border-radius:5px;border:1px solid var(--border-strong);transition:color .12s ease,border-color .12s ease,background-color .12s ease}.history-retry-btn:hover{color:var(--text-primary);border-color:var(--text-secondary);background:var(--bg-subtle)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#06080cad;backdrop-filter:blur(8px) saturate(1.08);-webkit-backdrop-filter:blur(8px) saturate(1.08);display:grid;place-items:center;padding:20px;z-index:100;animation:backdropFadeIn .16s ease-out}[data-theme=light] .modal-backdrop{background:#18181c47}.modal-backdrop:has(.history-modal-card,.info-modal-card){align-items:start;padding-top:max(20px,calc((100vh - min(86vh,760px))/2))}.modal-backdrop:has(.history-modal-card){padding-top:max(20px,18vh)}.history-modal-card{max-height:min(760px,calc(82vh - 20px))}.modal-card{width:100%;max-width:660px;max-height:min(86vh,760px);overflow:hidden;background:var(--bg-elevated);border:1px solid var(--border-strong);border-radius:14px;padding:0;box-shadow:0 28px 72px #0000009e,0 4px 16px #00000052,inset 0 1px #ffffff0f;display:flex;flex-direction:column;animation:modalCardIn .2s cubic-bezier(.16,1,.3,1)}[data-theme=light] .modal-card{border-color:#1d1f241a;box-shadow:0 24px 64px #1d1f2429,0 4px 14px #1d1f2412}.modal-body{flex:1;min-height:0;overflow-y:auto;padding:20px 24px 22px;display:flex;flex-direction:column;gap:20px}.modal-card,.modal-body,.custom-textarea,.editorial-preview,.history-table-wrap,.display-popover{scrollbar-width:thin;scrollbar-color:rgba(236,232,223,.18) transparent}[data-theme=light] .modal-card,[data-theme=light] .modal-body,[data-theme=light] .custom-textarea,[data-theme=light] .editorial-preview,[data-theme=light] .history-table-wrap,[data-theme=light] .display-popover{scrollbar-color:rgba(29,31,36,.18) transparent}.modal-card::-webkit-scrollbar,.modal-body::-webkit-scrollbar,.custom-textarea::-webkit-scrollbar,.editorial-preview::-webkit-scrollbar,.history-table-wrap::-webkit-scrollbar,.display-popover::-webkit-scrollbar{width:6px;height:6px}.modal-card::-webkit-scrollbar-track,.modal-body::-webkit-scrollbar-track,.custom-textarea::-webkit-scrollbar-track,.editorial-preview::-webkit-scrollbar-track,.history-table-wrap::-webkit-scrollbar-track,.display-popover::-webkit-scrollbar-track{background:transparent}.modal-card::-webkit-scrollbar-thumb,.modal-body::-webkit-scrollbar-thumb,.custom-textarea::-webkit-scrollbar-thumb,.editorial-preview::-webkit-scrollbar-thumb,.history-table-wrap::-webkit-scrollbar-thumb,.display-popover::-webkit-scrollbar-thumb{background-color:#ece8df29;border-radius:999px}.modal-card::-webkit-scrollbar-thumb:hover,.modal-body::-webkit-scrollbar-thumb:hover,.custom-textarea::-webkit-scrollbar-thumb:hover,.editorial-preview::-webkit-scrollbar-thumb:hover,.history-table-wrap::-webkit-scrollbar-thumb:hover,.display-popover::-webkit-scrollbar-thumb:hover{background-color:#ece8df4d}[data-theme=light] .modal-card::-webkit-scrollbar-thumb,[data-theme=light] .modal-body::-webkit-scrollbar-thumb,[data-theme=light] .custom-textarea::-webkit-scrollbar-thumb,[data-theme=light] .editorial-preview::-webkit-scrollbar-thumb,[data-theme=light] .history-table-wrap::-webkit-scrollbar-thumb,[data-theme=light] .display-popover::-webkit-scrollbar-thumb{background-color:#1d1f2429}[data-theme=light] .modal-card::-webkit-scrollbar-thumb:hover,[data-theme=light] .modal-body::-webkit-scrollbar-thumb:hover,[data-theme=light] .custom-textarea::-webkit-scrollbar-thumb:hover,[data-theme=light] .editorial-preview::-webkit-scrollbar-thumb:hover,[data-theme=light] .history-table-wrap::-webkit-scrollbar-thumb:hover,[data-theme=light] .display-popover::-webkit-scrollbar-thumb:hover{background-color:#1d1f244d}html{scrollbar-width:thin;scrollbar-color:rgba(236,232,223,.18) transparent;scrollbar-gutter:stable}html[data-theme=light]{scrollbar-color:rgba(29,31,36,.18) transparent}html::-webkit-scrollbar{width:8px;height:8px}html::-webkit-scrollbar-track{background:transparent}html::-webkit-scrollbar-thumb{background-color:#ece8df29;border-radius:999px}html::-webkit-scrollbar-thumb:hover{background-color:#ece8df4d}html[data-theme=light]::-webkit-scrollbar-thumb{background-color:#1d1f2429}html[data-theme=light]::-webkit-scrollbar-thumb:hover{background-color:#1d1f244d}.modal-header{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 24px 15px;border-bottom:1px solid var(--border)}.modal-title{margin:0;font-size:1.05rem;font-weight:600;letter-spacing:.015em;color:var(--text-primary)}.modal-close{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;color:var(--text-muted);transition:color .14s ease,background-color .14s ease}.modal-close:hover{color:var(--text-primary);background:var(--bg-hover)}.summary-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;padding-bottom:16px;border-bottom:1px solid var(--border)}.summary-metric{display:flex;flex-direction:column;gap:3px}.summary-label{font-family:var(--font-mono);font-size:.68rem;letter-spacing:.08em;color:var(--text-muted)}.summary-value{font-family:var(--font-mono);font-size:1.65rem;font-weight:500;color:var(--text-primary);font-variant-numeric:tabular-nums;line-height:1.15}.summary-sub{font-size:.72rem;color:var(--text-muted)}.editorial-empty{padding:24px 0;text-align:center;font-size:.84rem;color:var(--text-muted)}.syntax-guide{display:flex;flex-direction:column;font-size:.78rem}.syntax-item{display:grid;grid-template-columns:170px 1fr;align-items:baseline;gap:16px;padding:8px 0;border-bottom:1px solid var(--border)}.syntax-item:last-child{border-bottom:none}.syntax-label{color:var(--text-secondary)}.syntax-item code{font-family:var(--font-mono),"Noto Sans JP",sans-serif;font-size:.76rem;color:var(--text-primary);overflow-wrap:anywhere}.custom-textarea{width:100%;min-height:160px;padding:14px 16px;border-radius:8px;border:1px solid var(--border-strong);background:var(--bg);color:var(--text-primary);font-family:var(--font-sans);font-size:.92rem;line-height:1.7;resize:vertical;transition:border-color .14s ease,box-shadow .14s ease}.custom-textarea:focus{outline:none;border-color:var(--text-secondary);box-shadow:0 0 0 3px #ece8df12}[data-theme=light] .custom-textarea:focus{box-shadow:0 0 0 3px #1d1f2412}.editorial-preview{display:flex;flex-direction:column;gap:8px;padding:12px 14px;border-radius:10px;background:var(--bg-subtle);border:1px solid var(--border)}.editorial-preview-row{display:flex;flex-direction:column;gap:2px;padding:7px 0;border-bottom:1px solid var(--border);font-size:.84rem}.editorial-preview-row:last-child{border-bottom:none;padding-bottom:0}.editorial-preview-text{color:var(--text-primary)}.editorial-preview-kana{font-size:.76rem;color:var(--text-muted)}.modal-tabs{display:inline-flex;align-self:flex-start;align-items:baseline;gap:20px}.modal-tab-btn{font-size:.84rem;font-weight:400;color:var(--text-muted);padding:4px 0 7px;border-bottom:1.5px solid transparent;transition:color .14s ease,border-color .14s ease}.modal-tab-btn:hover{color:var(--text-secondary)}.modal-tab-btn.active{color:var(--text-primary);font-weight:600;border-bottom-color:var(--text-primary)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.epub-panel{display:flex;flex-direction:column;gap:16px}.epub-dropzone{display:flex;flex-direction:column;align-items:center;gap:10px;border:1px dashed var(--border-strong);border-radius:8px;padding:26px 20px;text-align:center;cursor:pointer;background:var(--bg);transition:border-color .16s ease,background-color .16s ease}.epub-dropzone-icon{color:var(--text-muted);transition:color .16s ease,transform .16s ease}.epub-dropzone:hover,.epub-dropzone.is-dragging{border-color:var(--text-secondary);background:var(--bg-subtle)}.epub-dropzone:hover .epub-dropzone-icon,.epub-dropzone.is-dragging .epub-dropzone-icon{color:var(--text-primary);transform:translateY(-1px)}.epub-dropzone-empty,.epub-dropzone-file{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:.85rem;color:var(--text-primary)}.epub-filename{font-family:var(--font-mono);font-size:.84rem;font-weight:500;word-break:break-all}.epub-params{display:flex;flex-direction:column}.epub-continue .epub-params{padding:10px 0 0;border-radius:0;background:transparent;border:none;border-top:1px solid var(--border)}.epub-param-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--border)}.epub-param-row:last-child{border-bottom:none}.epub-len-inputs{display:inline-flex;align-items:center;gap:6px}.epub-num-input{width:58px;padding:4px 6px;border-radius:6px;border:1px solid var(--border-strong);background:var(--bg-elevated);color:var(--text-primary);font-family:var(--font-mono);font-size:.78rem;text-align:center;transition:border-color .14s ease,box-shadow .14s ease}.epub-num-input:focus{outline:none;border-color:var(--text-secondary);box-shadow:0 0 0 2px #ece8df12}[data-theme=light] .epub-num-input:focus{box-shadow:0 0 0 2px #1d1f2412}.epub-status{font-size:.82rem;color:var(--text-secondary);padding:4px 0}.epub-error{font-size:.82rem;color:var(--error);padding:8px 12px;border-radius:8px;background:var(--error-soft)}.modal-footer{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:13px 24px;background:#00000024;border-top:1px solid var(--border)}[data-theme=light] .modal-footer{background:#1d1f2406}.info-modal-card{max-width:720px}.info-tabs-row{flex-shrink:0;display:flex;align-items:flex-end;padding:10px 30px 0;border-bottom:1px solid var(--border)}.info-tabs-row .modal-tabs{align-self:flex-end}.info-tabs-row .modal-tab-btn{margin-bottom:-1px}.info-modal-card .modal-body{padding:22px 30px 30px;gap:34px}.info-section{display:flex;flex-direction:column;gap:14px}.info-section-title{margin:0;font-family:var(--font-sans);font-size:.8rem;font-weight:600;letter-spacing:.01em;color:var(--text-secondary)}.editorial-list{display:flex;flex-direction:column}.editorial-level-row{display:grid;grid-template-columns:112px 1fr;align-items:baseline;gap:16px;padding:13px 0;border-bottom:1px solid var(--border)}.editorial-level-row:last-child{border-bottom:none}.editorial-level-body{display:flex;flex-direction:column;gap:5px}.editorial-level-summary{font-size:.85rem;line-height:1.6;color:var(--text-primary)}.editorial-level-criteria{font-size:.74rem;line-height:1.65;color:var(--text-muted)}.info-modal-card .modal-body:focus{outline:none}.editorial-equiv{font-family:var(--font-mono);font-size:.72rem;color:var(--text-muted);letter-spacing:.02em}.editorial-equiv-sep{opacity:.6}.editorial-equiv-native{font-family:var(--font-mono),"Noto Sans JP",sans-serif;font-weight:300}.info-row-desc{font-size:.81rem;line-height:1.72;color:var(--text-secondary)}.editorial-cat-row{display:flex;align-items:baseline;justify-content:space-between;gap:20px;padding:12px 0;border-bottom:1px solid var(--border)}.editorial-cat-row:last-child{border-bottom:none}.editorial-cat-main{display:flex;flex-direction:column;gap:4px}.editorial-cat-name{font-size:.85rem;font-weight:500;color:var(--text-primary)}.info-paragraph{margin:0;font-size:.81rem;line-height:1.82;color:var(--text-secondary)}.info-caveat{margin:4px 0 0;font-size:.75rem;line-height:1.7;color:var(--text-muted)}.editorial-focus-row{display:flex;align-items:center;justify-content:space-between;gap:24px}.editorial-focus-row .popover-segments{flex-shrink:0;flex-wrap:nowrap}.editorial-shortcuts-grid{display:flex;flex-direction:column}.editorial-shortcut-row{display:grid;grid-template-columns:128px 1fr;align-items:baseline;gap:16px;padding:10px 0;border-bottom:1px solid var(--border)}.editorial-shortcut-row:last-child{border-bottom:none}.editorial-shortcut-keys{display:inline-flex;align-items:baseline;gap:6px;white-space:nowrap}.editorial-shortcut-or{font-size:.72rem;color:var(--text-dim)}.info-cat-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.info-cat-name{font-size:.84rem;font-weight:600;color:var(--text-primary)}.info-cat-count{font-family:var(--font-mono);font-size:.74rem;color:var(--accent);font-weight:600}.info-paragraph{margin:0;font-size:.8rem;line-height:1.7;color:var(--text-secondary)}.info-paragraph code{font-family:var(--font-mono);font-size:.75rem;color:var(--text-primary);background:var(--bg-subtle);padding:1px 5px;border-radius:4px}.info-shortcuts-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:8px}.info-shortcut-item{display:flex;align-items:center;gap:10px;padding:7px 10px;border-radius:8px;background:var(--bg-subtle)}.info-focus-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:8px 10px;border-radius:8px;background:var(--bg-subtle)}.footer-focus-link{font-size:.75rem;color:var(--text-secondary);text-decoration:underline;text-decoration-color:var(--border-strong);text-underline-offset:3px;transition:color .15s ease}.footer-focus-link:hover{color:var(--accent)}.header,.app-footer,.stage-actions,.next-preview{transition:opacity .25s ease}.app-shell.focus-active .header,.app-shell.focus-active .app-footer,.app-shell.focus-active .stage-actions,.app-shell.focus-active .next-preview,.app-shell.focus-active .stage-prompt{opacity:0;pointer-events:none}@media(hover:none)and (pointer:coarse){.stage-actions .kbd-group,.app-footer .footer-shortcuts{display:none}}.typing-stage.is-touch-typing{margin-bottom:60vh;scroll-margin-top:10px}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.header,.app-footer,.stage-actions,.next-preview,.stage-prompt,.controls-strip,.input-buffer-echo,.seg-glide-highlight,.seg-glide-fill,.seg-glide-underline{transition-duration:.01ms!important}.stage-card.error-flash,.stage-prompt-dot,.input-buffer-caret,.input-buffer-echo,.controls-strip,.typing-stage,.results-container,.modal-backdrop.is-closing,.modal-backdrop.is-closing .modal-card,.display-popover.is-closing{animation:none!important}}.app-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-top:12px;border-top:1px solid var(--border);font-size:.75rem;color:var(--text-muted)}.footer-shortcuts{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.footer-shortcut-item{display:inline-flex;align-items:center;gap:8px}@keyframes mistypeShake{0%,to{transform:translate(0)}30%{transform:translate(-1.5px)}65%{transform:translate(1.5px)}}@keyframes pulseDot{0%,to{opacity:.35;transform:scale(.9)}50%{opacity:1;transform:scale(1.1)}}@keyframes echoFocusIn{0%{opacity:0;transform:translate(-18px)}to{opacity:1;transform:translate(0)}}@keyframes echoFocusOut{0%{opacity:0;transform:translate(18px)}to{opacity:1;transform:translate(0)}}@keyframes caretBlink{0%,55%{opacity:1}56%,to{opacity:0}}.modal-backdrop.is-closing,.display-popover.is-closing{animation:fadeOut .16s ease forwards;pointer-events:none}.modal-backdrop.is-closing .modal-card{animation:modalCardOut .16s ease forwards}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes modalCardOut{0%{transform:scale(1)}to{transform:scale(.985) translateY(4px)}}@keyframes backdropFadeIn{0%{opacity:0}to{opacity:1}}@keyframes modalCardIn{0%{opacity:0;transform:scale(.975) translateY(8px)}to{opacity:1;transform:scale(1) translateY(0)}}@keyframes popoverIn{0%{opacity:0;transform:scale(.97) translateY(-4px)}to{opacity:1;transform:scale(1) translateY(0)}}@keyframes fadeIn{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@media(max-width:640px){.app-shell{padding:14px 14px 20px}.header-top{position:relative}.popover-wrap{position:static}.display-popover{left:0;right:auto;top:calc(100% + 8px);min-width:0;width:100%;max-width:360px}.popover-row{flex-wrap:wrap;row-gap:6px}.stage-card{padding:18px 0 14px}.text-nav-row{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-right:-14px;padding-right:40px;-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 40px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 40px),transparent)}.text-nav-modes{gap:10px}.text-nav-row::-webkit-scrollbar{display:none}.text-nav-row>*{flex-shrink:0}.hud-metrics{gap:14px}.modal-backdrop{padding:12px}.modal-header{padding:15px 18px 13px}.modal-body{padding:16px 18px 18px}.info-tabs-row{padding:8px 18px 0}.info-tabs-row:has(.profile-sync-area){flex-wrap:wrap}.profile-sync-area{order:-1;width:100%;margin-left:0;padding:2px 0 8px}.modal-footer{padding:12px 18px}.editorial-level-row{grid-template-columns:1fr;gap:6px}.syntax-item,.editorial-shortcut-row{grid-template-columns:1fr;gap:4px}}
