:root {
  --blue: #07883f;
  --wechat: #07c160;
  --wechat-dark: #08783b;
  --chat: #ededed;
  --line: #dedede;
}
::selection { background: #b0e7b8; color: #123b21; }
button, input, textarea { caret-color: #07883f; }
button:focus-visible, a:focus-visible { outline: 2px solid #07883f; outline-offset: 3px; }
.chat-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 12px;
  margin-top: 6px;
  border-radius: 6px;
  color: #075f2e;
  background: #e0f4e6;
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
  flex-shrink: 0;
}
.chat-media-stage .chat-download, .visitor-media-stage .chat-download, .ios-media-stage .chat-download { background: #07c160; color: #06391c; }
.load-older-messages { display: block; margin: 8px auto 20px; min-height: 36px; padding: 8px 16px; background: #fff; border: 1px solid #d3d3d3; border-radius: 6px; color: #386348; font-size: 13px; }
.message-thread, .visitor-messages, .ios-messages { background: #ededed; overflow-anchor: auto; }
.message-bubble-ios { border-radius: 6px; background: #fff; box-shadow: none; font-size: 15px; }
.message-row-ios.own .message-bubble-ios { background: #95ec69; color: #153014; }
.ios-message.own .message-bubble-ios, .ios-message.agent .message-bubble-ios { background: #95ec69; color: #153014; }
.panel-eyebrow { display: none; }
.message-bubble, .row-bubble { border-radius: 6px; box-shadow: none; color: #202020; background: #fff; font-size: 15px; line-height: 1.65; }
.message-row.agent .message-bubble, .visitor-row.visitor .row-bubble { background: #95ec69; color: #153014; border-color: #95ec69; }
.message-meta, .message-status, .row-status { font-size: 11px; color: #667269; }
.message-status.read, .row-status.read { color: #08713b; }
.message-avatar, .visitor-avatar, .avatar { border-radius: 7px; }
.chat-header, .visitor-header { background: #f7f7f7; border-bottom: 1px solid #dcdcdc; box-shadow: none; }
.composer, .visitor-composer { background: #f7f7f7; border-top: 1px solid #dedede; }
.composer-input textarea, .visitor-input-row textarea { border-radius: 6px; background: #fff; font-size: 16px; }
#sendButton, #visitorSendButton, .visitor-input-row > button { background: #078b43; color: #fff; border-radius: 5px; }
.header-title > span { font-size: 12px; font-weight: 600; white-space: normal; line-height: 1.5; }
.header-title.online > span { color: #086d35; }
.header-title.busy > span { color: #855307; }
.header-title.offline > span { color: #5d655f; }
.header-title.online i { background: #07a74e; }
.header-title.busy i { background: #b57716; }
.header-title.offline i { background: #68766c; }
.sidebar { background: #292b2a; }
.conversation-panel { background: #f5f5f5; border-color: #dcdcdc; }
.conversation-item { border-radius: 0; border-bottom: 1px solid #e7e7e7; }
.conversation-item.active { background: #dedede; box-shadow: none; border-left-color: transparent; }
.conversation-item:hover { background: #e8e8e8; }
.conversation-top strong { font-size: 14px; color: #252525; }
.conversation-preview { font-size: 12px; color: #676e69; }
.conversation-top time { font-size: 11px; color: #686e69; }
.presence-label.online, .header-presence.online { color: #08733b; }
.presence-label.offline, .header-presence.offline { color: #646c66; }
.conversation-top .presence-label { display: inline-flex; font-size: 10px; }
.unread-count { background: #e94b43; }
.chat-name { font-size: 17px; }
.chat-media-viewer, .visitor-media-viewer, .ios-media-viewer { backdrop-filter: none; -webkit-backdrop-filter: none; }
.media-preview-trigger video, .visitor-media-trigger video { min-width: 180px; min-height: 110px; background: #252925; }
@media (max-width: 820px) {
  .message-bubble, .row-bubble { font-size: 15px; }
  .message-thread { padding: 14px 12px; }
  .chat-meta { font-size: 11px; }
  .chat-header { min-height: 64px; }
}
@media (max-width: 600px) {
  .visitor-header { min-height: calc(68px + env(safe-area-inset-top)); }
  .header-title > span { font-size: 11px; }
  .visitor-row .row-body { max-width: 80%; }
  .visitor-tools { grid-template-columns: 36px minmax(0, 1fr) minmax(0, 1fr); }
  .visitor-tools #visitorEmojiButton { grid-column: 1; grid-row: 1; }
  .visitor-tools #visitorFileButton { grid-column: 2 / 4; grid-row: 1; }
  .visitor-tools #visitorVoiceButton { grid-column: 1 / 3; grid-row: 2; }
  .visitor-tools #visitorAiButton { grid-column: 3; grid-row: 2; }
  .visitor-tools button { min-height: 36px; font-size: 11px; }
  .visitor-app.keyboard-open .header-title > span { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
