/**
 * 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}:root{font-family:ui-sans-serif,system-ui,sans-serif;color-scheme:dark}*{box-sizing:border-box}body{margin:0;background:#1a1b26;color:#c0caf5}.app{display:flex;height:100vh}.login{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:flex;align-items:center;justify-content:center;background:#1a1b26}.login-card{display:flex;flex-direction:column;gap:12px;width:320px;padding:28px;background:#16161e;border:1px solid #2a2b3c;border-radius:10px}.brand-lg{font-size:26px;font-weight:700;color:#7aa2f7;text-align:center}.login-hint{margin:0;font-size:12px;opacity:.7;text-align:center}.login-hint code{background:#2a2b3c;padding:1px 5px;border-radius:4px}.login-card input{padding:9px 12px;background:#1a1b26;border:1px solid #3b3d52;border-radius:6px;color:#c0caf5;font-size:14px}.login-card button{padding:9px;background:#7aa2f7;color:#16161e;border:none;border-radius:6px;font-weight:600;cursor:pointer}.login-card button:hover{background:#8fb0f9}.login-status{text-align:center;font-size:12px;opacity:.7}.login-status.err{color:#f7768e;opacity:1}.spacer{flex:1}.sidebar{width:280px;flex-shrink:0;background:#16161e;border-right:1px solid #2a2b3c;overflow-y:auto;font-size:13px}.sidebar-head{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid #2a2b3c;position:sticky;top:0;background:#16161e}.brand{font-weight:600;color:#7aa2f7}.status{font-size:11px;padding:1px 6px;border-radius:4px;background:#2a2b3c}.status.connected{color:#9ece6a}.status.disconnected{color:#f7768e}.status.connecting{color:#e0af68}.empty{padding:14px 12px;opacity:.5;font-size:12px}.section-head{display:flex;align-items:center;gap:6px;padding:8px 12px 4px;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#787c99}.section-head span:first-child{flex:1}.devices-head{margin-top:8px;border-top:1px solid #20212e;padding-top:10px}.dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.dot.on{background:#9ece6a}.dot.off{background:#565872}.project{border-bottom:1px solid #20212e}.project-head{display:flex;align-items:center;gap:6px;padding:7px 12px;font-weight:600}.project-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.device-badge{font-size:10px;padding:1px 6px;border-radius:8px;background:#2a2b3c;flex-shrink:0}.device-badge.on{color:#9ece6a}.device-badge.off{color:#787c99}.workspace{padding-left:10px}.workspace-head{display:flex;align-items:center;gap:6px;padding:5px 12px 5px 8px;color:#bb9af7}.workspace-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:90px}.branch-badge{flex:1;font-size:10px;color:#7dcfff;opacity:.8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.main-badge{font-size:10px;padding:0 5px;border-radius:3px;background:#2d3149;color:#7aa2f7;flex-shrink:0}.device-row{display:flex;align-items:center;gap:6px;padding:4px 12px;font-size:12px}.device-row-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task{display:flex;align-items:center;gap:6px;padding:5px 12px 5px 18px;cursor:pointer;border-left:2px solid transparent}.task:hover{background:#1e2030}.task.active{background:#292e42;border-left-color:#7aa2f7}.task-title{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-status{font-size:10px;padding:1px 5px;border-radius:3px;background:#2a2b3c;flex-shrink:0}.task-status.running{color:#9ece6a}.task-status.exited{color:#f7768e}.task-status.idle{color:#787c99}.task-actions{display:flex;gap:2px}.mini{background:#2a2b3c;color:#c0caf5;border:1px solid #3b3d52;border-radius:4px;padding:1px 6px;cursor:pointer;font-size:11px;line-height:1.4}.mini:hover{background:#3b3d52}.mini.danger:hover{background:#5a2230;color:#f7768e}.terminal-host{flex:1;min-width:0;padding:6px;background:#1a1b26}
