:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface2: #1c1c1c;
  --line: #2a2a2a;
  --text: #f5f5f5;
  --muted: #888;
  --gold: #c9a227;
  --gold-dim: rgba(201, 162, 39, 0.15);
  --teal: #2dd4bf;
  --teal-dim: rgba(45, 212, 191, 0.12);
  --radius: 16px;
  --font: "Inter", system-ui, sans-serif;
  --nav-h: 64px;
  --composer-h: 72px;
  --header-h: 56px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

.elite-app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
}

/* Header */
.elite-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}

.logo {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.logo-block {
  flex: 1;
  text-align: center;
  min-width: 0;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  object-fit: contain;
  background: transparent;
}

.brand-logo--header {
  height: 40px;
  width: auto;
  max-width: min(140px, 48vw);
  object-fit: cover;
  object-position: top center;
}

.brand-logo--hero {
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: 0 auto 12px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

.brand-logo--menu {
  width: 100%;
  max-width: 190px;
  height: auto;
  margin: 0 auto;
}

/* PropertyFinder Gh — logo red (#d80008) on warm white */
html:has(body.market-gh),
html.market-gh,
body.market-gh {
  --bg: #fff8f6;
  --surface: #ffffff;
  --surface2: #f7ecea;
  --line: #edd5d5;
  --text: #1a1212;
  --muted: #7a6666;
  --gold: #d80008;
  --gold-dim: rgba(216, 0, 8, 0.12);
  --teal: #0f766e;
  --teal-dim: rgba(15, 118, 110, 0.12);
  background: #fff8f6;
  color-scheme: light;
}

.market-gh {
  --bg: #fff8f6;
  --surface: #ffffff;
  --surface2: #f7ecea;
  --line: #edd5d5;
  --text: #1a1212;
  --muted: #7a6666;
  --gold: #d80008;
  --gold-dim: rgba(216, 0, 8, 0.12);
  --teal: #0f766e;
  --teal-dim: rgba(15, 118, 110, 0.12);
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Outfit", "Segoe UI", sans-serif;
  --radius: 18px;
  color-scheme: light;
  background: #fff8f6;
}

.market-gh,
.market-gh button,
.market-gh input,
.market-gh textarea {
  font-family: var(--font);
}

.market-gh .elite-app {
  background:
    radial-gradient(120% 70% at 50% -8%, rgba(216, 0, 8, 0.14), transparent 52%),
    linear-gradient(180deg, #fff8f6 0%, #fff4f1 42%, #fff8f6 100%);
  min-height: 100dvh;
}

.market-gh .elite-header {
  border-bottom-color: transparent;
  background: rgba(255, 248, 246, 0.86);
  backdrop-filter: blur(14px);
}

.market-gh .brand-logo--header {
  height: 28px;
  max-width: min(96px, 36vw);
  object-fit: contain;
  object-position: center;
  background: transparent;
  filter: none;
  border-radius: 0;
}

.market-gh .brand-logo--hero {
  width: auto;
  height: auto;
  max-width: 88px;
  max-height: 88px;
  margin: 0 auto 8px;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  filter: none;
  background: transparent;
  box-shadow: none;
}

.market-gh .brand-logo--chat {
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  background: transparent;
  filter: none;
}

.market-gh .avatar {
  background: linear-gradient(145deg, #d80008, #a50006);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(216, 0, 8, 0.25);
}

.market-gh .hero-card {
  margin: 8px 16px 4px;
  padding: 18px 16px 16px;
  border: none;
  background: transparent;
  text-align: center;
}

.market-gh .hero-powered {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b40007;
}

.market-gh .hero-powered strong {
  color: inherit;
}

.market-gh .hero-greeting {
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0 auto 16px;
  max-width: 22rem;
  color: var(--text);
}

.market-gh .hero-suggestions {
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}

.market-gh .pill {
  border: 1px solid rgba(216, 0, 8, 0.22);
  background: rgba(255, 255, 255, 0.88);
  color: #4a3030;
  border-radius: 12px;
  padding: 9px 13px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.market-gh .pill:hover,
.market-gh .pill:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
  transform: translateY(-1px);
}

.market-gh .list-property-cta {
  margin-top: 14px;
  width: 100%;
  border-radius: 14px;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 22px rgba(216, 0, 8, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.market-gh .list-property-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(216, 0, 8, 0.28);
}

.market-gh .wa-chat-cta {
  margin-top: 8px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
  background: #fff;
  color: var(--gold);
  border: 1px solid rgba(216, 0, 8, 0.35);
  box-shadow: none;
}

.market-gh .wa-chat-cta.hidden {
  display: none;
}

.market-gh .list-property-hint {
  margin: 10px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.market-gh .list-property-profile {
  margin-top: 12px;
}

.market-gh .brand-logo--menu {
  max-width: 112px;
  max-height: 112px;
  border-radius: 0;
  background: transparent;
  filter: none;
}

.market-gh .gold-btn,
.market-gh .photo-book-btn,
.market-gh .send-btn,
.market-gh .listing-book {
  color: #fff;
}

.market-gh .quick-actions {
  padding: 8px 16px 14px;
}

.market-gh .quick-actions .section-title {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.market-gh .action-grid {
  gap: 10px;
}

.market-gh .action-card {
  align-items: flex-start;
  text-align: left;
  gap: 6px;
  padding: 14px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(216, 0, 8, 0.12);
  box-shadow: 0 6px 18px rgba(80, 20, 20, 0.04);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.market-gh .action-card:hover,
.market-gh .action-card:focus-visible {
  border-color: rgba(216, 0, 8, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(216, 0, 8, 0.1);
}

.market-gh .action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 2px;
  border-radius: 12px;
  background: var(--gold-dim);
  color: var(--gold);
  filter: none;
  font-size: 0;
}

.market-gh .action-label {
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.market-gh .action-sub {
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--muted);
}

.market-gh .composer {
  background: #fff;
  border: 1px solid rgba(216, 0, 8, 0.14);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(80, 20, 20, 0.06);
}

.market-gh .composer:focus-within {
  border-color: rgba(216, 0, 8, 0.45);
  box-shadow: 0 0 0 3px rgba(216, 0, 8, 0.1), 0 8px 20px rgba(80, 20, 20, 0.06);
}

.market-gh .send-btn {
  box-shadow: 0 4px 12px rgba(216, 0, 8, 0.28);
}

.market-gh .bottom-nav {
  left: 0;
  right: 0;
  transform: none;
  width: 100%;
  max-width: none;
  justify-content: center;
  gap: 0;
  background: #ffffff;
  border-top: 1px solid rgba(216, 0, 8, 0.1);
  backdrop-filter: blur(14px);
  box-shadow: 0 -8px 24px rgba(80, 20, 20, 0.04);
}

.market-gh .bottom-nav .nav-item {
  flex: 0 1 120px;
  max-width: 120px;
}

.market-gh .composer-wrap {
  left: 0;
  right: 0;
  transform: none;
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(180deg, transparent, #fff8f6 36%);
}

.market-gh .composer-wrap .composer-ai-note,
.market-gh .composer-wrap .recording-bar,
.market-gh .composer-wrap .composer {
  width: 100%;
  max-width: 448px;
}

.market-gh .nav-item {
  position: relative;
  font-weight: 600;
  transition: color 0.18s ease;
}

.market-gh .nav-item.active::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.market-gh .pwa-install-banner {
  border: 1px solid rgba(216, 0, 8, 0.16);
  background: #fff;
  box-shadow: 0 12px 30px rgba(80, 20, 20, 0.12);
}

.market-gh .filter-pill {
  border-radius: 12px;
  font-weight: 600;
}

.market-gh .filter-pill.active {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.market-gh .feature-card {
  border-color: rgba(216, 0, 8, 0.12);
  box-shadow: 0 8px 22px rgba(80, 20, 20, 0.05);
}

.market-gh .feature-badge {
  background: rgba(216, 0, 8, 0.88);
}

.market-gh .listing-price {
  color: var(--gold);
}

.market-gh dialog::backdrop {
  background: rgba(40, 16, 16, 0.45);
}

@media (prefers-reduced-motion: no-preference) {
  .market-gh .brand-logo--hero {
    animation: pf-rise 0.55s ease;
  }

  .market-gh .hero-card {
    animation: pf-rise 0.6s ease 0.05s;
  }

  .market-gh .quick-actions {
    animation: pf-rise 0.55s ease 0.12s;
  }

  .market-gh .action-card:nth-child(1) { animation: pf-rise 0.45s ease 0.16s; }
  .market-gh .action-card:nth-child(2) { animation: pf-rise 0.45s ease 0.22s; }
  .market-gh .action-card:nth-child(3) { animation: pf-rise 0.45s ease 0.28s; }
}

@keyframes pf-rise {
  from {
    transform: translateY(12px);
  }
  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .market-gh .pill,
  .market-gh .action-card,
  .market-gh .list-property-cta {
    transition: none;
  }
}

@media (max-height: 720px) {
  .market-gh .brand-logo--hero {
    max-width: 72px;
    max-height: 72px;
    margin-bottom: 4px;
  }

  .market-gh .hero-greeting {
    font-size: 1.1rem;
  }
}

.brand-logo--chat {
  height: 28px;
  width: 28px;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
}

.side-menu-brand-wrap {
  margin-bottom: 10px;
}

.side-menu-head-inner {
  flex: 1;
  min-width: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.inbox-btn {
  position: relative;
}

.inbox-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.inbox-dialog {
  max-width: 28rem;
  width: calc(100% - 2rem);
  border: 0;
  border-radius: var(--radius, 18px);
  padding: 0;
  background: var(--surface);
  color: var(--text);
}

.inbox-dialog-inner {
  padding: 1.1rem 1.1rem 1.4rem;
}

.inbox-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  max-height: min(60vh, 28rem);
  overflow: auto;
}

.inbox-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: var(--surface2);
}

.inbox-item .inbox-pin {
  font-size: 1.35rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  margin: 8px 0;
}

.inbox-item .inbox-copy {
  appearance: none;
  border: 0;
  background: var(--gold);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  cursor: pointer;
}

.icon-btn, .avatar-btn {
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  padding: 4px;
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3a3a3a, #1a1a1a);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
}

/* Main */
.elite-main {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-bottom: calc(var(--nav-h) + var(--composer-h));
}

.panel {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  display: none;
  flex-direction: column;
}

.panel.active { display: flex; }

.elite-main.no-composer {
  padding-bottom: var(--nav-h);
}

.section-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
}

.section-title.pad { padding: 16px 16px 0; }

/* Hero concierge card */
.hero-card {
  margin: 16px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.hero-card.hidden { display: none; }

.hero-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.sparkle { font-size: 0.9rem; }

.hero-tagline {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.hero-powered {
  margin: 0 0 14px;
  font-size: 0.72rem;
  color: var(--muted);
}

.hero-powered strong {
  color: var(--teal);
  font-weight: 600;
}

.hero-greeting {
  margin: 0 0 16px;
  font-size: 1.15rem;
  line-height: 1.45;
  font-weight: 500;
}

.hero-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  border: 1px solid var(--line);
  background: var(--surface2);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.78rem;
  cursor: pointer;
}

.pill:hover { border-color: var(--gold); color: var(--gold); }

/* Quick actions */
.quick-actions {
  padding: 0 16px 8px;
}

.quick-actions.hidden { display: none; }

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.72rem;
  cursor: pointer;
}

.action-icon { font-size: 1.25rem; filter: grayscale(0.2); }

.action-card:hover { border-color: var(--gold); }

/* Chat */
.chat-thread {
  flex: 1;
  padding: 8px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-time {
  align-self: center;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 8px 0;
}

.msg {
  max-width: 88%;
  line-height: 1.5;
  font-size: 0.9rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.msg.user {
  align-self: flex-end;
  padding: 12px 16px;
  border-radius: 18px 18px 4px 18px;
  background: var(--surface2);
  border: 1px solid var(--line);
}

.msg.bot-wrap {
  align-self: flex-start;
  max-width: 92%;
}

.concierge-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--teal);
}

.concierge-label .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal-dim);
  border: 1px solid var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
}

.msg.bot {
  padding: 12px 16px;
  border-radius: 4px 18px 18px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.msg.bot strong {
  font-weight: 650;
  color: var(--gold, #d4af37);
}

.msg.typing-bubble {
  padding: 14px 18px;
  border-radius: 4px 18px 18px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  min-width: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.typing-wrap {
  align-self: flex-start;
  max-width: 88%;
}

.typing-dots {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  height: 18px;
}

.typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8696a0;
  animation: typing-bounce 1.25s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.18s; }
.typing-dots span:nth-child(3) { animation-delay: 0.36s; }

@keyframes typing-bounce {
  0%, 55%, 100% { transform: translateY(0); opacity: 0.35; }
  28% { transform: translateY(-5px); opacity: 1; }
}

.typing-status {
  margin: 6px 0 0 4px;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--muted);
}

.msg.typing {
  color: var(--muted);
  font-style: italic;
  padding: 8px 0;
}

.ai-disclaimer {
  margin: 6px 0 0;
  padding: 0 2px;
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--muted);
  font-style: italic;
  opacity: 0.92;
}

.search-status {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 16px 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.22);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.search-status-icon {
  flex-shrink: 0;
}

.external-search-fallback {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 16px 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(196, 30, 58, 0.06), rgba(196, 30, 58, 0.02));
  border: 1px solid rgba(196, 30, 58, 0.22);
  align-self: stretch;
}

.external-search-note {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
}

.external-search-attr {
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-transform: uppercase;
}

.external-search-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--gold, #c41e3a);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.external-search-cta:hover {
  filter: brightness(1.05);
}

.partner-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: stretch;
}

.partner-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.partner-card:hover {
  border-color: var(--gold);
}

.partner-card strong {
  font-size: 0.88rem;
}

.partner-kind {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.partner-summary {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text);
}

.partner-link {
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 600;
  margin-top: 2px;
}

/* Inline chat listing cards — lives inside .chat-thread */
.chat-thread .chat-listings {
  padding: 8px 0 4px;
  width: 100%;
  max-width: 100%;
}

.chat-listings {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-listings.hidden { display: none; }

.alert-bar {
  padding: 4px 0 8px;
}

.alert-save-btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px dashed var(--line, rgba(255,255,255,0.15));
  background: transparent;
  color: var(--accent, #6ee7b7);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.alert-save-btn:hover {
  background: rgba(110, 231, 183, 0.08);
}

.alert-save-btn.secondary {
  color: var(--muted, #94a3b8);
  border-style: solid;
}

.compare-check-label,
.compare-check-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted, #94a3b8);
  padding: 8px 12px 0;
  cursor: pointer;
}

.compare-check-inline {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.55);
  padding: 4px 8px;
  border-radius: 8px;
  color: #fff;
}

.photo-card {
  position: relative;
}

.saved-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-right: 16px;
}

.saved-toolbar .gold-btn.hidden {
  display: none;
}

.compare-dialog {
  border: none;
  padding: 0;
  max-width: min(960px, 96vw);
  width: 100%;
  background: transparent;
}

.compare-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.compare-dialog-inner {
  background: var(--panel, #141414);
  border-radius: 16px;
  padding: 20px;
  max-height: 90vh;
  overflow: auto;
}

.compare-title {
  margin: 0 0 16px;
  font-size: 1.15rem;
}

.compare-table-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.compare-table th,
.compare-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
  text-align: left;
}

.compare-table thead th {
  min-width: 140px;
}

.compare-col-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.compare-col-head img {
  width: 100%;
  max-width: 160px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
}

.compare-col-head span {
  color: var(--gold, #c9a227);
  font-size: 0.82rem;
}

.compare-best {
  color: var(--gold, #c9a227);
  font-weight: 600;
}

.compare-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.compare-wrap {
  align-self: flex-start;
  max-width: 96%;
  margin: 8px 16px 16px;
  padding: 12px;
  background: var(--panel, #141414);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Inline insight charts */
.chart-wrap {
  align-self: flex-start;
  max-width: 92%;
  width: 100%;
}

.insight-card {
  margin-top: 4px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.insight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.insight-head h4 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.live-badge {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--teal);
  color: var(--teal);
}

.insight-sub {
  margin: 0 0 14px;
  font-size: 0.78rem;
  color: var(--muted);
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 140px;
  padding-top: 24px;
}

.chart-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  position: relative;
}

.chart-bar {
  width: 100%;
  max-width: 36px;
  border-radius: 6px 6px 2px 2px;
  background: #333;
  margin-top: auto;
}

.chart-bar-col.highlight .chart-bar {
  background: var(--teal);
}

.chart-val {
  position: absolute;
  top: 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--teal);
  white-space: nowrap;
}

.chart-label {
  margin-top: 6px;
  font-size: 0.58rem;
  color: var(--muted);
  text-align: center;
}

.chart-stats {
  margin: 12px 0 0;
  font-size: 0.72rem;
}

.chart-insight {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--teal);
  line-height: 1.4;
}

.mini-card {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
}

.mini-card img, .mini-card .thumb {
  width: 80px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  background: #222;
  flex-shrink: 0;
}

.mini-card h4 {
  margin: 0 0 4px;
  font-size: 0.82rem;
}

.mini-card .price {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.8rem;
}

/* Photo-rich listing cards in chat */
.chat-listings.photo-mode {
  gap: 16px;
  scroll-margin-top: 12px;
}

.chat-listings.photo-mode .photo-card:first-child {
  scroll-margin-top: 8px;
}

.photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
}

.photo-strip {
  display: block;
  position: relative;
  width: 100%;
  min-height: 168px;
  background: linear-gradient(135deg, #e8e4df 0%, #d4cfc8 100%);
  overflow: hidden;
}

.photo-strip img.photo-hero {
  display: block;
  width: 100%;
  height: 168px;
  min-height: 168px;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  background: transparent;
  filter: contrast(1.06) saturate(1.08);
}

.photo-strip img.photo-hero.is-broken {
  display: none;
}

.photo-strip .photo-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 168px;
  font-size: 0.78rem;
  color: #6b6560;
  letter-spacing: 0.02em;
}

.photo-strip.is-empty .photo-fallback {
  display: flex;
}

.photo-more {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.75);
  font-size: 0.72rem;
  color: var(--text);
}

.photo-card-body {
  padding: 12px 14px;
}

.photo-card-body h4 {
  margin: 0 0 4px;
  font-size: 0.88rem;
}

.photo-specs {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.photo-desc {
  margin: 8px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text);
  opacity: 0.92;
}

.cluster-note {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: var(--gold, #c9a227);
}

.photo-view-btn {
  margin-top: 10px;
  padding: 8px 14px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: transparent;
  color: var(--gold);
  font-size: 0.78rem;
  cursor: pointer;
}

.photo-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.amenity-chip {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--gold-dim);
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 500;
}

.photo-book-btn {
  margin-top: 8px;
  margin-left: 8px;
  padding: 8px 14px;
  border: none;
  border-radius: 999px;
  background: var(--gold);
  color: #0a0a0a;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.photo-view-btn:hover {
  background: var(--gold-dim);
}

/* Explore */
.explore-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px;
  scrollbar-width: none;
}

.filter-pill {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
  cursor: pointer;
}

.filter-pill.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

.explore-grid {
  padding: 0 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

.feature-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #222;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
}

.feature-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  font-size: 0.68rem;
  color: #fff;
}

.save-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.save-btn.saved { color: #ff6b8a; }

.feature-body { padding: 16px; }

.feature-body h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.feature-price {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 4px;
}

.feature-loc {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0 0 12px;
}

.feature-specs {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 0.78rem;
  color: var(--muted);
}

.gold-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: var(--gold);
  color: #0a0a0a;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.gold-btn.inline { width: auto; padding: 10px 18px; }

.gold-btn:disabled { opacity: 0.5; }

/* Profile */
.profile-card {
  padding: 24px 16px;
  text-align: center;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--gold);
  background: var(--surface);
}

.profile-field {
  display: block;
  text-align: left;
  margin-bottom: 16px;
  font-size: 0.82rem;
  color: var(--muted);
}

.profile-field input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.disclaimer {
  margin-top: 24px;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.5;
}

.pwa-install-banner {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--nav-h) + var(--composer-h) + env(safe-area-inset-bottom, 0px) + 8px);
  width: calc(100% - 24px);
  max-width: 456px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--gold);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.pwa-install-banner.hidden,
.pwa-install-banner[hidden] {
  display: none !important;
}

.pwa-install-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pwa-install-copy strong {
  font-size: 0.85rem;
  color: var(--text);
}

.pwa-install-copy span {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}

.pwa-install-x {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.25rem;
  cursor: pointer;
}

.pwa-profile-card {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--gold);
  background: var(--gold-dim);
}

.pwa-profile-card.hidden,
.pwa-profile-card[hidden] {
  display: none !important;
}

.pwa-profile-title {
  margin: 0 0 6px;
  font-weight: 600;
}

.pwa-ios-inner {
  padding: 8px 4px 4px;
}

.pwa-ios-steps {
  margin: 12px 0 20px;
  padding-left: 20px;
  line-height: 1.6;
  color: var(--text);
}

.pwa-ios-dialog {
  border: none;
  padding: 20px;
  max-width: 360px;
  background: var(--surface);
  color: var(--text);
  border-radius: 16px;
}

.pwa-standalone .elite-header {
  padding-top: max(8px, env(safe-area-inset-top, 0px));
  height: auto;
  min-height: var(--header-h);
}

@media (display-mode: standalone) {
  html, body {
    overscroll-behavior: none;
  }
}

/* Composer */
.composer-wrap {
  position: fixed;
  bottom: var(--nav-h);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  padding: 10px 16px;
  background: linear-gradient(transparent, var(--bg) 20%);
  z-index: 15;
}

.composer-wrap.hidden { display: none; }

.composer-ai-note {
  margin: 0 0 8px;
  font-size: 0.65rem;
  color: var(--muted);
  text-align: center;
  font-style: italic;
  opacity: 0.9;
}

.recording-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px 14px;
  font-size: 0.78rem;
  color: #f87171;
  background: rgba(220, 38, 38, 0.08);
  border-radius: 999px;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.recording-bar.hidden { display: none; }

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: mic-pulse 1s infinite;
}

@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
}

.composer {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 6px 6px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.mic-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface2);
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
}

.mic-btn.recording {
  background: rgba(220, 38, 38, 0.15);
  border-color: #dc2626;
  color: #f87171;
  animation: mic-pulse 1.2s ease-in-out infinite;
}

.mic-btn:disabled { opacity: 0.4; }

.composer input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  outline: none;
}

.composer input::placeholder { color: var(--muted); }

.send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--gold);
  color: #0a0a0a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.send-btn:disabled { opacity: 0.4; }

/* Bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: var(--nav-h);
  display: flex;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 20;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 0.62rem;
  cursor: pointer;
}

.nav-item.active { color: var(--gold); }

.nav-item svg { stroke: currentColor; }

/* Dialogs */
dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 20px;
  max-width: 420px;
  width: calc(100% - 32px);
}

dialog::backdrop { background: rgba(0,0,0,0.75); }

.lead-dialog h2 {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 1.1rem;
}

dialog label {
  display: block;
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--muted);
}

dialog input[type="text"],
dialog input[type="tel"],
dialog input[type="number"],
dialog input[type="file"],
dialog select,
dialog textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

dialog textarea {
  min-height: 72px;
  resize: vertical;
}

.owner-listing-dialog {
  max-height: min(90dvh, 720px);
  overflow: auto;
}

.owner-listing-error {
  margin-top: 12px;
  color: #f87171;
  font-size: 0.82rem;
}

dialog .checkbox {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--text);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.dialog-actions button:not(.gold-btn) {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.muted { color: var(--muted); font-size: 0.82rem; }
.center { text-align: center; }
.hidden { display: none !important; }

.badge {
  display: inline-block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--gold-dim);
  color: var(--gold);
  margin-right: 6px;
}

/* Listing detail + gallery */
.listing-dialog {
  padding: 0;
  border: none;
  border-radius: var(--radius);
  max-width: 480px;
  width: calc(100% - 24px);
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  background: var(--surface);
}

.listing-dialog-inner {
  position: relative;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
}

.listing-close {
  position: sticky;
  top: 8px;
  float: right;
  z-index: 2;
  margin: 8px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(10,10,10,0.85);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

.listing-gallery-empty { height: 220px; background: #222; }

.photo-gallery { background: #111; }

.gallery-main-img {
  width: 100%;
  height: min(52vw, 280px);
  object-fit: cover;
  filter: contrast(1.08) saturate(1.1);
}

.gallery-main-wrap { position: relative; }

.gallery-main {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: #111;
  cursor: zoom-in;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(10,10,10,0.85);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

.gallery-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(10,10,10,0.85);
  color: var(--muted);
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 12px;
}

.gallery-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 54px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
}

.gallery-thumb.active { border-color: var(--gold); }

.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.08) saturate(1.1); }

.gallery-toggle {
  display: block;
  width: calc(100% - 24px);
  margin: 0 12px 12px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 0 12px 12px;
}

.gallery-grid-item {
  padding: 0;
  border: none;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-grid-item img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.08) saturate(1.1); }

.listing-body { padding: 16px; }

.listing-title { margin: 0 0 8px; font-size: 1.15rem; }

.listing-price { color: var(--gold); font-weight: 700; margin: 0 0 8px; }

.listing-location, .listing-specs, .listing-meta { color: var(--muted); font-size: 0.85rem; }

.listing-desc { line-height: 1.5; font-size: 0.9rem; }

.listing-amenities { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }

.amenity {
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.listing-book {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 12px;
  border: none;
  border-radius: 12px;
  background: var(--gold);
  color: #0a0a0a;
  font-weight: 700;
  cursor: pointer;
}

.listing-report {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}

.listing-report:disabled { opacity: 0.6; cursor: wait; }
.listing-report-success { color: #176b3a; font-size: 0.9rem; }

.photo-lightbox {
  padding: 0;
  border: none;
  max-width: none;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
}

.photo-lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 80px);
  margin: 40px auto;
  object-fit: contain;
}

.lightbox-close, .lightbox-nav {
  position: fixed;
  z-index: 3;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(10,10,10,0.85);
  color: var(--text);
  cursor: pointer;
}

.lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; font-size: 1.5rem; }

.lightbox-nav { top: 50%; transform: translateY(-50%); width: 44px; height: 44px; font-size: 1.6rem; }

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

.lightbox-counter {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10,10,10,0.85);
  color: var(--muted);
  font-size: 0.82rem;
}

.lead-listing { font-weight: 500; color: var(--text); }
.viewing-policy-note { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface2); font-size: 0.84rem; line-height: 1.5; }
.viewing-report-link { display: inline-block; margin: 0 0 12px; color: var(--gold); font-weight: 600; }

.listing-loading, .listing-error { padding: 24px; text-align: center; }

/* Side menu drawer */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 90;
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 88vw);
  max-width: 480px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(-105%);
  transition: transform 0.24s ease;
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.35);
}

.side-menu.open {
  transform: translateX(0);
}

.side-menu-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 16px 12px;
  border-bottom: 1px solid var(--line);
}

.side-menu-brand {
  margin: 0 0 4px;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-weight: 700;
}

.side-menu-tagline {
  margin: 0 0 4px;
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.35;
}

.side-menu-powered {
  margin: 0 0 8px;
  font-size: 0.68rem;
  color: var(--muted);
}

.side-menu-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.side-menu-close {
  font-size: 1.6rem;
  line-height: 1;
  padding: 2px 8px;
}

.side-menu-primary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 16px 8px;
  padding: 12px 14px;
  border: 1px solid var(--gold);
  border-radius: 12px;
  background: var(--gold-dim);
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.side-menu-primary:hover {
  background: rgba(201, 162, 39, 0.22);
}

.side-menu-icon {
  font-size: 1.1rem;
  font-weight: 700;
}

.side-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 10px 10px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.side-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
}

.side-menu-link:hover {
  background: var(--surface2);
}

.side-menu-link span:first-child {
  width: 20px;
  text-align: center;
  color: var(--gold);
}

.side-menu-section {
  flex: 1 1 auto;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  padding: 14px 12px 6px;
  gap: 6px;
}

.side-menu-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 2px;
  flex-shrink: 0;
}

.side-menu-section-head h3 {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.session-count {
  font-size: 0.7rem;
  color: var(--muted);
  min-width: 1.25em;
  text-align: right;
}

.session-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
  margin: 0;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--muted) 45%, transparent) transparent;
}

.session-list::-webkit-scrollbar {
  width: 4px;
}

.session-list::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--muted) 40%, transparent);
  border-radius: 999px;
}

.session-empty {
  padding: 10px 6px;
  font-size: 0.84rem;
  margin: 0;
  line-height: 1.4;
}

.session-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.session-item:hover {
  background: var(--surface2);
}

.session-item.active {
  background: var(--gold-dim);
  box-shadow: inset 2px 0 0 var(--gold);
}

.session-item-title {
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-item-preview {
  display: none;
}

.session-item-meta {
  flex-shrink: 0;
  font-size: 0.68rem;
  color: var(--muted);
  margin: 0;
  white-space: nowrap;
}

.side-menu-foot {
  padding: 10px 16px 18px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}

.side-menu-foot-brand {
  margin: 0 0 8px;
  font-size: 0.68rem;
  color: var(--teal);
  letter-spacing: 0.04em;
  text-align: center;
}

.side-menu-muted {
  width: 100%;
  padding: 6px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
}

.side-menu-muted:hover {
  color: var(--text);
}

body.menu-open {
  overflow: hidden;
}

/* Ghana: quieter recent-chat active state (red brand, less boxed) */
.market-gh .session-item.active {
  background: rgba(216, 0, 8, 0.08);
  box-shadow: inset 2px 0 0 #d80008;
}

.market-gh .side-menu-section {
  min-height: 180px;
}
