/**
 * 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{--bg: #120d1f;--surface: #1a1330;--surface-2: #211839;--line: #342854;--text: #f4f0fd;--muted: #a99cc9;--faint: #6f6390;--accent: #855ced;--accent-soft: #cdb9ff;--orange: #ff7049;--danger: #ff6b7d;--ok: #6fe3b0;--brand: linear-gradient(228deg, #855ced 0%, #ff7049 100%);--r-sm: 10px;--r: 16px;--r-lg: 40px;--font: "Encode Sans", system-ui, sans-serif;--mono: "JetBrains Mono", ui-monospace, Menlo, monospace;--sidebar: 300px;color-scheme:dark}*{box-sizing:border-box;margin:0;padding:0}html,body,#root{height:100%}body{background:var(--bg);color:var(--text);font-family:var(--font);font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased;overflow:hidden}a{color:inherit;text-decoration:none}button,input,select{font:inherit;color:inherit}ul{list-style:none}:focus-visible{outline:2px solid var(--accent-soft);outline-offset:2px;border-radius:6px}@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}.ic{width:18px;height:18px;flex:none}.ic.big{width:48px;height:48px;color:var(--accent)}.page-title{font-size:clamp(26px,4vw,36px);font-variation-settings:"wdth" 125;font-weight:800;letter-spacing:-.015em;line-height:1.05}.page-lead{color:var(--muted);max-width:52ch}.section-title{font-size:19px;font-weight:700;font-variation-settings:"wdth" 112}.eyebrow{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--faint)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 18px;border-radius:var(--r-lg);border:1px solid var(--line);background:var(--surface-2);color:var(--text);font-weight:600;font-size:14px;cursor:pointer;white-space:nowrap;transition:border-color .15s,filter .15s,opacity .15s}.btn:hover{border-color:var(--accent)}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--brand);border:0;color:#fff;box-shadow:0 8px 24px -10px #ff704999}.btn-primary:hover{filter:brightness(1.08)}.btn-ghost{background:transparent}.btn-sm{height:34px;padding:0 14px;font-size:13px}.icon-btn{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:50%;flex:none;border:1px solid transparent;background:transparent;color:var(--muted);cursor:pointer}.icon-btn:hover{color:var(--text);border-color:var(--line);background:var(--surface-2)}.icon-btn.sm{width:26px;height:26px}.icon-btn.sm .ic{width:14px;height:14px}.field{display:flex;flex-direction:column;gap:6px}.field label{font-size:13px;color:var(--muted);font-weight:500}.input,.select{height:44px;padding:0 16px;border-radius:var(--r-lg);border:1px solid var(--line);background:var(--bg);color:var(--text);outline:none;width:100%}.input.sm{height:34px;font-size:13px;padding:0 14px}.input:focus,.select:focus{border-color:var(--accent);box-shadow:0 0 0 3px #855ced40}.segmented{display:inline-flex;padding:4px;gap:4px;border-radius:var(--r-lg);background:var(--bg);border:1px solid var(--line);flex-wrap:wrap}.segmented button{height:32px;padding:0 14px;border-radius:var(--r-lg);border:0;background:transparent;color:var(--muted);font-size:13px;font-weight:600;cursor:pointer}.segmented button[aria-pressed=true]{background:var(--surface-2);color:var(--text);box-shadow:inset 0 0 0 1px var(--line)}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:24px}.row{display:flex;align-items:center;gap:12px}.row.end{justify-content:flex-end}.error{color:var(--danger);font-size:14px}.splash{height:100%;background:var(--bg)}.shell{display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);height:100%}.sidebar{display:flex;flex-direction:column;gap:22px;min-height:0;padding:24px 14px 16px;border-right:1px solid var(--line);background:radial-gradient(120% 60% at 0% 0%,rgba(133,92,237,.16),transparent 60%),var(--bg)}.brand{display:flex;align-items:center;padding:0 8px}.brand .wordmark-img{display:block;height:36px;width:auto;max-width:100%}.brand.large{justify-content:center}.brand.large .wordmark-img{height:60px}.sidebar-section{display:flex;flex-direction:column;gap:10px;min-height:0}.sidebar-section.grow{flex:1}.section-head{display:flex;align-items:center;justify-content:space-between;padding:0 8px}.small{font-size:13px}.faint{color:var(--faint)}.nav{display:flex;flex-direction:column;gap:2px;max-height:40vh;overflow-y:auto}.nav-empty{padding:4px 14px}.nav a{display:flex;align-items:center;gap:12px;padding:8px 8px 8px 14px;border-radius:var(--r-lg);color:var(--muted);font-weight:500;transition:background .15s,color .15s}.nav a:hover{color:var(--text);background:#855ced1a}.nav a[aria-current=page]{color:var(--text);background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--line)}.nav-text{display:flex;flex-direction:column;min-width:0;flex:1;line-height:1.25}.nav-name,.nav-sub{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-sub{font-size:12px;color:var(--faint)}.nav-close{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;border:0;background:transparent;color:var(--faint);cursor:pointer;opacity:0;flex:none}.nav a:hover .nav-close,.nav a[aria-current=page] .nav-close{opacity:1}.nav-close:hover{background:var(--line);color:var(--text)}.nav-close .ic{width:12px;height:12px}.dot{width:8px;height:8px;border-radius:50%;background:var(--faint);flex:none}.dot.live{background:var(--orange);box-shadow:0 0 0 3px #ff70492e}.sidebar-foot{display:flex;flex-wrap:wrap;gap:6px;padding:12px 0 0;border-top:1px solid var(--line)}.stage{position:relative;min-width:0;min-height:0;background:var(--bg)}.explorer{display:flex;flex-direction:column;gap:10px;height:100%;min-height:0;border-radius:var(--r)}.explorer.dropping{box-shadow:inset 0 0 0 2px var(--accent)}.explorer-head{display:flex;align-items:center;justify-content:space-between;padding:0 8px}.tree{flex:1;min-height:0;overflow:auto;font-size:14px}.node{display:flex;align-items:center;gap:6px;height:30px;padding-right:6px;border-radius:var(--r-sm);color:var(--muted);cursor:pointer;-webkit-user-select:none;user-select:none}.node:hover{background:#855ced1a;color:var(--text)}.node.dropping{background:#855ced38;box-shadow:inset 0 0 0 1px var(--accent);color:var(--text)}.caret{width:14px;display:grid;place-items:center}.caret .ic{width:14px;height:14px}.ic-dir{color:var(--accent);width:16px;height:16px}.ic-file{color:var(--faint);width:16px;height:16px}.node-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.node-actions{display:none;align-items:center;gap:2px}.node:hover .node-actions{display:flex}.node:hover .node-size{display:none}.node.selected{background:var(--surface-2);color:var(--text)}.icon-btn.danger:hover{color:var(--danger);border-color:var(--danger)}.node-size{font-size:12px;color:var(--faint);font-variant-numeric:tabular-nums}.empty{color:var(--faint);font-size:13px;height:26px}.hint{font-size:12px;color:var(--faint);padding:0 6px}.terminal-wrap{position:absolute;top:0;right:0;bottom:0;left:0;padding:10px 6px 6px 12px}.terminal{height:100%}.terminal-wrap.dragging:after{content:"";position:absolute;top:8px;right:8px;bottom:8px;left:8px;border-radius:var(--r);pointer-events:none;border:2px dashed var(--accent);background:#855ced1f}.drop-hint,.term-status{position:absolute;left:50%;transform:translate(-50%);padding:8px 16px;border-radius:var(--r-lg);background:var(--surface-2);border:1px solid var(--line);font-size:13px;pointer-events:none;z-index:2}.drop-hint{top:45%;border-color:var(--accent)}.term-status{top:14px;color:var(--muted)}.xterm .xterm-viewport{scrollbar-width:thin;scrollbar-color:var(--line) transparent}.empty-stage{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;text-align:center;padding:24px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#080510b3;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);display:grid;place-items:center;padding:16px;z-index:50}.modal{width:min(560px,100%);display:flex;flex-direction:column;gap:18px;box-shadow:0 30px 80px -20px #0009}.toast{position:fixed;bottom:20px;left:50%;transform:translate(-50%);z-index:60;max-width:calc(100% - 32px);padding:10px 18px;border-radius:var(--r-lg);background:var(--surface-2);border:1px solid var(--line);font-size:14px}.toast.error{border-color:var(--danger);color:var(--danger)}.login{height:100%;display:grid;place-items:center;padding:16px;background:radial-gradient(70% 60% at 20% 0%,rgba(133,92,237,.25),transparent 60%),radial-gradient(60% 50% at 100% 100%,rgba(255,112,73,.14),transparent 60%),var(--bg)}.login-card{width:min(400px,100%);display:flex;flex-direction:column;gap:14px;padding:36px 28px}.login-card .brand{margin-bottom:12px}@media(max-width:900px){.sidebar{position:relative}.shell{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}.sidebar{flex-direction:row;flex-wrap:wrap;align-items:center;gap:10px 12px;padding:10px 16px;border-right:0;border-bottom:1px solid var(--line);background:#120d1feb}.brand{padding:0}.brand .wordmark-img{height:26px}.sidebar-section:first-of-type{order:3;width:100%}.section-head .eyebrow{display:none}.section-head{position:absolute;top:10px;right:16px;padding:0}.nav{flex-direction:row;overflow-x:auto;max-height:none;scrollbar-width:none}.nav a{flex:none;padding:6px 6px 6px 12px}.nav-sub{display:none}.sidebar-section.grow{order:4;width:100%;max-height:45vh}.sidebar-foot{order:5;width:100%;border-top:0;padding:0}.shell.with-explorer .stage{min-height:40vh}}.modal .segmented{border-radius:var(--r)}.stage{display:flex;flex-direction:column}.layout-switch{position:absolute;top:8px;right:10px;z-index:5;padding:3px;gap:2px;background:#120d1fd9;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.layout-switch button{height:28px;padding:0 8px}.layout-switch .ic{width:16px;height:16px}.panes{flex:1;min-height:0;display:grid;gap:1px;background:var(--line)}.panes.layout-1{grid-template-columns:minmax(0,1fr)}.panes.layout-2{grid-template-columns:repeat(2,minmax(0,1fr))}.panes.layout-3{grid-template-columns:repeat(3,minmax(0,1fr))}.panes.layout-4{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}.pane{display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--bg);position:relative}.pane.focused{box-shadow:inset 0 2px 0 var(--orange)}.pane-head{display:flex;align-items:center;gap:8px;height:40px;padding:0 8px 0 14px;border-bottom:1px solid var(--line);background:var(--surface);flex:none}.panes:not(.layout-1) .pane-head{padding-right:8px}.panes.layout-1 .pane-head{padding-right:170px}.pane-title{font-weight:600;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pane-sub{font-size:12px;color:var(--faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pane-body{flex:1;min-height:0;position:relative}.pane-float{position:absolute;top:8px;right:180px;z-index:4}.grow{flex:1}.nav a.visible:not([aria-current]) .nav-name{color:var(--text)}.nav a.file-item .ic-file{margin-left:-2px}.links{position:relative}.links-pop{position:absolute;top:32px;right:0;z-index:20;width:min(560px,80vw);max-height:50vh;overflow:auto;padding:8px;display:flex;flex-direction:column;gap:2px;box-shadow:0 20px 50px -10px #0009}.link-row{display:flex;align-items:center;gap:6px}.link-row a{flex:1;min-width:0;padding:6px 10px;border-radius:var(--r-sm);font-family:var(--mono);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--accent-soft)}.link-row a:hover{background:#855ced1f}.file-view{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column}.file-toolbar{display:flex;justify-content:flex-end;padding:8px 12px 0}.file-toolbar .segmented button{height:28px;font-size:12px}.file-body{flex:1;min-height:0;overflow:auto}.file-empty{padding:32px;color:var(--muted)}.file-text{margin:0;padding:16px 20px;font-family:var(--mono);font-size:13px;line-height:1.55;color:var(--text);white-space:pre;-moz-tab-size:2;tab-size:2}.file-media{display:grid;place-items:center;min-height:100%;padding:20px}.file-media img,.file-media video{max-width:100%;max-height:calc(100vh - 140px);border-radius:var(--r-sm);background:repeating-conic-gradient(#1a1330 0,#1a1330 25%,#211839 0,#211839 50%) 0 0 / 16px 16px}.file-frame{width:100%;height:100%;border:0;background:#fff}.markdown{max-width:860px;padding:24px 32px 64px;line-height:1.65;color:var(--text)}.markdown>*+*{margin-top:.9em}.markdown h1,.markdown h2,.markdown h3,.markdown h4{font-variation-settings:"wdth" 112;line-height:1.2;margin-top:1.4em}.markdown h1{font-size:30px;font-weight:800;font-variation-settings:"wdth" 125;margin-top:0}.markdown h2{font-size:22px;font-weight:700;padding-bottom:6px;border-bottom:1px solid var(--line)}.markdown h3{font-size:18px;font-weight:700}.markdown a{color:var(--accent-soft);text-decoration:underline;text-underline-offset:3px}.markdown ul,.markdown ol{padding-left:1.4em;list-style:revert}.markdown li+li{margin-top:.25em}.markdown code{font-family:var(--mono);font-size:.88em;padding:2px 6px;border-radius:6px;background:var(--surface-2)}.markdown pre{padding:14px 16px;border-radius:var(--r-sm);background:var(--surface);border:1px solid var(--line);overflow:auto}.markdown pre code{padding:0;background:none}.markdown blockquote{padding:4px 16px;border-left:3px solid var(--accent);color:var(--muted)}.markdown table{border-collapse:collapse;width:100%;font-size:14px;display:block;overflow-x:auto}.markdown th,.markdown td{border:1px solid var(--line);padding:6px 10px;text-align:left;vertical-align:top}.markdown th{background:var(--surface)}.markdown hr{border:0;border-top:1px solid var(--line)}.markdown img{max-width:100%}.markdown input[type=checkbox]{accent-color:var(--accent);margin-right:6px}@media(max-width:900px){.layout-switch{display:none}.panes{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:none!important}.panes>.pane:not(:first-child){display:none}.panes.layout-1 .pane-head{padding-right:8px}.pane-float{right:8px}}.file-frame.vnc{background:#000}.panes.layout-2>.pane:nth-child(2) .pane-head,.panes.layout-3>.pane:nth-child(3) .pane-head,.panes.layout-4>.pane:nth-child(2) .pane-head{padding-right:170px}.file-code{display:flex;min-height:100%}.file-code .gutter{margin:0;padding:16px 10px 16px 16px;text-align:right;color:var(--faint);font-family:var(--mono);font-size:13px;line-height:1.55;-webkit-user-select:none;user-select:none;border-right:1px solid var(--line);background:var(--surface);position:sticky;left:0}.file-code .file-text{flex:1}.hljs-keyword,.hljs-selector-tag,.hljs-built_in,.hljs-meta .hljs-keyword{color:#cdb9ff}.hljs-string,.hljs-attr-value,.hljs-template-tag,.hljs-addition{color:#6fe3b0}.hljs-number,.hljs-literal,.hljs-symbol,.hljs-bullet{color:#ffc069}.hljs-title,.hljs-title.function_,.hljs-section{color:#8aa8ff}.hljs-attr,.hljs-attribute,.hljs-variable,.hljs-property,.hljs-params{color:#ff9a7a}.hljs-comment,.hljs-quote,.hljs-meta{color:var(--faint);font-style:italic}.hljs-type,.hljs-class .hljs-title,.hljs-tag,.hljs-name{color:#855ced}.hljs-deletion{color:var(--danger)}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.file-table-wrap{overflow:auto}.file-table{border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}.file-table th,.file-table td{border:1px solid var(--line);padding:5px 10px;text-align:left;white-space:nowrap;max-width:420px;overflow:hidden;text-overflow:ellipsis}.file-table thead th{position:sticky;top:0;background:var(--surface-2);z-index:1}.file-table .rownum{color:var(--faint);text-align:right;background:var(--surface);position:sticky;left:0}.file-table tbody tr:hover td{background:#855ced14}.sheet-tabs{margin:10px 12px}.pad{padding:10px 14px}.markdown.docx{background:var(--surface);margin:20px;border-radius:var(--r)}.context-menu{position:fixed;z-index:70;min-width:240px;padding:6px;display:flex;flex-direction:column;gap:1px;box-shadow:0 24px 60px -12px #000000b3}.cm-item{display:flex;align-items:center;gap:10px;height:34px;padding:0 12px;border:0;border-radius:var(--r-sm);background:transparent;color:var(--text);font-size:14px;text-align:left;cursor:pointer}.cm-item .ic{width:16px;height:16px;color:var(--muted)}.cm-item:hover:not(:disabled){background:#855ced29}.cm-item:disabled{opacity:.4;cursor:default}.cm-item.danger,.cm-item.danger .ic{color:var(--danger)}.cm-item.danger:hover{background:#ff6b7d1f}.cm-sep{height:1px;margin:5px 6px;background:var(--line)}.dialog{width:min(460px,100%)}.dialog-message{color:var(--muted)}.btn-danger-solid{background:var(--danger);border:0;color:#1a0a10}.btn-danger-solid:hover{filter:brightness(1.08)}.settings{width:min(620px,100%)}.settings-section{display:flex;flex-direction:column;gap:12px;padding-top:8px;border-top:1px solid var(--line)}.settings-section h3{font-size:16px;font-weight:700}.settings code{font-family:var(--mono);font-size:.9em;padding:1px 6px;border-radius:6px;background:var(--surface-2)}.stack{display:flex;flex-direction:column;gap:12px}.muted{color:var(--muted)}.status{padding:10px 14px;border-radius:var(--r-sm);border:1px solid var(--line);font-size:14px}.status.ok{border-color:#6fe3b080;color:var(--ok)}.status.bad{border-color:#ff6b7d80;color:var(--danger)}.status .warn{color:#ffc069;margin-top:4px}.usage-bar{display:flex;align-items:center;gap:22px;flex-wrap:wrap;min-height:34px;padding:6px 14px;border-top:1px solid var(--line);background:var(--surface);font-size:12px;flex:none}.usage-meter{display:flex;align-items:center;gap:8px}.usage-label{color:var(--muted);font-weight:600}.usage-track{width:120px;height:6px;border-radius:99px;background:var(--line);overflow:hidden}.usage-fill{display:block;height:100%;border-radius:99px;background:var(--brand)}.usage-fill.warn{background:#ffc069}.usage-fill.bad{background:var(--danger)}.usage-value{font-variant-numeric:tabular-nums;font-weight:600;min-width:34px}.usage-reset{color:var(--faint)}.usage-age{margin-left:auto;color:var(--faint)}.dot.done{background:var(--ok);box-shadow:0 0 0 3px #6fe3b040}.dot.attention{background:#ffc069;box-shadow:0 0 0 3px #ffc0694d;animation:pulse 1.4s ease-in-out infinite}@keyframes pulse{50%{box-shadow:0 0 0 6px #ffc0690d}}.notify-btn{border-color:var(--orange)}.solo{display:flex;flex-direction:column;height:100%}.solo .panes{flex:1}.solo .pane-head{padding-right:8px!important}.account-row{display:flex;align-items:flex-start;gap:14px;padding:12px 14px;border:1px solid var(--line);border-radius:var(--r-sm)}.account-name{font-weight:700}.ok-text{color:var(--ok)}.device-code{display:flex;align-items:center;gap:8px;margin-top:8px;flex-wrap:wrap}.device-code code{font-size:18px;letter-spacing:.08em;padding:4px 10px;color:var(--orange)}.settings{max-height:calc(100vh - 32px);overflow:auto}.ctx-badge{font-size:11px;padding:2px 8px;border-radius:99px;border:1px solid var(--line);color:var(--muted);white-space:nowrap}.ctx-badge.high{border-color:#ffc069;color:#ffc069}.picker{position:relative}.picker-list{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:10;max-height:320px;overflow:auto;padding:6px;list-style:none;box-shadow:0 24px 60px -12px #000000b3}.picker-item{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:var(--r-sm);cursor:pointer;font-size:14px}.picker-item.active{background:#855ced29}.picker-item[aria-selected=true]{color:var(--accent-soft)}.picker-check{color:var(--orange);font-weight:700}.picker-empty{padding:10px 12px;color:var(--faint);font-size:14px}.terminal-wrap{display:flex;flex-direction:column}.terminal{flex:1;min-height:0;height:auto}.term-attach{position:absolute;right:14px;bottom:10px;z-index:3;opacity:.55}.term-attach:hover{opacity:1}.term-keys{display:none;flex:none;gap:6px;padding:8px 0 2px;overflow-x:auto;scrollbar-width:none}.term-keys button{flex:none;min-width:44px;height:38px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--text);font:600 13px var(--mono);touch-action:manipulation}.term-keys button:active{background:var(--accent);color:#fff}.term-keys .attach{display:inline-grid;place-items:center;margin-left:auto}.explorer-tools{display:inline-flex;gap:2px}.explorer-close{display:none}@media(hover:none){.node-actions{display:flex}}@media(max-width:900px),(pointer:coarse){.term-keys{display:flex}.term-attach{display:none}}@media(max-width:900px){.sidebar-foot{order:2;width:auto;margin:0 92px 0 auto;flex-wrap:nowrap;gap:2px}.sidebar-foot .btn{padding:0 9px}.sidebar-foot .btn-label{display:none}.sidebar-section.grow{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;max-height:none;padding:14px 16px calc(14px + env(safe-area-inset-bottom));background:var(--bg)}.shell.with-explorer .stage{min-height:0}.explorer .hint{display:none}.explorer-close{display:inline-grid}.node{min-height:38px}.terminal-wrap{padding:6px 6px calc(6px + env(safe-area-inset-bottom)) 8px}.usage-reset,.usage-age{display:none}.usage-bar{gap:12px}}@media(max-width:900px){.sidebar-section:not(.grow){order:3;width:100%}.term-keys{gap:5px}.term-keys button{min-width:40px;height:36px;padding:0 9px;font-size:12px}.term-keys .attach{margin-left:0;color:var(--accent)}.usage-bar{flex-wrap:nowrap;overflow-x:auto;gap:14px;padding:6px 12px;scrollbar-width:none}.usage-meter{flex:none;gap:6px}.usage-label{max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.usage-track{width:44px}}@media(max-width:900px){.sidebar-foot{margin-right:78px}.sidebar-foot .btn{padding:0 7px}.brand .wordmark-img{height:22px}}.folder-list{list-style:none;margin:0;padding:4px;max-height:min(50vh,380px);overflow:auto;border:1px solid var(--line);border-radius:var(--r-sm)}.folder-path{overflow-wrap:anywhere}#root{height:var(--app-h, 100%)}.picker-text{display:flex;flex-direction:column;min-width:0}.picker-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.picker-group{font-size:12px;color:var(--faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}input[type=search]::-webkit-search-cancel-button{filter:invert(.7)}@media(pointer:coarse),(max-width:900px){.input,.select,textarea{font-size:16px}.input.sm{height:42px;font-size:16px}.xterm .xterm-helper-textarea{font-size:16px!important}.modal-backdrop{place-items:start center;padding:max(16px,env(safe-area-inset-top)) 12px 16px;overflow-y:auto}.modal{gap:14px;padding:20px 18px}.picker-list{max-height:42vh}.picker-item{min-height:44px}.folder-list{max-height:40vh}.btn{min-height:40px}}.copy-sheet{position:absolute;top:0;right:0;bottom:0;left:0;z-index:8;display:flex;flex-direction:column;background:var(--bg)}.copy-head{display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid var(--line)}.copy-text{flex:1;min-height:0;margin:0;padding:12px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.45 var(--mono);color:var(--text);user-select:text;-webkit-user-select:text}@media(max-width:900px){.toast{top:calc(12px + env(safe-area-inset-top));bottom:auto;max-width:calc(100% - 32px)}.copy-head .small{display:none}}
