/**
 * 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}*{margin:0;padding:0;box-sizing:border-box}html,body,#root{height:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,monospace;background:#1e1e1e;color:#d4d4d4}.login-page{height:100%;display:flex;align-items:center;justify-content:center}.login-card{text-align:center}.login-card h1{font-size:2rem;margin-bottom:1.5rem;color:#fff}.login-card form{display:flex;gap:.5rem}.login-card input{padding:.6rem 1rem;border:1px solid #555;border-radius:4px;background:#2d2d2d;color:#fff;font-size:1rem;outline:none}.login-card input:focus{border-color:#007acc}.login-card button{padding:.6rem 1.2rem;border:none;border-radius:4px;background:#007acc;color:#fff;font-size:1rem;cursor:pointer}.login-card button:disabled{opacity:.5;cursor:not-allowed}.login-card .error{color:#f44;margin-top:.5rem;font-size:.9rem}.workspace{height:100%;display:flex;flex-direction:column}.workspace-header{display:flex;justify-content:space-between;align-items:center;padding:0 1rem;height:36px;background:#252526;border-bottom:1px solid #333;font-size:.85rem}.header-left,.header-right{display:flex;align-items:center;gap:.75rem}.header-title{font-weight:600;color:#fff}.header-user{color:#888}.header-status.disconnected{color:#f0ad4e;font-size:.75rem}.workspace-header button{padding:.15rem .5rem;border:1px solid #555;border-radius:3px;background:transparent;color:#d4d4d4;cursor:pointer;font-size:.75rem}.workspace-header button:hover{background:#333}.workspace-body{flex:1;display:flex;overflow:hidden}.main-panel{flex:1;display:flex;flex-direction:column;overflow:hidden}.terminal-tabs{display:flex;align-items:center;background:#252526;border-bottom:1px solid #333;height:32px;overflow-x:auto}.terminal-tab{display:flex;align-items:center;gap:.4rem;padding:0 .75rem;height:100%;cursor:pointer;border-right:1px solid #333;font-size:.8rem;color:#888;white-space:nowrap}.terminal-tab:hover{color:#d4d4d4}.terminal-tab.active{background:#1e1e1e;color:#fff}.tab-close{background:none;border:none;color:inherit;cursor:pointer;font-size:1rem;line-height:1;padding:0 2px;opacity:.5}.tab-close:hover{opacity:1;color:#f44}.tab-new{background:none;border:none;color:#888;cursor:pointer;font-size:1.1rem;padding:0 .75rem;height:100%}.tab-new:hover{color:#fff}.terminal-area{flex:1;overflow:hidden}.terminal-container{padding:4px}.sidebar{width:280px;min-width:200px;background:#252526;border-left:1px solid #333;display:flex;flex-direction:column;overflow:hidden}.sidebar-header{padding:.5rem .75rem;font-size:.7rem;font-weight:600;letter-spacing:.1em;color:#888;border-bottom:1px solid #333}.sidebar-tree{flex:1;overflow-y:auto;padding:.25rem 0}.sidebar-viewer{border-top:1px solid #333;max-height:50%;overflow-y:auto}.tree-node{-webkit-user-select:none;user-select:none}.tree-item{display:flex;align-items:center;padding:2px .5rem;cursor:pointer;font-size:.8rem}.tree-item:hover{background:#2a2d2e}.tree-icon{font-size:.7rem;width:1.2em;flex-shrink:0}.tree-name.dir{color:#d4d4d4;font-weight:500}.tree-name.file{color:#aaa}.tree-children{padding-left:1rem}.file-viewer{display:flex;flex-direction:column}.viewer-header{display:flex;justify-content:space-between;align-items:center;padding:.3rem .75rem;background:#2d2d30;font-size:.75rem}.viewer-filename{color:#d4d4d4}.viewer-close{background:none;border:none;color:#888;cursor:pointer;font-size:1rem}.viewer-close:hover{color:#f44}.viewer-content{padding:.75rem;font-size:.8rem;line-height:1.5;overflow-y:auto}.viewer-content pre{white-space:pre-wrap;word-break:break-word;font-family:JetBrains Mono,Fira Code,monospace;font-size:.75rem}.viewer-content h1,.viewer-content h2,.viewer-content h3{color:#fff;margin:.5rem 0 .3rem}.viewer-content p{margin:.3rem 0}.viewer-content code{background:#333;padding:.1rem .3rem;border-radius:3px;font-size:.75rem}.viewer-content a{color:#007acc}.viewer-loading{color:#888;font-style:italic}
