/**
 * 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{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#e8edf6;background:#0a0d12;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}html,body,#root{min-width:320px;min-height:100%;margin:0}body{min-height:100vh;background:radial-gradient(circle at 18% 0%,rgba(63,94,251,.1),transparent 34rem),#0a0d12}button,input,textarea,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}code{font-family:JetBrains Mono,ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.85em}.screen-center{min-height:100vh;display:grid;place-items:center;color:#8c98aa}.login-page{min-height:100vh;display:grid;place-items:center;padding:24px}.login-card{width:min(100%,430px);padding:36px;border:1px solid #202733;border-radius:24px;background:#0f131aeb;box-shadow:0 30px 80px #00000061}.login-icon,.brand-mark,.server-icon{display:grid;place-items:center;color:#b8c5ff;background:#171d2a;border:1px solid #28324a}.login-icon,.brand-mark{background:radial-gradient(circle at 30% 20%,rgba(101,217,255,.12),transparent 55%),linear-gradient(145deg,#171f2c,#10151d);border-color:#31405b;box-shadow:inset 0 1px #ffffff09}.system-logo{display:block;width:100%;height:100%;overflow:visible}.login-icon .system-logo{width:43px;height:43px}.brand-mark .system-logo{width:29px;height:29px}.system-logo-frame{fill:#0e141eb8;stroke:#9aabff;stroke-width:2.15}.system-logo-accent{fill:#5fd7f2}.system-logo-muted{fill:#667695}.system-logo-terminal,.system-logo-network{fill:none;stroke-linecap:round;stroke-linejoin:round}.system-logo-terminal{stroke:#eef3ff;stroke-width:2.4}.system-logo-network{stroke:#718cff;stroke-width:2.2}.system-logo-node{fill:#101722;stroke:#5fd7f2;stroke-width:2}.login-icon{width:56px;height:56px;border-radius:16px;margin-bottom:22px}.login-copy h1,.page-header h1{margin:0;color:#f6f8fc;letter-spacing:-.035em}.login-copy h1{font-size:1.75rem}.login-copy p,.page-header p{color:#8c98aa}.login-copy p{margin:8px 0 26px}.stack{display:grid;gap:16px}label{display:grid;gap:8px;color:#cbd3df;font-size:.88rem;font-weight:600}input,textarea,select{width:100%;border:1px solid #283140;border-radius:11px;outline:none;background:#0d1118;color:#edf2fa;padding:11px 13px;transition:border-color .12s ease,box-shadow .12s ease}textarea{resize:vertical;line-height:1.5;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.82rem}input:focus,textarea:focus,select:focus{border-color:#6377d6;box-shadow:0 0 0 3px #6377d621}label small,.muted{color:#737f91;font-weight:400;line-height:1.5}.primary-button,.secondary-button,.ghost-button,.icon-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:10px;border:1px solid transparent;font-weight:650;transition:transform .12s ease,background .12s ease,border-color .12s ease}.primary-button{min-height:41px;padding:9px 14px;color:#f7f9ff;background:#5369d6;border-color:#6478df}.primary-button:hover{background:#6075df}.primary-button:disabled{opacity:.55;cursor:not-allowed}.secondary-button,.ghost-button{min-height:39px;padding:8px 13px}.secondary-button{background:#192131;border-color:#2b3750;color:#dfe6f4}.ghost-button{background:#11161e;border-color:#262e3a;color:#cbd3df}.icon-button{width:38px;height:38px;padding:0;background:#11161e;border-color:#262e3a;color:#aeb8c8}.icon-button.danger{color:#f18b96}.primary-button:hover,.secondary-button:hover,.ghost-button:hover,.icon-button:hover{transform:translateY(-1px)}.grow{flex:1}.push-right{margin-left:auto}.alert{display:flex;align-items:center;gap:9px;padding:11px 13px;border-radius:10px;border:1px solid;font-size:.9rem}.alert.error{color:#ffacb4;background:#6f1b2638;border-color:#d84a5a52}.alert.success{color:#9ce3bd;background:#185e3a33;border-color:#40ad714d}.alert.warning{color:#edcf8b;background:#7551122e;border-color:#c18f3047}.app-shell{min-height:100vh;display:grid;grid-template-columns:240px minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:20px 16px;border-right:1px solid #1c222c;background:#0a0d12f0;backdrop-filter:blur(16px)}.brand{display:flex;align-items:center;gap:11px;padding:4px 4px 24px}.brand-mark{width:38px;height:38px;border-radius:11px;flex:0 0 auto}.brand strong,.brand span{display:block}.brand strong{color:#f2f5fa}.brand span{margin-top:2px;color:#707d90;font-size:.72rem}.nav{display:grid;gap:5px}.nav a{display:flex;align-items:center;gap:10px;padding:10px 11px;border-radius:10px;color:#929daf;font-size:.9rem;font-weight:650}.nav a:hover{color:#dbe1eb;background:#11161f}.nav a.active{color:#e8edff;background:#192032;box-shadow:inset 0 0 0 1px #2c3855}.nav a.locked{color:#b9a878}.nav a.locked:hover{color:#ead79b;background:#75511224}.nav-lock-icon{margin-left:auto;flex:0 0 auto}.sidebar-notice{display:flex;align-items:flex-start;gap:8px;margin-top:10px;padding:10px 11px;border:1px solid rgba(193,143,48,.28);border-radius:10px;color:#edcf8b;background:#75511229;font-size:.76rem;line-height:1.4}.sidebar-notice svg{flex:0 0 auto;margin-top:1px}.sidebar-footer{margin-top:auto;display:flex;align-items:center;gap:8px;padding-top:16px;border-top:1px solid #1d232d}.user-chip{min-width:0;flex:1}.user-chip span,.user-chip small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-chip span{color:#d8deea;font-size:.88rem;font-weight:650}.user-chip small{margin-top:2px;color:#697587;font-size:.72rem}.main-content{min-width:0}.page{width:min(100%,1440px);margin:0 auto;padding:34px;display:grid;gap:22px}.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.page-header h1{font-size:clamp(1.7rem,3vw,2.35rem)}.page-header p{margin:7px 0 0}.eyebrow{margin:0 0 7px!important;color:#788ee9!important;text-transform:uppercase;letter-spacing:.13em;font-size:.68rem;font-weight:800}.header-actions,.form-actions,.server-actions,.server-meta{display:flex;align-items:center;gap:9px}.panel,.server-card,.empty-server-card{border:1px solid #202733;border-radius:16px;background:#0f131a}.panel{padding:20px}.panel-title{display:flex;align-items:center;gap:9px;margin-bottom:17px;color:#cdd6e7}.panel-title h2{margin:0;font-size:1rem}.count-badge{margin-left:auto;padding:3px 8px;border:1px solid #2b3442;border-radius:999px;color:#8f9aab;font-size:.75rem}.two-column,.admin-grid{display:grid;gap:18px}.two-column{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-grid{grid-template-columns:minmax(280px,.7fr) minmax(0,1.5fr)}.server-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}.server-card{padding:18px;display:grid;gap:17px}.server-card-head{display:flex;align-items:center;gap:12px;min-width:0}.server-icon{flex:0 0 auto;width:42px;height:42px;border-radius:12px}.server-card h2,.server-card p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.server-card h2{margin:0;color:#e7ebf3;font-size:1rem}.server-card p{margin:4px 0 0;color:#778396;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.76rem}.server-meta{justify-content:space-between;color:#7e8a9d;font-size:.78rem}.server-meta>span:first-child{display:inline-flex;align-items:center;gap:6px}.status{display:inline-flex;align-items:center;gap:6px;width:fit-content;border:0;border-radius:999px;padding:5px 8px;font-size:.74rem;font-weight:750}.status.active{color:#90dbb2;background:#29815124}.status.disabled{color:#eaa0a8;background:#882f3926}.empty-server-card{min-height:180px;display:grid;place-items:center;align-content:center;gap:8px;color:#8290a4;border-style:dashed}.empty-server-card strong{color:#cbd3df}.empty-server-card span{font-size:.8rem}.server-form{max-width:900px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.span-2{grid-column:span 2}.form-actions{justify-content:flex-end;margin-top:18px}.table-wrap{width:100%;overflow:auto}table{width:100%;border-collapse:collapse;font-size:.84rem}th,td{padding:11px 10px;border-bottom:1px solid #202630;text-align:left;vertical-align:middle}th{color:#6f7b8d;font-size:.72rem;text-transform:uppercase;letter-spacing:.06em}td{color:#b7c0ce}td strong,td small{display:block}td small{margin-top:3px;color:#667286}.align-right{text-align:right}.empty-cell{padding:28px;text-align:center;color:#697587}.terminal-page{position:relative;width:100%;height:100vh;height:100dvh;min-width:0;min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr);overflow:hidden;background:#07090c}.terminal-page:fullscreen{width:100vw;height:100vh}.terminal-page-error{place-items:center}.terminal-loading{min-height:100vh;display:grid;place-items:center;color:#7f8b9d;background:#07090c}.terminal-empty-state{display:grid;justify-items:center;gap:12px;max-width:480px;padding:28px;color:#8793a5;text-align:center}.terminal-empty-state strong{color:#eef2f8;font-size:1.05rem}.terminal-toolbar{min-height:54px;display:flex;align-items:center;gap:10px;padding:7px 10px;border-bottom:1px solid #20252e;background:#0d1117}.terminal-back-button,.terminal-tool-button,.new-terminal-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid #2a313d;border-radius:8px;color:#aeb8c7;background:#121820}.terminal-back-button{min-height:36px;gap:7px;padding:7px 11px;font-size:.82rem;font-weight:700}.terminal-tool-button,.new-terminal-button{width:34px;height:34px;padding:0}.terminal-back-button:hover,.terminal-tool-button:hover,.new-terminal-button:hover,.new-terminal-button.active{color:#eef2f8;border-color:#3a4658;background:#18202b}.terminal-tool-button:disabled{opacity:.45;cursor:not-allowed}.terminal-split-controls{flex:0 0 auto;display:inline-flex;align-items:center;gap:3px;padding:3px;border:1px solid #29313d;border-radius:9px;background:#0a0f15}.terminal-split-controls button{height:28px;display:inline-flex;align-items:center;gap:5px;padding:0 7px;border:0;border-radius:6px;color:#788598;background:transparent;font-size:.7rem;font-weight:750}.terminal-split-controls button:hover{color:#dce3ed;background:#18202a}.terminal-split-controls button.active{color:#eef3ff;background:#273248;box-shadow:inset 0 0 0 1px #40506f}.split-preview{width:18px;height:13px;display:grid;gap:2px;padding:2px;border:1px solid currentColor;border-radius:3px;opacity:.9}.split-preview.split-1{grid-template-columns:1fr}.split-preview.split-2{grid-template-columns:repeat(2,1fr)}.split-preview.split-3{grid-template-columns:repeat(3,1fr)}.split-preview.split-4{grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr)}.split-preview i{display:block;min-width:0;border-radius:1px;background:currentColor;opacity:.75}.terminal-title{min-width:0;flex:1}.terminal-title strong,.terminal-title span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.terminal-title strong{color:#eef2f8;font-size:.88rem}.terminal-title span{margin-top:2px;color:#6f7b8d;font-family:Cascadia Mono,Ubuntu Mono,JetBrains Mono,ui-monospace,monospace;font-size:.7rem}.connection-state{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border-radius:999px;background:#11161d;font-size:.72rem;font-weight:750;white-space:nowrap}.connection-state.connected,.terminal-tab-status.connected{color:#69db9d}.connection-state.connecting,.connection-state.authorizing,.terminal-tab-status.connecting,.terminal-tab-status.authorizing{color:#e6bc67}.connection-state.closed,.terminal-tab-status.closed{color:#8893a3}.connection-state.error,.terminal-tab-status.error{color:#ef7f89}.terminal-tabs-bar{position:relative;z-index:5;min-height:42px;display:flex;align-items:stretch;border-bottom:1px solid #1f242d;background:#0a0e13}.terminal-tabs{min-width:0;flex:1;display:flex;align-items:stretch;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#303844 transparent}.terminal-tab{position:relative;flex:0 0 auto;min-width:170px;max-width:260px;display:flex;align-items:center;gap:8px;padding:0 10px 0 12px;border:0;border-right:1px solid #1e242d;border-radius:0;color:#8995a7;background:#0a0e13;font-size:.78rem;text-align:left}.terminal-tab:hover{color:#cbd3df;background:#10161d}.terminal-tab.active{color:#eef2f8;background:#141a22}.terminal-tab.active:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:#6f86f5}.terminal-tab-label{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}.terminal-tab-status{flex:0 0 auto}.terminal-tab-close{width:22px;height:22px;flex:0 0 auto;display:grid;place-items:center;border-radius:6px;color:#687486}.terminal-tab-close:hover{color:#f0f3f8;background:#29303b}.new-terminal-wrapper{position:relative;flex:0 0 auto;display:grid;place-items:center;padding:4px 7px;border-left:1px solid #1f242d}.terminal-server-picker{position:absolute;top:calc(100% + 7px);right:7px;width:min(380px,calc(100vw - 32px));max-height:min(440px,70vh);overflow:hidden;border:1px solid #2a323e;border-radius:12px;background:#10151c;box-shadow:0 18px 50px #00000080}.terminal-server-picker-title{display:flex;align-items:center;gap:8px;padding:12px 13px;border-bottom:1px solid #242a33;color:#d8dee9;font-size:.78rem;font-weight:750}.terminal-server-picker-list{max-height:360px;overflow-y:auto;padding:6px}.terminal-server-picker-list button{width:100%;display:grid;gap:3px;padding:10px 11px;border:0;border-radius:8px;color:inherit;background:transparent;text-align:left}.terminal-server-picker-list button:hover{background:#18202a}.terminal-server-name{color:#e4e9f1;font-size:.82rem;font-weight:750}.terminal-server-target{overflow:hidden;color:#778396;font-family:Cascadia Mono,Ubuntu Mono,JetBrains Mono,ui-monospace,monospace;font-size:.7rem;text-overflow:ellipsis;white-space:nowrap}.terminal-workspace-body{position:relative;min-width:0;min-height:0;display:grid;grid-template-columns:repeat(var(--pane-count, 1),minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:8px;padding:8px;overflow:hidden;background:#080b10;transform:translateZ(0);backface-visibility:hidden}.terminal-workspace-body.split-4{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}.terminal-session{position:absolute;inset:8px;min-width:0;min-height:0;display:flex;flex-direction:column;visibility:hidden;opacity:0;pointer-events:none;contain:layout paint;overflow:hidden;border:1px solid #252d39;border-radius:10px;background:#05070a;box-shadow:0 8px 28px #00000047,inset 0 1px #ffffff05}.terminal-session.active{position:relative;inset:auto;width:100%;height:100%;visibility:visible;opacity:1;pointer-events:auto}.terminal-session.focused{border-color:#43577d;box-shadow:0 10px 32px #00000057,0 0 0 1px #667ed229}.terminal-pane-header{min-height:38px;flex:0 0 auto;display:flex;align-items:center;gap:10px;padding:6px 9px 6px 11px;border-bottom:1px solid #202733;background:linear-gradient(180deg,#10151c,#0c1117)}.terminal-pane-title{min-width:0;flex:1;display:flex;align-items:center;gap:7px}.terminal-pane-title strong{flex:0 0 auto;max-width:38%;overflow:hidden;color:#e8edf5;font-size:.76rem;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.terminal-pane-title span{min-width:0;overflow:hidden;color:#697789;font-family:Cascadia Mono,Ubuntu Mono,JetBrains Mono,ui-monospace,monospace;font-size:.66rem;text-overflow:ellipsis;white-space:nowrap}.terminal-pane-state{flex:0 0 auto;padding:3px 6px;border-radius:999px;background:#111820;font-size:.62rem;font-weight:800}.terminal-pane-state.connected{color:#69db9d}.terminal-pane-state.connecting,.terminal-pane-state.authorizing{color:#e6bc67}.terminal-pane-state.closed{color:#8893a3}.terminal-pane-state.error{color:#ef7f89}.terminal-error{flex:0 0 auto;padding:8px 12px;color:#ff9da7;background:#32151a;border-bottom:1px solid #5c252d;font-size:.78rem}.terminal-host{width:100%;min-width:0;min-height:0;flex:1 1 0;padding:0;overflow:hidden;background:#05070a;contain:layout paint}.terminal-host .xterm{width:100%;height:100%;padding:8px 10px 14px}.terminal-host .xterm-screen{width:100%;padding-top:1px}.terminal-empty-pane{min-width:0;min-height:0;display:grid;place-items:center;align-content:center;gap:7px;border:1px dashed #303947;border-radius:10px;color:#667386;background:linear-gradient(180deg,#10151ce0,#070a0ef0)}.terminal-empty-pane:hover{color:#bfc9d8;border-color:#46546a;background:#10161e}.terminal-empty-pane strong{color:#aeb9c9;font-size:.82rem}.terminal-empty-pane span{font-size:.7rem}.terminal-host .xterm-viewport{scrollbar-width:thin;scrollbar-color:#343c49 #0a0d11}.terminal-host .xterm-viewport::-webkit-scrollbar{width:10px}.terminal-host .xterm-viewport::-webkit-scrollbar-track{background:#0a0d11}.terminal-host .xterm-viewport::-webkit-scrollbar-thumb{border:2px solid #0a0d11;border-radius:999px;background:#343c49}@media(max-width:900px){.app-shell{grid-template-columns:1fr}.sidebar{position:static;width:100%;height:auto;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:12px 16px;border-right:0;border-bottom:1px solid #1c222c}.brand{padding:0}.brand span{display:none}.nav{display:flex;justify-content:center}.sidebar-footer{margin:0;padding:0;border:0}.user-chip{display:none}.two-column,.admin-grid{grid-template-columns:1fr}}@media(max-width:650px){.page{padding:22px 16px}.page-header{display:grid}.header-actions{width:100%}.header-actions .primary-button,.header-actions .ghost-button{flex:1}.form-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.brand strong{font-size:.82rem}.nav a{padding:9px}.nav a svg{margin:0}.nav a{font-size:0}}.terminal-files-toggle{width:28px;height:26px;flex:0 0 auto;display:grid;place-items:center;padding:0;border:1px solid #28313d;border-radius:6px;color:#7c899b;background:#0c1218}.terminal-files-toggle:hover,.terminal-files-toggle.active{color:#dce5f2;border-color:#41516b;background:#1a2431}.terminal-pane-content{min-width:0;min-height:0;flex:1 1 0;display:flex;overflow:hidden}.terminal-pane-content>.terminal-host{min-width:0;flex:1 1 0}.remote-files-collapsed-rail{width:34px;min-width:34px;min-height:0;flex:0 0 34px;display:flex;justify-content:center;padding-top:5px;border-right:1px solid #29313c;background:#0d1218}.remote-files-collapsed-rail button{width:25px;height:27px;display:grid;place-items:center;padding:0;border:1px solid #2d3846;border-radius:6px;color:#8290a3;background:#111821}.remote-files-collapsed-rail button:hover{color:#edf3fb;border-color:#43546b;background:#1a2430}.remote-files-panel{position:relative;width:clamp(205px,27%,292px);min-width:190px;min-height:0;flex:0 0 auto;display:flex;flex-direction:column;overflow:hidden;border-right:1px solid #29313c;color:#cbd4e1;background:#0c1015}.remote-files-panel.drag-over{box-shadow:inset 0 0 0 2px #6295ff99}.remote-files-toolbar{min-height:35px;flex:0 0 auto;display:flex;align-items:center;gap:3px;padding:4px 5px;border-bottom:1px solid #222a34;background:#11171e}.remote-files-toolbar button,.remote-file-actions button{display:grid;place-items:center;padding:0;border:0;border-radius:5px;color:#8794a7;background:transparent}.remote-files-toolbar button{width:26px;height:25px}.remote-files-toolbar button:hover,.remote-file-actions button:hover{color:#eef3fa;background:#25303d}.remote-files-toolbar button:disabled{opacity:.35;cursor:not-allowed}.remote-files-toolbar-spacer{min-width:4px;flex:1 1 auto}.remote-files-collapse-button{flex:0 0 auto;border-left:1px solid #2b3440!important;border-radius:0 5px 5px 0!important}.remote-files-input{display:none}.remote-path-bar{min-height:31px;flex:0 0 auto;display:flex;align-items:center;gap:6px;padding:5px 8px;border-bottom:1px solid #222a34;color:#98a5b7;background:#0a0f14;font-family:Cascadia Mono,Ubuntu Mono,JetBrains Mono,ui-monospace,monospace;font-size:.65rem}.remote-path-bar svg{flex:0 0 auto;color:#e0b24f}.remote-path-input{min-width:0;height:23px;flex:1 1 0;padding:2px 5px;border:1px solid transparent;border-radius:4px;outline:none;color:#9eabbc;background:transparent;box-shadow:none;font:inherit;line-height:1.2;transition:border-color .12s ease,background .12s ease,color .12s ease}.remote-path-input:hover{color:#d3dbe6;background:#101820}.remote-path-input:focus{color:#edf3fb;border-color:#3e5370;background:#111923;box-shadow:0 0 0 2px #56739b1f}.remote-files-message{flex:0 0 auto;padding:6px 8px;border-bottom:1px solid #244736;color:#82d9aa;background:#10251b;font-size:.65rem;cursor:pointer}.remote-files-message.error{color:#ff9ea9;border-bottom-color:#54252c;background:#2c1519}.remote-files-columns{min-height:27px;flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1fr) 58px;align-items:center;padding:0 8px;border-bottom:1px solid #29313c;color:#6f7d90;background:#10161c;font-size:.62rem;font-weight:800;text-transform:uppercase;letter-spacing:.03em}.remote-files-columns span:last-child{text-align:right}.remote-files-list{min-height:0;flex:1 1 0;overflow:auto;padding:3px;scrollbar-width:thin;scrollbar-color:#35404d #0b0f14}.remote-files-empty{padding:24px 10px;color:#5e6a7a;font-size:.7rem;text-align:center}.remote-file-row{position:relative;min-height:27px;display:grid;grid-template-columns:minmax(0,1fr) 55px;align-items:center;gap:4px;padding:2px 5px;border-radius:4px;color:#c0c8d4;font-family:Cascadia Mono,Ubuntu Mono,JetBrains Mono,ui-monospace,monospace;font-size:.66rem;user-select:none}.remote-file-row:hover{color:#f0f4f9;background:#19212b}.remote-file-row.directory{color:#e6d08a}.remote-file-main{min-width:0;display:flex;align-items:center;gap:6px}.remote-file-main svg{flex:0 0 auto;color:#8494a8}.remote-file-row.directory .remote-file-main svg{color:#e0b24f;fill:#e0b24f1f}.remote-file-main span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.remote-file-size{color:#687587;font-size:.6rem;text-align:right;white-space:nowrap}.remote-file-actions{position:absolute;top:2px;right:3px;display:none;align-items:center;gap:1px;padding-left:8px;background:linear-gradient(90deg,transparent,#19212b 10px)}.remote-file-row:hover .remote-file-actions{display:flex}.remote-file-actions button{width:23px;height:23px}.remote-file-actions button.danger:hover{color:#ff8894;background:#3b1d24}.remote-files-footer{min-height:25px;flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 7px;border-top:1px solid #222a34;color:#5f6c7e;background:#0b1015;font-size:.61rem}.remote-drop-overlay{position:absolute;inset:0;z-index:20;display:grid;place-items:center;align-content:center;gap:7px;color:#dce8ff;background:#122134eb;border:2px dashed #6497e8;pointer-events:none}.remote-drop-overlay svg{color:#77a8fa}.remote-drop-overlay strong{font-size:.76rem}.remote-drop-overlay span{color:#8799b3;font-size:.66rem}.remote-editor-overlay{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;padding:22px;background:#020509b8;backdrop-filter:blur(4px)}.remote-editor-window{width:min(1180px,94vw);height:min(780px,88vh);min-width:0;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;border:1px solid #39475b;border-radius:12px;background:#0b0f14;box-shadow:0 30px 90px #0000009e}.remote-editor-header{min-height:49px;display:flex;align-items:center;gap:14px;padding:7px 9px 7px 13px;border-bottom:1px solid #26303c;background:#111820}.remote-editor-header>div:first-child{min-width:0;flex:1}.remote-editor-header strong,.remote-editor-header span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.remote-editor-header strong{color:#edf2f8;font-size:.82rem}.remote-editor-header span{margin-top:2px;color:#718095;font-family:Cascadia Mono,Ubuntu Mono,JetBrains Mono,ui-monospace,monospace;font-size:.62rem}.remote-editor-actions{flex:0 0 auto;display:flex;align-items:center;gap:5px}.remote-editor-actions button{min-height:31px;display:inline-flex;align-items:center;gap:6px;padding:0 9px;border:1px solid #344052;border-radius:7px;color:#cbd5e3;background:#17202a;font-size:.7rem}.remote-editor-actions button:hover{color:#fff;background:#202c3a}.remote-editor-actions button:disabled{opacity:.45;cursor:not-allowed}.remote-editor-actions button.icon-only{width:31px;padding:0;justify-content:center}.remote-editor-body{min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden;background:#0a0e13}.remote-editor-error{flex:0 0 auto;padding:7px 11px;color:#ff9ea8;background:#33171c;border-bottom:1px solid #57262e;font-size:.7rem}.remote-editor-code{min-width:0;min-height:0;flex:1 1 0;overflow:hidden;background:#0a0e13}.remote-editor-code>.cm-theme{width:100%;height:100%}.remote-editor-code .cm-editor{width:100%;height:100%;color:#d8dee9;background:#0a0e13;font-family:Cascadia Mono,Ubuntu Mono,JetBrains Mono,ui-monospace,monospace;font-size:.82rem}.remote-editor-code .cm-editor.cm-focused{outline:none}.remote-editor-code .cm-scroller{overflow:auto;font-family:inherit;line-height:1.5}.remote-editor-code .cm-content{min-height:100%;padding:10px 0 34px;caret-color:#fff}.remote-editor-code .cm-line{padding:0 14px}.remote-editor-code .cm-gutters{min-width:48px;border-right:1px solid #26303b;color:#667487;background:#10161d}.remote-editor-code .cm-lineNumbers .cm-gutterElement{min-width:42px;padding:0 9px 0 6px;text-align:right}.remote-editor-code .cm-activeLineGutter{color:#d6deeb;background:#18212b}.remote-editor-code .cm-activeLine{background:#485c761f}.remote-editor-code .cm-selectionBackground,.remote-editor-code .cm-content ::selection{background:#486fb56b!important}.remote-editor-code .cm-cursor{border-left-color:#fff}.remote-editor-code .cm-foldGutter{color:#536174}.remote-editor-status{min-height:27px;display:flex;align-items:center;justify-content:flex-end;gap:14px;padding:0 10px;border-top:1px solid #26303c;color:#69778b;background:#10161d;font-size:.61rem}.terminal-workspace-body.split-3 .remote-files-panel,.terminal-workspace-body.split-4 .remote-files-panel{width:clamp(180px,31%,230px);min-width:170px}@media(max-width:1200px){.remote-files-panel{width:210px;min-width:175px}.terminal-workspace-body.split-3 .remote-files-panel,.terminal-workspace-body.split-4 .remote-files-panel{width:180px;min-width:160px}}:root{--hs-ui-build-revision: 202610031951}.server-grid-rich{grid-template-columns:repeat(auto-fill,minmax(360px,1fr));align-items:stretch}.server-card-rich{position:relative;gap:13px;min-width:0;overflow:hidden;background:linear-gradient(180deg,#11161efa,#0c1016fa);transition:border-color .14s ease,transform .14s ease,box-shadow .14s ease}.server-card-rich:hover{border-color:#2e3949;transform:translateY(-1px);box-shadow:0 14px 34px #0003}.server-card-rich.online:before,.server-card-rich.offline:before{content:"";position:absolute;top:0;left:18px;right:18px;height:1px}.server-card-rich.online:before{background:linear-gradient(90deg,transparent,rgba(79,208,137,.62),transparent)}.server-card-rich.offline:before{background:linear-gradient(90deg,transparent,rgba(230,95,108,.5),transparent)}.server-card-heading{min-width:0;flex:1}.server-live-state{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;padding:4px 7px;border-radius:999px;font-size:.68rem;font-weight:800}.server-live-state i{width:7px;height:7px;flex:0 0 auto;border-radius:50%;background:currentColor;box-shadow:0 0 0 3px #ffffff09}.server-live-state.online{color:#78e0a5;background:#2a895226}.server-live-state.offline{color:#ef8993;background:#92303c26}.server-live-state.checking{color:#d8b36b;background:#89662724}.server-system-summary{min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;padding:9px 10px;border:1px solid #202936;border-radius:10px;background:#080c118c}.server-system-icon{width:29px;height:29px;display:grid;place-items:center;border:1px solid #2b3747;border-radius:8px;color:#8fa4ff;background:#111827}.server-system-summary>div:nth-child(2){min-width:0}.server-system-summary strong,.server-system-summary span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.server-system-summary strong{color:#dfe6f1;font-size:.76rem}.server-system-summary span{margin-top:2px;color:#6f7d90;font-size:.66rem}.server-system-summary small{color:#687689;font-family:Cascadia Mono,Ubuntu Mono,JetBrains Mono,ui-monospace,monospace;font-size:.61rem}.server-resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.server-resource{min-width:0;padding:8px;border:1px solid #202936;border-radius:9px;background:#0b1016}.server-resource-head{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:6px}.server-resource-head>span{min-width:0;display:inline-flex;align-items:center;gap:4px;color:#718095;font-size:.61rem;font-weight:750;text-transform:uppercase;letter-spacing:.03em}.server-resource-head strong{color:#dce3ed;font-size:.72rem}.server-resource-bar{height:4px;margin:7px 0 6px;overflow:hidden;border-radius:999px;background:#1c2632}.server-resource-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#5d73da,#69c6dd)}.server-resource small{display:block;overflow:hidden;color:#647286;font-size:.58rem;text-overflow:ellipsis;white-space:nowrap}.server-runtime-info{display:grid;grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr);gap:7px}.server-runtime-info>span{min-width:0;display:flex;align-items:center;gap:5px;padding:6px 8px;border:1px solid #1e2733;border-radius:8px;color:#8b98aa;background:#0a0e148c;font-family:Cascadia Mono,Ubuntu Mono,JetBrains Mono,ui-monospace,monospace;font-size:.61rem;white-space:nowrap}.server-runtime-info svg{flex:0 0 auto;color:#7588c9}.server-runtime-info b{color:#637187;font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:.59rem;font-weight:800;text-transform:uppercase}.server-kernel-line{overflow:hidden;color:#566478;font-family:Cascadia Mono,Ubuntu Mono,JetBrains Mono,ui-monospace,monospace;font-size:.59rem;text-overflow:ellipsis;white-space:nowrap}.server-status-placeholder{min-height:155px;display:flex;align-items:center;justify-content:center;gap:9px;padding:18px;border:1px dashed #283341;border-radius:10px;color:#6c7a8e;background:#080c1161;text-align:left}.server-status-placeholder>div{min-width:0}.server-status-placeholder strong,.server-status-placeholder span{display:block}.server-status-placeholder strong{color:#aeb8c7;font-size:.72rem}.server-status-placeholder span{margin-top:3px;color:#657387;font-size:.64rem;line-height:1.45}.server-ssh-badge{padding:3px 6px;border:1px solid #27313f;border-radius:6px;color:#718095;background:#0b1016;font-family:Cascadia Mono,Ubuntu Mono,JetBrains Mono,ui-monospace,monospace;font-size:.63rem}.server-card-rich .server-actions{margin-top:auto}.server-card-rich .server-actions .primary-button{min-width:0}.spin{animation:hs-spin .85s linear infinite}@keyframes hs-spin{to{transform:rotate(360deg)}}@media(max-width:980px){.server-grid-rich{grid-template-columns:repeat(auto-fill,minmax(320px,1fr))}}@media(max-width:560px){.server-grid-rich,.server-resource-grid,.server-runtime-info{grid-template-columns:1fr}}.server-terminal-button:disabled{opacity:1;color:#667487;border-color:#252e3a;background:#161c25;box-shadow:none;cursor:not-allowed}.server-terminal-button:disabled:hover{color:#667487;border-color:#252e3a;background:#161c25;transform:none}.server-modal-backdrop{position:fixed;inset:0;z-index:1900;display:grid;place-items:center;padding:24px;overflow:auto;background:#020509b8;backdrop-filter:blur(5px);animation:server-modal-fade-in .12s ease-out}.server-modal-dialog{width:min(900px,96vw);max-height:min(860px,calc(100dvh - 48px));min-width:0;overflow:auto;border-radius:16px;box-shadow:0 30px 90px #00000094,0 0 0 1px #6e84b414;animation:server-modal-pop-in .14s ease-out}.server-modal-form{width:100%;max-width:none;margin:0;border-color:#2a3443;background:linear-gradient(180deg,#111720,#0d1219)}.server-modal-form .panel-title{position:sticky;top:-20px;z-index:2;margin:-20px -20px 17px;padding:16px 20px;border-bottom:1px solid #252e3b;background:#111720f5;backdrop-filter:blur(8px)}.server-modal-form .form-actions{position:sticky;bottom:-20px;z-index:2;margin:18px -20px -20px;padding:14px 20px;border-top:1px solid #252e3b;background:#0d1219f7;backdrop-filter:blur(8px)}@keyframes server-modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes server-modal-pop-in{0%{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}@media(max-width:720px){.server-modal-backdrop{place-items:start center;padding:12px}.server-modal-dialog{width:min(100%,96vw);max-height:calc(100dvh - 24px)}.server-modal-form .form-grid{grid-template-columns:1fr}.server-modal-form .span-2{grid-column:span 1}}
