/**
 * 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;--bg: #07090f;--panel: #0e1320;--border: #1d2433;--accent: #82aaff;--text: #c8d3f5;--muted: #6b7394}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}.app{display:flex;flex-direction:column;height:100vh}.topbar{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;border-bottom:1px solid var(--border);background:var(--panel)}.brand{display:flex;align-items:center;gap:8px;font-size:18px;font-weight:600}.brand-name{letter-spacing:.5px}.badge{font-size:11px;text-transform:uppercase;color:#ffb454;border:1px solid #ffb45455;padding:2px 6px;border-radius:999px}.status-pill{font-size:13px;padding:4px 10px;border-radius:999px;border:1px solid var(--border)}.status-pill[data-status=running]{color:#82ffb0;border-color:#82ffb055}.status-pill[data-status=booting]{color:#ffd98a;border-color:#ffd98a55}.status-pill[data-status=error]{color:#ff7b7b;border-color:#ff7b7b55}.account-switch{display:flex;gap:8px;align-items:center}.account-switch select{background:#131a2b;color:var(--text);border:1px solid var(--border);border-radius:8px;padding:6px 8px;font-size:13px;max-width:260px}.proxied{display:block;font-size:11px;color:var(--muted);margin-top:4px}.layout{display:grid;grid-template-columns:320px 1fr;flex:1;min-height:0}.panel{border-right:1px solid var(--border);padding:18px;overflow-y:auto;background:var(--panel)}.panel h2{margin-top:0;font-size:15px;text-transform:uppercase;letter-spacing:1px;color:var(--muted)}.controls{display:flex;gap:8px;margin:14px 0}.btn{flex:1;padding:9px 12px;border-radius:8px;border:1px solid var(--border);background:#131a2b;color:var(--text);font-size:14px;cursor:pointer;transition:filter .15s ease}.btn:hover:not(:disabled){filter:brightness(1.2)}.btn:disabled{opacity:.4;cursor:not-allowed}.btn.primary{background:var(--accent);color:#06101f;border-color:transparent;font-weight:600}.btn.danger{background:#2a1416;border-color:#ff7b7b44;color:#ff9c9c}.link{background:none;border:none;color:var(--accent);cursor:pointer;font-size:12px;padding:0 0 0 6px}.repo-line{font-size:13px;color:var(--muted)}.url-box{margin:12px 0;padding:10px;border:1px solid var(--border);border-radius:8px;background:#0a0e18;word-break:break-all}.url-box .label{display:block;font-size:11px;text-transform:uppercase;color:var(--muted);margin-bottom:4px}.url-box a{color:var(--accent)}.hint{font-size:12px;color:var(--muted);line-height:1.5}.hint code{background:#0a0e18;padding:1px 4px;border-radius:4px}.msg{font-size:13px;padding:8px 10px;border-radius:8px;background:#0a0e18;border:1px solid var(--border)}.msg.error{color:#ff9c9c;border-color:#ff7b7b44}.runs{margin-top:14px;font-size:13px}.runs summary{cursor:pointer;color:var(--muted)}.runs ul{margin:8px 0 0;padding-left:18px}.runs a{color:var(--accent)}.disclaimer{margin-top:16px;font-size:12px;color:#ffb454;line-height:1.5}.config label{display:block;font-size:12px;color:var(--muted);margin-bottom:10px}.config input{display:block;width:100%;margin-top:4px;padding:8px 10px;background:#0a0e18;border:1px solid var(--border);border-radius:8px;color:var(--text);font-size:13px}.terminal-wrap{min-height:0;padding:10px}.terminal{height:100%;width:100%;background:#0b0e14;border-radius:8px;overflow:hidden}.xterm{padding:8px}.mode-toggle{display:flex;gap:8px;margin-bottom:14px}.btn.small{flex:1;padding:7px 10px;font-size:13px}.btn.active{outline:2px solid var(--accent);outline-offset:-2px;color:var(--accent)}.desktop{width:100%;height:100%;border:0;background:#000;border-radius:8px}.vm-settings{margin-bottom:14px;font-size:13px}.vm-settings summary{cursor:pointer;color:var(--muted);margin-bottom:8px}.vm-settings label{display:block;font-size:12px;color:var(--muted);margin-bottom:8px}.vm-settings input,.vm-settings select{display:block;width:100%;margin-top:4px;padding:7px 9px;background:#0a0e18;border:1px solid var(--border);border-radius:8px;color:var(--text);font-size:13px}.creds{margin-top:8px;font-size:12px;color:var(--muted)}.creds code{background:#0a0e18;padding:1px 5px;border-radius:4px;color:var(--accent)}@media (max-width: 800px){.layout{grid-template-columns:1fr;grid-template-rows:auto 1fr}.terminal-wrap{min-height:320px}}
