@keyframes progress-slide{0%{transform:translateX(-100%)}to{transform:translateX(320%)}}@keyframes spin{to{transform:rotate(360deg)}}:root{--bg:#ffffff;--surface:#f8fafc;--panel:#ffffff;--border:#e2e8f0;--text:#0f172a;--text-muted:#64748b;--ring:#2563eb;--ring-shadow:rgba(37, 99, 235, 0.16);--primary:#1d4ed8;--primary-hover:#1e40af;--primary-foreground:#ffffff;--btn-hover-bg:#f1f5f9;--chip-bg:#f8fafc;--chip-active-bg:#dbeafe;--chip-active-border:#60a5fa;--chip-active-text:#1e3a8a;--diff-ins:#dcfce7;--diff-del:#fee2e2;--shadow-lg:0 12px 28px rgba(15, 23, 42, 0.12);--overlay:rgba(15, 23, 42, 0.45);--keycap-bg:#ffffff;--keycap-border:#cbd5e1;--keycap-text:#0f172a;--avatar-unauth-bg:#f8fafc;--avatar-unauth-border:#d6dee8;--avatar-unauth-shadow:0 1px 2px rgba(15, 23, 42, 0.08);--avatar-unauth-filter:invert(1);--pane-width:50%;--header-h:56px}[data-theme=dark]{--bg:#0f1218;--surface:#131823;--panel:#171d29;--border:#2b3444;--text:#eef4ff;--text-muted:#a4b1c4;--ring:#7cb4ff;--ring-shadow:rgba(124, 180, 255, 0.22);--primary:#5b95ff;--primary-hover:#4b84ee;--primary-foreground:#f8fbff;--btn-hover-bg:#202938;--chip-bg:#1a2230;--chip-active-bg:#1b355b;--chip-active-border:#6ca5ff;--chip-active-text:#eef5ff;--diff-ins:#133120;--diff-del:#3b1a20;--shadow-lg:0 20px 48px rgba(2, 6, 23, 0.45);--overlay:rgba(2, 6, 23, 0.62);--keycap-bg:#111723;--keycap-border:#3a465a;--keycap-text:#eef4ff;--avatar-unauth-bg:#dbe5f1;--avatar-unauth-border:#94a8c0;--avatar-unauth-shadow:0 2px 10px rgba(2, 6, 23, 0.28);--avatar-unauth-filter:invert(1) brightness(0.94)}:where(*,::before,::after){box-sizing:border-box}*{margin:0;padding:0;-webkit-tap-highlight-color:transparent}body{font-family:"Inter",sans-serif;color:var(--text);height:100vh;display:flex;flex-direction:column;overflow:hidden}button,input,textarea{font:inherit}.icon{display:block;flex-shrink:0}.app-header,body{background:var(--bg)}.app-header{min-height:var(--header-h);border-bottom:1px solid var(--border);padding:.5rem 1rem;display:grid;grid-template-columns:auto minmax(300px,1fr) auto;align-items:center;gap:.75rem;z-index:20}.logo{display:inline-flex;align-items:center;gap:.45rem;font-weight:600;font-size:15px;white-space:nowrap}.logo .icon{width:20px;height:20px;color:var(--ring)}.header-controls{min-width:0}.auth-control,.header-nav{display:inline-flex;align-items:center}.header-nav{gap:.35rem}.auth-control{min-width:34px;min-height:34px;justify-content:center}.app-container{flex:1;display:flex;overflow:hidden}.pane{min-height:0;display:flex;flex-direction:column;background:var(--panel);container-type:inline-size}#left-pane{width:var(--pane-width);min-width:320px}#right-pane{flex:1;border-left:1px solid var(--border);background:var(--surface)}.resizer{width:1px;background:var(--border);cursor:col-resize;position:relative}.resizer::after{content:"";position:absolute;top:0;bottom:0;left:-4px;right:-4px}.resizer.dragging,.resizer:hover{background:var(--ring);width:2px}.editor-container{flex:1;min-height:0;overflow:hidden;display:flex}.output-area,textarea{width:100%;height:100%;border:0;outline:0;background:0 0;color:var(--text);padding:1rem;font-size:15px;line-height:1.55;resize:none;overflow-y:auto}.output-area{white-space:pre-wrap;word-break:break-word}.empty-state{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;color:var(--text-muted);font-size:13px}.empty-state-icon{width:20px;height:20px;opacity:.45}.btn{height:36px;border:1px solid var(--border);border-radius:9px;background:var(--panel);color:var(--text);padding:0 .72rem;font-size:13px;font-weight:500;display:inline-flex;align-items:center;justify-content:center;gap:.4rem;cursor:pointer;transition:border-color .15s ease,color .15s ease,background-color .15s ease}.btn:hover:not(:disabled){border-color:var(--border);background:var(--btn-hover-bg)}.btn:disabled{opacity:.45;cursor:not-allowed}.btn-primary{border-color:transparent;background:var(--primary);color:var(--primary-foreground)}.btn-primary:hover:not(:disabled){background:var(--primary-hover);border-color:transparent}.nav-link{border:1px solid transparent;border-radius:8px;height:32px;padding:0 .55rem;background:0 0;color:var(--text-muted);font-size:13px;font-weight:500;cursor:pointer;transition:background-color .15s ease,color .15s ease,border-color .15s ease}.nav-link:hover{background:var(--btn-hover-bg);color:var(--text);border-color:var(--border)}.btn:focus-visible,.nav-link:focus-visible,.profile-trigger:focus-visible,.register-option:focus-visible,.register-pill-remove:focus-visible,.register-trigger:focus-visible,.theme-trigger:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.profile-trigger{position:relative;width:32px;height:32px;padding:0;border:1px solid var(--avatar-unauth-border);border-radius:999px;background:var(--avatar-unauth-bg);box-shadow:var(--avatar-unauth-shadow);cursor:pointer;overflow:hidden;transition:background-color .15s ease,border-color .15s ease}.profile-trigger:hover,.theme-trigger:hover{background:var(--btn-hover-bg);border-color:var(--border)}.profile-trigger[data-state=loading]::after{content:"";position:absolute;inset:7px;border-radius:999px;border:2px solid var(--border);border-top-color:var(--ring);animation:spin .8s linear infinite}.profile-trigger__image{width:100%;height:100%;display:block;object-fit:cover;border-radius:inherit;filter:var(--avatar-unauth-filter)}.theme-trigger{width:32px;height:32px;padding:0;border:1px solid var(--avatar-unauth-border);border-radius:999px;background:var(--avatar-unauth-bg);color:var(--text-muted);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background-color .15s ease,color .15s ease,border-color .15s ease}.theme-trigger:hover{color:var(--text)}.theme-trigger .icon{width:20px;height:20px}[data-theme=dark] .theme-trigger .icon--moon,[data-theme=light] .theme-trigger .icon--sun{display:none}.register-pills{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem;min-width:0}.register-pill{height:26px;border:1px solid var(--border);border-radius:999px;padding:0 .45rem;display:inline-flex;align-items:center;gap:.3rem;font-size:12px;font-weight:500;color:var(--text);background:var(--chip-bg);max-width:220px}.register-pill-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.register-option,.register-pill-remove{border-radius:999px;color:var(--text-muted);cursor:pointer}.register-pill-remove{width:16px;height:16px;border:0;display:inline-flex;align-items:center;justify-content:center;background:0 0}.register-pill-remove:hover{background:var(--btn-hover-bg);color:var(--text)}.register-option{border:1px solid var(--border);height:26px;padding:0 .5rem;background:var(--chip-bg);font-size:12px;font-weight:500;transition:background-color .14s ease,border-color .14s ease,color .14s ease}.register-option:hover{color:var(--text);border-color:var(--ring)}.register-option[data-active=true]{border-color:var(--chip-active-border);background:var(--chip-active-bg);color:var(--chip-active-text)}.shortcut{gap:.45rem;white-space:nowrap;font-size:11px}.keycap,.shortcut,.shortcut-key{display:inline-flex;align-items:center}.shortcut-key{gap:.2rem}.keycap{min-width:1.7em;height:1.7em;padding:0 .42rem;border:1px solid var(--keycap-border);border-bottom-width:2px;border-radius:.5rem;background:linear-gradient(180deg,var(--keycap-bg) 0%,var(--panel) 100%);color:var(--keycap-text);justify-content:center;font-size:11px;font-weight:600;line-height:1;letter-spacing:.01em;box-shadow:0 1px 0 rgba(148,163,184,.12)}.shortcut-divider{color:var(--border)}.diff-added{background:var(--diff-ins)}.diff-removed{background:var(--diff-del);text-decoration:line-through}.modal-overlay{position:fixed;inset:0;background:var(--overlay);backdrop-filter:blur(3px);display:none;align-items:center;justify-content:center;z-index:120}.modal-overlay.active{display:flex}.modal{position:relative;width:min(92vw,440px);background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:1.25rem 1.25rem 1rem;color:var(--text);box-shadow:var(--shadow-lg);max-height:90vh;overflow-y:auto}.modal[data-type=pricing]{width:min(92vw,700px)}.modal h2{font-size:16px;margin-bottom:.75rem;padding-right:1.5rem}.modal p,.modal-close{color:var(--text-muted);font-size:14px;line-height:1.45}.modal-close{position:absolute;top:.75rem;right:.75rem;width:28px;height:28px;padding:0;border:0;border-radius:6px;background:0 0;cursor:pointer;font-size:18px;line-height:1;display:flex;align-items:center;justify-content:center}.modal-close:hover{color:var(--text)}.register-toolbar{flex-shrink:0;background:var(--panel);border-bottom:1px solid var(--border)}.register-toolbar-top{display:flex;align-items:center;justify-content:space-between;min-height:var(--header-h);padding:.45rem .75rem;gap:.5rem}.register-trigger{display:inline-flex;align-items:center;gap:.35rem;height:36px;padding:0 .72rem;border:1px solid var(--border);border-radius:9px;background:var(--panel);color:var(--text);font-size:13px;font-weight:500;cursor:pointer;white-space:nowrap;transition:background-color .15s ease,border-color .15s ease,color .15s ease}.modal-close:hover,.register-trigger:hover{background:var(--btn-hover-bg)}.register-trigger[aria-expanded=true]{border-color:var(--ring);box-shadow:0 0 0 3px var(--ring-shadow);color:var(--ring)}.register-trigger .icon{width:20px;height:20px;transition:transform .15s ease}.register-trigger[aria-expanded=true] .icon{transform:rotate(180deg)}.register-toolbar .register-pills{padding:0 .75rem .45rem}.register-toolbar .register-pills:empty{display:none}.register-panel{overflow:hidden;max-height:0;opacity:0;transition:max-height .22s ease,opacity .18s ease}.register-panel--open{max-height:240px;opacity:1;border-top:1px solid var(--border);padding:.2rem 0}.register-panel-row{display:flex;align-items:center;padding:.22rem .75rem;gap:.75rem;min-height:32px}.register-panel-row+.register-panel-row{border-top:1px solid var(--border)}.register-panel-label{font-size:12px;color:var(--text-muted);font-weight:500;white-space:nowrap;min-width:90px;flex-shrink:0}.register-panel-options{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.25rem;flex:1}.status-bar{height:38px;border-top:1px solid var(--border);padding:0 .75rem;display:flex;align-items:center;justify-content:space-between;gap:.75rem;font-size:12px;color:var(--text-muted)}.status-left,.status-meta{gap:.6rem}.status-actions,.status-left,.status-meta,.status-shortcuts{display:inline-flex;align-items:center;min-width:0}.status-actions{gap:.6rem}.status-shortcuts{color:var(--text-muted);gap:.8rem;flex-wrap:wrap}.status-bar--output{position:relative}#output-status{flex:1;min-width:0}.status-bar__progress{display:none;position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--border);overflow:hidden}.status-bar__progress::after{content:"";position:absolute;top:0;bottom:0;width:42%;left:0;background:var(--ring);animation:progress-slide 1.2s ease-in-out infinite}.status-bar--output.loading .status-bar__progress{display:block}.view-toggle{display:inline-flex;align-items:center;gap:0;border:1px solid var(--border);border-radius:8px;overflow:hidden}.view-toggle .btn{height:28px;border:0;border-radius:0;padding:0 .55rem;background:0 0;color:var(--text-muted)}.view-toggle .btn+.btn{border-left:1px solid var(--border)}.view-toggle .btn.btn-active{background:var(--btn-hover-bg);color:var(--text)}.status-actions .btn{height:28px;font-size:12px;padding:0 .52rem}.pricing-tiers{display:grid;grid-template-columns:repeat(3,1fr);gap:.75rem;margin-bottom:1rem}.pricing-tier{border:1px solid var(--border);border-radius:10px;padding:1rem;display:flex;flex-direction:column;gap:.35rem}.pricing-tier--pro{border-color:var(--primary)}.pricing-tier__name{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted)}.pricing-tier__price{font-size:24px;font-weight:700;color:var(--text);line-height:1.1}.pricing-tier__price span{font-size:13px;font-weight:400;color:var(--text-muted)}.pricing-tier__desc{font-size:13px;color:var(--text-muted);line-height:1.5;flex:1;margin:.2rem 0 0}.pricing-tier__cta{margin-top:1rem;text-align:center;text-decoration:none;justify-content:center;width:100%}.pricing-note{font-size:12px;color:var(--text-muted);border-top:1px solid var(--border);padding-top:.75rem;margin:0;line-height:1.5}@media (max-width:640px){.pricing-tiers{grid-template-columns:1fr}}@media (max-width:960px){.app-header{grid-template-columns:auto minmax(160px,1fr) auto;gap:.55rem;padding:.45rem .7rem}.logo span{display:none}}@container (max-width: 700px){.status-meta,.status-shortcuts{display:none}}@media (max-width:768px){body{overflow:auto;height:auto;min-height:100vh}.app-header{position:sticky;top:0;z-index:100;grid-template-columns:1fr;gap:.5rem;align-items:stretch}.logo{justify-content:space-between}.header-nav{justify-content:flex-end;flex-wrap:wrap}.app-container{flex-direction:column;overflow:visible}#left-pane,#right-pane{width:100%!important;min-width:0;border-left:none;border-top:1px solid var(--border)}#left-pane{border-top:none}.resizer{display:none}.editor-container{min-height:36vh}.status-bar{flex-wrap:wrap;row-gap:.45rem;height:auto;min-height:38px;padding:.35rem .75rem}.status-actions{width:100%;justify-content:flex-end}}