/* EUROSPACE_WIDGET_CHAT_PALETTE_V1 — структура Chat Message App (Figma 7:12530)
   в брендовых цветах EUROSPACE. Загружается после базовых стилей виджета;
   !important нужен, потому что тёмная тема приходит из JS-инъекции позже. */

:root{
  --es-chat-brown:#6e4333!important;
  --es-chat-brown-dark:#543226!important;
  --es-chat-beige:#f5efeb!important;
  --es-chat-bg:#ffffff!important;
  --es-chat-border:#e8ded8!important;
  --es-chat-text:#302a27!important;
  --es-chat-muted:#857a74!important;
}

.es23-chat .es23-head{background:#ffffff!important;border-bottom-color:#e8ded8!important}
.es23-chat .es23-messages{background:#ffffff!important}
.es23-chat .es23-msg,
.es23-chat .es23-msg.is-bot,
.es23-chat .es23-msg.is-human{background:#f5efeb!important;border-color:#e8ded8!important;color:#302a27!important}
.es23-chat .es23-msg.is-user{background:#ede4df!important;border-color:#e0d3cb!important;color:#302a27!important}

body.es23-theme-dark .es23-chat .es23-head{background:#17181a!important;border-bottom-color:#2b2b2e!important}
body.es23-theme-dark .es23-chat .es23-messages{background:#121315!important}
body.es23-theme-dark .es23-msg,
body.es23-theme-dark .es23-msg.is-bot,
body.es23-theme-dark .es23-msg.is-human{background:#1e2024!important;border-color:#2b2b2e!important;color:#e9edf0!important}
body.es23-theme-dark .es23-msg.is-user{background:#3a2a22!important;border-color:#3a2a22!important;color:#f2e9e4!important}
body.es23-theme-dark .es23-chat{border-color:#2b2b2e!important;background:#121315!important}

/* Тёмная тема в базовом CSS зашивает зелёный акцент (#2f6f4e) минуя переменные. */
body.es23-theme-dark .es23-send,
body.es23-theme-dark .es23-choice-human,
body.es23-theme-dark .es23-primary{background:#6e4333!important;border-color:#6e4333!important;color:#fff!important}
body.es23-theme-dark .es23-file{color:#ead9cf!important}
body.es23-theme-dark .es23-who button,
body.es23-theme-dark .es23-avatar{color:#ead9cf!important}
