/* ─────────────────────────────────────────────────────────────────
   chat-page.css  —  Sourri AI · Chat / Property Page
   Dark executive theme — all colour values via global.css tokens.
   NO local :root overrides. NO hardcoded hex colours. NO purple.
───────────────────────────────────────────────────────────────── */

/* ── Page shell ─────────────────────────────────────────────────── */
html,
body {
  height: 100%;
  overflow: hidden;
}

.chat-main {
  height: 100vh;
  overflow: hidden;
}

.chat-main > .row {
  /* Replaced by .chat-split — kept as safety fallback for non-upgraded markup */
  height: 100%;
}

/* ── Split layout ─────────────────────────────────────────────── */
.chat-split {
  display: flex;
  height: 100%;
  overflow: hidden;
  --image-col-width: 58%; /* default; overridden by initPaneResize() */
}

.chat-col-image {
  flex: 0 0 var(--image-col-width);
  max-width: var(--image-col-width);
  position: relative;
  overflow: hidden;
  background: var(--bg-base);
}

/* ── Resize divider ───────────────────────────────────────────── */
.chat-divider {
  flex-shrink: 0;
  width: 6px;
  cursor: col-resize;
  background: var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  user-select: none;
  transition: background 0.18s var(--ease), width 0.18s var(--ease);
}

.chat-divider:hover,
.chat-divider.dragging {
  background: var(--border-accent);
  width: 8px;
}

.divider-handle {
  color: var(--text-muted);
  font-size: 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s var(--ease);
}

.chat-divider:hover .divider-handle,
.chat-divider.dragging .divider-handle {
  opacity: 1;
}

/* Prevent text selection site-wide while dragging */
body.resize-dragging {
  cursor: col-resize !important;
  user-select: none !important;
}

.chat-col-panel {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
}

/* Utility shims (Bootstrap 5.3 doesn't ship these) */
.min-w-0 { min-width: 0; }
.flex-1   { flex: 1 1 0; }

/* ── Hover-reveal navbar (desktop only) ─────────────────────────── */
/* Override Bootstrap d-lg-none so the injected nav is never display:none
   while our transform hides/reveals it visually. */
@media (min-width: 992px) {
  #navbar-placeholder .d-lg-none {
    display: block !important;
  }
  #navbar-placeholder {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
  }
  #navbar-placeholder.nav-peek {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
}

/* ── Left col — image zone (legacy selector kept, .chat-col-image is the live one) ─ */
.chat-image-col,
.chat-col-image {
  background: var(--bg-base);
  overflow: hidden;
}

/* ── Custom carousel controls ──────────────────────────────────── */
.carousel-ctrl {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(0, 0, 0, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
  padding: 0;
}

.carousel-ctrl:hover,
.carousel-ctrl:focus-visible {
  background: rgba(0, 0, 0, 0.78);
  border-color: rgba(156, 220, 240, 0.3);
  color: #fff;
  outline: none;
}

.carousel-ctrl-prev { left: 14px; }
.carousel-ctrl-next { right: 14px; }

/* ── Carousel indicators — dots ─────────────────────────────────── */
.carousel-indicators {
  margin-bottom: 14px;
  gap: 5px;
}
.carousel-indicators [data-bs-target] {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  margin: 0 2px;
  transition: background 0.18s var(--ease), transform 0.18s var(--ease);
  opacity: 1;
}
/* Explicit element selector beats Bootstrap 5.3's `.carousel-indicators .active { background-color: #fff }` */
.carousel-indicators button.active {
  background: var(--accent);
  transform: scale(1.25);
}

/* ── Image zone overlay navigation ─────────────────────────────── */
.img-zone-nav {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.img-zone-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(0, 0, 0, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  padding: 0;
}

.img-zone-btn:hover,
.img-zone-btn:focus-visible {
  background: rgba(0, 0, 0, 0.78);
  border-color: var(--border-accent);
  color: var(--accent);
  outline: none;
}

/* Photo count badge on gallery button */
.img-zone-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── Carousel images — object-fit switching driven by ResizeObserver ───── */
/* Default: letterbox (contain) — works at any column width, no skeleton needed */
.chat-col-image .carousel-item img {
  object-fit: contain;
  background: var(--bg-base);
}
/* Wide column (>= 520px): fill the frame */
.chat-col-image.col-wide .carousel-item img {
  object-fit: cover;
}

/* ── Right col (legacy selector kept reference) ────────────────────── */
.chat-right-col {
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
}

/* ── Panel header ───────────────────────────────────────────────── */
.chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.header-prop-block {
  min-width: 0;
  flex: 1;
}

.chat-prop-info { min-width: 0; }

.chat-prop-name {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  max-width: 220px;
}

.chat-prop-address {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

/* ── .prop-status pill ──────────────────────────────────────────── */
/* Replicated from dashboard.html inline styles — needed here since
   that page's <style> block is not loaded on chat-page. */
.prop-status {
  flex-shrink: 0;
  display: inline-block;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  text-transform: lowercase;
}
.prop-status.active {
  background: var(--success-dim);
  color: var(--success);
  border: 1px solid rgba(74, 222, 128, 0.2);
}
.prop-status.pending-review,
.prop-status.flagged {
  background: var(--warning-dim);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.prop-status.inactive,
.prop-status.suspended {
  background: var(--danger-dim);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.2);
}
.prop-status.draft {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

/* ── Mode toggle group ──────────────────────────────────────────── */
.mode-toggle-group {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}

.mode-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  padding: 4px 9px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition);
  line-height: 1.4;
  white-space: nowrap;
}

.mode-toggle-btn i { font-size: 12px; }

.mode-toggle-btn:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
}

.mode-toggle-btn.active {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: var(--border-accent);
}

/* ── Chat panel body ────────────────────────────────────────────── */
#chatPanel {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

/* ── Chat messages area ─────────────────────────────────────────── */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem;
  background: var(--bg-base);
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border-medium) transparent;
}
.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 2px;
}

/* ── Message layout ─────────────────────────────────────────────── */
.message { margin-bottom: 1.1rem; }

/* ── Bot avatar ─────────────────────────────────────────────────── */
.bot-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--accent);
  margin-top: 2px;
}

/* ── Message bubbles ────────────────────────────────────────────── */
/* sendMessage.js wraps content in .message-content — styles target that */
.bot-message .message-content {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.8rem 1rem;
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 480px;
  overflow: hidden;
}
/* Gloss pseudo-element matching global.css .card::before */
.bot-message .message-content::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.025) 0%, transparent 55%);
  pointer-events: none;
}

.user-message .message-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.8rem 1rem;
  font-size: 13px;
  color: var(--text-primary);
  max-width: 480px;
}

/* ── Welcome message ────────────────────────────────────────────── */
.chat-welcome-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.chat-welcome-text {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}

.chat-welcome-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ── Quick action chips ─────────────────────────────────────────── */
.quick-actions {
  margin-top: 1rem;
  padding-left: 42px; /* indent to align with bubble edge */
}

.quick-actions-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Horizontally scrollable, no-wrap on small screens */
.quick-actions-list {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch; /* iOS momentum scroll */
  scrollbar-width: thin;
  scrollbar-color: var(--border-medium) transparent;
}
.quick-actions-list::-webkit-scrollbar { height: 2px; }
.quick-actions-list::-webkit-scrollbar-track { background: transparent; }
.quick-actions-list::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 1px;
}

/* Chip — .filter-pill pattern (property-gallery.css not loaded here) */
.filter-pill,
.quick-action-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  line-height: 1.5;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.filter-pill i,
.quick-action-btn i { font-size: 10px; }

.filter-pill:hover,
.quick-action-btn:hover {
  color: var(--accent);
  border-color: var(--border-accent);
  background: var(--accent-dim);
}

/* ── Chat input area ────────────────────────────────────────────── */
.chat-input-area {
  flex-shrink: 0;
  padding: 0.85rem 1rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.chat-input-row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

/* ── Chat gate (unauthenticated lead-capture wall) ────────────── */
.chat-gate {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.25rem 1.25rem 1.1rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-accent);
  text-align: center;
}
.chat-gate__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
}
.chat-gate__badge i { font-size: 11px; }
.chat-gate__title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}
.chat-gate__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}
.chat-gate__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
  justify-content: center;
}
.chat-gate__login   { color: var(--accent); border-color: var(--border-accent); }
.chat-gate__register { color: var(--gold);  border-color: var(--border-gold); }

.chat-textarea {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 0.6rem 0.85rem;
  resize: none;
  min-height: 42px;
  max-height: 120px;
  line-height: 1.55;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.chat-textarea::placeholder { color: var(--text-muted); }

.chat-textarea:focus {
  outline: none;
  border-color: var(--border-accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.chat-send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.chat-send-btn:hover,
.chat-send-btn:focus-visible {
  background: var(--accent-dim);
  border-color: var(--border-accent);
  color: var(--accent);
  outline: none;
}

.chat-disclaimer {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* ── Details panel (Mode B) ─────────────────────────────────────── */
#detailsPanel {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem;
  background: var(--bg-base);
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border-medium) transparent;
}
#detailsPanel::-webkit-scrollbar { width: 3px; }
#detailsPanel::-webkit-scrollbar-track { background: transparent; }
#detailsPanel::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 2px;
}

/* ── Listing sheet sections ─────────────────────────────────────── */
.sheet-section {
  margin-bottom: 1.4rem;
}

.sheet-price {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}

.sheet-type {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Two-column key-value grid for listing details and specs */
.detail-kv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
}

.detail-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  align-self: center;
  line-height: 1.4;
}

.detail-value {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  align-self: center;
  line-height: 1.4;
  word-break: break-word;
}

.sheet-description {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ── Agent section (replicated from property-gallery.css) ───────── */
.agent-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
}

.agent-logo-img {
  width: 20px;
  height: 24px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.agent-initials {
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  flex-shrink: 0;
}

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

.agent-name {
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.company-name {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Extended data (V2 extension point — hidden by default) ─────── */
#extendedDataSection { display: none; }

/* ── Gallery modal ──────────────────────────────────────────────── */
.gallery-modal {
  background: var(--bg-base);
  border: none;
}

.gallery-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.gallery-modal-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

/* ── Gallery modal body + grid ───────────────────────────────────── */
.gallery-modal-body {
  overflow-y: auto;
  padding: 1rem;
  position: relative;         /* lightbox overlay anchors here */
  background: var(--bg-base);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.gallery-grid-item {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid var(--border-subtle);
  transition: var(--transition);
  margin: 0;
  padding: 0;
  outline: none;
}

.gallery-grid-item:hover,
.gallery-grid-item:focus-visible {
  border-color: var(--border-accent);
  transform: scale(1.02);
}

.gallery-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Gallery lightbox overlay (within modal body) ────────────────── */
.gallery-lightbox {
  display: none;
  position: absolute;
  inset: 0;
  background: var(--bg-base);
  z-index: 20;
  flex-direction: column;
  outline: none;
}

.gallery-lightbox.is-open {
  display: flex;
}

.gallery-lb-topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.gallery-lb-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1rem;
}

.gallery-lb-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
}

.gallery-lb-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.gallery-lb-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.gallery-lb-nav,
.gallery-lb-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.gallery-lb-nav:hover,
.gallery-lb-nav:focus-visible,
.gallery-lb-close:hover,
.gallery-lb-close:focus-visible {
  border-color: var(--border-accent);
  color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


.message-content p:last-child { margin-bottom: 0; }

.message-content pre {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  overflow-x: auto;
  margin: 0.5rem 0;
  font-size: 12px;
}

.message-content code:not(pre code) {
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 12px;
  color: var(--accent);
}

/* ── Mobile ─────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .chat-main {
    height: calc(var(--vh, 1vh) * 100);
  }
  /* Hide the image column and divider — right panel goes full-width on mobile */
  .chat-col-image {
    display: none;
  }
  .chat-divider {
    display: none;
  }
  .chat-prop-name { max-width: 150px; }

  /* Safe area for iPhone X+ notch */
  .chat-input-area {
    padding-bottom: max(0.85rem, env(safe-area-inset-bottom));
  }
}

