/* Visual-only companion; never loaded when AI_FEATURE_ENABLED is false. */
.portal-earth .ai-chat-panel { background: #fffcf7; border-color: #d4c9bb; color: #302b25; box-shadow: 0 12px 36px rgba(48,43,37,.2); }
.portal-earth .ai-chat-header { background: #536045; color: #fff; }
.portal-earth .ai-chat-header button { background: transparent; color: white; }
.portal-earth .ai-chat-scope { background: #edf1e6; color: #3d4932; }
.portal-earth :is(.ai-chat-body, .ai-chat-composer, .ai-chat-data-level, .ai-chat-context-row) { background: #fffcf7; border-color: #d4c9bb; }
.portal-earth :is(.ai-chat-data-level label, .ai-chat-context-hint, .ai-chat-privacy) { color: #716657; }
.portal-earth .ai-chat-message { background: #f0e8da; color: #302b25; }
.portal-earth .ai-chat-message.is-assistant { background: #f0e8da; color: #302b25; }
.portal-earth .ai-chat-message.is-user { background: #536045; color: white; }
.portal-earth .ai-chat-message.is-error { background: #fbeee8; color: #833926; border-color: #dfb9ab; }
.portal-earth .ai-chat-messages { background: #fffcf7; }
.portal-earth .ai-chat-panel .ai-chat-data-level { padding: 4px 10px; gap: 6px; font-size: .7rem; }
.portal-earth .ai-chat-panel .ai-chat-data-level label { margin: 0; font-size: .7rem; }
.portal-earth .ai-chat-panel #aiChatCollectionLevel { box-sizing: border-box; min-width: 130px; min-height: 28px; height: 28px; padding: 3px 6px; font-size: .7rem; }
.portal-earth .ai-chat-suggestions button { background: #edf1e6; color: #3d4932; border-color: #bcc8ac; }
.portal-earth .ai-chat-source { color: var(--earth-muted); }
.portal-earth .ai-chat-progress { color: var(--earth-muted); }
.portal-earth .ai-chat-info-content { background: var(--earth-surface); color: var(--earth-ink); border-color: var(--earth-control); }
.portal-earth .ai-chat-info-toggle, .portal-earth .ai-chat-resize-grip { color: var(--earth-ink); background: transparent; }
.portal-earth .ai-chat-panel .ai-chat-info-toggle { width: 20px; height: 20px; min-height: 20px; padding: 0; border: 1px solid currentColor; border-radius: 50%; background: transparent; color: #b42318; box-shadow: none; }
.portal-earth .ai-chat-panel .ai-chat-resize-grip { min-height: 20px; padding: 0; background: transparent; color: var(--earth-muted); border: 0; box-shadow: none; }
.portal-earth .ai-chat-panel :is(.ai-chat-info-toggle, .ai-chat-resize-grip):hover { background: var(--earth-hover); color: var(--earth-ink); }
.portal-earth .ai-chat-panel .ai-chat-info-toggle:hover { color: #b42318; }
html[data-portal-theme=dark] .portal-earth .ai-chat-panel,
html[data-portal-theme=dark] .portal-earth :is(.ai-chat-body, .ai-chat-composer, .ai-chat-data-level, .ai-chat-context-row, .ai-chat-messages) { background: var(--earth-surface); color: var(--earth-ink); border-color: var(--earth-control); }
html[data-portal-theme=dark] .portal-earth :is(.ai-chat-data-level label, .ai-chat-context-hint, .ai-chat-privacy) { color: var(--earth-muted); }
html[data-portal-theme=dark] .portal-earth .ai-chat-message.is-assistant { background: var(--earth-soft); color: var(--earth-ink); }
html[data-portal-theme=dark] .portal-earth :is(.ai-chat-composer textarea, .ai-chat-data-level select, .ai-chat-clear-visual, .ai-chat-suggestions button) { background: var(--earth-field); color: var(--earth-ink); border-color: var(--earth-control); }
html[data-portal-theme=dark] .portal-earth .ai-chat-panel :is(.ai-chat-info-toggle, .ai-chat-resize-grip) { background: transparent; color: var(--earth-ink); border-color: var(--earth-control); }
html[data-portal-theme=dark] .portal-earth .ai-chat-panel :is(.ai-chat-info-toggle, .ai-chat-resize-grip):hover { background: var(--earth-hover); color: var(--earth-ink); }
html[data-portal-theme=dark] .portal-earth .ai-chat-panel .ai-chat-info-toggle,
html[data-portal-theme=dark] .portal-earth .ai-chat-panel .ai-chat-info-toggle:hover { color: #ff8a80; border-color: currentColor; }
.portal-earth :is(.ai-state.is-info, .ai-state.is-loading, .ai-guardrail-summary) { background: #edf1e6; color: #3d4932; border-color: #bcc8ac; }
.portal-earth .ai-admin-heading p, .portal-earth .ai-admin-panel small { color: #716657; }
