/**
 * 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{color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#101419;color:#e7edf3}html,body,#app{width:100%;height:100%;overflow:hidden}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:linear-gradient(180deg,#101419eb,#101419fa),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%2326323d' stroke-width='1' opacity='.35'%3E%3Cpath d='M0 60h120M60 0v120'/%3E%3C/g%3E%3C/svg%3E")}button,input{font:inherit}button{cursor:pointer}.app-shell{width:100%;height:100%;overflow:hidden}.terminal-frame{display:grid;grid-template-rows:52px minmax(0,1fr);width:100%;height:100dvh;overflow:hidden}.topbar{display:grid;grid-template-columns:minmax(120px,1fr) auto minmax(220px,1fr);gap:16px;align-items:center;border-bottom:1px solid #26323d;padding:0 14px;background:#13181ef5;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.brand,.session-meta,.actions{display:flex;align-items:center}.brand{gap:10px;min-width:0;color:#f4f8fb;font-weight:700}.brand-mark{width:12px;height:12px;border:2px solid #58d5d0;border-radius:50%;box-shadow:0 0 0 3px #58d5d024}.session-meta{justify-content:center;gap:8px;color:#aab7c4;font-size:13px;white-space:nowrap}.status-dot{width:8px;height:8px;border-radius:999px;background:#74808d}.status-dot[data-state=connected]{background:#63d471}.status-dot[data-state=connecting]{background:#f5c451}.status-dot[data-state=disconnected]{background:#ff6b6b}.actions{justify-content:flex-end;gap:8px}.icon-button,.text-button,.primary-button{border:1px solid #344250;color:#e7edf3;background:#172029;min-height:34px;border-radius:7px}.icon-button{display:grid;place-items:center;width:36px;padding:0;font-size:18px}.text-button,.primary-button{padding:0 14px;font-weight:650}.text-button:hover,.icon-button:hover,.primary-button:hover{border-color:#4b6072;background:#1e2a35}.text-button.danger{color:#ffb2b2}.primary-button{width:100%;border-color:#58d5d0;background:#14615d}.terminal-host{position:relative;width:100%;height:100%;min-height:0;overflow:hidden;padding:10px;background:#0b0d10}.terminal-host .xterm{width:100%;height:100%}.login-view{display:grid;min-height:100dvh;place-items:center;padding:24px;overflow:auto}.login-panel{display:grid;gap:18px;width:min(400px,100%);border:1px solid #2a3541;border-radius:8px;padding:26px;background:#13181ef0;box-shadow:0 24px 80px #00000059}.login-panel h1,.login-panel p{margin:0}.login-panel h1{font-size:28px;line-height:1.1}.login-panel p{color:#aab7c4}.login-panel label{display:grid;gap:8px;color:#c8d2dc;font-size:13px;font-weight:650}.login-panel input{width:100%;min-height:42px;border:1px solid #344250;border-radius:7px;padding:0 12px;color:#eef4f9;background:#101821;outline:none}.login-panel input:focus{border-color:#58d5d0;box-shadow:0 0 0 3px #58d5d024}.form-error{border:1px solid rgba(255,107,107,.35);border-radius:7px;padding:10px 12px;color:#ffd0d0;background:#ff6b6b17}[hidden]{display:none!important}@media(max-width:700px){.topbar{grid-template-columns:1fr auto;grid-template-rows:28px 36px;height:auto;padding-block:8px}.terminal-frame{grid-template-rows:88px minmax(0,1fr)}.session-meta{grid-column:2;grid-row:1}.actions{grid-column:1 / -1;justify-content:stretch}.actions .text-button{flex:1}}
