/**
 * 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;inset: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;inset:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{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: #0b0f14;--bar: #111821;--border: #1b2633;--fg: #d7e1ea;--accent: #1f6feb;--err: #ef4444;--ok: #22c55e;--muted: #8fa0b3}*{box-sizing:border-box}html,body,#root{margin:0;padding:0;height:100%;background:var(--bg);color:var(--fg);font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif}.app{display:flex;flex-direction:column;height:100dvh;position:relative}.bar{display:flex;gap:8px;align-items:center;padding:8px 10px;background:var(--bar);border-bottom:1px solid var(--border)}.bar input,.bar select,.bar button{background:var(--bg);color:var(--fg);border:1px solid #253242;border-radius:6px;padding:8px 10px;font:inherit}.bar button{cursor:pointer}.bar button.primary{background:var(--accent);border-color:var(--accent);color:#fff}.bar button.danger{background:transparent;border-color:var(--err);color:var(--err)}.bar .status{display:flex;align-items:center;gap:6px;font-size:12px;opacity:.85;white-space:nowrap;min-width:0;overflow:hidden;text-overflow:ellipsis}.dot{width:8px;height:8px;border-radius:50%;background:#666;flex:0 0 auto}.dot.on{background:var(--ok)}.dot.err{background:var(--err)}.spacer{flex:1}.tabs{display:flex;gap:4px;padding:4px 6px;background:#0e141c;border-bottom:1px solid var(--border);overflow-x:auto}.tab{display:inline-flex;align-items:center;gap:6px;background:#141d27;color:var(--fg);border:1px solid #253242;border-radius:6px 6px 0 0;padding:4px 8px;font:inherit;cursor:pointer;flex:0 0 auto;min-width:0;max-width:220px}.tab.active{background:var(--bg);border-bottom-color:var(--bg)}.tab .tab-dot{width:6px;height:6px;border-radius:50%;background:#666;flex:0 0 auto}.tab.online .tab-dot{background:var(--ok)}.tab.err .tab-dot{background:var(--err)}.tab .tab-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.tab .tab-close{opacity:.6;padding:0 2px}.tab .tab-close:hover{opacity:1;color:var(--err)}.tab.add{padding:4px 10px;background:transparent}.term-wrap{flex:1;min-height:0;position:relative}.term{position:absolute;inset:0;padding:6px}.quickbar{display:flex;gap:6px;overflow-x:auto;padding:6px 10px;background:var(--bar);border-top:1px solid var(--border)}.quickbar button{flex:0 0 auto;background:#141d27;border:1px solid #253242;color:var(--fg);padding:6px 10px;border-radius:6px;font:inherit;cursor:pointer}.quickbar button:active{background:var(--accent)}.panel{position:absolute;top:50px;right:10px;left:auto;max-width:95vw;width:380px;background:var(--bar);border:1px solid var(--border);border-radius:10px;padding:14px;box-shadow:0 16px 48px #0009;z-index:10;display:flex;flex-direction:column;gap:10px;max-height:80dvh;overflow:auto}.panel h3{margin:0 0 4px;font-size:14px;font-weight:600}.panel label{display:flex;flex-direction:column;font-size:12px;color:var(--muted);gap:4px}.panel input,.panel button{background:var(--bg);color:var(--fg);border:1px solid #253242;border-radius:6px;padding:8px 10px;font:inherit}.panel button{cursor:pointer}.panel button.danger{border-color:var(--err);color:var(--err);background:transparent}.panel button.close{align-self:flex-end;margin-top:4px}.panel .row{display:flex;gap:8px;flex-wrap:wrap}.panel .preset-row{display:grid;grid-template-columns:1fr 2fr auto;gap:6px}.panel .muted{font-size:12px;color:var(--muted)}.quickbar .file-btn{flex:0 0 auto;background:#141d27;border:1px solid #253242;color:var(--fg);padding:6px 10px;border-radius:6px;font:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.toast{position:fixed;left:50%;bottom:60px;transform:translate(-50%);background:#0b0f14;border:1px solid var(--border);padding:8px 14px;border-radius:8px;color:var(--fg);font-size:13px;z-index:20;box-shadow:0 8px 24px #0009;max-width:90vw}@media (max-width: 640px){.panel{right:5px;width:calc(100vw - 10px)}}
