/* One composer moves between the existing home and the conversation surface. */
#wb-home-composer-slot .wb-composer{margin:32px 0 0;width:100%;max-width:none}
#wb-chat-composer-slot{flex:none;width:100%;min-width:0}
.wb-stage.chat-only #wb-chat-composer-slot .wb-composer{margin-left:auto;margin-right:auto}
#wb-chat-input:focus,#wb-chat-input:focus-visible{outline:none;box-shadow:none}
#wb-chat-form{view-transition-name:composer-surface}
.wb-composer{padding:12px 14px;gap:8px}
.wb-composer-toolbar{display:flex;align-items:center;justify-content:flex-end;min-height:34px;gap:12px}
.wb-composer .wb-send{width:34px;height:34px}
.wb-linked-page{display:inline-flex;align-items:center;flex:none;width:18px;height:18px;color:var(--foreground-muted);cursor:default}
.wb-linked-page svg{width:15px;height:15px}
.wb-thread-status{display:inline-flex;align-items:center;justify-content:center;flex:0 0 16px;width:16px;height:16px;color:color-mix(in srgb,var(--accent) 35%,var(--surface))}
.wb-thread-status:before{content:'';width:8px;height:8px;border-radius:50%;background:currentColor}
.wb-thread-status[data-state=running]:before{animation:wb-status-blink 1.4s ease-in-out infinite}
.wb-thread-status[data-state=completed]{color:var(--accent-pressed)}
/* Keep SVGs out of inline text baselines so hover surfaces center on the glyphs. */
#wb-entry [data-icon],#wb-chat-controls [data-icon],#wb-history-new [data-icon]{display:flex;align-items:center;justify-content:center;flex:none;width:20px;height:20px;line-height:0}
#wb-chat-controls .wb-icon,#wb-entry-new .wb-icon,#wb-history-button .wb-icon,#wb-history-new .wb-icon{display:block;width:20px;height:20px}
.wb-agent-title{gap:6px}
.wb-entry:not(.chat-open){--entry-extra:60px}
#wb-entry .wb-icon-button,#wb-chat-controls .wb-icon-button,#wb-history-new{padding:0;line-height:0;color:var(--foreground-muted)}
#wb-entry .wb-icon-button:hover,#wb-chat-controls .wb-icon-button:hover,#wb-history-new:hover{background:color-mix(in srgb,var(--foreground-muted) 10%,transparent)}
.wb-entry:not(.chat-open) .wb-agent-title{padding:0 12px 0 8px}
.wb-agent-title #wb-entry-label{min-width:0;text-overflow:clip}
.wb-agent-title #wb-entry-label[data-overflow=true]{mask-image:linear-gradient(to right,#000 calc(100% - 24px),transparent)}
.wb-entry.chat-open #wb-history-button{opacity:1;visibility:visible;pointer-events:auto;transform:none}
.wb-entry.chat-open .wb-agent-title{cursor:default;max-width:calc(100% - 36px);padding:0 4px 0 8px}
.wb-entry.chat-open .wb-agent-title:hover{background:transparent}
#wb-chat-close,#wb-chat-expand,.wb-icon-button{border-radius:var(--radius-md)}
#wb-history-button{position:relative}
#wb-history-button.has-unread:after{content:'';position:absolute;right:4px;top:4px;width:5px;height:5px;border-radius:50%;background:var(--accent)}
.wb-history-heading{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.wb-history-heading label{margin:0;flex:1}
.wb-history-heading .wb-icon-button{width:28px;height:28px}
.wb-history-item{border-radius:var(--radius-md)}
.wb-history-item strong{display:flex;align-items:center;gap:8px}
.wb-history-item strong>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wb-history-item .wb-thread-status{margin-left:auto}
.wb-history-meta{display:flex;align-items:center;gap:6px;min-height:18px;margin-top:2px}
.wb-history-meta .wb-linked-page{width:16px;height:16px}
.wb-chat-notice{position:fixed;bottom:24px;left:calc(var(--nav-w) + 24px);z-index:45;max-width:540px;padding:10px 14px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface-overlay);box-shadow:var(--shadow-overlay);font:400 var(--type-caption)/20px var(--sans);pointer-events:none}
@keyframes wb-status-blink{0%,100%{opacity:1}50%{opacity:.35}}
::view-transition-group(composer-surface){animation-duration:230ms;animation-timing-function:cubic-bezier(.22,.8,.24,1);overflow:clip}
::view-transition-old(composer-surface),::view-transition-new(composer-surface){height:100%;object-fit:none;object-position:left top;animation-duration:230ms;mix-blend-mode:normal}
@media(prefers-reduced-motion:reduce){.wb-thread-status[data-state=running]:before{animation:none}}

/* Ask Nulli stays beside the title. The slot keeps its size while the icon fades. */
#asset-d-detail-fix #wb-overview :is(.bd-asset-title,.bd-composition-head,.bd-section-label).asset-quote-head,
#asset-d-detail-fix #wb-performance :is(.pf-metric-heading,.pf-chart-heading,.pf-source-heading,.pf-heading-label).asset-quote-head,
#asset-d-detail-fix #wb-transactions :is(.ac-card>h2,.ac-heading-label).asset-quote-head,
#asset-d-detail-fix #wb-research .rs-article>h2.asset-quote-head{display:flex;align-items:center;justify-content:flex-start;gap:8px;height:auto;min-height:24px}
#asset-d-detail-fix #wb-assets .asset-summary-heading.asset-quote-head{height:auto;min-height:24px}
#asset-d-detail-fix button.asset-quote{width:24px;min-width:24px;height:24px;min-height:24px;margin-left:0;padding:0;border:0;border-radius:10px;background:transparent;color:var(--accent)}
#asset-d-detail-fix button.asset-quote.asset-quote-end{margin-left:auto}
#asset-d-detail-fix button.asset-quote svg{width:16px;height:16px}
#asset-d-detail-fix button.asset-quote:is(:hover,:focus-visible){background:color-mix(in srgb,var(--foreground) 8%,transparent);color:var(--accent)}
#asset-d-detail-fix button.asset-quote:disabled{opacity:.25;pointer-events:none}
#asset-d-detail-fix #wb-strategy :is(.st-position-actions,.st-discovery-actions)>.asset-quote+*{margin-left:0}
@media(hover:none),(pointer:coarse){#asset-d-detail-fix button.asset-quote{opacity:1;pointer-events:auto}#asset-d-detail-fix button.asset-quote:disabled{opacity:.25;pointer-events:none}}

#asset-d-detail-fix #wb-performance .pf-metric-heading>h2,#asset-d-detail-fix #wb-transactions .ac-card h2>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
