:root {
  --re-primary: #0d9488;
  --re-primary-dark: #0f766e;
  --re-accent: #f59e0b;
  --re-bg: #f0fdfa;
  --re-surface: #ffffff;
  --re-text: #134e4a;
  --re-muted: #64748b;
  --re-border: rgba(15, 23, 42, 0.1);
  --re-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --re-radius: 14px;
  --re-nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--re-text);
  background: var(--re-bg);
  min-height: 100vh;
}

a { color: var(--re-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.hidden { display: none !important; }

/* Splash */
#re-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(145deg, #042f2e 0%, #0d9488 50%, #14b8a6 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: opacity 0.5s, visibility 0.5s;
}
#re-splash.done { opacity: 0; visibility: hidden; pointer-events: none; }
.re-splash-logo {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  animation: re-pulse 1.5s ease infinite;
}
@keyframes re-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
#re-splash h1 { margin: 0 0 0.35rem; font-size: 1.75rem; font-weight: 800; }
#re-splash p { margin: 0; opacity: 0.85; font-size: 0.95rem; }

/* Layout */
#re-app { padding-bottom: 80px; min-height: 100vh; }
.re-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--re-nav-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--re-border);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 0.75rem;
}
.re-nav-brand {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--re-primary-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  white-space: nowrap;
}
.re-nav-search {
  flex: 1;
  max-width: 480px;
  display: flex;
  gap: 0.4rem;
}
.re-nav-search input {
  flex: 1;
  border: 1px solid var(--re-border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  outline: none;
}
.re-nav-search input:focus { border-color: var(--re-primary); }
.re-nav-actions { display: flex; align-items: center; gap: 0.35rem; margin-left: auto; }
.re-icon-btn {
  position: relative;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  font-size: 1.15rem;
  color: var(--re-text);
}
.re-icon-btn:hover { background: rgba(13,148,136,0.08); }
.re-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.re-container { max-width: 1200px; margin: 0 auto; padding: 1.25rem 1rem; }

/* Buttons */
.re-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: none;
  border-radius: 10px;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.re-btn:active { transform: scale(0.98); }
.re-btn-primary { background: var(--re-primary); color: #fff; }
.re-btn-primary:hover { background: var(--re-primary-dark); }
.re-btn-outline { background: transparent; border: 1px solid var(--re-border); color: var(--re-text); }
.re-btn-outline:hover { border-color: var(--re-primary); color: var(--re-primary); }
.re-btn-danger { background: #ef4444; color: #fff; }
.re-btn-sm { padding: 0.35rem 0.75rem; font-size: 0.82rem; }
.re-btn-block { width: 100%; }

/* Cards grid */
.re-hero {
  background: linear-gradient(135deg, #042f2e, #0d9488);
  color: #fff;
  border-radius: var(--re-radius);
  padding: 2rem 1.5rem;
  margin-bottom: 1.5rem;
}
.re-hero h2 { margin: 0 0 0.5rem; font-size: 1.6rem; }
.re-hero p { margin: 0 0 1rem; opacity: 0.9; max-width: 520px; line-height: 1.5; }
.re-hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.re-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.re-quick-card {
  background: var(--re-surface);
  border: 1px solid var(--re-border);
  border-radius: var(--re-radius);
  padding: 1.15rem;
  box-shadow: var(--re-shadow);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
}
.re-quick-card:hover { transform: translateY(-2px); border-color: var(--re-primary); }
.re-quick-card-icon { font-size: 1.75rem; margin-bottom: 0.35rem; }
.re-quick-card h4 { margin: 0 0 0.35rem; font-size: 1rem; }
.re-quick-card p { margin: 0; font-size: 0.82rem; color: var(--re-muted); line-height: 1.45; }

.re-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.5rem;
}
.re-step {
  background: var(--re-surface);
  border: 1px solid var(--re-border);
  border-radius: 12px;
  padding: 1rem;
}
.re-step-num {
  width: 28px; height: 28px; border-radius: 999px;
  background: var(--re-primary); color: #fff;
  font-size: 0.82rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.5rem;
}
.re-step h4 { margin: 0 0 0.25rem; font-size: 0.92rem; }
.re-step p { margin: 0; font-size: 0.8rem; color: var(--re-muted); line-height: 1.4; }

.re-seller-banner {
  background: linear-gradient(135deg, #ecfdf5, #ccfbf1);
  border: 1px solid rgba(13,148,136,0.25);
  border-radius: var(--re-radius);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.5rem;
}
.re-seller-banner h3 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.re-seller-banner p { margin: 0 0 0.85rem; color: var(--re-muted); font-size: 0.9rem; line-height: 1.5; }
.re-seller-banner-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.re-add-map { height: 220px; border-radius: 10px; border: 1px solid var(--re-border); margin-top: 0.35rem; }
.re-form-hint { font-size: 0.78rem; color: var(--re-muted); margin-top: 0.25rem; }

.re-filters {
  background: var(--re-surface);
  border: 1px solid var(--re-border);
  border-radius: var(--re-radius);
  padding: 1rem;
  margin-bottom: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
}
.re-filters label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--re-muted); margin-bottom: 0.25rem; }
.re-filters input, .re-filters select {
  width: 100%;
  border: 1px solid var(--re-border);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  font-size: 0.85rem;
}
.re-filter-actions { grid-column: 1 / -1; display: flex; gap: 0.5rem; flex-wrap: wrap; }

.re-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.re-card {
  background: var(--re-surface);
  border: 1px solid var(--re-border);
  border-radius: var(--re-radius);
  overflow: hidden;
  box-shadow: var(--re-shadow);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.re-card:hover { transform: translateY(-3px); box-shadow: 0 16px 48px rgba(13,148,136,0.12); }
.re-card-img {
  position: relative;
  height: 180px;
  background: #ccfbf1;
  overflow: hidden;
}
.re-card-img img { width: 100%; height: 100%; object-fit: cover; }
.re-card-img .re-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; opacity: 0.4;
}
.re-card-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--re-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
}
.re-card-fav {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 999px;
  width: 36px; height: 36px;
  cursor: pointer;
  font-size: 1.1rem;
}
.re-card-fav.active { color: #ef4444; }
.re-card-body { padding: 0.85rem 1rem 1rem; }
.re-card-price { font-size: 1.15rem; font-weight: 800; color: var(--re-primary-dark); }
.re-card-title { font-weight: 700; margin: 0.25rem 0; font-size: 0.95rem; line-height: 1.35; }
.re-card-meta { font-size: 0.8rem; color: var(--re-muted); display: flex; flex-wrap: wrap; gap: 0.5rem; }
.re-card-meta span::before { content: '·'; margin-right: 0.5rem; }
.re-card-meta span:first-child::before { content: none; }

/* Detail page */
.re-detail { display: grid; grid-template-columns: 1fr 340px; gap: 1.25rem; }
@media (max-width: 900px) { .re-detail { grid-template-columns: 1fr; } }
.re-gallery { border-radius: var(--re-radius); overflow: hidden; background: #e2e8f0; }
.re-gallery-main { height: 360px; position: relative; }
.re-gallery-main img, .re-gallery-main video { width: 100%; height: 100%; object-fit: cover; }
.re-gallery-thumbs { display: flex; gap: 0.4rem; padding: 0.5rem; overflow-x: auto; background: #fff; }
.re-gallery-thumbs img { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; }
.re-gallery-thumbs img.active { border-color: var(--re-primary); }
.re-detail-panel {
  background: var(--re-surface);
  border: 1px solid var(--re-border);
  border-radius: var(--re-radius);
  padding: 1.25rem;
  box-shadow: var(--re-shadow);
  height: fit-content;
  position: sticky;
  top: calc(var(--re-nav-h) + 1rem);
}
.re-detail-panel h1 { margin: 0 0 0.35rem; font-size: 1.35rem; }
.re-detail-price { font-size: 1.5rem; font-weight: 800; color: var(--re-primary-dark); margin-bottom: 0.75rem; }
.re-features { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.re-feature {
  background: #f0fdfa;
  border: 1px solid rgba(13,148,136,0.2);
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
}
.re-owner-box {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem; background: #f8fafc; border-radius: 10px; margin: 1rem 0;
}
.re-owner-avatar {
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--re-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.re-stars { color: var(--re-accent); font-size: 0.9rem; }

.re-map { height: 280px; border-radius: var(--re-radius); overflow: hidden; margin: 1rem 0; border: 1px solid var(--re-border); }

/* Forms */
.re-form { max-width: 480px; margin: 0 auto; }
.re-form-group { margin-bottom: 0.85rem; }
.re-form-group label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.3rem; }
.re-form-group input, .re-form-group select, .re-form-group textarea {
  width: 100%;
  border: 1px solid var(--re-border);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  font-family: inherit;
}
.re-form-group textarea { min-height: 100px; resize: vertical; }
.re-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.re-form-check { display: flex; align-items: center; gap: 0.4rem; font-size: 0.88rem; }
.re-upload-preview { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.re-upload-preview img { width: 80px; height: 60px; object-fit: cover; border-radius: 6px; }

/* Chat */
.re-chat-layout { display: grid; grid-template-columns: 280px 1fr; gap: 1rem; min-height: 420px; }
@media (max-width: 700px) { .re-chat-layout { grid-template-columns: 1fr; } }
.re-chat-list { background: var(--re-surface); border: 1px solid var(--re-border); border-radius: var(--re-radius); overflow: hidden; }
.re-chat-item { padding: 0.75rem 1rem; border-bottom: 1px solid var(--re-border); cursor: pointer; }
.re-chat-item:hover, .re-chat-item.active { background: #f0fdfa; }
.re-chat-window { background: var(--re-surface); border: 1px solid var(--re-border); border-radius: var(--re-radius); display: flex; flex-direction: column; }
.re-chat-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; max-height: 360px; }
.re-msg { max-width: 75%; padding: 0.55rem 0.85rem; border-radius: 12px; font-size: 0.88rem; line-height: 1.4; }
.re-msg.mine { align-self: flex-end; background: var(--re-primary); color: #fff; }
.re-msg.theirs { align-self: flex-start; background: #f1f5f9; }
.re-chat-input { display: flex; gap: 0.5rem; padding: 0.75rem; border-top: 1px solid var(--re-border); }
.re-chat-input input { flex: 1; border: 1px solid var(--re-border); border-radius: 999px; padding: 0.5rem 1rem; }

/* Bottom nav (mobile) */
.re-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--re-border);
  display: flex;
  justify-content: space-around;
  padding: 0.4rem 0;
}
.re-bottom-nav button {
  border: none; background: transparent;
  display: flex; flex-direction: column; align-items: center;
  gap: 0.15rem; font-size: 0.65rem; color: var(--re-muted);
  cursor: pointer; padding: 0.35rem 0.5rem;
}
.re-bottom-nav button.active { color: var(--re-primary); font-weight: 700; }
.re-bottom-nav button span.icon { font-size: 1.25rem; }

/* Toast */
.re-toast {
  position: fixed;
  bottom: 90px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #042f2e;
  color: #fff;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-size: 0.85rem;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.re-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Modal */
.re-modal-backdrop {
  position: fixed; inset: 0; z-index: 5000;
  background: rgba(15,23,42,0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.re-modal {
  background: var(--re-surface);
  border-radius: var(--re-radius);
  padding: 1.25rem;
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--re-shadow);
}
.re-modal h3 { margin: 0 0 1rem; }

/* Admin table */
.re-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.re-table th, .re-table td { padding: 0.6rem 0.75rem; text-align: left; border-bottom: 1px solid var(--re-border); }
.re-table th { font-weight: 700; color: var(--re-muted); font-size: 0.75rem; text-transform: uppercase; }
.re-status { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.re-status-pending { background: #fef3c7; color: #92400e; }
.re-status-approved { background: #d1fae5; color: #065f46; }
.re-status-rejected { background: #fee2e2; color: #991b1b; }

.re-empty { text-align: center; padding: 3rem 1rem; color: var(--re-muted); }
.re-empty-icon { font-size: 3rem; margin-bottom: 0.5rem; opacity: 0.5; }

.re-view-toggle { display: flex; gap: 0.35rem; margin-bottom: 1rem; }
.re-view-toggle button.active { background: var(--re-primary); color: #fff; border-color: var(--re-primary); }

.re-section-title { font-size: 1.1rem; font-weight: 800; margin: 1.5rem 0 0.75rem; }

.re-notif-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--re-border);
  cursor: pointer;
}
.re-notif-item.unread { background: #f0fdfa; font-weight: 600; }

.re-face-capture {
  border: 1px solid var(--re-border);
  border-radius: var(--re-radius);
  overflow: hidden;
  background: #0f172a;
  position: relative;
}
.re-face-capture video, .re-face-capture canvas, .re-face-capture img {
  width: 100%;
  display: block;
  max-height: 240px;
  object-fit: cover;
}
.re-face-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.re-verify-note {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  line-height: 1.45;
  margin-bottom: 1rem;
}
.re-face-status { font-size: 0.82rem; margin-top: 0.35rem; color: var(--re-muted); }
.re-face-status.ok { color: #059669; font-weight: 600; }
.re-face-status.err { color: #dc2626; }

.re-form-wide { max-width: 640px; margin-left: auto; margin-right: auto; }
.re-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.re-hero-btn-light,
.re-btn-light { color: #fff; border-color: rgba(255,255,255,0.5); }

/* Mobile drawer */
.re-show-mobile { display: none; }
.re-hide-mobile { display: initial; }
.re-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
}
.re-mobile-drawer.open {
  pointer-events: auto;
  visibility: visible;
}
.re-mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  transition: opacity 0.25s;
}
.re-mobile-drawer.open .re-mobile-drawer-backdrop { opacity: 1; }
.re-mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(300px, 88vw);
  height: 100%;
  background: var(--re-surface);
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.12);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
}
.re-mobile-drawer.open .re-mobile-drawer-panel { transform: translateX(0); }
.re-mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--re-border);
}
.re-mobile-drawer-links {
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  gap: 0.25rem;
  overflow-y: auto;
}
.re-mobile-drawer-links button,
.re-mobile-drawer-links a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--re-text);
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.re-mobile-drawer-links button:hover,
.re-mobile-drawer-links a:hover { background: #f0fdfa; }

/* ── Responsive: tablet ── */
@media (max-width: 1024px) {
  .re-container { padding: 1rem 0.85rem; }
  .re-detail-panel { position: static; }
  .re-gallery-main { height: 300px; }
}

/* ── Responsive: mobile & small tablet ── */
@media (max-width: 768px) {
  :root { --re-nav-h: 56px; }

  html { -webkit-text-size-adjust: 100%; }
  body { overflow-x: hidden; }

  .re-show-mobile { display: inline-flex; }
  .re-hide-mobile { display: none !important; }
  .re-nav-desktop-btns { display: none !important; }

  #re-app {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .re-nav {
    padding: 0 0.65rem;
    gap: 0.35rem;
    min-height: var(--re-nav-h);
    height: auto;
  }
  .re-nav-brand { font-size: 1rem; flex-shrink: 0; }
  .re-nav-actions { gap: 0.15rem; margin-left: auto; flex-shrink: 0; }
  .re-icon-btn {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .re-container { padding: 0.85rem 0.75rem; }

  .re-hero {
    padding: 1.35rem 1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
  }
  .re-hero h2 { font-size: 1.35rem; }
  .re-hero p { font-size: 0.88rem; margin-bottom: 0.85rem; }
  .re-hero-actions { flex-direction: column; }
  .re-hero-actions .re-btn { width: 100%; min-height: 44px; }

  .re-quick-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }
  .re-quick-card { padding: 0.85rem; }
  .re-quick-card-icon { font-size: 1.4rem; }
  .re-quick-card h4 { font-size: 0.88rem; }
  .re-quick-card p { font-size: 0.75rem; display: none; }

  .re-steps { grid-template-columns: 1fr; gap: 0.65rem; }
  .re-seller-banner { padding: 1rem; }
  .re-seller-banner-actions { flex-direction: column; }
  .re-seller-banner-actions .re-btn { width: 100%; min-height: 44px; }

  .re-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .re-card-img { height: 200px; }

  .re-filters {
    grid-template-columns: 1fr 1fr;
    padding: 0.85rem;
  }
  .re-filter-actions { flex-direction: column; }
  .re-filter-actions .re-btn { width: 100%; min-height: 44px; }

  .re-form-row { grid-template-columns: 1fr; }
  .re-form-group input,
  .re-form-group select,
  .re-form-group textarea {
    font-size: 16px; /* prevent iOS zoom on focus */
    min-height: 44px;
  }
  .re-form-group textarea { min-height: 120px; }
  .re-btn { min-height: 44px; padding: 0.65rem 1rem; }

  .re-gallery-main { height: 220px; }
  .re-gallery-thumbs img { width: 64px; height: 48px; flex-shrink: 0; }
  .re-detail h2 { font-size: 1.15rem; word-break: break-word; }
  .re-detail-price { font-size: 1.25rem; }
  .re-detail-panel { padding: 1rem; }
  .re-map, .re-add-map { height: 200px; }

  .re-chat-layout { min-height: 360px; }
  .re-chat-messages { max-height: 280px; }
  .re-chat-input input { font-size: 16px; min-height: 44px; }

  .re-table { font-size: 0.78rem; min-width: 520px; }
  .re-table th, .re-table td { padding: 0.5rem; }

  .re-bottom-nav {
    display: flex;
    padding: 0.35rem 0 calc(0.35rem + env(safe-area-inset-bottom, 0px));
  }
  .re-bottom-nav button {
    min-width: 56px;
    min-height: 48px;
    padding: 0.25rem 0.35rem;
  }

  .re-toast {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 2rem);
    text-align: center;
  }

  .re-modal-backdrop { padding: 0.75rem; align-items: flex-end; }
  .re-modal {
    max-height: 85vh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .re-upload-preview img { width: 72px; height: 54px; }
  .re-face-capture video,
  .re-face-capture canvas,
  .re-face-capture img { max-height: 200px; }

  .re-section-title { font-size: 1rem; }
  .re-empty { padding: 2rem 0.75rem; }
}

/* Very small phones */
@media (max-width: 380px) {
  .re-quick-grid { grid-template-columns: 1fr; }
  .re-quick-card p { display: block; }
  .re-nav-brand { font-size: 0.92rem; }
}

/* ── Desktop: hide mobile-only UI ── */
@media (min-width: 769px) {
  .re-bottom-nav { display: none; }
  #re-app { padding-bottom: 0; }
  .re-mobile-drawer { display: none; }
  #re-nav-toggle { display: none !important; }
  #re-mobile-search-btn { display: none !important; }
}
