/* ══ CONVERSATIONS PAGE ══ */

/* ── Dock wrapper ── */
.conv-dock-wrap {
  display: flex;
  justify-content: center;
  padding: 28px 0 20px;
  flex-shrink: 0;
}

/* ── Glass dock pill ── */
.conv-dock {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 20px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .conv-dock {
  background: rgba(28, 28, 28, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ── Dock slot wrapper ── */
.dock-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

/* ── Dock icon box ── */
.dock-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1.5px solid rgba(0, 0, 0, 0.10);
  color: #111;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

[data-theme="dark"] .dock-icon {
  background: #222;
  border: 1.5px solid rgba(255, 255, 255, 0.10);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.30);
}

.dock-slot--active .dock-icon:hover {
  transform: translateY(-10px) scale(1.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

[data-theme="dark"] .dock-slot--active .dock-icon:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.50);
}

/* ── Blueprint (inactive) icon ── */
.dock-icon--blueprint {
  background: transparent;
  border: 2px dashed rgba(0, 0, 0, 0.20);
  opacity: 0.38;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
  color: rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .dock-icon--blueprint {
  border: 2px dashed rgba(255, 255, 255, 0.20);
  color: rgba(255, 255, 255, 0.30);
}

/* ── Active dot under icon ── */
.dock-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #111;
  flex-shrink: 0;
}

[data-theme="dark"] .dock-dot {
  background: rgba(255, 255, 255, 0.70);
}

/* ── Hover tooltip ── */
.dock-tooltip {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(20, 20, 20, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 5px 11px;
  border-radius: 7px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dock-slot:hover .dock-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Filter bar ── */
.conv-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.conv-filter-wrap {
  position: relative;
}

.conv-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s;
  font-family: inherit;
}

.conv-filter-btn:hover {
  background: var(--hover);
  border-color: var(--text-light);
}

.conv-filter-btn.active {
  border-color: #555;
  background: var(--hover);
}

.conv-filter-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 160px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
  z-index: 200;
  overflow: hidden;
}

.conv-filter-dropdown.open {
  display: block;
}

.conv-filter-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.1s;
}

.conv-filter-dropdown-item:hover {
  background: var(--hover);
}

.conv-filter-dropdown-item.active {
  font-weight: 500;
}

.conv-filter-dropdown-item.active::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 10px;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(45deg) translateY(-2px);
  margin-left: 10px;
  flex-shrink: 0;
}

/* ── Conversations body: nav + inbox + main ── */
.conv-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* ── Right column (filter bar + content row) ── */
.conv-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.22s ease;
}

.conv-right.faded {
  opacity: 0;
  pointer-events: none;
}

/* ── Content row (inbox + main, sits below filter bar) ── */
.conv-content-row {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* ── Middle nav panel (gray) ── */
.conv-nav {
  width: 180px;
  min-width: 180px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--sidebar-bg);
  overflow: hidden;
}

.conv-nav-item {
  display: block;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 0;
  margin: 0;
  transition: background 0.12s, color 0.12s;
  text-decoration: none;
  user-select: none;
}

.conv-nav-item:hover {
  background: var(--hover);
  color: var(--text);
}

.conv-nav-item.active {
  background: #111;
  color: #fff;
  font-weight: 500;
}

/* ── Contact list panel (white) ── */
.conv-inbox {
  width: 240px;
  min-width: 240px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
  opacity: 1;
  transition: width 0.22s ease, min-width 0.22s ease, opacity 0.18s ease;
}

.conv-inbox.hidden {
  width: 0;
  min-width: 0;
  opacity: 0;
  border-right: none;
}

.conv-contact-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

/* ── Contact item ── */
.conv-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.12s;
}

.conv-contact:hover {
  background: var(--hover);
}

.conv-contact--active {
  background: var(--selected);
}

/* ── Avatar circle ── */
.conv-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .conv-avatar {
  background: rgba(255, 255, 255, 0.85);
  color: #111;
}

.conv-avatar--placeholder {
  background: var(--border);
}

/* ── Contact text block ── */
.conv-contact-info {
  flex: 1;
  min-width: 0;
}

.conv-contact-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3px;
}

.conv-contact-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.conv-contact-time {
  font-size: 10.5px;
  color: var(--text-light);
  flex-shrink: 0;
}

.conv-contact-preview {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

/* ── Skeleton placeholder lines ── */
.conv-placeholder-line {
  display: inline-block;
  height: 10px;
  border-radius: 4px;
  background: var(--border);
}

.conv-contact--placeholder {
  pointer-events: none;
  opacity: 0.55;
}

/* ── Dynamic contact rows (rendered by conversations.js) ── */
.conv-contact-row {
  padding: 11px 14px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.conv-contact-row:hover  { background: var(--hover); }
.conv-contact-row.active {
  background: var(--selected);
  border-left-color: #111;
}
[data-theme="dark"] .conv-contact-row.active {
  border-left-color: rgba(255, 255, 255, 0.7);
}

.conv-contact-row-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}

.conv-contact-row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

/* ── Main pane ── */
.conv-main {
  flex: 1;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* ── Messages area (grows to fill space) ── */
.conv-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

/* ── Composer bar ── */
.conv-composer {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}

/* Attachment preview strip (hidden until image selected) */
.conv-attachment-preview {
  display: none;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px 0;
  position: relative;
}
.conv-attachment-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
  display: block;
}
.conv-attachment-remove {
  position: absolute;
  top: 6px;
  left: 76px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}
.conv-attachment-remove:hover {
  background: #fce8e8;
  color: #c0392b;
  border-color: #e0a0a0;
}
[data-theme="dark"] .conv-attachment-remove:hover {
  background: rgba(192,57,43,0.22);
  color: #e05c5c;
  border-color: rgba(192,57,43,0.4);
}

/* Composer row: attach btn + textarea + send btn */
.conv-composer-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 14px 12px;
}

/* Attach image button */
.conv-attach-btn {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--tag-bg);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.conv-attach-btn:hover  { background: var(--hover); color: var(--text); border-color: var(--text-light); }
.conv-attach-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.conv-textarea {
  flex: 1;
  resize: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  line-height: 1.5;
  color: var(--text);
  background: var(--input-bg);
  outline: none;
  overflow-y: auto;
  max-height: 160px;
  min-height: 40px;
  transition: border-color 0.15s;
}

.conv-textarea:focus {
  border-color: var(--text-light);
}

.conv-textarea::placeholder {
  color: var(--text-light);
}

[data-theme="dark"] .conv-textarea {
  background: var(--input-bg);
  color: var(--text);
}

.conv-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  border: none;
  background: #111;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.conv-send-btn:hover {
  opacity: 0.82;
}

.conv-send-btn:active {
  opacity: 0.65;
}

/* ════════════════════════════════════════
   NEW: Live Conversations UI
   ════════════════════════════════════════ */

/* ── Thread header (contact name + phone + actions) ── */
.conv-thread-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}

.conv-thread-info { flex: 1; min-width: 0; }

.conv-thread-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-thread-phone {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.conv-thread-badges {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.conv-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  text-transform: capitalize;
}
.conv-badge--source      { background: var(--blue-bg);  color: var(--blue);  }
.conv-badge--status-open { background: var(--green-bg); color: var(--green); }
.conv-badge--status-done { background: var(--tag-bg);   color: var(--text-muted); }

/* ── Show contact button ── */
.conv-show-contact-btn {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  margin-left: auto;
}
.conv-show-contact-btn:hover {
  background: var(--hover);
  color: var(--text);
  border-color: var(--text-light);
}
.conv-show-contact-btn.active {
  background: #111;
  color: #fff;
  border-color: #111;
}
[data-theme="dark"] .conv-show-contact-btn.active {
  background: rgba(255,255,255,0.9);
  color: #111;
  border-color: rgba(255,255,255,0.9);
}
.conv-show-contact-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: rgba(20,20,20,0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.conv-show-contact-btn:hover .conv-show-contact-tooltip { opacity: 1; }

/* ── Contact info panel ── */
.conv-contact-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 276px;
  background: var(--bg);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 10;
  box-shadow: -6px 0 24px rgba(0,0,0,0.07);
}
.conv-contact-panel.open { transform: translateX(0); }
[data-theme="dark"] .conv-contact-panel {
  box-shadow: -6px 0 24px rgba(0,0,0,0.30);
}

/* Panel header */
.conv-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.conv-panel-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.conv-panel-close {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.12s, color 0.12s;
}
.conv-panel-close:hover { background: var(--hover); color: var(--text); }

/* Panel body */
.conv-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

/* Sections */
.conv-panel-section {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.conv-panel-section:last-child { border-bottom: none; }

/* Field rows (label + value) */
.conv-panel-field {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 9px;
}
.conv-panel-field:last-child { margin-bottom: 0; }
.conv-panel-field-label {
  font-size: 11.5px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.conv-panel-field-value {
  font-size: 11.5px;
  color: var(--text);
  text-align: right;
}
.conv-panel-id {
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 10px;
  color: var(--text-light);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Section heading */
.conv-panel-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.conv-panel-section-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Automation badge */
.conv-panel-auto-badge {
  font-size: 10.5px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 20px;
}
.conv-panel-auto-badge--active {
  background: rgba(30,127,62,0.12);
  color: #1a7a38;
}
.conv-panel-auto-badge--paused {
  background: var(--tag-bg);
  color: var(--text-muted);
}
[data-theme="dark"] .conv-panel-auto-badge--active {
  background: rgba(30,127,62,0.20);
  color: #3ecb6a;
}

/* Pause/Resume button */
.conv-panel-auto-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--tag-bg);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}
.conv-panel-auto-btn:hover { background: var(--hover); border-color: var(--text-light); }
.conv-panel-auto-btn--paused {
  background: #111;
  color: #fff;
  border-color: #111;
}
.conv-panel-auto-btn--paused:hover { background: #2a2a2a; border-color: #2a2a2a; }
.conv-panel-auto-btn:disabled { opacity: 0.5; cursor: not-allowed; }
[data-theme="dark"] .conv-panel-auto-btn--paused {
  background: rgba(255,255,255,0.88);
  color: #111;
  border-color: rgba(255,255,255,0.88);
}

/* Show pause icon when active, play icon when paused */
.conv-panel-auto-icon--pause,
.conv-panel-auto-icon--play { display: none; }
.conv-panel-auto-btn:not(.conv-panel-auto-btn--paused) .conv-panel-auto-icon--pause { display: block; }
.conv-panel-auto-btn.conv-panel-auto-btn--paused .conv-panel-auto-icon--play { display: block; }

/* Source chip */
.conv-panel-source-chip {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 6px;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text);
  text-transform: capitalize;
}

/* ── Message bubbles ── */
.conv-msg-bubble-wrap {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}
.conv-msg-bubble-wrap--out { align-items: flex-end; }
.conv-msg-bubble-wrap--in  { align-items: flex-start; }

.conv-bubble {
  padding: 9px 13px;
  border-radius: 14px;
  max-width: 75%;
  word-wrap: break-word;
  white-space: pre-wrap;
  line-height: 1.45;
  font-size: 13px;
}

/* Outbound: dark bubble, right-aligned */
.conv-bubble--out {
  background: #111;
  color: #fff;
  border-bottom-right-radius: 3px;
}
[data-theme="dark"] .conv-bubble--out {
  background: rgba(255,255,255,0.88);
  color: #111;
}

/* Inbound: light bubble, left-aligned */
.conv-bubble--in {
  background: var(--tag-bg);
  color: var(--text);
  border-bottom-left-radius: 3px;
}

/* Image / MMS bubbles */
.conv-bubble--media {
  padding: 4px !important;
  overflow: hidden;
}
.conv-bubble-img {
  display: block;
  max-width: 220px;
  max-height: 240px;
  border-radius: 10px;
  object-fit: cover;
  cursor: pointer;
}
.conv-bubble--media .conv-bubble-caption {
  padding: 6px 8px 4px;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Timestamp + delivery status below each bubble */
.conv-bubble-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--text-light);
  margin-top: 3px;
}
.conv-msg-bubble-wrap--out .conv-bubble-meta { justify-content: flex-end; }
.conv-msg-bubble-wrap--in  .conv-bubble-meta { justify-content: flex-start; }

/* Delivery status icons */
.conv-status-icon { font-size: 10px; line-height: 1; }
.conv-status-icon--queued      { color: var(--text-light); }
.conv-status-icon--sending     { color: var(--text-muted); }
.conv-status-icon--sent        { color: var(--text-muted); }
.conv-status-icon--delivered   { color: var(--blue); }
.conv-status-icon--read        { color: var(--blue); }
.conv-status-icon--failed      { color: var(--red); }
.conv-status-icon--undelivered { color: var(--red); }

/* ── Unread dot on contact row ── */
.conv-unread-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  display: inline-block;
}

/* ── Empty / loading state (centered in conv-messages) ── */
.conv-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 10px;
  color: var(--text-light);
  user-select: none;
  pointer-events: none;
}
.conv-empty-state svg   { opacity: 0.35; }
.conv-empty-state span  { font-size: 13px; }

/* ── Contact list loading shimmer ── */
.conv-shimmer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}
.conv-shimmer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  animation: conv-pulse 1.4s ease-in-out infinite;
}
.conv-shimmer-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.conv-shimmer-line {
  height: 10px;
  border-radius: 4px;
  background: var(--border);
  animation: conv-pulse 1.4s ease-in-out infinite;
}
@keyframes conv-pulse {
  0%,100% { opacity: 0.55; }
  50%      { opacity: 0.25; }
}

/* ── Conversation switching transitions ── */
@keyframes conv-thread-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.conv-messages.is-switching {
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.12s ease, transform 0.12s ease;
  pointer-events: none;
}

.conv-messages.is-entering {
  animation: conv-thread-in 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
