/**
 * 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,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.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{--bg: #0d1117;--panel: #161b22;--left-bg: #131a22;--border: #30363d;--text: #e6edf3;--muted: #8b949e;--accent: #58a6ff;--tab-inactive: #21262d;--left-width: 200px;--top-h: 48px}*{box-sizing:border-box}html,body,#root{margin:0;height:100%}body{background:var(--bg);color:var(--text);font-family:ui-sans-serif,system-ui,sans-serif}.workspace{height:100vh;display:flex;min-height:0}.left{width:var(--left-width);min-width:60px;max-width:200px;display:flex;flex-direction:column;min-height:0;background:var(--left-bg)}.right{flex:1;min-width:0;display:flex;flex-direction:column;min-height:0}.topbar{height:var(--top-h);min-height:var(--top-h);display:flex;align-items:center;padding:0 14px;gap:10px;background:var(--bg)}.app-brand{display:flex;align-items:center;gap:10px;font-weight:700}.brand-text{white-space:nowrap}.app-logo{width:28px;height:28px;border-radius:8px;background:linear-gradient(135deg,#1f6feb,#58a6ff)}.left-menu{padding:12px;display:flex;flex-direction:column;gap:8px}.menu-btn{border:1px solid transparent;background:transparent;color:var(--muted);text-align:left;padding:10px 12px;border-radius:8px;cursor:pointer;display:flex;align-items:center;gap:10px}.menu-btn.active{background:var(--tab-inactive);color:var(--text);border-color:var(--accent)}.left-bottom{margin-top:auto;padding:12px;display:flex;flex-direction:column;gap:10px;align-items:stretch}.left-bottom-row{display:flex;gap:10px;align-items:center}.left-bottom-bind{display:flex;flex-direction:column;gap:6px;padding-top:4px;border-top:1px solid var(--border, #30363d)}.left-bottom-bind-label{font-size:11px;color:var(--muted);line-height:1.35}.left.compact .left-bottom-bind-label{display:none}.avatar{width:28px;height:28px;border-radius:50%;background:#0a3069;display:grid;place-items:center;color:#fff}.login-meta{font-size:12px;color:var(--muted)}.login-meta .ok{color:#3fb950;margin-top:2px}.left.compact .brand-text,.left.compact .menu-text,.left.compact .login-meta{display:none}.left.compact .topbar,.left.compact .left-menu,.left.compact .left-bottom{padding-left:10px;padding-right:10px}.left.compact .topbar{justify-content:center}.left.compact .app-brand{width:100%;justify-content:center}.left.compact .left-bottom{justify-content:center}.left.compact .menu-btn{justify-content:center;padding-left:8px;padding-right:8px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.device-strip{display:flex;gap:8px;min-width:0;flex:1;overflow-x:auto;padding-bottom:2px;align-items:center}.device-chip{border:none;background:transparent;padding:0;color:#3fb950;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;line-height:0}.device-chip:hover{opacity:.92;filter:brightness(1.08)}.device-chip.active{color:#7ee787;filter:drop-shadow(0 0 5px rgba(86,211,100,.65))}.top-actions{margin-left:auto;display:flex;gap:8px}.top-actions .icon-btn{width:auto;height:auto;padding:0;border:none;border-radius:0;background:transparent;color:var(--muted);line-height:0;box-shadow:none}.top-actions .icon-btn:hover:not(:disabled){color:var(--text);filter:brightness(1.08)}.splitter{width:8px;cursor:col-resize;position:relative;flex-shrink:0;-webkit-user-select:none;user-select:none;touch-action:none}.splitter.dragging{cursor:col-resize}.content{flex:1;min-height:0;display:flex;flex-direction:column;background:var(--panel)}.view{display:none;height:100%;min-height:0}.view.active{display:flex;flex-direction:column}.cli-view{flex:1;min-height:0}.cli-view.active{display:flex;flex-direction:column}.cli-view:not(.cli-view--has-tabs) .cli-tabs-wrap{flex:0 0 auto}.cli-view:not(.cli-view--has-tabs) .cli-tabs-wrap .ant-tabs-content-holder{display:none}.cli-view--has-tabs .cli-tabs-wrap{flex:1;min-height:0;display:flex;flex-direction:column}.cli-tab-row{background:var(--panel);padding:0 8px;flex-shrink:0}.cli-tabs-wrap{display:flex;flex-direction:column}.cli-view--has-tabs .cli-tabs-wrap .ant-tabs{flex:1;min-height:0;display:flex;flex-direction:column}.cli-view--has-tabs .cli-tabs-wrap .ant-tabs-content-holder{flex:1;min-height:0}.cli-view--has-tabs .cli-tabs-wrap .ant-tabs-content,.cli-view--has-tabs .cli-tabs-wrap .ant-tabs-tabpane{height:100%}.cli-tab-row .ant-tabs-nav{margin:0}.terminal-placeholder-full{flex:1;min-height:160px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted);gap:10px;padding:16px;text-align:center;background:var(--bg);border-top:1px solid var(--border)}.terminal-pane-wrap{height:100%;min-height:280px;position:relative}.tab-pane{display:none;position:absolute;top:0;right:0;bottom:0;left:0;padding:8px}.tab-pane.active{display:block}.tab-pane .xterm{height:100%}.view-body{flex:1;min-height:0;padding:12px;display:flex;flex-direction:column;gap:10px}.tree-git-box{flex:1;min-height:100px;overflow:auto;border:1px solid var(--border);border-radius:8px;background:#111826;padding:10px;white-space:pre-wrap;word-break:break-word;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.tree-box{white-space:normal;font-family:ui-sans-serif,system-ui,sans-serif;position:relative}.tree-info-line{min-height:22px;font-size:12px;color:var(--muted);padding:2px 2px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tree-node-btn{width:100%;text-align:left;background:transparent;border:none;color:var(--text);height:28px;border-radius:6px;cursor:pointer;display:flex;align-items:center;gap:6px}.tree-node-btn:hover{background:#58a6ff1f}.tree-node-btn.active{background:#58a6ff33}.tree-node-caret{width:12px;color:var(--muted);flex-shrink:0;text-align:center}.tree-node-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tree-empty-tip{color:var(--muted);padding:8px}.status.ok{color:#3fb950}.status.err{color:#f85149}
