/**
 * 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:#050505;color:#f3f3f3}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,textarea,select{font:inherit}button{cursor:pointer}.login-shell{min-height:100vh;display:grid;place-items:center;background:#090909}.login-panel{width:min(420px,calc(100vw - 32px));border:1px solid #2b2b2b;border-radius:8px;background:#101010;padding:18px;box-shadow:0 24px 80px #00000073}.traffic-lights{display:flex;gap:8px}.traffic-lights span{width:12px;height:12px;border-radius:999px;display:inline-block}.red{background:#ff5f57}.yellow{background:#febc2e}.green{background:#28c840}.login-brand{display:flex;align-items:center;gap:14px;margin:28px 0}.login-brand h1{margin:0;font-size:28px;letter-spacing:0}.login-brand p,.app-header span,.context-line small{margin:0;color:#9d9d9d}label{display:grid;gap:8px;margin:14px 0;color:#cfcfcf}input,textarea,select{width:100%;border:1px solid #333;border-radius:6px;background:#070707;color:#f6f6f6;padding:10px 12px;outline:none}textarea{resize:vertical}input:focus,textarea:focus,select:focus{border-color:#78dce8}.primary-button,.secondary-button{width:100%;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:6px;color:#050505;background:#f5f5f5;padding:11px 14px;font-weight:700}.secondary-button{background:#78dce8}.form-error,.notice{color:#ff8f8f}.app-shell{min-height:100vh;background:#050505;color:#f3f3f3}.app-shell.light{color-scheme:light;background:#f4f4f4;color:#101010}.app-header{height:58px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid #242424;background:#0c0c0c}.app-header>div:first-child{display:flex;align-items:baseline;gap:10px}.workspace{display:grid;grid-template-columns:280px minmax(0,1fr) 320px;gap:14px;padding:14px;min-height:calc(100vh - 58px)}.side-panel,.monitor-panel,.terminal-wrap,.file-editor{border:1px solid #252525;border-radius:8px;background:#0c0c0c;overflow:hidden}.history-panel{border:1px solid #252525;border-radius:8px;background:#0c0c0c}.side-panel,.monitor-panel{padding:14px;overflow-y:auto}.panel-title,.terminal-toolbar,.editor-toolbar,.settings-strip,.settings-group,.metric-head,.context-line{display:flex;align-items:center}.panel-title{gap:8px;font-weight:700;margin-bottom:12px}.panel-title.compact{margin-top:18px}.connection-list{display:grid;gap:8px}.connection-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;width:100%;border:1px solid #292929;border-radius:6px;background:#121212;color:inherit;padding:8px}.connection-item.active{border-color:#78dce8}.connection-main{min-width:0;display:grid;gap:5px;border:0;background:transparent;color:inherit;padding:2px;text-align:left}.connection-main span,.connection-main small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.connection-item small{color:#9b9b9b}.connection-actions{display:flex;gap:5px}.connection-actions button,.inline-icon-button{width:28px;height:28px;display:inline-grid;place-items:center;border:1px solid #303030;border-radius:6px;background:#171717;color:#a6a6a6}.inline-icon-button{margin-left:auto}.connection-form{margin-top:10px}.split-inputs{display:grid;grid-template-columns:90px 1fr;gap:8px}.center-stack{display:grid;grid-template-rows:auto minmax(0,1fr) minmax(0,.8fr) minmax(0,.45fr);gap:14px;min-width:0;min-height:0}.context-line{justify-content:space-between;min-height:30px}.terminal-wrap{display:grid;grid-template-rows:38px minmax(0,1fr);min-height:0}.terminal-toolbar{height:38px;justify-content:space-between;padding:0 12px;border-bottom:1px solid #252525}.terminal-title{display:inline-flex;align-items:center;gap:8px;color:#bdbdbd}.terminal-host{padding:10px;min-height:0;overflow:hidden}.metric-row{margin-bottom:18px}.metric-head{justify-content:space-between;gap:10px;margin-bottom:8px}.metric-head span{display:inline-flex;align-items:center;gap:8px}.metric-head small{color:#a8a8a8}.meter{height:8px;overflow:hidden;border-radius:999px;background:#202020}.meter span{display:block;height:100%;background:#78dce8}.process-title{margin-top:26px}.process-table{display:grid;gap:8px}.process-row{display:grid;grid-template-columns:48px 44px 54px minmax(0,1fr);gap:8px;padding:8px;border-radius:6px;background:#131313;font-family:SFMono-Regular,monospace;font-size:12px}.process-row span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-editor{display:grid;grid-template-columns:260px minmax(0,1fr);min-height:0}.file-browser{padding:12px;border-right:1px solid #252525;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr)}.file-browser .panel-title input{padding:7px 9px}.file-list{display:grid;gap:6px;align-content:start;overflow-y:auto}.file-list button{display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:8px;border:0;border-radius:6px;background:#141414;color:inherit;padding:9px;text-align:left}.file-list span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-list small{color:#989898}.editor-pane{min-width:0;display:grid;grid-template-rows:42px minmax(0,1fr) 22px}.editor-toolbar{justify-content:space-between;padding:0 12px;border-bottom:1px solid #252525}.editor-toolbar span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#cfcfcf}.editor-toolbar div{display:flex;gap:6px}.editor-toolbar button,.icon-toggle{width:32px;height:32px;display:inline-grid;place-items:center;border:1px solid #303030;border-radius:6px;background:#121212;color:inherit}.icon-toggle.active{border-color:#78dce8;color:#78dce8}.editor-pane textarea{border:0;border-radius:0;min-height:0;font-family:SFMono-Regular,Cascadia Code,monospace;line-height:1.55}.editor-status{padding:3px 12px;color:#a7a7a7}.settings-strip{gap:10px}.language-select{margin-bottom:10px}.language-line{display:grid;grid-template-columns:16px auto 112px;align-items:center;gap:7px;margin:0}.language-line select{height:32px;padding:4px 8px}.history-panel{padding:12px;display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:10px;min-height:0}.history-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px}.history-toolbar .panel-title{margin-bottom:0}.history-toolbar small{color:#9a9a9a;font-weight:500}.history-actions{display:flex;gap:6px}.history-actions button{width:30px;height:30px;display:inline-grid;place-items:center;border:1px solid #303030;border-radius:6px;background:#121212;color:inherit}.history-list{min-height:0;overflow:auto;display:grid;align-content:start;gap:8px}.history-item{display:grid;gap:5px;border-radius:6px;background:#131313;padding:9px}.history-item code{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f5f5f5}.history-item small,.empty-history{color:#9d9d9d}.settings-group{gap:6px}.toggle-line{display:inline-flex;align-items:center;grid-template-columns:none;gap:7px;margin:0}.toggle-line input{width:auto}.two-factor-button{height:32px;display:inline-flex;align-items:center;gap:7px;border:1px solid #303030;border-radius:6px;background:#121212;color:inherit;padding:0 10px}.totp-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;display:grid;place-items:center;padding:18px;background:#0000009e}.totp-dialog{width:min(420px,calc(100vw - 32px));border:1px solid #2a2a2a;border-radius:8px;background:#0d0d0d;padding:18px;box-shadow:0 24px 80px #00000073}.totp-dialog p{margin:0 0 14px;color:#b8b8b8}.totp-dialog img,.qr-placeholder{width:220px;height:220px;display:block;margin:0 auto 14px;border-radius:6px;background:#fff}.totp-dialog input[readonly]{font-family:SFMono-Regular,Cascadia Code,monospace}.dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.ghost-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid #303030;border-radius:6px;background:#121212;color:inherit;padding:11px 14px;font-weight:700}.dialog-actions .secondary-button{width:auto}.light .app-header,.light .side-panel,.light .monitor-panel,.light .terminal-wrap,.light .file-editor,.light .history-panel,.light .login-panel{background:#fff;border-color:#dedede}.light input,.light textarea,.light select,.light .connection-item,.light .file-list button,.light .process-row,.light .icon-toggle,.light .editor-toolbar button,.light .two-factor-button,.light .ghost-button,.light .connection-actions button,.light .inline-icon-button,.light .history-actions button{background:#f7f7f7;border-color:#dadada;color:#111}.light .totp-dialog{background:#fff;border-color:#dedede}@media(max-width:1120px){.workspace{grid-template-columns:240px minmax(0,1fr)}.monitor-panel{grid-column:1 / -1}}@media(max-width:760px){.app-header{height:auto;min-height:58px;gap:10px;align-items:flex-start;flex-direction:column;padding:12px}.workspace,.file-editor{grid-template-columns:1fr}.center-stack{grid-template-rows:auto minmax(360px,50vh) minmax(360px,auto) minmax(260px,auto)}.file-browser{border-right:0;border-bottom:1px solid #252525}}
