:root{--bg: #f7f7f8;--surface: #fff;--surface-2: #f4f5f7;--border: #ebecef;--border-strong: #e0e0e2;--text: #18181b;--text-muted: #71717a;--text-faint: #a1a1aa;--accent: #F2545B;--accent-hover: #e0434a;--accent-soft: #FEECEC;--ok: #16a34a;--warn: #d97706;--danger: #dc2626;--idle: #c4c4c8;--ok-soft: #f0fdf4;--ok-border: #dcfce7;--warn-soft: #fffbeb;--warn-border: #fef3c7;--danger-soft: #fef2f2;--danger-border: #fecaca;--radius: 8px;--radius-lg: 12px;--radius-sm: 6px;--shadow-sm: 0 1px 2px rgba(24,24,27,.06);--shadow: 0 1px 3px rgba(24,24,27,.08), 0 1px 2px rgba(24,24,27,.06);--shadow-md: 0 6px 20px rgba(24,24,27,.1);--space-1: 4px;--space-2: 8px;--space-3: 12px;--space-4: 16px;--space-5: 20px;--space-6: 24px;--space-7: 32px;--space-8: 40px;--fs-xs: 12px;--fs-sm: 13px;--fs-base: 14px;--fs-md: 15px;--fs-lg: 18px;--fs-xl: 22px;--fs-2xl: 28px;--lh-tight: 1.25;--lh: 1.5;--fw-regular: 400;--fw-medium: 500;--fw-semibold: 600;--ring: 0 0 0 3px var(--accent-soft);--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;--transition: .15s ease}html[data-theme=dark]{--bg: #0b0d10;--surface: #14171c;--surface-2: #1a1e24;--border: #23272e;--border-strong: #2d323b;--text: #e7e9ee;--text-muted: #9aa1ac;--text-faint: #6b7280;--accent: #ff5c63;--accent-hover: #ff7077;--accent-soft: rgba(242,84,91,.16);--ok: #34d399;--warn: #fbbf24;--danger: #f87171;--idle: #4b5563;--ok-soft: rgba(52,211,153,.13);--ok-border: rgba(52,211,153,.28);--warn-soft: rgba(251,191,36,.12);--warn-border: rgba(251,191,36,.28);--danger-soft: rgba(248,113,113,.12);--danger-border: rgba(248,113,113,.3);--shadow-sm: 0 1px 2px rgba(0,0,0,.4);--shadow: 0 2px 6px rgba(0,0,0,.45);--shadow-md: 0 8px 28px rgba(0,0,0,.55)}html{color-scheme:light dark}*{box-sizing:border-box}html,body{margin:0}body{background:var(--bg);color:var(--text);font-family:var(--font);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}.mono{font-family:var(--mono)}.muted{color:var(--text-muted)}.btn{font:inherit;cursor:pointer;border:1px solid var(--border-strong);background:var(--surface);color:var(--text);padding:7px 12px;border-radius:var(--radius);transition:var(--transition)}.btn:hover{background:var(--surface-2)}.btn:disabled{opacity:.5;cursor:default}.btn-primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn-primary:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}.btn-ghost{background:transparent;border-color:transparent;color:var(--text-muted)}.btn-ghost:hover{background:var(--surface-2);color:var(--text)}.btn-danger{color:var(--danger);border-color:transparent;background:transparent}.btn-danger:hover{background:var(--danger-soft)}.btn-sm{padding:4px 8px;font-size:var(--fs-sm)}.btn-icon{padding:6px;width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;line-height:1}.btn:focus-visible,.input:focus-visible,.nav-item:focus-visible,.segmented button:focus-visible,.menu-item:focus-visible{outline:none;box-shadow:var(--ring)}.btn:active:not(:disabled){transform:translateY(.5px)}.input{font:inherit;padding:8px 10px;border:1px solid var(--border-strong);border-radius:var(--radius);background:var(--surface);color:var(--text);transition:var(--transition);width:100%}.input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);padding:16px}.card-hover{transition:var(--transition)}.card-hover:hover{box-shadow:var(--shadow-md);transform:translateY(-1px)}html[data-theme=dark] .card-hover:hover{transform:none;border-color:var(--border-strong);background:var(--surface-2);box-shadow:var(--shadow)}.badge{display:inline-flex;align-items:center;gap:5px;font-size:12px;padding:2px 8px;border-radius:999px;background:var(--surface-2);color:var(--text-muted);border:1px solid var(--border)}.badge-ok{background:var(--ok-soft);color:var(--ok);border-color:var(--ok-border)}.badge-warn{background:var(--warn-soft);color:var(--warn);border-color:var(--warn-border)}.badge-idle{background:var(--surface-2);color:var(--text-faint)}.status-dot{width:8px;height:8px;border-radius:50%;display:inline-block;background:var(--idle)}.status-dot.online{background:var(--ok);box-shadow:0 0 0 3px var(--ok-soft)}.status-dot.offline{background:var(--idle)}.app-shell{display:grid;grid-template-columns:240px 1fr;min-height:100vh}.sidebar{background:var(--surface);border-right:1px solid var(--border);display:flex;flex-direction:column;padding:16px 12px;gap:4px}.brand{display:flex;align-items:center;gap:8px;font-weight:600;font-size:15px;padding:6px 8px 14px}.brand-mark{color:var(--accent);font-size:18px}.nav-item{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:var(--radius);color:var(--text-muted);cursor:pointer;border:none;background:transparent;font:inherit;width:100%;text-align:left;transition:var(--transition)}.nav-item:hover{background:var(--surface-2);color:var(--text)}.nav-item.active{background:var(--surface-2);color:var(--accent);font-weight:var(--fw-medium);box-shadow:inset 2px 0 0 var(--accent)}.acct{margin-top:auto;border-top:1px solid var(--border);padding-top:12px;position:relative}.acct-card{display:flex;align-items:center;gap:8px;padding:8px;border-radius:var(--radius);cursor:pointer;transition:var(--transition)}.acct-card:hover{background:var(--surface-2)}.acct-email{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.avatar{width:28px;height:28px;border-radius:50%;background:var(--accent-soft);color:var(--accent);display:flex;align-items:center;justify-content:center;font-weight:600;font-size:13px;flex:0 0 auto}.content{display:flex;flex-direction:column;min-width:0}.topbar{display:flex;align-items:center;justify-content:space-between;padding:18px 28px;border-bottom:1px solid var(--border);background:var(--surface)}.topbar h1{font-size:18px;margin:0;font-weight:600}.page{padding:28px}.menu{position:absolute;right:0;top:calc(100% + 4px);z-index:20;min-width:160px;background:var(--surface);border:1px solid var(--border-strong);border-radius:var(--radius);box-shadow:var(--shadow-md);padding:4px;animation:pop .12s ease}.menu-up{top:auto;bottom:calc(100% + 4px)}.menu-item{display:block;width:100%;text-align:left;padding:7px 10px;border-radius:6px;border:none;background:transparent;font:inherit;color:var(--text);cursor:pointer}.menu-item:hover{background:var(--surface-2)}.menu-item.danger{color:var(--danger)}.menu-item.danger:hover{background:var(--danger-soft)}.segmented{display:inline-flex;background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius);padding:2px}.segmented button{border:none;background:transparent;font:inherit;padding:5px 12px;border-radius:6px;cursor:pointer;color:var(--text-muted)}.segmented button.active{background:var(--surface);color:var(--text);box-shadow:var(--shadow-sm)}.alert{padding:10px 14px;border-radius:var(--radius);font-size:var(--fs-sm)}.alert-danger{background:var(--danger-soft);color:var(--danger);border:1px solid var(--danger-border)}.alert-warn{background:var(--warn-soft);color:var(--warn);border:1px solid var(--warn-border)}.dialog-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:50;padding:16px;animation:fade .14s ease}.dialog{background:var(--surface);border:1px solid var(--border-strong);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);padding:24px;max-width:400px;width:100%;animation:pop .14s ease}.dialog h3{margin:0 0 8px;font-size:16px}.dialog-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:20px}@keyframes pop{0%{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}@keyframes fade{0%{opacity:0}to{opacity:1}}.empty{display:flex;flex-direction:column;align-items:center;gap:var(--space-2);text-align:center;padding:var(--space-8) var(--space-5);color:var(--text-muted);background:var(--surface);border:1px dashed var(--border-strong);border-radius:var(--radius-lg)}.empty-glyph{font-size:28px;opacity:.55}.empty-title{color:var(--text);font-weight:var(--fw-semibold);font-size:var(--fs-md)}.empty-sub{font-size:var(--fs-sm)}.auth-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:16px;position:relative}.auth-card{width:100%;max-width:360px;display:grid;gap:14px}.auth-card .brand{justify-content:center;padding-bottom:4px}.auth-card h2{margin:0;font-size:18px;text-align:center}.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}.workspace{width:90%;margin:0 auto;padding:var(--space-5) 0;height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}.ws-header{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;flex:0 0 auto;padding-bottom:var(--space-4);margin-bottom:var(--space-4);border-bottom:1px solid var(--border)}.ws-id{display:flex;align-items:center;gap:var(--space-2);min-width:0}.ws-name{font-weight:var(--fw-semibold);font-size:var(--fs-sm);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ws-actions{margin-left:auto;display:flex;align-items:center;gap:var(--space-2)}.ws-body{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column}.ws-term-card{flex:1;min-height:0;display:flex}.ws-term-card>div{flex:1;min-height:0}.command-bar{display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap;flex:0 0 auto;padding:var(--space-3) var(--space-4);margin-bottom:var(--space-4);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm)}.command-bar .spacer{margin-left:auto}.sidebar-foot{padding:var(--space-3) var(--space-2) var(--space-1);font-size:var(--fs-xs);color:var(--text-faint);display:flex;align-items:center;gap:var(--space-2)}@media (max-width: 720px){.app-shell{grid-template-columns:1fr}.sidebar{display:none}.sidebar.open{display:flex;position:fixed;inset:0 auto 0 0;width:240px;z-index:40}}@media (prefers-reduced-motion: reduce){*{transition:none!important;animation:none!important}.card-hover:hover,.btn:active:not(:disabled){transform:none}}/**
 * Copyright (c) 2014 The xterm.js authors. All rights reserved.
 * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
 * https://github.com/chjj/term.js
 * @license MIT
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 * Originally forked from (with the author's permission):
 *   Fabrice Bellard's javascript vt100 for jslinux:
 *   http://bellard.org/jslinux/
 *   Copyright (c) 2011 Fabrice Bellard
 *   The original design remains. The terminal itself
 *   has been extended to include xterm CSI codes, among
 *   other features.
 */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{-webkit-user-select:text;user-select:text;white-space:pre}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}
