/* Functional chat controls only. Chimera's existing theme, FX, fonts,
   backgrounds, message styling and composer layout remain authoritative. */
#chat-jump-latest[hidden] { display: none; }
#chat-jump-latest {
    position: absolute; top: -38px; left: calc(50% - 17px); z-index: 20;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--bg-panel); color: var(--text-main);
    border: 1px solid var(--surface-glass-border); cursor: pointer;
}
#chat-jump-latest svg { width: 16px; height: 16px; }
#chat-response-status {
    padding: 0 28px 8px; text-align: center; font-size: 11px;
    color: var(--text-dim); line-height: 1.5;
}
#chat-response-status:empty { display: none; }
#model-selector-title { font-size: 18px; font-weight: 600; margin: 0; padding: 20px 20px 4px; }
#model-selector-modal .model-search-wrap { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
#model-selector-modal .model-search-wrap > svg { width: 18px; height: 18px; flex-shrink: 0; }
#model-selector-modal .model-search-input { min-width: 0; width: 100%; padding-left: 12px; }
/* Keep the existing mobile shell, but don't reserve the hidden sidebar column. */
@media (max-width: 1000px) {
    html:not(.chimera-right-panel-enabled) body.chat-panel-active #main-container { grid-template-columns: minmax(0, 1fr); }
}
/* Prevent hidden overlays from scrolling the shell on input focus; FX are unchanged. */
body.chat-panel-active { overflow: clip !important; }

/* Source-backed TA stays within a readable measure; original theme and FX remain. */
#chat-panel .msg-bubble.copilot-market-summary { max-width: 88ch; overflow-wrap: anywhere; }
#chat-panel .copilot-market-summary li { margin-bottom: .65em; }
