/**
 * 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,[data-theme=light]{--page: #f6f6f7;--rail: #f6f6f7;--canvas: #ffffff;--surface: #ffffff;--surface-2: #f2f3f5;--surface-hover: rgba(0, 0, 0, .042);--line: rgba(0, 0, 0, .08);--line-strong: rgba(0, 0, 0, .14);--text: rgba(0, 0, 0, .88);--text-2: rgba(0, 0, 0, .62);--muted: rgba(0, 0, 0, .45);--primary-solid: #161618;--primary-on: #fcfcfc;--accent: #0066ff;--accent-soft: rgba(0, 102, 255, .09);--accent-text: #ffffff;--ok: #16a34a;--ok-soft: rgba(22, 163, 74, .1);--warn: #d97706;--warn-soft: rgba(217, 119, 6, .1);--err: #dc2626;--err-soft: rgba(220, 38, 38, .1);--diff-add-bg: rgba(22, 163, 74, .1);--diff-add-text: #15803d;--diff-del-bg: rgba(220, 38, 38, .1);--diff-del-text: #b91c1c;--shadow-inset: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px -4px rgba(0, 0, 0, .05);--shadow-card: 0 1px 2px rgba(0, 0, 0, .045);--shadow-popover: 0 14px 36px -8px rgba(0, 0, 0, .14), 0 2px 6px rgba(0, 0, 0, .05);--font-sans: "Inter", "InterVariable", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;--font-mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;--aui-font: var(--font-sans);--aui-font-mono: var(--font-mono)}[data-theme=dark],.dark{--page: #111113;--rail: #111113;--canvas: #18181b;--surface: #1b1b1e;--surface-2: #242428;--surface-hover: rgba(255, 255, 255, .055);--line: rgba(255, 255, 255, .09);--line-strong: rgba(255, 255, 255, .16);--text: rgba(255, 255, 255, .9);--text-2: rgba(255, 255, 255, .64);--muted: rgba(255, 255, 255, .45);--primary-solid: rgba(255, 255, 255, .92);--primary-on: #141416;--accent: #4d8dff;--accent-soft: rgba(77, 141, 255, .14);--accent-text: #ffffff;--ok: #22c55e;--ok-soft: rgba(34, 197, 94, .14);--warn: #f59e0b;--warn-soft: rgba(245, 158, 11, .14);--err: #f43f5e;--err-soft: rgba(244, 63, 94, .14);--diff-add-bg: rgba(34, 197, 94, .14);--diff-add-text: #86efac;--diff-del-bg: rgba(244, 63, 94, .14);--diff-del-text: #fda4af;--shadow-inset: 0 2px 12px rgba(0, 0, 0, .42);--shadow-card: 0 1px 3px rgba(0, 0, 0, .36);--shadow-popover: 0 18px 44px rgba(0, 0, 0, .62);--font-sans: "Inter", "InterVariable", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;--font-mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;--aui-font: var(--font-sans);--aui-font-mono: var(--font-mono)}*{box-sizing:border-box;scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent}*::-webkit-scrollbar{width:6px;height:6px}*::-webkit-scrollbar-track{background:transparent}*::-webkit-scrollbar-thumb{background:var(--line-strong);border-radius:999px}*::-webkit-scrollbar-thumb:hover{background:var(--muted)}html,body,#root{height:100%;margin:0;padding:0;background:var(--page);color:var(--text);font-family:var(--font-sans);font-size:13.5px;line-height:1.5;-webkit-font-smoothing:antialiased}.mono{font-family:var(--font-mono)}.tabular{font-variant-numeric:tabular-nums}button,input,select,textarea{font-family:inherit;color:inherit}button{cursor:pointer}input:focus,input:focus-visible,select:focus,select:focus-visible,textarea:focus,textarea:focus-visible{outline:none;box-shadow:none}.input:focus,.input:focus-visible,.select:focus,.select:focus-visible,.textarea:focus,.textarea:focus-visible{border-color:var(--line-strong)}button:focus-visible{border-color:var(--accent)}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}.aui-shell{display:flex;height:100%;width:100%;overflow:hidden;background:var(--page)}.aui-side{position:relative;width:264px;min-width:210px;background:var(--rail);display:flex;flex-direction:column;height:100%;flex-shrink:0;transition:width .18s cubic-bezier(.22,1,.36,1)}.aui-side.resizing{transition:none;-webkit-user-select:none;user-select:none}.aui-side.collapsed{width:58px!important;min-width:58px!important}.aui-side-head{height:52px;padding:10px 10px 6px 12px;display:flex;align-items:center;justify-content:space-between;gap:6px}.aui-side.collapsed .aui-side-head{justify-content:center;padding:10px 6px}.aui-ws-btn{display:inline-flex;align-items:center;gap:8px;min-width:0;height:32px;padding:0 7px 0 5px;border-radius:8px;border:1px solid transparent;background:transparent;color:var(--text);font-size:13px;font-weight:600;text-align:left}.aui-ws-btn:hover{background:var(--surface-hover)}.aui-side-actions{padding:2px 10px 8px;display:flex;align-items:center;gap:6px}.aui-side.collapsed .aui-side-actions{flex-direction:column;padding:4px 6px 8px}.aui-nav{padding:2px 10px;display:flex;flex-direction:column;gap:2px}.aui-side.collapsed .aui-nav{padding:2px 6px;align-items:center}.aui-nav-btn{width:100%;height:32px;padding:0 9px;border-radius:8px;border:1px solid transparent;background:transparent;color:var(--text-2);font-size:13px;font-weight:500;display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;transition:background .12s ease,color .12s ease}.aui-nav-btn:hover{background:var(--surface-hover);color:var(--text)}.aui-nav-btn.active{background:var(--surface);border-color:var(--line);color:var(--text);font-weight:550;box-shadow:var(--shadow-card)}.aui-side.collapsed .aui-nav-btn{width:36px;height:34px;padding:0;justify-content:center}.aui-side-section{padding:12px 12px 4px;font-size:11px;font-weight:600;color:var(--muted);letter-spacing:.02em;text-transform:uppercase;display:flex;align-items:center;justify-content:space-between}.aui-side-threads{flex:1;min-height:0;padding:0 8px 8px}.aui-proj-btn{width:100%;height:28px;padding:0 8px;border-radius:7px;border:none;background:transparent;color:var(--text-2);font-size:12.5px;font-weight:550;display:flex;align-items:center;justify-content:space-between;gap:6px;text-align:left}.aui-proj-btn:hover{background:var(--surface-hover);color:var(--text)}.aui-thread-list{margin:2px 0 6px 12px;padding-left:8px;border-left:1px solid var(--line);display:flex;flex-direction:column;gap:1px}.aui-thread-row{width:100%;height:30px;padding:0 8px;border-radius:7px;border:none;background:transparent;color:var(--text-2);font-size:12.5px;display:flex;align-items:center;justify-content:space-between;gap:7px;text-align:left}.aui-thread-row:hover{background:var(--surface-hover);color:var(--text)}.aui-thread-row.active{background:var(--surface);color:var(--text);font-weight:550;box-shadow:var(--shadow-card)}.aui-side-foot{margin-top:auto;padding:8px 10px 10px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:6px}.aui-side.collapsed .aui-side-foot{align-items:center;padding:8px 6px}.aui-telemetry-pill{font-size:11px;color:var(--muted);padding:4px 8px;border-radius:7px;background:var(--surface-2);display:flex;align-items:center;justify-content:space-between;gap:6px}.sidebar-resizer{position:absolute;top:0;right:-3px;width:6px;height:100%;cursor:col-resize;z-index:30}.sidebar-resizer:after{content:"";position:absolute;top:0;bottom:0;left:2px;width:2px;background:transparent;transition:background .14s ease}.sidebar-resizer:hover:after,.aui-side.resizing .sidebar-resizer:after{background:var(--accent)}.aui-main-wrap{flex:1;min-width:0;padding:8px 8px 8px 0;display:flex;height:100%;overflow:hidden}.aui-inset-main{flex:1;min-width:0;height:100%;background:var(--canvas);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-inset);display:flex;flex-direction:column;overflow:hidden}.aui-header{height:48px;min-height:48px;padding:0 14px;border-bottom:1px solid var(--line);background:var(--canvas);display:flex;align-items:center;justify-content:space-between;gap:12px}.aui-header-left,.aui-header-right{display:flex;align-items:center;gap:8px;min-width:0}.aui-body-split{flex:1;min-height:0;display:flex;overflow:hidden}.aui-stage{flex:1;min-width:0;height:100%;display:flex;flex-direction:column;overflow:hidden;background:var(--canvas)}.aui-workarea{width:390px;min-width:320px;max-width:52vw;height:100%;border-left:1px solid var(--line);background:var(--page);display:flex;flex-direction:column;overflow:hidden;flex-shrink:0}.aui-workarea-head{height:42px;padding:0 12px;border-bottom:1px solid var(--line);background:var(--canvas);display:flex;align-items:center;justify-content:space-between;gap:8px}.aui-workarea-body{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:30px;padding:0 10px;border-radius:8px;border:1px solid var(--line);background:var(--surface);color:var(--text);font-size:12.5px;font-weight:500;white-space:nowrap}.btn:hover:not(:disabled){background:var(--surface-hover);border-color:var(--line-strong)}.btn.ghost{background:transparent;border-color:transparent}.btn.ghost:hover:not(:disabled){background:var(--surface-hover)}.btn.icon-only{width:28px;height:28px;padding:0}.input,.select,.textarea{background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:6px 10px;font-size:13px;color:var(--text)}.input{height:32px}.select{height:30px;padding:0 8px}.chip{display:inline-flex;align-items:center;gap:4px;font-size:11px;line-height:1.3;padding:2px 7px;border-radius:6px;border:1px solid var(--line);background:var(--surface-2);color:var(--text-2)}.chip.rw{border-color:#16a34a4d;background:var(--ok-soft);color:var(--ok)}.chip.ro{border-color:#d977064d;background:var(--warn-soft);color:var(--warn)}.chip.accent{border-color:#0066ff40;background:var(--accent-soft);color:var(--accent)}.chip.err{border-color:#dc26264d;background:var(--err-soft);color:var(--err)}.workbench-split{flex:1;min-height:0;display:flex;overflow:hidden}.tree-pane{width:100%;min-width:0;height:100%;background:var(--page);display:flex;flex-direction:column;min-height:0}.tree-header{padding:10px;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:8px}.tree-scroll{flex:1;overflow-y:auto;padding:6px}.editor-pane{flex:1;width:100%;height:100%;min-width:0;display:flex;flex-direction:column;min-height:0;background:var(--canvas)}.pane-toolbar{height:42px;min-height:42px;padding:0 12px;border-bottom:1px solid var(--line);background:var(--canvas);display:flex;align-items:center;justify-content:space-between;gap:8px}.code-surface{flex:1;min-height:0;overflow:auto;padding:0}.code-editor-wrap{display:flex;height:100%;min-height:0;font-family:var(--font-mono);font-size:12.5px;line-height:1.6}.line-gutter{padding:12px 10px 12px 12px;text-align:right;color:var(--muted);-webkit-user-select:none;user-select:none;border-right:1px solid var(--line);background:var(--page);min-width:48px}.code-textarea{flex:1;width:100%;height:100%;border:none;resize:none;padding:12px 14px;background:var(--canvas);color:var(--text);font-family:var(--font-mono);font-size:12.5px;line-height:1.6;-moz-tab-size:4;tab-size:4}.code-pre{margin:0;padding:12px 14px;flex:1;white-space:pre;overflow:visible;font-family:var(--font-mono);font-size:12.5px;line-height:1.6}.git-pane{width:100%;min-width:0;height:100%;background:var(--page);display:flex;flex-direction:column;min-height:0}.diff-view{font-family:var(--font-mono);font-size:11.5px;line-height:1.55;overflow:auto;flex:1;background:var(--canvas)}.diff-line{padding:0 10px;white-space:pre-wrap;word-break:break-all}.diff-line.add{background:var(--diff-add-bg);color:var(--diff-add-text)}.diff-line.del{background:var(--diff-del-bg);color:var(--diff-del-text)}.diff-line.hunk{color:var(--accent);background:var(--surface-2);padding-top:4px;padding-bottom:4px}.page-scroll{flex:1;overflow-y:auto;padding:24px}.page-container{max-width:1080px;margin:0 auto;display:flex;flex-direction:column;gap:20px}.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:14px}.data-table{width:100%;border-collapse:collapse;font-size:12.5px}.data-table th,.data-table td{text-align:left;padding:9px 10px;border-bottom:1px solid var(--line)}.data-table tbody tr:hover td{background:var(--surface-2)}.data-table tbody tr:last-child td{border-bottom:none}.data-table th{position:sticky;top:0;background:var(--surface);font-weight:600;font-size:11.5px;color:var(--muted)}.md-body{max-width:820px;margin:0 auto;padding:22px 28px;line-height:1.75}.md-prose{font-size:14px;line-height:1.75;color:var(--text);word-break:break-word}.md-prose>:first-child{margin-top:0}.md-prose>:last-child{margin-bottom:0}.md-prose h1,.md-prose h2,.md-prose h3,.md-prose h4{margin:1.15em 0 .45em;font-weight:620;letter-spacing:-.015em;line-height:1.35;color:var(--text)}.md-prose h1{font-size:18px;padding-bottom:6px;border-bottom:1px solid var(--line)}.md-prose h2{font-size:15.5px}.md-prose h3{font-size:14.5px}.md-prose p{margin:.6em 0}.md-prose ul,.md-prose ol{margin:.5em 0;padding-left:1.45em}.md-prose li{margin:.25em 0}.md-prose hr{border:none;border-top:1px solid var(--line);margin:1.1em 0}.md-prose blockquote{margin:.75em 0;padding:4px 12px;border-left:3px solid var(--line-strong);color:var(--text-2);background:var(--surface-2);border-radius:0 8px 8px 0}.md-prose code{font-family:var(--font-mono);font-size:.875em;background:var(--surface-2);border:1px solid var(--line);padding:1px 5px;border-radius:5px}.md-prose a{color:var(--accent);text-decoration:none}.md-prose a:hover{text-decoration:underline}.md-table-wrap{margin:.75em 0;overflow-x:auto;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.md-table{width:100%;border-collapse:collapse;font-size:12.5px;font-variant-numeric:tabular-nums}.md-table th,.md-table td{padding:7px 11px;border-bottom:1px solid var(--line);vertical-align:top}.md-table tr:last-child td{border-bottom:none}.md-table th{background:var(--surface-2);font-weight:600;color:var(--text-2)}.md-codeblock{margin:.75em 0;border:1px solid var(--line);border-radius:10px;background:var(--surface);overflow:hidden}.md-codeblock-head{display:flex;align-items:center;justify-content:space-between;padding:5px 10px;border-bottom:1px solid var(--line);background:var(--surface-2);font-size:11px;color:var(--muted)}.md-codeblock-pre{margin:0;padding:10px 12px;overflow-x:auto;font-family:var(--font-mono);font-size:12px;line-height:1.55;color:var(--text)}.md-code-diff-add{display:block;background:var(--diff-add-bg);color:var(--diff-add-text);margin:0 -12px;padding:0 12px}.md-code-diff-del{display:block;background:var(--diff-del-bg);color:var(--diff-del-text);margin:0 -12px;padding:0 12px}.file-pill{display:inline-flex;align-items:center;gap:4px;padding:1px 7px;margin:0 2px;border-radius:6px;border:1px solid var(--line);background:var(--surface-2);color:var(--text);font-family:var(--font-mono);font-size:12px;line-height:1.4}.md-alert{margin:.75em 0;padding:9px 12px;border-radius:9px;border:1px solid var(--line);border-left-width:3px;background:var(--surface)}.md-alert.note{border-left-color:var(--accent)}.md-alert.tip{border-left-color:var(--ok)}.md-alert.warning,.md-alert.important{border-left-color:var(--warn)}.md-alert.caution{border-left-color:var(--err)}.md-alert-title{font-size:11.5px;font-weight:650;margin-bottom:4px;color:var(--text-2)}.user-bubble{max-width:78%;background:var(--surface-2);border:1px solid var(--line);border-radius:16px;padding:9px 15px;font-size:13.5px;line-height:1.58;white-space:pre-wrap;word-break:break-word;color:var(--text)}.ag-composer-wrap{padding:8px 24px 18px;background:transparent;overflow:visible;position:relative;z-index:20}.ag-composer{max-width:740px;width:100%;margin:0 auto;background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow-card);overflow:visible;position:relative;transition:border-color .14s ease,box-shadow .14s ease}.ag-composer:focus-within{border-color:var(--line-strong);box-shadow:0 4px 18px -6px #0000001a}.ag-composer-attachments{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 14px 9px;border-bottom:1px solid var(--line)}.ag-thumb{position:relative;width:46px;height:46px;border-radius:10px;border:1px solid var(--line);overflow:hidden;background:var(--surface-2);flex-shrink:0}.ag-thumb img{width:100%;height:100%;object-fit:cover;display:block}.ag-thumb-rm{position:absolute;top:2px;right:2px;width:16px;height:16px;border-radius:999px;border:none;background:#111214cc;color:#fff;display:grid;place-items:center;padding:0;opacity:0;transition:opacity .12s ease}.ag-thumb:hover .ag-thumb-rm,.ag-thumb-rm:focus-visible{opacity:1}.ag-att-chip{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:8px;border:1px solid var(--line);background:var(--surface-2);font-size:11.5px;color:var(--text-2);max-width:220px}.ag-composer-body{padding:12px 16px 4px}.ag-composer-input{width:100%;border:none;outline:none;box-shadow:none;background:transparent;resize:none;color:var(--text);font-size:14px;line-height:1.55;padding:0;min-height:44px;max-height:200px}.ag-composer-input:focus,.ag-composer-input:focus-visible{outline:none;box-shadow:none;border:none}.ag-composer-input::placeholder{color:var(--muted)}.ag-composer-bar{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:6px;padding:6px 10px 9px;overflow:visible}.ag-bar-left,.ag-bar-right{display:flex;align-items:center;overflow:visible;min-width:0}.ag-bar-left{flex:1 1 auto;flex-wrap:nowrap;gap:3px}.ag-bar-right{flex:0 0 auto;flex-shrink:0;gap:5px;margin-left:auto}.ag-plus-btn{width:28px;height:28px;border-radius:999px;border:1px solid var(--line);background:var(--surface-2);color:var(--text-2);display:inline-grid;place-items:center;flex-shrink:0}.ag-plus-btn:hover{background:var(--surface-hover);color:var(--text)}.ag-ghost-trigger{height:28px;padding:0 7px;border-radius:999px;border:1px solid transparent;background:transparent;color:var(--text-2);display:inline-flex;align-items:center;gap:4px;font-size:12.5px;white-space:nowrap;min-width:0;max-width:100%}.ag-root-tag{max-width:68px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:var(--muted)}.ag-ghost-trigger:hover,.ag-ghost-trigger[aria-expanded=true]{background:var(--surface-2);color:var(--text)}.ag-perm-btn{height:28px;padding:0 10px;border-radius:999px;border:1px solid var(--line);background:var(--surface-2);color:var(--text-2);display:inline-flex;align-items:center;gap:5px;font-size:12px;white-space:nowrap}.ag-perm-btn:hover,.ag-perm-btn[aria-expanded=true]{background:var(--surface-hover);border-color:var(--line-strong);color:var(--text)}.ag-send-btn{width:28px;height:28px;border-radius:999px;border:none;background:var(--primary-solid);color:var(--primary-on);display:inline-grid;place-items:center;flex-shrink:0;transition:transform .12s ease,opacity .12s ease}.ag-send-btn:hover:not(:disabled){opacity:.88}.ag-send-btn:disabled{opacity:.35;cursor:not-allowed}.ag-send-btn.stop{background:var(--err);color:#fff}.ag-anchor{position:relative;display:inline-flex;align-items:center;flex-shrink:0;overflow:visible}.ag-anchor.ag-shrinkable{min-width:0;flex-shrink:1}.ag-popover{min-width:240px;max-width:calc(100vw - 24px);overflow-y:auto;background:var(--surface);border:1px solid var(--line-strong);border-radius:14px;padding:6px;box-shadow:var(--shadow-popover);display:flex;flex-direction:column;gap:1px}.ag-flyout{min-width:205px;max-width:calc(100vw - 24px);overflow-y:auto;background:var(--surface);border:1px solid var(--line-strong);border-radius:14px;padding:6px;box-shadow:var(--shadow-popover);display:flex;flex-direction:column;gap:1px}.ag-menu-header{padding:5px 9px 4px;font-size:11.5px;font-weight:550;color:var(--muted)}.ag-menu-divider{height:1px;background:var(--line);margin:4px 6px}.ag-menu-item-wrap{position:relative}.ag-menu-row{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 9px;border:none;border-radius:8px;background:transparent;color:var(--text);font-size:12.5px;text-align:left;white-space:nowrap}.ag-menu-row:hover{background:var(--surface-hover)}.ag-menu-row-main{display:flex;align-items:center;gap:7px;min-width:0}.ag-perm-row{width:100%;display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:8px 9px;border:none;border-radius:9px;background:transparent;color:var(--text);text-align:left}.ag-perm-row:hover{background:var(--surface-hover)}.ag-perm-desc{font-size:11.5px;color:var(--muted);line-height:1.35;margin-top:2px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center;z-index:65;padding:16px}.modal-card{width:100%;max-width:480px;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:var(--shadow-popover);display:flex;flex-direction:column;gap:14px}.mobile-only,.sidebar-backdrop{display:none}@media(max-width:900px){.mobile-only{display:inline-flex}.aui-main-wrap{padding:0}.aui-inset-main{border-radius:0;border:none}.aui-side{position:fixed;top:0;left:0;bottom:0;z-index:65;width:264px;min-width:264px;transform:translate(-100%);transition:transform .2s cubic-bezier(.22,1,.36,1);box-shadow:var(--shadow-popover)}.aui-side.mobile-open{transform:translate(0)}.sidebar-backdrop.open{display:block;position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;background:#0000006b;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.aui-workarea{position:fixed;top:48px;right:0;bottom:0;width:min(390px,100vw);z-index:55;box-shadow:var(--shadow-popover)}.page-scroll{padding:16px}}@media(max-width:760px){.ag-root-tag{display:none}}@media(max-width:600px){.ag-composer-bar{flex-wrap:wrap;row-gap:6px}.ag-bar-left{display:contents}}
