.pg{--pg-bg:#fffffffa;--pg-text:var(--ink);--pg-key:var(--muted);--pg-highlight:#ede9e1;--pg-line:#00000024;position:relative}.pg[data-theme=solarized]{--pg-bg:#fdf6e3;--pg-text:#586e75;--pg-key:#268bd2;--pg-highlight:#eee8d5;--pg-line:#d8d0b8}.pg[data-theme=nord]{--pg-bg:#eceff4;--pg-text:#2e3440;--pg-key:#5e81ac;--pg-highlight:#d8dee9;--pg-line:#c7ceda}.pg[data-theme=gruvbox]{--pg-bg:#fbf1c7;--pg-text:#3c3836;--pg-key:#af3a03;--pg-highlight:#ebdbb2;--pg-line:#d5c4a1}.pg[data-theme=catppuccin]{--pg-bg:#eff1f5;--pg-text:#4c4f69;--pg-key:#8839ef;--pg-highlight:#ccd0da;--pg-line:#bcc0cc}:root[data-scheme=dark] .pg[data-theme=system]{--pg-bg:#26262a;--pg-text:#f2f2f7;--pg-key:#a8a8b3;--pg-highlight:#45454d;--pg-line:#5b5b65}:root[data-scheme=dark] .pg[data-theme=solarized]{--pg-bg:#002b36;--pg-text:#93a1a1;--pg-key:#268bd2;--pg-highlight:#073642;--pg-line:#174b55}:root[data-scheme=dark] .pg[data-theme=nord]{--pg-bg:#2e3440;--pg-text:#eceff4;--pg-key:#88c0d0;--pg-highlight:#434c5e;--pg-line:#4c566a}:root[data-scheme=dark] .pg[data-theme=gruvbox]{--pg-bg:#282828;--pg-text:#ebdbb2;--pg-key:#fabd2f;--pg-highlight:#3c3836;--pg-line:#504945}:root[data-scheme=dark] .pg[data-theme=catppuccin]{--pg-bg:#1e1e2e;--pg-text:#cdd6f4;--pg-key:#cba6f7;--pg-highlight:#313244;--pg-line:#45475a}.pg-box{white-space:pre-wrap;word-break:break-word;cursor:text;outline:none}.pg-box:focus{border-color:var(--ink)}.pg-box:empty:before{content:attr(data-placeholder);color:var(--muted);pointer-events:none}.pg-box{caret-color:var(--ink)}.pg-box.composing{caret-color:#0000}.pg-composition-caret{border-left:2px solid var(--ink);vertical-align:-.15em;width:0;height:1.1em;margin-left:-1px;margin-right:-1px;animation:1.1s step-end infinite blink;display:inline-block}@media (prefers-reduced-motion:reduce){.pg-composition-caret{animation:none}}.pg-preedit{-webkit-user-select:none;user-select:none}.pg-seg{border-bottom:2px solid var(--ink);padding-bottom:1px}.pg-seg.focused{border-bottom-color:var(--mark)}.pg-bar{color:var(--muted);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 16px;margin:10px 4px 0;font-size:14px;display:flex}.pg-actions{gap:8px;display:flex}.pg-btn{font:inherit;border:1px solid var(--line);background:var(--card);color:var(--ink);cursor:pointer;box-shadow:0 2px 0 color-mix(in srgb, var(--line) 75%, #000 25%);border-radius:6px;padding:2px 10px;font-size:13px;transition:transform .14s,box-shadow .14s,background .14s}.pg-btn:hover{background:color-mix(in srgb, var(--card) 88%, var(--ink));box-shadow:0 3px 0 color-mix(in srgb, var(--line) 75%, #000 25%);transform:translateY(-1px)}.pg-btn:active{transform:translateY(1px);box-shadow:0 0 #0000}.pg-btn.english{color:#1a4f8b;background:#e8ecf4;border-color:#cad6ea}:root[data-scheme=dark] .pg-btn.english{color:#8fb8f0;background:#1d2a40;border-color:#2f4468}.candidate-panel{z-index:1000;background:var(--pg-bg);-webkit-backdrop-filter:blur(20px);border:1px solid var(--pg-line);-webkit-user-select:none;user-select:none;border-radius:8px;width:300px;min-width:0;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:6px;transition:opacity .1s,transform .1s;position:fixed;overflow:auto;box-shadow:0 12px 32px #00000029,0 2px 6px #00000014}.candidate-panel.hidden{display:none!important}.candidate-list{flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;display:flex}.candidate-panel.horizontal .candidate-list{flex-flow:wrap;gap:4px}.candidate-item{box-sizing:border-box;cursor:pointer;width:100%;color:var(--pg-text);border-radius:6px;justify-content:space-between;align-items:center;gap:16px;padding:6px 10px;font-size:16px;line-height:1.4;transition:background .1s;display:flex}.candidate-panel.horizontal .candidate-item{width:auto;padding:4px 8px}.candidate-item:hover{background:var(--pg-highlight)}.candidate-item.selected{background:var(--pg-highlight);color:var(--pg-text)}.candidate-text{white-space:nowrap;text-overflow:ellipsis;text-align:left;direction:rtl;min-width:0;font-size:17px;font-weight:500;overflow:hidden}.candidate-key{background:var(--pg-highlight);color:var(--pg-key);text-align:center;border-radius:4px;min-width:1.4em;padding:2px 6px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,monospace;font-size:12px;font-weight:600}.candidate-item.selected .candidate-key{background:color-mix(in srgb, var(--pg-key) 22%, transparent);color:var(--pg-key)}.candidate-footer{border-top:1px solid var(--pg-line);color:var(--muted);justify-content:space-between;align-items:center;margin-top:4px;padding:6px 8px 2px;font-size:12px;display:flex}.candidate-title{color:var(--muted);font-size:12px;font-weight:500}.candidate-page-nav{align-items:center;gap:6px;display:flex}.candidate-nav-btn{border:1px solid var(--line);cursor:pointer;color:var(--muted);background:0 0;border-radius:4px;padding:1px 7px;font-size:12px;line-height:1.2}.candidate-nav-btn:hover:not(:disabled){background:var(--paper);color:var(--ink)}.candidate-nav-btn:disabled{opacity:.3;cursor:not-allowed}.pg-theme-label{color:var(--muted);font-size:12px}.pg-theme{font:inherit;color:var(--pg-text);background:var(--pg-bg);border:1px solid var(--pg-line);border-radius:5px;padding:2px 5px;font-size:12px}@media (prefers-reduced-motion:reduce){.button,.pg-btn{transition:none}}.pg-actions{align-items:center}.pg-theme-control{align-items:center;gap:5px;display:inline-flex;position:relative}.pg-theme-label{color:var(--muted);font-size:12px;line-height:1}.pg-theme-trigger{font:inherit;color:var(--pg-text);background:var(--pg-bg);border:1px solid var(--pg-line);cursor:pointer;box-shadow:0 2px 0 color-mix(in srgb, var(--pg-line) 75%, #000 25%);border-radius:7px;padding:3px 7px;font-size:12px;transition:transform .14s,box-shadow .14s}.pg-theme-trigger:hover{box-shadow:0 3px 0 color-mix(in srgb, var(--pg-line) 75%, #000 25%);transform:translateY(-1px)}.pg-theme-trigger:active,.pg-theme-trigger[aria-expanded=true]{transform:translateY(1px);box-shadow:0 0 #0000}.pg-theme-menu{z-index:1002;border:1px solid var(--pg-line);background:var(--pg-bg);min-width:132px;box-shadow:0 5px 0 color-mix(in srgb, var(--pg-line) 75%, #000 25%), 0 10px 18px #00000024;border-radius:9px;gap:3px;padding:5px;display:grid;position:absolute;top:calc(100% + 7px);right:0}.pg-theme-menu[hidden]{display:none}.pg-theme-menu button{text-align:left;font:inherit;color:var(--pg-text);cursor:pointer;background:0 0;border:0;border-radius:6px;padding:5px 8px;font-size:12px}.pg-theme-menu button:hover,.pg-theme-menu button:focus-visible{background:var(--pg-highlight);outline:none}.pg-theme-trigger{color:var(--ink);background:var(--card);border-color:var(--line);box-shadow:0 2px 0 color-mix(in srgb, var(--line) 75%, #000 25%)}.pg-theme-trigger:hover{box-shadow:0 3px 0 color-mix(in srgb, var(--line) 75%, #000 25%)}.pg-theme-menu{background:var(--card);border-color:var(--line);box-shadow:0 5px 0 color-mix(in srgb, var(--line) 75%, #000 25%), 0 10px 18px #00000024}.pg-theme-menu button{color:var(--ink)}.pg-theme-menu button:hover,.pg-theme-menu button:focus-visible{background:var(--mark-bg);color:var(--ink)}.pg-box.ime-warning,.pg-box.ime-warning:focus{border-color:var(--mark)}.pg-ime-note{color:var(--mark);margin:6px 4px 0;font-size:14px}.pg-ime-note[hidden]{display:none}
