/**
 * 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}.container[data-v-b12cbfca]{display:flex;flex-direction:column;height:100vh;height:100dvh;height:var(--vvh, 100dvh);background:#1e1e1e}.header[data-v-b12cbfca]{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:#252526;border-bottom:1px solid #3c3c3c;font-size:14px}.status[data-v-b12cbfca],.agent-status[data-v-b12cbfca]{display:flex;align-items:center;gap:8px}.status-indicator[data-v-b12cbfca]{width:10px;height:10px;border-radius:50%;background:#f14c4c;transition:background .3s}.status-indicator.online[data-v-b12cbfca]{background:#23d18b}.terminal[data-v-b12cbfca]{flex:1;padding:8px;overflow:hidden}.terminal-view[data-v-b12cbfca]{flex:1;display:flex;flex-direction:column;overflow:hidden}.fn-bar[data-v-b12cbfca]{display:flex;gap:6px;padding:8px 10px;background:#252526;border-top:1px solid #3c3c3c;overflow-x:auto;-webkit-overflow-scrolling:touch;user-select:none;-webkit-user-select:none}.fn-bar button[data-v-b12cbfca]{flex:0 0 auto;min-width:44px;padding:10px 12px;background:#3c3c3c;border:1px solid #555;border-radius:6px;color:#d4d4d4;font-size:14px;font-family:Menlo,monospace;cursor:pointer;touch-action:manipulation}.fn-bar button[data-v-b12cbfca]:active{background:#007acc;border-color:#007acc}.fn-bar button.armed[data-v-b12cbfca]{background:#007acc;border-color:#007acc;color:#fff}.login-overlay[data-v-b12cbfca]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:flex;align-items:center;justify-content:center;background:#1e1e1e}.login-box[data-v-b12cbfca]{display:flex;flex-direction:column;gap:12px;width:min(320px,86vw);padding:28px;background:#252526;border:1px solid #3c3c3c;border-radius:8px}.login-box h1[data-v-b12cbfca]{margin:0;color:#d4d4d4;font-size:17px;text-align:center}.login-box p[data-v-b12cbfca]{margin:0;color:#888;font-size:13px;text-align:center}.login-box input[data-v-b12cbfca]{padding:10px 12px;background:#3c3c3c;border:1px solid #555;border-radius:4px;color:#d4d4d4;font-size:14px;outline:none}.login-box input[data-v-b12cbfca]:focus{border-color:#007acc}.login-box .login-error[data-v-b12cbfca]{color:#f14c4c}.login-box button[data-v-b12cbfca]{padding:10px;background:#007acc;border:none;border-radius:4px;color:#fff;font-size:14px;cursor:pointer}.login-box button[data-v-b12cbfca]:disabled{opacity:.5;cursor:not-allowed}.logout-btn[data-v-b12cbfca]{margin-left:8px;padding:3px 10px;background:transparent;border:1px solid #555;border-radius:4px;color:#888;font-size:12px;cursor:pointer}.logout-btn[data-v-b12cbfca]:hover{color:#d4d4d4;border-color:#888}.view-tabs[data-v-b12cbfca]{display:flex;gap:4px}.view-tabs button[data-v-b12cbfca]{padding:4px 14px;background:transparent;border:1px solid #555;border-radius:4px;color:#888;font-size:13px;cursor:pointer}.view-tabs button.active[data-v-b12cbfca]{background:#007acc;border-color:#007acc;color:#fff}.bridge-list[data-v-b12cbfca],.bridge-chat[data-v-b12cbfca]{flex:1;display:flex;flex-direction:column;overflow:hidden}.bridge-toolbar[data-v-b12cbfca]{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;border-bottom:1px solid #3c3c3c;color:#888;font-size:13px}.bridge-scroll[data-v-b12cbfca]{flex:1;overflow-y:auto;padding:8px}.project-name[data-v-b12cbfca]{padding:10px 8px 4px;color:#888;font-size:12px}.session-item[data-v-b12cbfca]{padding:10px 12px;margin:4px 0;background:#252526;border:1px solid #3c3c3c;border-radius:6px;cursor:pointer}.session-item[data-v-b12cbfca]:active{background:#2d2d30}.session-title[data-v-b12cbfca]{color:#d4d4d4;font-size:14px;margin-bottom:3px}.session-meta[data-v-b12cbfca]{color:#777;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-header[data-v-b12cbfca]{display:flex;align-items:center;gap:10px;padding:10px 14px;background:#252526;border-bottom:1px solid #3c3c3c}.back-btn[data-v-b12cbfca]{padding:4px 10px;background:transparent;border:1px solid #555;border-radius:4px;color:#d4d4d4;font-size:13px;cursor:pointer}.chat-title[data-v-b12cbfca]{color:#d4d4d4;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-messages[data-v-b12cbfca]{flex:1;overflow-y:auto;padding:12px}.msg[data-v-b12cbfca]{margin-bottom:12px;max-width:92%}.msg-role[data-v-b12cbfca]{font-size:11px;color:#777;margin-bottom:2px}.msg-text[data-v-b12cbfca]{padding:8px 12px;border-radius:8px;font-size:14px;line-height:1.5;white-space:pre-wrap;word-break:break-word}.msg-user[data-v-b12cbfca]{margin-left:auto}.msg-user .msg-text[data-v-b12cbfca]{background:#0e5a8a;color:#fff}.msg-assistant .msg-text[data-v-b12cbfca]{background:#252526;border:1px solid #3c3c3c;color:#d4d4d4}.msg-think .msg-text[data-v-b12cbfca]{background:transparent;color:#777;font-size:12px;border-left:2px solid #3c3c3c;border-radius:0}.tool-line[data-v-b12cbfca]{margin:4px 0}.tool-chip[data-v-b12cbfca]{display:inline-block;padding:2px 8px;background:#2d2d30;border-radius:10px;color:#888;font-size:11px;font-family:Menlo,monospace}.turn-divider[data-v-b12cbfca]{margin:14px 0;border-top:1px dashed #3c3c3c}.chat-input[data-v-b12cbfca]{display:flex;gap:8px;padding:10px 12px;background:#252526;border-top:1px solid #3c3c3c}.chat-input input[data-v-b12cbfca]{flex:1;padding:10px 12px;background:#3c3c3c;border:1px solid #555;border-radius:4px;color:#d4d4d4;font-size:14px;outline:none}.chat-input input[data-v-b12cbfca]:focus{border-color:#007acc}.chat-input button[data-v-b12cbfca]{padding:10px 18px;background:#007acc;border:none;border-radius:4px;color:#fff;font-size:14px;cursor:pointer}.send-error[data-v-b12cbfca]{padding:6px 12px;color:#f14c4c;font-size:12px;background:#252526}.empty[data-v-b12cbfca]{padding:24px;color:#777;text-align:center;font-size:13px}@media (max-width: 768px){.header[data-v-b12cbfca]{font-size:12px;padding:8px 12px}.fn-bar[data-v-b12cbfca]{padding:6px 8px;gap:5px}.fn-bar button[data-v-b12cbfca]{min-width:40px;padding:9px 10px;font-size:13px}}
