:root{color-scheme:dark;font-family:ui-sans-serif,system-ui,sans-serif;background:#070b14;color:#e5e7eb}*{box-sizing:border-box}html,body,#app{width:100%;height:100%;margin:0}body{overflow:hidden}.terminal-layout{display:grid;grid-template-rows:auto minmax(0,1fr);padding:8px;gap:8px}.terminal-layout.has-terminal-key-bar{position:relative}.terminal-layout button{border-color:transparent;background:transparent}.terminal-layout button:hover:not(:disabled){background:#1d2535}.terminal-layout button:focus-visible{outline-color:#cbd5e1}.terminal-layout button.danger:hover:not(:disabled){background:#33212c;color:#fca5a5}.auth-layout{display:grid;place-items:center;min-height:100%;padding:24px}.auth-card{width:min(100%,420px);padding:28px;border:1px solid #1e293b;border-radius:10px;background:#0b1020;box-shadow:0 18px 50px #00000059}.auth-card h1{font-size:1.35rem}.auth-card p{margin:12px 0 20px;color:#cbd5e1;line-height:1.5}header{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:10px}h1{margin:0;font-size:1rem;font-weight:650}#status{margin:0;color:#94a3b8;font-size:.75rem}#status[data-state=attached]{color:#86efac}#status[data-state=error]{color:#fca5a5}#status[data-state=notice]{color:#fcd34d}nav{display:flex;gap:8px}button{border:1px solid #334155;border-radius:6px;background:#172033;color:#e5e7eb;padding:7px 11px;cursor:pointer}button:hover:not(:disabled){background:#243148}button:focus-visible{outline:2px solid #7dd3fc;outline-offset:2px}button:disabled{cursor:default;opacity:.45}button.danger{border-color:#7f1d1d}header .controls{display:flex;align-items:center;gap:10px;min-width:0}header .actions{flex-wrap:nowrap;gap:4px}#status{text-align:right;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:7px;flex:0 0 auto}.icon-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.tab-bar{flex:1 1 auto;flex-wrap:nowrap;align-items:center;gap:5px;min-width:44px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#334155 #070b14}.tab{display:inline-flex;flex:0 0 auto;border-radius:6px}.tab button{border:0;border-radius:6px}.tab button:focus-visible{outline-offset:-2px}.tab .tab-label{min-width:32px;max-width:220px;min-height:32px;padding:5px 8px;color:#94a3b8;font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tab .tab-close{width:28px;height:32px;padding:7px;color:#94a3b8}.tab.active{background:#242c3b}.tab.active .tab-label{color:#f8fafc;font-weight:650}.terminal-layout .tab-add{min-width:32px;position:sticky;right:0;background:#070b14}.terminal-key-bar{align-items:center;justify-content:flex-end;gap:4px;padding:0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);border-top:1px solid #1e293b}.terminal-key-bar[hidden]{display:none}.terminal-layout .terminal-key-bar button{flex:0 1 72px;min-width:min-content;min-height:44px;padding:0 4px;border-color:#334155;border-radius:8px;background:#111827;color:#e2e8f0;box-shadow:inset 0 -2px #070b14;font:600 .8125rem/1 ui-monospace,monospace}.terminal-layout .terminal-key-bar .terminal-arrow-key{flex-basis:44px;font-size:1rem}.terminal-layout .terminal-key-bar button:hover:not(:disabled){background:#1d2535}.terminal-layout .terminal-key-bar button:active:not(:disabled){background:#243148;box-shadow:none}.terminal-keys-toggle{min-width:44px;min-height:44px}.pane-area{position:relative;min-width:0;min-height:0}.tab-page{position:absolute;inset:0;display:flex}.tab-page[hidden]{display:none}.tab-page>*{flex:1 1 auto}.split{display:flex;min-width:0;min-height:0}.split-row{flex-direction:row}.split-column{flex-direction:column}.split>.pane,.split>.split{flex-grow:0;flex-shrink:1}.divider{flex:0 0 6px;touch-action:none;background:transparent;border-radius:3px}.divider-row{cursor:col-resize}.divider-column{cursor:row-resize}.divider:hover,.divider.dragging{background:#334155}.pane{position:relative;min-width:0;min-height:0;overflow:hidden;border:1px solid #1e293b;border-radius:8px;background:#0b1020;padding:8px}.split .pane.focused:after{content:"";position:absolute;top:0;left:12px;width:28px;height:2px;border-radius:0 0 2px 2px;background:#9ca3af;pointer-events:none}.pane-surface{width:100%;height:100%}.pane-surface .xterm{height:100%}.pane-surface .xterm.enable-mouse-events{touch-action:pan-x pinch-zoom}.pane-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:#0b1020cc;color:#cbd5e1;font-size:.85rem}.pane-overlay[hidden]{display:none}.pane-overlay p{margin:0}.pane-overlay[data-state=error] p{color:#fca5a5}.pane-overlay button[hidden]{display:none}.workspace-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px}.workspace-empty[hidden]{display:none}.workspace-empty h2{margin:0;color:#cbd5e1;font-size:1rem;font-weight:500}.empty-actions{display:flex;align-items:center;gap:12px}.terminal-layout .empty-create{background:#242c3b;border-color:#3a4353}.terminal-layout .empty-create:hover{background:#303a4c}.empty-actions kbd{color:#94a3b8;font-family:inherit;font-size:.75rem}.sessions-control{min-height:32px;padding:5px 9px}.catalog-panel,.rename-editor{position:absolute;z-index:5;top:0;right:0;width:min(100%,480px);max-height:100%;overflow:auto;padding:16px;border:1px solid #334155;border-radius:8px;background:#0b1020}.catalog-panel[hidden],.rename-editor[hidden]{display:none}.catalog-heading{display:flex;align-items:center;gap:6px}.catalog-heading h2{margin:0 auto 0 0;font-size:1rem;font-weight:600}.catalog-status{margin:12px 0;color:#cbd5e1;font-size:.8rem;line-height:1.45}.image-upload-panel{width:min(300px,100%)}.image-upload-panel .catalog-status{overflow-wrap:anywhere}.image-upload-actions{display:flex;justify-content:flex-end;gap:8px}.image-upload-actions[hidden]{display:none}.image-upload-actions button{min-height:44px;border-color:#334155;background:#172033}.session-list{list-style:none;margin:0;padding:0}.session-row{display:flex;align-items:center;gap:10px;padding:6px 0;border-top:1px solid #1e293b}.session-name{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.85rem}.session-server{flex:0 0 auto;color:#94a3b8;font-size:.75rem}.rename-editor{width:min(100%,380px)}.rename-editor label{display:block;font-size:.85rem}.rename-editor input{display:block;width:100%;margin-top:8px;padding:9px;border:1px solid #475569;border-radius:5px;background:#070b14;color:#e5e7eb;font:inherit}.rename-editor input:focus-visible{outline:2px solid #cbd5e1;outline-offset:2px}.rename-editor .empty-actions{justify-content:flex-end}@media(max-width:640px){.terminal-layout{padding:6px;gap:6px}header{flex-wrap:wrap;gap:4px}header .controls{margin-left:auto;gap:8px;flex-wrap:wrap;justify-content:flex-end}.tab .tab-label{max-width:160px}header .actions{flex-wrap:wrap}#status{max-width:90px}}@media(pointer:coarse){header .icon-button{width:44px;height:44px}.tab .tab-label,.tab .tab-close{min-width:44px;min-height:44px}}
