:root{--lightningcss-light:initial;--lightningcss-dark: ;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f4f6f9;--surface:#fff;--surface-2:#edf1f5;--border:#d9e1e9;--border-strong:#c2cdd8;--ink:#1b2430;--ink-2:#3f4f61;--muted:#6c7d8d;--accent:#1c7ed6;--accent-hover:#1969bd;--accent-soft:#1c7ed61a;--on-accent:#fff;--ok:#178a4c;--danger:#d64550;--warn:#a66a00;--code-ink:#1d5fbf;--topbar-bg:#ffffffe0;--glow:#1c7ed614;--viewer-bg:#e8ecf1;--mono:ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#0b1118;--surface:#111a24;--surface-2:#0d141d;--border:#223041;--border-strong:#31465e;--ink:#e8eef5;--ink-2:#a5b3c4;--muted:#6f8195;--accent:#4d9fff;--accent-hover:#6db2ff;--accent-soft:#4d9fff1f;--on-accent:#06101d;--ok:#37c871;--danger:#ff6b6b;--warn:#ffb454;--code-ink:#8fc2ff;--topbar-bg:#0b1118e6;--glow:#4d9fff24;--viewer-bg:#000}*{box-sizing:border-box}html,body,#root{min-width:320px;min-height:100vh;margin:0}body{color:var(--ink);background:radial-gradient(900px 360px at 80% -10%, var(--glow), transparent), var(--bg);transition:background-color .2s,color .2s}button{font:inherit;color:inherit}code{background:var(--accent-soft);color:var(--code-ink);font-family:var(--mono);border-radius:6px;padding:2px 6px;font-size:12px}.app{flex-direction:column;height:100vh;display:flex;overflow:hidden}.topbar{z-index:20;border-bottom:1px solid var(--border);background:var(--topbar-bg);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);flex:none;position:sticky;top:0}.topbar-inner{justify-content:space-between;align-items:center;gap:16px;width:100%;min-height:62px;padding:8px 16px;display:flex}.brand{align-items:center;min-width:0;display:flex}.brand-title{font-size:14px}.topbar-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;display:flex}.platform-switch{border:1px solid var(--border);background:var(--surface);border-radius:999px;gap:2px;padding:3px;display:inline-flex}.platform-button{height:26px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:999px;padding:0 12px;font-size:12px}.platform-button:hover:not(:disabled){color:var(--ink)}.platform-button.active{background:var(--accent);color:var(--on-accent)}.button{border:1px solid var(--border-strong);background:var(--surface);cursor:pointer;border-radius:9px;min-height:32px;padding:0 14px;font-size:12px}.button:hover:not(:disabled){border-color:var(--accent)}.button.primary{background:var(--accent);color:var(--on-accent);border-color:#0000;font-weight:600}.button.primary:hover:not(:disabled){background:var(--accent-hover)}.button.secondary{background:var(--surface-2)}.button.quiet{color:var(--ink-2);background:0 0;border-color:#0000}.button:disabled{cursor:not-allowed;opacity:.55}.support-note{color:var(--warn);font-size:12px}.error-line{max-width:420px;color:var(--danger);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.status-pill{border:1px solid var(--border);background:var(--surface);height:30px;color:var(--ink-2);white-space:nowrap;border-radius:999px;align-items:center;gap:7px;padding:0 12px;font-size:12px;display:inline-flex}.status-dot{background:var(--muted);border-radius:50%;width:8px;height:8px}.status-dot[data-state=connected]{background:var(--ok);box-shadow:0 0 0 3px #3cbe782e}.status-dot[data-state=connecting]{background:var(--warn);animation:1s infinite alternate pulse}.status-dot[data-state=error]{background:var(--danger)}@keyframes pulse{0%{opacity:.35}to{opacity:1}}.page{flex:1;width:100%;min-height:0;margin:0;padding:0;overflow:auto}.empty-state{text-align:center;flex-direction:column;align-items:center;padding:12vh 24px;display:flex}.empty-state h1{margin:0 0 12px;font-size:28px}.empty-state p{max-width:620px;color:var(--ink-2);margin:8px 0;line-height:1.7}.empty-state .hint{color:var(--muted);font-size:12px}.kicker{color:var(--accent);letter-spacing:.14em;margin:0 0 5px;font-size:11px;font-weight:700}.workspace{height:100%}.workspace-layout{align-items:stretch;gap:16px;height:100%;min-height:0;display:flex}.sidebar{flex-direction:column;flex:0 0 280px;gap:16px;width:280px;min-width:0;height:100%;min-height:0;display:flex}.sidebar-section{border:1px solid var(--border);background:var(--surface);border-radius:14px;flex-direction:column;min-height:0;padding:14px;display:flex}.sidebar-section-grow{flex:1}.sidebar-head{flex:none;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:12px;display:flex}.sidebar-head h2{margin:0;font-size:16px}.sidebar-head .button{min-height:28px;padding:0 10px}.side-list{flex-direction:column;flex:auto;gap:4px;min-height:0;margin:0;padding:0;list-style:none;display:flex;overflow:auto}#socket-list{flex:0 auto;max-height:32vh}.side-item{text-align:left;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:8px;flex-direction:column;gap:3px;width:100%;padding:8px 10px;display:flex}.side-item:hover:not(:disabled){background:var(--surface-2)}.side-item:disabled{cursor:not-allowed;opacity:.55}.side-item.active{border-color:var(--accent);background:var(--accent-soft)}.side-item-title{text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600;overflow:hidden}.side-item-sub{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.side-placeholder{color:var(--muted);padding:10px;font-size:12px;line-height:1.6}.viewer{border:1px solid var(--border);background:var(--viewer-bg);border-radius:14px;overflow:hidden}.viewer-head{border-bottom:1px solid var(--border);background:var(--surface);justify-content:space-between;align-items:center;gap:12px;min-height:46px;padding:6px 10px;display:flex}.viewer-title{min-width:0;color:var(--ink-2);text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600;overflow:hidden}.viewer-side{align-items:center;gap:10px;display:flex}.bridge-status{color:var(--muted);align-items:center;gap:7px;font-size:12px;display:inline-flex}.bridge-status i{background:var(--warn);border-radius:50%;width:7px;height:7px}.bridge-status[data-state=open] i{background:var(--ok)}.bridge-status[data-state=error]{color:var(--danger)}.bridge-status[data-state=error] i{background:var(--danger)}.icon-button{border:1px solid var(--border);background:var(--surface-2);cursor:pointer;border-radius:8px;justify-content:center;align-items:center;width:32px;height:32px;padding:0;line-height:1;display:inline-flex}.icon-button:hover:not(:disabled){border-color:var(--accent)}.icon-button svg{display:block}.lang-toggle{font-size:12px;font-weight:600}.frame-wrap{width:100%;height:calc(100vh - 250px);min-height:420px;position:relative}.frame-wrap iframe{border:0;width:100%;height:100%}.frame-error{color:var(--danger);text-align:center;white-space:pre-wrap;padding:32px}.workspace-layout .viewer{flex-direction:column;flex:1;min-width:0;height:100%;min-height:0;display:flex}.workspace-layout .frame-wrap{flex:1;height:auto;min-height:0}.viewer.fullscreen{z-index:100;border:0;border-radius:0;height:100vh;margin:0;position:fixed;inset:0}.viewer.fullscreen .frame-wrap{flex:1;height:auto}@media (max-width:960px){.workspace-layout{flex-direction:column;height:auto}.sidebar{flex-basis:auto;width:100%;height:auto}#socket-list{max-height:240px}.workspace-layout .viewer{height:72vh;min-height:420px}}.footer{color:var(--muted);text-align:center;flex:none;padding:10px 24px;font-size:12px}@media (max-width:720px){.topbar-inner{flex-direction:column;align-items:flex-start}.topbar-actions{justify-content:flex-start;width:100%}}.hidden{display:none}.slow-dialog{border:1px solid var(--border-strong);background:var(--surface);min-width:min(420px,100vw - 48px);color:var(--ink);border-radius:12px;padding:0;box-shadow:0 18px 48px #0000003d}.slow-dialog::backdrop{background:#00000073}.slow-dialog-body{gap:12px;padding:20px;display:grid}.slow-dialog-body h3{margin:0;font-size:15px}.slow-dialog-body p{color:var(--ink-2);margin:0;font-size:13px;line-height:1.6}.slow-dialog-actions{justify-content:flex-end;gap:8px;display:flex}