/* Conversation adapters consume the shared desktop theme; no local palette. */
html:not([data-app-appearance="neutral"]) body.desktop-live-active #chat-panel {
  --chat-canvas-bg: var(--app-canvas-bg);
  --chat-header-bg: var(--app-header-bg);
  --chat-header-fg: var(--app-header-fg);
  --chat-header-border: var(--app-border);
  --chat-header-control-hover: color-mix(in srgb, var(--app-header-fg) 12%, transparent);
  --chat-menu-bg: var(--app-surface);
  --chat-menu-fg: var(--app-text);
  --chat-menu-border: var(--app-border);
  --chat-menu-hover: var(--app-surface-raised);
  --chat-menu-icon-bg: var(--app-surface-muted);
  --chat-menu-icon-filter: brightness(0) invert(1);
  --chat-surface: var(--app-surface);
  --chat-surface-solid: var(--app-surface);
  --chat-input-bg: transparent;
  --chat-text-primary: var(--app-text);
  --chat-text-muted: var(--app-text-muted);
  --chat-border: var(--app-border);
  --chat-accent: var(--app-primary);
  --chat-focus-ring: var(--app-focus);
  --chat-user-bubble-bg: var(--app-user-bubble);
  --chat-user-bubble-fg: var(--app-user-text);
  --chat-assistant-bubble-bg: var(--app-surface);
  --chat-assistant-bubble-fg: var(--app-text);
  --chat-assistant-bubble-border: transparent;
  --chat-date-bg: var(--app-surface);
  --chat-date-fg: var(--app-text-muted);
  --chat-date-border: transparent;
  --chat-system-notice-bg: var(--app-surface-muted);
  --chat-system-notice-fg: var(--app-text);
  --chat-system-notice-border: var(--app-border);
  --chat-compose-attach-bg: transparent;
  --chat-compose-voice-bg: transparent;
  --chat-compose-send-bg: var(--app-primary);
  --chat-compose-neutral-fg: var(--app-text-muted);
  --chat-compose-send-fg: var(--app-primary-fg);
}
html:not([data-app-appearance="neutral"]) body.desktop-live-active :is(#chat-content, .voice-mode-chat-overlay)::before { display: none; }
html:not([data-app-appearance="neutral"]) body.desktop-live-active #chat-panel .bot > .msg { box-shadow: none; }
html:not([data-app-appearance="neutral"]) body.desktop-live-active #chat-panel .em-act { color: var(--app-text-muted); opacity: 1; }
html:not([data-app-appearance="neutral"]) body.desktop-live-active #chat-panel .msg-container:not(.bot):not(.story):not(.system-notice) > .msg { border-radius: 20px 20px 5px 20px; }
html:not([data-app-appearance="neutral"]) body.desktop-live-active #chat-panel :is(#chat-story-header-host, #chat-session-header-host) {
  --story-header-bg: var(--app-surface);
  --story-header-title-color: var(--app-text);
  --story-header-progress-color: var(--app-text-muted);
  --session-header-bg: var(--story-header-bg);
  --session-header-title-color: var(--story-header-title-color);
  --session-header-progress-color: var(--story-header-progress-color);
}
html:not([data-app-appearance="neutral"]) body.desktop-live-active #voice_mode-panel {
  --desktop-voice-dock-bg: var(--app-surface);
  --desktop-voice-dock-border: var(--app-border);
  background: var(--app-canvas-bg);
}
html:not([data-app-appearance="neutral"]) body.desktop-live-active #voice_mode-panel .voice-mode-shell {
  background: var(--app-canvas-bg); border: 0; box-shadow: none; animation: none;
}
html:not([data-app-appearance="neutral"]) body.desktop-live-active #voice_mode-panel .voice-mode-shell.voice-hot { box-shadow: none; }
html:not([data-app-appearance="neutral"]) body.desktop-live-active #voice_mode-panel .voice-mode-topbar { background: var(--app-header-bg); border-color: var(--app-border); color: var(--app-header-fg); }
html:not([data-app-appearance="neutral"]) body.desktop-live-active #voice_mode-panel .voice-mode-indicator { background: var(--app-voice-label-bg); border-color: var(--app-voice-label-border); color: var(--app-header-fg); }
html:not([data-app-appearance="neutral"]) body.desktop-live-active #voice_mode-panel .voice-mode-profile-pill { background: var(--app-surface-muted); border-color: var(--app-border); color: var(--app-primary); font-weight: 500; }
html:not([data-app-appearance="neutral"]) body.desktop-live-active #voice_mode-panel .voice-mode-chat-overlay { background: none; }
html:not([data-app-appearance="neutral"]) body.desktop-live-active #voice_mode-panel .voice-bubble-assistant { background: var(--app-surface); color: var(--app-text); box-shadow: none; }
html:not([data-app-appearance="neutral"]) body.desktop-live-active #voice_mode-panel .voice-bubble-user { background: var(--app-user-bubble); color: var(--app-user-text); border-radius: 20px 20px 5px 20px; }
html:not([data-app-appearance="neutral"]) body.desktop-live-active #voice_mode-panel .voice-bubble-speaker-label { color: var(--app-primary); margin-bottom: 8px; font-weight: 500; }
html:not([data-app-appearance="neutral"]) body.desktop-live-active #voice_mode-panel .voice-mode-text-input { background: transparent; border: 0; color: var(--app-text); }
html:not([data-app-appearance="neutral"]) body.desktop-live-active #voice_mode-panel .voice-mode-text-input::placeholder { color: var(--app-text-muted); }
html:not([data-app-appearance="neutral"]) body.desktop-live-active #voice_mode-panel .voice-mode-text-input:focus { box-shadow: none; }
html:not([data-app-appearance="neutral"]) body.desktop-live-active #voice_mode-panel .voice-mode-text-composer:focus-within { border-color: var(--app-primary); }
html:not([data-app-appearance="neutral"]) body.desktop-live-active #voice_mode-panel .voice-mode-text-send { background: var(--app-primary); color: var(--app-primary-fg); border-radius: 50%; }
html:not([data-app-appearance="neutral"]) body.desktop-live-active #voice_mode-panel :is(.voice-mic-btn, .voice-settings-btn) { background: var(--app-control-bg); color: var(--app-control-fg); }
html:not([data-app-appearance="neutral"]) body.desktop-live-active #voice_mode-panel .voice-mic-btn.muted { background: var(--app-danger-soft); color: var(--app-danger); }
html:not([data-app-appearance="neutral"]) body.desktop-live-active #voice_mode-panel .voice-mode-participant-btn.active { border-color: var(--app-primary); box-shadow: 0 0 0 3px var(--app-focus); }
html:not([data-app-appearance="neutral"]) body.desktop-live-active #voice_mode-panel .voice-mode-status { color: var(--app-text); font-weight: 500; }
html:not([data-app-appearance="neutral"]) body.desktop-live-active #voice_mode-panel .voice-mode-shell.voice-hot .voice-mode-status { color: var(--app-primary); text-shadow: none; }
html:not([data-app-appearance="neutral"]) body.desktop-live-active #chat-panel .bot > .msg,
html:not([data-app-appearance="neutral"]) body.desktop-live-active #voice_mode-panel .voice-bubble-assistant {
  padding: 10px 14px; border-radius: 16px 16px 16px 5px;
}

html:not([data-app-appearance="neutral"]) body.desktop-live-active #chat-panel:not(.conversation-display-single):not(.conversation-display-faded):not(.chat-background-visible) :is(#chat-bg, #bg-video) { opacity: 1 !important; }
html:not([data-app-appearance="neutral"]) body.desktop-live-active #chat-panel .chat-multichat-background { --chat-multichat-opacity: 1; }
