/**
 * 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,[data-theme=dark]{--page: #111214;--surface: #18191c;--surface-2: #1f2126;--surface-hover: #262930;--line: #2b2e35;--line-strong: #3a3e47;--text: #eceef2;--text-2: #b4b9c4;--muted: #7c8391;--accent: #d97757;--accent-soft: rgba(217, 119, 87, .14);--accent-text: #ffffff;--ok: #3fb950;--ok-soft: rgba(63, 185, 80, .14);--warn: #d29922;--warn-soft: rgba(210, 153, 34, .14);--err: #f85149;--err-soft: rgba(248, 81, 73, .14);--diff-add-bg: rgba(46, 160, 67, .16);--diff-add-text: #7ee787;--diff-del-bg: rgba(248, 81, 73, .16);--diff-del-text: #ffa198;--shadow-popover: 0 12px 32px rgba(0, 0, 0, .48);--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;--font-mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace}[data-theme=light]{--page: #f7f6f3;--surface: #ffffff;--surface-2: #f1efe9;--surface-hover: #eae7df;--line: #e2dfd7;--line-strong: #cbc6bc;--text: #1c1d20;--text-2: #4b4f58;--muted: #767b86;--accent: #c96442;--accent-soft: rgba(201, 100, 66, .12);--accent-text: #ffffff;--ok: #1a7f37;--ok-soft: rgba(26, 127, 55, .12);--warn: #9a6700;--warn-soft: rgba(154, 103, 0, .12);--err: #cf222e;--err-soft: rgba(207, 34, 46, .12);--diff-add-bg: rgba(46, 160, 67, .12);--diff-add-text: #116329;--diff-del-bg: rgba(248, 81, 73, .12);--diff-del-text: #a40e26;--shadow-popover: 0 12px 28px rgba(20, 20, 24, .12)}*{box-sizing:border-box}html,body,#root{height:100%;margin:0;padding:0;background:var(--page);color:var(--text);font-family:var(--font-sans);font-size:13.5px;line-height:1.5;-webkit-font-smoothing:antialiased}.mono{font-family:var(--font-mono)}.tabular{font-variant-numeric:tabular-nums}button,input,select,textarea{font-family:inherit;color:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:1px}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}.app-shell{display:flex;height:100%;width:100%;overflow:hidden;background:var(--page)}.sidebar{width:260px;min-width:260px;border-right:1px solid var(--line);background:var(--page);display:flex;flex-direction:column;height:100%}.sidebar-brand{padding:14px 14px 10px;display:flex;align-items:center;justify-content:space-between;gap:8px}.brand-mark{display:flex;align-items:center;gap:9px;font-weight:650;font-size:14.5px;letter-spacing:-.01em}.brand-badge{font-size:10.5px;font-family:var(--font-mono);padding:1px 6px;border-radius:6px;border:1px solid var(--line);color:var(--muted)}.sidebar-section-label{padding:10px 14px 4px;font-size:11px;font-weight:600;color:var(--muted);display:flex;align-items:center;justify-content:space-between}.host-list{padding:2px 8px;display:flex;flex-direction:column;gap:2px;max-height:220px;overflow-y:auto}.host-item{width:100%;text-align:left;background:transparent;border:1px solid transparent;border-radius:8px;padding:8px 10px;display:flex;flex-direction:column;gap:3px}.host-item:hover{background:var(--surface)}.host-item.active{background:var(--surface);border-color:var(--line)}.host-row{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:550}.status-dot{width:7px;height:7px;border-radius:999px;flex-shrink:0;background:var(--muted)}.status-dot.online{background:var(--ok);box-shadow:0 0 0 3px var(--ok-soft)}.scope-chips{display:flex;flex-wrap:wrap;gap:4px}.chip{display:inline-flex;align-items:center;gap:4px;font-size:11px;line-height:1.3;padding:2px 7px;border-radius:6px;border:1px solid var(--line);background:var(--surface-2);color:var(--text-2)}.chip.rw{border-color:#3fb95059;background:var(--ok-soft);color:var(--ok)}.chip.ro{border-color:#d2992259;background:var(--warn-soft);color:var(--warn)}.chip.accent{border-color:#d9775766;background:var(--accent-soft);color:var(--accent)}.chip.err{border-color:#f8514966;background:var(--err-soft);color:var(--err)}.nav-list{padding:4px 8px;display:flex;flex-direction:column;gap:2px}.nav-item{display:flex;align-items:center;gap:9px;padding:8px 10px;border-radius:8px;border:1px solid transparent;background:transparent;color:var(--text-2);font-size:13px;font-weight:500;text-align:left}.nav-item:hover{background:var(--surface);color:var(--text)}.nav-item.active{background:var(--surface);border-color:var(--line);color:var(--text)}.sidebar-footer{margin-top:auto;padding:10px 12px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:8px}.main-area{flex:1;min-width:0;display:flex;flex-direction:column;height:100%;overflow:hidden}.topbar{height:48px;min-height:48px;border-bottom:1px solid var(--line);background:var(--surface);padding:0 14px;display:flex;align-items:center;justify-content:space-between;gap:12px}.topbar-left,.topbar-right{display:flex;align-items:center;gap:8px;min-width:0}.telemetry-strip{display:flex;align-items:center;gap:10px;font-size:11.5px;color:var(--text-2);padding:3px 9px;border-radius:8px;background:var(--surface-2);border:1px solid var(--line)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:30px;padding:0 10px;border-radius:8px;border:1px solid var(--line);background:var(--surface-2);color:var(--text);font-size:12.5px;font-weight:500;white-space:nowrap}.btn:hover:not(:disabled){background:var(--surface-hover);border-color:var(--line-strong)}.btn:disabled{opacity:.45;cursor:not-allowed}.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.btn.primary:hover:not(:disabled){filter:brightness(1.06)}.btn.danger{background:var(--err-soft);border-color:#f8514959;color:var(--err)}.btn.ghost{background:transparent;border-color:transparent}.btn.ghost:hover:not(:disabled){background:var(--surface-2)}.btn.icon-only{width:30px;padding:0}.input,.select,.textarea{background:var(--surface-2);border:1px solid var(--line);border-radius:8px;padding:6px 10px;font-size:13px;color:var(--text)}.input{height:32px}.select{height:30px;padding:0 8px}.workspace-body{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}.workbench-split{flex:1;min-height:0;display:flex;overflow:hidden}.tree-pane{width:280px;min-width:240px;border-right:1px solid var(--line);background:var(--surface);display:flex;flex-direction:column;min-height:0}.tree-header{padding:10px;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:8px}.tree-scroll{flex:1;overflow-y:auto;padding:6px}.tree-row{width:100%;display:flex;align-items:center;gap:6px;padding:5px 8px;border-radius:6px;border:none;background:transparent;text-align:left;font-size:12.5px;color:var(--text-2)}.tree-row:hover{background:var(--surface-2);color:var(--text)}.tree-row.active{background:var(--accent-soft);color:var(--text)}.editor-pane{flex:1;min-width:0;display:flex;flex-direction:column;min-height:0;background:var(--page)}.pane-toolbar{height:40px;min-height:40px;padding:0 12px;border-bottom:1px solid var(--line);background:var(--surface);display:flex;align-items:center;justify-content:space-between;gap:8px}.segmented{display:inline-flex;background:var(--surface-2);border:1px solid var(--line);border-radius:8px;padding:2px;gap:2px}.segmented button{border:none;background:transparent;padding:3px 9px;border-radius:6px;font-size:12px;color:var(--text-2)}.segmented button.active{background:var(--surface);color:var(--text);box-shadow:0 1px 2px #00000029}.code-surface{flex:1;min-height:0;overflow:auto;padding:0}.code-editor-wrap{display:flex;height:100%;min-height:0;font-family:var(--font-mono);font-size:12.5px;line-height:1.6}.line-gutter{padding:12px 10px 12px 12px;text-align:right;color:var(--muted);-webkit-user-select:none;user-select:none;border-right:1px solid var(--line);background:var(--surface);min-width:48px}.code-textarea{flex:1;width:100%;height:100%;border:none;resize:none;padding:12px 14px;background:var(--page);color:var(--text);font-family:var(--font-mono);font-size:12.5px;line-height:1.6;outline:none;-moz-tab-size:4;tab-size:4}.code-pre{margin:0;padding:12px 14px;flex:1;white-space:pre;overflow:visible;font-family:var(--font-mono);font-size:12.5px;line-height:1.6}.git-pane{width:400px;min-width:320px;border-left:1px solid var(--line);background:var(--surface);display:flex;flex-direction:column;min-height:0}.diff-view{font-family:var(--font-mono);font-size:11.5px;line-height:1.55;overflow:auto;flex:1;background:var(--page)}.diff-line{padding:0 10px;white-space:pre-wrap;word-break:break-all}.diff-line.add{background:var(--diff-add-bg);color:var(--diff-add-text)}.diff-line.del{background:var(--diff-del-bg);color:var(--diff-del-text)}.diff-line.hunk{color:var(--accent);background:var(--surface);padding-top:4px;padding-bottom:4px}.terminal-drawer{border-top:1px solid var(--line);background:#0d0e11;display:flex;flex-direction:column}.terminal-header{height:36px;background:var(--surface);border-bottom:1px solid var(--line);padding:0 10px;display:flex;align-items:center;justify-content:space-between;gap:8px}.terminal-body{height:230px;padding:6px 8px;overflow:hidden}.page-scroll{flex:1;overflow-y:auto;padding:24px}.page-container{max-width:1080px;margin:0 auto;display:flex;flex-direction:column;gap:20px}.card{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:16px}.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}.data-table{width:100%;border-collapse:collapse;font-size:12.5px}.data-table th,.data-table td{text-align:left;padding:7px 10px;border-bottom:1px solid var(--line)}.data-table th{position:sticky;top:0;background:var(--surface);font-weight:600;color:var(--text-2)}.md-body{max-width:820px;margin:0 auto;padding:22px 28px;line-height:1.75}.md-body h1,.md-body h2,.md-body h3{margin-top:1.3em;margin-bottom:.5em;letter-spacing:-.01em}.md-body pre{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:12px 14px;overflow-x:auto;font-family:var(--font-mono);font-size:12px}.md-body code{font-family:var(--font-mono);font-size:12px;background:var(--surface-2);padding:1px 5px;border-radius:4px}.md-body pre code{background:transparent;padding:0}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0000008f;display:flex;align-items:center;justify-content:center;z-index:60;padding:16px}.modal-card{width:100%;max-width:480px;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:var(--shadow-popover);display:flex;flex-direction:column;gap:14px}.modal-card.wide{max-width:660px}@media(max-width:900px){.sidebar{width:220px;min-width:220px}.git-pane,.telemetry-strip{display:none}}
