:root{--bg: #0f1218;--panel: #181d27;--border: #2a313f;--text: #e6e9ef;--muted: #8a93a6;--accent: #4f7cff;--ok: #34d399;--bad: #f87171;--unknown: #9ca3af;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color-scheme:dark}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}.ssh-terminal-transcript{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:pre}.app-header{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1.25rem;border-bottom:1px solid var(--border);background:var(--panel)}.app-header h1{font-size:1.1rem;margin:0;letter-spacing:.02em}main{max-width:960px;margin:0 auto;padding:1.5rem 1.25rem}.panel{background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:1.25rem}label{display:block;font-size:.85rem;color:var(--muted);margin-bottom:.25rem}input,select,textarea{width:100%;padding:.55rem .7rem;background:#0d1017;border:1px solid var(--border);border-radius:7px;color:var(--text);font-size:.95rem}textarea{resize:vertical;font-family:ui-monospace,SF Mono,Menlo,monospace}button{padding:.5rem .9rem;background:var(--accent);color:#fff;border:none;border-radius:7px;font-size:.9rem;cursor:pointer}button.secondary{background:transparent;border:1px solid var(--border);color:var(--text)}button.danger{border-color:#f871718c;color:var(--bad)}button:disabled{opacity:.5;cursor:default}.error{color:var(--bad);font-size:.85rem}.success{color:var(--ok);font-size:.85rem}.muted,small{color:var(--muted)}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:.55rem .5rem;border-bottom:1px solid var(--border);font-size:.9rem}th{color:var(--muted);font-weight:500}.badge{display:inline-block;padding:.1rem .55rem;border-radius:999px;font-size:.78rem;font-weight:600}.badge.on{background:#34d39926;color:var(--ok)}.badge.off{background:#f8717126;color:var(--bad)}.badge.unknown{background:#9ca3af26;color:var(--unknown)}.badge.exists{background:#34d39926;color:var(--ok)}.badge.error{background:#f8717126;color:var(--bad)}.feed{margin-top:1rem;background:#0d1017;border:1px solid var(--border);border-radius:7px;padding:.75rem;font-family:ui-monospace,SF Mono,Menlo,monospace;font-size:.82rem;max-height:200px;overflow-y:auto}.feed div{padding:.1rem 0}.row-actions{display:flex;gap:.5rem;margin-bottom:1rem}.row-actions.compact{margin:.75rem 0 0}.console{margin-top:1.25rem}.console-row{display:flex;gap:.5rem}.checkbox-row{display:flex;align-items:center;gap:.5rem;margin-top:.75rem}.checkbox-row input{width:auto}.physical-view-row{margin-bottom:.75rem}.console-row input{flex:1;font-family:ui-monospace,SF Mono,Menlo,monospace}.output{margin:0;white-space:pre-wrap;word-break:break-word;font-family:ui-monospace,SF Mono,Menlo,monospace;font-size:.8rem;color:var(--muted)}.admin-console{margin-bottom:1.25rem}.section-heading{display:flex;align-items:start;justify-content:space-between;gap:1rem;margin-bottom:1rem}.section-heading h2,.subpanel h3{margin:0 0 .35rem}.section-heading p{margin:0;color:var(--muted)}.selected-summary{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem .8rem;margin-bottom:.85rem;padding:.65rem .75rem;background:#10141d;border:1px solid var(--border);border-radius:9px;font-size:.9rem}.selected-summary span:not(.muted){color:var(--muted)}.admin-tabs{display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:1rem}.admin-tabs button{margin:0;background:transparent;border:1px solid var(--border);color:var(--muted)}.admin-tabs button.active{background:#4f7cff24;border-color:#4f7cffb3;color:var(--text)}.admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1rem}.subpanel{background:#10141d;border:1px solid var(--border);border-radius:9px;padding:1rem}.subgroup-panel{margin-bottom:1rem}.subpanel label{margin-top:.7rem}.subpanel button{margin-top:.75rem}.subpanel-toggle{display:flex;align-items:center;gap:.45rem;background:transparent;border:none;padding:0;font:inherit;font-weight:600;color:var(--text);cursor:pointer}.subpanel-toggle:hover{color:var(--accent)}.subpanel-toggle .chevron{display:inline-block;transition:transform .15s ease}.subpanel-toggle .chevron.expanded{transform:rotate(90deg)}.compact-table{margin-top:.75rem}.compact-table select,.compact-table input{min-width:7rem}.right{text-align:right;white-space:nowrap}.inline-form{display:flex;align-items:end;gap:.5rem}.inline-form button{margin-top:0;white-space:nowrap}.user-create{margin-bottom:.75rem}.access-panel{margin-top:1rem}.host-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.6rem}.host-card{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:.35rem;padding:.6rem .7rem;border:1px solid var(--border);border-radius:9px;text-align:left;cursor:pointer;color:var(--text);font:inherit}.host-card:hover,.host-card:focus-visible{border-color:var(--accent)}.host-card.static{cursor:default}.host-card.static:hover{border-color:var(--border)}.host-card.static .host-name{padding-right:0}.host-card .badge{align-self:flex-start}.host-name{padding-right:3rem;font-weight:600;font-size:.85rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.host-ip{font-size:.75rem;color:var(--muted);font-family:ui-monospace,SF Mono,Menlo,monospace}.physical-room{margin-bottom:2.5rem}.room-header{margin:0 0 1rem;padding-bottom:.5rem;border-bottom:2px solid var(--border)}.room-header-name{margin:0 0 .25rem;color:var(--text);font-size:1.1rem;font-weight:700}.room-header-description{margin:0;color:var(--muted);font-size:.85rem}.physical-room-grid{display:grid;gap:.6rem}.physical-host-cell{min-width:0;min-height:0}.physical-host-cell .host-card{height:100%}.room-grid-editor{display:grid;gap:.4rem;margin-top:.75rem}.room-grid-cell{display:flex;align-items:center;justify-content:center;padding:.4rem;border:1px dashed var(--border);border-radius:6px;background:transparent;color:var(--muted);font-size:.75rem;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.room-grid-cell.occupied{border-style:solid;border-color:var(--accent);color:var(--text);background:#4f7cff24}.fw-chip{position:absolute;top:50%;right:.5rem;transform:translateY(-50%);display:inline-block;padding:.1rem .5rem;border-radius:999px;font-size:.72rem;font-weight:700;white-space:nowrap}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#06080c99;display:flex;align-items:center;justify-content:center;padding:1rem;z-index:50}.modal{position:relative;width:100%;max-width:360px;background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:1.25rem}.modal h3{margin:0 0 .15rem}.modal-close{position:absolute;top:.6rem;right:.6rem;background:transparent;border:none;color:var(--muted);font-size:1.2rem;line-height:1;padding:.2rem .4rem}.modal-status-row{display:flex;flex-wrap:wrap;gap:.4rem;margin:.85rem 0}.user-card-row{display:flex;flex-wrap:wrap;gap:.45rem;align-items:center}.user-card,.account-pill{display:inline-flex;flex-direction:column;align-items:flex-start;gap:.1rem;margin-top:0;min-width:5.5rem;padding:.4rem .55rem;border:1px solid var(--border);background:#121824;color:var(--text);text-align:left}.user-card small,.account-pill small{color:inherit;opacity:.78}.user-card.active-user{background:#4f7cff38;border-color:#4f7cffbf;color:#dbe6ff}.tiny-spinner{display:inline-block;width:.75rem;height:.75rem;margin-right:.35rem;border:2px solid currentColor;border-right-color:transparent;border-radius:999px;vertical-align:-.1rem;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.listing-dot{display:inline-block;width:.65rem;height:.65rem;margin-right:.45rem;border-radius:999px;background:var(--unknown);vertical-align:middle}.listing-dot.fresh{background:var(--ok)}.listing-dot.stale{background:#facc15}.listing-dot.error,.listing-dot.unreachable{background:var(--bad)}.account-pill.enabled-account{background:#34d3992e;border-color:#34d39980;color:var(--ok)}.account-pill.disabled-account{background:#f871712e;border-color:#f8717180;color:var(--bad)}@media(max-width:760px){.admin-grid,.inline-form,.console-row,.row-actions{display:block}.admin-grid>*,.inline-form>*,.console-row>*,.row-actions>*{margin-top:.5rem}.admin-tabs button{flex:1 1 100%}}.transfer-row{display:flex;flex-direction:column;gap:.3rem}.transfer-row-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.transfer-current-item{color:var(--muted);font-size:.78rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.progress-track{width:100%;height:8px;background:#ffffff0f;border-radius:999px;overflow:hidden}.progress-fill{height:100%;background:var(--accent);border-radius:999px;transition:width .15s ease-out}.progress-label{font-size:.78rem;color:var(--muted);white-space:nowrap}.badge.cancelled{background:#9ca3af26;color:var(--unknown)}.pending-file-list{display:flex;flex-wrap:wrap;gap:.4rem;margin:.5rem 0}.pending-file-chip{display:inline-flex;align-items:center;gap:.35rem;background:#ffffff0d;border:1px solid var(--border);border-radius:999px;padding:.15rem .4rem .15rem .6rem;font-size:.78rem}.pending-file-chip button{background:none;border:none;color:var(--muted);cursor:pointer;font-size:.9rem;line-height:1;padding:0 .15rem}.ssh-tab-strip{display:flex;flex-wrap:wrap;gap:.4rem;margin:1rem 0 .6rem}.ssh-tab{display:flex;align-items:stretch;border:1px solid var(--border);border-radius:8px;overflow:hidden}.ssh-tab.active{border-color:#4f7cffb3}.ssh-tab-select{margin:0;background:transparent;border:none;border-radius:0;color:var(--muted);padding:.4rem .6rem}.ssh-tab.active .ssh-tab-select{background:#4f7cff24;color:var(--text)}.ssh-tab-select small{color:inherit;opacity:.8}.ssh-tab-close{margin:0;background:transparent;border:none;border-left:1px solid var(--border);border-radius:0;color:var(--muted);padding:.4rem .55rem;cursor:pointer;line-height:1}.ssh-tab-close:hover{color:var(--bad, #c0392b)}.ssh-terminal-container{height:420px;padding:.5rem;background:#000;border:1px solid var(--border);border-radius:9px}.ssh-terminal-container .xterm{height:100%}/**
 * 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-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{font-family:monospace;-webkit-user-select:text;user-select:text;white-space:pre}.xterm .xterm-accessibility-tree>div{transform-origin:left;width:fit-content}.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}.xterm .xterm-scrollable-element>.scrollbar{cursor:default}.xterm .xterm-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.xterm .xterm-scrollable-element>.visible{opacity:1;background:#0000;transition:opacity .1s linear;z-index:11}.xterm .xterm-scrollable-element>.invisible{opacity:0;pointer-events:none}.xterm .xterm-scrollable-element>.invisible.fade{transition:opacity .8s linear}.xterm .xterm-scrollable-element>.shadow{position:absolute;display:none}.xterm .xterm-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:var(--vscode-scrollbar-shadow, #000) 0 6px 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.xterm .xterm-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}
