/**
 * 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{--bg0: #0f1419;--bg1: #171e26;--bg2: #1f2933;--line: #2d3a47;--text: #e8eef4;--muted: #9aabbc;--accent: #2bb0a6;--accent-dim: #1f7f78;--danger: #e25c5c;--ok: #3ecf8e;--warn: #e0a54b;--font: "IBM Plex Sans", system-ui, sans-serif;--mono: "IBM Plex Mono", ui-monospace, monospace}*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%}body{font-family:var(--font);color:var(--text);background:radial-gradient(1200px 600px at 10% -10%,#1a3a3a 0%,transparent 55%),radial-gradient(900px 500px at 100% 0%,#243047 0%,transparent 50%),linear-gradient(180deg,var(--bg0),#0b1015 70%);background-attachment:fixed}a{color:var(--accent);text-decoration:none}button,input,select{font:inherit}.shell{max-width:1200px;margin:0 auto;padding:1.25rem 1.5rem 3rem}.topbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.75rem;padding-bottom:1rem;border-bottom:1px solid var(--line)}.brand{font-weight:700;letter-spacing:.02em;font-size:1.15rem}.nav{display:flex;gap:1rem;align-items:center}.nav a{color:var(--muted)}.nav a.active,.nav a:hover{color:var(--text)}.panel{background:color-mix(in srgb,var(--bg1) 88%,transparent);border:1px solid var(--line);border-radius:12px;padding:1.25rem;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.panel+.panel{margin-top:1rem}h1,h2,h3{margin:0 0 .75rem;font-weight:600}.muted{color:var(--muted)}.grid{display:grid;gap:.75rem}.grid.devices{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}.device-card{display:block;padding:1rem;border-radius:10px;border:1px solid var(--line);background:var(--bg2);color:inherit;transition:border-color .15s ease,transform .15s ease}.device-card:hover{border-color:var(--accent-dim);transform:translateY(-1px)}.row{display:flex;gap:.75rem;flex-wrap:wrap;align-items:center}.stack{display:flex;flex-direction:column;gap:.75rem}label{display:flex;flex-direction:column;gap:.35rem;font-size:.9rem;color:var(--muted)}input,select{background:var(--bg0);border:1px solid var(--line);border-radius:8px;color:var(--text);padding:.65rem .75rem}input.limit{width:4.25rem;padding:.3rem .4rem}button,.btn{display:inline-flex;align-items:center;justify-content:center;background:var(--accent);color:#041312;border:none;border-radius:8px;padding:.6rem .95rem;font-weight:600;cursor:pointer;text-decoration:none}button.secondary,.btn.secondary{background:transparent;color:var(--text);border:1px solid var(--line)}button.danger{background:var(--danger);color:#fff}button:disabled{opacity:.5;cursor:not-allowed}.badge{display:inline-flex;align-items:center;gap:.35rem;font-size:.75rem;font-weight:600;padding:.2rem .5rem;border-radius:999px;border:1px solid var(--line)}.badge.ok{color:var(--ok);border-color:color-mix(in srgb,var(--ok) 40%,var(--line))}.badge.down{color:var(--danger);border-color:color-mix(in srgb,var(--danger) 40%,var(--line))}.table{width:100%;border-collapse:collapse;font-size:.92rem}.table th,.table td{text-align:left;padding:.65rem .4rem;border-bottom:1px solid var(--line);vertical-align:top}.table th{color:var(--muted);font-weight:500}.mono{font-family:var(--mono);font-size:.85rem}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:1rem}.login-panel{width:min(400px,100%)}.login-panel h1{font-size:1.8rem}.term-host{height:420px;background:#0a0d10;border-radius:8px;overflow:hidden;border:1px solid var(--line);padding:.5rem}.desktop-host{height:640px;background:#0a0d10;border-radius:8px;overflow:hidden;border:1px solid var(--line)}.desktop-host canvas{width:100%!important;height:100%!important}.error{color:var(--danger)}.success{color:var(--ok)}code{font-family:var(--mono);background:var(--bg0);padding:.1rem .35rem;border-radius:4px}
