/**
 * 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;inset: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;inset: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}*,*:before,*:after{box-sizing:border-box}.spinner{width:28px;height:28px;border:3px solid #334155;border-top-color:#3b82f6;border-radius:50%;animation:spin .8s linear infinite}html,body,#app{margin:0;padding:0;height:100%;width:100%;overflow:hidden;touch-action:pan-x pan-y}body{background:#0f172a;color:#e2e8f0;font-family:SF Mono,Fira Code,Cascadia Code,monospace;font-size:14px;overflow:hidden}.layout{display:flex;height:100vh;height:var(--vvh, 100dvh)}.sidebar{width:220px;min-width:180px;background:#1e293b;border-right:1px solid #334155;display:flex;flex-direction:column;overflow-y:auto}.main{flex:1;min-width:0;display:flex;flex-direction:column;overflow:hidden}.sidebar-header{padding:16px;font-size:12px;font-weight:700;color:#94a3b8;letter-spacing:.1em;text-transform:uppercase;border-bottom:1px solid #334155}.server-list{padding:8px 0;flex:1;overflow-y:auto}.server-item{display:flex;align-items:center;gap:7px;width:100%;padding:8px 16px;cursor:pointer;color:#cbd5e1;border-left:3px solid transparent;border-top:none;border-right:none;border-bottom:none;background:none;transition:all .15s;font-size:13px;font-family:inherit;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.server-item:hover{background:#334155;color:#f1f5f9}.server-item.active{background:#1d4ed820;border-left-color:#3b82f6;color:#93c5fd}.server-item.offline{color:#64748b}.server-item-dot{font-size:8px;flex-shrink:0}.server-ctx-menu{background:#1e293b;border:1px solid #334155;border-radius:6px;min-width:148px;box-shadow:0 4px 16px #00000060;z-index:200;overflow:hidden}.server-ctx-item{display:block;width:100%;padding:9px 14px;background:none;border:none;color:#cbd5e1;font-size:13px;font-family:inherit;text-align:left;cursor:pointer}.server-ctx-item:hover{background:#334155}.server-ctx-item-danger{color:#f87171}.server-ctx-item-danger:hover{background:#7f1d1d40}.sidebar-stats{padding:8px 16px;border-top:1px solid #334155;font-size:11px}.sidebar-stats-row{display:flex;justify-content:space-between;margin-bottom:4px}.tab-bar{display:flex;align-items:stretch;background:#0d1117;border-bottom:1px solid #21262d;overflow-x:auto;flex-shrink:0;scrollbar-width:none;min-height:36px}.tab-bar::-webkit-scrollbar{display:none}.tab-wrap{display:flex;align-items:stretch}.tab{padding:0 16px;cursor:pointer;color:#6e7681;border-top:2px solid transparent;border-bottom:2px solid transparent;white-space:nowrap;font-size:12px;font-weight:500;transition:color .12s,background .12s,border-color .12s;background:transparent;border-left:none;border-right:none;display:flex;align-items:center}.tab:hover{color:#c9d1d9;background:#161b22}.tab.active{color:#e6edf3;background:#161b22;border-top-color:#3b82f6;border-bottom-color:transparent}.tab.brain{color:#9e7ff0}.tab.brain.active{color:#c4b5fd;border-top-color:#8b5cf6}.tab.idle:after{content:"●";margin-left:5px;color:#3fb950;font-size:7px;vertical-align:middle}.tab.busy:after{content:"◌";margin-left:5px;color:#e3b341;font-size:7px;vertical-align:middle;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.tab.alert{animation:tab-alert .7s ease-in-out 4}@keyframes tab-alert{0%,to{background:transparent;box-shadow:none}50%{background:#1c3a2a;box-shadow:0 0 10px #3fb95060 inset}}.tab.alert.active{animation:tab-alert-active .7s ease-in-out 4}@keyframes tab-alert-active{0%,to{background:#161b22}50%{background:#1e3a2f;box-shadow:0 0 12px #3fb95070 inset}}.tab-ws-dot{margin-left:6px;font-size:7px;line-height:1;vertical-align:middle;flex-shrink:0}.tab-latency{font-size:9px;font-family:monospace;margin-left:2px;vertical-align:middle}.tab-tool{margin-left:5px;font-size:9px;color:#60a5fa;opacity:.85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:60px;vertical-align:middle}.tab-rename-input{padding:0 10px;height:100%;background:#21262d;border:1px solid #3b82f6;color:#e6edf3;font-family:inherit;font-size:12px;outline:none;width:120px}.tab-add-btn{padding:0 12px;background:none;border:none;color:#4b5563;font-size:16px;cursor:pointer;transition:color .12s;flex-shrink:0;align-self:center;line-height:1}.tab-add-btn:hover{color:#9ca3af}.tab-empty{padding:0 16px;color:#4b5563;font-size:12px;display:flex;align-items:center}.toast-container{position:fixed;bottom:80px;right:16px;z-index:500;display:flex;flex-direction:column;gap:8px;pointer-events:none}.toast{background:#1c2128;border:1px solid #3fb950;border-radius:8px;padding:10px 14px;color:#e6edf3;font-size:13px;display:flex;align-items:center;gap:8px;cursor:pointer;pointer-events:all;box-shadow:0 4px 16px #00000080;animation:toast-in .25s ease;min-width:200px;max-width:280px}.toast:hover{background:#21291f}.toast-notification{border-color:#60a5fa}.toast-notification:hover{background:#1a2033}.toast-notification .toast-icon{color:#60a5fa}.toast-icon{color:#3fb950;font-size:15px;flex-shrink:0}.toast-body{flex:1;font-size:13px}.toast-close{background:none;border:none;color:#6e7681;cursor:pointer;font-size:12px;padding:0 0 0 4px;flex-shrink:0;line-height:1}.toast-close:hover{color:#e6edf3}@keyframes toast-in{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}@media (max-width: 640px){.toast-container{bottom:130px;right:8px;left:8px}.toast{max-width:100%}}.tab-context-menu{position:fixed;background:#1c2128;border:1px solid #30363d;border-radius:6px;min-width:150px;box-shadow:0 8px 24px #00000080;z-index:100;overflow:hidden}.menu-divider{height:1px;background:#21262d;margin:2px 0}.terminal-container{flex:1;min-height:0;overflow:hidden;background:#0f0f13}.xterm-viewport{scrollbar-width:none}.xterm-viewport::-webkit-scrollbar{display:none}.term-scroll-track{position:absolute;right:2px;top:4px;bottom:4px;width:4px;border-radius:2px;background:#ffffff10;opacity:1;transition:opacity .3s;pointer-events:none;z-index:5}.term-scroll-thumb{position:absolute;width:100%;height:24px;border-radius:2px;background:#64748b;transform:translateY(-50%)}.term-scroll-bottom{position:absolute;right:12px;bottom:12px;width:32px;height:32px;border-radius:50%;background:#1e293bee;border:1px solid #475569;color:#93c5fd;font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:5;transition:background .15s,transform .15s;box-shadow:0 2px 8px #00000060;line-height:1}.term-scroll-bottom:hover{background:#334155;transform:scale(1.1)}.term-scroll-bottom:active{transform:scale(.95)}.controls-wrapper{background:#1e293b;border-top:1px solid #334155;flex-shrink:0}@keyframes scan-sweep{0%{left:-60%}to{left:130%}}.controls-wrapper{position:relative}.controls-wrapper-running:before{content:"";position:absolute;top:-1px;left:-60%;width:60%;height:2px;background:linear-gradient(90deg,transparent,#00e5ff,#818cf8,#00e5ff,transparent);animation:scan-sweep 3s linear infinite;z-index:1}.shortcuts-row{display:flex;align-items:center;border-bottom:1px solid #1e3250}.shortcuts{display:flex;gap:4px;padding:4px 8px;overflow-x:auto;scrollbar-width:none;flex:1;min-width:0}.shortcuts::-webkit-scrollbar{display:none}.shortcuts-model{padding:4px 8px 4px 0;flex-shrink:0;position:relative}.session-ctx-wrap{display:flex;align-items:center;gap:4px;padding:4px 8px 4px 0;flex-shrink:0;cursor:default}.session-ctx-label{font-size:10px;color:#64748b;white-space:nowrap}.session-ctx-bar{position:relative;width:60px;height:4px;background:#1e293b;border-radius:2px;overflow:hidden}.session-ctx-input{position:absolute;left:0;top:0;height:100%;background:#34d399;border-radius:2px}.session-ctx-cache{position:absolute;left:0;top:0;height:100%;background:#818cf8;border-radius:2px}.shortcut-btn{flex-shrink:0;padding:4px 8px;background:#0f172a;border:1px solid #334155;border-radius:4px;color:#94a3b8;font-size:11px;font-family:inherit;cursor:pointer;transition:all .1s;white-space:nowrap}.shortcut-btn:hover:not(:disabled){background:#1e3a5f;border-color:#3b82f6;color:#93c5fd}.shortcut-btn:disabled{opacity:.4;cursor:default}.shortcut-btn-wide{padding-left:14px;padding-right:14px}.controls{padding:6px 8px;display:flex;gap:6px;align-items:center}.controls-input{flex:1;min-width:0;background:#0f172a;border:1px solid #334155;color:#e2e8f0;padding:6px 10px;border-radius:4px;font-family:inherit;font-size:13px;outline:none;overflow-y:auto;min-height:32px;max-height:120px;line-height:1.45;word-break:break-word;white-space:pre-wrap;text-align:left!important;direction:ltr;-webkit-user-modify:read-write-plaintext-only}.controls-input:focus{border-color:#3b82f6}.controls-input-disabled{opacity:.4;pointer-events:none}.controls-input:empty:before{content:attr(data-placeholder);color:#475569;pointer-events:none}.menu-wrap{position:relative}.menu-dropdown{position:absolute;bottom:calc(100% + 4px);right:0;background:#1e293b;border:1px solid #334155;border-radius:6px;min-width:140px;box-shadow:0 4px 16px #00000060;z-index:50;overflow:hidden}.menu-item{display:block;width:100%;padding:9px 14px;background:none;border:none;color:#cbd5e1;font-size:13px;font-family:inherit;text-align:left;cursor:pointer;transition:background .1s}.menu-item:hover{background:#334155}.menu-item-warn{color:#fbbf24;background:#292005!important}.menu-item-warn:hover{background:#3a2e07!important}.menu-item-danger{color:#f87171;background:#1f0808!important}.menu-item-danger:hover{background:#2d0e0e!important}.menu-item-active{color:#a78bfa;background:#1e1338!important}.menu-item-active:hover{background:#2a1b4e!important}.btn{padding:6px 12px;border-radius:4px;border:none;cursor:pointer;font-size:12px;font-family:inherit;font-weight:600;transition:all .15s}.btn-primary{background:#3b82f6;color:#fff}.btn-primary:hover{background:#2563eb}.btn-danger{background:#ef4444;color:#fff}.btn-danger:hover{background:#dc2626}.btn-secondary{background:#334155;color:#cbd5e1}.btn-secondary:hover{background:#475569}.qp-trigger-wrap{position:relative;flex-shrink:0}.qp-trigger{padding:6px 9px;background:#0f172a;border:1px solid #334155;border-radius:4px;color:#fbbf24;font-size:14px;cursor:pointer;line-height:1;transition:all .1s;flex-shrink:0}.qp-trigger:hover{background:#1e3a5f;border-color:#fbbf24}.qp-backdrop{display:none}.qp{position:absolute;bottom:calc(100% + 6px);left:0;width:min(75vw,1050px);max-height:65vh;background:#1e293b;border:1px solid #334155;border-radius:8px;box-shadow:0 8px 24px #00000070;z-index:45;display:flex;flex-direction:column;overflow:hidden}.qp-toolbar{display:flex;gap:6px;padding:8px 10px;border-bottom:1px solid #334155;flex-shrink:0}.qp-toolbar-btn{padding:4px 10px;background:#0f172a;border:1px solid #334155;border-radius:4px;color:#94a3b8;font-size:11px;font-family:inherit;cursor:pointer;transition:all .1s}.qp-toolbar-btn:hover{background:#1e3a5f;border-color:#3b82f6;color:#93c5fd}.qp-toolbar-btn-danger{color:#f87171;border-color:#7f1d1d;background:#1f0808;margin-left:auto}.qp-toolbar-btn-danger:hover{background:#2d0e0e;border-color:#ef4444;color:#fca5a5}.qp-add-row{display:flex;align-items:center;gap:6px;padding:8px 10px;border-bottom:1px solid #334155;flex-shrink:0}.qp-add-label{font-size:11px;color:#64748b;flex-shrink:0}.qp-add-input{flex:1;min-width:0;background:#0f172a;border:1px solid #334155;color:#e2e8f0;padding:4px 8px;border-radius:4px;font-size:12px;font-family:inherit;outline:none}.qp-add-input:focus{border-color:#3b82f6}.qp-add-confirm{padding:4px 8px;background:#1d4ed8;border:none;border-radius:4px;color:#fff;font-size:13px;cursor:pointer}.qp-add-confirm:hover{background:#2563eb}.qp-add-cancel{padding:4px 6px;background:none;border:none;color:#64748b;font-size:13px;cursor:pointer}.qp-add-cancel:hover{color:#f87171}.qp-list{flex:1;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#334155 transparent}.qp-section-header{padding:6px 10px 3px;font-size:10px;font-weight:700;color:#475569;letter-spacing:.08em;text-transform:uppercase;position:sticky;top:0;background:#1e293b;z-index:1}.qp-history-empty{padding:6px 10px 8px;font-size:11px;color:#475569;font-style:italic}.qp-history-header{display:flex;align-items:center;justify-content:space-between;padding-right:8px}.qp-scope-toggle{display:flex;gap:2px}.qp-scope-btn{padding:2px 8px;background:none;border:1px solid #334155;border-radius:3px;color:#475569;font-size:10px;font-family:inherit;cursor:pointer;transition:all .1s}.qp-scope-btn.active{background:#1e3a5f;border-color:#3b82f6;color:#93c5fd}.qp-scope-btn:not(.active):hover{border-color:#475569;color:#94a3b8}.qp-pills{display:flex;flex-wrap:wrap;gap:5px;padding:5px 10px 8px}.qp-pill{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;font-size:12px;font-family:inherit;cursor:pointer;transition:all .1s;white-space:nowrap;border:1px solid}.qp-pill-default{background:#0f172a;border-color:#334155;color:#94a3b8}.qp-pill-default:hover{background:#1e3a5f;border-color:#3b82f6;color:#93c5fd}.qp-pill-custom{background:#1e293b;border-color:#475569;color:#cbd5e1;display:inline-flex;align-items:center;border-radius:999px;overflow:hidden;padding:0}.qp-pill-text{padding:4px 8px 4px 10px;font-size:12px;cursor:pointer}.qp-pill-text:hover{background:#334155}.qp-pill-del{padding:4px 7px 4px 4px;background:none;border:none;color:#475569;font-size:10px;cursor:pointer;transition:color .1s}.qp-pill-del:hover{color:#f87171}.qp-item{display:flex;align-items:flex-start;gap:6px;padding:5px 10px;cursor:pointer;transition:background .1s}.qp-item:hover{background:#293548}.qp-item-history{opacity:.8}.qp-item-history:hover{opacity:1;background:#293548}.qp-item-text{flex:1;min-width:0;font-size:12px;color:#94a3b8;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word;line-height:1.5}.qp-item-del{flex-shrink:0;padding:2px 5px;margin-top:1px;background:none;border:none;color:#3f4f63;font-size:10px;cursor:pointer;border-radius:3px;transition:all .1s}.qp-item-del:hover{color:#f87171}.qp-empty{padding:12px;font-size:12px;color:#475569;text-align:center}.qp-pagination{display:flex;align-items:center;justify-content:center;gap:10px;padding:5px 10px;border-top:1px solid #1e3250;flex-shrink:0}.qp-page-btn{padding:3px 10px;background:#0f172a;border:1px solid #334155;border-radius:4px;color:#64748b;font-size:11px;font-family:inherit;cursor:pointer;transition:all .1s}.qp-page-btn:hover:not(:disabled){border-color:#3b82f6;color:#93c5fd}.qp-page-btn:disabled{opacity:.3;cursor:default}.qp-page-info{font-size:11px;color:#475569}@media (max-width: 640px){.qp-backdrop{display:block;position:fixed;inset:0;background:#00000070;z-index:44}.qp{position:fixed;bottom:0;left:0;right:0;width:100%;max-height:60vh;border-radius:12px 12px 0 0;border-bottom:none}}.login-page{display:flex;align-items:center;justify-content:center;height:100vh;height:100dvh}.login-card{background:#1e293b;border:1px solid #334155;border-radius:8px;padding:32px;width:360px;max-width:calc(100vw - 32px)}.login-card h1{margin:0 0 24px;font-size:20px;color:#f1f5f9}.form-group{margin-bottom:16px}.form-group label{display:block;margin-bottom:6px;font-size:12px;color:#94a3b8}.form-group input{width:100%;background:#0f172a;border:1px solid #334155;color:#e2e8f0;padding:8px 12px;border-radius:4px;font-family:inherit;font-size:14px;outline:none}.form-group input:focus{border-color:#3b82f6}.login-card .btn{width:100%;padding:10px}.badge{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:9999px;font-size:11px;font-weight:600}.badge-online{background:#14532d;color:#4ade80}.badge-offline{background:#1f1f1f;color:#64748b}.badge-error{background:#450a0a;color:#f87171}.agent-badge{display:inline-flex;align-items:center;justify-content:center;padding:1px 4px;border-radius:3px;font-size:9px;font-weight:700;color:#fff;margin-right:5px;letter-spacing:.03em;flex-shrink:0}.mobile-server-bar{display:none}@media (max-width: 640px){.sidebar{display:none}.mobile-server-bar{display:flex;align-items:center;justify-content:space-between;padding:4px 10px;background:#1e293b;border-bottom:1px solid #334155;flex-shrink:0;position:relative;z-index:20}.mobile-server-switcher-wrap{position:relative}.mobile-server-btn{background:none;border:none;color:#94a3b8;font-family:inherit;font-size:12px;cursor:pointer;padding:4px 0}.mobile-server-btn:active{color:#e2e8f0}.mobile-server-menu{position:absolute;top:calc(100% + 4px);left:0;background:#1e293b;border:1px solid #334155;border-radius:6px;min-width:180px;box-shadow:0 8px 24px #00000080;z-index:50;overflow:hidden}.mobile-server-menu-item{display:block;width:100%;padding:10px 14px;background:none;border:none;color:#cbd5e1;font-size:13px;font-family:inherit;text-align:left;cursor:pointer}.mobile-server-menu-item:hover,.mobile-server-menu-item:active{background:#334155}.mobile-server-menu-item.active{color:#93c5fd;background:#1d4ed820}.controls{padding:6px 8px;gap:6px}.controls-input{font-size:16px}.btn{padding:8px 10px;font-size:13px}}.chat-view-wrap{flex:1;position:relative;overflow:hidden}.chat-view{height:100%;overflow-y:auto;overflow-x:hidden;padding:8px 12px;display:flex;flex-direction:column;gap:2px}.chat-event{margin:2px 0;min-width:0}.chat-user{background:#1e3a5f;border-radius:8px;padding:6px 12px;align-self:flex-end;max-width:80%;width:fit-content;text-align:left;word-break:break-all;overflow-wrap:break-word}.chat-user.chat-pending{background:#1e3a5f80;color:#94a3b8}.chat-assistant{padding:4px 0;word-break:break-word;overflow-wrap:break-word;line-height:1.5}.chat-rich-text{white-space:pre-wrap}.chat-code-block{background:#1a1a2e;border-radius:8px;margin:8px 0;overflow:hidden}.chat-code-block pre{margin:0;padding:12px;overflow-x:auto;-webkit-overflow-scrolling:touch;font-size:13px;line-height:1.4}.chat-code-block code{font-family:Cascadia Code,Fira Code,SF Mono,monospace;color:#e2e8f0}.chat-code-lang{background:#2a2a4a;color:#94a3b8;font-size:11px;padding:4px 12px;font-family:sans-serif}.chat-inline-code{background:#1e293b;color:#93c5fd;padding:1px 5px;border-radius:3px;font-family:Cascadia Code,Fira Code,SF Mono,monospace;font-size:.9em}.chat-tool{color:#94a3b8;font-size:14px;line-height:1.6;min-height:28px;padding:6px 10px;background:#1e293b;border-radius:6px;border-left:3px solid #3b82f6;overflow:visible;white-space:normal;word-break:break-all;flex-shrink:0}.chat-tool-icon{margin-right:6px;font-weight:700;color:#60a5fa;font-size:14px}.chat-tool-name{color:#c4b5fd;font-weight:600;margin-right:6px;font-size:14px}.chat-tool-input{color:#94a3b8;font-size:13px}.chat-tool-group{display:flex;flex-direction:column;gap:2px}.chat-tool-group .chat-event{margin:0}.chat-tool-group-indent{margin-left:6px;display:flex;flex-direction:column;gap:2px}.chat-tool-fold-btn{background:none;border:1px dashed #334155;color:#64748b;font-size:11px;padding:2px 10px;cursor:pointer;border-radius:4px;text-align:center}.chat-tool-fold-btn:hover{color:#94a3b8;border-color:#475569}.chat-mode{display:inline-block;background:#1e1338;color:#a78bfa;padding:2px 8px;border-radius:4px;font-size:11px}.chat-system{text-align:center;color:#475569;font-size:11px;padding:4px 0}.chat-loading{text-align:center;color:#475569;padding:24px}.chat-refreshing{text-align:center;color:#475569;font-size:11px;padding:4px 0;flex-shrink:0}.chat-thinking-bar{color:#94a3b8;font-size:12px;padding:6px 16px;background:#1e293b;border-top:1px solid #334155;flex-shrink:0}.chat-thinking-dots{animation:thinking-pulse 1.2s ease-in-out infinite;letter-spacing:2px}.chat-thinking{padding:2px 0}.chat-thinking-toggle{display:flex;align-items:center;gap:6px;background:none;border:none;color:#64748b;cursor:pointer;font-family:inherit;font-size:12px;padding:3px 0;text-align:left;width:100%;transition:color .15s}.chat-thinking-toggle.no-text{cursor:default}.chat-thinking-toggle:not(.no-text):hover{color:#94a3b8}.chat-thinking-dot{font-size:13px;color:#818cf8;transition:color .3s}.chat-thinking-dot.done{color:#475569}.chat-thinking-label{color:#64748b;font-size:12px;font-style:italic}.chat-thinking-text{display:block;margin-top:4px;font-style:italic;line-height:1.5;white-space:pre-wrap;word-break:break-word;color:#64748b}@keyframes thinking-pulse{0%,to{opacity:.3}50%{opacity:1}}.chat-bubble-content{white-space:pre-wrap;word-break:break-word}.chat-bubble-time{font-size:10px;color:#64748b;margin-top:2px}.chat-scroll-btn{position:absolute;bottom:12px;right:12px;width:36px;height:36px;border-radius:50%;background:#334155;color:#e2e8f0;border:1px solid #475569;cursor:pointer;font-size:16px;display:flex;align-items:center;justify-content:center;z-index:10;box-shadow:0 2px 8px #0000004d}.chat-scroll-btn:hover{background:#475569}.chat-snapshot-toggle{background:none;border:none;color:#64748b;cursor:pointer;font-size:11px;font-family:inherit;padding:2px 4px}.chat-snapshot-toggle:hover{color:#94a3b8}.chat-snapshot-content{background:#1e293b;border-radius:4px;padding:8px;font-size:11px;overflow-x:auto;max-height:200px;margin-top:4px}.view-toggle{background:none;border:1px solid #475569;color:#e2e8f0;border-radius:4px;padding:4px 8px;cursor:pointer;font-size:14px}.view-toggle:hover{background:#334155}.desktop-view-toggle{display:flex;justify-content:flex-end;padding:2px 8px;background:#0f172a}.desktop-view-toggle .view-toggle{font-size:12px;padding:2px 8px}.subcard-bar{background:#0d1117;border-top:1px solid #1e293b;flex-shrink:0}.subcard-toolbar{display:flex;align-items:center;gap:6px;padding:4px 8px}.subcard-toolbar-btn{background:none;border:1px solid #334155;border-radius:4px;color:#64748b;cursor:pointer;font-size:12px;padding:2px 6px;transition:all .12s}.subcard-toolbar-btn:hover{border-color:#475569;color:#94a3b8}.subcard-toolbar-btn-active{border-color:#3b82f6!important;color:#93c5fd!important;background:#1e3a5f}.subcard-size-panel{display:flex;align-items:center;gap:8px;padding:4px 8px;flex-wrap:wrap}.subcard-size-label{font-size:11px;color:#475569}.subcard-size-field{display:flex;align-items:center;gap:4px;font-size:11px;color:#64748b}.subcard-size-input{width:56px;background:#0f172a;border:1px solid #334155;border-radius:4px;color:#e2e8f0;padding:2px 6px;font-size:12px;font-family:inherit;outline:none}.subcard-size-input:focus{border-color:#3b82f6}.subcard-toolbar-label{font-size:11px;color:#475569}.daemon-stats-inline{font-size:11px;margin-left:8px;white-space:nowrap}.subcard-toolbar-add{background:none;border:1px dashed #475569;border-radius:4px;color:#64748b;cursor:pointer;font-size:16px;padding:0 8px;margin-left:auto;transition:all .12s}.subcard-toolbar-add:hover{border-color:#3b82f6;color:#93c5fd}.subcard-scroll{padding:6px 8px;gap:10px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#334155 transparent}.subcard-scroll::-webkit-scrollbar{height:4px}.subcard-scroll::-webkit-scrollbar-thumb{background:#334155;border-radius:2px}.subcard-single{display:flex;flex-wrap:nowrap}.subcard-double{display:grid;grid-template-rows:repeat(2,auto);grid-auto-flow:column;grid-auto-columns:350px}.subcard-drag-wrap{flex-shrink:0;cursor:grab;transition:opacity .15s}.subcard-drag-wrap:active{cursor:grabbing}.subcard{width:350px;height:250px;min-width:350px;background:#0f1117;border:1px solid #334155;border-radius:8px;overflow:hidden;cursor:pointer;transition:border-color .15s,box-shadow .15s;display:flex;flex-direction:column}.subcard:hover{border-color:#475569;box-shadow:0 2px 12px #0006}.subcard-open{border-color:#3b82f6;box-shadow:0 0 8px #3b82f64d}@keyframes subcard-sci-fi{0%{border-color:#334155;box-shadow:0 0 4px #00e5ff22}40%{border-color:#00e5ff;box-shadow:0 0 12px #00e5ff88,0 0 24px #00e5ff33}70%{border-color:#818cf8;box-shadow:0 0 12px #818cf888,0 0 24px #818cf833}to{border-color:#334155;box-shadow:0 0 4px #00e5ff22}}.subcard-running-pulse{animation:subcard-sci-fi 3.6s ease-in-out infinite;transition:border-color 0s,box-shadow 0s}.subcard-header{display:flex;align-items:center;gap:6px;padding:5px 10px;background:#1a2233;border-bottom:1px solid #1e293b;flex-shrink:0;font-size:12px;color:#94a3b8}.subcard-icon{font-size:13px}.subcard-label{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.subcard-badge{font-size:10px;color:#f59e0b}.subcard-running{font-size:8px;color:#4ade80}.subcard-model{font-size:9px;color:#a78bfa;background:#1e1b4b;border-radius:3px;padding:0 3px;flex-shrink:0;line-height:14px}.subcard-ctx-bar{position:relative;width:32%;height:4px;background:#1e293b;border-radius:2px;overflow:hidden;flex-shrink:0}.subcard-ctx-input{position:absolute;left:0;top:0;height:100%;background:#34d399;border-radius:2px}.subcard-ctx-cache{position:absolute;left:0;top:0;height:100%;background:#818cf8;border-radius:2px}.subcard-preview{flex:1;overflow:hidden;pointer-events:none;display:flex;flex-direction:column}.subcard-resize-handle{position:absolute;top:0;right:0;width:6px;height:100%;cursor:ew-resize;background:transparent;z-index:10;transition:background .15s}.subcard-resize-handle:hover{background:#3b82f666}.subsession-bar{display:flex;flex-wrap:wrap;gap:6px;padding:8px 10px;background:#0d1117;border-top:1px solid #1e293b}.subsession-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:52px;min-height:52px;padding:6px 10px;background:#1a2233;border:1px solid #334155;border-radius:8px;color:#94a3b8;cursor:pointer;font-family:inherit;font-size:11px;transition:all .15s}.subsession-card:hover,.subsession-card.open{border-color:#3b82f6;background:#1e3a5f;color:#93c5fd}.subsession-card-icon{font-size:13px;font-weight:700;letter-spacing:-.5px;line-height:1}.subsession-card-label{font-size:10px;color:#64748b}.subsession-card.open .subsession-card-label{color:#93c5fd}.subsession-card-badge{font-size:10px;color:#f59e0b}.subsession-window{display:flex;flex-direction:column;background:#0f1117;border:1px solid #334155;border-radius:8px;box-shadow:0 8px 32px #0009;overflow:hidden;min-width:300px;min-height:200px}.subsession-header{display:flex;align-items:center;gap:8px;padding:6px 10px;background:#1a2233;border-bottom:1px solid #1e293b;cursor:move;user-select:none;flex-shrink:0}.subsession-drag-icon{color:#475569;font-size:16px;cursor:grab}.subsession-title{font-size:12px;color:#94a3b8;font-weight:600;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.subsession-mode-btn{background:none;border:1px solid transparent;border-radius:4px;color:#64748b;cursor:pointer;font-size:13px;padding:2px 5px;transition:all .15s}.subsession-mode-btn:hover{border-color:#475569;color:#94a3b8}.subsession-mode-btn.active{border-color:#3b82f6;color:#93c5fd;background:#1e3a5f}.subsession-minimize-btn{background:none;border:none;color:#64748b;cursor:pointer;font-size:14px;padding:0 4px;line-height:1;transition:color .15s}.subsession-minimize-btn:hover{color:#94a3b8}.subsession-close-btn{background:none;border:none;color:#64748b;cursor:pointer;font-size:16px;padding:0 4px;line-height:1;transition:color .15s}.subsession-close-btn:hover{color:#ef4444}.subsession-close-confirm-label{font-size:11px;color:#f87171;padding:0 2px}.subsession-content{flex:1;display:flex;flex-direction:column;overflow:hidden}.session-usage-footer{flex-shrink:0;padding:4px 10px 3px;background:#0f1117;border-top:1px solid #1e293b}.session-ctx-bar{position:relative;width:100%;height:5px;background:#1e293b;border-radius:3px;overflow:hidden;margin-bottom:3px}.session-ctx-input{position:absolute;left:0;top:0;height:100%;background:#34d399;border-radius:3px}.session-ctx-cache{position:absolute;left:0;top:0;height:100%;background:#818cf8;border-radius:3px}.session-usage-stats{display:flex;justify-content:space-between;font-size:10px;color:#475569}.session-usage-tokens{color:#64748b}.session-usage-cost{color:#94a3b8}.session-thinking-inline{color:#818cf8;font-style:italic;margin-left:auto;padding-left:8px}.subsession-input-bar{display:flex;gap:6px;padding:6px 8px;background:#0d1117;border-top:1px solid #1e293b;flex-shrink:0}.subsession-input{flex:1;background:#1e293b;border:1px solid #334155;border-radius:6px;color:#e2e8f0;font-family:inherit;font-size:13px;padding:5px 10px;outline:none}.subsession-input:focus{border-color:#3b82f6}.subsession-send-btn{flex-shrink:0;font-size:12px;padding:4px 12px}.resize-handle{position:absolute;z-index:10}.resize-n{top:0;left:8px;right:8px;height:4px;cursor:n-resize}.resize-s{bottom:0;left:8px;right:8px;height:4px;cursor:s-resize}.resize-e{right:0;top:8px;bottom:8px;width:4px;cursor:e-resize}.resize-w{left:0;top:8px;bottom:8px;width:4px;cursor:w-resize}.resize-ne{top:0;right:0;width:12px;height:12px;cursor:ne-resize}.resize-nw{top:0;left:0;width:12px;height:12px;cursor:nw-resize}.resize-se{bottom:0;right:0;width:12px;height:12px;cursor:se-resize}.resize-sw{bottom:0;left:0;width:12px;height:12px;cursor:sw-resize}.subsession-type-btn{display:flex;align-items:center;gap:6px;padding:8px 12px;background:#1e293b;border:1px solid #334155;border-radius:6px;color:#94a3b8;cursor:pointer;font-size:13px;font-family:inherit;transition:all .15s}.subsession-type-btn:hover{background:#253348;border-color:#475569;color:#e2e8f0}.subsession-type-btn.active{background:#1e3a5f;border-color:#3b82f6;color:#93c5fd}.discussion-participant-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:6px 8px;background:#0f172a;border:1px solid #1e293b;border-radius:6px}.discussion-verdict-badge{font-size:14px;margin-left:2px;flex-shrink:0}.discussion-panel{display:flex;flex-direction:column;gap:8px;padding:8px}.discussion-card{background:#0f172a;border:1px solid #1e293b;border-radius:6px;padding:10px}.discussion-card.running{border-color:#22c55e40}.discussion-card.verdict{border-color:#f59e0b40}.discussion-card.done{border-color:#3b82f640}.discussion-card.failed{border-color:#ef444440}.discussion-card-header{display:flex;justify-content:space-between;align-items:center;gap:8px}.discussion-card-title{font-size:13px;font-weight:500;color:#e2e8f0;flex:1}.discussion-card-actions{flex-shrink:0}.discussion-card-body{margin-top:8px}.discussion-status{font-size:12px;color:#94a3b8}.discussion-status.done{color:#22c55e}.discussion-status.failed{color:#ef4444}.discussion-progress-bar{height:4px;background:#1e293b;border-radius:2px;overflow:hidden;margin-bottom:6px}.discussion-progress-fill{height:100%;background:#22c55e;border-radius:2px;transition:width .3s ease}.discussion-conclusion{font-size:12px;color:#94a3b8;margin-top:6px;line-height:1.5;border-top:1px solid #1e293b;padding-top:6px;max-height:100px;overflow-y:auto}.discussion-filepath{font-size:11px;color:#64748b;margin-top:4px;font-family:monospace}.discussions-page{display:flex;flex-direction:column;height:100%;background:#0a0e1a;color:#e2e8f0}.discussions-header{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid #1e293b}.discussions-header h2{margin:0;font-size:16px;flex:1}.discussions-layout{display:flex;flex:1;overflow:hidden}.discussions-list{width:320px;min-width:280px;border-right:1px solid #1e293b;overflow-y:auto}.discussions-list-item{padding:12px 16px;border-bottom:1px solid #1e293b10;cursor:pointer;transition:background .15s}.discussions-list-item:hover{background:#1e293b60}.discussions-list-item.active{background:#1e293b;border-left:3px solid #3b82f6}.discussions-list-item.live,.discussions-list-item.active.live{border-left:3px solid #22c55e}.discussions-list-topic{font-size:14px;font-weight:500;margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.discussions-list-meta{font-size:12px;color:#64748b;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.discussions-list-state{font-weight:500;display:flex;align-items:center;gap:4px}.discussions-list-time{margin-left:auto}.discussions-pulse{width:6px;height:6px;border-radius:50%;background:#22c55e;animation:pulse-glow 1.5s ease-in-out infinite}@keyframes pulse-glow{0%,to{opacity:1}50%{opacity:.4}}.discussions-empty{padding:40px 20px;text-align:center;color:#64748b;font-size:14px}.discussions-detail{flex:1;overflow-y:auto;display:flex;flex-direction:column}.discussions-detail-header{padding:16px;border-bottom:1px solid #1e293b}.discussions-detail-header h3{margin:0 0 8px;font-size:16px}.discussions-detail-meta{font-size:13px;color:#94a3b8;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.discussions-detail-participants{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}.discussions-participant-tag{background:#1e293b;padding:2px 8px;border-radius:4px;font-size:11px;color:#94a3b8}.discussions-progress-bar{height:4px;background:#1e293b;border-radius:2px;overflow:hidden;margin-top:10px}.discussions-progress-fill{height:100%;background:#22c55e;border-radius:2px;transition:width .5s ease}.discussions-rounds{flex:1;padding:16px;display:flex;flex-direction:column;gap:16px}.discussions-round{background:#0f172a;border:1px solid #1e293b;border-radius:8px;padding:14px}.discussions-round-header{display:flex;align-items:center;gap:10px;margin-bottom:8px;font-size:13px}.discussions-round-agent{color:#64748b;font-size:11px}.discussions-round-num{margin-left:auto;color:#475569;font-size:11px}.discussions-round-body{font-size:13px;line-height:1.6;color:#cbd5e1;white-space:pre-wrap;word-break:break-word}.discussions-conclusion{margin:0 16px 16px;background:#172337;border:1px solid #22c55e40;border-radius:8px;padding:14px}.discussions-conclusion-label{font-size:13px;font-weight:600;color:#22c55e;margin-bottom:8px}.discussions-conclusion-text{font-size:13px;line-height:1.6;color:#e2e8f0;white-space:pre-wrap}.discussions-file-content{margin:0 16px 16px}.discussions-file-content summary{font-size:13px;color:#94a3b8;cursor:pointer;padding:8px}.discussions-file-content pre{background:#0f172a;border:1px solid #1e293b;border-radius:6px;padding:12px;font-size:12px;color:#94a3b8;overflow-x:auto;white-space:pre-wrap;max-height:400px;overflow-y:auto}@media (max-width: 768px){.discussions-layout{flex-direction:column}.discussions-list{width:100%;max-height:40vh;border-right:none;border-bottom:1px solid #1e293b}}.ask-dialog-overlay{position:fixed;inset:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:9999;padding:16px}.ask-dialog{background:#1e293b;border:1px solid #334155;border-radius:12px;padding:20px;width:100%;max-width:480px;max-height:80vh;overflow-y:auto;display:flex;flex-direction:column;gap:16px}.ask-question-block{display:flex;flex-direction:column;gap:8px}.ask-header{font-size:11px;font-weight:600;color:#818cf8;text-transform:uppercase;letter-spacing:.05em}.ask-question{font-size:14px;color:#e2e8f0;line-height:1.5}.ask-options{display:flex;flex-direction:column;gap:6px}.ask-option{display:flex;flex-direction:column;gap:2px;padding:8px 10px;border-radius:8px;border:1px solid #334155;cursor:pointer;transition:border-color .15s}.ask-option input{display:none}.ask-option-selected{border-color:#818cf8;background:#818cf810}.ask-option-label{font-size:13px;color:#e2e8f0}.ask-option-desc{font-size:11px;color:#64748b}.ask-custom-input{background:#0f172a;border:1px solid #334155;border-radius:8px;padding:8px 12px;color:#e2e8f0;font-size:13px;outline:none}.ask-custom-input:focus{border-color:#818cf8}.ask-actions{display:flex;gap:8px;justify-content:flex-end;padding-top:4px}.ask-btn-cancel{background:transparent;border:1px solid #334155;border-radius:8px;padding:8px 16px;color:#64748b;font-size:13px;cursor:pointer}.ask-btn-submit{background:#818cf8;border:none;border-radius:8px;padding:8px 16px;color:#fff;font-size:13px;font-weight:600;cursor:pointer}.ask-btn-submit:hover{background:#6366f1}.lang-switcher{background:#1e293b;border:1px solid #334155;color:#94a3b8;cursor:pointer;font-size:11px;padding:2px 4px;border-radius:4px;transition:all .15s;font-family:inherit;max-width:120px}.lang-switcher:hover{border-color:#64748b;color:#e2e8f0}.fb-overlay{position:fixed;inset:0;z-index:1000;background:#0000008c;display:flex;align-items:center;justify-content:center}.fb-modal{background:#1e293b;border:1px solid #334155;border-radius:10px;width:min(92vw,520px);max-height:80vh;display:flex;flex-direction:column;box-shadow:0 8px 32px #00000080;overflow:hidden}.fb-panel{display:flex;flex-direction:column;height:100%;overflow:hidden}.fb-header{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;border-bottom:1px solid #334155;font-weight:600;font-size:13px;flex-shrink:0}.fb-close{background:none;border:none;color:#94a3b8;cursor:pointer;font-size:15px;line-height:1;padding:2px 4px}.fb-close:hover{color:#e2e8f0}.fb-breadcrumb{display:flex;align-items:center;gap:8px;padding:6px 12px;border-bottom:1px solid #1e293b;font-size:11px;color:#64748b;font-family:monospace;overflow:hidden;flex-shrink:0}.fb-breadcrumb-path{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.fb-error-inline{color:#f87171;font-size:11px;flex-shrink:0}.fb-tree{flex:1;overflow-y:auto;padding:4px 0;min-height:0}.fb-footer{display:flex;align-items:center;gap:8px;padding:8px 12px;border-top:1px solid #334155;flex-shrink:0;flex-wrap:wrap}.fb-hidden-toggle{display:flex;align-items:center;gap:4px;font-size:11px;color:#64748b;cursor:pointer;user-select:none}.fb-count{font-size:11px;color:#94a3b8}.fb-node{display:flex;align-items:center;gap:4px;padding:3px 8px;cursor:pointer;font-size:13px;user-select:none;transition:background .1s;min-height:26px}.fb-node:hover{background:#ffffff0d}.fb-node.selected{background:#6366f133}.fb-node.already{opacity:.7}.fb-node.disabled{cursor:default;opacity:.4}.fb-node-check{flex-shrink:0;cursor:pointer;accent-color:#6366f1}.fb-node-expand{font-size:10px;color:#64748b;width:10px;flex-shrink:0}.fb-node-icon{font-size:13px;flex-shrink:0}.fb-node-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.fb-node-badge{font-size:10px;color:#6366f1;flex-shrink:0}.fb-node-empty{font-size:11px;color:#475569;padding:2px 8px}.fb-body{display:flex;flex:1;min-height:0;overflow:hidden}.fb-body-split .fb-tree{flex:0 0 38%;min-width:180px;max-width:260px;border-right:1px solid #334155;overflow-y:auto}.fb-body-split .fb-preview{flex:1;display:flex;flex-direction:column;min-width:0;overflow:hidden}.fb-tree-split{flex:0 0 38%}.fb-preview{display:flex;flex-direction:column;flex:1;min-width:0;overflow:hidden}.fb-preview-header{display:flex;align-items:center;justify-content:space-between;padding:6px 10px;border-bottom:1px solid #334155;font-size:12px;font-weight:600;color:#94a3b8;flex-shrink:0;font-family:monospace}.fb-preview-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.fb-preview-content{flex:1;overflow:auto;min-height:0}.fb-preview-msg{padding:12px;font-size:12px;color:#64748b}.fb-preview-error{color:#f87171}.fb-preview-code{margin:0;padding:10px 12px;font-size:12px;line-height:1.5;font-family:Menlo,Monaco,Consolas,monospace;overflow:auto;background:#0f172a;color:#e2e8f0;white-space:pre;tab-size:2}.fb-preview-md{padding:12px 16px;font-size:13px;line-height:1.6;color:#e2e8f0;overflow:auto}.fb-preview-md h1,.fb-preview-md h2,.fb-preview-md h3{margin:.8em 0 .4em;color:#f1f5f9}.fb-preview-md p{margin:.4em 0}.fb-preview-md code{font-family:monospace;font-size:11px;background:#1e293b;padding:1px 4px;border-radius:3px}.fb-preview-md pre{background:#0f172a;padding:10px 12px;border-radius:6px;overflow-x:auto}.fb-preview-md pre code{background:none;padding:0}.fb-preview-md a{color:#818cf8}.fb-preview-md ul,.fb-preview-md ol{padding-left:1.4em}.fb-preview-md blockquote{border-left:3px solid #334155;margin:0;padding-left:12px;color:#94a3b8}.fb-modal-wide{width:min(92vw,900px)!important}.fb-preview-back{display:none;background:none;border:none;color:#94a3b8;cursor:pointer;font-size:16px;padding:2px 6px 2px 0;line-height:1}.fb-preview-back:hover{color:#e2e8f0}@media (max-width: 640px){.fb-body-split .fb-tree{display:none}.fb-body-split .fb-preview{flex:1;width:100%}.fb-preview-back{display:block}.fb-modal-wide{width:min(96vw,900px)!important}}.fb-node.previewing{background:#6366f126}.hljs{background:#0f172a;color:#e2e8f0}.hljs-keyword,.hljs-selector-tag,.hljs-built_in{color:#c792ea}.hljs-string,.hljs-attr{color:#c3e88d}.hljs-number,.hljs-literal{color:#f78c6c}.hljs-comment{color:#546e7a;font-style:italic}.hljs-function .hljs-title,.hljs-title.function_{color:#82aaff}.hljs-class .hljs-title,.hljs-title.class_,.hljs-type{color:#ffcb6b}.hljs-variable,.hljs-params{color:#e2e8f0}.hljs-property{color:#f07178}.hljs-punctuation{color:#89ddff}.hljs-tag,.hljs-name{color:#f07178}.hljs-meta{color:#80cbc4}.hljs-doctag{color:#546e7a}.hljs-regexp{color:#c3e88d}.hljs-symbol{color:#f78c6c}.hljs-addition{color:#c3e88d;background:#c3e88d1a}.hljs-deletion{color:#f07178;background:#f071781a}.qp-tabs{display:flex;border-bottom:1px solid #334155;flex-shrink:0}.qp-tab{flex:1;padding:6px 4px;background:none;border:none;color:#64748b;font-size:12px;cursor:pointer;font-family:inherit;border-bottom:2px solid transparent;transition:all .15s}.qp-tab.active{color:#e2e8f0;border-bottom-color:#6366f1}.qp-tab:hover:not(.active){color:#94a3b8}.chat-path-link{color:#818cf8;cursor:pointer;text-decoration:underline dotted;text-underline-offset:2px}.chat-path-link:hover{color:#a5b4fc}.input-with-browse{display:flex;gap:6px}.input-with-browse .input,.input-with-browse input{flex:1;min-width:0}.btn-browse{flex-shrink:0;background:#1e293b;border:1px solid #334155;color:#94a3b8;border-radius:4px;padding:0 10px;cursor:pointer;font-size:14px;height:100%;display:flex;align-items:center}.btn-browse:hover{border-color:#64748b;color:#e2e8f0}
