/* Chat · contraste coherente con las apariencias de Plataforma Central. */
@media screen {
html:has(#history) body #app {color:var(--pc-ink)}
html:has(#history) body #app :is(.brand,.brand span,#menu,.new-chat,#history button,#research-history button,.mode-tabs button,.account) {color:var(--pc-ink)!important}
html:has(#history) body #app :is(#history button:hover,#history button.selected,#research-history button:hover,#research-history button.selected,.mode-tabs .mode-selected,.new-chat:hover) {background:var(--pc-brand-50)!important;color:var(--pc-ink)!important}
html:has(#history) body #app :is(.sidebar-foot,.sidebar-foot span,.eyebrow,#welcome p,#status,.caption,.research-intro,.field-hint,#research-form>label,.research-options,#research-queries,.public-confirm,#research-stage,#research-warning-list,#research-sources small,#research-unverified,.benchmark-intro,#benchmark-status,#benchmark-content p,#benchmark-content .benchmark-date) {color:var(--pc-muted)!important}
html:has(#history) body #app .message.assistant::before {color:var(--pc-muted)!important}
html:has(#history) body #app :is(#history,#research-history,.sidebar-foot) {position:relative;z-index:1;background:var(--pc-surface)}
html:has(#history) body #app .message.user {background:var(--pc-brand-50)!important;color:var(--pc-ink)!important;border:1px solid var(--pc-line)}
html:has(#history) body #app .message.assistant {color:var(--pc-ink)!important;background:var(--pc-bg);border-radius:14px;padding:12px 16px}
html:has(#history) body #app :is(.message.assistant a,#research-findings a,#research-sources a,#research-unverified a) {color:var(--pc-brand)!important;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;border-color:var(--pc-brand)!important}
html:has(#history) body #app :is(.message.assistant a:hover,.message.assistant a:focus-visible,#research-findings a:hover,#research-sources a:hover) {color:var(--pc-ink)!important}
html:has(#history) body #app :is(.message.assistant blockquote,#research-sources blockquote,#benchmark-content .benchmark-note) {color:var(--pc-ink-2)!important;border-left-color:var(--pc-brand)!important;background:var(--pc-surface);padding:10px 14px;border-radius:0 8px 8px 0}
html:has(#history) body #app :is(.message pre,.message.assistant code,.response-table thead th,#research-topic:read-only) {color:var(--pc-ink)!important;background:var(--pc-surface)!important;border-color:var(--pc-line)!important}
html:has(#history) body #app .message.assistant pre code {background:transparent!important}
html:has(#history) body #app :is(.response-table,.response-table th,.response-table td,#research-preview,#research-progress,#research-warnings,#research-report,#research-limits,.message.assistant hr) {border-color:var(--pc-line)!important}
html:has(#history) body #app :is(.research-options select,#research-panel button,.benchmark-heading button) {background:var(--pc-surface)!important;color:var(--pc-ink)!important;border-color:var(--pc-line)!important}
html:has(#history) body #app #research-panel .research-primary {background:var(--pc-night)!important;color:#edf6ff!important}
html:has(#history) body #app :is(#prompt,#research-topic) {color:var(--pc-ink)!important}
html:has(#history) body #app textarea::placeholder {color:var(--pc-muted)!important;opacity:1!important}
html:has(#history) body #app :is(#send:disabled,#research-panel button:disabled) {color:var(--pc-muted)!important;background:var(--pc-brand-50)!important;border-color:var(--pc-line)!important;opacity:1}
html:has(#history) body #app .benchmark-state {background:var(--pc-brand-50)!important;color:var(--pc-ink)!important}
html:has(#history) body #app :is(.message.error,#research-notice,#benchmark-content .benchmark-unsupported) {color:var(--pc-ink)!important}
html:has(#history) body #app :is(button,a,textarea,select):focus-visible {outline:2px solid var(--pc-brand)!important;outline-offset:3px}
}
