/**
 * 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}html,body,#root{margin:0;height:100%;background:#1e1e1e;color:#d4d4d4;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;overflow:hidden}.toolbar{height:36px;display:flex;align-items:center;padding:0 12px;background:#252526;border-bottom:1px solid #1a1a1a;gap:8px;font-size:12px}.toolbar button{background:#3c3c3c;color:#d4d4d4;border:none;padding:6px 12px;font-size:12px;border-radius:3px;cursor:pointer}.toolbar button:hover{background:#4a4a4a}.toolbar .hint{opacity:.6}.main{position:absolute;top:36px;left:0;right:0;bottom:0;display:flex}.sidebar{width:240px;background:#252526;border-right:1px solid #1a1a1a;overflow-y:auto;font-size:12px;flex:0 0 auto}.layout-host{flex:1 1 0;min-width:0;position:relative}.filetree-root{padding:4px 0}.filetree-header{padding:6px 12px;color:#888;text-transform:uppercase;font-size:10px;letter-spacing:.6px;border-bottom:1px solid #1a1a1a;margin-bottom:4px}.filetree-error,.filetree-empty,.filetree-loading,.tree-error,.tree-loading{padding:4px 12px;color:#888;font-size:11px}.filetree-error,.tree-error{color:#d97077}.filetree,.filetree ul{list-style:none;padding:0;margin:0}.filetree ul{padding-left:14px}.tree-row{display:flex;gap:4px;padding:2px 12px;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center}.tree-row:hover{background:#2d2d2d}.tree-row .caret{width:10px;opacity:.7}.tree-row.file .name{opacity:.85}.tree-row.dir .name{color:#cdd6f4}.pane-frame{display:flex;flex-direction:column;width:100%;height:100%;border:1px solid #2a2a2a;box-sizing:border-box;background:#1e1e1e}.pane-frame.active{border-color:#007acc}.pane-header{height:22px;display:flex;align-items:center;padding:0 8px;font-size:11px;background:#2d2d2d;border-bottom:1px solid #1a1a1a;color:#aaa;-webkit-user-select:none;user-select:none}.pane-header span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pane-header button{margin-left:auto;background:transparent;border:none;color:#aaa;cursor:pointer;font-size:14px;line-height:1}.pane-header button:hover{color:#fff}.pane-content{flex:1 1 0;min-height:0;position:relative}.term-host{position:absolute;top:4px;right:4px;bottom:4px;left:4px}.viewer{position:absolute;top:0;right:0;bottom:0;left:0;margin:0;padding:12px;overflow:auto;font-family:Menlo,Consolas,DejaVu Sans Mono,monospace;font-size:12px;line-height:1.5;color:#d4d4d4;white-space:pre;-moz-tab-size:4;tab-size:4}.viewer-error,.viewer-loading{padding:12px;color:#888;font-size:12px}.viewer-error{color:#d97077}.splitter-h{background:#1a1a1a;cursor:col-resize;width:4px;flex:0 0 auto}.splitter-v{background:#1a1a1a;cursor:row-resize;height:4px;flex:0 0 auto}.login-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:#1e1e1e}.login-form{background:#252526;padding:32px 40px;border:1px solid #1a1a1a;border-radius:8px;display:flex;flex-direction:column;gap:12px;width:320px}.login-form h1{margin:0 0 4px;font-size:18px}.login-form p{margin:0;font-size:12px;opacity:.75}.login-form .hint{opacity:.55;font-size:11px}.login-form input{background:#1e1e1e;color:#d4d4d4;border:1px solid #3c3c3c;border-radius:3px;padding:8px 10px;font-size:13px;font-family:Menlo,Consolas,monospace}.login-form input:focus{outline:none;border-color:#007acc}.login-form button{background:#007acc;color:#fff;border:none;border-radius:3px;padding:8px 12px;font-size:13px;cursor:pointer}.login-form button:hover{background:#1080d0}.editor-wrapper{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column}.editor-status{height:22px;display:flex;align-items:center;padding:0 8px;background:#2d2d2d;border-bottom:1px solid #1a1a1a;font-size:11px;color:#aaa;gap:8px}.editor-status-pill{font-weight:500}.status-clean,.status-saved{color:#6cb87a}.status-dirty{color:#e2c08d}.status-saving{color:#4ec9b0}.status-error{color:#d97077}.editor-hint{opacity:.55;font-size:10.5px}.editor-host{flex:1 1 0;min-height:0;position:relative}.agent-wrapper{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;background:#1e1e1e}.agent-messages{flex:1 1 0;min-height:0;overflow-y:auto;padding:12px 16px}.agent-empty{color:#888;font-size:12.5px;padding:8px 0;line-height:1.5}.agent-msg{margin-bottom:14px;font-size:13px;line-height:1.5}.agent-msg-role{font-size:10.5px;text-transform:uppercase;letter-spacing:.6px;opacity:.6;margin-bottom:4px}.agent-msg-user .agent-msg-content{background:#2a2d36;border:1px solid #1a1a1a;border-radius:4px;padding:8px 10px;white-space:pre-wrap;color:#e0e0e0}.agent-msg-assistant .agent-msg-content{color:#d4d4d4}.agent-msg-assistant .agent-msg-content p{margin:0 0 8px}.agent-msg-assistant .agent-msg-content p:last-child{margin-bottom:0}.agent-msg-assistant .agent-msg-content code{background:#2d2d2d;border-radius:3px;padding:1px 5px;font-family:Menlo,Consolas,monospace;font-size:12px}.agent-msg-assistant .agent-msg-content pre{background:#161616;border:1px solid #1a1a1a;border-radius:4px;padding:10px 12px;overflow-x:auto;margin:8px 0}.agent-msg-assistant .agent-msg-content pre code{background:transparent;padding:0;font-size:12px;line-height:1.5}.agent-msg-assistant .agent-msg-content ul,.agent-msg-assistant .agent-msg-content ol{margin:6px 0;padding-left:22px}.agent-msg-assistant .agent-msg-content a{color:#4ec9b0}.agent-error{background:#3a1f1f;border:1px solid #5c2c2c;color:#f5a3a3;padding:8px 10px;border-radius:4px;font-size:12px;margin:8px 0}.agent-input-row{display:flex;gap:8px;padding:8px 12px;border-top:1px solid #1a1a1a;background:#252526;align-items:flex-end}.agent-input-row textarea{flex:1 1 0;background:#1e1e1e;color:#d4d4d4;border:1px solid #3c3c3c;border-radius:3px;padding:8px 10px;font-size:13px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;resize:none;min-height:40px;max-height:160px}.agent-input-row textarea:focus{outline:none;border-color:#007acc}.agent-input-row button{background:#007acc;color:#fff;border:none;border-radius:3px;padding:8px 14px;font-size:13px;cursor:pointer;min-width:70px}.agent-input-row button:disabled{background:#3c3c3c;color:#777;cursor:not-allowed}.agent-input-row button.agent-stop{background:#a04040}.agent-input-row button.agent-stop:hover{background:#b84747}.agent-thinking{opacity:.5;font-size:16px;letter-spacing:2px}.agent-pill{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:999px;font-size:11.5px;font-family:Menlo,Consolas,monospace;margin:4px 4px 4px 0;background:#2a2d36;border:1px solid #3a3d46;color:#cdd6f4}.agent-pill-running{color:#e2c08d;border-color:#5a4a30;background:#2e2820}.agent-pill-ok{color:#6cb87a;border-color:#2f4a35;background:#1f2a22}.agent-pill-error{color:#d97077;border-color:#4a2c2c;background:#2a1f1f}.agent-pill-icon,.agent-pill-name{font-weight:600}.agent-pill-arg{opacity:.85}.agent-pill-err{opacity:.85;font-style:italic}.agent-loading{padding:16px;color:#888;font-size:12px}.agent-headerbar{height:28px;display:flex;align-items:center;padding:0 10px;background:#2d2d2d;border-bottom:1px solid #1a1a1a;font-size:11px;color:#aaa;gap:8px}.agent-headerbar-title{flex:1 1 auto}.agent-clear{background:transparent;border:1px solid #3c3c3c;color:#aaa;padding:2px 8px;border-radius:3px;font-size:10.5px;cursor:pointer}.agent-clear:hover:not(:disabled){background:#3c3c3c;color:#fff}.agent-clear:disabled{opacity:.4;cursor:not-allowed}.agent-pill-awaiting_approval{color:#e2c08d;border-color:#5a4a30;background:#2e2820}.agent-pill-approving{color:#4ec9b0;border-color:#2a4a48;background:#1e2828}.agent-pill-actions{display:inline-flex;gap:6px;margin-left:8px}.agent-pill-actions button{background:#007acc;color:#fff;border:none;border-radius:3px;padding:2px 9px;font-size:11px;font-family:inherit;cursor:pointer}.agent-pill-actions button.deny{background:#6c3030}.agent-pill-actions button:hover{filter:brightness(1.15)}
