:root {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #23392f;
  background: #f7f5ef;
  line-height: 1.5;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; background: #f7f5ef; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

/* Top Navigation Bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px max(20px, 4vw);
  background: #173e32;
  color: #fff;
  flex-wrap: wrap;
  border-bottom: 1px solid #1e293b;
}
.topbar h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 2px 0 0;
}
.subtitle { color: #94a3b8; margin: 0; font-size: 13px; }
.eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #2dd4bf;
  text-transform: uppercase;
}
.eyebrow.dark { color: #64748b; font-size: 11px; font-weight: 800; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.injector-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  padding: 5px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.injector-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fbbf24;
}
.injector-btn {
  min-height: 30px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: transform 0.1s, opacity 0.15s;
}
.injector-btn:hover { transform: translateY(-1px); }
.injector-btn.hot { background: #059669; color: #fff; border-color: #10b981; }
.injector-btn.tech { background: #0284c7; color: #fff; border-color: #38bdf8; }
.injector-btn.spam { background: #e11d48; color: #fff; border-color: #f43f5e; }

.ch-status-btn {
  background: #1e293b;
  color: #fff;
  border: 1px solid #334155;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  padding: 6px 16px;
  min-height: 36px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  user-select: none;
}
.ch-status-btn:hover { transform: translateY(-1px); }
.ch-status-btn.online {
  background: #065f46;
  color: #6ee7b7;
  border-color: #059669;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}
.ch-status-btn.online:hover { background: #047857; }
.ch-status-btn.offline {
  background: #450a0a;
  color: #fca5a5;
  border-color: #b91c1c;
}
.ch-status-btn.offline:hover { background: #7f1d1d; }

.ch-connect-btn {
  background: #128c7e;
  color: #fff;
  border: 1px solid #25d366;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 750;
  padding: 7px 12px;
  min-height: 34px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, transform 0.1s;
}
.ch-connect-btn:hover { background: #075e54; transform: translateY(-1px); }

.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  background: #334155;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: #cbd5e1;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.15s, background 0.15s;
  user-select: none;
}
.status:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}
.status:active {
  transform: translateY(0);
}
.status.online { background: #065f46; color: #6ee7b7; border: 1px solid #059669; }

/* Main Container */
main { padding: 16px max(16px, 4vw) 40px; }

.panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.setup {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  max-width: 860px;
  margin: 48px auto;
}
.setup h2, .section-title h2, .detail h2, .detail h3 { margin: 0; font-weight: 750; }
.fields {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(170px, 1fr) auto;
  gap: 10px;
  align-items: end;
  min-width: min(600px, 100%);
}
label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}
input, textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
}
input { height: 40px; padding: 0 12px; }
textarea { min-height: 140px; padding: 10px; resize: vertical; font-size: 12px; }

button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: #0f766e;
  color: #fff;
  font-weight: 700;
  transition: background 0.15s, transform 0.1s;
}
button:hover { background: #115e59; }
button:disabled { opacity: .5; cursor: not-allowed; }
.secondary { background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; }
.secondary:hover { background: #e2e8f0; }
.danger { background: #e11d48; }
.danger:hover { background: #be123c; }
.resume { background: #059669; }
.resume:hover { background: #047857; }
.small { min-height: 32px; font-size: 12px; padding: 0 10px; }
.hint, .muted, .basis { color: #64748b; font-size: 12px; }
.hint { margin: 6px 0 0; }
.basis { margin: 6px 0 16px; font-size: 11px; }

.calendar-fields { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:14px 0; }
.calendar-fields label { display:grid; gap:6px; }
.calendar-fields select { width:100%; min-height:40px; border:1px solid #cbd5e1; border-radius:8px; background:#fff; color:#0f172a; padding:0 10px; }
.calendar-fields .calendar-wide { grid-column:1 / -1; }
.calendar-booking-row { border-top:1px solid #e2e8f0; padding:12px 0; }
.calendar-booking-row p { line-height:1.5; }
@media (max-width:700px) { .calendar-fields { grid-template-columns:1fr; } .calendar-fields .calendar-wide { grid-column:auto; } }

/* Interactive Summary Metrics Cards */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 10px;
}
.summary {
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.metric {
  min-width: 110px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
}
.metric:hover {
  transform: translateY(-2px);
  border-color: #94a3b8;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.metric.active {
  border-color: #0d9488;
  background: #f0fdfa;
  box-shadow: 0 0 0 2px rgba(13,148,136,0.15);
}
.metric strong { display: block; font-size: 24px; font-weight: 800; color: #0f172a; }
.metric span { font-size: 11px; font-weight: 600; color: #64748b; }
.metric.urgent { border-color: #f59e0b; background: #fffbeb; }
.metric.urgent.active { border-color: #d97706; background: #fef3c7; }

/* Layout Grid */
.layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.queue { min-width: 0; }
.attention-list, .recent { display: grid; gap: 8px; }
.recent { margin-top: 12px; }
.recent summary {
  cursor: pointer;
  color: #475569;
  font-weight: 750;
  font-size: 13px;
  padding: 8px 0;
  user-select: none;
}
.count {
  display: inline-flex;
  min-width: 26px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 8px;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
}

/* Modern Case Card in Queue */
.case-card {
  display: block;
  width: 100%;
  height: auto;
  text-align: left;
  background: #fff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  transition: all 0.15s ease;
}
.case-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 3px 10px rgba(0,0,0,0.04);
}
.case-card.selected {
  border-color: #0d9488;
  background: #f0fdfa;
  box-shadow: 0 0 0 1px #0d9488, 0 4px 12px rgba(13,148,136,0.08);
}
.case-card-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.case-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.case-card-title {
  flex: 1;
  min-width: 0;
}
.case-identity {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.case-identity strong {
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.case-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 3px;
}
.case-card-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.chip-status {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  text-transform: capitalize;
  background: #f1f5f9;
  color: #475569;
}
.chip-status.qualified { background: #dcfce7; color: #15803d; }
.chip-status.viewing { background: #fef3c7; color: #b45309; }
.chip-ai {
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.chip-ai.active { background: #e0f2fe; color: #0369a1; }
.chip-ai.paused { background: #fee2e2; color: #b91c1c; }

.reason-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
}
.chip {
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}
.chip.attention { background: #fef3c7; color: #92400e; }

/* Detail Panel Container */
.detail {
  min-width: 0;
  padding: 16px 20px;
}

/* 3-Column Split inside Detail */
.case-split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 12px;
}
.case-split-left { min-width: 0; }
.case-split-right { min-width: 0; }

/* Center Column: Chat & Conversation */
.chat-container {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.chat-header-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-back-btn {
  display: none;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  min-height: 36px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.1s;
}
.mobile-back-btn:hover, .mobile-back-btn:active {
  background: #e2e8f0;
}
.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #1e293b;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-header-name {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-header-name strong { font-size: 14px; }
.chat-header-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}
.online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
}
.btn-toggle-ai {
  font-size: 12px;
  font-weight: 750;
  padding: 6px 12px;
  min-height: 32px;
  border-radius: 6px;
}
.btn-toggle-ai.pause { background: #fff1f2; color: #e11d48; border: 1px solid #fecdd3; }
.btn-toggle-ai.pause:hover { background: #ffe4e6; }
.btn-toggle-ai.resume { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.btn-toggle-ai.resume:hover { background: #d1fae5; }

.chat-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  max-height: 480px;
  overflow-y: auto;
  background: #f1f5f9;
}
.chat-bubble-wrap {
  display: flex;
  width: 100%;
}
.chat-bubble-wrap.customer-wrap { justify-content: flex-start; }
.chat-bubble-wrap.ai-wrap { justify-content: flex-end; }

.chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.55;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  overflow-wrap:anywhere;
  white-space: pre-wrap;
}
.chat-bubble.customer-bubble {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-top-left-radius: 2px;
  color: #0f172a;
}
.chat-bubble.ai-bubble {
  background: #e6f7ef;
  border: 1px solid #bbf7d0;
  border-top-right-radius: 2px;
  color: #064e3b;
}
.chat-bubble-sender {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  font-weight: 750;
  margin-bottom: 4px;
  color: #64748b;
}
.chat-ticks {
  font-size: 11px;
  color: #0284c7;
  text-align: right;
  margin-top: 2px;
  font-weight: 800;
}
.chat-status-bar {
  padding: 8px 14px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  font-size: 11px;
}
.cs-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cs-indicator.active { color: #059669; font-weight: 600; }
.cs-indicator.paused { color: #b91c1c; font-weight: 600; }

/* Right Column: AI Insights & Matched Property Card */
.insights-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.insights-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.insights-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.score-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
}
.score-badge.nurture { background: #e0f2fe; color: #0369a1; }
.score-badge.hot { background: #fef3c7; color: #b45309; }

/* Qualification Checklist */
.qualification-checklist {
  display: grid;
  gap: 6px;
}
.qc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 9px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 12px;
}
.qc-label { color: #64748b; font-weight: 600; }
.qc-val {
  font-weight: 750;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 5px;
}
.qc-check {
  color: #059669;
  font-weight: 900;
}

/* Property Preview Card */
.property-card {
  border-color: #99f6e4;
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
}
.stock-badge {
  font-size: 10px;
  font-weight: 800;
  color: #0f766e;
  background: #ccfbf1;
  padding: 2px 6px;
  border-radius: 6px;
}
.property-preview {
  margin: 8px 0 12px;
}
.property-ref-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: #0f766e;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.property-price {
  font-size: 18px;
  font-weight: 800;
  color: #0f766e;
}
.property-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin: 2px 0 4px;
}
.property-specs {
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
}
.btn-primary-action {
  width: 100%;
  min-height: 38px;
  background: #0f766e;
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 750;
  transition: background 0.15s;
}
.btn-primary-action:hover { background: #115e59; }

/* Channel Badges */
.channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px 2px 5px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}
.ch-icon { width: 12px; height: 12px; }
.ch-badge-whatsapp { background: #dcfce7; color: #15803d; }
.ch-badge-whatsapp .ch-icon { color: #16a34a; }
.ch-badge-email { background: #e0f2fe; color: #0369a1; }
.ch-badge-email .ch-icon { color: #0284c7; }
.ch-badge-web_form, .ch-badge-unknown { background: #f1f5f9; color: #475569; }

.chip-returning-mini {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  background: #fef3c7;
  color: #92400e;
}

.signal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 11px;
}
.signal.candidate { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.signal.approved { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }

/* CRM Handoff Card */
.handoff-card textarea {
  font-family: monospace;
  font-size: 11px;
  line-height: 1.45;
  background: #f8fafc;
}

/* Modals & Dialogs */
.channel-modal {
  border: 0;
  border-radius: 16px;
  padding: 0;
  background: #fff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
  max-width: 420px;
  width: 90vw;
  margin: auto;
}
.channel-modal[open] {
  display: block;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  margin: 0;
}
.channel-modal::backdrop {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}
.channel-modal-content { padding: 20px; }
.channel-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.channel-modal-title h3 { margin: 4px 0 0; font-size: 16px; color: #0f172a; }
.modal-close-btn {
  background: transparent;
  border: 0;
  font-size: 20px;
  color: #94a3b8;
  cursor: pointer;
}
.qr-container { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.qr-image-wrapper {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px;
  display: inline-block;
}
.qr-image-wrapper img { display: block; width: 200px; height: 200px; }
.qr-instructions {
  font-size: 12px;
  color: #475569;
  line-height: 1.45;
  background: #f8fafc;
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
}
.qr-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 750;
  padding: 4px 10px;
  border-radius: 999px;
}
.qr-status-pill.ready { background: #dcfce7; color: #15803d; }
.qr-status-pill.waiting { background: #fef3c7; color: #b45309; }

#toast {
  position: fixed;
  z-index: 100;
  right: 18px;
  bottom: 18px;
  max-width: min(400px, calc(100vw - 36px));
  padding: 10px 14px;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  display: none;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
#toast.error { background: #e11d48; }

.empty { padding: 50px 15px; text-align: center; color: #64748b; }
.empty.compact { padding: 18px 10px; }

/* Responsive adjustments */
@media (max-width: 1200px) {
  .case-split-layout { grid-template-columns: 1fr; }
}
@media (max-width: 1050px) {
  .summary { grid-template-columns: repeat(4, 1fr); }
  .setup { align-items: stretch; flex-direction: column; }
  .fields { min-width: 0; }
}
@media(max-width:760px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .topbar-right { width: 100%; justify-content: space-between; }
  .injector-bar { width: 100%; overflow-x: auto; }
  .fields, .layout { grid-template-columns: 1fr; }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .panel { padding: 14px; }
  .case-split-layout { grid-template-columns: 1fr; }
}

/* Mobile Master-Detail Navigation (screens <= 860px) */
@media (max-width: 860px) {
  /* Detail view active on mobile */
  #inbox.mobile-show-detail > .section-title,
  #inbox.mobile-show-detail > .summary,
  #inbox.mobile-show-detail > .basis,
  #inbox.mobile-show-detail .queue {
    display: none !important;
  }
  #inbox.mobile-show-detail .layout {
    display: block !important;
  }
  #inbox.mobile-show-detail #detail {
    display: block !important;
    width: 100% !important;
    padding: 12px !important;
  }
  #inbox.mobile-show-detail .mobile-back-btn {
    display: inline-flex !important;
  }

  /* Queue view active on mobile */
  #inbox.mobile-show-queue #detail {
    display: none !important;
  }
  #inbox.mobile-show-queue .queue {
    display: block !important;
    width: 100% !important;
  }
  #inbox.mobile-show-queue .layout {
    display: block !important;
  }
}

@media (min-width: 861px) {
  .mobile-back-btn {
    display: none !important;
  }
  #inbox.mobile-show-detail .queue,
  #inbox.mobile-show-detail > .section-title,
  #inbox.mobile-show-detail > .summary,
  #inbox.mobile-show-detail > .basis,
  #inbox.mobile-show-queue #detail {
    display: inherit !important;
  }
}

@media (max-width: 600px) {
  main {
    padding: 10px 10px 30px;
  }
  .topbar {
    padding: 10px 14px;
    gap: 10px;
  }
  .topbar h1 {
    font-size: 18px;
  }
  .topbar .subtitle {
    display: none;
  }
  .chat-header {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
  }
  .chat-header-user {
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
  }
  .chat-header-name strong {
    font-size: 13px;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .chat-header-actions {
    margin-left: auto;
  }
}
