:root{--agent-row-h:56px;--agent-avatar-xs:24px;--agent-avatar-sm:32px;--agent-avatar-md:40px;--agent-avatar-lg:72px;--agent-tone-0:#016a71;--agent-tone-1:#2563eb;--agent-tone-2:#0f9f6e;--agent-tone-3:#db2777;--agent-tone-4:#d97706;--agent-tone-5:#7c3aed;--agent-tone-6:#dc2626;--agent-tone-7:#0891b2;--agent-tone-auto:#6f6b63;--agent-bubble:#f3f0eb}html.dark:has(.chat-shell){--agent-tone-auto:#5c5a54;--agent-bubble:#232320}.agent-av{position:relative;display:inline-grid;flex:none;place-items:center;width:var(--agent-avatar-md);height:var(--agent-avatar-md);border-radius:12px;background:var(--agent-tone-0);color:#fff}.agent-av[data-tone="1"]{background:var(--agent-tone-1)}.agent-av[data-tone="2"]{background:var(--agent-tone-2)}.agent-av[data-tone="3"]{background:var(--agent-tone-3)}.agent-av[data-tone="4"]{background:var(--agent-tone-4)}.agent-av[data-tone="5"]{background:var(--agent-tone-5)}.agent-av[data-tone="6"]{background:var(--agent-tone-6)}.agent-av[data-tone="7"]{background:var(--agent-tone-7)}.agent-av[data-tone=auto]{background:var(--agent-tone-auto)}.agent-av.is-xs{width:var(--agent-avatar-xs);height:var(--agent-avatar-xs);border-radius:7px}.agent-av.is-sm{width:var(--agent-avatar-sm);height:var(--agent-avatar-sm);border-radius:10px}.agent-av.is-lg{width:var(--agent-avatar-lg);height:var(--agent-avatar-lg);border-radius:22px}.agent-av-glyph{width:72%;height:72%}.agent-av-glyph.is-icon{width:52%;height:52%}.agent-av-img{position:absolute;inset:0;display:block;width:100%;max-width:none;height:100%;border-radius:inherit;background:var(--chat-surface);object-fit:cover}.agent-av:has(.agent-av-img){background:var(--chat-surface-hover)}.agent-av-status{position:absolute;right:-2px;bottom:-2px;width:12px;height:12px;border:2px solid var(--chat-sidebar);border-radius:50%;background:var(--chat-success-solid)}.agent-av-status.is-running{background:var(--chat-accent);animation:agent-av-pulse 1.4s ease-in-out infinite}.agent-av-status.is-waiting{background:var(--chat-warning-solid)}.agent-av-status.is-failed{background:var(--chat-danger-solid)}@keyframes agent-av-pulse{50%{box-shadow:0 0 0 4px color-mix(in srgb,var(--chat-accent) 25%,transparent)}}@media (prefers-reduced-motion:reduce){.agent-av-status.is-running{animation:none}}.chat-sidebar .agent-search{display:flex;align-items:center;gap:8px;height:34px;margin:2px 1px 4px;padding:0 10px;border:1px solid var(--chat-border);border-radius:var(--chat-radius-md);background:var(--chat-surface);color:var(--chat-subtle)}.chat-sidebar .agent-search:focus-within{border-color:color-mix(in srgb,var(--chat-accent) 45%,var(--chat-border))}.chat-sidebar .agent-search svg{width:14px;height:14px;flex:none}.chat-sidebar .agent-search input{flex:1;min-width:0;border:0;outline:none;background:transparent;color:var(--chat-text);font:inherit;font-size:13px}.chat-sidebar .agent-search input::placeholder{color:var(--chat-subtle)}.chat-sidebar .agent-search input::-webkit-search-cancel-button{cursor:pointer}.chat-sidebar .agent-section{margin-bottom:6px}.chat-sidebar .agent-section-label{padding:8px 10px 4px;color:var(--chat-subtle);font-size:11px;font-weight:600;letter-spacing:.02em;text-transform:uppercase}.chat-sidebar .agent-pinned-list{margin-left:6px;padding-left:8px;border-left:0}.chat-sidebar .agent-group{margin-bottom:4px;border-radius:var(--chat-radius-lg)}.chat-sidebar .agent-group.is-open{margin:6px 0 10px;background:color-mix(in srgb,var(--chat-surface-hover) 45%,transparent)}.chat-sidebar .agent-row{display:grid;grid-template-columns:var(--agent-avatar-md) minmax(0,1fr) auto;gap:10px;align-items:center;min-height:var(--agent-row-h);padding:8px;border-radius:var(--chat-radius-lg);color:var(--chat-text);text-decoration:none}.chat-sidebar .agent-group.is-open .agent-row,.chat-sidebar .agent-row:hover{background:var(--chat-surface-hover)}.chat-sidebar .agent-row:focus-visible{outline:2px solid var(--chat-focus);outline-offset:-2px}.chat-sidebar .agent-row-text{display:flex;flex-direction:column;min-width:0}.chat-sidebar .agent-row-name{overflow:hidden;font-size:14px;font-weight:600;line-height:19px;text-overflow:ellipsis;white-space:nowrap}.chat-sidebar .agent-row-sub{margin-top:1px;overflow:hidden;color:var(--chat-muted);font-size:12.5px;line-height:17px;text-overflow:ellipsis;white-space:nowrap}.chat-sidebar .agent-row-sub.is-running{color:var(--chat-accent)}.chat-sidebar .agent-row-sub.is-waiting{color:var(--chat-warning)}.chat-sidebar .agent-row-meta{display:flex;flex-direction:column;align-items:flex-end;align-self:start;gap:6px;padding-top:3px}.chat-sidebar .agent-row-time{color:var(--chat-subtle);font-size:11.5px;white-space:nowrap;font-variant-numeric:tabular-nums}.chat-sidebar .agent-row-dot{width:8px;height:8px;border-radius:50%;background:var(--chat-accent)}.chat-sidebar .agent-row-chev{width:14px;height:14px;color:var(--chat-subtle);opacity:0;transition:transform .18s ease,opacity .15s ease}.chat-sidebar .agent-group.is-open .agent-row-chev,.chat-sidebar .agent-row:focus-visible .agent-row-chev,.chat-sidebar .agent-row:hover .agent-row-chev{opacity:1}.chat-sidebar .agent-group.is-open .agent-row-chev{transform:rotate(180deg)}.chat-sidebar .agent-conv-list.chat-history-group-items{gap:4px;margin-left:0;padding:6px 6px 8px;border-left:0}.chat-sidebar .agent-conv-list .chat-history-row{min-height:36px;margin:0}.chat-sidebar .agent-conv-list .chat-history-title{min-height:36px;padding:8px 8px 8px 10px}.chat-sidebar .agent-conv-list .chat-history-row.is-active{background:var(--chat-surface);box-shadow:inset 0 0 0 1px var(--chat-border)}.chat-sidebar .agent-conv-list .chat-history-row.is-active.is-menu-open,.chat-sidebar .agent-conv-list .chat-history-row.is-active:has(:focus-visible),.chat-sidebar .agent-conv-list .chat-history-row.is-active:hover{background:var(--chat-surface-hover)}.chat-sidebar .agent-conv-list .chat-history-row.is-active:before{content:none}.chat-sidebar .agent-conv-more{align-self:flex-start;margin:4px 0 0 2px;padding:6px 8px;border-radius:var(--chat-radius-sm);color:var(--chat-accent);font-size:12.5px;text-decoration:none}.chat-sidebar .agent-conv-more:hover{background:var(--chat-accent-soft)}.chat-title.agent-conv-head{display:flex;flex:0 1 auto;align-items:center;gap:10px;min-width:0;margin-right:auto;color:var(--chat-text);text-decoration:none}.agent-conv-head-text{display:flex;flex-direction:column;min-width:0}.agent-conv-head-name{font-size:15px;font-weight:600;line-height:19px}.agent-conv-head-name,.agent-conv-head-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.agent-conv-head-title{color:var(--chat-muted);font-size:12.5px;line-height:16px}.agent-conv-head:hover .agent-conv-head-name{text-decoration:underline;text-underline-offset:3px}.agent-intro{display:flex;flex-direction:column;align-items:center;margin:8px 0 18px;padding:22px 12px 26px;border-bottom:1px dashed var(--chat-border);text-align:center}.agent-intro h2{margin:12px 0 4px;color:var(--chat-text);font-size:22px;font-weight:600;letter-spacing:-.015em}.agent-intro p{max-width:460px;margin:0;color:var(--chat-muted);font-size:13.5px;line-height:1.5}.agent-tags{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:12px}.agent-tag{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border:1px solid var(--chat-border);border-radius:999px;background:var(--chat-surface-raised);color:var(--chat-muted);font-size:12px;text-decoration:none}a.agent-tag:hover{color:var(--chat-text)}.agent-tag.is-ok{border-color:transparent;background:var(--chat-success-soft);color:var(--chat-success)}.agent-thread .chat-transcript-day{margin:6px 0 18px;color:var(--chat-subtle);font-size:12px;text-align:center}.agent-turn{display:grid;grid-template-columns:var(--agent-avatar-sm) minmax(0,1fr);gap:12px;margin-top:18px}.agent-turn.is-continued{margin-top:6px}.agent-turn-avatar{padding-top:2px}.agent-turn-body{min-width:0}.agent-msg-author{display:flex;align-items:baseline;gap:8px;margin:0 0 4px;color:var(--chat-text);font-size:13px;font-weight:600;line-height:18px}.agent-msg-author time{color:var(--chat-subtle);font-size:11.5px;font-weight:400}.agent-turn .chat-msg-row{margin-bottom:0}.agent-turn .chat-msg-assistant{display:flex;flex-direction:column;align-items:flex-start;padding:0}.agent-turn .chat-msg-assistant .chat-msg-prose{box-sizing:border-box;width:fit-content;max-width:min(100%,680px);padding:11px 15px;border-radius:4px 16px 16px 16px;background:var(--agent-bubble);color:var(--chat-message-text);font-family:var(--font-inter),Inter,ui-sans-serif,system-ui,sans-serif;font-size:15px;line-height:1.6}.agent-turn.is-continued .chat-msg-assistant .chat-msg-prose{border-radius:16px}.agent-turn .chat-msg-assistant .chat-msg-prose:has(pre,table,.chat-code-highlighter){width:100%;max-width:100%}.agent-turn .chat-msg-prose>:first-child{margin-top:0}.agent-turn .chat-msg-prose>:last-child{margin-bottom:0}.agent-turn .chat-msg-prose :is(p,li){font-size:inherit;line-height:inherit}.agent-turn .chat-msg-prose code:not(pre code){padding:1px 5px;border-radius:5px;background:var(--chat-surface);font-size:.86em}.agent-turn .chat-msg-prose :is(pre,.chat-code-highlighter){border:1px solid var(--chat-border);border-radius:var(--chat-radius-md);background:var(--chat-surface)}.agent-turn .chat-msg-prose table{overflow:hidden;border-radius:var(--chat-radius-md);background:var(--chat-surface)}.agent-turn .chat-msg-prose :is(th,td){padding:6px 10px}.agent-turn .chat-msg-actions{margin-top:4px}.agent-turn .chat-msg-assistant>:is(div,section):not(.chat-msg-prose):not(.chat-msg-actions),.agent-turn-body>.external-agent-run-card-list{max-width:min(100%,680px)}.agent-turn .chat-msg-assistant>:is(.chat-html-artifact-block,.chat-course-block){align-self:stretch}.agent-thread .chat-msg-row:not(:has(>.chat-msg-assistant)){margin:16px 0}.agent-thread .chat-msg-user{padding:11px 15px;border:0;border-radius:16px 16px 4px 16px;background:var(--chat-user-message-bg);box-shadow:none;font-size:15px;line-height:1.6}.agent-thread .chat-user-message-row>.chat-msg-user{max-width:min(520px,calc(100% - 88px))}.chat-msg-assistant .chat-timeline{width:auto;max-width:100%;margin:2px 0 8px;padding:0;border:0}.chat-msg-assistant .chat-timeline .chat-timeline-summary{display:inline-flex;width:auto;max-width:100%;min-height:26px;gap:8px;padding:3px 10px;border:1px solid var(--chat-border);border-radius:999px;background:var(--chat-surface);color:var(--chat-muted);font-size:12.5px}.chat-msg-assistant .chat-timeline .chat-timeline-summary:hover{border-color:var(--chat-border-strong);color:var(--chat-text)}.chat-msg-assistant .chat-timeline .chat-timeline-title,.chat-msg-assistant .chat-timeline.is-complete .chat-timeline-title{color:inherit}.chat-msg-assistant .chat-timeline .chat-timeline-summary-icon.is-done{color:var(--chat-success)}.chat-msg-assistant .chat-timeline .chat-timeline-summary-icon.is-done .chat-timeline-svg{width:13px;height:13px;stroke-width:2.4}.chat-msg-assistant .chat-timeline-meta{color:var(--chat-subtle);white-space:nowrap}.chat-msg-assistant .chat-timeline.is-live .chat-timeline-summary{border-color:color-mix(in srgb,var(--chat-accent) 35%,var(--chat-border));color:var(--chat-accent)}.chat-msg-assistant .chat-timeline.is-failed .chat-timeline-summary{border-color:color-mix(in srgb,var(--chat-danger) 35%,var(--chat-border))}.chat-msg-assistant .chat-timeline.is-incomplete .chat-timeline-summary{border-color:color-mix(in srgb,var(--chat-warning) 35%,var(--chat-border))}.chat-msg-assistant .chat-timeline-details[open]>.chat-timeline-disclosure-content{margin-top:6px;padding:4px 12px;border:1px solid var(--chat-border);border-radius:var(--chat-radius-lg);background:var(--chat-surface)}.chat-workspace.agent-page{--ap-max:1120px;--ap-rail:340px;--ap-gap:28px;--ap-row-h:64px;flex:1;align-items:stretch;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}.agent-page-wrap{box-sizing:border-box;width:100%;max-width:var(--ap-max);margin:0 auto;padding:28px 28px 56px}.agent-hero{display:flex;align-items:flex-start;gap:20px}.agent-hero-text{flex:1;min-width:0}.agent-hero h1{margin:2px 0 4px;color:var(--chat-text);font-size:26px;font-weight:600;letter-spacing:-.02em}.agent-hero p{max-width:620px;margin:0;color:var(--chat-muted);line-height:1.55}.agent-hero .agent-tags{justify-content:flex-start;margin-top:12px}.agent-hero-actions{display:flex;flex:none;gap:8px}.agent-btn{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border:1px solid var(--chat-border);border-radius:var(--chat-radius-md);background:var(--chat-surface);color:var(--chat-text);font-size:13px;font-weight:500;text-decoration:none;white-space:nowrap}.agent-btn:hover{background:var(--chat-surface-hover)}.agent-btn.is-icon{justify-content:center;width:34px;padding:0}.agent-btn.is-primary{border-color:#000;background:#000;color:#fff}.agent-btn.is-primary:hover{border-color:var(--chat-text);background:var(--chat-text)}html.dark .agent-btn.is-primary{border-color:#fff;background:#fff;color:#000}html.dark .agent-btn.is-primary:hover{border-color:#e4e1da;background:#e4e1da}.agent-btn svg{width:15px;height:15px}.agent-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:24px 0 28px}.agent-stat{padding:12px 14px;border:1px solid var(--chat-border);border-radius:var(--chat-radius-lg);background:var(--chat-surface);color:var(--chat-text);font:inherit;text-align:left;transition:border-color .15s,background .15s}button.agent-stat{cursor:pointer}button.agent-stat:hover{border-color:var(--chat-border-strong);background:var(--chat-surface-raised)}.agent-stat small{display:flex;align-items:center;gap:6px;color:var(--chat-muted);font-size:12px}.agent-stat b{display:block;margin-top:4px;color:var(--chat-text);font-size:20px;font-weight:600;letter-spacing:-.01em}.agent-stat em{margin-left:6px;color:var(--chat-subtle);font-size:12px;font-style:normal;font-weight:400;letter-spacing:0}.agent-stat.is-warn{border-color:color-mix(in srgb,var(--chat-warning-solid) 45%,var(--chat-border));background:var(--chat-warning-soft)}.agent-stat.is-warn b,.agent-stat.is-warn small{color:var(--chat-warning)}.agent-stat-dot{width:7px;height:7px;border-radius:50%;background:var(--chat-accent)}.agent-st.is-run,.agent-stat-dot.is-run{animation:agent-pulse 1.4s infinite}@keyframes agent-pulse{50%{box-shadow:0 0 0 4px color-mix(in srgb,var(--chat-accent) 25%,transparent)}}.agent-grid{display:grid;grid-template-columns:minmax(0,1fr) var(--ap-rail);gap:var(--ap-gap);align-items:start}.agent-grid>*{min-width:0}.agent-grid.is-single{grid-template-columns:minmax(0,1fr)}.agent-tabs{display:flex;gap:4px;margin-bottom:14px;overflow-x:auto;border-bottom:1px solid var(--chat-border);scrollbar-width:none}.agent-tab{position:relative;display:inline-flex;flex:none;white-space:nowrap;align-items:center;gap:7px;height:38px;padding:0 10px;border:0;background:none;color:var(--chat-muted);font:inherit;font-size:14px;font-weight:500;cursor:pointer}.agent-tab:hover,.agent-tab[aria-selected=true]{color:var(--chat-text)}.agent-tab[aria-selected=true]:after{position:absolute;right:8px;bottom:0;left:8px;height:2px;border-radius:2px;background:var(--chat-text);content:""}.agent-tab-n{display:inline-grid;place-items:center;min-width:20px;height:18px;padding:0 6px;border-radius:9px;background:var(--chat-surface-hover);color:var(--chat-muted);font-size:11px;font-weight:600}.agent-tools{flex-wrap:wrap;gap:10px;margin-bottom:6px}.agent-search,.agent-tools{display:flex;align-items:center}.agent-search{flex:1;gap:8px;min-width:220px;height:36px;padding:0 10px;border:1px solid var(--chat-border);border-radius:var(--chat-radius-md);background:var(--chat-surface);transition:border-color .15s}.agent-search:focus-within{border-color:var(--chat-border-strong)}.agent-search>svg{flex:none;width:15px;height:15px;color:var(--chat-subtle)}.agent-search input{flex:1;min-width:0;border:0;outline:0;background:none;color:var(--chat-text);font:inherit;font-size:13.5px}.agent-search input::placeholder{color:var(--chat-subtle)}.agent-search kbd{padding:0 5px;border:1px solid var(--chat-border);border-radius:4px;color:var(--chat-subtle);font:500 11px inherit}.agent-search-clear{display:grid;place-items:center;width:20px;height:20px;padding:0;border:0;border-radius:50%;background:none;color:var(--chat-subtle);cursor:pointer}.agent-search-clear:hover{background:var(--chat-surface-hover)}.agent-search-clear svg{width:12px;height:12px}.agent-seg{display:inline-flex;padding:2px;border:1px solid var(--chat-border);border-radius:var(--chat-radius-md);background:var(--chat-surface-raised)}.agent-seg button{height:30px;padding:0 10px;border:0;border-radius:6px;background:transparent;color:var(--chat-muted);font:inherit;font-size:12.5px;white-space:nowrap;cursor:pointer}.agent-seg button[aria-pressed=true]{background:var(--chat-surface);box-shadow:0 0 0 1px var(--chat-border);color:var(--chat-text)}.agent-chips{display:flex;flex-wrap:wrap;gap:6px}.agent-chip{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 9px;border:1px solid var(--chat-border);border-radius:999px;background:var(--chat-surface);color:var(--chat-muted);font:inherit;font-size:12.5px;white-space:nowrap;cursor:pointer}.agent-chip:hover{color:var(--chat-text)}.agent-chip[aria-pressed=true]{border-color:var(--chat-text);background:var(--chat-surface-raised);color:var(--chat-text)}.agent-chip i{width:7px;height:7px;border-radius:2px}.agent-chip i.is-wf{background:var(--chat-accent)}.agent-chip i.is-au{background:var(--chat-info)}.agent-chip i.is-ch{background:var(--chat-success)}.agent-chip i.is-le{background:var(--chat-warning)}.agent-chip i.is-sk{background:var(--chat-violet)}.agent-result-line{min-height:18px;margin:8px 2px 2px;color:var(--chat-subtle);font-size:12px}.agent-day{padding:16px 4px 6px;color:var(--chat-muted);font-size:12px;font-weight:600}.agent-crow{display:flex;align-items:center;gap:14px;min-height:var(--ap-row-h);padding:10px 12px;border-radius:var(--chat-radius-lg);color:var(--chat-text);text-decoration:none}.agent-crow:hover{background:var(--chat-surface-hover)}.agent-crow-body{flex:1;min-width:0}.agent-crow-title{display:flex;align-items:center;gap:7px;overflow:hidden;font-size:14.5px;font-weight:500;white-space:nowrap}.agent-crow-title>span:last-child{overflow:hidden;text-overflow:ellipsis}.agent-crow-title .agent-row-dot{flex:none;width:7px;height:7px;border-radius:50%;background:var(--chat-accent)}.agent-crow-title .agent-pin{flex:none;width:12px;height:12px;color:var(--chat-subtle)}.agent-crow-preview{margin-top:2px;overflow:hidden;color:var(--chat-muted);font-size:13px;text-overflow:ellipsis;white-space:nowrap}.agent-crow mark{padding:0 1px;border-radius:3px;background:color-mix(in srgb,var(--chat-warning-solid) 28%,transparent);color:inherit}.agent-crow-meta{display:flex;flex:none;flex-direction:column;align-items:flex-end;gap:5px;color:var(--chat-subtle);font-size:12px}.agent-pill{display:inline-flex;align-items:center;height:20px;padding:0 7px;border-radius:999px;font-size:11px;font-weight:500;white-space:nowrap}.agent-pill.is-run,.agent-pill.is-running{background:var(--chat-accent-soft);color:var(--chat-accent)}.agent-pill.is-wait,.agent-pill.is-waiting{background:var(--chat-warning-soft);color:var(--chat-warning)}.agent-pill.is-fail,.agent-pill.is-failed{background:var(--chat-danger-soft);color:var(--chat-danger)}.agent-pill.is-ok{background:var(--chat-success-soft);color:var(--chat-success)}.agent-pill.is-mute{background:var(--chat-surface-hover);color:var(--chat-muted)}.agent-empty{margin-top:12px;padding:40px 16px;border:1px dashed var(--chat-border);border-radius:var(--chat-radius-lg);color:var(--chat-muted);text-align:center}.agent-empty b{display:block;margin-bottom:4px;color:var(--chat-text);font-weight:500}.agent-empty button{margin-top:10px;padding:0;border:0;background:none;color:var(--chat-accent);font:inherit;font-size:13px;cursor:pointer}.agent-pager{justify-content:space-between;gap:12px;margin-top:16px;padding-top:14px;border-top:1px solid var(--chat-border);color:var(--chat-muted);font-size:12.5px}.agent-pager,.agent-pages{display:flex;align-items:center}.agent-pages{gap:4px}.agent-pages button{display:inline-grid;place-items:center;min-width:32px;height:32px;padding:0 8px;border:0;border-radius:var(--chat-radius-md);background:none;color:var(--chat-muted);font:inherit;font-size:13px;cursor:pointer}.agent-pages button:hover:not(:disabled){background:var(--chat-surface-hover);color:var(--chat-text)}.agent-pages button[aria-current=page]{background:var(--chat-text);color:var(--chat-canvas);font-weight:600}.agent-pages button:disabled{opacity:.35;cursor:default}.agent-pages svg{width:14px;height:14px}.agent-pages-gap{padding:0 4px;color:var(--chat-subtle)}.agent-ev{position:relative;display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:12px;padding:12px;border-radius:var(--chat-radius-lg)}.agent-ev:hover{background:var(--chat-surface-hover)}.agent-ev+.agent-ev:before{position:absolute;top:-12px;left:27px;width:1px;height:24px;background:var(--chat-border);content:""}.agent-ico{display:grid;flex:none;place-items:center;width:32px;height:32px;border-radius:9px}.agent-ico svg{width:16px;height:16px}.agent-ico.is-wf{background:var(--chat-accent-soft);color:var(--chat-accent)}.agent-ico.is-au{background:var(--chat-info-soft);color:var(--chat-info)}.agent-ico.is-ch{background:var(--chat-success-soft);color:var(--chat-success)}.agent-ico.is-le{background:var(--chat-warning-soft);color:var(--chat-warning)}.agent-ico.is-me,.agent-ico.is-sk{background:var(--chat-violet-soft);color:var(--chat-violet)}.agent-ev-head{color:var(--chat-text);font-size:13.5px;line-height:1.45;overflow-wrap:anywhere}.agent-ev-head b{font-weight:600}.agent-ev-sub{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:3px;color:var(--chat-muted);font-size:12.5px}.agent-ev-text{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}.agent-ev-sub a{color:var(--chat-accent);text-decoration:none;white-space:nowrap}.agent-ev-sub a:hover{text-decoration:underline}.agent-ev-meta{align-items:flex-end;gap:5px;color:var(--chat-subtle);font-size:12px;white-space:nowrap}.agent-ev-meta,.agent-rail{display:flex;flex-direction:column}.agent-rail{position:sticky;top:0;gap:16px}.agent-card{overflow:hidden;border:1px solid var(--chat-border);border-radius:var(--chat-radius-xl);background:var(--chat-surface)}.agent-card-h{display:flex;align-items:center;gap:8px;padding:14px 16px 10px}.agent-card-h h3{flex:1;margin:0;color:var(--chat-text);font-size:14px;font-weight:600}.agent-card-h a{color:var(--chat-accent);font-size:12.5px;text-decoration:none}.agent-card-h a:hover{text-decoration:underline}.agent-card-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--chat-warning-solid);color:var(--chat-on-solid,#fff);font-size:11px;font-weight:700}.agent-card-empty{padding:4px 16px 16px;color:var(--chat-muted);font-size:13px}.agent-rtabs{display:flex;gap:2px;padding:0 10px 10px;overflow-x:auto;scrollbar-width:none}.agent-rtabs button{display:inline-flex;flex:none;align-items:center;gap:5px;height:26px;padding:0 9px;border:0;border-radius:999px;background:none;color:var(--chat-muted);font:inherit;font-size:12px;white-space:nowrap;cursor:pointer}.agent-rtabs button span{color:var(--chat-subtle);font-size:11px}.agent-rtabs button[aria-pressed=true]{background:var(--chat-surface-hover);color:var(--chat-text);font-weight:500}.agent-rv-item{padding:12px 16px;border-top:1px solid var(--chat-border)}.agent-rv-item.is-done{opacity:.55}.agent-rv-kind{display:flex;align-items:center;gap:6px;font-size:11.5px;font-weight:600;letter-spacing:.01em}.agent-rv-kind.is-le{color:var(--chat-warning)}.agent-rv-kind.is-sk{color:var(--chat-violet)}.agent-rv-kind.is-me{color:var(--chat-info)}.agent-rv-kind svg{width:13px;height:13px}.agent-rv-kind small{margin-left:auto;color:var(--chat-subtle);font-size:11.5px;font-weight:400}.agent-rv-title{margin:6px 0 0;font-weight:500}.agent-rv-body,.agent-rv-title{color:var(--chat-text);font-size:13px;line-height:1.5}.agent-rv-body{display:-webkit-box;margin:4px 0 0;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:4}.agent-rv-edit{box-sizing:border-box;width:100%;margin-top:6px;padding:8px 10px;border:1px solid var(--chat-border-strong);border-radius:var(--chat-radius-md);background:var(--chat-surface);color:var(--chat-text);font:inherit;font-size:13px;line-height:1.5;resize:vertical}.agent-rv-src{margin-top:4px;color:var(--chat-muted);font-size:12px}.agent-rv-src a{color:var(--chat-accent);text-decoration:none}.agent-rv-error{margin-top:6px;color:var(--chat-danger);font-size:12px}.agent-rv-act{display:flex;gap:6px;margin-top:10px}.agent-rv-act button{height:28px;padding:0 10px;border:1px solid var(--chat-border);border-radius:7px;background:none;color:var(--chat-text);font:inherit;font-size:12.5px;font-weight:500;cursor:pointer}.agent-rv-act button:hover:not(:disabled){background:var(--chat-surface-hover)}.agent-rv-act button:disabled{opacity:.5;cursor:default}.agent-rv-act button.is-ok{border-color:var(--chat-text);background:var(--chat-text);color:var(--chat-canvas)}.agent-rv-act button.is-ok:hover:not(:disabled){background:var(--chat-text);opacity:.88}.agent-rv-act button.is-ghost{border-color:transparent;color:var(--chat-muted)}.agent-rv-res{margin-top:8px;color:var(--chat-text);font-size:12px;font-weight:500}.agent-rv-more{display:block;width:100%;padding:10px 16px;border:0;border-top:1px solid var(--chat-border);background:none;color:var(--chat-accent);font:inherit;font-size:12.5px;text-align:left;cursor:pointer}.agent-rv-more:hover{background:var(--chat-surface-hover)}.agent-all-done{padding:20px 16px 22px;border-top:1px solid var(--chat-border);color:var(--chat-muted);font-size:13px;text-align:center}.agent-all-done.is-static{border-top:0;padding-top:6px}.agent-all-done svg{display:block;width:22px;height:22px;margin:0 auto 6px;color:var(--chat-success-solid)}.agent-card-f{padding:10px 16px;border-top:1px solid var(--chat-border);font-size:12.5px}.agent-card-f button{padding:0;border:0;background:none;color:var(--chat-accent);font:inherit;cursor:pointer}.agent-grp{padding:4px 8px 10px}.agent-grp h4{display:flex;align-items:center;gap:6px;margin:8px 8px 4px;color:var(--chat-subtle);font-size:11.5px;font-weight:600;letter-spacing:.03em;text-transform:uppercase}.agent-grp h4 em{font-style:normal;font-weight:500;letter-spacing:0;text-transform:none}.agent-pl{display:flex;align-items:center;gap:10px;padding:8px;border-radius:var(--chat-radius-md);color:var(--chat-text);text-decoration:none}.agent-pl:hover{background:var(--chat-surface-hover)}.agent-pl .agent-ico{width:28px;height:28px;border-radius:8px}.agent-pl .agent-ico svg{width:14px;height:14px}.agent-pl-b{flex:1;min-width:0}.agent-pl-b b,.agent-pl-b small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.agent-pl-b b{font-size:13px;font-weight:500}.agent-pl-b small{color:var(--chat-muted);font-size:12px}.agent-st{flex:none;width:8px;height:8px;border-radius:50%;background:var(--chat-success-solid)}.agent-st.is-run{background:var(--chat-accent)}.agent-st.is-wait{background:var(--chat-warning-solid)}.agent-st.is-off{background:var(--chat-border-strong)}.agent-st.is-err{background:var(--chat-danger-solid)}@media (max-width:1100px){.agent-grid{grid-template-columns:minmax(0,1fr)}.agent-rail{position:static}}@media (max-width:720px){.chat-title.agent-conv-head{display:flex}.agent-conv-head-title{display:none}.agent-page-wrap{padding:20px 16px 40px}.agent-hero{flex-wrap:wrap}.agent-hero-actions{width:100%}.agent-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.agent-stats .agent-stat:last-child:nth-child(odd){grid-column:1/-1}.agent-search{flex-basis:100%;min-width:0}.agent-chips,.agent-seg{max-width:100%;overflow-x:auto;scrollbar-width:none}.agent-chips{flex-wrap:nowrap}.agent-crow{padding:10px 8px}.agent-pager{flex-direction:column;align-items:flex-start}}.agent-turn .chat-msg-prose code:after,.agent-turn .chat-msg-prose code:before{content:none}.agent-turn .chat-msg-prose>*>:first-child,.agent-turn .chat-msg-prose>:first-child{margin-top:0}.agent-turn .chat-msg-prose>*>:last-child,.agent-turn .chat-msg-prose>:last-child{margin-bottom:0}.agent-turn .chat-msg-prose .chat-code-highlighter :is(pre,code){border:0;background:transparent}.agent-turn .chat-msg-prose .chat-code-highlighter{margin:10px 0;overflow:hidden}.agent-typing{display:inline-flex;align-items:center;gap:4px;padding:12px 14px;border-radius:4px 16px 16px 16px;background:var(--agent-bubble)}.agent-turn.is-continued .agent-typing{margin-top:2px;border-radius:16px}.agent-typing i{width:6px;height:6px;border-radius:50%;background:var(--chat-subtle);animation:agent-typing-bounce 1.2s infinite}.agent-typing i:nth-child(2){animation-delay:.15s}.agent-typing i:nth-child(3){animation-delay:.3s}@keyframes agent-typing-bounce{30%{transform:translateY(-3px);opacity:.5}}@media (prefers-reduced-motion:reduce){.agent-typing i{animation:none}}.chat-streaming.is-agent-typing{margin:0;padding:0}.chat-streaming.is-agent-typing .agent-turn.is-continued{margin-top:6px}.agent-turn .chat-msg-assistant .chat-msg-prose:empty{display:none}.chat-shell{--conv-thread-max:960px;--conv-bubble-max:760px;--composer-min-h:56px;--composer-radius:28px;--composer-icon:36px}.agent-thread.is-wide{max-width:var(--conv-thread-max)}.agent-thread.is-wide .agent-turn .chat-msg-assistant .chat-msg-prose{max-width:min(100%,var(--conv-bubble-max))}.agent-thread.is-wide .agent-turn .chat-msg-assistant .chat-msg-prose:has(pre,table,.chat-code-highlighter){max-width:100%}.agent-thread.is-wide .agent-turn .chat-msg-assistant>:is(div,section):not(.chat-msg-prose):not(.chat-msg-actions),.agent-thread.is-wide .agent-turn-body>.external-agent-run-card-list{max-width:min(100%,var(--conv-bubble-max))}.agent-thread.is-wide .chat-user-message-row>.chat-msg-user{max-width:min(620px,80%)}.agent-composer-wrap{max-width:var(--conv-thread-max)}.chat-composer.is-agent-bar{max-width:none;border-radius:var(--composer-radius);background:var(--chat-surface-raised);box-shadow:none;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease,border-radius .15s ease}.chat-shell .chat-composer-halo .chat-composer.is-agent-bar,.chat-shell .chat-composer.is-agent-bar{border:1px solid var(--chat-border);box-shadow:none}.chat-shell .chat-composer.is-agent-bar:focus-within{border-color:var(--chat-border-strong);background:var(--chat-surface);box-shadow:none}.chat-composer-halo:has(.is-agent-bar){padding:0;background:none;box-shadow:none}.chat-composer-halo:has(.is-agent-bar):before{display:none}.chat-shell .agent-composer-bar .chat-composer-send{background:#000;color:#fff}.chat-shell .agent-composer-bar .chat-composer-send:hover:not(.is-disabled){background:#27251e}html.dark .chat-shell .agent-composer-bar .chat-composer-send{background:#fff;color:#000}html.dark .chat-shell .agent-composer-bar .chat-composer-send:hover:not(.is-disabled){background:#e4e1da}.chat-composer.is-agent-bar.is-multiline,.chat-composer.is-agent-bar:has(.chat-composer-template){border-radius:22px}.chat-composer.is-agent-bar .chat-composer-template{padding:10px 14px 0}.agent-composer-bar{display:flex;align-items:flex-end;gap:4px;min-height:var(--composer-min-h);padding:9px 10px}.agent-composer-bar .chat-composer-add-wrap{flex:none}.agent-composer-bar .chat-composer-field{flex:1;min-width:0;align-self:center}.agent-composer-bar .chat-composer-field :is(.chat-composer-textarea,.chat-composer-mirror){padding:7px 6px;font-size:15px;line-height:22px}.agent-composer-bar .chat-composer-textarea{display:block;min-height:36px}.agent-composer-end{display:flex;flex:none;align-items:center;gap:2px}.agent-composer-bar :is(.chat-composer-attach,.chat-composer-mic,.chat-composer-send,.chat-composer-stop){width:var(--composer-icon);height:var(--composer-icon)}.agent-composer-bar .chat-composer-attach svg{width:20px;height:20px}.agent-composer-bar .chat-composer-stop{background:var(--chat-text);color:var(--chat-canvas)}.agent-composer-bar .chat-composer-stop:hover{background:var(--chat-text)}.chat-composer-talk.is-compact{display:inline-grid;place-items:center;width:var(--composer-icon);height:var(--composer-icon);padding:0;border:0;border-radius:50%;background:transparent;color:var(--chat-muted);box-shadow:none}.chat-composer-talk.is-compact:hover:not(:disabled){background:var(--chat-surface-hover);color:var(--chat-text)}.chat-composer-talk.is-compact svg{width:20px;height:20px}.agent-composer-icon{display:inline-grid;place-items:center;width:var(--composer-icon);height:var(--composer-icon);border-radius:50%;color:var(--chat-muted)}.agent-composer-icon.is-narrow{width:26px}.agent-composer-icon:hover,.agent-composer-icon[aria-expanded=true]{background:var(--chat-surface-hover);color:var(--chat-text)}.agent-composer-icon svg{width:14px;height:14px}.agent-composer-hint{margin:6px 0 0;color:var(--chat-subtle);font-size:11.5px;text-align:center}.agent-composer-menu-wrap{position:relative;display:inline-flex}.agent-pop{position:absolute;z-index:60;right:0;min-width:220px;padding:6px;border:1px solid var(--chat-border);border-radius:var(--chat-radius-lg,12px);background:var(--chat-surface);box-shadow:0 8px 28px rgba(39,37,30,.12),0 1px 2px rgba(39,37,30,.06);color:var(--chat-text);text-align:left}.agent-pop.is-up{bottom:calc(100% + 8px)}.agent-pop.is-down{top:calc(100% + 6px)}.agent-pop-head{display:block;margin:0;padding:6px 10px 4px;color:var(--chat-subtle);font-size:11px;font-weight:600;letter-spacing:.02em;text-transform:uppercase}.agent-pop-item{display:flex;width:100%;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border-radius:var(--chat-radius-md,8px);font-size:13.5px;text-align:left}.agent-pop-item:hover{background:var(--chat-surface-hover)}.agent-pop-item b{display:block;font-weight:500}.agent-pop-item small{display:block;color:var(--chat-muted);font-size:12px}.agent-pop-item svg{width:14px;height:14px;flex:none;color:var(--chat-accent)}.agent-pop-item.is-danger{color:var(--chat-danger,#dc2626)}.agent-pop-rename{width:280px;padding:8px}.agent-pop-rename input{width:100%;height:34px;margin:4px 0 8px;padding:0 10px;border:1px solid var(--chat-border);border-radius:var(--chat-radius-md,8px);background:var(--chat-surface);color:var(--chat-text);font-size:13.5px}.agent-pop-rename input:focus{outline:none;border-color:color-mix(in srgb,var(--chat-accent) 45%,var(--chat-border))}.agent-pop-actions{display:flex;justify-content:flex-end;gap:6px}.agent-pop-actions button{height:30px;padding:0 12px;border:1px solid var(--chat-border);border-radius:var(--chat-radius-md,8px);font-size:13px}.agent-pop-actions .is-primary{border-color:var(--chat-accent);background:var(--chat-accent);color:var(--chat-on-accent)}.chat-panel-header-controls.is-agent{width:auto;gap:4px}.agent-header-tools{display:flex;align-items:center;gap:6px}.agent-header-model .chat-mp-trigger{height:32px;padding:0 10px 0 12px;border:1px solid var(--chat-border);background:var(--chat-surface);color:var(--chat-text);font-size:13px;font-weight:500}.agent-header-model .chat-mp-trigger:hover:not(:disabled),.agent-header-model .chat-mp-trigger[aria-expanded=true]{border-color:var(--chat-border-strong);background:var(--chat-surface-hover)}.agent-header-model .chat-mp-trigger-effort{color:var(--chat-muted);font-weight:400}.agent-header-icon{position:relative;display:inline-grid;place-items:center;width:32px;height:32px;border-radius:var(--chat-radius-md,8px);color:var(--chat-muted)}.agent-header-icon:hover,.agent-header-icon[aria-expanded=true]{background:var(--chat-surface-hover);color:var(--chat-text)}.agent-header-icon svg{width:17px;height:17px}.agent-header-icon-dot{position:absolute;right:5px;bottom:5px;width:7px;height:7px;border-radius:50%;background:var(--chat-success-solid,#0f9f6e);box-shadow:0 0 0 2px var(--chat-canvas)}.agent-header-icon-dot.is-offline{background:var(--chat-subtle)}@media (max-width:640px){.agent-header-model .chat-mp-trigger-effort{display:none}.agent-header-model .chat-mp-trigger{max-width:160px}.agent-composer-hint{display:none}}.agent-rv-act .agent-rv-link{display:inline-flex;align-items:center;height:28px;padding:0 10px;border:1px solid var(--chat-border);border-radius:7px;color:var(--chat-text);font-size:12.5px;font-weight:500;text-decoration:none}.agent-rv-act .agent-rv-link:hover{background:var(--chat-surface-hover)}