/**
 * 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}.app-shell{display:flex;height:100vh;overflow:hidden}.sidebar{width:var(--sidebar-w);flex-shrink:0;background:var(--bg2);border-right:1px solid var(--border);display:flex;flex-direction:column;padding:16px 12px;gap:6px}.sidebar-logo{display:flex;align-items:center;gap:8px;padding:8px 10px 16px;border-bottom:1px solid var(--border);margin-bottom:8px}.logo-icon{color:var(--accent)}.logo-text{font-family:var(--font-mono);font-size:13px;font-weight:700;color:var(--text);letter-spacing:-.02em}.logo-accent{color:var(--accent2)}.sidebar-nav{flex:1;display:flex;flex-direction:column;gap:2px}.nav-item{display:flex;align-items:center;gap:9px;padding:9px 10px;border-radius:var(--radius-sm);color:var(--text2);text-decoration:none;font-size:13px;font-weight:400;transition:all .12s;border:1px solid transparent}.nav-item:hover{background:var(--bg3);color:var(--text)}.nav-item.active{background:var(--accent-dim);color:var(--accent2);border-color:var(--accent)22}.sidebar-footer{display:flex;align-items:center;gap:6px;padding:10px;color:var(--text3);font-size:10px;font-family:var(--font-mono);border-top:1px solid var(--border);margin-top:auto}.main-content{flex:1;overflow-y:auto;padding:28px 32px}.page-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.page-title{font-size:18px;font-weight:600;color:var(--text)}.page-subtitle{font-size:13px;color:var(--text3);margin-top:2px}.grid-2{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:14px}.server-card{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);padding:18px;display:flex;flex-direction:column;gap:12px;transition:border-color .15s;animation:fadeIn .2s ease forwards}.server-card:hover{border-color:var(--border2)}.server-card.disabled{opacity:.5}.server-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.server-name{font-weight:600;font-size:14px;color:var(--text)}.server-url{font-family:var(--font-mono);font-size:11px;color:var(--text3);margin-top:2px;word-break:break-all}.server-card-actions{display:flex;gap:6px;align-items:center}.toggle{position:relative;width:36px;height:20px;flex-shrink:0}.toggle input{opacity:0;width:0;height:0}.toggle-slider{position:absolute;top:0;right:0;bottom:0;left:0;background:var(--bg3);border:1px solid var(--border2);border-radius:99px;cursor:pointer;transition:.15s}.toggle-slider:before{content:"";position:absolute;width:14px;height:14px;left:2px;top:2px;background:var(--text3);border-radius:50%;transition:.15s}.toggle input:checked+.toggle-slider{background:var(--accent);border-color:var(--accent)}.toggle input:checked+.toggle-slider:before{transform:translate(16px);background:#fff}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0008;display:flex;align-items:center;justify-content:center;z-index:100;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);animation:fadeIn .15s ease}.modal{background:var(--bg2);border:1px solid var(--border2);border-radius:var(--radius);padding:24px;width:460px;max-width:95vw;display:flex;flex-direction:column;gap:16px}.modal-title{font-size:16px;font-weight:600;color:var(--text)}.form-group{display:flex;flex-direction:column;gap:6px}.form-label{font-size:12px;font-weight:500;color:var(--text2);text-transform:uppercase;letter-spacing:.05em}.form-row{display:flex;gap:10px;justify-content:flex-end}.empty-state{text-align:center;padding:60px 20px;color:var(--text3)}.empty-state svg{margin-bottom:12px;opacity:.3}.empty-state p{font-size:13px}.integration-section{margin-bottom:32px}.integration-section-title{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--text3);margin-bottom:8px;padding:0 4px}.integration-list{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius)}.integration-row:first-child{border-radius:var(--radius) var(--radius) 0 0}.integration-row:last-child{border-radius:0 0 var(--radius) var(--radius);border-bottom:none}.integration-row:only-child{border-radius:var(--radius)}.integration-row{display:flex;align-items:center;gap:14px;padding:14px 18px;border-bottom:1px solid var(--border);transition:background .12s;cursor:pointer}.integration-row:last-child{border-bottom:none}.integration-row:hover{background:var(--bg3)}.integration-row:active{background:var(--accent-dim)}.integration-row.disabled{opacity:.5}.integration-logo{width:36px;height:36px;border-radius:8px;overflow:hidden;flex-shrink:0;background:var(--bg3);display:flex;align-items:center;justify-content:center;font-size:18px;border:1px solid var(--border)}.integration-logo img{width:22px;height:22px;object-fit:contain}.integration-info{flex:1;min-width:0}.integration-name{font-weight:600;font-size:14px;color:var(--text);line-height:1.3}.integration-meta{font-size:12px;color:var(--text3);margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.integration-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}.btn-connect{background:var(--bg3);color:var(--text);border:1px solid var(--border2);padding:6px 16px;border-radius:var(--radius-sm);font-size:13px;font-weight:500;transition:all .15s;white-space:nowrap;display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-family:var(--font-sans)}.btn-connect:hover{background:var(--accent);color:#fff;border-color:var(--accent)}.btn-connect:disabled{opacity:.4;cursor:not-allowed}.btn-connect.connected{color:var(--green);border-color:#4ade8033;background:var(--green-dim)}.btn-connect.connected:hover{background:var(--red-dim);color:var(--red);border-color:#f8717133}.btn-more{background:transparent;border:1px solid var(--border2);color:var(--text3);width:30px;height:30px;border-radius:var(--radius-sm);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:all .12s;font-family:var(--font-sans);font-size:14px;padding:0;flex-shrink:0}.btn-more:hover{background:var(--bg3);color:var(--text)}.dropdown-wrap{position:relative;z-index:10}.dropdown-menu{position:absolute;right:0;top:calc(100% + 4px);background:var(--bg2);border:1px solid var(--border2);border-radius:var(--radius-sm);min-width:160px;z-index:200;overflow:hidden;box-shadow:0 8px 24px #00000060;animation:fadeIn .1s ease}.dropdown-item{display:flex;align-items:center;gap:8px;padding:9px 14px;font-size:13px;color:var(--text2);cursor:pointer;border:none;background:none;width:100%;text-align:left;font-family:var(--font-sans);transition:background .1s}.dropdown-item:hover{background:var(--bg3);color:var(--text)}.dropdown-item.danger{color:var(--red)}.dropdown-item.danger:hover{background:var(--red-dim)}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--bg: #0a0a0f;--bg2: #111118;--bg3: #1a1a24;--border: #ffffff12;--border2: #ffffff1e;--text: #f0f0f8;--text2: #9090a8;--text3: #5a5a72;--accent: #7c6af7;--accent2: #a898ff;--accent-dim: #7c6af718;--green: #4ade80;--green-dim: #4ade8018;--red: #f87171;--red-dim: #f8717118;--yellow: #fbbf24;--yellow-dim: #fbbf2418;--font-mono: "Space Mono", monospace;--font-sans: "DM Sans", sans-serif;--radius: 10px;--radius-sm: 6px;--sidebar-w: 220px;--header-h: 56px}html,body,#root{height:100%}body{background:var(--bg);color:var(--text);font-family:var(--font-sans);font-size:14px;line-height:1.6;-webkit-font-smoothing:antialiased}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--border2);border-radius:99px}input,textarea,select{font-family:var(--font-sans);font-size:14px;background:var(--bg3);border:1px solid var(--border2);color:var(--text);border-radius:var(--radius-sm);padding:8px 12px;outline:none;transition:border-color .15s;width:100%}input:focus,textarea:focus,select:focus{border-color:var(--accent)}textarea{resize:vertical;min-height:80px}button{cursor:pointer;font-family:var(--font-sans);font-size:13px}.btn{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:var(--radius-sm);border:1px solid transparent;font-weight:500;transition:all .15s;white-space:nowrap}.btn-primary{background:var(--accent);color:#fff;border-color:var(--accent)}.btn-primary:hover{background:var(--accent2);border-color:var(--accent2)}.btn-ghost{background:transparent;color:var(--text2);border-color:var(--border2)}.btn-ghost:hover{background:var(--bg3);color:var(--text);border-color:var(--border2)}.btn-danger{background:var(--red-dim);color:var(--red);border-color:transparent}.btn-danger:hover{background:var(--red);color:#fff}.btn-sm{padding:5px 10px;font-size:12px}.btn:disabled{opacity:.4;cursor:not-allowed}.badge{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:99px;font-size:11px;font-weight:500}.badge-green{background:var(--green-dim);color:var(--green)}.badge-red{background:var(--red-dim);color:var(--red)}.badge-yellow{background:var(--yellow-dim);color:var(--yellow)}.badge-purple{background:var(--accent-dim);color:var(--accent2)}.card{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);padding:20px}.tag{display:inline-block;background:var(--bg3);color:var(--text2);border:1px solid var(--border);border-radius:var(--radius-sm);padding:2px 8px;font-size:11px;font-family:var(--font-mono)}.md-body p{margin:0 0 10px}.md-body p:last-child{margin-bottom:0}.md-body h1,.md-body h2,.md-body h3,.md-body h4{font-weight:600;margin:16px 0 6px;color:var(--text);line-height:1.3}.md-body h1{font-size:18px}.md-body h2{font-size:16px}.md-body h3{font-size:14px}.md-body h4{font-size:13px}.md-body ul,.md-body ol{padding-left:20px;margin:6px 0 10px}.md-body li{margin-bottom:4px}.md-body li p{margin:0}.md-body code{font-family:var(--font-mono);font-size:12px;background:var(--bg3);border:1px solid var(--border2);border-radius:4px;padding:1px 5px;color:var(--accent2)}.md-body pre{background:var(--bg3);border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px 14px;overflow-x:auto;margin:10px 0}.md-body pre code{background:none;border:none;padding:0;color:var(--text);font-size:13px}.md-body blockquote{border-left:3px solid var(--accent);padding-left:12px;margin:10px 0;color:var(--text2);font-style:italic}.md-body table{border-collapse:collapse;width:100%;margin:10px 0;font-size:13px}.md-body th,.md-body td{border:1px solid var(--border2);padding:7px 10px;text-align:left}.md-body th{background:var(--bg3);font-weight:600}.md-body hr{border:none;border-top:1px solid var(--border);margin:14px 0}.md-body a{color:var(--accent2);text-decoration:none}.md-body a:hover{text-decoration:underline}.md-body strong{font-weight:600;color:var(--text)}@keyframes spin{to{transform:rotate(360deg)}}@keyframes fadeIn{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.animate-fadeIn{animation:fadeIn .2s ease forwards}.dot{width:7px;height:7px;border-radius:50%;display:inline-block}.dot-green{background:var(--green);box-shadow:0 0 6px var(--green)}.dot-red{background:var(--red)}.dot-yellow{background:var(--yellow)}
