:root {
  --bg: #ffffff;
  --bg-deep: #f3f1ed;
  --surface: #ffffff;
  --ink: #1f1914;
  --muted: #5f564d;
  --line: #ebe4da;
  --accent: #d4532b;
  --accent-dark: #a33c1b;
  --pine: #1f4a38;
  --pine-soft: #e5f2eb;
  --gold: #8a5a12;
  --gold-soft: #f8efd8;
  --danger: #9f1239;
  --shadow: 0 12px 32px rgba(36, 28, 22, 0.06);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 20px;
  --font: "Outfit", system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --page-gutter: clamp(18px, 5vw, 28px);
  --page-max: 1120px;
  --app-max: 560px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.0625rem;
  --text-lg: 1.1875rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.625rem;
  --text-3xl: 2rem;
  --leading: 1.55;
  --leading-tight: 1.2;
  --tap: 48px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading);
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
img { max-width: 100%; display: block; }
a { color: var(--pine); }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: var(--leading-tight);
  margin: 0 0 0.35rem;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(var(--text-2xl), 4.6vw, 3.4rem); }
h2 { font-size: clamp(var(--text-xl), 2.8vw, var(--text-2xl)); }
h3 { font-size: var(--text-lg); font-weight: 650; }
p { margin: 0 0 0.75rem; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr, .skip {
  position: absolute;
  left: -999px;
}
.skip:focus { left: 12px; top: 12px; background: white; padding: 8px 12px; z-index: 9; }

.topbar, .section, .listing, .site-footer, .auth-card, .hero, .flash, .desktop-nav-bar {
  width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
  margin-inline: auto;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}
.brand-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 8px;
}
.brand-preview {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background:
    linear-gradient(var(--bg), var(--bg)) 11px 16px / 6px 8px no-repeat,
    linear-gradient(135deg, transparent 48%, var(--bg) 49% 51%, transparent 52%) center 7px / 16px 10px no-repeat,
    var(--pine);
}
.desktop-nav { display: none; gap: 18px; }
.desktop-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.top-actions { margin-left: auto; }
.menu { position: relative; }
.menu summary {
  list-style: none;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
}
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 180px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 5;
}
.menu-panel a, .menu-panel button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--bg); }

.hero { margin: 18px auto 10px; display: grid; gap: 22px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--accent-dark);
  margin: 0 0 6px;
  font-family: var(--font);
}
.lede {
  font-size: var(--text-md);
  line-height: 1.55;
  color: var(--muted);
  max-width: 38rem;
  margin-bottom: 0.9rem;
}
.hero-panel, .auth-card, .empty, .filters, .room, .enquiry {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-panel { padding: var(--space-4); }
.searchbar { display: grid; gap: 10px; }
.searchbar label span, .stack label span, .filters label span, .property-form label span, .room-form label span, .decision label span {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
input, select, textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #d5c9b6;
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  min-height: var(--tap);
  font-size: 16px;
  line-height: 1.35;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #e7b199; border-color: var(--accent); }
.hero-stat { margin: 12px 0 0; color: var(--muted); }
.hero-stat strong { color: var(--pine); }
.hero-rotate {
  display: inline-grid;
  vertical-align: baseline;
  min-width: 7.2ch;
  text-align: left;
  color: var(--pine);
}
.hero-rotate-word {
  grid-area: 1 / 1;
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  transition: opacity 0.45s ease, transform 0.45s ease;
  white-space: nowrap;
}
.hero-rotate-word.is-in {
  opacity: 1;
  transform: translateY(0);
}
.hero-rotate-word.is-out {
  opacity: 0;
  transform: translateY(-0.35em);
}
@media (prefers-reduced-motion: reduce) {
  .hero-rotate-word {
    transition: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  padding: 12px 18px;
  min-height: var(--tap);
  font-weight: 650;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.btn:active { transform: scale(0.985); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); }
.btn.is-loading {
  pointer-events: none;
  opacity: 0.85;
}
.btn.is-loading::before {
  content: "";
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .btn.is-loading::before { animation: none; border-right-color: currentColor; opacity: 0.45; }
}
.btn-danger { background: white; border-color: var(--danger); color: var(--danger); }
.btn-small { padding: 8px 12px; min-height: 40px; }
.text-btn { background: none; border: 0; color: var(--pine); padding: 0; font-weight: 650; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

.section { margin: var(--space-6) auto; }
.section-head, .button-row, .price-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: end; }
.section-head a { font-weight: 650; }
.loc-grid, .paths, .pg-grid, .stat-grid { display: grid; gap: 12px; }
.loc, .path {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--ink);
}
.loc small, .muted, .fine { color: var(--muted); }
.fine { font-size: var(--text-sm); line-height: 1.5; }
.path h2 { font-size: 1.35rem; }
.path:hover, .loc:hover, .pg-card:hover { border-color: #c9b79a; }
.paths-row {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.paths-row .path-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}
.settings-form .check {
  margin-top: 4px;
}
.settings-form code {
  font-size: 0.85em;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.chip, .badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--gold-soft);
  color: var(--ink);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
}
.chip-btn { border: 0; cursor: pointer; font: inherit; }
.chip.is-on, .badge { background: var(--pine); color: white; }
.badge-quiet, .badge-pending { background: var(--gold-soft); color: var(--gold); }
.badge-approved { background: var(--pine-soft); color: var(--pine); }
.badge-verified { background: var(--pine-soft); color: var(--pine); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.72rem; }
.badge-rejected, .badge-wait { background: #fde8ee; color: var(--danger); }
.email-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.id-docs {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  display: grid;
  gap: 10px;
  background: var(--surface);
}
.id-docs legend {
  font-weight: 700;
  padding: 0 4px;
}

.pg-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.pg-photo { position: relative; display: block; aspect-ratio: 16/10; background: var(--bg-deep); }
.pg-photo img, .pg-photo video, .gallery-main, .thumbs img, .thumbs video { width: 100%; height: 100%; object-fit: cover; }
.pg-photo .badge { position: absolute; left: 10px; top: 10px; }
.pg-body { padding: 12px 14px 16px; }
.pg-body h2 { font-size: 1.35rem; }
.pg-body h2 a { color: inherit; text-decoration: none; }
.place { color: var(--muted); font-size: 0.92rem; margin-bottom: 2px; }
.rent { font-weight: 700; font-size: 1.15rem; margin: 6px 0; }
.rent span { font-weight: 500; color: var(--muted); font-size: 0.9rem; }
.beds.is-open { color: var(--pine); font-weight: 650; }
.beds.is-full { color: var(--danger); }
.near { color: var(--muted); font-size: 0.92rem; }
.photo-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 160px;
  font-family: var(--serif);
  font-size: 3rem;
  background: linear-gradient(160deg, #1f4a38, #d4532b);
  color: white;
}
.photo-fallback.large { min-height: 240px; border-radius: var(--radius); }

.search-layout { display: grid; gap: 16px; }
.filters { padding: 16px; display: grid; gap: 10px; align-content: start; }
.filters-dropdown {
  gap: 12px;
}
.search-primary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.search-primary .search-q {
  margin: 0;
}
.search-primary .search-q span { display: none; }
.search-primary input[type="search"] {
  width: 100%;
}
.search-go {
  width: auto;
  white-space: nowrap;
}
.filter-drawer {
  margin: 0;
}
.filter-drawer > summary.filter-toggle {
  list-style: none;
  width: 100%;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  user-select: none;
}
.filter-drawer > summary.filter-toggle::-webkit-details-marker {
  display: none;
}
.filter-drawer[open] > summary.filter-toggle {
  background: var(--pine-soft);
  border-color: #b7d0c2;
  color: var(--pine);
}
.filter-drawer:not([open]) > .filter-panel {
  display: none;
}
.filter-drawer[open] > .filter-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.filter-checks {
  display: grid;
  gap: 6px;
}
.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
@media (min-width: 520px) {
  .search-primary {
    grid-template-columns: 1fr auto;
  }
  .filter-drawer > summary.filter-toggle {
    width: auto;
    display: inline-flex;
    white-space: nowrap;
  }
}
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.check input { width: auto; }
.pager { display: flex; gap: 14px; align-items: center; margin-top: 16px; }
.empty { padding: 22px; }

.listing { display: grid; gap: 18px; margin-top: 12px; }
.gallery { display: grid; gap: 10px; }
.gallery-stage {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-deep);
  aspect-ratio: 16 / 10;
  max-height: 460px;
  touch-action: pan-y;
}
.gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.28s ease;
  will-change: transform;
}
.gallery-slide {
  margin: 0;
  flex: 0 0 100%;
  height: 100%;
}
.gallery-slide img,
.gallery-slide video,
.gallery-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  max-height: none;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  z-index: 2;
}
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.gallery-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}
.gallery-dots button.is-on {
  width: 18px;
  background: #fff;
}
.gallery-count {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(20, 16, 12, 0.62);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 650;
  padding: 5px 9px;
  border-radius: 999px;
}
.thumbs { display: flex; gap: 8px; margin-top: 0; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumbs button, .thumbs figure {
  width: 84px;
  flex: 0 0 auto;
  border: 2px solid transparent;
  padding: 0;
  background: none;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}
.thumbs button.is-on { border-color: var(--pine); }
.thumbs img, .thumbs video { height: 64px; border-radius: 10px; }
.pg-photo { position: relative; }
.pg-photo-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  background: rgba(20, 16, 12, 0.62);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 650;
  padding: 4px 8px;
  border-radius: 999px;
}
.listing-copy h2 { margin-top: 1.4rem; }
.facts { display: grid; gap: 12px; margin: 0 0 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.facts div { display: grid; gap: 3px; }
.facts dt { color: var(--muted); font-size: var(--text-xs); font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; }
.facts dd { margin: 0; font-weight: 600; font-size: var(--text-md); line-height: 1.35; }
.rules { margin: 0; padding-left: 18px; }
.availability {
  background: var(--pine-soft);
  border-radius: 16px;
  padding: 10px 14px;
  min-width: 140px;
}
.availability strong { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1; }
.availability.is-full { background: #fde8ee; }
.room-list, .enquiry-list { display: grid; gap: 12px; }
.room, .enquiry { padding: 14px; box-shadow: none; }
.room header p, .enquiry header { color: var(--muted); }
.bed-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.bed {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--bg);
}
.bed strong { text-align: right; }
.bed small { grid-column: 1 / -1; color: var(--muted); }
.bed.is-available strong { color: var(--pine); }
.bed.is-occupied strong { color: var(--danger); }
.bed.is-reserved strong { color: var(--gold); }
.bed select { grid-column: 1 / -1; }
.enquire { margin-top: 8px; }

.auth-card {
  margin-top: var(--space-5);
  margin-bottom: var(--space-6);
  padding: var(--space-5) var(--space-5) var(--space-6);
  max-width: 520px;
}
.auth-wide { max-width: 640px; }
.stack, .property-form, .decision { display: grid; gap: 14px; }
fieldset { border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 12px; }
legend { font-weight: 700; padding: 0 6px; }
.choice { display: flex; gap: 10px; align-items: center; font-size: var(--text-md); }
.choice input { width: auto; min-height: auto; }
.demo-otp, .note {
  background: var(--gold-soft);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.demo-otp strong { display: block; font-size: 1.8rem; letter-spacing: 0.18em; }
.note { color: var(--gold); }
.check-grid { display: grid; gap: 8px; }
.property-form, .room-form { margin-top: 12px; }
.room-form { display: grid; gap: 10px; }
.danger-form { margin-top: 18px; }
.stat-grid { margin: 14px 0 18px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
}
.stat strong { display: block; font-family: var(--serif); font-size: 1.8rem; }
.stat span { color: var(--muted); }
.metric {
  background: var(--pine);
  color: #f6f1e7;
  border-radius: 22px;
  padding: 18px 20px;
  margin: 12px 0 16px;
}
.metric strong { display: block; font-family: var(--serif); font-size: clamp(3rem, 8vw, 5rem); line-height: 0.95; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.inline-role select { max-width: 9.5rem; font: inherit; padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px; background: white; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.row-actions { display: flex; gap: 10px; white-space: nowrap; }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 8px; align-items: center; }
.bar-row small { grid-column: 1 / -1; color: var(--muted); }
.bar { height: 10px; background: var(--bg-deep); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); }
.checklist { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 8px 0 12px; list-style: none; }
.checklist li { padding: 6px 10px; border-radius: 999px; background: white; border: 1px dashed #c9b79a; color: var(--muted); }
.checklist .is-done { border-style: solid; background: var(--pine-soft); color: var(--pine); }
.flash {
  width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
  margin: 12px auto;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.45;
}
.flash-ok { background: var(--pine-soft); color: var(--pine); }
.flash-err { background: #fde8ee; color: var(--danger); }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 12px;
  color: var(--muted);
  font-size: var(--text-sm);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid rgba(227, 216, 200, 0.9);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  z-index: 6;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 -8px 24px rgba(36, 28, 22, 0.04);
}
.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  padding: 6px 2px 4px;
  position: relative;
  min-height: 52px;
  justify-content: center;
}
.tab-icon {
  width: 22px;
  height: 22px;
  display: block;
  background: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
  opacity: 0.85;
}
.tab-icon-home { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M4 10.5 12 4l8 6.5V20a1 1 0 0 1-1 1h-5v-6H10v6H5a1 1 0 0 1-1-1z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M4 10.5 12 4l8 6.5V20a1 1 0 0 1-1 1h-5v-6H10v6H5a1 1 0 0 1-1-1z'/></svg>"); }
.tab-icon-home2 { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M3 10.5 12 3l9 7.5V21H14v-6H10v6H3z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M3 10.5 12 3l9 7.5V21H14v-6H10v6H3z'/></svg>"); }
.tab-icon-search { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/></svg>"); }
.tab-icon-ask { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M12 3a7 7 0 0 0-7 7c0 3.2 2 5.2 3.5 6.5L8 21h8l-.5-4.5C17 15.2 19 13.2 19 10a7 7 0 0 0-7-7z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M12 3a7 7 0 0 0-7 7c0 3.2 2 5.2 3.5 6.5L8 21h8l-.5-4.5C17 15.2 19 13.2 19 10a7 7 0 0 0-7-7z'/></svg>"); }
.tab-icon-heart { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.5A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.5A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/></svg>"); }
.tab-icon-user { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='12' cy='8' r='3.5'/><path d='M5 19.5c1.8-3 4.2-4.5 7-4.5s5.2 1.5 7 4.5'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='12' cy='8' r='3.5'/><path d='M5 19.5c1.8-3 4.2-4.5 7-4.5s5.2 1.5 7 4.5'/></svg>"); }
.tab-icon-leads { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M8 7h13M8 12h13M8 17h13'/><path d='M3 7h.01M3 12h.01M3 17h.01'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M8 7h13M8 12h13M8 17h13'/><path d='M3 7h.01M3 12h.01M3 17h.01'/></svg>"); }
.tab-icon-ops { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><rect x='3' y='3' width='7' height='7' rx='1.5'/><rect x='14' y='3' width='7' height='7' rx='1.5'/><rect x='3' y='14' width='7' height='7' rx='1.5'/><rect x='14' y='14' width='7' height='7' rx='1.5'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><rect x='3' y='3' width='7' height='7' rx='1.5'/><rect x='14' y='3' width='7' height='7' rx='1.5'/><rect x='3' y='14' width='7' height='7' rx='1.5'/><rect x='14' y='14' width='7' height='7' rx='1.5'/></svg>"); }
.tab-icon-chart { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M4 19V5M4 19h16'/><path d='M8 16v-5M12 16V8M16 16v-8'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M4 19V5M4 19h16'/><path d='M8 16v-5M12 16V8M16 16v-8'/></svg>"); }
.tab-icon-visit { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><rect x='4' y='5' width='16' height='15' rx='2'/><path d='M8 3v4M16 3v4M4 10h16'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><rect x='4' y='5' width='16' height='15' rx='2'/><path d='M8 3v4M16 3v4M4 10h16'/></svg>"); }
.day-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.day-card { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: #fff; }
.day-card.is-area { border-color: var(--pine); }
.game-card { background: var(--pine-soft); border: 1px solid var(--pine); border-radius: 16px; padding: 14px 16px; margin: 0 0 18px; }
.game-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.game-rank { margin: 0; font-size: 1.25rem; font-weight: 700; }
.game-score { margin: 0; font-weight: 700; color: var(--pine); }
.game-pips { display: flex; gap: 6px; margin: 10px 0 4px; }
.game-pips span { width: 100%; height: 6px; border-radius: 99px; background: #fff; }
.game-pips span.is-on { background: var(--pine); }
.game-meter { margin: 10px 0; }
.game-meter-label { display: flex; justify-content: space-between; font-size: 0.92rem; font-weight: 650; }
.game-bar { height: 8px; background: #fff; border-radius: 99px; overflow: hidden; margin-top: 4px; }
.game-bar span { display: block; height: 100%; background: var(--pine); }
.game-strip { background: var(--pine-soft); border-radius: 12px; padding: 10px 12px; }
.day-time { margin: 0 0 4px; font-weight: 700; color: var(--pine); }
.outcome-row { margin-top: 10px; }
.agent-today h3 { margin: 18px 0 8px; font-size: 1rem; }
.tabbar-center {
  margin-top: -18px;
}
.tabbar-center .tab-icon {
  width: 28px;
  height: 28px;
  background: white;
  color: white;
  -webkit-mask: none;
  mask: none;
  border-radius: 50%;
  box-shadow: 0 0 0 10px var(--pine), 0 8px 18px rgba(31, 74, 56, 0.35);
  position: relative;
}
.tabbar-center .tab-icon::before {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--pine);
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'><path d='M12 3a7 7 0 0 0-7 7c0 3.2 2 5.2 3.5 6.5L8 21h8l-.5-4.5C17 15.2 19 13.2 19 10a7 7 0 0 0-7-7z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'><path d='M12 3a7 7 0 0 0-7 7c0 3.2 2 5.2 3.5 6.5L8 21h8l-.5-4.5C17 15.2 19 13.2 19 10a7 7 0 0 0-7-7z'/></svg>");
}
.tabbar-center span:last-child { color: var(--pine); font-weight: 700; }
.tabbar a[aria-current="page"] { color: var(--pine); }
.tabbar a[aria-current="page"] .tab-icon { opacity: 1; }
.app-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  background: var(--pine);
  color: #f6f1e7;
  border-radius: 18px;
  padding: 16px 18px;
}
.app-banner h2, .app-banner p { color: #f6f1e7; }
.app-banner p { margin: 0; }
.app-banner .btn { background: white; border-color: white; color: var(--pine); }
body.in-app .app-banner, body.in-app .site-footer a[href="/android"] { display: none; }
.searchbar .btn, .ask-box .btn { width: 100%; }

/* —— Mobile app shell + dashboard —— */
.app-header {
  position: sticky;
  top: 0;
  z-index: 5;
  width: min(var(--app-max), calc(100% - (var(--page-gutter) * 2)));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 55%, rgba(255, 255, 255, 0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.app-greeting {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.app-avatar, .account-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pine);
  color: #f6f1e7;
  font-weight: 700;
  font-size: 0.85rem;
  flex: 0 0 auto;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(255, 252, 247, 0.9);
}
.app-avatar.has-photo, .account-avatar.has-photo {
  background: var(--bg-deep);
  padding: 0;
}
.app-avatar img, .account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.account-avatar {
  width: 80px;
  height: 80px;
  font-size: 1.35rem;
  margin-bottom: 4px;
}
.avatar-preview-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar-preview {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}
.app-greeting small {
  display: block;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.2;
  font-weight: 600;
}
.app-greeting strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 48vw;
}
.app-ask-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--pine-soft);
  color: var(--pine);
  font-weight: 700;
  font-size: var(--text-sm);
  padding: 10px 14px;
  border-radius: 999px;
  min-height: 40px;
}
.add-menu { position: relative; }
.add-menu > summary.app-ask-chip {
  list-style: none;
  cursor: pointer;
}
.add-menu > summary.app-ask-chip::-webkit-details-marker { display: none; }
.add-menu .menu-panel { z-index: 20; min-width: 160px; }
.address-suggest { position: relative; }
.address-suggest-list {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% - 8px);
  margin: 0;
  padding: 6px;
  max-height: 11rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.address-suggest-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.address-suggest-item strong { display: block; font-weight: 650; }
.address-suggest-item span { display: block; color: var(--muted); font-size: 0.86rem; margin-top: 2px; }
.address-suggest-item:hover,
.address-suggest-item:focus { background: var(--pine-soft); }
input[data-pgid][readonly],
.property-form input.is-locked {
  background: #f6f3ee;
  color: var(--ink);
}
.my-properties {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.my-property {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.my-property strong { display: block; }
.my-property .muted { display: block; margin: 2px 0 8px; font-size: 0.82rem; }
.my-property .btn { flex: 0 0 auto; }
.visit-property {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 12px 4px;
  margin: 0 0 12px;
}
.visit-dialog {
  border: 0;
  border-radius: 18px;
  padding: 22px;
  max-width: 420px;
  box-shadow: var(--shadow);
}
.visit-dialog::backdrop { background: rgba(20, 24, 20, 0.45); }
.visit-dialog h2 { margin: 0 0 8px; }
.visit-mark-note { display: block; margin: 0 0 14px; text-decoration: none; }
.desktop-nav-bar {
  display: none;
  width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
  margin: 8px auto 0;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}
.desktop-nav-bar a { color: var(--ink); text-decoration: none; font-weight: 500; }
.desktop-nav-bar .brand { margin-right: auto; }

.app-home {
  width: min(var(--app-max), calc(100% - (var(--page-gutter) * 2)));
  margin: 4px auto var(--space-7);
  display: grid;
  gap: var(--space-4);
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}
.passport-hero {
  padding: 4px 2px 0;
}
.passport-hero.compact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.passport-hero-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}
.passport-hero-value {
  margin: 2px 0 10px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1;
}
.passport-hero-value strong {
  font-family: var(--font);
  font-size: clamp(2rem, 8vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.passport-hero-value span {
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 600;
}
.passport-bar {
  height: 6px;
  border-radius: 99px;
  background: #e8e2d8;
  overflow: hidden;
}
.passport-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--pine), #2f6b52);
  border-radius: 99px;
}
.passport-hero-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.passport-card {
  display: block;
  text-decoration: none;
  color: #f4efe6;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,0.14), transparent 50%),
    linear-gradient(145deg, #163528 0%, #1f4a38 48%, #2a5d47 100%);
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: 0 14px 30px rgba(31, 74, 56, 0.28);
  min-height: 148px;
}
.passport-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.passport-card-eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.78;
  font-weight: 700;
}
.passport-card h2 {
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 700;
  color: #f7f2ea;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}
.passport-card-meta {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.82;
  max-width: 14rem;
}
.passport-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background:
    linear-gradient(#f4efe6, #f4efe6) 14px 20px / 7px 9px no-repeat,
    linear-gradient(135deg, transparent 48%, #f4efe6 49% 51%, transparent 52%) center 9px / 18px 12px no-repeat,
    rgba(255,255,255,0.16);
}
.passport-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-top: 22px;
}
.passport-view {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 700;
}
.passport-stat {
  text-align: right;
}
.passport-stat small {
  display: block;
  font-size: 0.72rem;
  opacity: 0.75;
}
.passport-stat strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.quick-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.quick-row a {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 650;
  padding: 12px 6px;
  border-right: 1px solid var(--line);
}
.quick-row a:last-child { border-right: 0; }
.quick-icon {
  width: 22px;
  height: 22px;
  background: var(--pine);
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}
.quick-home { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M4 10.5 12 4l8 6.5V20a1 1 0 0 1-1 1h-5v-6H10v6H5a1 1 0 0 1-1-1z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M4 10.5 12 4l8 6.5V20a1 1 0 0 1-1 1h-5v-6H10v6H5a1 1 0 0 1-1-1z'/></svg>"); }
.quick-heart { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.5A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.5A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/></svg>"); }
.quick-move { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M5 12h14M13 6l6 6-6 6'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M5 12h14M13 6l6 6-6 6'/></svg>"); }
.quick-pass { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='M7 9h4M7 13h10'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='M7 9h4M7 13h10'/></svg>"); }
.quick-leads { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M8 7h13M8 12h13M8 17h13'/><path d='M3 7h.01M3 12h.01M3 17h.01'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M8 7h13M8 12h13M8 17h13'/><path d='M3 7h.01M3 12h.01M3 17h.01'/></svg>"); }
.quick-ops { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><rect x='3' y='3' width='7' height='7' rx='1.5'/><rect x='14' y='3' width='7' height='7' rx='1.5'/><rect x='3' y='14' width='7' height='7' rx='1.5'/><rect x='14' y='14' width='7' height='7' rx='1.5'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><rect x='3' y='3' width='7' height='7' rx='1.5'/><rect x='14' y='3' width='7' height='7' rx='1.5'/><rect x='3' y='14' width='7' height='7' rx='1.5'/><rect x='14' y='14' width='7' height='7' rx='1.5'/></svg>"); }
.quick-people { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='9' cy='8' r='3'/><circle cx='17' cy='9' r='2.5'/><path d='M3 19c1.5-3 3.5-4.5 6-4.5S13.5 16 15 19'/><path d='M15 19c.8-1.8 2-2.8 4-2.8 1.2 0 2.2.4 3 1.2'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='9' cy='8' r='3'/><circle cx='17' cy='9' r='2.5'/><path d='M3 19c1.5-3 3.5-4.5 6-4.5S13.5 16 15 19'/><path d='M15 19c.8-1.8 2-2.8 4-2.8 1.2 0 2.2.4 3 1.2'/></svg>"); }
.quick-bed { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M3 18v-5a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v5'/><path d='M3 14h18M6 10V8a2 2 0 0 1 2-2h3'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M3 18v-5a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v5'/><path d='M3 14h18M6 10V8a2 2 0 0 1 2-2h3'/></svg>"); }
.quick-coin { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='12' cy='12' r='8'/><path d='M12 7v10M9.5 9.5c.7-1 1.7-1.5 2.5-1.5 1.5 0 2.5.8 2.5 2s-1 2-2.5 2h-1c-1.5 0-2.5.8-2.5 2s1 2 2.5 2c.9 0 1.8-.4 2.5-1.3'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='12' cy='12' r='8'/><path d='M12 7v10M9.5 9.5c.7-1 1.7-1.5 2.5-1.5 1.5 0 2.5.8 2.5 2s-1 2-2.5 2h-1c-1.5 0-2.5.8-2.5 2s1 2 2.5 2c.9 0 1.8-.4 2.5-1.3'/></svg>"); }
.quick-chart { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M4 19V5M4 19h16'/><path d='M8 16v-5M12 16V8M16 16v-8'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><path d='M4 19V5M4 19h16'/><path d='M8 16v-5M12 16V8M16 16v-8'/></svg>"); }
.quick-search { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/></svg>"); }

.dash-block h3 {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: 0;
}
.dash-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.dash-tile {
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  gap: 2px;
}
.dash-tile span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}
.dash-tile strong {
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.dash-tile small {
  color: var(--muted);
  font-size: 0.75rem;
}
.dash-tile.tone-soft { background: #e8f0ea; }
.dash-tile.tone-mute { background: #efeae2; }
.dash-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.dash-chips span {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
}
.dash-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.dash-actions .btn {
  text-align: center;
  justify-content: center;
}
.dash-link {
  display: inline-block;
  text-align: center;
  font-weight: 700;
  color: var(--pine);
  text-decoration: none;
  padding: 4px 0 8px;
}
.account-panel {
  text-align: center;
  justify-items: center;
  gap: var(--space-4);
}
.account-panel h1 {
  font-family: var(--font);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 4px;
}
.account-panel > .muted {
  font-size: var(--text-sm);
  margin-bottom: 4px;
}
.account-panel .facts {
  width: 100%;
  text-align: left;
  margin-top: 4px;
}
.account-panel .dash-actions,
.account-panel form {
  width: 100%;
}
.account-panel .dash-actions {
  grid-template-columns: 1fr;
  gap: 10px;
}
.account-panel form .btn { width: 100%; }
.account-panel .fine {
  margin-top: var(--space-5);
}

@media (max-width: 959px) {
  .site-footer { display: none; }
  body.is-logged-in .topbar { display: none; }
  body.is-logged-in .desktop-nav:not(.desktop-nav-bar) { display: none; }

  /* App-like type on phone */
  h1, h2, h3,
  .auth-card h1,
  .pg-body h2 {
    font-family: var(--font);
    letter-spacing: -0.03em;
  }
  h1 {
    font-size: clamp(1.5rem, 6vw, 1.85rem);
    font-weight: 700;
    line-height: 1.18;
  }
  h2 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.25;
  }
  h3 {
    font-size: 1.05rem;
    font-weight: 700;
  }
  .section {
    margin: var(--space-5) auto;
  }
  .pg-body {
    padding: 14px 16px 18px;
  }
  .pg-body h2 {
    font-size: 1.12rem;
  }
  .filters {
    padding: var(--space-4);
  }
  .listing {
    padding-bottom: 8px;
  }
  .topbar {
    padding: 12px 0 8px;
  }
  .hero {
    margin-top: 12px;
  }
}
body.in-app .site-footer { display: none; }
body.in-app { padding-bottom: 76px; }
body.in-app .tabbar { padding-bottom: 8px; }
body.in-app .compare-bar { bottom: 76px; }

@media (min-width: 960px) {
  .app-header { display: none; }
  body.is-logged-in .desktop-nav-bar { display: flex; }
  body.is-logged-in .topbar { display: none; }
  .app-home { width: min(640px, calc(100% - (var(--page-gutter) * 2))); margin-top: 18px; }
  body { padding-bottom: 40px; }
  .topbar .desktop-nav { margin-left: auto; }
}


@media (min-width: 760px) {
  .loc-grid { grid-template-columns: repeat(4, 1fr); }
  .paths { grid-template-columns: repeat(2, 1fr); }
  .pg-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .searchbar { grid-template-columns: 160px 1fr auto; align-items: end; }
  .searchbar .btn { width: auto; }
  .search-layout { grid-template-columns: 300px 1fr; }
  .filters-dropdown .search-go,
  .filters-dropdown .filter-toggle {
    width: 100%;
  }
  /* Desktop / laptop: filters stay open in the sidebar */
  .filters-dropdown .filter-drawer > summary.filter-toggle {
    display: none;
  }
  .filters-dropdown .filter-drawer > .filter-panel,
  .filters-dropdown .filter-drawer:not([open]) > .filter-panel {
    display: grid;
    gap: 10px;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
  .facts { grid-template-columns: 1fr 1fr; }
  .check-grid { grid-template-columns: 1fr 1fr; }
  .property-form fieldset, .room-form { grid-template-columns: 1fr 1fr; }
  .property-form .wide, .property-form .check-grid, .property-form .button-row, .room-form .btn { grid-column: 1 / -1; }
  .bed-list { grid-template-columns: 1fr 1fr; }
  .bar-row { grid-template-columns: 140px 1fr 48px auto; }
  .bar-row small { grid-column: auto; }
}
.section-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.view-toggle { display: flex; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.view-toggle a { text-decoration: none; color: var(--ink); padding: 6px 12px; border-radius: 999px; font-weight: 650; }
.view-toggle a[aria-current="page"] { background: var(--ink); color: white; }
.trust-ticks { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--pine); font-size: 0.88rem; font-weight: 650; }
.trust-block { margin: 12px 0; }
.card-actions { display: flex; gap: 12px; margin-top: 10px; }
.card-actions form { margin: 0; }
.listing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 4px;
}
.listing-actions form { margin: 0; }
.icon-action {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.icon-action svg {
  width: 22px;
  height: 22px;
}
.icon-action:hover,
.icon-action.is-on {
  background: var(--pine-soft);
  border-color: #b7d0c2;
  color: var(--pine);
}
.icon-action.is-copied {
  background: var(--pine-soft);
  border-color: #b7d0c2;
  color: var(--pine);
}
.score { color: var(--gold); font-weight: 650; margin: 4px 0; }
.score-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0 0 16px; }
.score-grid div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.score-grid dt { color: var(--muted); font-size: 0.82rem; }
.score-grid dd { margin: 0; font-weight: 700; }
.score-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 0.88rem; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin: 10px 0; }
.review header { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.review-drawer {
  margin: 14px 0 0;
}
.review-drawer > summary.review-toggle {
  list-style: none;
  width: 100%;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  user-select: none;
}
.review-drawer > summary.review-toggle::-webkit-details-marker {
  display: none;
}
.review-drawer[open] > summary.review-toggle {
  background: var(--pine-soft);
  border-color: #b7d0c2;
  color: var(--pine);
}
.review-drawer:not([open]) > .review-form {
  display: none;
}
.review-drawer[open] > .review-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.star-field {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 6px;
}
.star-field legend {
  padding: 0;
  font-weight: 650;
  color: var(--muted);
  font-size: 0.92rem;
}
.star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
}
.star-rating input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}
.star-rating label {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  cursor: pointer;
  color: #c8c2b6;
  transition: color 0.12s ease;
}
.star-rating label::before {
  content: "★";
  font-size: 1.65rem;
  line-height: 1;
}
.star-rating input:checked + label,
.star-rating input:checked ~ label {
  color: var(--gold);
}
.star-rating:hover label {
  color: #c8c2b6;
}
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: var(--gold);
}
.star-rating input:focus-visible + label {
  outline: 2px solid var(--pine);
  outline-offset: 2px;
  border-radius: 8px;
}
.pg-map { height: 420px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-deep); }
.listing-map-wrap { margin: 10px 0 16px; }
.listing-map { height: 220px; }
.pin-map { height: 280px; margin-bottom: 8px; z-index: 0; }
.map-locate-wrap { margin: 0 10px 18px 0; }
.map-locate {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #5f6368;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.map-locate svg { width: 22px; height: 22px; display: block; }
.map-locate.is-on { color: #1a73e8; }
.map-locate.is-busy { opacity: 0.55; }
.map-locate.is-off { color: #c5221f; }
.leaflet-bottom.leaflet-right .map-locate-wrap { margin: 0 0 6px; }
.field-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.media-pick { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 4px; }
.media-pick .btn { position: relative; cursor: pointer; }
.media-pick input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.media-capture { overflow: hidden; }
.media-pick input.is-capture {
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  clip: auto;
  font-size: 16px;
}
.map-wrap .fine { margin-top: 8px; }
.compare-table th, .compare-table td { vertical-align: top; min-width: 140px; }
.compare-table th:first-child { min-width: 96px; }
.compare-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 7;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: white;
  padding: 10px 18px;
  border-radius: 999px;
}
.compare-bar a,
.compare-bar button {
  color: white;
  font-weight: 700;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}
.compare-bar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.compare-bar-actions form { margin: 0; }
.compare-bar button {
  opacity: 0.85;
}.searchbar .commute-field[hidden], .filters [data-commute][hidden], [data-upi][hidden], [data-card][hidden], [data-bank][hidden] { display: none; }
.narrow { max-width: 680px; }
.legal h2 {
  margin-top: 1.6rem;
  font-size: 1.15rem;
}
.legal h3 {
  margin: 1rem 0 0.35rem;
  font-size: 1rem;
  font-family: var(--sans, inherit);
  font-weight: 650;
}
.legal ul {
  margin: 0.4rem 0 0.8rem;
  padding-left: 1.2rem;
}
.legal li { margin: 0.25rem 0; }
.legal p { margin: 0.55rem 0; }
.support-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.support-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
}
.support-row:hover {
  border-color: #b7d0c2;
}
.support-preview {
  margin: 6px 0 0;
  font-size: 0.9rem;
}
.slot-list { display: flex; flex-wrap: wrap; gap: 8px; }
.visit-when {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: end;
}
.visit-when label { margin: 0; }
.visit-when select { width: 100%; }
.thread { display: grid; gap: 10px; margin: 12px 0 16px; }
.bubble { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.bubble.is-mine { background: var(--pine-soft); }
.bubble p { margin: 4px 0; }
.agreement { white-space: pre-wrap; font-family: var(--serif); background: white; padding: 16px; border-radius: 16px; border: 1px solid var(--line); }
.badge-new, .badge-interested { background: var(--gold-soft); color: var(--gold); }
.badge-visit_booked { background: var(--pine-soft); color: var(--pine); }
.badge-booked { background: var(--pine); color: white; }
.badge-closed { background: var(--line); color: var(--muted); }
.button-row form { margin: 0; }
.stat-grid.ops-stats { grid-template-columns: repeat(2, 1fr); }
.ops-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
.ops-nav a { text-decoration: none; background: white; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; color: var(--ink); font-weight: 650; }
.ops-nav a[aria-current="page"] { background: var(--ink); color: white; }
.building { display: grid; gap: 14px; }
.floor, .check-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.floor h2, .check-card h2, .check-card h3 { margin-bottom: 6px; }
.bed-line { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.checklist { display: grid; gap: 12px; }
.check-card img { width: 100%; max-height: 240px; object-fit: cover; border-radius: 12px; margin: 8px 0; }
.badge-available, .badge-open { background: var(--pine-soft); color: var(--pine); }
.badge-occupied, .badge-in_progress { background: var(--gold-soft); color: var(--gold); }
.badge-reserved { background: #fde8ee; color: var(--danger); }
.badge-resolved { background: var(--line); color: var(--muted); }
.match-score { font-family: var(--serif); font-size: 1.45rem; margin: 2px 0 6px; }
.ticks { list-style: none; padding: 0; margin: 0 0 8px; }
.ticks li.is-on::before { content: "✓ "; color: var(--pine); font-weight: 700; }
.ask-box textarea { min-height: 110px; }
.install-steps { margin: 8px 0 16px; padding-left: 1.2rem; }
.install-steps li { margin: 8px 0; }
textarea { min-height: 96px; }

@media (min-width: 960px) {
  body, body.has-compare { padding-bottom: 0; }
  .desktop-nav { display: flex; }
  .tabbar { display: none; }
  .hero { grid-template-columns: 1.1fr 0.9fr; align-items: end; padding-top: 18px; }
  .stat-grid { grid-template-columns: repeat(5, 1fr); }
  .compare-bar {
    position: fixed;
    top: auto;
    bottom: 16px;
    left: auto;
    right: 24px;
    width: min(420px, calc(100% - 48px));
    border-radius: 999px;
  }
  .score-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 760px) {
  .searchbar:has(.commute-field:not([hidden])) { grid-template-columns: 150px 1fr 110px auto; }
  .stat-grid.ops-stats { grid-template-columns: repeat(4, 1fr); }
}

/* Handshake */
.handshake-conflict .handshake-card {
  margin: 1.25rem 0;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  background: var(--surface);
}
.handshake-card header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.35rem;
}
.handshake-actions,
.handshake-claim form {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.9rem;
}
.handshake-claim {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}
.handshake-claim summary {
  cursor: pointer;
  font-weight: 600;
}
.inline-form {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Suggested agents — horizontal rail only */
.agent-rail {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.agent-rail > h3 {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--ink);
  margin: 0 0 8px;
}
.agent-rail-scroller {
  display: block;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  padding-bottom: 4px;
}
.agent-rail-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
  width: max-content;
  min-width: 100%;
  padding: 2px 2px 6px;
}
.agent-rail-track .agent-card {
  box-sizing: border-box;
  flex: 0 0 138px;
  width: 138px;
  min-width: 138px;
  max-width: 138px;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.agent-rail-track .agent-card strong {
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
}
.agent-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  min-height: 1rem;
}
.agent-card-meta em {
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.1rem 0.32rem;
  border-radius: 4px;
}
.tag-verified { background: #e7f3ec; color: #1f4a38; }
.tag-platinum { background: #f3e8d4; color: #7a5a1e; }
.agent-card-areas {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
}
.agent-card-count {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--pine);
}
img.agent-avatar,
.agent-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--pine);
  flex: 0 0 64px;
}
.agent-avatar-fallback {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}
.agent-avatar-lg {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--pine);
}
.agent-avatar-lg.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.badge-verified { background: #e7f3ec; color: #1f4a38; }
.badge-platinum { background: #f3e8d4; color: #7a5a1e; }
.agent-profile-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}
.agent-profile-head .agent-avatar-lg,
.agent-profile-head img.agent-avatar-lg {
  width: 88px;
  height: 88px;
}

/* Agent home dashboard */
.passport-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.passport-card-badges em {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.16);
  color: #f7f2ea;
}
.dash-block-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.dash-block-head h3 { margin: 0; }
.dash-block-head a {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--pine);
  text-decoration: none;
}
.dash-queue {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.dash-queue-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 0.92rem;
}
.dash-queue-item.tone-hot { background: #f3e4d8; }
.dash-queue-item.tone-warm { background: #f3ecd8; }
.dash-queue-item.tone-soft { background: #e8f0ea; }
.dash-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.dash-list a {
  display: grid;
  gap: 2px;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.dash-list a strong {
  font-size: 0.95rem;
}
.dash-list a span {
  font-size: 0.78rem;
  color: var(--muted);
}
.dash-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Admin home */
.admin-home .section-head.tight {
  margin-bottom: 0.6rem;
}
.admin-home .section-head.tight h2 {
  margin: 0;
  font-size: 1.15rem;
}
.admin-home .section-head.tight a {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--pine);
  text-decoration: none;
}
.admin-people-grid {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}
.admin-person {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.admin-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pine);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  overflow: hidden;
  flex: 0 0 36px;
}
.admin-avatar.has-photo img,
.admin-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-danger {
  margin-top: 2rem;
}
@media (min-width: 960px) {
  .admin-people-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

/* —— Mobile readability polish —— */
main#main {
  padding-top: 2px;
}
.empty {
  padding: var(--space-5);
  text-align: left;
}
.empty h2 {
  margin-bottom: 6px;
}
.bubble {
  padding: 12px 14px;
  border-radius: 16px;
  font-size: var(--text-md);
  line-height: 1.45;
}
.bubble strong {
  display: block;
  font-size: var(--text-sm);
  margin-bottom: 4px;
}
.bubble.is-mine {
  border-color: #c5dccf;
}
.bubble small {
  color: var(--muted);
  font-size: var(--text-xs);
}
@media (max-width: 959px) {
  .auth-card {
    padding: var(--space-5) var(--space-4) var(--space-6);
  }
  .section-head {
    align-items: flex-start;
    gap: 8px;
  }
  .section-head .lede {
    width: 100%;
  }
  .stat strong {
    font-family: var(--font);
    font-size: 1.45rem;
    font-weight: 700;
  }
  .rent {
    font-size: 1.05rem;
  }
  .place, .near {
    font-size: var(--text-sm);
    line-height: 1.4;
  }
  .compare-bar {
    width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
  }
  th, td {
    font-size: var(--text-sm);
    line-height: 1.4;
  }
}

/* Welcome questionnaire */
.welcome-nudge {
  border-color: #c5dccf;
  background: var(--pine-soft);
}
.welcome-form fieldset {
  margin: 0;
}
.welcome-form legend {
  font-weight: 700;
  font-size: var(--text-md);
  margin-bottom: 8px;
  padding: 0;
}
.welcome-rating-opts,
.welcome-tri-opts {
  display: grid;
  gap: 8px;
}
.welcome-rating-opts .choice,
.welcome-tri-opts .choice {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.welcome-rating-opts .choice strong {
  display: inline-block;
  min-width: 1.1rem;
  margin-right: 4px;
}
@media (min-width: 560px) {
  .welcome-tri-opts {
    grid-template-columns: repeat(3, 1fr);
  }
  .welcome-rating-opts {
    grid-template-columns: repeat(5, 1fr);
  }
  .welcome-rating-opts .choice {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* Landlord Today cockpit */
.landlord-dash .dash-block {
  margin: 1.4rem 0 1.8rem;
}
.landlord-dash .dash-block > h2,
.landlord-dash .dash-block-head h2 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
}
.landlord-dash .dash-block-head {
  margin-bottom: 0.55rem;
}
@media (min-width: 960px) {
  .landlord-dash .stat-grid.ops-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}
