/**
 * 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}.app[data-v-e8e500b7]{min-height:100vh;display:flex;flex-direction:column;background:radial-gradient(circle at top,#1f2937 0,#020617 55%,#000);color:#e5e7eb;font-family:system-ui,-apple-system,BlinkMacSystemFont,SF Pro Text,Segoe UI,sans-serif}.app-header[data-v-e8e500b7]{height:56px;padding:0 20px;display:flex;align-items:center;justify-content:flex-start;gap:16px;border-bottom:1px solid rgba(148,163,184,.3);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:linear-gradient(to right,#0f172ae6,#0f172ab3);position:sticky;top:0;z-index:10}.brand[data-v-e8e500b7]{display:flex;align-items:center;gap:8px}.sidebar-toggle[data-v-e8e500b7]{width:28px;height:28px;border-radius:999px;border:1px solid rgba(75,85,99,.9);background:#020617;color:#e5e7eb;font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center}.sidebar-toggle[data-v-e8e500b7]:hover{border-color:#94a3b8e6}.header-right[data-v-e8e500b7]{margin-left:auto;display:flex;align-items:center;gap:8px}.focus-toggle[data-v-e8e500b7]{width:32px;height:32px;border-radius:999px;border:1px solid rgba(75,85,99,.9);background:#020617;color:#e5e7eb;font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center}.focus-toggle[data-v-e8e500b7]:hover{border-color:#94a3b8e6}.focus-floating[data-v-e8e500b7]{position:fixed;top:10px;right:10px;width:26px;height:26px;border-radius:999px;border:1px solid rgba(75,85,99,.9);background:#020617;color:#e5e7eb;font-size:13px;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:50}.focus-floating[data-v-e8e500b7]:hover{border-color:#94a3b8e6}.brand h1[data-v-e8e500b7]{font-size:18px;font-weight:600;letter-spacing:.04em;background:linear-gradient(120deg,#a5b4fc,#38bdf8,#22c55e);-webkit-background-clip:text;color:transparent;margin:0}.app-nav[data-v-e8e500b7]{display:flex;gap:8px;flex-wrap:wrap}.nav-btn[data-v-e8e500b7]{position:relative;border-radius:12px;border:1px solid rgba(148,163,184,.5);background:radial-gradient(circle at top,#0f172a,#020617);color:#e5e7eb;padding:6px 14px;font-size:13px;cursor:pointer;outline:none;display:inline-flex;align-items:center;gap:6px;transition:border-color .15s ease,background .15s ease,transform .1s ease,box-shadow .1s ease;box-shadow:0 0 0 1px #0f172ae6,0 10px 30px #0f172a99}.nav-btn[data-v-e8e500b7]:before{content:"";width:6px;height:6px;border-radius:50%;background:radial-gradient(circle,#4ade80,#22c55e);box-shadow:0 0 0 1px #22c55e66}.nav-btn[data-v-e8e500b7]:hover{border-color:#f8fafccc;background:radial-gradient(circle at top,#111827,#020617);box-shadow:0 10px 35px #0f172ae6;transform:translateY(-.5px)}.nav-btn.active[data-v-e8e500b7]{border-color:#60a5fae6;background:radial-gradient(circle at top,#1d283a,#020617);box-shadow:0 0 0 1px #2563ebb3,0 18px 45px #1e40afe6}.main-full[data-v-e8e500b7]{flex:1;display:flex;position:relative;padding:12px 12px 16px;gap:8px}.focus-main[data-v-e8e500b7]{padding:0;gap:0}.session-sidebar[data-v-e8e500b7]{position:absolute;inset:0 auto 0 0;width:220px;padding:8px 8px 10px;border-radius:10px 0 0 10px;background:radial-gradient(circle at top left,#020617,#020617);box-shadow:0 0 0 1px #0f172ae6,0 20px 50px #0f172ae6;display:flex;flex-direction:column;gap:4px;z-index:30}.sidebar-title[data-v-e8e500b7]{margin:0 0 4px;font-size:12px;color:#9ca3af}.sidebar-tab[data-v-e8e500b7]{display:flex;align-items:center;gap:6px;padding:4px 8px;border-radius:8px;border:1px solid rgba(55,65,81,.9);background:#020617;color:#e5e7eb;font-size:12px;cursor:pointer}.sidebar-tab .label[data-v-e8e500b7]{flex:1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.sidebar-tab .dot[data-v-e8e500b7]{width:8px;height:8px;border-radius:999px;background:#4b5563}.sidebar-tab .dot.ready[data-v-e8e500b7]{background:#22c55e}.sidebar-tab .dot.connecting[data-v-e8e500b7]{background:#f97316}.sidebar-tab .dot.error[data-v-e8e500b7]{background:#ef4444}.sidebar-tab .dot.closed[data-v-e8e500b7]{background:#6b7280}.sidebar-tab .close[data-v-e8e500b7]{font-size:10px;opacity:.8}.sidebar-tab.active[data-v-e8e500b7]{border-color:#3b82f6e6;background:radial-gradient(circle at top,#111827,#020617)}.terminal-panel[data-v-e8e500b7]{flex:1;display:flex;flex-direction:column;border-radius:12px;background:radial-gradient(circle at top left,#020617,#020617);box-shadow:0 0 0 1px #0f172ae6,0 30px 80px #0f172af2,0 0 40px #38bdf81f;overflow:hidden}.tabs[data-v-e8e500b7]{display:flex;align-items:center;gap:6px;padding:8px 10px;background:radial-gradient(circle at top left,#020617,#020617);border-bottom:1px solid rgba(30,64,175,.6)}.tabs .empty[data-v-e8e500b7]{font-size:13px;color:#9ca3af}.tab[data-v-e8e500b7]{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:8px;border:1px solid rgba(55,65,81,.9);background:radial-gradient(circle at top,#020617,#020617);color:#e5e7eb;font-size:12px;cursor:pointer;outline:none;transition:background .15s ease,border-color .15s ease,transform .08s ease}.tab .label[data-v-e8e500b7]{max-width:200px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.tab .status[data-v-e8e500b7]{width:8px;height:8px;border-radius:999px;background:#4b5563}.tab .status.ready[data-v-e8e500b7]{background:#22c55e;box-shadow:0 0 0 2px #16a34a80}.tab .status.connecting[data-v-e8e500b7]{background:#f97316}.tab .status.error[data-v-e8e500b7]{background:#ef4444}.tab .status.closed[data-v-e8e500b7]{background:#6b7280}.tab .close[data-v-e8e500b7]{font-size:10px;opacity:.8}.tab[data-v-e8e500b7]:hover{border-color:#94a3b8e6}.tab.active[data-v-e8e500b7]{border-color:#3b82f6f2;background:radial-gradient(circle at top,#111827,#020617);transform:translateY(-.5px)}.terminal-container[data-v-e8e500b7]{flex:1;position:relative;background:#020617;overflow:hidden}.empty-terminal[data-v-e8e500b7]{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at top,#020617,#020617)}.empty-card[data-v-e8e500b7]{padding:20px 24px;border-radius:10px;border:1px solid rgba(55,65,81,.9);background:radial-gradient(circle at top,#020617,#020617);box-shadow:0 0 0 1px #0f172acc,0 16px 40px #0f172ae6;text-align:center}.empty-card h3[data-v-e8e500b7]{margin:0 0 8px;font-size:16px}.empty-card p[data-v-e8e500b7]{margin:0;font-size:13px;color:#9ca3af}.terminal-wrapper[data-v-e8e500b7]{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column}.terminal-header[data-v-e8e500b7]{display:flex;justify-content:space-between;align-items:center;padding:6px 12px;font-size:12px;background:linear-gradient(to right,#020617,#020617);border-bottom:1px solid rgba(31,41,55,.9);color:#e5e7eb}.terminal-header .status-text[data-v-e8e500b7]{color:#9ca3af}.terminal-body[data-v-e8e500b7]{flex:1;padding:8px}.quick-keys[data-v-e8e500b7]{display:grid;grid-template-columns:repeat(auto-fit,minmax(52px,1fr));gap:4px;padding:4px 8px 6px;background:#020617;border-top:1px solid rgba(31,41,55,.9)}.quick-key[data-v-e8e500b7]{display:flex;align-items:center;justify-content:center;height:26px;border-radius:8px;border:1px solid rgba(55,65,81,.9);background:radial-gradient(circle at top,#020617,#020617);color:#e5e7eb;font-size:11px;letter-spacing:.06em;text-align:center;cursor:pointer}.quick-key.primary[data-v-e8e500b7]{border-color:#3b82f6e6;background:radial-gradient(circle at top,#1d4ed8,#1e293b)}.quick-key[data-v-e8e500b7]:active{transform:translateY(1px);background:#030712}.overlay[data-v-e8e500b7]{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:center;align-items:flex-start;padding:20px;background:radial-gradient(circle at top,#0f172acc,#0f172af2);z-index:20}.overlay-card[data-v-e8e500b7]{width:min(960px,100%);max-height:calc(100vh - 80px);background:radial-gradient(circle at top left,#020617,#020617);border-radius:12px;border:1px solid rgba(51,65,85,.9);box-shadow:0 0 0 1px #0f172ae6,0 24px 80px #0f172a,0 0 40px #38bdf82e;display:flex;flex-direction:column;overflow:hidden}.overlay-header[data-v-e8e500b7]{padding:12px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(30,64,175,.7)}.overlay-header h2[data-v-e8e500b7]{margin:0;font-size:16px;font-weight:600}.icon-btn[data-v-e8e500b7]{border:none;background:transparent;color:#9ca3af;font-size:18px;cursor:pointer;padding:0 4px}.icon-btn[data-v-e8e500b7]:hover{color:#e5e7eb}.overlay-body[data-v-e8e500b7]{padding:14px 16px 16px;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.overlay-body[data-v-e8e500b7]::-webkit-scrollbar{width:0;height:0}.form-grid[data-v-e8e500b7]{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px 12px;margin-bottom:12px}label[data-v-e8e500b7]{font-size:12px;color:#9ca3af;display:flex;flex-direction:column;gap:4px}input[data-v-e8e500b7],select[data-v-e8e500b7],textarea[data-v-e8e500b7]{border-radius:6px;border:1px solid rgba(55,65,81,.9);background:#020617;color:#e5e7eb;padding:6px 8px;font-size:13px;outline:none}input[data-v-e8e500b7]:focus,select[data-v-e8e500b7]:focus,textarea[data-v-e8e500b7]:focus{border-color:#60a5fae6;box-shadow:0 0 0 1px #2563ebcc}textarea[data-v-e8e500b7]{resize:vertical}.form-actions[data-v-e8e500b7]{display:flex;gap:8px;margin-bottom:8px}.primary[data-v-e8e500b7],.secondary[data-v-e8e500b7],.danger[data-v-e8e500b7]{border-radius:10px;border:1px solid transparent;padding:6px 12px;font-size:13px;cursor:pointer;outline:none}.primary[data-v-e8e500b7]{background:radial-gradient(circle at top,#3b82f6,#1d4ed8);border-color:#3b82f6e6;color:#f9fafb;box-shadow:0 10px 35px #2563ebe6}.primary.small[data-v-e8e500b7]{padding:5px 10px;font-size:12px}.secondary[data-v-e8e500b7]{background:#020617;border-color:#4b5563e6;color:#e5e7eb}.secondary.small[data-v-e8e500b7],.danger.small[data-v-e8e500b7],.tiny[data-v-e8e500b7]{padding:4px 9px;font-size:12px}.danger[data-v-e8e500b7]{background:radial-gradient(circle at top,#ef4444,#b91c1c);border-color:#f87171e6;color:#fef2f2}.tiny[data-v-e8e500b7]{border-radius:8px}.error[data-v-e8e500b7]{color:#fca5a5;font-size:12px;margin:2px 0 4px}.error.small[data-v-e8e500b7]{font-size:11px}.tips[data-v-e8e500b7]{display:flex;flex-wrap:wrap;gap:8px;font-size:11px;color:#9ca3af}.sub-panel-header[data-v-e8e500b7]{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.sub-panel-header h3[data-v-e8e500b7]{margin:0;font-size:14px}.ssh-list[data-v-e8e500b7],.command-list[data-v-e8e500b7]{display:flex;flex-direction:column;gap:6px;margin-bottom:10px}.ssh-item[data-v-e8e500b7],.command-item[data-v-e8e500b7]{display:flex;justify-content:space-between;align-items:center;padding:7px 9px;border-radius:6px;border:1px solid rgba(55,65,81,.85);background:#020617}.ssh-title[data-v-e8e500b7]{display:flex;align-items:center;gap:6px}.muted[data-v-e8e500b7]{font-size:11px;color:#6b7280}.ssh-host[data-v-e8e500b7]{font-size:12px;color:#9ca3af}.ssh-actions[data-v-e8e500b7],.command-actions[data-v-e8e500b7]{display:flex;gap:6px}.command-text[data-v-e8e500b7]{font-family:JetBrains Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:11px;padding:2px 6px;border-radius:8px;background:#0f172ae6;border:1px solid rgba(55,65,81,.9)}.script-layout[data-v-e8e500b7]{display:grid;grid-template-columns:minmax(120px,200px) minmax(0,1fr);gap:12px}.script-list[data-v-e8e500b7]{display:flex;flex-direction:column;gap:6px}.script-item[data-v-e8e500b7]{border-radius:10px;border:1px solid rgba(55,65,81,.9);background:#020617;color:#e5e7eb;padding:5px 10px;text-align:left;font-size:12px;cursor:pointer}.script-item.active[data-v-e8e500b7]{border-color:#3b82f6e6;background:radial-gradient(circle at top,#111827,#020617)}.script-editor[data-v-e8e500b7]{display:flex;flex-direction:column;gap:8px}.script-content-label textarea[data-v-e8e500b7]{min-height:140px;font-family:JetBrains Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.empty.small[data-v-e8e500b7]{font-size:12px;color:#6b7280}@media (max-width: 768px){.app-header[data-v-e8e500b7]{flex-direction:column;height:auto;padding:8px 12px;gap:8px}.app-nav[data-v-e8e500b7]{width:100%;justify-content:space-between;flex-wrap:wrap}.brand[data-v-e8e500b7]{align-self:flex-start}.main-full[data-v-e8e500b7]{padding:4px 4px 8px;gap:4px}.overlay[data-v-e8e500b7]{padding:10px}}html,body{scrollbar-width:none;-ms-overflow-style:none}html::-webkit-scrollbar,body::-webkit-scrollbar{width:0;height:0}.xterm-viewport{scrollbar-width:none;-ms-overflow-style:none}.xterm-viewport::-webkit-scrollbar{width:0;height:0}
