/**
 * 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-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{font-family:monospace;-webkit-user-select:text;user-select:text;white-space:pre}.xterm .xterm-accessibility-tree>div{transform-origin:left;width:fit-content}.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}.xterm .xterm-scrollable-element>.scrollbar{cursor:default}.xterm .xterm-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.xterm .xterm-scrollable-element>.visible{opacity:1;background:#0000;transition:opacity .1s linear;z-index:11}.xterm .xterm-scrollable-element>.invisible{opacity:0;pointer-events:none}.xterm .xterm-scrollable-element>.invisible.fade{transition:opacity .8s linear}.xterm .xterm-scrollable-element>.shadow{position:absolute;display:none}.xterm .xterm-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:var(--vscode-scrollbar-shadow, #000) 0 6px 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.xterm .xterm-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}:root{color:#172033;background:#f4f6f9;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}.signin-shell{min-height:100vh;display:grid;place-items:center;padding:28px;background:linear-gradient(135deg,#0e2649db,#0d1726c2),url(https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1800&q=80) center/cover;color:#fff}.signin-hero{width:min(760px,100%)}.eyebrow{display:inline-flex;align-items:center;gap:8px;color:#9bd4cb;font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.eyebrow.dark{color:#26796f}h1,h2,h3,p{margin-top:0}.signin-hero h1,.topbar h1{margin:14px 0 12px}.signin-hero h1{font-size:clamp(3.2rem,14vw,7.6rem);line-height:.9}.signin-hero p{max-width:640px;color:#ffffffdb;font-size:1.2rem;line-height:1.55}.auth-panel{width:min(720px,100%);display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:30px;padding:18px;border:1px solid rgba(255,255,255,.24);border-radius:8px;background:#ffffff1f;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.auth-panel div{display:grid;gap:4px}.auth-panel span{color:#ffffffc7}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:0 16px;border:0;border-radius:8px;font-weight:800;text-decoration:none;cursor:pointer}.button.primary{color:#fff;background:#1e756d}.button.secondary{color:#fff;background:#202c3d}.button.connect{color:#102033;background:#e4fbf6}.button.full{width:100%}.text-button{width:fit-content;padding:0;border:0;color:#1e756d;background:transparent;font-weight:800;text-align:left;cursor:pointer}.dashboard-shell{min-height:100vh;padding:24px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.topbar h1{color:#111827;font-size:2.2rem}.user-chip{display:inline-flex;align-items:center;gap:10px;max-width:min(460px,100%);padding:8px 10px;border:1px solid #dbe2ec;border-radius:8px;background:#fff}.user-chip img{width:32px;height:32px;border-radius:50%}.user-chip span{overflow-wrap:anywhere}.icon-only{display:grid;place-items:center;width:36px;height:36px;border:1px solid #d9e2ee;border-radius:8px;color:#1d2939;background:#fff;cursor:pointer}.icon-only.light{color:#fff;border-color:#ffffff38;background:#ffffff14}.icon-only.danger{color:#b42318;border-color:#f4c7c3;background:#fff4f2}.dashboard-grid{display:grid;grid-template-columns:minmax(300px,380px) minmax(0,1fr);gap:20px;align-items:start}.control-panel{display:grid;gap:14px}.panel,.server-panel{border:1px solid #dbe2ec;border-radius:8px;background:#fff}.panel{display:grid;gap:14px;padding:18px}.panel p,.panel-heading p,.empty-state p,.server-row p{color:#667085;line-height:1.5}.panel-title{display:flex;align-items:center;gap:9px}.panel-title h2,.panel-heading h2,.server-row h3{margin-bottom:0}.guide-panel{border-color:#b7dcd6;background:#f4fffc}.guide-panel ul{display:grid;gap:8px;margin:0;padding-left:20px;color:#344054;line-height:1.45}label{display:grid;gap:7px;color:#344054;font-size:.9rem;font-weight:700}input,select,textarea{width:100%;border:1px solid #cfd8e5;border-radius:8px;padding:10px 11px;color:#101828;background:#fff}textarea{resize:vertical}.split-fields{display:grid;grid-template-columns:minmax(0,1fr) 96px;gap:10px}.server-panel{min-height:620px;padding:20px}.panel-heading{display:flex;align-items:start;justify-content:space-between;gap:16px;margin-bottom:14px}.vault-state{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:0 10px;border-radius:999px;color:#7a2e0e;background:#fff4ed;font-size:.83rem;font-weight:800;white-space:nowrap}.vault-state.open{color:#05603a;background:#ecfdf3}.status-line{margin:0 0 14px;padding:10px 12px;border-radius:8px;color:#344054;background:#f2f4f7}.server-list{display:grid;gap:10px}.server-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;border:1px solid #e3e8ef;border-radius:8px}.server-row p{margin:6px 0}.server-row span{color:#1e756d;font-size:.85rem;font-weight:800}.server-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}.empty-state{display:grid;place-items:center;min-height:360px;padding:32px;text-align:center;border:1px dashed #cfd8e5;border-radius:8px}.terminal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10;display:grid;grid-template-rows:auto minmax(0,1fr);color:#d8ffe9;background:#07120f}.terminal-overlay header{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid rgba(255,255,255,.1)}.terminal-overlay header{justify-content:space-between}.terminal-overlay header div{display:grid;gap:3px}.terminal-overlay header span{color:#96baa7;font-size:.88rem}.terminal-frame{min-height:0;padding:10px;overflow:hidden}.terminal-frame .xterm{height:100%}.terminal-frame .xterm-viewport,.terminal-frame .xterm-screen{border-radius:0}.spin{animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width: 860px){.dashboard-shell{padding:16px}.topbar,.auth-panel,.panel-heading,.server-row{align-items:stretch;flex-direction:column}.dashboard-grid,.split-fields{grid-template-columns:1fr}.server-actions{justify-content:flex-start}}
