/**
 * 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{--susu-bg: #090c0a;--susu-sidebar-bg: #0d120f;--susu-surface: #111814;--susu-surface-active: #17241c;--susu-border: #1a291f;--susu-border-active: #22c55e;--susu-border-subtle: #142018;--susu-green: #22c55e;--susu-green-bright: #4ade80;--susu-green-glow: rgba(34, 197, 94, .25);--susu-yellow: #facc15;--susu-blue: #38bdf8;--susu-text: #ecfdf5;--susu-text-muted: #809689;--susu-text-dim: #4d5e54;--susu-error: #ef4444;--font-mono: "ui-monospace", "SF Mono", Menlo, Monaco, Consolas, monospace}*{box-sizing:border-box;margin:0;padding:0}body,html{height:100%;width:100%;overflow:hidden;background-color:var(--susu-bg);color:var(--susu-text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased}.susu-workbench{display:flex;flex-direction:column;height:100vh;height:100dvh;width:100vw;padding-bottom:env(safe-area-inset-bottom);background-color:var(--susu-bg);overflow:hidden;position:relative}.susu-loading-screen{display:grid;place-content:center;justify-items:center;gap:16px;height:100vh;height:100dvh;background:var(--susu-bg);color:var(--susu-green);font-family:var(--font-mono)}.workbench-header{height:calc(42px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top);display:flex;align-items:center;justify-content:space-between;padding-left:14px;padding-right:14px;background:var(--susu-sidebar-bg);border-bottom:1px solid var(--susu-border);-webkit-user-select:none;user-select:none;z-index:10}.window-controls{display:flex;align-items:center;gap:8px;min-width:180px}.window-dot{width:11px;height:11px;border-radius:50%;display:inline-block}.window-dot.is-close{background:#ff5f56}.window-dot.is-minimize{background:#ffbd2e}.window-dot.is-maximize{background:#27c93f}.window-title{margin-left:10px;font-size:12px;font-weight:500;color:var(--susu-text-muted)}.susu-touchbar{display:flex;align-items:center;justify-content:center;flex:1}.touchbar-strip{display:inline-flex;align-items:center;gap:6px;background:#060907;border:1px solid #142017;border-radius:8px;padding:3px 8px}.touchbar-pill{display:inline-flex;align-items:center;gap:5px;padding:4px 9px;background:#0e1611;border:1px solid #18271d;border-radius:6px;color:var(--susu-text-muted);font-size:11px;font-family:inherit;cursor:pointer;transition:all .15s ease}.touchbar-pill:hover{background:#142419;color:var(--susu-text);border-color:#243b2c}.touchbar-pill.is-active{background:#122919;color:var(--susu-green);border-color:var(--susu-green)}.touchbar-pill.is-accent{border-color:#1b4526;color:var(--susu-green)}.touchbar-prompt{font-family:var(--font-mono);font-weight:800;color:var(--susu-green)}.touchbar-pill-label{font-size:11px;font-weight:500}.workbench-status{display:flex;align-items:center;gap:12px;min-width:180px;justify-content:flex-end}.status-led{width:7px;height:7px;border-radius:50%;background:var(--susu-error)}.status-led.is-online{background:var(--susu-green);box-shadow:0 0 6px var(--susu-green)}.workbench-logout-btn{background:transparent;border:1px solid var(--susu-border);color:var(--susu-text-muted);padding:4px 7px;border-radius:4px;cursor:pointer;display:flex;align-items:center}.workbench-logout-btn:hover{background:var(--susu-surface);color:var(--susu-text)}.workbench-body{flex:1;min-height:0;display:flex;width:100%}.susu-filetree{width:220px;min-width:180px;background:var(--susu-sidebar-bg);border-right:1px solid var(--susu-border);display:flex;flex-direction:column;-webkit-user-select:none;user-select:none}.filetree-header{padding:8px 12px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--susu-border-subtle)}.filetree-title{font-size:11px;text-transform:uppercase;letter-spacing:.05em;font-weight:700;color:var(--susu-text-muted)}.filetree-badge{font-size:10px;color:var(--susu-text-dim)}.filetree-scroll{flex:1;overflow-y:auto;padding:6px 0}.tree-row{display:flex;align-items:center;gap:6px;height:24px;padding-right:10px;cursor:pointer;font-size:12px;color:var(--susu-text-muted);transition:background .1s ease}.tree-row:hover{background:var(--susu-surface);color:var(--susu-text)}.tree-row.is-selected{background:#102417;color:var(--susu-text);border-left:2px solid var(--susu-green)}.tree-icon-container{display:inline-flex;align-items:center;justify-content:center}.tree-icon{color:var(--susu-text-dim)}.tree-icon.is-folder{color:#38bdf8}.tree-icon.is-markdown{color:#facc15}.tree-icon.is-code{color:#4ade80}.tree-icon.is-json{color:#fb923c}.tree-icon.is-config{color:#a78bfa}.tree-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workbench-main-area{flex:1;min-width:0;display:flex;flex-direction:column;background:var(--susu-bg)}.susu-editor-panel{flex:1;min-height:0;display:flex;flex-direction:column;border-bottom:1px solid var(--susu-border);background:#080b09}.editor-tab-bar{height:32px;background:#0a0e0b;border-bottom:1px solid var(--susu-border-subtle);display:flex;align-items:center;justify-content:space-between;padding-right:8px}.editor-tab-list{display:flex;align-items:center;height:100%;overflow-x:auto}.editor-tab{display:inline-flex;align-items:center;gap:7px;height:100%;padding:0 14px;background:#0d130f;border-right:1px solid var(--susu-border-subtle);font-size:12px;color:var(--susu-text-muted);cursor:pointer;-webkit-user-select:none;user-select:none}.editor-tab.is-active{background:#121c15;color:var(--susu-green-bright);border-bottom:2px solid var(--susu-green);font-weight:500}.tab-indicator{font-size:14px;color:var(--susu-green)}.tab-close-btn{background:transparent;border:none;color:var(--susu-text-dim);cursor:pointer;display:inline-flex;padding:2px;border-radius:3px}.tab-close-btn:hover{background:#ffffff1a;color:var(--susu-text)}.editor-tab-actions{display:flex;align-items:center;gap:4px}.editor-icon-btn{background:transparent;border:none;color:var(--susu-text-muted);padding:4px;border-radius:4px;cursor:pointer;display:inline-flex}.editor-icon-btn:hover{background:var(--susu-surface);color:var(--susu-text)}.editor-breadcrumb{height:24px;background:#080b09;border-bottom:1px solid var(--susu-border-subtle);display:flex;align-items:center;padding:0 14px;font-size:11px;font-family:var(--font-mono);color:var(--susu-text-dim);gap:6px}.breadcrumb-path{color:var(--susu-text-muted)}.breadcrumb-headline{color:var(--susu-yellow);font-weight:600}.editor-workspace{flex:1;min-height:0;display:flex;overflow:hidden}.editor-surface{flex:1;display:flex;height:100%;overflow-y:auto}.editor-gutter{width:44px;background:#080b09;border-right:1px solid var(--susu-border-subtle);padding:10px 0;text-align:right;-webkit-user-select:none;user-select:none;font-family:var(--font-mono);font-size:12px;color:var(--susu-text-dim)}.gutter-line-number{height:20px;line-height:20px;padding-right:10px}.editor-textarea{flex:1;height:100%;background:#080b09;border:none;outline:none;resize:none;padding:10px 14px;font-family:var(--font-mono);font-size:13px;line-height:20px;color:var(--susu-text);white-space:pre}.editor-empty-state{flex:1;display:grid;place-content:center;justify-items:center;gap:12px;color:var(--susu-text-muted)}.susu-action-btn{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;background:#122418;border:1px solid var(--susu-border);color:var(--susu-green);border-radius:6px;font-size:12px;cursor:pointer}.susu-terminals-wrapper{height:45%;min-height:180px;display:flex;background:#080b09}.terminal-pane{display:flex;flex-direction:column;background:#080b09;min-width:0}.terminal-pane.is-full,.terminal-pane.is-split{flex:1}.terminal-pane:not(:last-child){border-right:1px solid var(--susu-border)}.terminal-pane-header{height:28px;background:#0a0e0b;border-bottom:1px solid var(--susu-border-subtle);display:flex;align-items:center;justify-content:space-between;padding:0 10px}.terminal-pane-tab{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-family:var(--font-mono);color:var(--susu-text-muted)}.terminal-tab-icon{color:var(--susu-green)}.terminal-tab-icon.is-agent{color:#4ade80}.terminal-pane-controls{display:flex;align-items:center;gap:4px}.terminal-ctrl-btn{background:transparent;border:none;color:var(--susu-text-dim);padding:3px;border-radius:3px;cursor:pointer;display:inline-flex}.terminal-ctrl-btn:hover{background:var(--susu-surface);color:var(--susu-text)}.terminal-pane-body{flex:1;min-height:0;padding:8px 10px;background:#080b09}.xterm-mount{height:100%;width:100%}.susu-toast-notification{position:absolute;bottom:calc(16px + env(safe-area-inset-bottom));right:16px;display:flex;align-items:center;gap:8px;background:#1f1414;border:1px solid #451b1b;color:#fca5a5;padding:8px 12px;border-radius:6px;font-size:12px;z-index:50;box-shadow:0 4px 16px #00000080}.toast-dismiss-btn{background:#2b1717;border:1px solid #572222;color:#fecaca;padding:2px 8px;border-radius:4px;font-size:11px;cursor:pointer;margin-left:6px}.toast-close-btn{background:transparent;border:none;color:#f87171;cursor:pointer;display:inline-flex}.susu-account-confirm{max-width:360px;padding:20px 24px;border:1px solid var(--susu-border);border-radius:12px;background:var(--susu-surface);text-align:left}.susu-account-confirm h2{margin:0 0 8px;font-size:16px}.susu-account-confirm p{margin:0 0 8px}.susu-account-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.susu-account-actions button{padding:6px 14px;border:1px solid var(--susu-border);border-radius:8px;background:transparent;color:inherit;cursor:pointer}.susu-account-actions button.is-primary{border-color:var(--susu-green);color:var(--susu-green-bright)}@media(display-mode:standalone){@supports (-webkit-touch-callout: none){html,body,#root,.susu-workbench,.susu-loading-screen{height:100vh}body{contain:layout}}}
