/* LexisBot Real Estate — customer chat.
   Property-portal look (Magicbricks-like): white surfaces on light grey, charcoal text, one signature red reserved
   for actions, green only for verified status. Type: Hind Madurai (Latin + Tamil from one family). */
:root {
  --paper: #f4f5f7;
  --surface: #ffffff;
  --sunk: #f0f1f4;
  --ink: #303030;
  --muted: #6b6b6b;
  --line: #e3e4e8;
  --brand: #d8232a;
  --brand-hover: #b81d23;
  --brand-ink: #ffffff;
  --brand-soft: #fdeced;
  --ok: #138a4b;
  --ok-soft: #e6f4ec;
  --turmeric: #a86412;
  --turmeric-soft: #fdf3e1;
  --danger: #9b1c1c;
  --danger-soft: #fde8e8;
  --bubble: #eef0f3;
  --shadow: 0 1px 2px rgba(48, 48, 48, 0.06), 0 6px 18px rgba(48, 48, 48, 0.08);
  --card-shadow: 0 1px 3px rgba(48, 48, 48, 0.08);
  --font: "Hind Madurai", "Noto Sans Tamil", system-ui, -apple-system, "Segoe UI", sans-serif;
  --side: 272px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121316;
    --surface: #1b1c20;
    --sunk: #24262b;
    --ink: #ececec;
    --muted: #a0a3aa;
    --line: #2f3137;
    --brand: #ee3b42;
    --brand-hover: #ff5a60;
    --brand-ink: #ffffff;
    --brand-soft: #3a1d1f;
    --ok: #4cc38a;
    --ok-soft: #173326;
    --turmeric: #e7a948;
    --turmeric-soft: #372a17;
    --danger: #f28b8b;
    --danger-soft: #3d2222;
    --bubble: #2a2c32;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 18px rgba(0, 0, 0, 0.35);
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.hint { color: var(--muted); font-size: 0.875rem; margin: 0; }
.pad { padding: 0.5rem 1rem 1rem; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr) auto; height: 100dvh; }
.main { display: flex; flex-direction: column; min-width: 0; height: 100dvh; position: relative; }

/* ---------- sidebar ---------- */
.sidebar {
  display: flex; flex-direction: column; gap: 0.75rem;
  background: var(--surface); border-right: 1px solid var(--line);
  padding: 0.875rem 0.75rem; min-height: 0;
}
.side-head { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 0.5rem; color: var(--brand); text-decoration: none; font-weight: 700; font-size: 1.05rem; padding: 0.25rem 0.5rem; }
.brand-mark { width: 28px; height: 28px; color: var(--brand); fill: currentColor; stroke-width: 0; }
.brand-mark path { fill: none; stroke: currentColor; }
.new-chat {
  display: flex; align-items: center; gap: 0.5rem; width: 100%; color: var(--brand); font-weight: 600;
  border: 1px solid var(--brand); background: var(--surface); border-radius: 8px;
  padding: 0.55rem 0.75rem; font-weight: 500; text-align: left;
}
.new-chat:hover { background: var(--brand-soft); }
.history { flex: 1; overflow-y: auto; min-height: 0; margin: 0 -0.25rem; padding: 0 0.25rem; }
.side-title { font-size: 0.8rem; font-weight: 500; color: var(--muted); margin: 0.5rem 0.5rem 0.25rem; }
.history ul { list-style: none; margin: 0; padding: 0; }
.history li button {
  display: block; width: 100%; text-align: left; border: 0; background: none; border-radius: 8px;
  padding: 0.45rem 0.6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.925rem;
}
.history li button:hover { background: var(--sunk); }
.history li button[aria-current="true"] { background: var(--brand-soft); color: var(--brand); font-weight: 600; box-shadow: inset 3px 0 0 var(--brand); }
.history-empty { color: var(--muted); font-size: 0.875rem; padding: 0 0.5rem; margin: 0.25rem 0; }
.account { border-top: 1px solid var(--line); padding-top: 0.75rem; font-size: 0.875rem; }
.account-guest p { margin: 0 0.25rem 0.6rem; color: var(--muted); line-height: 1.45; }
.google-slot { min-height: 40px; }
.account-user { display: flex; align-items: center; gap: 0.6rem; padding: 0 0.25rem; }
.account-user img, .avatar { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.avatar { display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-weight: 700; }
.who { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.who span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.8rem; }

/* ---------- buttons ---------- */
.icon-btn { border: 0; background: none; padding: 0.4rem; border-radius: 8px; display: inline-grid; place-items: center; color: var(--muted); }
.icon-btn:hover { background: var(--sunk); color: var(--ink); }
.primary-btn {
  border: 0; background: var(--brand); color: var(--brand-ink); font-weight: 600;
  border-radius: 6px; padding: 0.45rem 1rem; white-space: nowrap;
}
.primary-btn:hover { background: var(--brand-hover); }
.primary-btn:disabled { opacity: 0.55; cursor: progress; }
.primary-btn.small { padding: 0.35rem 0.9rem; }
.primary-btn.wide { width: 100%; padding: 0.7rem; margin-top: 0.25rem; }
.ghost-btn {
  display: inline-flex; align-items: center; gap: 0.35rem; border: 1px solid var(--line); background: var(--surface);
  border-radius: 6px; padding: 0.38rem 0.85rem;
}
a.ghost-btn { color: var(--ink); text-decoration: none; }
.ghost-btn[aria-expanded="true"] { border-color: var(--brand); color: var(--brand); }
.text-btn { border: 0; background: none; color: var(--brand); font-weight: 500; padding: 0.25rem 0; }
.text-btn:hover { text-decoration: underline; }
.only-mobile { display: none; }

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 1.25rem;
  border-bottom: 1px solid var(--line); background: var(--surface); min-height: 56px; box-shadow: 0 1px 0 var(--line);
}
.chat-title { font-size: 1rem; font-weight: 500; margin: 0; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: 0.5rem; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); }
.lang button { border: 0; background: none; padding: 0.3rem 0.7rem; font-size: 0.875rem; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand); font-weight: 700; }

/* ---------- thread ---------- */
.thread { flex: 1; overflow-y: auto; min-height: 0; scroll-behavior: smooth; }
.messages { max-width: 780px; margin: 0 auto; padding: 1.5rem 1.25rem 2rem; display: flex; flex-direction: column; gap: 1.75rem; }
.messages:empty { display: none; }

/* Welcome: a portal-style search hero. Topic tabs (like Buy / Rent / Plots on a property portal) switch the
   ready-made questions below them. */
.welcome { min-height: 100%; display: grid; align-items: center; }
.welcome-inner { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.25rem; width: 100%; }
.welcome h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.12; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 0.6rem; max-width: 20ch; }
.welcome p { color: var(--muted); font-size: 1.05rem; margin: 0 0 1.5rem; max-width: 58ch; }
.topic-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.topic-tabs { display: flex; gap: 0.25rem; overflow-x: auto; border-bottom: 1px solid var(--line); padding: 0 0.5rem; scrollbar-width: none; }
.topic-tabs button {
  border: 0; background: none; padding: 0.8rem 0.85rem 0.7rem; font-weight: 600; color: var(--muted); white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.topic-tabs button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.topic-tabs button:hover { color: var(--ink); }
.starters { display: flex; flex-direction: column; padding: 0.4rem; }
.starters button {
  display: flex; align-items: center; gap: 0.75rem; text-align: left; border: 0; background: none; border-radius: 8px;
  padding: 0.7rem 0.75rem; font-size: 0.975rem; color: var(--ink);
}
.starters button:hover { background: var(--sunk); }
.starters button svg { color: var(--brand); width: 18px; height: 18px; }
.trust { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin: 1.1rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.9rem; }
.trust li { display: inline-flex; align-items: center; gap: 0.4rem; }
.trust svg { width: 16px; height: 16px; color: var(--ok); }

.msg-user { align-self: flex-end; max-width: 85%; background: var(--bubble); border-radius: 18px 18px 4px 18px; padding: 0.6rem 1rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-assistant { display: flex; gap: 0.85rem; }
.msg-assistant > .bot { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; flex: none; margin-top: 0.15rem; }
.msg-assistant > .bot svg { width: 18px; height: 18px; }
.msg-body { min-width: 0; flex: 1; }
.answer { overflow-wrap: anywhere; }
.answer > :first-child { margin-top: 0; }
.answer p { margin: 0 0 0.75rem; max-width: 72ch; }
.answer h3 { font-size: 1.075rem; margin: 1.25rem 0 0.4rem; }
.answer ul { margin: 0 0 0.75rem; padding-left: 1.25rem; }
.answer li { margin: 0.15rem 0; }
.answer blockquote { margin: 0 0 1rem; padding: 0.55rem 0.85rem; border-radius: 10px; background: var(--turmeric-soft); font-size: 0.925rem; }
.answer hr { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }
.answer code { background: var(--sunk); padding: 0 0.3rem; border-radius: 4px; font-size: 0.9em; }
.answer a { color: var(--brand); }
.answer .cite { font-size: 0.75rem; vertical-align: super; color: var(--brand); font-weight: 700; margin-left: 1px; }
.answer em.disclaimer { display: block; color: var(--muted); font-size: 0.875rem; margin: 0.5rem 0; }
.tablewrap { overflow-x: auto; margin: 0 0 1rem; border: 1px solid var(--line); border-radius: 10px; }
.answer table { border-collapse: collapse; width: 100%; min-width: 820px; font-size: 0.9rem; overflow-wrap: normal; }
.answer th, .answer td { padding: 0.45rem 0.65rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.answer th { background: var(--sunk); font-weight: 500; }
.answer tr:last-child td { border-bottom: 0; }
.msg-error { align-self: stretch; background: var(--danger-soft); color: var(--danger); border-radius: 10px; padding: 0.6rem 0.9rem; }
.msg-error button { margin-left: 0.5rem; }

.thinking { display: flex; align-items: center; gap: 0.6rem; color: var(--muted); }
.thinking .dots { display: inline-flex; gap: 4px; }
.thinking .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: pulse 1.2s infinite ease-in-out; }
.thinking .dots i:nth-child(2) { animation-delay: 0.15s; }
.thinking .dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes pulse { 0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1); } }

/* property cards */
.msg-body > .cards { margin: 0 0 1rem; }
.cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(290px, 320px); gap: 0.85rem; overflow-x: auto; padding: 0.25rem 0.15rem 0.7rem; margin: 0.25rem 0 0.75rem; scroll-snap-type: x mandatory; }
.card { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--card-shadow); padding: 0.85rem 0.95rem 0.8rem; display: flex; flex-direction: column; gap: 0.4rem; }
.card:hover { box-shadow: var(--shadow); }
.card .card-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.card .rank { font-size: 0.8rem; color: var(--muted); }
.card h4 { margin: 0; font-size: 1rem; line-height: 1.3; font-weight: 700; }
.card .where { color: var(--muted); font-size: 0.875rem; margin-top: -0.2rem; }
.card .price-row { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.card .price { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.card .per-sqft { color: var(--muted); font-size: 0.85rem; }
.card .facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0.15rem 0; }
.card .facts div { padding: 0.45rem 0.4rem 0.4rem 0; min-width: 0; }
.card .facts div + div { padding-left: 0.6rem; border-left: 1px solid var(--line); }
.card .facts dt { font-size: 0.75rem; color: var(--muted); }
.card .facts dd { margin: 0; font-weight: 600; font-size: 0.875rem; line-height: 1.3; overflow-wrap: break-word; }
.tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.1rem 0; }
.tag { font-size: 0.75rem; padding: 0.05rem 0.5rem; border-radius: 4px; background: var(--sunk); color: var(--muted); font-weight: 500; }
.tag.good { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--turmeric-soft); color: var(--turmeric); }
.tag.bad { background: var(--danger-soft); color: var(--danger); }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: auto; padding-top: 0.35rem; }
.card-actions .ghost-btn { justify-content: center; padding: 0.4rem 0.6rem; font-size: 0.9rem; border-color: var(--brand); color: var(--brand); font-weight: 600; }
.card-actions .ghost-btn:hover { background: var(--brand-soft); }
.card-actions .primary-btn { padding: 0.4rem 0.6rem; font-size: 0.9rem; }

.extras { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.25rem; }

.next-steps, .nudge { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 0.8rem 0.95rem; }
.next-steps h4, .nudge h4 { margin: 0 0 0.35rem; font-size: 0.95rem; }
.next-steps p, .nudge p { margin: 0 0 0.5rem; color: var(--muted); font-size: 0.875rem; }
.next-steps ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.next-steps li { display: flex; gap: 0.75rem; align-items: center; justify-content: space-between; font-size: 0.925rem; }
.next-steps .done { color: var(--ok); font-weight: 600; }
.nudge { border-color: var(--brand); background: var(--brand-soft); display: flex; align-items: center; gap: 1rem; }
.nudge div { flex: 1; }
.nudge p { color: var(--ink); margin: 0; }

/* ---------- composer ---------- */
.composer { position: relative; padding: 0 1.25rem 0.9rem; max-width: 820px; width: 100%; margin: 0 auto; }
.composer-box {
  display: flex; align-items: flex-end; gap: 0.5rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 0.45rem 0.45rem 0.45rem 0.6rem; box-shadow: var(--shadow);
}
.composer-box:focus-within { border-color: var(--brand); }
.composer-tools { display: flex; align-self: flex-end; }
.area-btn {
  display: inline-flex; align-items: center; gap: 0.3rem; border: 0; background: var(--sunk); border-radius: 999px;
  padding: 0.35rem 0.7rem; font-size: 0.875rem; color: var(--muted); max-width: 200px; margin-bottom: 0.1rem;
}
.area-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.area-btn.set { background: var(--brand-soft); color: var(--brand); font-weight: 500; }
.area-btn svg { width: 16px; height: 16px; }
.composer textarea { flex: 1; border: 0; outline: none; background: none; resize: none; padding: 0.4rem 0.2rem; max-height: 200px; line-height: 1.5; }
.send { width: 38px; height: 38px; border-radius: 8px; border: 0; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; flex: none; }
.send:disabled { opacity: 0.4; cursor: default; }
.fine-print { text-align: center; font-size: 0.75rem; color: var(--muted); margin: 0.45rem 0 0; }
.popover {
  position: absolute; bottom: calc(100% + 0.5rem); left: 1.25rem; width: min(340px, calc(100% - 2.5rem)); z-index: 20;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: 0.9rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.925rem;
}
.popover .row { display: flex; gap: 0.5rem; align-items: center; }
.popover .row.split { justify-content: space-between; }
.popover input[type="text"], .popover input:not([type]) { flex: 1; min-width: 0; }
.popover input[type="range"] { accent-color: var(--brand); }

input:not([type="checkbox"]):not([type="range"]), select, textarea.field, .enquiry textarea {
  border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 0.5rem 0.7rem; width: 100%;
}
input:focus, select:focus, .enquiry textarea:focus { outline: none; border-color: var(--brand); }

/* ---------- map panel ---------- */
.map-panel { width: min(440px, 38vw); border-left: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; height: 100dvh; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 0.75rem 0.6rem 1rem; border-bottom: 1px solid var(--line); min-height: 56px; }
.panel-head h2 { font-size: 1rem; margin: 0; font-weight: 500; }
.map { flex: 1; min-height: 300px; }
.pin-num { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font: 700 13px/1 var(--font); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.amenity-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--turmeric); border: 2px solid #fff; }

/* ---------- dialogs ---------- */
dialog.sheet {
  border: 0; padding: 1.5rem; border-radius: 18px; background: var(--surface); color: var(--ink);
  width: min(640px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); box-shadow: var(--shadow);
}
dialog.sheet.narrow { width: min(460px, calc(100vw - 2rem)); }
dialog::backdrop { background: rgba(10, 14, 20, 0.45); }
.sheet-close { position: absolute; top: 0.6rem; right: 0.6rem; margin: 0; }
.sheet h2 { margin: 0 2rem 0.25rem 0; font-size: 1.4rem; line-height: 1.2; }
.sheet .sub { color: var(--muted); margin: 0 0 1rem; }
.detail-price { font-size: 1.6rem; font-weight: 700; margin: 0.25rem 0 0.75rem; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1.25rem; margin: 0 0 1rem; }
.detail-grid div { border-bottom: 1px solid var(--line); padding-bottom: 0.4rem; }
.detail-grid dt { font-size: 0.8rem; color: var(--muted); }
.detail-grid dd { margin: 0; font-weight: 500; }
.detail-note { background: var(--turmeric-soft); border-radius: 10px; padding: 0.6rem 0.8rem; font-size: 0.9rem; margin: 0 0 1rem; }
.detail-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.enquiry { display: flex; flex-direction: column; gap: 0.75rem; }
.enquiry label { display: flex; flex-direction: column; gap: 0.25rem; font-weight: 500; font-size: 0.925rem; }
.enquiry label > .label-text { display: block; }
.enquiry .opt { color: var(--muted); font-weight: 400; }
.enquiry label.check { flex-direction: row; align-items: flex-start; gap: 0.6rem; font-weight: 400; font-size: 0.875rem; color: var(--muted); }
.enquiry label.check input { margin-top: 0.3rem; accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.form-error { color: var(--danger); background: var(--danger-soft); border-radius: 8px; padding: 0.5rem 0.75rem; margin: 0; font-size: 0.9rem; }
.enquiry-done { text-align: center; padding: 1rem 0 0.5rem; }
.enquiry-done svg { width: 48px; height: 48px; color: var(--ok); stroke-width: 2.2; }
.enquiry-done p { color: var(--muted); }

.toast {
  position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%); z-index: 50;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; border-radius: 10px; box-shadow: var(--shadow); font-size: 0.925rem;
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .map-panel { position: fixed; right: 0; top: 0; bottom: 0; width: min(420px, 100vw); z-index: 30; box-shadow: var(--shadow); }
}
@media (max-width: 820px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .only-mobile { display: inline-grid; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 40; transform: translateX(-100%); transition: transform 0.2s ease; }
  .sidebar.open { transform: none; box-shadow: var(--shadow); }
  .scrim { position: fixed; inset: 0; background: rgba(10, 14, 20, 0.4); z-index: 35; }
  .topbar { padding: 0.5rem 0.75rem; gap: 0.4rem; }
  .ghost-btn span { display: none; }
  .ghost-btn { padding: 0.4rem; }
  .primary-btn#talkToAdvisor { padding: 0.4rem 0.8rem; font-size: 0.875rem; }
  .messages { padding: 1rem 1rem 1.5rem; }
  .composer { padding: 0 0.75rem calc(0.6rem + env(safe-area-inset-bottom)); }
  .welcome-inner { padding: 2rem 1rem; }
  .msg-assistant > .bot { display: none; }
  .map-panel { width: 100vw; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 440px) {
  .lang button { padding: 0.3rem 0.5rem; }
  .chat-title { visibility: hidden; } /* the drawer shows the chat list; keep the bar for actions */
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
