/* ═══════════════════════════════════════════════════════════════ */
/* Rainbow Live Chat Core — Sidebar, Chat Items, Messages        */
/* WhatsApp-style UI                                             */
/* ═══════════════════════════════════════════════════════════════ */

.lc-container {
  display: flex;
  height: calc(100vh - 80px);
  /* Adjust for topbar height */
  background: #fff;
  overflow: hidden;
  position: relative;
  border-top: 1px solid #e5e7eb;
}

/* Sidebar */
.lc-sidebar {
  width: 400px;
  flex: 0 0 400px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e5e7eb;
  background: #fff;
  z-index: 10;
}

.lc-sidebar-header {
  padding: 10px 16px;
  background: #f0f2f5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

/* Header top row: Search + Menu */
.lc-sidebar-header>div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.lc-search-wrap {
  background: #f0f2f5;
  border-radius: 8px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  height: 35px;
  flex: 1;
  border: 1px solid #e5e7eb;
}

.lc-search-icon {
  width: 18px;
  height: 18px;
  color: #54656f;
  margin-right: 8px;
  flex-shrink: 0;
}

.lc-search {
  border: none;
  outline: none;
  width: 100%;
  font-size: 14px;
  background: transparent;
  color: #111b21;
}

.lc-sidebar-menu-btn {
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  color: #54656f;
  background: transparent;
  border: none;
}

.lc-sidebar-menu-btn:hover {
  background: #f0f2f5;
}

.lc-instance-filter {
  width: 100%;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  font-size: 12px;
  background-color: #fff;
  color: #54656f;
}

.lc-date-filter-panel {
  overflow: hidden;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.lc-date-filter-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #fff;
  font-size: 12px;
}

.lc-date-filter-label {
  color: #54656f;
  font-weight: 500;
  white-space: nowrap;
}

.lc-date-filter {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  font-size: 12px;
  background-color: #fff;
  color: #111b21;
  flex: 1;
  min-width: 0;
}

.lc-date-filter:focus {
  outline: none;
  border-color: #00a884;
}

.lc-date-filter-separator {
  color: #54656f;
  font-size: 11px;
}

.lc-date-filter-reset {
  padding: 6px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #54656f;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lc-date-filter-reset:hover {
  background: #f0f2f5;
}

.lc-filter-chips {
  display: flex;
  padding: 8px 16px;
  gap: 8px;
  overflow-x: auto;
  border-bottom: 1px solid #f0f2f5;
  scrollbar-width: none;
  /* Hide scrollbar */
}

.lc-chip {
  background: #f0f2f5;
  color: #54656f;
  border-radius: 24px;
  padding: 4px 12px;
  font-size: 13px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.lc-chip:hover {
  background: #e9edef;
}

.lc-chip.active {
  background: #00a884;
  color: #fff;
}

.lc-chat-list {
  flex: 1;
  overflow-y: auto;
  background: #fff;
}

.lc-chat-item {
  display: flex;
  padding: 12px 16px;
  cursor: pointer;
  height: 72px;
  position: relative;
  border-bottom: 1px solid #f0f2f5;
  transition: background 0.2s;
}

.lc-chat-item:hover {
  background: #f5f6f6;
}

.lc-chat-item.active {
  background: #f0f2f5;
}

.lc-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #dfe3e5;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 500;
}

.lc-avatar img, .rc-avatar img,
.lc-header-avatar img, .lc-contact-avatar img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* US-007: Colored initials for contacts without profile picture */
.avatar-initials {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: inherit;
  letter-spacing: 0.5px;
}

.lc-chat-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.lc-chat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.lc-chat-name {
  font-size: 16px;
  color: #111b21;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-chat-time {
  font-size: 12px;
  color: #667781;
}

.lc-chat-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lc-chat-preview {
  font-size: 14px;
  color: #667781;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.lc-bottom-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
}

.lc-unread {
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  padding: 0 4px;
}

.lc-sidebar-empty {
  padding: 40px 20px;
  text-align: center;
  color: #8696a0;
  font-size: 14px;
}

.lc-sidebar-hint {
  font-size: 12px;
  color: #aebac1;
  margin-top: 8px;
}

/* Resizable Divider (US-072) */
.lc-divider {
  width: 4px;
  flex: 0 0 4px;
  background: #e5e7eb;
  cursor: col-resize;
  position: relative;
  z-index: 11;
  transition: background 0.15s;
}

/* Wider invisible hit-area for easier grabbing */
.lc-divider::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -4px;
  right: -4px;
  cursor: col-resize;
}

.lc-divider:hover,
.lc-divider.active {
  background: #00a884;
}

body.lc-resizing {
  cursor: col-resize !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

body.lc-resizing * {
  cursor: col-resize !important;
}

/* Main Chat Area */
.lc-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #efeae2;
  /* WhatsApp default bg */
  position: relative;
  min-width: 0;
}

.lc-chat-header {
  height: 60px;
  background: #f0f2f5;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #d1d7db;
  flex-shrink: 0;
  z-index: 10;
}

.lc-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #dfe3e5;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
}

.lc-header-info {
  display: flex;
  flex-direction: column;
  margin-left: 16px;
  flex: 1;
  cursor: pointer;
}

.lc-header-name {
  font-size: 16px;
  color: #111b21;
  font-weight: 500;
}

.lc-header-phone {
  font-size: 13px;
  color: #667781;
}

.lc-header-actions {
  display: flex;
  gap: 12px;
  color: #54656f;
  align-items: center;
}

.lc-header-actions button {
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  background: transparent;
  border: none;
}

.lc-header-actions button:hover {
  background: #d9dce0;
}

/* Mode Selector (Auto/Copilot/Manual) */
.lc-mode-selector-wrap {
  position: relative;
}

.lc-mode-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px !important;
  border-radius: 50% !important;
  background: #e9edef;
  font-size: 16px;
  line-height: 1;
  width: 32px;
  height: 32px;
}

.lc-mode-icon-only {
  font-style: normal;
}

.lc-mode-btn:hover {
  background: #d1d7db !important;
}

/* Flag Language Selector (US-096) */
.lc-flag-selector-wrap { position: relative; }
.lc-flag-btn {
  display: flex; align-items: center; justify-content: center;
  padding: 4px !important; border-radius: 50% !important;
  background: #e9edef; border: none; cursor: pointer;
  font-size: 18px; width: 32px; height: 32px; line-height: 1;
}
.lc-flag-btn:hover { background: #d1d7db !important; }
.lc-flag-dropdown {
  position: absolute; top: 38px; right: 0; z-index: 100;
  background: #fff; border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
  min-width: 150px; overflow: hidden;
}
.lc-flag-option {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 8px 14px;
  background: none; border: none; cursor: pointer;
  font-size: 13px; color: #111b21; text-align: left;
}
.lc-flag-option:hover { background: #f0f2f5; }
.lc-flag-option.active { background: #e7f8e9; font-weight: 600; }

/* Messages */
.lc-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 8%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background-color: #efeae2;
  /* WhatsApp-style CSS-only doodle pattern (US-182, no external assets) */
  background-image:
    url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cstyle%3E.d%7Bfill:%23ddd8cf;opacity:.45%7D%3C/style%3E%3C/defs%3E%3Cpath class='d' d='M20 15c1.5 0 3-1 3-2.5s-1-2-2.5-2.5c.5-1 0-2.5-1.2-3-.5-1.5-2-2-3.3-1.5-1-1.5-2.8-1.5-3.8 0-1.3-.5-2.8 0-3.3 1.5-1.2.5-1.7 2-1.2 3C6.2 10.5 5 12 5 13.5 5 15.5 7 17 9 17h11z'/%3E%3Ccircle class='d' cx='60' cy='30' r='3'/%3E%3Ccircle class='d' cx='62' cy='30' r='3'/%3E%3Cpath class='d' d='M58 33c0-1.5 2-3 4-3s4 1.5 4 3'/%3E%3Cpath class='d' d='M140 20l2-6 2 6-6-4h8z'/%3E%3Ccircle class='d' cx='100' cy='50' r='6' fill='none' stroke='%23ddd8cf' stroke-width='1.2' opacity='.4'/%3E%3Cpath class='d' d='M100 44v3m0 6v3m-6-6h3m6 0h3'/%3E%3Cpath class='d' d='M30 70l8 0 0 6-8 0z' fill='none' stroke='%23ddd8cf' stroke-width='1' opacity='.35'/%3E%3Cpath class='d' d='M34 70v-3m-2 3v-2'/%3E%3Cpath class='d' d='M170 60c-2 0-3.5 1.5-3.5 3s1.5 3 3.5 3 3.5-1.5 3.5-3-1.5-3-3.5-3zm-1 2.5c-.4 0-.7-.3-.7-.7s.3-.7.7-.7.7.3.7.7-.3.7-.7.7z'/%3E%3Cpath class='d' d='M80 90h12v8H80z' fill='none' stroke='%23ddd8cf' stroke-width='1' opacity='.35'/%3E%3Cpath class='d' d='M82 94h8M82 96h5'/%3E%3Cpath class='d' d='M150 100l-4 8h8z' fill='none' stroke='%23ddd8cf' stroke-width='1' opacity='.4'/%3E%3Cpath class='d' d='M40 130a5 5 0 1 1 10 0 5 5 0 1 1-10 0z' fill='none' stroke='%23ddd8cf' stroke-width='1' opacity='.35'/%3E%3Cpath class='d' d='M42 130h6m-3-3v6'/%3E%3Cpath class='d' d='M120 140l3-8 3 8-8-5h10z' fill='none' stroke='%23ddd8cf' stroke-width='1' opacity='.35'/%3E%3Cpath class='d' d='M175 150c0 0 2-4 4-4s4 4 4 4' fill='none' stroke='%23ddd8cf' stroke-width='1.2' opacity='.4'/%3E%3Cpath class='d' d='M177 146c1-1 2-1.5 2-1.5m4 5.5c0 0 1-.5 2-1.5'/%3E%3Cpath class='d' d='M15 170h6v8h-6z' fill='none' stroke='%23ddd8cf' stroke-width='1' opacity='.3'/%3E%3Ccircle class='d' cx='18' cy='174' r='1.5'/%3E%3Cpath class='d' d='M100 170l5-3v6z'/%3E%3C/svg%3E");
  background-repeat: repeat;
  position: relative;
}

.lc-date-sep {
  text-align: center;
  margin: 8px 0;
  display: flex;
  justify-content: center;
}

.lc-date-sep span {
  background: rgba(255, 255, 255, 0.92);
  color: #54656f;
  padding: 5px 12px 6px;
  border-radius: 7.5px;
  font-size: 12.5px;
  text-transform: uppercase;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, .13);
  letter-spacing: 0.01em;
}

/* Bubbles */
.lc-bubble-wrap {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
  position: relative;
  max-width: 100%;
}

.lc-bubble-wrap.guest {
  align-items: flex-start;
}

.lc-bubble-wrap.bot {
  align-items: flex-end;
}

.lc-bubble {
  padding: 6px 7px 8px 9px;
  border-radius: 7.5px;
  position: relative;
  max-width: 65%;
  font-size: 14.2px;
  line-height: 19px;
  color: #111b21;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, .13);
  word-wrap: break-word;
}

.lc-bubble.guest {
  background: #fff;
  border-top-left-radius: 0;
}

.lc-bubble.bot {
  background: #d9fdd3;
  border-top-right-radius: 0;
}

/* WhatsApp-style bubble tails (US-183) */
.lc-bubble.guest::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  width: 0;
  height: 0;
  border-top: 0 solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid #fff;
}

.lc-bubble.bot::before {
  content: '';
  position: absolute;
  top: 0;
  right: -8px;
  width: 0;
  height: 0;
  border-top: 0 solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid #d9fdd3;
}

/* Consecutive message grouping (US-183) */
.lc-bubble-wrap.continuation {
  margin-bottom: 2px;
}

.lc-bubble-wrap.continuation .lc-bubble.guest {
  border-top-left-radius: 7.5px;
}

.lc-bubble-wrap.continuation .lc-bubble.guest::before {
  display: none;
}

.lc-bubble-wrap.continuation .lc-bubble.bot {
  border-top-right-radius: 7.5px;
}

.lc-bubble-wrap.continuation .lc-bubble.bot::before {
  display: none;
}

.lc-bubble-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: -4px;
  margin-right: -4px;
  margin-bottom: -4px;
  float: right;
  padding-left: 7px;
  color: #667781;
  font-size: 11px;
  height: 15px;
}

.lc-bubble-time {
  margin-right: 3px;
}

.lc-checkmark {
  width: 16px;
  height: 11px;
  color: #53bdeb;
}

/* US-017: Read receipt tick states */
.lc-ticks {
  display: inline-flex;
  align-items: center;
  margin-left: 2px;
}
.lc-ticks svg {
  width: 16px;
  height: 11px;
}

/* Single grey tick — server acknowledged */
.lc-ticks-sent {
  color: #667781;
}
.lc-ticks-sent svg path:last-child {
  display: none;  /* Hide second tick path */
}

/* Double grey ticks — delivered */
.lc-ticks-delivered {
  color: #667781;
}

/* Double blue ticks — read */
.lc-ticks-read {
  color: #53bdeb;
}

/* US-087: Bot avatar prefix */
.lc-bot-avatar {
  font-size: 0.85em;
  margin-right: 2px;
  opacity: 0.85;
}

.lc-manual-tag {
  background: #f0f2f5;
  color: #54656f;
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 600;
  margin-right: 4px;
  border: 1px solid #e5e7eb;
}

.lc-bubble-chevron {
  background: none;
  border: none;
  color: #667781;
  padding: 0;
  cursor: pointer;
  margin-left: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}

.lc-bubble:hover .lc-bubble-chevron {
  opacity: 1;
}

/* System Message Style */
/* Clickable links in messages */
.lc-link {
  color: #027eb5;
  text-decoration: underline;
  word-break: break-all;
}
.lc-link:hover {
  color: #025a82;
}

.lc-system-msg .lc-bubble-text {
  font-family: 'Consolas', monospace;
  font-size: 12px;
  background: #f0f2f5;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  color: #54656f;
  white-space: pre-wrap;
}

.lc-system-data {
  margin-top: 8px;
  border-top: 1px dashed #d1d7db;
  padding-top: 4px;
}

.lc-system-label {
  font-weight: 600;
  font-size: 11px;
  color: #8696a0;
  margin-bottom: 2px;
}

.lc-system-json {
  font-size: 11px;
  color: #0d6efd;
  background: #f8f9fa;
  padding: 4px;
  border-radius: 4px;
  overflow-x: auto;
}

/* ═══════════════════════════════════════════════════════════════ */
/* Chat Simulator — WhatsApp-style overrides (US-113)            */
/* Reuses .lc-* classes; adds .cs-* for simulator-specific parts */
/* ═══════════════════════════════════════════════════════════════ */

/* US-003: Guest Simulation — input box at top of panel */
#quick-test-content .lc-main > .lc-chat-header { order: 0; }
#quick-test-content .lc-main > .cs-meta-bar     { order: 1; }
#quick-test-content .lc-main > .lc-input-area   { order: 2; border-bottom: 1px solid #e5e7eb; border-top: none; }
#quick-test-content .lc-main > .lc-messages      { order: 3; }

.cs-sidebar {
  width: 260px;
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e5e7eb;
  background: #fff;
}

.cs-sidebar-header {
  padding: 10px 12px;
  background: #f0f2f5;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.cs-new-chat-btn {
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 8px;
  background: #00a884;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.cs-new-chat-btn:hover {
  background: #008f72;
}

.cs-sidebar-footer {
  padding: 8px 12px;
  border-top: 1px solid #e5e7eb;
  font-size: 11px;
  color: #8696a0;
  text-align: center;
  background: #f0f2f5;
  flex-shrink: 0;
}

/* Session items in sidebar */
.cs-session-item {
  display: flex;
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f0f2f5;
  transition: background 0.15s;
  align-items: center;
  gap: 10px;
}

.cs-session-item:hover {
  background: #f5f6f6;
}

.cs-session-item.active {
  background: #f0f2f5;
}

.cs-session-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #6366f1;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.cs-session-info {
  flex: 1;
  min-width: 0;
}

.cs-session-title {
  font-size: 14px;
  color: #111b21;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-session-meta {
  font-size: 12px;
  color: #667781;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.cs-session-delete {
  background: none;
  border: none;
  cursor: pointer;
  color: #8696a0;
  padding: 2px;
  border-radius: 50%;
  transition: all 0.15s;
  opacity: 0;
  display: flex;
  align-items: center;
}

.cs-session-item:hover .cs-session-delete {
  opacity: 1;
}

.cs-session-delete:hover {
  background: #fee2e2;
  color: #dc2626;
}

/* Detection meta bar */
.cs-meta-bar {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #e5e7eb;
  padding: 5px 16px;
  font-size: 11px;
  color: #667781;
  min-height: 22px;
  backdrop-filter: blur(4px);
}

/* Dev-only badge strip on simulator bubbles (collapsible, US-146) */
.cs-dev-badges {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  padding: 4px 0 0;
  font-size: 11px;
}

/* Collapsible wrapper for dev badges */
.cs-dev-badges-wrap {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}

.cs-dev-badges-wrap.expanded {
  max-height: 200px;
}

/* Toggle button for dev badges */
.cs-dev-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 10px;
  color: #8696a0;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 2px;
  transition: background 0.15s, color 0.15s;
}

.cs-dev-toggle-btn:hover {
  background: rgba(0,0,0,.06);
  color: #54656f;
}

/* KB files in simulator (subtle) */
.cs-kb-files {
  font-size: 10px;
  color: #8696a0;
  margin-top: 2px;
}

/* Typing indicator bounce animation */
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

/* Spin animation (send button loading) */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* US-006: Subtle chat loading spinner for background refresh */
.lc-chat-spinner {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  padding: 6px 18px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #667781;
}
.lc-chat-spinner::after {
  content: 'Updating...';
}
.lc-chat-spinner-dot {
  width: 14px;
  height: 14px;
  border: 2px solid #e0e0e0;
  border-top-color: #00a884;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}


/* LC-01: Channel filter chips row */
.lc-channel-chips {
  border-bottom: 1px solid #f0f2f5;
  margin-bottom: 0;
  padding-bottom: 6px;
}

/* LC-01: Channel badge on conversation items */
.lc-src {
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em;
  color: var(--lc-muted, #667781); background: var(--lc-hover, rgba(0,0,0,.06));
  border-radius: 4px; padding: 1px 5px; margin-left: 4px; flex-shrink: 0;
}

.lc-channel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: 4px;
}
.lc-channel-wa {
  color: #25d366;
}
.lc-channel-web {
  color: #3b82f6;
}

/* LC-01: Adjust chat-top to accommodate badge */
.lc-chat-top {
  display: flex;
  align-items: center;
  gap: 0;
}
.lc-chat-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
