:root{--bg:#fff;--surface:#fff;--surface-2:#eee;--surface-3:#ddd;--text:#222;--text-muted:#666;--border:#b9b9b9;--accent:#286451;--accent-text:#fff;--accent-soft:#e9f2ee;--hl-color:#ffd54a;--on-hl:#222;--focus-ring:var(--accent);--muted-on-key:#575757;--danger:#c62f2f;--on-danger:#fff;--brand-key:#337561;--brand-soft:#edf2ef;--shadow:none;--key-face:linear-gradient(#fcfcfc, #ededed);--key-border:#aaa;--key-inset:inset 0 1px #fff;--editor-border:#8fa1b4;--sample-text:#414b51;--radius:2px;--ipa-font:"Charis SIL", "Gentium Plus", "Doulos SIL", "Noto Sans", "Segoe UI", "DejaVu Sans", "Lucida Sans Unicode", Arial, sans-serif;--ui-font:Arial, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;--control-font:"Noto Sans", system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#12151b;--surface:#1b2029;--surface-2:#232a35;--surface-3:#2e3643;--text:#e6e9ef;--text-muted:#9aa4b5;--border:#353e4d;--accent:#9bd6bb;--accent-text:#132a20;--accent-soft:#253b32;--hl-color:#b38b12;--on-hl:#12151b;--muted-on-key:#aeb7c6;--danger:#ff7b7b;--on-danger:#2a0a0a;--brand-key:#8be3c0;--brand-soft:#193c35;--shadow:none;--key-face:linear-gradient(#333b45, #252c35);--key-border:#65717f;--key-inset:inset 0 1px #48515e;--editor-border:#7c90a8;--sample-text:#c2ccd6;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*,:before,:after{box-sizing:border-box}html,body{background:var(--bg);color:var(--text);font-family:var(--ui-font);margin:0;font-size:15px;line-height:1.5}.ipa{font-family:var(--ipa-font)}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}a{color:var(--accent)}kbd{border:1px solid var(--border);background:var(--surface);font-family:var(--ui-font);white-space:nowrap;border-bottom-width:2px;border-radius:4px;padding:0 .35em;font-size:.85em;line-height:1.5;display:inline-block}#app{max-width:1320px;margin:0 auto;padding:16px}.app-header{grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"brand brand lang""title nav nav";align-items:center;gap:8px 12px;margin-bottom:4px;display:grid}.app-header h1{grid-area:title}.app-header .page-nav{grid-area:nav}@media (width>=1101px){.app-header .page-nav{justify-self:end}}.app-header .lang-slot{grid-area:lang}.lang-slot{justify-content:flex-end;align-items:center;gap:8px;display:flex}.support-link{border:1px solid var(--border);background:var(--surface);color:var(--text);white-space:nowrap;border-radius:999px;padding:7px 14px;text-decoration:none}@media (width<=640px){.app-header .brand{min-width:0;max-width:100%}.app-header .brand-name{white-space:nowrap;min-width:0;overflow:hidden}}.brand.brand-compact .brand-name{display:none}.support-link:hover{border-color:var(--accent);color:var(--accent)}@media (width<=640px){.app-header{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"brand lang""title title""nav nav"}}.brand{color:var(--text);font-family:var(--ui-font);letter-spacing:-.01em;grid-area:brand;justify-self:start;align-items:center;gap:8px;font-size:1.15rem;font-weight:700;text-decoration:none;display:inline-flex}.brand img{display:block}.brand-key{color:var(--brand-key)}.home-banner{object-fit:cover;border-radius:var(--radius);background:#0f1f31;grid-column:1/-1;width:100%;height:clamp(110px,18vw,220px);display:block}h1{margin:0;font-size:1.6rem;line-height:1.25}h1 .subtitle{color:var(--text-muted);font-size:.75em;font-weight:400}.page-nav{align-items:center;gap:8px;display:flex}.home-link{color:var(--text-muted);font-size:.9rem}.kb-menu{position:relative}.kb-menu>summary{border:1px solid var(--border);background:var(--surface);cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:999px;padding:6px 14px;font-size:.9rem;list-style:none}.kb-menu>summary::-webkit-details-marker{display:none}.kb-menu>summary:after{content:" ▾";color:var(--text-muted)}.kb-menu-body{z-index:60;border:1px solid var(--border);background:var(--surface);border-radius:12px;grid-template-columns:repeat(3,max-content);gap:4px 24px;max-height:70vh;padding:14px 18px;display:grid;position:absolute;top:calc(100% + 6px);right:0;overflow:auto;box-shadow:0 12px 40px #0000002e}.kb-menu-section h3{color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em;margin:0 0 4px;font-size:.75rem;font-weight:600}.kb-menu-section ul{margin:0;padding:0;list-style:none}.kb-menu-section a{color:var(--text);white-space:nowrap;padding:3px 0;font-size:.9rem;text-decoration:none;display:block}.kb-menu-section a:hover{color:var(--accent)}.kb-menu-section a[aria-current=page]{color:var(--accent);font-weight:600}.intro{color:var(--text-muted);margin:4px 0 14px}.app-body{grid-template-columns:minmax(0,1fr) 300px;align-items:start;gap:28px;display:grid}.app-rail{gap:14px;display:grid}.kb-sidebar{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);padding:12px 14px}.kb-sidebar h2{margin:0 0 8px;font-size:.95rem}.kb-sidebar-list{grid-template-columns:1fr 1fr;gap:0 14px;display:grid}.kb-sidebar-list .kb-menu-section{grid-column:1/-1}.kb-sidebar-list .kb-menu-section ul{grid-template-columns:1fr 1fr;gap:0 12px;display:grid}.kb-sidebar-list .kb-menu-section a{white-space:normal;padding:2px 0;font-size:.88rem}.ad-slot{place-items:center;margin:18px auto;display:grid;overflow:hidden}.ad-slot[hidden]{display:none}.ad-banner{width:100%;max-width:728px;min-height:90px}.ad-rectangle{width:300px;min-height:250px;margin:0}.ad-preview{border:2px dashed var(--border);color:var(--text-muted);letter-spacing:.04em;border-radius:8px;font-size:.78rem}@media (width>=1101px){.kb-menu{display:none}}@media (width<=1100px){.app-body{grid-template-columns:minmax(0,1fr)}.app-rail{display:none}}@media (width<=760px){.kb-menu-body{grid-template-columns:1fr 1fr;max-height:calc(100vh - 80px);position:fixed;top:64px;left:16px;right:16px;overflow-y:auto}}.toolbar{flex-wrap:wrap;align-items:center;gap:6px 12px;margin-bottom:8px;display:flex}.tb-group{gap:4px;display:flex}.tb-end{margin-left:auto}@media (width>=641px){.toolbar{column-gap:8px}.toolbar .tb-group{gap:2px}.toolbar .tb{min-width:34px;padding:0 6px}.toolbar .tb.icon{width:34px;padding:0}}button{font:inherit;color:inherit}.tb{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:8px;min-width:36px;height:36px;padding:0 10px}@media (hover:hover) and (pointer:fine){.tb:hover{background:var(--surface-2)}.tb:disabled:hover{background:var(--surface)}.tb.primary:hover{filter:brightness(1.08)}}.tb:disabled{opacity:.45;cursor:default}.tb.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text);font-weight:600}.tb.fmt-bold{font-weight:700}.tb.fmt-italic{font-style:italic}.tb.fmt-underline{text-decoration:underline}.tb.icon{justify-content:center;align-items:center;width:36px;padding:0;font-size:1.2rem;font-weight:600;display:inline-flex}.tb-svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:20px;height:20px}.editor{resize:vertical;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);min-height:max(16em,55vh);box-shadow:var(--shadow);white-space:pre-wrap;overflow-wrap:anywhere;outline:none;margin-top:10px;padding:12px 14px;font-size:20px;line-height:1.6;overflow-y:auto}.editor:is(:empty,.is-empty):before{content:attr(data-placeholder);color:var(--text-muted);font-family:var(--ui-font);pointer-events:none;font-size:15px}.ipa-tool{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.ipa-panel{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);flex-direction:column;gap:8px;min-width:0;padding:12px 14px 14px;display:flex}.ipa-panel-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;min-height:36px;display:flex}.ipa-panel h2{margin:0;font-size:1.05rem}.ipa-step{color:var(--text-muted);margin-right:8px;font-weight:400}.ipa-panel-actions{gap:4px;display:flex}.ipa-input,.ipa-output{border:1px solid var(--editor-border);border-radius:var(--radius);background:var(--surface);min-height:20em;color:var(--text);flex:1;padding:10px 12px}.ipa-input{width:100%;font:17px/1.6 var(--ui-font);resize:vertical}.ipa-output{max-height:70vh;overflow-y:auto}.ipa-meta{color:var(--text-muted);justify-content:space-between;gap:8px;font-size:.85rem;display:flex}.ipa-meta .over-limit,.ipa-meta.over-limit{color:var(--danger)}.ipa-status{min-height:1.5em;color:var(--text-muted);margin:0;font-size:.85rem}.ipa-status.error{color:var(--danger)}.tb.ipa-retry{margin-top:8px;display:block}.ipa-empty{color:var(--text-muted);margin:0}.ipa-line{flex-wrap:wrap;align-items:flex-start;gap:8px 12px;margin:0 0 8px;display:flex}.ipa-line.blank{height:8px}.ipa-chunk{align-items:flex-start;display:inline-flex}.ipa-unit{flex-direction:column;display:inline-flex;position:relative}.ipa-w,.ipa-p{white-space:nowrap;font-size:1.1rem;line-height:1.45}.ipa-p{color:var(--accent)}.ipa-p.first:before,.ipa-p.last:after{content:"/"}.ipa-unknown{-webkit-text-decoration:underline dotted var(--danger);text-decoration:underline dotted var(--danger);text-underline-offset:4px;cursor:help;text-decoration-thickness:2px}.ipa-export{border-top:1px solid var(--border);gap:6px;padding-top:8px;display:grid}.ipa-export-row{flex-wrap:wrap;align-items:center;gap:4px;display:flex}.ipa-export-label{margin-right:auto;padding-right:8px;font-size:.9rem;font-weight:600}.ipa-export-actions{gap:4px;margin-left:auto;display:flex}.ipa-export-label small{color:var(--text-muted);font-size:.78rem;font-weight:400;display:block}@media (width<=640px){.ipa-export-row{row-gap:6px}.ipa-export-label{flex:1 0 100%}.ipa-export-actions{margin-left:0}}.ipa-note{color:var(--text-muted);margin:10px 0 0;font-size:.85rem}@media (width<=720px){.ipa-tool{grid-template-columns:minmax(0,1fr)}.ipa-input,.ipa-output{min-height:12em}}.keyboard-tip{color:var(--text-muted);margin:10px 0 8px;font-size:.88rem}.keyboard{border-radius:var(--radius);background:var(--surface-2);flex-wrap:wrap;gap:6px;padding:10px;display:flex}.key-group{background:var(--surface-3);border-radius:8px;flex-wrap:wrap;gap:2px;padding:2px;display:flex}.key{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-bottom-width:3px;border-radius:9px;min-width:42px;height:46px;padding:0 6px;font-size:23px;line-height:1;transition:background-color .3s}@media (hover:hover) and (pointer:fine){.key:hover{border-color:var(--accent)}}.key:active{transform:translateY(1px)}.key.pressed{animation:.9s ease-out key-press}@keyframes key-press{0%{border-color:var(--accent);background-image:none;background-color:var(--hl-color);color:var(--on-hl);box-shadow:0 0 0 4px var(--accent-soft);transform:scale(.9)}25%{background-color:var(--hl-color);color:var(--on-hl);transform:scale(1)}to{background-image:none;box-shadow:0 0 #0000}}@keyframes key-flash{0%,25%{border-color:var(--accent);background-image:none;background-color:var(--hl-color);color:var(--on-hl)}to{background-image:none}}.tone-mark .key,.tone-combining .key{background:var(--surface-2)}.tone-combining .key{color:var(--text-muted)}.keyboard-full .key{min-width:38px;height:42px;font-size:21px}.touch-only{display:none}.kb-tabs{border-bottom:1px solid var(--border);flex-wrap:wrap;flex-basis:100%;gap:4px;margin-bottom:2px;padding-bottom:6px;display:flex}.kb-tab{border-radius:var(--radius);color:var(--text-muted);cursor:pointer;background:0 0;border:1px solid #0000;padding:6px 12px;font-size:.88rem}@media (hover:hover) and (pointer:fine){.kb-tab:hover{background:var(--surface);color:var(--text)}}.kb-tab[aria-selected=true]{border-color:var(--border);background:var(--surface);color:var(--accent);box-shadow:var(--shadow);font-weight:600}.key-group[hidden]{display:none}.key-group.row{background:0 0;flex-basis:100%;gap:4px;padding:0}.keyboard.hide-extra .key-group.extra{display:none}.key .badge{color:var(--text-muted);font-family:var(--ui-font);letter-spacing:.02em;margin-bottom:1px;font-size:9px;font-weight:600;line-height:1;display:block}.key.space{min-width:120px;color:var(--text-muted)}.tb.shift-toggle.on{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}@media (hover:none) and (pointer:coarse){.touch-only{display:flex}}@media (hover:none) and (pointer:coarse) and (width<=640px){.keyboard .key-group.touch-only:not([hidden]){display:contents}}.key-tooltip{z-index:50;background:var(--text);max-width:320px;color:var(--bg);pointer-events:none;box-shadow:var(--shadow);border-radius:8px;grid-template-columns:auto 1fr;align-items:center;gap:0 10px;padding:8px 12px;font-size:.85rem;line-height:1.35;display:grid;position:absolute}.key-tooltip[hidden]{display:none}.tip-symbol{grid-row:span 3;font-size:1.9rem}.tip-keys{opacity:.8}.tip-code{opacity:.55;font-family:ui-monospace,SF Mono,Menlo,monospace;font-size:.75rem}.prefbar{border-radius:var(--radius);background:var(--surface-2);flex-wrap:wrap;align-items:center;gap:8px 16px;margin:4px 0 2px;padding:6px 10px;font-size:.9rem;display:flex}.caps-indicator{background:var(--danger);color:#fff;border-radius:4px;padding:2px 8px;font-size:.75rem;font-weight:700}.caps-indicator[hidden]{display:none}.shortcuts-toggle{cursor:pointer;align-items:center;gap:6px;font-weight:600;display:inline-flex}.shortcuts-toggle input{width:18px;height:18px;accent-color:var(--accent)}.shortcuts-off .keyboard-tip{opacity:.5}.size-group{gap:4px;margin-left:auto;display:inline-flex}.app-footer{color:var(--text-muted);text-align:center;margin:24px 0 8px;font-size:.8rem}.footer-links a,.guides-link{color:inherit}.to-top{right:max(16px, env(safe-area-inset-right));bottom:max(16px, env(safe-area-inset-bottom));z-index:40;border:1px solid var(--key-border);border-radius:var(--radius);background:var(--key-face);width:46px;height:46px;color:var(--text);box-shadow:var(--key-inset);cursor:pointer;opacity:.92;-webkit-tap-highlight-color:transparent;touch-action:manipulation;border-bottom-width:3px;place-items:center;padding:0;transition:transform 60ms ease-out,border-bottom-width 60ms ease-out;display:grid;position:fixed}@media (hover:hover) and (pointer:fine){.to-top:hover{border-color:var(--accent);color:var(--accent);opacity:1}}.to-top:active{border-bottom-width:1px;transform:translateY(2px)}.to-top[hidden]{display:none}.to-top svg{fill:none;stroke:currentColor;stroke-width:2.4px;stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px}.footer-links a,.footer-links button{white-space:nowrap}@media (width<=640px){.footer-links{margin-top:6px;display:block}.footer-links>.footer-sep:first-child{display:none}.footer-links a,.footer-links button,.app-footer a{min-width:48px;padding:13px 4px;display:inline-block}.app-footer{padding-bottom:48px}.editor:is(:empty,.is-empty):before{content:attr(data-placeholder-below)}}.guide{max-width:820px;margin:12px 0 0;line-height:1.75}.guide h1{margin-bottom:12px}.guide h2{margin:32px 0 10px;font-size:1.2rem}.guide h3{margin:20px 0 8px;font-size:1rem}.guide article ul{padding-left:1.3em}.guide article>:is(p,ul,ol,blockquote){max-width:70ch}.guide li{margin-bottom:6px}.guide table{border-collapse:collapse;max-width:100%;margin:8px 0 16px;font-size:.95rem;display:block;overflow-x:auto}.guide th,.guide td{border:1px solid var(--border);text-align:left;vertical-align:top;padding:6px 12px}.guide th{background:var(--surface-2);font-weight:600}.guide td.ipa,.guide span.ipa{font-family:var(--ipa-font);font-size:1.1em}.guide-lead{color:var(--text-muted)}.guide-related ul{flex-wrap:wrap;gap:8px;padding:0;list-style:none;display:flex}.guide-related a{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:999px;padding:6px 14px;text-decoration:none;display:inline-block}.guide-related a:hover{border-color:var(--accent);color:var(--accent)}.guide-list{gap:10px;padding:0;list-style:none;display:grid}.guide-list li{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);margin:0;padding:12px 16px}.guide-list a{font-weight:600}.guide-list p{color:var(--text-muted);margin:4px 0 0;font-size:.9rem;line-height:1.5}.home-guides{margin:28px 0 8px}.home-guides h2{margin:0 0 10px;font-size:1rem}.home-guides .guide-list{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}.policy{max-width:820px;margin:12px 0 0;line-height:1.7}.policy h2{margin:28px 0 8px;font-size:1.1rem}.policy ul{padding-left:1.3em}.policy li{margin-bottom:4px}.policy-effective{color:var(--text-muted);font-size:.9rem}.policy-warning{border:1px solid var(--danger);color:var(--danger);border-radius:8px;padding:10px 14px;font-weight:600}.privacy-link{color:inherit}.toast{z-index:100;background:var(--text);color:var(--bg);opacity:0;pointer-events:none;border-radius:999px;padding:8px 16px;font-size:.9rem;transition:opacity .15s,transform .15s;position:fixed;bottom:24px;left:50%;transform:translate(-50%,8px)}.toast.show{opacity:1;transform:translate(-50%)}.toast.error{background:var(--danger);color:var(--on-danger)}.dialog{border:1px solid var(--border);background:var(--surface);width:min(520px,100vw - 32px);max-height:calc(100vh - 48px);color:var(--text);border-radius:14px;padding:20px 24px;box-shadow:0 20px 60px #0000004d}.dialog::backdrop{background:#0a0f1973}.dialog h2{margin:0 0 14px;font-size:1.2rem}.dialog .field{border:0;margin:0 0 14px;padding:0}.dialog .field>label:first-child,.dialog legend{margin-bottom:4px;font-weight:600;display:block}.dialog fieldset label{display:block}.dialog select,.dialog input[type=number]{border:1px solid var(--border);background:var(--surface);color:var(--text);font:inherit;border-radius:6px;padding:6px 8px}.dialog input[type=number]{width:5em}.dialog .desc{color:var(--text-muted);margin:4px 0 0;font-size:.85rem}.dialog .field button,.dialog-actions button{border:1px solid var(--border);background:var(--surface-2);cursor:pointer;border-radius:8px;padding:7px 16px}.dialog-actions{justify-content:flex-end;margin-top:8px;display:flex}.dialog-actions .primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text);font-weight:600}.report-link{color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;padding:0;text-decoration:underline}.report-dialog{width:min(520px,100vw - 32px)}.report-lead{color:var(--text-muted);margin:0 0 12px}.report-field{gap:4px;margin-bottom:12px;font-weight:600;display:grid}.report-field textarea,.report-field input{border:1px solid var(--border);background:var(--bg);width:100%;color:var(--text);font:inherit;border-radius:8px;padding:8px 10px;font-weight:400}.report-field textarea{resize:vertical}.report-field small{color:var(--text-muted);font-weight:400}.report-trap{opacity:0;width:1px;height:1px;position:absolute;left:-9999px}.report-status{min-height:1.4em;color:var(--accent);margin:0}.report-status.error{color:var(--danger)}.dialog-actions button+button{margin-left:8px}.help-dialog ul{padding-left:1.2em}.help-dialog li{margin-bottom:8px}.charts-dialog{z-index:40;width:min(784px,100vw - 32px);max-height:min(78vh,720px);margin:0;position:fixed;inset:auto 16px 16px auto;overflow:auto}.dialog-head{justify-content:space-between;align-items:center;display:flex}.dialog-head h2{margin:0}.chart-tabs{border-bottom:1px solid var(--border);gap:4px;margin:12px 0 4px;display:flex}.chart-tab{color:var(--text-muted);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;padding:6px 14px}.chart-tab[aria-selected=true]{border-bottom-color:var(--accent);color:var(--text);font-weight:600}.chart-hint,.chart-note{color:var(--text-muted);margin:6px 0;font-size:.82rem}.charts h3{margin:16px 0 6px;font-size:.95rem}.charts h4{color:var(--text-muted);margin:0 0 4px;font-size:.85rem}.chart-sym{cursor:pointer;background:0 0;border:1px solid #0000;border-radius:5px;min-width:30px;height:32px;padding:0 4px;font-size:20px;line-height:1}.chart-sym:hover{border-color:var(--accent);background:var(--accent-soft)}.table-scroll{overflow-x:auto}.consonant-table{border-collapse:collapse;font-size:.75rem}.consonant-table th{color:var(--text-muted);padding:4px;font-weight:600}.consonant-table thead th{writing-mode:horizontal-tb;vertical-align:bottom;min-width:58px}.consonant-table tbody th{text-align:right;white-space:nowrap}.consonant-table td{border:1px solid var(--border);white-space:nowrap;padding:0}.consonant-table .half{vertical-align:middle;justify-content:center;width:50%;min-height:34px;display:inline-flex}.consonant-table .half.impossible{background:var(--surface-3)}.chart-columns{flex-wrap:wrap;gap:8px 32px;display:flex}.symbol-list{flex-wrap:wrap;gap:2px;display:flex}.symbol-list.named{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:2px 8px;display:grid}.symbol-list.named .chart-sym{text-align:left;align-items:center;gap:8px;height:34px;display:flex}.sym-name{color:var(--text-muted);font-family:var(--ui-font);white-space:nowrap;text-overflow:ellipsis;font-size:.75rem;overflow:hidden}.vowel-axes{color:var(--text-muted);justify-content:space-between;margin:12px 24px 4px 96px;font-size:.8rem;display:flex}.vowel-frame{gap:12px;display:flex}.vowel-heights{width:72px;color:var(--text-muted);text-align:right;flex-direction:column;flex:none;justify-content:space-between;font-size:.8rem;display:flex}.vowel-chart{aspect-ratio:4/3;flex:1;max-width:520px;margin:16px 40px 24px 20px;position:relative}.vowel-chart svg{width:100%;height:100%;stroke:var(--border);stroke-width:1.5px;position:absolute;inset:0;overflow:visible}.vowel-pair{background:var(--surface);border-radius:6px;align-items:center;display:flex;position:absolute;transform:translate(-50%,-50%)}.vowel-dot{background:var(--text-muted);border-radius:50%;width:6px;height:6px;margin:0 1px}.vowel-spacer{width:30px}.home-header{grid-template-columns:1fr auto;align-items:center;gap:8px 16px;margin:8px 0 20px;display:grid;position:relative}.home-header .lang-slot{z-index:5;position:absolute;top:10px;right:10px}@media (width<=640px){.home-header{padding-top:48px}.home-header .lang-slot{top:0;right:0}}.home-header .intro{grid-column:1/-1;max-width:720px;margin:0;display:block}.lang-menu{justify-self:end;position:relative}.lang-menu>summary{border:1px solid var(--border);background:var(--surface);cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap;border-radius:999px;padding:7px 14px;list-style:none}.lang-menu>summary::-webkit-details-marker{display:none}.lang-menu>summary:after{content:" ▾";color:var(--text-muted)}.lang-menu-list{z-index:60;border:1px solid var(--border);background:linear-gradient(transparent, var(--surface) 70%) 0 100% / 100% 28px no-repeat local, linear-gradient(transparent, #00000029) 0 100% / 100% 14px no-repeat scroll, var(--surface);border-radius:12px;grid-template-columns:repeat(3,minmax(150px,1fr));gap:0 4px;width:max-content;max-width:calc(100vw - 32px);max-height:min(70vh,600px);margin:0;padding:6px;list-style:none;display:grid;position:absolute;top:calc(100% + 6px);right:0;overflow-y:auto;box-shadow:0 12px 40px #0000002e}.lang-menu-list button{text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;justify-content:flex-start;gap:.4em;width:100%;padding:8px 12px;display:flex}@media (hover:hover) and (pointer:fine){.lang-menu-list button:hover{background:var(--surface-2)}}@media (width<=640px){.lang-menu-list button{align-items:center;min-height:44px}}.lang-menu-list button[aria-current=true]{color:var(--accent);font-weight:600}.lang-menu-list button[aria-current=true]:after{content:"✓"}.home-search{border:1px solid var(--border);background:var(--surface);width:min(420px,100%);color:var(--text);font:inherit;border-radius:10px;grid-column:1/-1;padding:10px 14px}.home-search::placeholder{color:var(--text-muted);opacity:1}@media (width<=640px){.home-search{font-size:16px}}.home-section h2{color:var(--text-muted);margin:0 0 10px;font-size:1rem}.page-home #app{max-width:1680px}.card-grid{grid-template-columns:repeat(auto-fill,minmax(172px,1fr));gap:8px;display:grid}.kb-card{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--text);box-shadow:var(--shadow);align-content:start;gap:1px;padding:10px 14px 11px;text-decoration:none;transition:border-color .15s,transform .15s;display:grid}@media (hover:hover) and (pointer:fine){.kb-card:hover{border-color:var(--accent)}}.kb-card[hidden],.home-section[hidden]{display:none}.card-title{overflow-wrap:anywhere;font-weight:600}.card-sub{color:var(--muted-on-key);overflow-wrap:anywhere;font-size:13px}.card-sample{color:var(--brand-key);letter-spacing:.04em;margin-top:4px;font-size:1.15rem}.home-empty{color:var(--text-muted)}.home-empty .home-clear{vertical-align:middle;margin-left:10px}@media (width<=640px){#app{padding:12px 16px}h1{font-size:1.3rem}.intro{display:none}.tool-main>.intro{display:block}.tb-end{margin-left:0}.app-main{flex-direction:column;display:flex}.app-main>.toolbar{order:1}.app-main>.editor{order:2;min-height:28vh;margin-top:0}.app-main>.prefbar{background:0 0;order:3;min-height:0;margin:6px 0 4px;padding:0}.app-main>.keyboard{order:4}.app-main>:not(.toolbar,.editor,.prefbar,.keyboard){order:5}.keyboard-tip,.shortcuts-toggle,.toolbar .tb-group:first-child,.tb.select,.tb.restore:disabled{display:none}.toolbar{gap:4px 8px}.tb{min-width:40px;height:40px;padding:0 9px;position:relative}.tb.icon{width:40px}.tb:before{content:"";position:absolute;inset:-3px -3px -5px}.keyboard{border:solid var(--border);background:var(--surface);border-width:1px 0 0 1px;border-radius:8px;grid-template-columns:repeat(auto-fill,minmax(44px,1fr));gap:0;padding:0;display:grid;overflow:hidden}.keyboard>.kb-tabs{border-right:1px solid var(--border);background:var(--surface-2);grid-column:1/-1;margin:0;padding:6px}.kb-tab{min-width:44px;min-height:44px}.kb-menu>summary{padding-block:7px;position:relative}.kb-menu>summary:before{content:"";position:absolute;inset:-5px -1px}.keyboard .key-group{display:contents}.keyboard .key-group.touch-only,.keyboard .key-group[hidden],.keyboard.hide-extra .key-group.extra{display:none}.keyboard .key,.keyboard-full .key{border:0;border-right:1px solid var(--border);border-bottom:1px solid var(--border);background:var(--surface);border-radius:0;min-width:0;height:44px;padding:0 1px;font-size:19px}.keyboard .key-group:nth-child(2n) .key{background:var(--surface-2)}.keyboard .key.space{grid-column:span 2;min-width:0}.key:active{transform:none}}@media (width<=400px){.app-header .brand{min-width:0;font-size:1rem}.brand-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.lang-slot{gap:6px}.support-link,.lang-menu>summary{padding:6px 10px}.charts-dialog{width:auto;inset:auto 8px 8px}.lang-menu-list{grid-template-columns:1fr 1fr;width:calc(100vw - 32px)}.card-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:6px}.ad-banner{max-width:320px;min-height:100px}.vowel-heights{width:48px;font-size:.7rem}.vowel-axes{margin-left:60px}.vowel-chart{margin:12px 24px 16px 12px}}@media (prefers-reduced-motion:reduce){.key.pressed{animation:.9s ease-out key-flash;animation-duration:.9s!important}.key,.toast{transition:none}}:lang(ko) :is(p,h1,h2,h3,li){word-break:keep-all;overflow-wrap:anywhere}.app-header{border-bottom:1px solid var(--border);margin-bottom:12px;padding-bottom:12px}.home-banner{box-shadow:var(--shadow);border:1px solid #283e59}.home-section h2,.home-guides h2{color:var(--text);align-items:center;gap:9px;display:flex}.home-section h2:before,.home-guides h2:before{content:"";background:var(--brand-key);border-radius:3px;width:4px;height:18px}.kb-card{border-bottom-width:3px;padding:14px 16px}.card-sample{margin-top:8px}.home-search{box-shadow:var(--shadow);border-radius:12px}.keyboard{border:1px solid var(--border)}.kb-sidebar{border-top:3px solid var(--brand-key)}.kb-tab[aria-selected=true]{color:var(--brand-key);border-bottom-color:var(--brand-key)}.editor:focus{border-color:var(--brand-key);box-shadow:0 0 0 3px var(--brand-soft), var(--shadow)}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation-duration:.01ms!important}}.keyboard-reading{border:1px solid var(--border);border-radius:16px;margin-top:28px;padding:24px;line-height:1.75}.keyboard-reading h2{margin:0 0 12px;font-size:1.3rem}.keyboard-reading h3{margin:20px 0 8px;font-size:1rem}.keyboard-reading ul{padding-left:20px}.keyboard-reading a,.guide-sources a{overflow-wrap:anywhere}.reading-example{font-size:1.25rem;font-weight:600}.guide-sources{border-top:1px solid var(--border);margin-top:32px;padding-top:12px}@media (width<=640px){.keyboard-reading{padding:18px}}.symbols-guide{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);margin-top:24px;padding:16px 20px;line-height:1.6}.symbols-guide summary{cursor:pointer;color:var(--text);font-size:1rem;font-weight:600}.symbols-guide .seo-symbols{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:6px 16px;margin:14px 0 0;padding:0;list-style:none;display:grid}.symbols-guide .seo-symbols li{color:var(--text-muted);align-items:baseline;gap:8px;font-size:.9rem;display:flex}.symbols-guide .seo-symbols li .ipa{color:var(--text);min-width:1.4em;font-size:1.15rem}@media (width<=640px){.symbols-guide{padding:14px 16px}}.home-banner-picture{grid-column:1/-1;min-width:0;display:block}.lang-menu-list a{color:var(--text);padding:6px 12px;text-decoration:none;display:block}.home-search:disabled{opacity:1}button,.key,.tb,.lang-menu>summary,.kb-menu>summary,.support-link,.home-search,.keyboard-reading,.symbols-guide,.kb-menu-body,.lang-menu-list,.dialog,.dialog select,.dialog input,.report-field textarea,.guide-related a,.key-group,.keyboard,.key-tooltip,.kb-tab,.to-top{border-radius:var(--radius)}.tb{font-family:var(--control-font);white-space:nowrap}.tb.settings{align-items:center;gap:5px;display:inline-flex}.key,.tb:not(.primary):not(.shift-toggle.on),.kb-card{background:var(--key-face);border-color:var(--key-border);box-shadow:var(--key-inset)}.key{font-family:Lucida Grande,Lucida Sans Unicode,Arial,sans-serif}@media (hover:hover) and (pointer:fine){.key:hover,.tb:not(:disabled):hover,.kb-card:hover{border-color:var(--accent)}.support-link:hover{color:var(--accent);border-color:var(--accent)}}.key,.tb,.kb-card{-webkit-tap-highlight-color:transparent;touch-action:manipulation}.tb.primary,.tb.shift-toggle.on{background:var(--accent);color:var(--accent-text)}.editor,.editor:focus{border-color:var(--editor-border);box-shadow:none}.card-sample{color:var(--sample-text)}.kb-sidebar{border-top-color:var(--border)}.support-link{background:var(--surface-2);color:var(--text);border-color:var(--border)}.home-section h2:before,.home-guides h2:before{background:var(--text-muted);border-radius:0}.kb-sidebar a,.intro a{text-underline-offset:2px;text-decoration:underline}.kb-card{border-radius:var(--radius);border-bottom-width:3px;transition:transform 60ms ease-out,border-bottom-width 60ms ease-out}.kb-card:active{border-bottom-width:1px;transform:translateY(2px)}.key{border-radius:var(--radius);border-bottom-width:3px;transition:transform 60ms ease-out,border-bottom-width 60ms ease-out}.key:active{border-bottom-width:1px;transform:translateY(2px)}.tb{border-bottom-width:3px;transition:transform 60ms ease-out,border-bottom-width 60ms ease-out}.tb:not(:disabled):active{border-bottom-width:1px;transform:translateY(2px)}.tb:disabled{border-bottom-width:1px}@media (prefers-reduced-motion:reduce){.kb-card:active,.key:active,.tb:not(:disabled):active,.to-top:active{transform:none}}.lang-slot{flex-wrap:wrap}.support-note{color:var(--text-muted);text-align:right;font-size:.8125rem;line-height:1.35}.home-header .support-note{border-radius:var(--radius);background:var(--surface);color:var(--text);padding:4px 8px}@media (width<=640px){.keyboard .key,.keyboard-full .key{box-shadow:none;border-radius:0}.keyboard .key:active,.keyboard-full .key:active{border-bottom-width:1px;transform:none}.support-note{contain:inline-size;flex:100%;font-size:.75rem}.home-header{padding-top:0}.home-header .lang-slot{order:-1;grid-column:1/-1;position:static}.app-header{column-gap:8px}.lang-slot{gap:6px}.support-link,.lang-menu>summary{padding:6px 8px;font-size:.875rem;position:relative}.support-link:before,.lang-menu>summary:before{content:"";position:absolute;inset:-6px -1px}}:is(a,button,summary,input,select,textarea,[tabindex],[contenteditable]):focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.personal-tools{flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:12px;display:flex}.keyboard-history-controls{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.history-toggle[aria-pressed=true]{color:var(--accent);font-weight:700}.history-status,.shelf-status.error{color:var(--danger);font-size:14px}.shelf-status{color:var(--accent);font-size:14px}.history-status:empty,.shelf-status:empty{display:none}.text-shelf{display:contents}.shelf-panel{border-block:1px solid var(--border);flex-basis:100%;min-width:0;padding:20px 0}.shelf-panel h2,.history-section h2{margin:0 0 12px;font-size:16px}.shelf-note{max-width:70ch;color:var(--text-muted);margin:8px 0;font-size:14px;line-height:1.6}.shelf-save-form{flex-wrap:wrap;align-items:center;gap:8px;margin:16px 0;display:flex}.shelf-save-form input{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);min-width:0;color:var(--text);font:inherit;flex:180px;padding:10px}.shelf-list,.history-list{padding:0;list-style:none}.shelf-item{border-top:1px solid var(--border);padding:16px 0}.shelf-item summary{overflow-wrap:anywhere;cursor:pointer;padding:6px 0;font-weight:700}.shelf-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:220px;font:inherit;line-height:1.6;overflow:auto}.shelf-item-actions{flex-wrap:wrap;gap:8px;margin-top:8px;display:flex}.shelf-delete{color:var(--danger)}.personal-tools .tb,.history-clear{white-space:normal;text-align:start;height:auto;min-height:36px;padding:8px 10px}.keyboard-history-home{border-top:1px solid var(--border);grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;padding-block:24px;display:grid}.history-list{flex-wrap:wrap;gap:8px 16px;margin-block:8px 16px;display:flex}.history-link{text-underline-offset:3px;align-items:center;min-height:36px;display:inline-flex}.history-empty,.shelf-empty{color:var(--text-muted);font-size:14px}@media (width<=640px){.keyboard-history-home{grid-template-columns:1fr}.personal-tools .tb,.history-clear,.history-link,.shelf-item summary{min-height:44px}.shelf-save-form label{flex-basis:100%}.shelf-save-form input{font-size:16px}}:root{--space-section:32px;--motion-menu:.16s;--ease-menu:cubic-bezier(.16, 1, .3, 1)}::selection{background:var(--accent);color:var(--accent-text)}.editor,.ipa-input{caret-color:var(--accent)}.home-header h1{letter-spacing:-.025em;text-wrap:balance;font-size:clamp(22px,2vw,28px);line-height:1.3}.home-search{border-color:var(--editor-border);width:min(620px,100%);min-height:48px;padding:12px 16px}.home-section{margin-bottom:var(--space-section)}.home-section h2,.home-guides h2{margin-bottom:12px;font-size:16px;font-weight:700}.home-section h2:before,.home-guides h2:before{background:var(--brand-key)}.card-grid{gap:12px}.kb-card{grid-template-rows:auto 1fr auto;gap:4px;padding:14px 16px}.card-title{font-weight:700;line-height:1.4}.card-sub{line-height:1.5}.card-sample{letter-spacing:.025em;grid-row:3;margin-top:12px;font-size:20px;line-height:1.4}.app-header h1{letter-spacing:-.02em}.intro{max-width:75ch;line-height:1.7}.tb.copy{background:var(--accent);color:var(--accent-text);border-color:var(--accent);box-shadow:none;font-weight:700}.tb.copy:not(.primary):not(.shift-toggle.on){background:var(--accent);border-color:var(--accent);box-shadow:none}.kb-sidebar{border-width:0 0 0 1px}.kb-sidebar h2{margin-bottom:12px}.kb-sidebar-list .kb-menu-section{margin-bottom:16px}.kb-sidebar a[aria-current=page]{text-underline-offset:4px;font-weight:700;text-decoration-thickness:2px}.editor:focus{border-color:var(--accent)}.ipa-panel{gap:12px}.ipa-panel-head{border-bottom:1px solid var(--border);padding-bottom:8px}.ipa-status{font-variant-numeric:tabular-nums}.lang-menu[open] .lang-menu-list,.kb-menu[open] .kb-menu-body{animation:menu-arrive var(--motion-menu) var(--ease-menu)}@keyframes menu-arrive{0%{opacity:.6;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}@media (width<=640px){.card-grid{gap:8px}.kb-card{padding:12px}.card-sample{font-size:19px}}@media (prefers-reduced-motion:reduce){.lang-menu[open] .lang-menu-list,.kb-menu[open] .kb-menu-body{animation:none}}
