.error-recovery{min-width:0;max-width:840px;margin:auto;padding:24px;color:var(--foreground);background:var(--surface)}.error-recovery h2{margin:0 0 12px;font-size:20px}.error-recovery p{line-height:1.6}.error-recovery-actions{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.error-recovery-actions button{min-height:44px;padding:8px 14px}.error-recovery summary{cursor:pointer;padding:10px 0}.error-recovery pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:320px;overflow:auto;font-size:12px}.error-recovery :focus-visible{outline:2px solid var(--accent);outline-offset:3px}@media(max-width:600px){.error-recovery{padding:16px}}/**
 * 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-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{font-family:monospace;-webkit-user-select:text;user-select:text;white-space:pre}.xterm .xterm-accessibility-tree>div{transform-origin:left;width:fit-content}.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}.xterm .xterm-scrollable-element>.scrollbar{cursor:default}.xterm .xterm-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.xterm .xterm-scrollable-element>.visible{opacity:1;background:#0000;transition:opacity .1s linear;z-index:11}.xterm .xterm-scrollable-element>.invisible{opacity:0;pointer-events:none}.xterm .xterm-scrollable-element>.invisible.fade{transition:opacity .8s linear}.xterm .xterm-scrollable-element>.shadow{position:absolute;display:none}.xterm .xterm-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:var(--vscode-scrollbar-shadow, #000) 0 6px 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.xterm .xterm-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Noto Sans SC,sans-serif;color:var(--foreground);background:var(--canvas);font-synthesis:none;color-scheme:dark;--canvas: #171b23;--surface: #222833;--surface-soft: #2a3240;--hover: #333e50;--foreground: #e2e7f0;--muted: #b0bbcd;--subtle: #96a3b8;--border: #394354;--sidebar: #1d222c;--accent: #a6afff;--accent-soft: #303650;--accent-border: #737fc2;--primary: #606cd1;--success: #94c9b2;--success-soft: #253b36;--success-border: #37564c;--warning: #dfb192;--warning-soft: #3b302b;--warning-border: #574238;--error: #efa3b0;--error-soft: #402d36;--terminal: #20242d;--radius: 10px}:root[data-theme=light]{color-scheme:light;--canvas: #f5f6f8;--surface: #fcfcfe;--surface-soft: #eef0f5;--hover: #e9ecf2;--foreground: #303746;--muted: #647087;--subtle: #737e91;--border: #e3e6ed;--sidebar: #f9fafc;--accent: #606cd1;--accent-soft: #eeedfb;--accent-border: #9ca4e2;--success: #537d6b;--success-soft: #eef3f3;--success-border: #e1e9e9;--warning: #9d6d4b;--warning-soft: #fbf3ed;--warning-border: #f2e4d9;--error: #b85665;--error-soft: #fbf0f1}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;border:0;background:none;color:inherit;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:background .16s,color .16s,box-shadow .16s}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}input,select{min-width:0}button:hover:not(:disabled){background:var(--hover)}svg{flex-shrink:0;stroke-width:1.7}kbd{font:11px SFMono-Regular,Consolas,monospace;padding:3px 5px;border-radius:4px;border:1px solid var(--border);color:var(--muted);white-space:nowrap}.mono,code{font-family:SFMono-Regular,Consolas,Liberation Mono,monospace}h1,h2,h3,p{margin:0}.app-shell{display:flex;min-height:100vh}.sidebar{width:250px;flex-shrink:0;display:flex;flex-direction:column;background:var(--sidebar);border-right:1px solid var(--border);height:100vh;position:sticky;top:0;padding:27px 16px 0}.sidebar[hidden]{display:none}.brand{display:flex;gap:10px;align-items:center;margin:0 5px 27px}.brand-mark{width:36px;height:36px;border-radius:10px;background:#6570cf;color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 3px 6px #606cd122;flex-shrink:0}.brand strong{font-size:17px;letter-spacing:-.5px;font-weight:720}.brand>div:nth-child(2){display:flex;flex-direction:column;gap:4px}.brand span:not(.version){font-size:10px;color:var(--muted);letter-spacing:.5px}.brand .version{font-size:8px;font-weight:650;letter-spacing:.5px;background:var(--surface-soft);color:var(--subtle);padding:3px 4px;border-radius:3px;margin-left:auto;align-self:flex-start;margin-top:4px}.quick-search{height:37px;border:1px solid var(--border);border-radius:7px;padding:0 10px;justify-content:flex-start;gap:7px;color:var(--muted);font-size:11px;box-shadow:0 2px 2px #26324d03}.quick-search kbd{margin-left:auto;font-size:9px;padding:2px 3px;border:0;background:var(--surface-soft)}.main-nav{display:flex;flex-direction:column;gap:5px;padding:23px 0 22px;border-bottom:1px solid var(--border)}.main-nav button{height:41px;justify-content:flex-start;padding:0 13px;font-size:12px;border-radius:7px;color:var(--muted);gap:11px}.main-nav button.active{color:var(--accent);background:var(--accent-soft);font-weight:600}.main-nav b{margin-left:auto;font-size:10px;padding:2px 6px;border-radius:4px;background:var(--accent-soft)}.sidebar-section-title{display:flex;justify-content:space-between;align-items:center;padding:20px 11px 8px;font-size:10px;letter-spacing:1px;font-weight:600;color:var(--subtle)}.icon-button{width:32px;height:32px;border-radius:6px;color:var(--subtle)}.project-list{flex:1;overflow:auto;min-height:90px;margin:0 -4px;padding:0 4px}.project-group{margin:6px 0 15px}.project-row{display:flex;height:34px;border-radius:6px;align-items:center}.project-row.active{background:var(--surface-soft)}.collapse-button{width:22px;height:30px;color:var(--subtle)}.project-select{flex:1;justify-content:flex-start;height:34px;padding:0 10px 0 0;font-size:12px;gap:8px;border-radius:5px}.project-select span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:146px;font-weight:600}.project-select b{font-size:10px;color:var(--subtle);font-weight:400;margin-left:auto}.project-sessions{padding:3px 0 0 19px;margin-left:10px;border-left:1px solid var(--border)}.project-sessions button{justify-content:flex-start;font-size:11px;width:100%;height:33px;padding:0 8px;color:var(--muted);border-radius:5px;gap:9px}.project-sessions button span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-sessions button.active{background:var(--accent-soft);color:var(--accent)}.session-dot{width:5px;height:5px;border-radius:100%;background:#a4abba;flex-shrink:0}.session-dot.running{background:var(--success);box-shadow:0 0 0 3px #6b9d8b0d}.project-sessions .project-new-session{color:var(--subtle);font-size:10px;gap:7px}.unread-dot{background:var(--accent);width:5px;height:5px;border-radius:50%;margin-left:auto}.add-project{height:38px;justify-content:flex-start;padding:0 13px;color:var(--muted);font-size:11px;border:1px dashed var(--border);border-radius:6px;margin:12px 0 20px}.sidebar-bottom{border-top:1px solid var(--border);padding:16px 0}.sidebar-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin-top:0}.sidebar-tools>button{min-width:0;height:36px;font-size:11px;color:var(--muted);justify-content:flex-start;gap:6px;padding:0 6px;white-space:nowrap;border-radius:6px}.profile{display:flex;align-items:center;gap:9px;padding:18px 5px 20px;margin-top:10px;border-top:1px solid var(--border)}.avatar{display:flex;justify-content:center;align-items:center;width:31px;height:31px;background:var(--surface-soft);color:#6e7795;border:1px solid var(--border);border-radius:8px}.profile strong{font-size:10px;font-weight:550;display:block}.profile span:not(.connection-dot){display:flex;align-items:center;gap:7px;font-size:9px;color:var(--muted);margin-top:4px}.profile i{width:2px;height:2px;background:#9aa3b3;border-radius:50%}.connection-dot{width:5px;height:5px;background:var(--success);border-radius:50%;display:inline-block;flex-shrink:0}.profile>.connection-dot{margin-left:auto}.sidebar-empty{font-size:12px;color:var(--muted);line-height:1.8;padding:16px}.main-area{flex:1;min-width:0;display:flex;flex-direction:column;background:var(--canvas)}.topbar{height:63px;flex-shrink:0;background:var(--surface);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 31px}.breadcrumb{display:flex;gap:11px;align-items:center;font-size:11px;color:var(--subtle)}.breadcrumb .sidebar-toggle{flex-shrink:0}@media(pointer:coarse){.breadcrumb .sidebar-toggle{min-width:44px;min-height:44px}}.breadcrumb strong{font-weight:500;color:var(--foreground)}.topbar-right{display:flex;gap:18px;align-items:center}.demo-badge,.local-badge{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--subtle)}.demo-badge{padding:5px 8px;border:1px solid var(--border);border-radius:5px;background:var(--surface-soft)}.local-badge{color:var(--success)}.workspace-content{padding:32px 31px 18px;flex:1}.workspace-title{display:flex;justify-content:space-between;gap:16px;align-items:center}.workspace-title h1{font-size:26px;letter-spacing:-.8px;font-weight:650;line-height:1.3;display:flex;align-items:center;gap:12px}.workspace-title h1>span{font-size:12px;letter-spacing:0;font-weight:400;background:var(--surface-soft);padding:4px 8px;border-radius:6px;color:var(--subtle)}.workspace-title p{font-size:11px;color:var(--muted);line-height:1.6;margin-top:10px;display:flex;align-items:center;gap:9px}.workspace-title code{font-size:11px;word-break:break-all}.title-project-actions{display:inline-flex;gap:4px}.title-project-actions button{width:23px;height:23px;border-radius:5px}.primary{background:var(--primary);color:#fff;border-radius:7px;font-size:12px;font-weight:500;padding:11px 15px;box-shadow:0 2px 3px #606cd114;min-height:38px}.primary:hover:not(:disabled){background:#515dc4}.primary kbd{border-color:#ffffff30;color:#e0e4ff;font-size:9px;margin-left:9px;background:#ffffff0a;padding:2px 4px}.new-session{margin-top:10px;white-space:nowrap}.workspace-overview{display:flex;align-items:center;gap:26px;margin:26px 0 28px;font-size:10px;color:var(--muted);border-bottom:1px solid var(--border);padding:0 0 22px}.workspace-overview>div{display:flex;align-items:center;gap:7px}.workspace-overview strong{color:var(--foreground);font-size:11px;font-weight:600}.overview-dot{display:inline-block;width:5px;height:5px;flex-shrink:0;border-radius:50%;background:#a7afbc}.overview-dot.running{background:var(--success);box-shadow:0 0 0 3px #6b9d8b14}.overview-hint{margin-left:auto;display:flex;align-items:center;gap:7px;font-size:9px;color:var(--muted)}.terminal-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:17px}.filter-tabs{display:flex;align-items:center;gap:4px}.filter-tabs button{border-radius:6px;padding:8px 10px;font-size:11px;color:var(--muted);white-space:nowrap;gap:6px}.filter-tabs button.active{background:var(--surface);color:var(--foreground);box-shadow:0 1px 4px #26324d08;border:1px solid var(--border);padding:7px 9px}.filter-tabs button span{font-size:9px;color:var(--muted);background:var(--surface-soft);padding:1px 5px;border-radius:3px}.filter-tabs select{border:0;background:transparent;font-size:10px;width:62px;color:var(--muted);padding:5px;border-radius:4px}.layout-tools{display:flex;gap:13px;align-items:center}.session-search{display:flex;align-items:center;gap:7px;color:var(--muted)}.session-search input{width:95px;border:0;background:transparent;outline-offset:2px;font-size:10px;color:var(--foreground);line-height:28px}.session-search input::placeholder{color:var(--muted)}.layout-toggle{display:flex;border:1px solid var(--border);background:var(--surface-soft);border-radius:6px;padding:3px;gap:2px}.layout-toggle button{width:29px;height:24px;border-radius:4px;color:var(--subtle)}.layout-toggle button.active{background:var(--surface);color:var(--muted);box-shadow:0 1px 3px #26324d0a}.back-grid{font-size:10px;color:var(--accent);white-space:nowrap;padding:6px;border-radius:4px}.terminal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:stretch}.terminal-grid.single-column,.terminal-grid.focused{grid-template-columns:minmax(0,1fr)}.terminal-pane{border-radius:var(--radius);overflow:hidden;position:relative;background:var(--terminal);border:1px solid var(--border);box-shadow:0 3px 8px #232d4110;min-width:0;display:flex;flex-direction:column;height:360px;transition:box-shadow .16s,border-color .16s}.terminal-pane.selected{border-color:var(--accent-border);box-shadow:0 0 0 2px #606cd114,0 3px 8px #232d4110}.terminal-grid.focused .terminal-pane{height:max(500px,calc(100vh - 344px))}.terminal-grid.single-column:not(.focused) .terminal-pane{height:420px}.terminal-heading{height:59px;flex-shrink:0;display:flex;align-items:center;gap:10px;padding:0 14px;background:var(--surface);border-bottom:1px solid var(--border)}.agent-symbol{width:29px;height:29px;display:flex;justify-content:center;align-items:center;flex-shrink:0;border:1px solid var(--border);border-radius:7px;background:var(--surface-soft);color:var(--muted)}.agent-symbol.claude{background:var(--warning-soft);border-color:var(--warning-border);color:var(--warning)}.agent-symbol.codex{background:var(--success-soft);border-color:var(--success-border);color:var(--success)}.terminal-title{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}.terminal-title strong{font-size:11px;font-weight:600;color:var(--foreground);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.terminal-title>span{font-size:9px;color:var(--muted);display:flex;align-items:center;gap:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.terminal-title i{width:4px;height:4px;border-radius:50%;flex-shrink:0}.terminal-title b{color:#c8cdd7;font-weight:400;padding:0 2px}.terminal-status{font-size:9px;display:flex;align-items:center;gap:4px;color:var(--muted);white-space:nowrap}.terminal-status i{background:#a2abba;width:4px;height:4px;border-radius:50%}.terminal-status.running{color:var(--success)}.terminal-status.running i{background:var(--success)}.terminal-icon{width:24px;height:28px;color:#9aa3b2;border-radius:4px;flex-shrink:0;margin-left:-4px}.terminal-body{min-height:0;flex:1;padding:6px 8px;background:var(--terminal);overflow:hidden}.terminal-body .xterm{height:100%}.terminal-body .xterm-viewport{scrollbar-width:thin;scrollbar-color:#48505f transparent}.terminal-footer{height:31px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 13px;background:#242832;border-top:1px solid #303540;color:#8992a4}.terminal-footer>span{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:62%}.footer-divider{color:#596375;margin:0 8px}.terminal-footer>div{display:flex;gap:9px;align-items:center}.terminal-footer button{height:23px;min-width:19px;font-size:10px;border-radius:3px;color:#a1aaba;padding:0 2px}.terminal-footer button:hover{background:#394150;color:#dde3ef}.terminal-footer .stop-button{color:#a6adb9}.terminal-launch{position:absolute;top:59px;bottom:31px;left:0;right:0;background:#20242dee;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;padding:24px;text-align:center;color:#a3aec3}.terminal-launch strong{font-size:14px;color:#d4dbea;font-weight:500}.terminal-launch span{font-size:11px;line-height:1.7}.terminal-launch button{font-size:11px;background:#414d72;border:1px solid #536083;color:#e6eafb;padding:9px 14px;border-radius:6px}.terminal-launch button:hover{background:#505d87}.terminal-search{height:38px;background:#303644;display:flex;align-items:center;padding:0 14px;gap:9px;color:#a5b0c4}.terminal-search input{border:0;color:#e4e9f2;background:transparent;flex:1;font-size:11px}.terminal-search span{font-size:10px}.terminal-search button{color:#a5b0c4;width:22px;height:22px;border-radius:3px}.workspace-footnote{display:flex;justify-content:space-between;align-items:center;font-size:9px;color:var(--muted);margin-top:19px;padding:0 2px}.workspace-footnote>span{display:flex;align-items:center;gap:5px}.footnote-separator{padding:0 6px;color:#bcc2ce}.modal-scrim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;background:#182134b3;display:flex;align-items:center;justify-content:center;padding:24px;animation:fade-in .15s}.dialog{width:490px;max-width:100%;max-height:calc(100dvh - 48px);min-width:0;overflow:auto;scrollbar-gutter:stable;background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:0 25px 80px #0c162538;animation:dialog-in .18s}.dialog.wide{width:570px}.dialog>header{position:sticky;top:0;z-index:2;background:var(--surface);display:flex;justify-content:space-between;align-items:flex-start;padding:25px 25px 18px;gap:12px}.dialog h2{font-size:19px;font-weight:650;letter-spacing:-.4px}.dialog header p{font-size:12px;color:var(--muted);line-height:1.6;margin-top:7px}.dialog form{padding:0 25px}:where(.dialog) label{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:550;margin-bottom:18px}:where(.dialog) input,:where(.dialog) select{height:40px;border:1px solid var(--border);border-radius:6px;background:var(--surface);padding:0 11px;color:var(--foreground);font-size:12px;width:100%;font-weight:400}.dialog input::placeholder{color:var(--subtle)}.dialog small{font-size:10px;font-weight:400;line-height:1.7;color:var(--subtle)}.input-with-button{display:flex;gap:7px}.input-with-button button{border:1px solid var(--border);border-radius:6px;width:43px;flex-shrink:0;color:var(--muted)}.color-options{display:flex;gap:10px;padding:4px 0}.color-options button{width:28px;height:28px;border-radius:50%;color:#fff}.color-options button.active{outline:2px solid #bec5d4;outline-offset:3px}.dialog footer{padding:18px 0;margin-top:23px;border-top:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;font-size:10px;color:var(--subtle);gap:12px}.dialog footer button{white-space:nowrap}.provider-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.provider-options button{border:1px solid var(--border);border-radius:8px;flex-direction:column;gap:10px;font-size:10px;height:77px;color:var(--muted);position:relative}.provider-options button.active{border-color:var(--accent-border);background:var(--accent-soft);color:var(--accent)}.provider-check{position:absolute;top:6px;right:6px}.saved-agent-options{grid-template-columns:repeat(2,minmax(0,1fr))}.saved-agent-options button{font-size:12px;height:auto;min-height:80px;padding:12px}.saved-agent-options button span{overflow-wrap:anywhere}.saved-agent-options button>span:not(.agent-default-badge){font-size:12px}.saved-agent-options button small{font-size:11px;line-height:1.5}.agent-default-badge{padding:2px 7px;border-radius:4px;background:var(--accent-soft);font-size:11px}.agent-picker-heading,.agent-profile-summary,.agent-editor-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.agent-picker-heading{margin-bottom:8px;flex-wrap:wrap}.agent-picker-actions{display:flex;flex-wrap:wrap;gap:8px}.agent-picker-heading button,.agent-profile-summary button,.agent-editor-actions button{min-height:44px}.agent-profile-summary{border:1px solid var(--border);border-radius:8px;padding:16px;background:var(--surface-soft);display:grid;gap:14px}.agent-profile-summary>div{min-width:0;display:grid;gap:6px}.agent-profile-summary>.agent-profile-actions{display:flex;flex-wrap:wrap;gap:8px;padding-top:12px;border-top:1px solid var(--border)}.agent-profile-summary strong{overflow-wrap:anywhere}.agent-profile-summary code{color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere}.agent-profile-summary button{flex-shrink:0}.agent-editor{min-width:0;margin:0;padding:16px;border:1px solid var(--border);border-radius:8px}.agent-editor legend{padding:0 8px;color:var(--foreground)}.agent-editor-help{margin:0 0 16px;color:var(--muted);font-size:12px;line-height:1.7;overflow-wrap:anywhere}.agent-editor-actions{justify-content:flex-end;flex-wrap:wrap}.agent-editor-actions .danger{margin-right:auto}.agent-empty{color:var(--muted)}.dialog .session-create-form{display:grid;gap:18px}.session-create-form>label{margin-bottom:0}.session-create-form>button{justify-self:start;min-height:44px;padding:8px 12px;border:1px solid var(--border);border-radius:6px}.session-create-form .agent-profile-actions button{padding:8px 12px;border:1px solid var(--border);border-radius:6px}.session-create-form>footer{margin-top:4px}.form-tip{display:flex;gap:9px;padding:12px;border:1px solid var(--border);border-radius:6px;color:var(--subtle);background:var(--surface-soft);font-size:10px;line-height:1.8;align-items:flex-start}.form-tip svg{margin-top:2px}.form-error{font-size:11px;line-height:1.7;color:var(--error);margin:14px 0}.form-section-title{font-size:10px;letter-spacing:1px;color:var(--subtle);margin-bottom:16px}.form-row{display:flex;gap:16px}.form-row label{flex:1}.config-location{padding:13px;background:var(--surface-soft);border-radius:6px;display:flex;flex-direction:column;gap:8px}.config-location>span{font-size:10px;color:var(--muted)}.config-location code{font-size:10px;word-break:break-all;color:var(--muted)}.help-content{padding:0 25px 25px}.help-steps{display:flex;flex-direction:column;gap:20px;margin:8px 0 25px}.help-steps>div{display:flex;gap:13px}.help-steps b{width:26px;height:26px;display:flex;justify-content:center;align-items:center;border-radius:8px;background:var(--accent-soft);color:var(--accent);flex-shrink:0;font-size:11px}.help-steps strong{font-size:12px;font-weight:600}.help-steps p{font-size:11px;color:var(--muted);margin-top:6px;line-height:1.8}.help-content h3{font-size:11px;color:var(--muted);margin:25px 0 10px}.shortcut-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--border);font-size:11px;color:var(--muted)}.shortcut-row kbd{flex-shrink:0;white-space:nowrap}.help-content .form-tip{margin-top:22px}.demo-help{font-size:11px;color:var(--muted);line-height:1.8;margin-top:16px}.confirm-content{padding:0 25px}.confirm-content>p{font-size:12px;line-height:1.8;color:var(--muted)}.confirm-content footer{justify-content:flex-end}.secondary{border:1px solid var(--border);border-radius:6px;padding:10px 18px;font-size:11px}.danger{background:#bd6173;color:#fff;border-radius:6px;padding:10px 18px;font-size:11px}.danger:hover:not(:disabled){background:#a95062}.toast{position:fixed;bottom:45px;left:50%;transform:translate(-50%);z-index:200;display:flex;align-items:center;gap:20px;background:#323b50;color:#edf0f8;border:1px solid #4e5873;border-radius:8px;padding:13px 15px;font-size:12px;max-width:min(600px,90vw);box-shadow:0 8px 30px #14213a22;line-height:1.7}.toast button{width:23px;height:23px;color:#c0cadf;border-radius:4px}.toast button:hover{background:#515b73}.empty-state{min-height:430px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px dashed var(--border);border-radius:12px;gap:17px;padding:32px;text-align:center;color:#a1abbd;background:var(--surface)}.empty-state h2{font-size:20px;font-weight:550;letter-spacing:-.5px;color:var(--foreground)}.empty-state p{font-size:12px;white-space:pre-line;line-height:1.9;color:var(--muted);max-width:400px}.empty-state .primary{margin-top:5px}.empty-illustration{width:76px;height:76px;background:var(--accent-soft);border:1px solid var(--accent-border);display:flex;align-items:center;justify-content:center;border-radius:20px;position:relative;color:var(--accent);margin-bottom:10px}.empty-illustration>span{position:absolute;bottom:-5px;right:-5px;background:var(--accent);border-radius:7px;width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:#fff;border:3px solid var(--surface)}.activity-list{border:1px solid var(--border);border-radius:10px;background:var(--surface);overflow:hidden}.activity-list .empty-state{border:0}.activity-row{display:flex;width:100%;text-align:left;padding:18px 20px;gap:15px;border-bottom:1px solid var(--border);justify-content:flex-start}.activity-row:last-child{border-bottom:0}.activity-icon{width:33px;height:33px;background:var(--surface-soft);color:#7a88a7;border-radius:8px;display:flex;justify-content:center;align-items:center;flex-shrink:0}.activity-row.exit .activity-icon{background:var(--success-soft);color:var(--success)}.activity-row.error .activity-icon{background:var(--error-soft);color:var(--error)}.activity-row>span:nth-child(2){display:flex;flex-direction:column;gap:5px;flex:1}.activity-row strong{font-size:12px;font-weight:500;line-height:1.7}.activity-row small{font-size:10px;color:var(--subtle)}.activity-row time{font-size:10px;color:var(--subtle)}.activity-row>svg{color:var(--subtle)}.palette{padding:0}.palette>label{display:flex;align-items:center;flex-direction:row;gap:12px;padding:0 25px;margin-bottom:16px;color:var(--subtle)}.palette>label input{border:0;background:transparent;font-size:13px;padding:0;height:35px}.palette-results{max-height:350px;overflow:auto;padding:0 12px}.palette-results>button{display:flex;width:100%;padding:11px 13px;justify-content:flex-start;gap:13px;border-radius:7px;text-align:left;color:var(--subtle)}.palette-results>button.active{background:var(--accent-soft);color:var(--accent)}.palette-results button>span{display:flex;flex-direction:column;gap:6px;flex:1}.palette-results strong{font-weight:500;font-size:12px;color:var(--foreground)}.palette-results small{font-size:10px}.palette-results>p{padding:30px;text-align:center;color:var(--subtle);font-size:12px}.palette footer{padding:14px 25px;background:var(--surface-soft)}.palette footer button{font-size:11px;color:var(--accent);padding:5px;border-radius:4px}.loading-screen{display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:100vh;gap:20px;padding:40px;text-align:center}.loading-screen h1{font-size:25px;letter-spacing:-.6px}.loading-screen p{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;line-height:1.8;max-width:650px}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes dialog-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(min-width:1600px){.workspace-content{padding:38px 40px 20px}.terminal-pane{height:400px}.sidebar{width:260px}.terminal-heading{padding:0 17px}}@media(max-width:1200px){.sidebar{width:224px;padding:23px 12px 0}.brand{gap:8px}.brand strong{font-size:16px}.brand .version{display:none}.workspace-content{padding:27px 23px 17px}.topbar{padding:0 23px}.terminal-heading{padding:0 10px;gap:7px}.terminal-status{font-size:8px}.terminal-title>span{font-size:8px}.terminal-pane{height:360px}.overview-hint{display:none}.terminal-toolbar{flex-wrap:wrap}.layout-tools{margin-left:auto}.filter-tabs button{padding:7px 8px}.terminal-footer>div{gap:5px}.terminal-icon{width:20px}}@media(max-width:1000px){.terminal-grid{grid-template-columns:minmax(0,1fr)}.terminal-pane{height:400px}.workspace-title h1{font-size:23px}.primary kbd{display:none}.demo-badge{font-size:9px}.workspace-footnote>span:first-child{max-width:70%;line-height:1.8}}@media(max-width:700px){.sidebar{width:62px;padding:17px 8px 0}.brand{margin:0 0 22px;justify-content:center}.brand>div:nth-child(2),.quick-search span,.quick-search kbd,.main-nav button span,.main-nav b,.sidebar-section-title span,.project-list,.add-project,.sidebar-tools>button span,.profile,.sidebar-empty{display:none}.quick-search{width:40px;padding:0;justify-content:center;margin:auto}.main-nav{padding:16px 0}.main-nav button{padding:0;justify-content:center}.sidebar-section-title{justify-content:center;padding:15px 0}.sidebar-bottom{margin-top:auto;display:flex;justify-content:center;padding-bottom:18px}.sidebar-tools{margin-top:0;grid-template-columns:1fr}.sidebar-tools>button{width:40px;justify-content:center;padding:0}.workspace-content{padding:24px 15px 16px}.topbar{padding:0 15px;height:52px}.breadcrumb{gap:7px;font-size:10px}.breadcrumb>span{display:none}.topbar-right{gap:4px}.demo-badge{max-width:130px;font-size:8px}.workspace-title h1{font-size:20px;gap:7px}.workspace-title h1>span{font-size:10px}.workspace-title p{font-size:10px;max-width:230px;line-height:1.8}.new-session{padding:9px;font-size:10px;gap:3px}.workspace-overview{gap:14px;margin:22px 0 18px;font-size:9px}.workspace-overview>div{gap:4px}.filter-tabs{gap:1px}.filter-tabs button{font-size:9px;padding:7px 5px}.filter-tabs button.active{padding:6px 4px}.filter-tabs button svg{width:11px}.filter-tabs select{font-size:9px;width:50px}.terminal-toolbar{gap:9px}.layout-tools{width:100%;justify-content:flex-end}.session-search{margin-right:auto}.terminal-heading{gap:6px;padding:0 10px}.terminal-status{display:none}.terminal-title strong{font-size:11px}.terminal-title>span{font-size:9px}.terminal-pane{height:375px}.terminal-body{padding:13px 5px 5px 12px}.workspace-footnote>span:first-child{display:none}.workspace-footnote{justify-content:flex-end}.modal-scrim{padding:14px}.dialog{max-height:calc(100dvh - 28px)}.dialog>header{padding:21px 18px 15px}.dialog form,.help-content{padding-left:18px;padding-right:18px}.provider-options{gap:5px}.provider-options button{font-size:9px}.confirm-content{padding:0 18px}.palette>label{padding:0 18px}.palette footer{padding:14px 18px}.toast{font-size:11px}.empty-state{padding:25px 17px;min-height:400px}.empty-state h2{font-size:17px}.empty-state p{font-size:11px}.activity-row{padding:14px 12px;gap:10px}.activity-row time{display:none}.form-row{gap:10px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}.skip-link{position:fixed;top:10px;left:10px;z-index:300;background:var(--accent);color:#fff;border-radius:5px;padding:10px 14px;font-size:13px;transform:translateY(-150%)}.skip-link:focus{transform:translateY(0)}.terminal-ended{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 14px;background:#2a303c;color:#abb4c7;font-size:10px;flex-shrink:0;border-bottom:1px solid #363f50}.terminal-ended button{color:#c2c9ee;font-size:10px;border:1px solid #4a5470;padding:4px 7px;border-radius:4px}.terminal-ended button:hover{background:#3a4562}.main-nav button{font-size:13px}.project-sessions button{font-size:12px}.project-select{font-size:13px}.terminal-title strong{font-size:12px}.terminal-title>span{font-size:10px}.terminal-status{font-size:10px}.terminal-footer>span{font-size:10px}.workspace-title p,.filter-tabs button{font-size:12px}.session-search input{font-size:11px}:where(.dialog) label{font-size:13px}:where(.dialog) input,:where(.dialog) select{font-size:13px}.workspace-footnote{font-size:10px}.terminal-icon{min-width:24px}@media(max-width:700px){.terminal-title strong{font-size:12px}.terminal-title>span{font-size:10px}.filter-tabs button{font-size:10px}.workspace-title p{font-size:11px}}.desktop-shell{--titlebar-height: 40px;padding-top:var(--titlebar-height)}.desktop-shell .app-shell,.desktop-shell .loading-screen{min-height:calc(100vh - var(--titlebar-height))}.desktop-shell .sidebar{top:var(--titlebar-height);height:calc(100vh - var(--titlebar-height))}.window-titlebar{height:var(--titlebar-height);position:fixed;top:0;left:0;right:0;z-index:120;background:var(--sidebar);border-bottom:1px solid var(--border);display:flex;align-items:center;padding-left:15px;-webkit-user-select:none;user-select:none;-webkit-app-region:drag}.window-app-icon{display:flex;justify-content:center;align-items:center;width:23px;height:23px;background:#6570cf;border-radius:6px;color:#fff;margin-right:8px}.window-menus{display:flex;height:100%;align-items:center;gap:2px;-webkit-app-region:no-drag}.window-menu{position:relative}.window-menu>button{height:28px;padding:0 10px;border-radius:5px;font-size:11px;color:var(--muted)}.window-menu:first-child>button{font-weight:650;color:var(--foreground);letter-spacing:-.2px}.window-menu>button.open,.window-menu>button:hover{background:var(--hover);color:var(--accent)}.window-drag-area{flex:1;align-self:stretch;display:flex;align-items:center;justify-content:flex-end;padding-right:22px;min-width:20px}.window-controls{display:flex;height:100%;-webkit-app-region:no-drag}.window-controls>button{width:46px;height:100%;border-radius:0;color:var(--subtle)}.window-controls>.window-close:hover{background:#c85569;color:#fff}.window-menu-dropdown{position:absolute;top:calc(100% + 6px);left:0;min-width:220px;background:var(--surface);padding:5px;border:1px solid var(--border);box-shadow:0 8px 30px #26324d1c;border-radius:8px;-webkit-app-region:no-drag}.window-menu-dropdown button{display:flex;width:100%;justify-content:space-between;padding:8px 10px;font-size:12px;border-radius:4px;gap:26px;color:var(--foreground);text-align:left}.window-menu-dropdown button:focus-visible{outline:none;background:var(--accent-soft);color:var(--accent)}.menu-shortcut{font:10px SFMono-Regular,Consolas,monospace;color:var(--subtle)}.menu-divider{height:1px;margin:5px 7px;background:var(--border)}.mac-titlebar:not(.fullscreen-titlebar){padding-left:86px}.window-inactive .window-app-icon{opacity:.7}.window-inactive .window-drag-area span{color:var(--subtle)}.desktop-shell .terminal-grid.focused .terminal-pane{height:max(500px,calc(100vh - 384px))}@media(max-width:700px){.window-drag-area span{display:none}.window-drag-area{padding-right:0}.window-controls>button{width:32px}.window-menu>button{padding:0 7px;font-size:10px}}.desktop-shell .modal-scrim{top:var(--titlebar-height)}:root{scrollbar-color:var(--border) var(--canvas)}::selection{background:var(--accent-soft);color:var(--foreground)}.dialog textarea{width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--foreground);font:inherit;line-height:1.6;resize:vertical}.dialog textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.dialog .check-label{display:flex;flex-direction:row;align-items:center;gap:10px}.dialog .check-label input{width:18px;height:18px;min-height:18px;flex-shrink:0}.session-tools{padding:0 26px 24px;min-width:0}.session-tools form{padding:0}.tool-groups{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:4px;margin-bottom:12px;background:var(--surface-soft);border-radius:10px}.tool-groups button{min-height:44px;padding:8px;border:1px solid transparent;border-radius:7px;color:var(--muted)}.tool-groups button[aria-pressed=true]{background:var(--surface);border-color:var(--border);color:var(--foreground);font-weight:600}.tool-groups button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.tools-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 18px;border-bottom:1px solid var(--border);padding-bottom:12px}.tools-tabs button,.tool-actions button,.tool-content>button,.template-row button,.inline-confirm button,.workspace-controls button{padding:10px 12px;min-height:40px;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--foreground);font:inherit}.tools-tabs button[aria-selected=true],.workspace-controls button[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}.tool-content{display:flex;flex-direction:column;gap:16px}.tool-content p,.session-tools small{color:var(--muted);line-height:1.6;margin:0}.tool-actions{display:flex;flex-wrap:wrap;gap:8px}.path-line{display:block;overflow-wrap:anywhere;white-space:pre-wrap;line-height:1.6;font-size:12px}.review-output{margin:0;padding:14px;background:#20242d;color:#e0e5ee;border-radius:8px;overflow:auto;max-height:340px;font-size:12px;line-height:1.6;white-space:pre}.diagnostic-check{border:1px solid var(--border);border-radius:8px;padding:12px}.diagnostic-check pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.inline-confirm{border:1px solid var(--warning-border);border-radius:8px;padding:14px}.inline-confirm button{margin:12px 8px 0 0}.template-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.template-row span{flex:1;overflow-wrap:anywhere}.tool-message{color:var(--success);line-height:1.6}.workspace-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 16px}.workspace-controls span{font-size:12px;color:var(--muted)}.terminal-title[draggable]{cursor:grab}.terminal-task-summary{padding:6px 16px;color:var(--muted);background:var(--surface-soft);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-shrink:0}.terminal-grid:not(.focused) .terminal-pane{height:var(--terminal-height, 400px)}.terminal-grid:not(.focused) .terminal-pane.selected{grid-column:1 / -1;height:max(var(--terminal-height, 400px),500px,calc(100dvh - 344px))}.desktop-shell .terminal-grid:not(.focused) .terminal-pane.selected{height:max(var(--terminal-height, 400px),500px,calc(100dvh - 384px))}@media(max-width:1000px){.terminal-grid{grid-template-columns:minmax(0,1fr)!important}}@media(max-width:700px){.session-tools{padding:0 16px 18px}.terminal-status{display:none}.tools-tabs button{min-height:44px}.workspace-controls span{width:100%}}.native-attention{display:flex;flex-direction:column;gap:8px;padding:12px;margin-bottom:18px;border:1px solid var(--accent-border);border-radius:8px;background:var(--accent-soft)}.native-attention p{margin:0;color:var(--foreground)}.native-attention button{align-self:flex-start;padding:8px 12px;min-height:40px;border:1px solid var(--border);border-radius:6px;background:var(--surface)}.task-workspace{display:flex;flex-direction:column;gap:24px}.task-workspace form,.verification-command{display:flex;flex-direction:column;gap:14px}.handoff-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.handoff-fields textarea{resize:vertical}.task-workspace .template-row{flex-wrap:wrap}.verification-command{padding:14px;border:1px solid var(--border);border-radius:8px}@media(max-width:600px){.handoff-fields{grid-template-columns:1fr}}.collaboration-panel{display:grid;gap:18px}.collaboration-panel>p{margin:0;color:var(--muted);line-height:1.7}.collaboration-panel .agent-editor{margin:0;display:grid;gap:12px}.collaboration-panel form{padding:0;display:grid;gap:16px}.collaboration-panel h3{margin:0;font-size:15px}.collaboration-panel footer{align-items:flex-start;gap:16px}.collaboration-panel footer small{max-width:55%}.assignment-details{border:1px solid var(--border);border-radius:8px;padding:12px}.assignment-details summary{cursor:pointer}.assignment-details pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:320px;overflow:auto;font:inherit;line-height:1.6}.assignment-details code{overflow-wrap:anywhere}.collaboration-related{display:grid;gap:8px}.collaboration-related button{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left}.project-action-area{margin:0 0 18px}.project-action-bar{display:flex;flex-wrap:wrap;gap:10px}.project-action-group{display:flex;gap:2px}.project-action-group button{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--border);border-radius:6px}.project-action-panel{display:grid;gap:16px;padding:24px}.project-action-panel form{display:grid;gap:14px;padding:0}.project-action-panel>p{margin:0;line-height:1.6}.project-switcher{display:flex;align-items:center;gap:4px;min-width:0;overflow-x:auto;scrollbar-width:thin;flex:1;padding:4px}.project-switcher button{flex:0 0 auto;min-height:34px;padding:0 12px;border-radius:5px;font-size:12px;white-space:nowrap;color:var(--muted)}.project-switcher button[aria-pressed=true]{background:var(--accent-soft);color:var(--foreground)}.topbar{gap:12px}.topbar .topbar-right{flex-shrink:0;gap:8px}.session-options{min-width:0}.terminal-pane[hidden]{display:none}.tabbed-workspace{height:100dvh;overflow:hidden}.desktop-shell .tabbed-workspace{height:calc(100dvh - var(--titlebar-height))}.tabbed-workspace .main-area{min-width:0;height:100%;overflow:hidden}.tabbed-workspace .topbar{height:48px;padding:0 12px}.tabbed-workspace .breadcrumb{gap:0}.tabbed-workspace .breadcrumb>:not(button){display:none}.tabbed-workspace .topbar .demo-badge,.tabbed-workspace .topbar .local-badge{display:none}.tabbed-workspace .workspace-content{position:relative;display:flex;flex-direction:column;min-height:0;padding:0;overflow:hidden}.tabbed-workspace .workspace-title,.tabbed-workspace .workspace-overview{display:none}.session-tab-strip{display:flex;flex-shrink:0;min-width:0;background:var(--sidebar);border-bottom:1px solid var(--border)}.session-tabs{display:flex;flex-wrap:wrap;align-content:flex-start;flex:1;min-width:0;max-height:min(176px,30dvh);overflow-x:hidden;overflow-y:auto;scrollbar-width:thin}.session-tab{position:relative;justify-content:flex-start;flex:0 0 auto;max-width:240px;min-width:130px;min-height:42px;gap:9px;display:flex;padding:0;border-right:1px solid var(--border);border-bottom:1px solid var(--border);color:var(--muted);font-size:12px}.session-tab-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.session-tab.active{color:var(--foreground);background:var(--terminal)}.session-tab.active:after{content:"";position:absolute;height:2px;bottom:0;left:0;right:0;background:var(--warning)}.session-tab>button:focus-visible{outline-offset:-3px}.tab-new-session{flex:0 0 44px;align-self:flex-start;min-height:44px;color:var(--muted)}.tabbed-workspace .terminal-toolbar{margin:0;padding:6px 12px;flex-wrap:wrap;gap:8px}.tabbed-workspace .workspace-controls{margin:0;padding:6px 12px}.tabbed-workspace .back-grid,.tabbed-workspace .layout-toggle{display:none}.tabbed-workspace .project-action-bar{flex-shrink:0;margin:0}.tab-terminal-stage{display:flex;flex-direction:column;min-height:0;flex:1}.tabbed-workspace .terminal-grid{display:flex;flex-direction:column;min-height:0;flex:1;gap:0}.tabbed-workspace .terminal-grid .terminal-pane{flex:1;min-height:0;height:auto;width:100%;border:0;border-radius:0;box-shadow:none}.tabbed-workspace .terminal-heading{height:32px;padding:0 12px}.tabbed-workspace .terminal-heading .agent-symbol{display:none}.tabbed-workspace .terminal-title>span{font-size:10px}.tabbed-workspace .workspace-footnote{margin:0;padding:6px 12px;flex-shrink:0;font-size:10px}.tabbed-workspace .empty-state{flex:1;min-height:0;overflow-y:auto}.tab-empty{padding:24px;color:var(--muted);text-align:center}@media(max-width:700px){.topbar .project-switcher{min-width:0}.topbar .topbar-right{gap:2px}.tabbed-workspace .topbar{padding:0 4px;gap:4px}.tabbed-workspace .topbar-right>button:last-child{display:none}.project-switcher button{padding:0 9px;min-height:44px}.session-tab{min-width:120px;max-width:185px;min-height:44px}.tabbed-workspace .terminal-heading .terminal-status{font-size:10px}.tabbed-workspace .workspace-footnote>span:first-child{display:none}}.app-shell:not(.tabbed-workspace) .project-switcher{display:none}.tabbed-workspace .project-action-area{flex-shrink:0;max-height:25%;overflow-y:auto}@media(max-width:700px){.topbar .demo-badge,.topbar .local-badge{display:none}.breadcrumb>:not(button):not(strong){display:none}}.prompt-history{padding:12px 16px;max-height:45%;min-height:140px;overflow-y:auto;flex-shrink:0;border-bottom:1px solid var(--border);background:var(--surface);font-size:13px}.prompt-history-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.prompt-history-actions label{display:grid;gap:6px;flex:1;min-width:120px}.prompt-history-actions input{width:100%;min-height:36px}.prompt-history-actions button{min-height:36px}.prompt-history-hint,.prompt-history small{color:var(--muted);line-height:1.6}.prompt-history article{padding:12px 0;border-top:1px solid var(--border)}.prompt-history-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;-webkit-user-select:text;user-select:text}.session-tab>[role=tab]{min-width:0;flex:1;justify-content:flex-start;padding:0 4px 0 12px;gap:8px;font-size:12px}.session-tab-close{flex:0 0 28px;min-height:40px;color:var(--subtle)}.session-tab.drop-target{box-shadow:inset 3px 0 var(--accent)}.session-tab-strip{position:relative}.session-state{width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:var(--subtle)}.session-state.running{background:var(--success)}.session-state.waiting{background:var(--warning);border-radius:1px;transform:rotate(45deg)}.session-state.responded{background:var(--accent)}.session-state.error{background:var(--error);border-radius:1px}.session-state.exited,.session-state.idle{background:transparent;border:1px solid var(--subtle)}.project-attention{display:inline-flex;justify-content:center;align-items:center;min-width:17px;height:17px;padding:0 4px;border-radius:8px;font-size:10px;background:var(--warning-soft);color:var(--warning)}.session-list-popover,.session-context-menu{background:var(--surface);color:var(--foreground);border:1px solid var(--border);border-radius:8px;box-shadow:0 8px 28px #0005;z-index:80}.session-list-popover{position:absolute;right:8px;top:calc(100% + 4px);width:min(350px,calc(100vw - 24px));padding:10px}.session-list-popover label{display:grid;gap:8px;font-size:12px;color:var(--muted)}.session-list-popover input{width:100%;background:var(--canvas);color:var(--foreground);border:1px solid var(--border);border-radius:5px;padding:8px}.session-list-results{max-height:min(360px,calc(100dvh - 230px));overflow-y:auto;margin-top:8px}.session-list-results button{justify-content:flex-start;width:100%;padding:10px 6px;text-align:left;font-size:12px}.session-list-results button>span:not(.session-state){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.session-list-results small{color:var(--muted);white-space:nowrap}.session-list-results p{font-size:12px;color:var(--muted);padding:10px}.session-context-menu{position:fixed;width:200px;padding:5px}.session-context-menu button{display:flex;justify-content:flex-start;min-height:36px;width:100%;padding:8px;font-size:12px;border-radius:4px}.session-context-menu button small{margin-left:auto;color:var(--muted);font-size:10px}.session-context-menu .danger{color:var(--error)}.session-context-menu hr{border:0;border-top:1px solid var(--border);margin:4px}.tab-empty p{font-size:13px;line-height:1.6}.tab-empty button{padding:8px 12px;border:1px solid var(--border);border-radius:5px}@media(pointer:coarse){.session-tab-close{flex-basis:44px;min-height:44px}}.tabbed-workspace .topbar{position:relative;z-index:90}.toolbar-popover{position:relative;display:flex}.toolbar-popover .has-filter{color:var(--warning);background:var(--warning-soft)}.toolbar-popover-panel{position:absolute;top:calc(100% + 10px);right:0;width:min(660px,calc(100vw - 24px));max-height:calc(100dvh - 110px);overflow-y:auto;background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:10px;box-shadow:0 8px 28px #0005}.tabbed-workspace .toolbar-popover-panel .terminal-toolbar{align-items:flex-start;flex-direction:column}.tabbed-workspace .toolbar-popover-panel .filter-tabs,.tabbed-workspace .toolbar-popover-panel .layout-tools{flex-wrap:wrap}.tabbed-workspace .toolbar-popover-panel .project-action-area{max-height:none}.project-popover-path{margin:4px 8px 12px;color:var(--muted);overflow-wrap:anywhere;font-size:12px}.tabbed-workspace .terminal-title strong{display:none}.tabbed-workspace .terminal-title>span{margin:0}@media(max-width:700px){.tabbed-workspace .topbar-right>button[aria-label=查找项目或会话]{display:none}.tabbed-workspace .toolbar-popover-panel{position:fixed;top:52px;right:8px}.desktop-shell .tabbed-workspace .toolbar-popover-panel{top:calc(52px + var(--titlebar-height))}.tabbed-workspace .terminal-heading{height:36px}}@media(prefers-reduced-motion:reduce){.session-tab button{transition:none}}.agent-installation{display:grid;gap:8px;margin:12px 0;overflow-wrap:anywhere}.agent-installation>button{justify-self:start}.agent-installation p{margin:4px 0}.session-tools fieldset{min-width:0;display:grid;gap:10px;border:1px solid var(--border);border-radius:8px;padding:12px}.session-tools legend{padding:0 6px}.prompt-save-form{display:grid;gap:10px;padding:14px 0;border-top:1px solid var(--border)}.prompt-save-form label{display:grid;gap:6px}.prompt-save-form :is(input,textarea){width:100%;padding:8px;min-height:36px;font:inherit;color:var(--foreground);background:var(--background);border:1px solid var(--border);border-radius:6px}.prompt-save-form textarea{resize:vertical}.context-material-viewer{min-width:0;border:1px solid var(--border);border-radius:8px;padding:12px}.context-material-viewer summary{min-height:44px;padding:12px 0;cursor:pointer}.context-material-viewer[open]{display:grid;gap:12px}.context-material-viewer select,.context-material-viewer textarea{max-width:100%;min-width:0}.dialog.usage-dialog{width:960px}.dialog.workspace-dialog{width:1100px}.dialog>header>div{min-width:0;overflow-wrap:anywhere}.dialog>header>button{flex:none}:where(.dialog) label{min-width:0}:where(.dialog) :is(input,select,textarea){max-width:100%}.dialog label:has(>input:is([type=checkbox],[type=radio])){flex-direction:row;align-items:center;min-height:44px}.dialog input:is([type=checkbox],[type=radio]){flex:0 0 18px;width:18px;height:18px;min-height:18px;margin:0;padding:0;accent-color:var(--accent)}.dialog .team-workspace form{padding:0}.dialog>:is(.remote-settings,.desktop-local,.task-workspace){padding:0 25px 24px}.dialog :is(.remote-settings,.task-workspace) form{padding:0}@media(max-width:700px){.dialog>:is(.remote-settings,.desktop-local,.task-workspace){padding:0 18px 18px}}.desktop-updates{display:grid;gap:10px;margin-block:16px}.desktop-updates>button{justify-self:start;min-height:44px}.desktop-updates pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto}
