/* PH Homes. Mobile first: base styles are for phones, then min-width layers for larger screens.
   Breakpoints: 560 (large phones / small tablets), 768 (tablets: top header replaces bottom tabs),
   960 (laptops: two-column pages), 1200+ (content stops growing). */

:root {
  --ground: #F6F3EC;
  --card: #FFFFFF;
  --ink: #15211C;
  --muted: #55635C;
  --line: #DDD7C8;
  --line-soft: #E6E0D2;
  --green: #0E4D3A;
  --green-soft: #E3EEE7;
  --accent: #B8501A;
  --sand: #EFE9DB;
  --seg: #E9E3D4;
  --danger: #A3261B;
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(16px, 5vw, 24px);                 /* side gutter */
  --pad-top: calc(env(safe-area-inset-top) + 20px);
  --header-h: 68px;
  --shadow: 0 1px 2px rgba(21, 33, 28, .05), 0 8px 24px rgba(21, 33, 28, .08);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); }
body {
  font-family: var(--body);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: 16px; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--display); margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid #F2C48D; outline-offset: 2px; }

#app { min-height: 100vh; min-height: 100dvh; background: var(--ground); position: relative; }

/* ---------- page frame ---------- */
.screen {
  position: relative;
  padding: var(--pad-top) var(--pad) calc(env(safe-area-inset-bottom) + 112px);
  display: flex; flex-direction: column; gap: 16px;
  width: 100%; margin: 0 auto;
}
.screen.no-tabs { padding-bottom: calc(env(safe-area-inset-bottom) + 32px); }

@media (max-width: 767.98px) { .desktop-only { display: none !important; } }
@media (min-width: 768px) { .mobile-only { display: none !important; } }

/* utilities */
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.prose { line-height: 1.6; max-width: 68ch; white-space: pre-line; }

/* ---------- type ---------- */
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 21px; }
.h1 { font-size: clamp(32px, 3.6vw + 18px, 60px); line-height: 1.06; letter-spacing: -0.5px; font-weight: 700; }
.h2 { font-size: 22px; font-weight: 700; }
.h3 { font-size: 20px; font-weight: 700; }
.lead { font-size: 16px; line-height: 1.5; }
.price { font-family: var(--display); font-weight: 700; font-size: 24px; }

/* ---------- controls ---------- */
.btn {
  min-height: 52px; border: 0; border-radius: 16px; padding: 0 20px;
  font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  text-align: center; transition: background-color .15s, box-shadow .15s, transform .15s;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-ghost { background: transparent; border: 1.5px solid var(--green); color: var(--green); }
.btn-soft { background: var(--card); border: 1.5px solid var(--line); color: var(--ink); }
.btn[disabled] { background: var(--seg); color: var(--muted); border-color: transparent; cursor: not-allowed; }
.btn-sm { min-height: 44px; border-radius: 12px; font-size: 15px; }
.btn-icon { width: auto; min-height: 50px; padding: 0 16px; flex: none; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:not([disabled]):hover { background: #0B3F30; }
  .btn-accent:not([disabled]):hover { background: #A04515; }
  .btn-ghost:hover { background: var(--green-soft); }
  .btn-soft:not([disabled]):hover { border-color: #C9C2B0; }
}

.icon-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex: none; }

.card { background: var(--card); border: 1px solid var(--line-soft); border-radius: 20px; padding: 16px; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 5px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.chip.warn { background: #F3E2CF; color: #7A3410; }
.chip.off { background: var(--sand); color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--green-soft); color: var(--green); font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 999px; }

.seg { display: flex; background: var(--seg); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { flex: 1; min-height: 44px; border: 0; border-radius: 11px; background: transparent; font-weight: 600; font-size: 15px; }
.seg button.on { background: var(--green); color: #fff; }

label.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; min-width: 0; }
.input, select.input, textarea.input {
  width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; min-width: 0;
}
textarea.input { padding: 12px 14px; min-height: 96px; resize: vertical; }

/* ---------- navigation ---------- */
/* Phones: bottom tab bar */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  background: #fff; border-top: 1px solid var(--line-soft); display: flex;
  padding: 6px 8px calc(env(safe-area-inset-bottom) + 8px);
}
.tabbar a { flex: 1; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; font-weight: 500; color: var(--muted); }
.tabbar a.on { color: var(--green); font-weight: 600; }
/* Tablets and up: top header */
.topbar { display: none; }

/* ---------- welcome ---------- */
.welcome { display: flex; flex-direction: column; gap: 20px; }
.hero { border-radius: 24px; overflow: hidden; display: block; width: 100%; line-height: 0; }
.hero svg { width: 100%; height: auto; display: block; }
.welcome-copy { gap: 14px; }
.cta-row { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.features { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 8px; }
.feature { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line-soft); border-radius: 18px; padding: 16px; }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; flex: none; }
.feature-icon svg { width: 22px; height: 22px; }
.site-foot { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding-top: 8px; }
.legal a { text-decoration: underline; }

/* ---------- explore ---------- */
.explore-bar { display: flex; flex-direction: column; gap: 12px; }
/* Phones: budget and bedrooms side by side, sort underneath. 560px+: one row of three. */
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: -4px; }
.filters select { min-height: 46px; font-size: 15px; padding: 0 10px; text-overflow: ellipsis; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.stat { background: #fff; border: 1px solid var(--line-soft); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat-num { font-family: var(--display, inherit); font-size: 26px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.more-row { display: flex; justify-content: center; margin-top: 20px; }
.more-row .btn { width: 100%; }
@media (min-width: 760px) { .filters { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 560px) {
  .more-row .btn { width: auto; padding: 0 28px; }
}
@media (min-width: 960px) {
  .filters { grid-template-columns: repeat(auto-fit, minmax(150px, 220px)); }
}
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.listing { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-soft); border-radius: 20px; overflow: hidden; min-width: 0; transition: box-shadow .2s, transform .2s; }
.listing .photo { position: relative; aspect-ratio: 16 / 9; min-height: 0; overflow: hidden; background: var(--green-soft); flex: none; }
.listing .photo img, .listing .photo svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.listing .badge { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--green); font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.listing .info { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
@media (hover: hover) and (pointer: fine) {
  .listing:hover, a.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
  a.card { transition: box-shadow .2s, transform .2s; }
}

/* ---------- listing page ---------- */
.listing-page { display: flex; flex-direction: column; gap: 16px; }
.gallery-wrap { position: relative; }
.gallery {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: calc(var(--pad-top) * -1) calc(var(--pad) * -1) 0; height: 300px; background: var(--green-soft);
}
.gallery::-webkit-scrollbar { display: none; }
.gallery > * { flex: none; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; display: block; }
.back { position: absolute; top: calc(env(safe-area-inset-top) + 14px); left: 14px; z-index: 2; }
.photo-count { position: absolute; right: 12px; bottom: 12px; background: rgba(21,33,28,.75); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.gallery-nav { display: none; }
@media (hover: hover) and (pointer: fine) {
  .gallery-nav { display: flex; position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: var(--shadow); align-items: center; justify-content: center; }
  .gallery-nav.prev { left: 12px; }
  .gallery-nav.next { right: 12px; }
  .gallery-nav.next svg { transform: rotate(180deg); }
}
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.lock { background: var(--sand); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.unlocked { background: var(--green-soft); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.unlocked .price { overflow-wrap: anywhere; }
.slots { display: flex; gap: 8px; }
.slot { flex: 1; min-width: 0; min-height: 56px; border-radius: 14px; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 13px; }
.slot.on { background: var(--green); color: #fff; border: 2px solid var(--green); }
.slot b { font-size: 15px; }

/* ---------- landlord ---------- */
.dash { display: flex; flex-direction: column; gap: 16px; }
.dash > * { min-width: 0; }
.dash-plan { background: var(--green); color: #fff; border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.bar { height: 8px; border-radius: 4px; background: #2C6A55; overflow: hidden; }
.bar > i { display: block; height: 100%; background: #F2C48D; }
.banner { background: #F3E2CF; color: #5E2A0C; border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }

.plans-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.plan { text-align: left; width: 100%; border-radius: 20px; padding: 18px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.plan.on { border: 2px solid var(--green); background: var(--green-soft); }
.plan .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #8A968F; flex: none; }
.plan.on .dot { border: 7px solid var(--green); }

.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--green); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(21,33,28,.8); color: #fff; font-size: 16px; line-height: 1; }
.add-photo { aspect-ratio: 1; border-radius: 16px; border: 1.5px dashed #AFA999; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; }
.file-pick { min-height: 56px; border-radius: 14px; border: 1.5px dashed #AFA999; background: #fff; display: flex; align-items: center; gap: 10px; padding: 0 14px; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.file-pick.on { border-style: solid; border-color: var(--green); color: var(--green); background: var(--green-soft); }
.admin-photos { display: flex; gap: 8px; overflow-x: auto; }
.admin-photos img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; display: block; }

/* ---------- feedback ---------- */
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--green-soft); border-top-color: var(--green); animation: spin .8s linear infinite; margin: 24px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } * { scroll-behavior: auto !important; } }
.empty { text-align: center; color: var(--muted); padding: 32px 12px; font-size: 15px; line-height: 1.5; }
#toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 96px); transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14px; width: max-content; max-width: min(90vw, 440px); opacity: 0; pointer-events: none; transition: .25s; z-index: 50; text-align: center; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ================= larger phones / small tablets ================= */
@media (min-width: 560px) {
  .cta-row { flex-direction: row; flex-wrap: wrap; }
  .cta-row .btn { width: auto; padding: 0 28px; }
  .thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 640px) {
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature { flex-direction: column; }
  .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ================= tablets and up: top header, page widths ================= */
@media (min-width: 768px) {
  :root { --pad: 32px; }
  .tabbar { display: none; }
  .topbar { display: block; position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line-soft); }
  .topbar-in { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); height: var(--header-h); display: flex; align-items: center; gap: 24px; }
  .topnav { display: flex; gap: 4px; margin-left: auto; }
  .topnav a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; font-size: 15px; font-weight: 500; color: var(--muted); }
  .topnav a svg { width: 20px; height: 20px; }
  .topnav a:hover { background: var(--sand); color: var(--ink); }
  .topnav a.on { background: var(--green-soft); color: var(--green); font-weight: 600; }
  .topbar-cta { display: flex; gap: 8px; }
  .topbar-cta .btn { width: auto; padding: 0 18px; }

  .screen, .screen.no-tabs { max-width: 640px; padding: 40px var(--pad) 72px; }
  .screen.wide { max-width: 1200px; }
  #toast { bottom: 32px; }

  .explore-bar { flex-direction: row; align-items: center; }
  .search-form { flex: 1; }
  .explore-bar .seg { flex: none; width: 280px; }

  .back { position: static; }
  .gallery { margin: 0; height: clamp(280px, min(42vw, 62vh), 520px); border-radius: 20px; }

  .welcome-copy .lead { font-size: 18px; }
  .site-foot { flex-direction: row; justify-content: space-between; text-align: left; border-top: 1px solid var(--line-soft); padding-top: 20px; margin-top: 8px; }
}

/* ================= laptops and up: two-column pages ================= */
@media (min-width: 960px) {
  .welcome { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 24px 0 16px; }
  .welcome-art { order: 2; }

  .listing-page {
    display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); gap: 24px 40px;
    grid-template-areas: "gallery side" "info side" "reviews side"; grid-template-rows: auto auto 1fr; align-items: start;
  }
  .lp-gallery { grid-area: gallery; }
  .lp-info { grid-area: info; }
  .lp-side { grid-area: side; position: sticky; top: calc(var(--header-h) + 24px); }

  .dash {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 24px 40px;
    grid-template-areas: "head head" "plan req" "list req"; grid-template-rows: auto auto 1fr; align-items: start;
  }
  .dash-head { grid-area: head; }
  .dash-planbox { grid-area: plan; }
  .dash-req { grid-area: req; position: sticky; top: calc(var(--header-h) + 24px); }
  .dash-list { grid-area: list; }
}

/* touch-size fixes found by the responsive check (44px minimum tap targets) */
a.chip-link { min-height: 44px; padding: 0 14px; font-size: 13px; }
.listing-link { min-height: 44px; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 560px) { .welcome-copy > .btn-soft { width: auto; align-self: flex-start; padding: 0 24px; } }

/* fixes from the 768px / landscape screenshots */
.brand, .topnav a, .topbar-cta .btn { white-space: nowrap; }
@media (min-width: 768px) and (max-width: 1023.98px) {
  /* icons only in the header on tablets; labels stay available to screen readers */
  .topbar-in { gap: 12px; }
  .topnav a { padding: 0 12px; }
  .topnav a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 768px) {
  /* side-by-side welcome from tablet / landscape phone up, so the buttons stay in view */
  .welcome { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
  .welcome-art { order: 2; }
  .gallery { height: clamp(220px, min(42vw, 62vh), 520px); }
}

/* ---------- static pages: privacy.html, terms.html, delete-account.html ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: 24px var(--pad) 56px; line-height: 1.6; }
.doc h1 { font-size: clamp(26px, 6vw, 34px); margin: 8px 0 6px; }
.doc h2 { font-size: 19px; margin: 28px 0 8px; }
.doc p, .doc li { font-size: 15px; }
.doc ul, .doc ol { padding-left: 22px; margin: 8px 0; }
.doc li { margin-bottom: 6px; }
.doc a:not(.btn) { text-decoration: underline; overflow-wrap: anywhere; }
.doc .doc-back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--green); }
.doc .todo { background: #F3E2CF; border-radius: 12px; padding: 12px 14px; font-size: 14px; margin: 16px 0; }
.doc .doc-btn { margin-top: 4px; }
@media (min-width: 560px) { .doc .doc-btn { width: auto; padding: 0 24px; } }

/* ---------- unlock timer (listing) ---------- */
.unlock-timer { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid rgba(14, 77, 58, .15); padding-top: 12px; font-size: 14px; color: var(--muted); }
.unlock-timer.ending { color: #7A3410; font-weight: 600; }
.unlock-timer .btn { align-self: stretch; }
@media (min-width: 560px) { .unlock-timer .btn { align-self: flex-start; } }

/* ---------- states and waitlist ---------- */
a.pill-link { min-height: 44px; padding: 0 14px; }
.text-link { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.change-city { min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; }
.site-foot .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.live-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line-soft); border-radius: 18px; padding: 16px; min-height: 64px; }
.live-card > svg { color: var(--muted); flex: none; }
.live-dot { width: 12px; height: 12px; border-radius: 50%; background: #1F9D55; box-shadow: 0 0 0 5px rgba(31, 157, 85, .18); flex: none; }
/* state picker */
.states-head { display: flex; flex-direction: column; gap: 14px; }
.states-search { position: sticky; top: 0; z-index: 5; margin: 0 calc(var(--pad) * -1); padding: 10px var(--pad); background: var(--ground); }
@media (min-width: 900px) { .states-search { top: var(--header-h); } }
.states-search > span { position: absolute; left: calc(var(--pad) + 16px); top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; pointer-events: none; }
.states-search .input { padding-left: 46px; min-height: 52px; border-radius: 16px; }
.zone-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: -4px calc(var(--pad) * -1) 0; padding: 0 var(--pad) 4px; scroll-padding-inline: var(--pad); }
.zone-chips::-webkit-scrollbar { display: none; }
.zone-chip { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: 600 14px var(--body); cursor: pointer; white-space: nowrap; }
.zone-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.state-mono { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex: none; font: 700 14px var(--display); letter-spacing: .02em; background: var(--z, var(--green-soft)); color: var(--zi, var(--green)); }
.state-mono.ng { background: var(--green); color: #fff; }
[data-zone="South West"] { --z: #E3EEE7; --zi: #0E4D3A; }
[data-zone="South South"] { --z: #DDEBF0; --zi: #1E5A73; }
[data-zone="South East"] { --z: #F3E2CF; --zi: #7A3410; }
[data-zone="North Central"] { --z: #ECE6F2; --zi: #4F3C73; }
[data-zone="North West"] { --z: #F4ECD2; --zi: #6B5310; }
[data-zone="North East"] { --z: #E6E9DA; --zi: #4A5A1E; }
.state-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.state-text b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.state-text .small { display: flex; flex-wrap: wrap; column-gap: 8px; }
.state-text .small > span + span::before { content: '·'; margin-right: 8px; }
.state-count:empty { display: none; }
.all-ng, .state-card { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line-soft); border-radius: 18px; padding: 12px 14px; min-height: 68px; min-width: 0; transition: box-shadow .2s, border-color .2s; }
.all-ng > svg, .state-card > svg { color: var(--muted); flex: none; }
.all-ng.on, .state-card.on { border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset; }
.state-card[hidden], .zone-sec[hidden], .states-popular[hidden] { display: none; }
.popular-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 46%); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 4px; scroll-padding-inline: var(--pad); }
.popular-row::-webkit-scrollbar { display: none; }
.pop-tile { scroll-snap-align: start; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-height: 112px; padding: 14px; border-radius: 20px; background: linear-gradient(160deg, var(--z, #E3EEE7), #fff 140%); color: var(--zi, var(--green)); border: 1px solid transparent; }
.pop-tile .pop-name { font: 700 19px var(--display); color: var(--ink); }
.pop-tile.on { border-color: var(--green); }
.zone-sec { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.zone-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line-soft); padding-bottom: 6px; }
.state-list { display: grid; grid-template-columns: 1fr; gap: 8px; }
#zone-list { display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 560px) { .state-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .popular-row { grid-auto-columns: minmax(170px, 30%); } }
@media (min-width: 960px) {
  .state-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .popular-row { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
  .zone-chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
}
@media (hover: hover) { .state-card:hover, .all-ng:hover, .pop-tile:hover { box-shadow: var(--shadow); } }
.state-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--green); white-space: nowrap; flex: none; }
.waitlist { gap: 20px; max-width: 560px; }
.field-legend { font-size: 14px; font-weight: 600; padding: 0; }
.seg-radio label { flex: 1; position: relative; display: flex; }
.seg-radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-radio span { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 4px 8px; border-radius: 11px; font-weight: 600; font-size: 15px; line-height: 1.2; }
.seg-radio input:checked + span { background: var(--green); color: #fff; }
.seg-radio input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.done-card { border-color: var(--green); }
.bar { height: 8px; background: var(--sand); border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--green); border-radius: 999px; }
@media (hover: hover) and (pointer: fine) {
  .live-card:hover { box-shadow: var(--shadow); }
}

/* ---------- listing videos ---------- */
.gallery-video { position: relative; background: #0E1512; display: flex; align-items: center; justify-content: center; }
.gallery-video video { width: 100%; height: 100%; object-fit: contain; background: #0E1512; display: block; }
.gallery-video.pending { flex-direction: column; gap: 6px; color: #F6F3EC; text-align: center; padding: 24px; background: #15211C; }
.gallery-video.pending span { font-size: 14px; opacity: .8; }
.video-len { position: absolute; left: 12px; top: 12px; background: rgba(21,33,28,.75); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 999px; pointer-events: none; }
.listing .badge-video { left: auto; right: 12px; display: inline-flex; align-items: center; gap: 4px; }
.badge-video svg { width: 12px; height: 12px; }
.video-thumb { background: #15211C; display: flex; align-items: center; justify-content: center; }
.video-thumb .vt-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; pointer-events: none; }
.video-thumb .vt-play svg { width: 34px; height: 34px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.video-thumb .vt-meta { position: absolute; left: 6px; bottom: 6px; background: rgba(21,33,28,.8); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 999px; }
.add-video svg { width: 24px; height: 24px; }
.admin-video { width: 160px; height: 96px; border-radius: 10px; background: #0E1512; flex: none; }
.admin-photos .chip { flex: none; align-self: center; }

/* ---------- "View demo" on the welcome page ---------- */
.view-demo { gap: 8px; flex-wrap: wrap; }
.view-demo svg { width: 18px; height: 18px; }
.view-demo .small { font-weight: 500; }

/* ---------- sign-in code dialog (test and demo servers only) ---------- */
.code-dialog { border: 0; border-radius: 24px; padding: 28px 22px 20px; width: min(calc(100vw - 32px), 380px); max-width: none; background: var(--card); color: var(--ink); box-shadow: 0 24px 60px rgba(21,33,28,.28); text-align: center; display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.code-dialog:not([open]) { display: none; }
.code-dialog::backdrop { background: rgba(21,33,28,.55); }
.code-dialog .h2 { margin: 0; font-size: 24px; }
.code-dialog p { margin: 0; line-height: 1.5; }
.code-dialog-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; align-self: center; }
.code-dialog-icon svg { width: 26px; height: 26px; }
.code-digits { display: block; font-family: var(--display); font-size: clamp(34px, 11vw, 42px); font-weight: 700; letter-spacing: .18em; padding: 12px 0 12px .18em; margin: 4px 0; background: var(--sand); border-radius: 16px; font-variant-numeric: tabular-nums; user-select: all; }
.code-dialog .btn { gap: 8px; }
.code-dialog .btn svg { width: 18px; height: 18px; }


/* ---------- scrollbars: thin, brand green, only visible while scrolling ---------- */
/* app.js adds .is-scrolling to whatever is being scrolled and removes it a moment after scrolling stops. */
* { scrollbar-width: thin; scrollbar-color: transparent transparent; }
.is-scrolling, .is-scrolling * { scrollbar-color: rgba(14, 77, 58, .55) transparent; }
.gallery, .zone-chips, .popular-row { scrollbar-width: none; }
/* Browsers without scrollbar-color (older Safari) */
@supports not (scrollbar-color: red blue) {
  ::-webkit-scrollbar { width: 8px; height: 8px; background: transparent; }
  ::-webkit-scrollbar-thumb { background: transparent; border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
  .is-scrolling::-webkit-scrollbar-thumb, .is-scrolling ::-webkit-scrollbar-thumb { background-color: rgba(14, 77, 58, .55); }
  ::-webkit-scrollbar-thumb:hover { background-color: rgba(14, 77, 58, .8); }
}

/* ---------- trust and safety ---------- */
.link-btn { background: none; border: 0; padding: 0; color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; display: inline; }
.safety-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--green-soft); color: var(--green); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.safety-icon.big { width: 56px; height: 56px; border-radius: 16px; }
.safety-icon.big svg { width: 28px; height: 28px; }
.safety-card { background: var(--card); border: 1px solid var(--line-soft); border-left: 4px solid var(--green); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.safety-links { flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.safety-links > * { min-height: 44px; display: inline-flex; align-items: center; }
.report-link { gap: 6px; color: var(--danger); }
.report-link svg { width: 16px; height: 16px; }
.pay-warn { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: #5E2A0C; background: #FBF1E6; border-radius: 12px; padding: 10px 12px; }
.pay-warn svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--accent); }
.banner.danger { background: #F8E1DE; color: #6E1810; }
.safety-row { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 18px; padding: 12px 14px; min-height: 64px; }
.safety-row > svg:last-child { color: var(--muted); flex: none; }
.safety-hero { display: flex; flex-direction: column; gap: 14px; }
.rule-list { margin: 0; padding: 0; list-style: none; counter-reset: rule; display: grid; gap: 10px; }
.rule-list li { counter-increment: rule; position: relative; background: var(--card); border: 1px solid var(--line-soft); border-radius: 16px; padding: 14px 14px 14px 58px; display: flex; flex-direction: column; gap: 4px; line-height: 1.5; min-width: 0; }
.rule-list li::before { content: counter(rule); position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.scam-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.scam-grid svg { flex: none; width: 18px; height: 18px; }
.help-card { background: #FBF1E6; border-color: #F0D9C2; }
.report-card.held { border-color: #E6B98F; }
.report-quote { background: var(--sand); border-radius: 12px; padding: 10px 12px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
/* Report dialog: a bottom sheet on phones, a centred card on larger screens. */
.sheet-dialog { border: 0; padding: 20px var(--pad) calc(20px + env(safe-area-inset-bottom)); margin: auto auto 0; width: 100%; max-width: none; max-height: 92vh; overflow-y: auto; border-radius: 24px 24px 0 0; background: var(--card); color: var(--ink); box-shadow: 0 -12px 40px rgba(21,33,28,.25); }
.sheet-dialog:not([open]) { display: none; }
.sheet-dialog::backdrop { background: rgba(21,33,28,.55); }
.sheet-dialog .btn svg { width: 18px; height: 18px; }
.reason-list { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.reason { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 14px; padding: 12px; cursor: pointer; min-height: 44px; }
.reason input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green); flex: none; }
.reason > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.4; }
.reason:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
@media (min-width: 560px) {
  .sheet-dialog { margin: auto; width: min(calc(100vw - 48px), 520px); border-radius: 24px; padding: 24px; }
  .scam-grid { grid-template-columns: 1fr 1fr; }
  .safety-hero { flex-direction: row; align-items: flex-start; }
}
@media (min-width: 960px) {
  .scam-grid { grid-template-columns: repeat(3, 1fr); }
  .rule-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 560px) { .features.four { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .features.four { grid-template-columns: repeat(4, 1fr); } }
.report-head { min-height: 44px; min-width: 0; }

/* ---------- visible verification and ratings ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.stars { display: inline-flex; gap: 1px; color: #D6CFBF; vertical-align: middle; }
.stars .on { color: #D9901A; }
.stars svg { display: block; }
.rating-mini { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 700; color: var(--ink); }
.rating-mini svg { color: #D9901A; }
.verified-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.vtags { display: flex; flex-wrap: wrap; gap: 6px; }
.vtag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--green); background: var(--green-soft); border-radius: 999px; padding: 5px 10px; }
.vtag svg { width: 12px; height: 12px; }
.vtag.off { color: var(--muted); background: var(--sand); }
.lc-rating b { font-size: 15px; }
.lc-reply { color: var(--muted); align-items: flex-start; line-height: 1.45; }
.lc-reply svg { flex: none; margin-top: 2px; }
.lc-reply b { color: var(--ink); }
.reviews { border-top: 1px solid var(--line-soft); padding-top: 20px; margin-top: 4px; }
.review { background: var(--card); border: 1px solid var(--line-soft); border-radius: 16px; padding: 14px; }
.viewing-link { min-height: 44px; }
.btn svg + * { margin-left: 0; }
.btn .stars, .btn > svg { flex: none; }
.star-pick { border: 0; margin: 0; padding: 0; }
.star-pick label { position: relative; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--sand); color: #CFC7B5; cursor: pointer; }
.star-pick label svg { width: 28px; height: 28px; }
.star-pick label.on { color: #D9901A; background: #FBF1E0; }
.star-pick input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.star-pick label:has(input:focus-visible) { outline: 3px solid #F2C48D; outline-offset: 2px; }
.lp-reviews { grid-area: reviews; min-width: 0; }

/* ---------- move-in costs and local filters ---------- */
.more-filters { text-align: left; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; }
.more-filters.on { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.more-filters .count { background: var(--green); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.move-in-mini { color: var(--green); font-weight: 600; }
.costs { background: var(--card); border: 1px solid var(--line-soft); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.cost-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; line-height: 1.4; }
.cost-row b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cost-row.total { border-top: 1px dashed var(--line); padding-top: 12px; font-size: 17px; }
.cost-row.total b { color: var(--green); font-size: 20px; }
.costs-empty { background: var(--sand); border: 0; line-height: 1.5; display: block; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
.feature-list li { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.feature-list svg { color: var(--green); flex: none; }
.feature-list li.power svg { color: #D9901A; }
.check-grid { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 8px; min-width: 0; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; cursor: pointer; background: var(--card); }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--green); flex: none; }
.check:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.form-group { border: 1px solid var(--line-soft); border-radius: 18px; padding: 14px; margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; background: rgba(255,255,255,.5); }
.form-group legend { font-weight: 700; padding: 0 6px; }
.form-pair { gap: 12px; flex-wrap: wrap; }
.form-pair > .field { flex: 1 1 200px; min-width: 0; }
@media (min-width: 560px) {
  .check-grid, .feature-list { grid-template-columns: 1fr 1fr; }
}
.filters .more-filters { min-height: 46px; font-size: 15px; padding: 0 12px; }

/* ---------- viewings: slots, suggested times, safety, check-in ---------- */
.slot-picker { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.day-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -2px; padding: 2px; }
.day-chip { flex: none; width: 56px; min-height: 60px; border-radius: 14px; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; color: var(--muted); }
.day-chip b { font-size: 18px; color: var(--ink); }
.day-chip.on { background: var(--green); border-color: var(--green); color: #DCEBE1; }
.day-chip.on b { color: #fff; }
.day-chip:disabled { opacity: .45; }
.time-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.time-slots .slot { min-height: 48px; }
.slot:disabled { background: var(--sand); color: var(--muted); border-style: dashed; cursor: not-allowed; }
.slot:disabled b { text-decoration: line-through; font-weight: 500; }
.slot span { font-size: 11px; }
.suggest-box { background: #FBF1E6; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.5; }
.safety-box { background: var(--green-soft); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.safety-box .btn, .viewing-actions .btn { width: auto; flex: 1 1 170px; gap: 6px; white-space: nowrap; }
.checkin-btn { gap: 6px; }
.hours-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--card); border: 1px dashed var(--line); border-radius: 16px; padding: 10px 12px 10px 14px; line-height: 1.5; }
.hours-card .btn { width: auto; flex: none; }
.req-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.req-actions .btn { padding: 0 6px; }
.tel-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--green); font-weight: 600; }
.tel-link svg { width: 15px; height: 15px; }
.day-pick { border: 0; margin: 0; padding: 0; }
.day-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day-grid label { position: relative; display: flex; }
.day-grid input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.day-grid span { flex: 1; min-height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; font-size: 14px; background: #fff; }
.day-grid input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.day-grid input:focus-visible + span { outline: 3px solid #F2C48D; outline-offset: 2px; }
.viewing-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); align-items: start; }
.btn.btn-auto { width: auto; flex: none; padding: 0 18px; }

/* ---------- map and near me ---------- */
.view-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.seg-small { flex: 1 1 0; min-width: 0; max-width: 220px; }
.seg-small button { min-height: 44px; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.near-btn { width: auto; flex: none; gap: 6px; padding: 0 14px; white-space: nowrap; }
.near-btn.on { background: var(--green); color: #fff; }
.big-map, .small-map { isolation: isolate; border-radius: 18px; overflow: hidden; background: #E6EEE9; border: 1px solid var(--line-soft); }
.big-map { height: min(68vh, 640px); min-height: 340px; }
.small-map { height: 240px; }
.leaflet-container { font-family: var(--body); }
.price-pin-wrap { background: none; border: 0; }
.price-pin { display: inline-block; transform: translate(-50%, -100%); white-space: nowrap; background: var(--green); color: #fff; font-weight: 700; font-size: 13px; padding: 5px 9px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.3); position: relative; }
.price-pin::after { content: ''; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--green); border-bottom: 0; }
.map-pop { display: flex; flex-direction: column; gap: 3px; width: 200px; color: var(--ink) !important; text-decoration: none; font-size: 13px; }
.map-pop img { width: 100%; height: 110px; object-fit: cover; border-radius: 10px; margin-bottom: 4px; }
.map-pop b { font-size: 15px; }
.map-fail { height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; color: var(--muted); font-size: 14px; }
.map-note { margin-top: 8px; }
.distance { color: var(--green); font-weight: 600; }
#pin-note svg { vertical-align: -2px; color: var(--green); }
@media (min-width: 768px) { .small-map { height: 280px; } }
.leaflet-container.leaflet-touch .leaflet-bar a, .leaflet-container .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; font-size: 22px; }

/* ---------- locked listing: blurred photos, costs and directions until unlocked ---------- */
.gallery-locked { position: relative; overflow: hidden; background: #2A3530; }
.gallery-locked > img, .gallery-locked > svg { position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); object-fit: cover; filter: blur(22px) saturate(.8) brightness(.75); transform: scale(1.05); }
.lock-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; text-align: center; color: #fff; background: rgba(14, 30, 24, .35); }
.lock-overlay b { font-size: 18px; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.lock-overlay .small { color: #E8EFEA; max-width: 280px; line-height: 1.45; }
.lock-overlay .btn { width: auto; padding: 0 22px; margin-top: 6px; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.lock-badge { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--green); display: inline-flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.lock-badge svg { width: 24px; height: 24px; }
.costs-body { position: relative; }
.costs-blur { filter: blur(6px); user-select: none; pointer-events: none; display: flex; flex-direction: column; gap: 10px; opacity: .8; }
.lock-center { position: absolute; inset: -6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 12px; background: rgba(255,255,255,.35); border-radius: 12px; }
.lock-center .lock-badge { background: var(--green-soft); box-shadow: none; width: 44px; height: 44px; }
.lock-center .small { color: var(--muted); max-width: 300px; line-height: 1.45; }
.lock-center .btn { width: auto; padding: 0 22px; margin-top: 4px; }
.costs-locked { min-height: 280px; }
.directions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line-soft); border-radius: 18px; padding: 14px 16px; }
.directions.locked { background: var(--sand); border-color: transparent; }
.dir-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--green-soft); color: var(--green); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.directions.locked .dir-icon { background: #fff; }
.directions .grow { flex: 1 1 180px; }
.directions .btn { gap: 6px; }
.unlock-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.unlock-list li { display: flex; align-items: center; gap: 8px; }
.unlock-list svg { color: var(--green); flex: none; }

/* ---------- agents: Find an agent, profiles, dashboard ---------- */
.find-agent { gap: 8px; flex-wrap: wrap; }
.find-agent svg { width: 20px; height: 20px; }
.find-agent .small { font-weight: 500; }
.agent-search { display: grid; grid-template-columns: 1fr 44px; gap: 8px; }
.agent-search select { grid-column: 1 / -1; }
.agent-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.agent-card { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 18px; padding: 14px 16px; min-width: 0; }
.agent-card > svg:last-child { color: var(--muted); flex: none; }
.agent-card b { font-size: 16px; min-width: 0; overflow-wrap: anywhere; }
.agent-avatar { width: 52px; height: 52px; font-size: 18px; background: #1F3A5F; }
.agent-avatar.lg { width: 72px; height: 72px; font-size: 24px; }
.avatar.sm { width: 36px; height: 36px; font-size: 13px; }
.verified-dot.sm { width: 20px; height: 20px; }
.verified-dot.sm svg { width: 11px; height: 11px; }
.rating-line b { font-size: 14px; }
.agent-head { display: flex; gap: 16px; align-items: flex-start; }
.agent-how { background: var(--green-soft); border-radius: 14px; padding: 12px 14px; line-height: 1.55; }
.todo { display: flex; flex-direction: column; gap: 8px; background: #FBF1E6; border-radius: 18px; padding: 14px; }
.todo-row { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 14px; padding: 12px; min-height: 56px; line-height: 1.4; }
.todo-row > svg:last-child { color: var(--muted); flex: none; }
.todo-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.todo-row.waiting .todo-dot { background: #D9A441; }
.agent-stats { grid-template-columns: 1fr 1fr; }
.dash-tabs { max-width: 480px; }
.dash-tabs button { font-size: 14px; }
.tab-count { display: inline-block; min-width: 22px; padding: 0 6px; border-radius: 999px; background: rgba(0,0,0,.08); font-size: 12px; line-height: 20px; margin-left: 4px; }
.dash-tabs button.on .tab-count { background: rgba(255,255,255,.25); }
.dash-row { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line-soft); border-radius: 16px; padding: 12px; min-width: 0; }
.dash-row.lead { align-items: center; flex-wrap: wrap; }
.dash-row.lead .btn { gap: 6px; }
.dash-thumb { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; flex: none; background: var(--sand); }
.dash-thumb img, .dash-thumb svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.dash-title { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.doc-warn { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: #FBF1E6; color: #5E2A0C; border-radius: 12px; padding: 8px 10px; line-height: 1.45; }
.doc-warn > svg { flex: none; color: var(--accent); width: 18px; height: 18px; }
.doc-warn span { flex: 1 1 180px; }
.fee-note { display: flex; gap: 8px; align-items: flex-start; background: var(--green-soft); border-radius: 12px; padding: 10px 12px; line-height: 1.5; margin: 0; }
.fee-note svg { flex: none; color: var(--green); margin-top: 3px; }
.plan-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; text-align: left; }
.plan-points li { display: flex; align-items: center; gap: 8px; }
.plan-points svg { color: var(--green); flex: none; }
.plan.on .plan-points svg { color: inherit; }
.no-mark { width: 14px; text-align: center; font-weight: 700; color: var(--muted); flex: none; }
@media (min-width: 560px) {
  .agent-search { grid-template-columns: 220px 1fr 44px; }
  .agent-search select { grid-column: auto; }
}
@media (min-width: 768px) {
  .agent-grid { grid-template-columns: 1fr 1fr; }
  .agent-stats { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1100px) { .agent-grid { grid-template-columns: repeat(3, 1fr); } }
.dash-row.lead { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; }
.dash-row.lead .btn { grid-column: 2; justify-self: start; }
@media (min-width: 560px) {
  .dash-row.lead { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .dash-row.lead .btn { grid-column: auto; }
}
.agent-search .btn svg { width: 22px; height: 22px; }

/* ---------- homepage (RAGENT design) ---------- */
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text small { font-family: var(--body); font-size: 12px; font-weight: 600; color: var(--green); letter-spacing: .1px; margin-top: 2px; }
.home-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.state-pill { gap: 6px; font-size: 15px; padding: 0 14px; }
.state-pill svg:last-child { width: 14px; height: 14px; transform: rotate(90deg); }
.home-hero { position: relative; border-radius: 26px; overflow: hidden; background: #DCEBE1; min-height: 260px; isolation: isolate; box-shadow: 0 10px 30px rgba(14, 77, 58, .14); }
.home-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 100%; z-index: -2; }
/* A light fade on the left so the headline reads over the sky. */
.home-hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(246, 243, 236, .95) 0%, rgba(246, 243, 236, .86) 34%, rgba(246, 243, 236, .25) 58%, rgba(246, 243, 236, 0) 70%); }
.home-hero-copy { position: relative; display: flex; flex-direction: column; gap: 10px; width: 58%; padding: 22px 0 52px 18px; }
.home-title { font-family: var(--display); color: var(--green); font-size: clamp(22px, 6.4vw, 30px); line-height: 1.08; letter-spacing: -0.4px; font-weight: 700; margin: 0; }
.home-place { position: relative; display: inline-block; font-size: 1.5em; line-height: 1; padding-bottom: 10px; margin-top: 2px; }
.home-place .swoosh { position: absolute; left: 0; bottom: 0; width: 100%; height: 12px; }
.home-sub { font-size: 12.5px; line-height: 1.45; font-weight: 600; color: #213129; margin: 0; max-width: 260px; }
.home-cta { display: flex; flex-direction: column; gap: 12px; }
.home-btn { border-radius: 999px; min-height: 56px; font-size: 17px; }
.home-cards { display: flex; flex-direction: column; gap: 12px; }
.home-card { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font: inherit; color: inherit; background: var(--green-soft); border: 0; border-radius: 20px; padding: 14px 16px; min-height: 72px; cursor: pointer; }
.home-features .home-card { background: var(--card); border: 1px solid var(--line-soft); cursor: default; box-shadow: 0 2px 10px rgba(21, 33, 28, .04); }
.home-card-icon { position: relative; width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: var(--green); margin-right: 14px; }
/* The thin divider between icon and text. */
.home-card-icon::after { content: ''; position: absolute; right: -15px; top: 4px; bottom: 4px; width: 1.5px; background: rgba(14, 77, 58, .25); }
.home-card-icon svg { width: 24px; height: 24px; }
.home-card-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; line-height: 1.45; }
.home-card-text b { font-size: 16px; }
.home-card-go { color: var(--ink); flex: none; }
.shield-badge { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(145deg, #1F6B52, #0E4D3A); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 3px rgba(255,255,255,.25); }
.shield-badge svg { width: 26px; height: 26px; }
.home-features .home-card:first-child .home-card-icon { width: 52px; height: 52px; }
.home-logo-big { display: flex; justify-content: center; }
.install-steps { margin: 0; padding-left: 22px; line-height: 1.7; }
@media (min-width: 400px) { .home-hero { min-height: 290px; } }
@media (min-width: 560px) {
  .home-hero { min-height: 340px; }
  .home-hero-copy { width: 52%; padding: 34px 0 64px 32px; gap: 14px; }
  .home-title { font-size: clamp(30px, 4.6vw, 44px); }
  .home-sub { font-size: 15px; max-width: 340px; }
  .home-cta { flex-direction: row; }
  .home-cta .home-btn { flex: 1; }
}
@media (min-width: 768px) {
  .home-hero { min-height: 420px; border-radius: 30px; }
  .home-hero-copy { width: 48%; padding: 48px 0 80px 48px; }
  .home-cta .home-btn { flex: 0 1 300px; }
  .home-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
@media (min-width: 1100px) {
  .home-hero { min-height: 480px; }
  .home-title { font-size: 52px; }
}
.home-hero-copy .state-pill { align-self: flex-start; }
@media (max-width: 559.98px) { .home-sub { max-width: 205px; } }
/* The homepage's phone header stays at the top while you scroll (tablets and desktops use the sticky .topbar). */
.home-head { position: sticky; top: 0; z-index: 20; margin: calc(-1 * var(--pad-top)) calc(-1 * var(--pad)) 0;
  padding: calc(env(safe-area-inset-top) + 10px) var(--pad) 10px; background: rgba(246, 243, 236, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line-soft); }

/* ---------- from the RAGENT pictures: banner, app bar, Explore controls, cards, tab bar ---------- */
/* Homepage banner: the state in orange, the two buttons inside the banner. */
.home-place { color: #EE7411; }
.home-hero { display: flex; flex-direction: column; justify-content: space-between; min-height: 420px; }
.home-hero::before { background: linear-gradient(90deg, rgba(246, 243, 236, .95) 0%, rgba(246, 243, 236, .86) 34%, rgba(246, 243, 236, .2) 58%, rgba(246, 243, 236, 0) 70%),
  linear-gradient(0deg, rgba(246, 243, 236, .9) 0%, rgba(246, 243, 236, 0) 34%); }
.home-hero-copy { padding-bottom: 12px; }
.home-hero .home-cta { padding: 0 16px 18px; gap: 10px; }
.home-hero .home-btn { min-height: 52px; font-size: 16px; box-shadow: 0 6px 16px rgba(14, 77, 58, .18); }
.home-hero .btn-ghost { background: #fff; }
@media (min-width: 560px) {
  .home-hero { min-height: 400px; justify-content: flex-start; }
  .home-hero .home-cta { padding: 4px 0 64px 32px; width: 62%; }
}
@media (min-width: 768px) {
  .home-hero { min-height: 460px; }
  .home-hero .home-cta { padding: 8px 0 80px 48px; width: 60%; flex-wrap: wrap; }
  .home-hero .home-cta .home-btn { flex: 0 1 auto; padding: 0 26px; }
}

/* Phones: green app bar (tablets and desktops keep the white top bar). */
.appbar { position: sticky; top: 0; z-index: 25; display: flex; align-items: center; gap: 8px; background: var(--green); color: #fff;
  padding: calc(env(safe-area-inset-top) + 8px) 12px 8px; min-height: 64px; }
.appbar-btn { width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; color: #fff; border-radius: 50%; }
.appbar-btn.ring { border: 2px solid #F08A1C; width: 40px; height: 40px; margin: 2px; }
.appbar-brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: #fff; font-family: var(--display); font-weight: 700; font-size: 20px; }
.appbar-brand .brand-text small { color: #CFE3D7; }
.appbar-logo { width: 38px; height: 38px; flex: none; border: 2px solid #F08A1C; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.appbar-logo svg { width: 22px; height: 22px; }
@media (min-width: 768px) { .appbar { display: none; } }
@media (max-width: 767.98px) {
  .screen { padding-top: 16px; }
  /* The app bar has the back button. */
  .appbar ~ main.screen > a.icon-btn:first-child, .appbar ~ main .states-head > .icon-btn { display: none; }
}

/* Explore: the state card. */
.state-banner { display: flex; align-items: center; gap: 12px; background: var(--green-soft); border-radius: 18px; padding: 10px 14px; min-height: 64px; color: var(--ink); }
.state-banner-pin { color: var(--green); flex: none; display: inline-flex; }
.state-banner-pin svg { width: 26px; height: 26px; }
.state-banner-name { display: flex; align-items: center; gap: 6px; font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--green); margin: 0; min-width: 0; }
.state-banner-name svg { flex: none; }
.state-banner-change { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 600; flex: none; }
/* Search with the icon inside. */
.search-field { position: relative; display: block; min-width: 0; }
.search-field > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search-field .input { width: 100%; padding-left: 44px; }
/* Rent / Buy with icons. */
.seg-icons button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.seg-icons button svg { width: 20px; height: 20px; }
/* Filters with icons. */
.select-icon { position: relative; display: block; min-width: 0; }
.select-icon > svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink); pointer-events: none; }
.select-icon select { width: 100%; padding-left: 38px; }
.more-filters { justify-content: center; gap: 10px; color: var(--green); }
.more-filters > svg { flex: none; }
@media (max-width: 767.98px) { .filters .more-filters { grid-column: 1 / -1; } }
.result-count { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; margin: 0 0 12px; }
.result-count > svg { width: 20px; height: 20px; flex: none; }
.result-count b { color: var(--green); }

/* Listing cards: shield badge, save heart, beds / baths, View Details. */
.listing-item { position: relative; display: flex; min-width: 0; }
.listing-item > .listing { flex: 1; }
.listing .badge { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; padding: 6px 11px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.listing .badge svg { width: 15px; height: 15px; }
.listing .badge-video { top: auto; bottom: 12px; left: 12px; right: auto; }
.save-btn { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .22); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.save-btn svg { width: 24px; height: 24px; }
.save-btn.on { background: #fff; color: #D93A2F; }
.save-btn.on svg path { fill: currentColor; }
.card-foot { display: flex; align-items: center; gap: 16px; border-top: 1px solid var(--line-soft); padding-top: 10px; margin-top: 6px; }
.spec { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; color: var(--muted); }
.spec svg { color: var(--ink); }
.view-details { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; background: var(--green); color: #fff; font-weight: 600; font-size: 14px; border-radius: 12px; min-height: 40px; padding: 0 12px 0 16px; }
.view-details svg { width: 16px; height: 16px; }

/* Menu sheet. */
.menu-list { gap: 4px; }
.menu-row { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 6px; border-radius: 12px; color: var(--ink); font-weight: 500; }
.menu-row:hover { background: var(--green-soft); }
.menu-row > svg:first-child { color: var(--green); width: 22px; height: 22px; flex: none; }
.menu-row span { flex: 1; }
.menu-row > svg:last-child { color: var(--muted); }

/* Tab bar: rounded, a marker under the active tab, and the green and orange wave below. */
.tabbar { border-top: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -6px 24px rgba(21, 33, 28, .1); padding-bottom: calc(env(safe-area-inset-bottom) + 20px); }
.tabbar a { position: relative; }
.tabbar a.on::after { content: ''; position: absolute; bottom: 2px; left: 50%; width: 32px; height: 3px; margin-left: -16px; border-radius: 3px; background: var(--green); }
.tabbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: calc(env(safe-area-inset-bottom) + 14px); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 20' preserveAspectRatio='none'%3E%3Cpath d='M0 8 C120 0 260 0 400 6 V20 H0Z' fill='%23F08A1C'/%3E%3Cpath d='M0 12 C130 4 270 4 400 10 V20 H0Z' fill='%230E4D3A'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat, var(--green); }
.screen { padding-bottom: calc(env(safe-area-inset-bottom) + 128px); }
.screen.no-tabs { padding-bottom: calc(env(safe-area-inset-bottom) + 32px); }
.listing .photo .badge svg { position: static; inset: auto; width: 15px; height: 15px; flex: none; }
.agent-search .btn.btn-icon svg { width: 24px; height: 24px; flex: none; }
/* Phones: fade only behind the headline (top left) and a little behind the buttons, so the house stays bright. */
@media (max-width: 559.98px) {
  .home-hero::before { background: linear-gradient(165deg, rgba(246, 243, 236, .96) 0%, rgba(246, 243, 236, .82) 24%, rgba(246, 243, 236, 0) 46%),
    linear-gradient(0deg, rgba(246, 243, 236, .75) 0%, rgba(246, 243, 236, 0) 24%); }
  .home-hero-copy { width: 70%; }
}
/* Wider screens: the buttons side by side under the headline; only the left fade. */
@media (min-width: 560px) {
  .home-hero::before { background: linear-gradient(90deg, rgba(246, 243, 236, .95) 0%, rgba(246, 243, 236, .86) 34%, rgba(246, 243, 236, .2) 58%, rgba(246, 243, 236, 0) 70%); }
  .home-hero .home-cta { flex-direction: row; flex-wrap: wrap; }
  .home-hero .home-cta .home-btn { width: auto; flex: 0 0 auto; padding: 0 26px; }
}
.appbar-btn.ring { width: 44px; height: 44px; margin: 0; border: 0; box-shadow: inset 0 0 0 2px #F08A1C; }
.appbar-brand { min-height: 44px; }
.agent-search .btn-icon { padding: 0; }

/* ---------- homepage info strip: three checks, each with a tooltip ---------- */
.trust-strip { position: relative; z-index: 5; display: flex; align-items: stretch; background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .7); border-radius: 24px;
  padding: 14px 6px; box-shadow: 0 10px 30px rgba(14, 77, 58, .12); }
.trust-item { position: relative; flex: 1; min-width: 0; display: flex; }
.trust-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 4px; border-radius: 16px;
  font: inherit; color: var(--ink); text-align: center; cursor: help; min-height: 44px; }
.trust-btn:hover, .trust-item.open .trust-btn { background: rgba(30, 142, 62, .08); }
.trust-icon { width: 46px; height: 46px; display: block; }
.trust-icon svg { width: 100%; height: 100%; display: block; }
.trust-label { font-family: var(--display); font-weight: 700; font-size: 14px; line-height: 1.2; color: #1C2A24; }
.trust-divider { width: 2px; align-self: stretch; margin: 6px 2px; background: #1A7F37; border-radius: 2px; flex: none; }
/* The tooltip: above the item, centred; the outer two keep to the screen edge. */
.trust-tip { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(4px); width: min(250px, 78vw);
  background: var(--green); color: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 12px 30px rgba(14, 77, 58, .3);
  display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; line-height: 1.5; text-align: left;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s, transform .15s, visibility .15s; z-index: 30; }
.trust-tip b { font-size: 14.5px; }
.trust-tip::after { content: ''; position: absolute; top: 100%; left: 50%; margin-left: -8px; border: 8px solid transparent; border-top-color: var(--green); }
.trust-item:first-child .trust-tip { left: 0; transform: translateY(4px); }
.trust-item:first-child .trust-tip::after { left: 40px; }
.trust-item:last-child .trust-tip { left: auto; right: 0; transform: translateY(4px); }
.trust-item:last-child .trust-tip::after { left: auto; right: 32px; margin-left: 0; }
.trust-item:hover .trust-tip, .trust-item:focus-within .trust-tip, .trust-item.open .trust-tip { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.trust-item:first-child:hover .trust-tip, .trust-item:first-child:focus-within .trust-tip, .trust-item:first-child.open .trust-tip,
.trust-item:last-child:hover .trust-tip, .trust-item:last-child:focus-within .trust-tip, .trust-item:last-child.open .trust-tip { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .trust-tip { transition: none; } }
@media (min-width: 560px) {
  .trust-strip { padding: 18px 12px; }
  .trust-icon { width: 56px; height: 56px; }
  .trust-label { font-size: 17px; }
  .trust-divider { margin: 4px 10px; }
}
/* Desktop: the strip overlaps the bottom of the banner, like the design. */
@media (min-width: 768px) {
  .trust-strip { width: min(820px, 88%); margin: -84px auto 0; }
  .trust-label { font-size: 19px; }
}
/* Desktop: the info strip lines up with the headline and buttons in the banner (same left edge). */
@media (min-width: 768px) { .trust-strip { width: min(780px, calc(100% - 96px)); margin: -84px 0 0 48px; } }
.plan-feats { display: flex; align-items: center; gap: 6px; color: #E3EEE7; }
.plan-feats svg { color: #fff; }
.plan-btn { background: #fff; color: var(--green); width: auto; padding: 0 18px; }
.plan-btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.7); }
.current-plan { display: flex; gap: 24px; flex-wrap: wrap; background: var(--green-soft); border-radius: 16px; padding: 14px 16px; line-height: 1.45; }

/* Listing page before unlocking: blurred "what the home has" lines and the jump to the unlock card. */
.feature-list li.feat-hidden span { filter: blur(5px); user-select: none; color: var(--muted); }
.feature-list li.feat-hidden svg { opacity: .35; }
.feat-more { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: var(--sand); border-radius: 14px; padding: 10px 12px; }
.feat-more .small { display: inline-flex; align-items: center; gap: 6px; }
.feat-more svg { width: 16px; height: 16px; color: var(--green); }
.unlock-jump { gap: 6px; }
.unlock-jump svg { width: 16px; height: 16px; }
.lock.pulse { animation: lock-pulse 1.4s ease-out 1; }
@keyframes lock-pulse { 0% { box-shadow: 0 0 0 0 rgba(238, 116, 17, .55); } 100% { box-shadow: 0 0 0 16px rgba(238, 116, 17, 0); } }
@media (prefers-reduced-motion: reduce) { .lock.pulse { animation: none; outline: 3px solid #EE7411; } }

/* ---------- info strip inside the hero banner: small, frosted, lined up with the headline ---------- */
.home-hero { justify-content: flex-start; }
.home-hero .home-cta { margin-top: auto; padding-bottom: 12px; }
.home-hero .trust-strip { width: auto; margin: 0 16px 16px; padding: 6px 2px; border-radius: 16px;
  background: rgba(255, 255, 255, .62); -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .55); box-shadow: 0 4px 14px rgba(14, 77, 58, .1); }
.home-hero .trust-btn { gap: 4px; padding: 4px 2px; }
.home-hero .trust-icon { width: 28px; height: 28px; }
.home-hero .trust-label { font-size: 11.5px; line-height: 1.2; }
.home-hero .trust-divider { width: 1.5px; margin: 6px 0; opacity: .7; }
.home-hero .trust-tip { width: min(230px, 72vw); font-size: 12.5px; padding: 10px 12px; }
.home-hero .trust-tip b { font-size: 13.5px; }
@media (max-width: 559.98px) { .home-hero { min-height: 500px; } }
@media (min-width: 560px) {
  .home-hero .home-cta { margin-top: 0; padding-bottom: 16px; }
  .home-hero .trust-strip { width: max-content; max-width: calc(100% - 64px); margin: 0 0 40px 32px; padding: 6px 4px; }
  .home-hero .trust-item { flex: 0 1 140px; }
  .home-hero .trust-label { font-size: 12.5px; }
}
@media (min-width: 768px) {
  .home-hero .home-cta { padding-bottom: 20px; }
  .home-hero .trust-strip { margin: 0 0 56px 48px; max-width: calc(100% - 96px); }
  .home-hero .trust-item { flex-basis: 150px; }
  .home-hero .trust-icon { width: 32px; height: 32px; }
  .home-hero .trust-label { font-size: 13px; }
}

/* ---------- RAGENT logo ---------- */
.logo-mark { height: 34px; width: auto; display: block; flex: none; }
.home-head .logo-mark { height: 40px; }
.appbar-logo { background: #fff; border: 0; border-radius: 10px; width: 40px; height: 40px; padding: 4px; }
.appbar-logo .logo-mark { height: 30px; }
.auth-logo { display: flex; justify-content: center; margin: 4px 0 6px; }
.logo-full { width: min(300px, 78vw); height: auto; display: block; }
.home-logo-big .logo-full { width: min(240px, 70vw); }

/* ---------- hero buttons centred on phones (as in the design) ---------- */
@media (max-width: 559.98px) {
  .home-hero .home-cta { align-items: center; }
  .home-hero .home-btn { width: min(100%, 320px); }
}

/* ---------- Featured Homes ---------- */
.featured { background: var(--card); border: 1px solid var(--line-soft); border-radius: 24px; padding: 16px 0 12px; box-shadow: 0 6px 20px rgba(14, 77, 58, .06); min-width: 0; }
.featured-head { display: flex; align-items: center; gap: 12px; padding: 0 16px 12px; }
.featured-star { width: 40px; height: 40px; border-radius: 50%; background: #1A7F37; color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.featured-head h2 { font-family: var(--display); font-size: 21px; margin: 0; color: var(--green); }
.view-all { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 700; flex: none; min-height: 44px; }
.featured-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 8px; scroll-padding: 0 16px; scrollbar-width: none; }
.featured-row::-webkit-scrollbar { display: none; }
.fcard { flex: 0 0 min(78%, 270px); scroll-snap-align: start; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden; color: var(--ink); box-shadow: 0 2px 10px rgba(21, 33, 28, .06); }
.fcard.skeleton { height: 270px; background: linear-gradient(90deg, #EEE9DD 25%, #F6F3EC 50%, #EEE9DD 75%) 0 0 / 200% 100%; animation: shimmer 1.2s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .fcard.skeleton { animation: none; } }
.fcard-photo { position: relative; aspect-ratio: 16 / 10; background: var(--green-soft); }
.fcard-photo img, .fcard-photo svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fcard-badge { position: absolute; top: 10px; left: 10px; background: #1A7F37; color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.fcard-body { display: flex; flex-direction: column; gap: 5px; padding: 12px 12px 14px; }
.fcard-title { font-size: 15.5px; line-height: 1.3; }
.fcard-place { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); }
.fcard-place svg { flex: none; }
.fcard-price { font-family: var(--display); font-weight: 700; font-size: 19px; color: #1A7F37; }
.fcard-price small { font-size: 14px; font-weight: 600; }
.fcard-specs { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.fcard-specs span { display: inline-flex; align-items: center; gap: 4px; }
.fcard-specs svg { width: 15px; height: 15px; color: var(--ink); }
.featured-dots { display: flex; justify-content: center; gap: 4px; min-height: 12px; }
.featured-dots .dot { width: 24px; height: 24px; border: 0; background: none; padding: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.featured-dots .dot::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #D3DCD6; }
.featured-dots .dot.on::before { background: #1A7F37; }
.staff-feature { align-items: center; }
@media (min-width: 768px) {
  .featured { padding: 20px 0 14px; }
  .featured-head { padding: 0 20px 14px; }
  .featured-row { padding: 4px 20px 8px; scroll-padding: 0 20px; }
  .fcard { flex-basis: 280px; }
}
.featured-dots { gap: 0; } .featured-dots .dot { width: 44px; height: 44px; }
@media (max-width: 559.98px) { .featured-head h2 { font-size: 18.5px; white-space: nowrap; } .featured-head { gap: 10px; } .featured-star { width: 36px; height: 36px; } .view-all { font-size: 14px; } }

/* Sign-in screens have no top bar: a little more room at the top, and the Back button. */
.auth-back { align-self: flex-start; }
@media (min-width: 768px) { main.screen:has(> .auth-back) { padding-top: 40px; } }

/* ---------- sign-in and sign-up: one column on phones, two columns on desktop ---------- */
.auth-split { display: flex; flex-direction: column; gap: 18px; width: 100%; max-width: 560px; margin: 0 auto; }
.auth-pitch, .auth-points { display: none; }
.auth-card { gap: 16px; }
.auth-title { font-size: 30px; }
@media (min-width: 900px) {
  .auth-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, 420px); align-items: center; gap: 64px; max-width: 1040px;
    min-height: calc(100vh - 180px); padding-bottom: 40px; }
  .auth-intro { display: flex; flex-direction: column; gap: 18px; }
  .auth-intro .auth-logo { justify-content: flex-start; margin: 0; }
  .auth-intro .logo-full { width: min(440px, 100%); }
  .auth-pitch { display: block; font-family: var(--display); font-size: 27px; line-height: 1.3; color: var(--ink); max-width: 480px; margin: 0; }
  .auth-points { display: flex; flex-direction: column; gap: 10px; list-style: none; padding: 0; margin: 4px 0 0; color: var(--muted); font-size: 16px; }
  .auth-points li { display: flex; align-items: center; gap: 10px; }
  .auth-points svg { width: 18px; height: 18px; color: #1A7F37; flex: none; }
  .auth-card { background: var(--card); border-radius: 18px; padding: 28px 26px 24px; box-shadow: 0 2px 4px rgba(0, 0, 0, .08), 0 14px 40px rgba(14, 77, 58, .14); }
  .auth-title { font-size: 26px; }
}
/* Paid homepage adverts on the dashboards. */
.ad-chip { background: #FFF1E2; color: #A84B05; gap: 5px; }
.ad-chip svg { color: #EE7411; }
[data-action=promote] { gap: 6px; }

/* Social media links (homepage footer and menu) */
.social-links { display: flex; justify-content: center; gap: 10px; }
.social-link { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); color: var(--green); transition: transform .2s, background .2s, color .2s; }
.social-link:hover { background: var(--green); color: #fff; transform: translateY(-2px); }
.social-link svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) { .social-link { transition: none; } }

/* ---------- Information pages (About, Privacy, Terms, Delete account): shared header and tabs ----------
   Phones: green app bar, then a sticky row of tabs you can swipe. Tablets and desktops: white top bar, tabs on the left.
   The markup comes from tools/doc-shell.js. */
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 60; background: #fff; color: var(--green); font-weight: 600; padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); }
.skip-link:focus { left: 8px; }
.info-page .doc { max-width: 760px; margin: 0; padding: 4px 0 40px; }
.info-page .ab { max-width: none; margin: 0; padding: 0 0 40px; }
.info-page .ab-hero { margin-top: 0; }
.info-page .appbar-brand { text-decoration: none; }
.info-layout { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }
.info-side { position: sticky; top: calc(env(safe-area-inset-top) + 64px); z-index: 15; margin: 0 calc(-1 * var(--pad));
  background: rgba(246, 243, 236, .95); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line-soft); }
.info-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 10px var(--pad); scrollbar-width: none; scroll-padding: 0 var(--pad); }
.info-tabs::-webkit-scrollbar { display: none; }
.info-tabs-title, .info-contact { display: none; }
.info-tab { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; transition: background .2s, color .2s; }
.info-tab svg { width: 18px; height: 18px; color: var(--green); flex: none; }
.info-tab .long { display: none; }
.info-tab.on { background: var(--green); border-color: var(--green); color: #fff; }
.info-tab.on svg { color: #fff; }
.info-main { padding-top: 18px; min-width: 0; }
.info-contact-title { margin: 0 0 4px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.info-foot { border-top: 1px solid var(--line-soft); padding: 22px 0 calc(env(safe-area-inset-bottom) + 36px); text-align: center; }
.info-foot p { margin: 0 0 6px; }
.info-foot a:not(.social-link) { color: var(--green); font-weight: 600; text-decoration: underline; }
.info-foot .social-links { margin-top: 10px; }
@media (min-width: 768px) {
  .info-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; padding-top: 32px; padding-bottom: 56px; }
  .info-side { top: calc(var(--header-h) + 24px); align-self: start; margin: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0;
    display: flex; flex-direction: column; gap: 14px; }
  .info-tabs { flex-direction: column; overflow: visible; padding: 8px; gap: 2px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 20px; box-shadow: var(--shadow); }
  .info-tabs-title { display: block; margin: 8px 12px 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
  .info-tab { position: relative; border: 0; background: none; border-radius: 12px; min-height: 48px; padding: 0 14px; font-size: 15px; font-weight: 500; }
  .info-tab:hover { background: var(--sand); }
  .info-tab.on { background: var(--green-soft); color: var(--green); font-weight: 600; }
  .info-tab.on svg { color: var(--green); }
  .info-tab.on::before { content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px; border-radius: 3px; background: #EE7411; }
  .info-tab .long { display: inline; }
  .info-tab .short { display: none; }
  .info-contact { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--green-soft); border-radius: 20px; }
  .info-contact p { margin: 0; }
  .info-contact a:not(.btn):not(.social-link) { color: var(--green); font-weight: 600; text-decoration: underline; overflow-wrap: anywhere; font-size: 14px; }
  .info-social { justify-content: flex-start; gap: 6px; }
  .info-social .social-link { width: 40px; height: 40px; }
  .info-contact .btn { width: auto; gap: 8px; margin-top: 4px; }
  .info-main { padding-top: 0; }
  .info-foot { display: none; }
}
@media (min-width: 1024px) { .info-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 56px; } }
@media (prefers-reduced-motion: reduce) { .info-tab { transition: none; } }
/* Phones: the four information tabs as one even row, icon above a short label. */
@media (max-width: 767.98px) {
  .info-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 8px var(--pad); overflow: visible; }
  .info-tab { flex-direction: column; justify-content: center; gap: 3px; min-height: 58px; padding: 6px 4px; border-radius: 16px; font-size: 12.5px; text-align: center; }
  .info-tab svg { width: 20px; height: 20px; }
}
/* Tablets: the About page's three-across cards stack while the tabs take the left column. */
@media (min-width: 768px) and (max-width: 1099.98px) { .info-page .ab-steps, .info-page .ab-grid { grid-template-columns: 1fr; } }
.info-page .doc h1 { line-height: 1.15; }

/* ---------- Staff console ---------- */
.console-head { margin-bottom: 14px; }
.console-head p { margin: 4px 0 0; }
.console-tabs { padding: 0 0 12px; }
.console-main { min-width: 0; }
.console-main > * + * { margin-top: 14px; }
.console-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.console-card h2 { margin: 0; }
.console-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; color: var(--green); }
.console-back svg { width: 18px; height: 18px; }
.console-title h2 { margin: 0; font-size: clamp(22px, 4vw, 28px); }
.console-set { border: 1px solid var(--line-soft); background: var(--card); border-radius: 20px; padding: 16px; margin: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.console-set legend { font-family: var(--display); font-weight: 700; font-size: 17px; padding: 0 6px; }
.console-set > p { margin: 0; }
.console-pair { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-start; padding-top: 12px; border-top: 1px dashed var(--line); }
.console-pair > .field { flex: 1 1 220px; }
.console-pair > .field.console-icon { flex: 0 0 120px; }
.console-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 700; font-size: 14px; flex: none; margin-top: 24px; }
.faq-row { border-top: 0; padding-top: 0; background: var(--ground); border-radius: 14px; padding: 12px; }
.faq-row [data-faq-remove] { align-self: flex-end; width: auto; }
.console-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; line-height: 1.55; min-height: 320px; resize: vertical; }
.console-tools { gap: 6px; flex-wrap: wrap; }
.console-tools .btn { width: auto; min-height: 40px; padding: 0 12px; font-size: 13px; }
.console-help ul { margin: 8px 0 0; padding-left: 20px; line-height: 1.6; }
.console-help summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; font-weight: 600; color: var(--green); }
.console-write { display: grid; gap: 16px; grid-template-columns: 1fr; }
.console-preview { max-width: none; margin: 0; padding: 4px 18px 18px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 16px; max-height: 70vh; overflow: auto; }
.console-preview-wrap .btn { width: auto; }
.console-save { position: sticky; bottom: calc(env(safe-area-inset-bottom) + 76px); z-index: 5; display: flex; justify-content: flex-end; padding: 10px 0; background: linear-gradient(0deg, var(--ground) 70%, rgba(246, 243, 236, 0)); }
.console-save .btn { width: auto; padding: 0 22px; gap: 8px; box-shadow: var(--shadow); }
.check-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; }
.check-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); flex: none; }
.check-row > span { display: flex; flex-direction: column; gap: 2px; }
.history-list { gap: 8px; max-height: 50vh; overflow: auto; }
.staff-row .btn { width: auto; }
.activity-list { gap: 0; padding: 4px 16px; }
.activity-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.activity-row:last-child { border-bottom: 0; }
.activity-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green-soft); color: var(--green); flex: none; }
.activity-ic svg { width: 18px; height: 18px; }
@media (max-width: 767.98px) {
  .console-tabs { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; overflow: visible; padding: 0 0 12px; }
  .console-tabs .info-tab { flex-direction: column; justify-content: center; gap: 3px; min-height: 58px; padding: 6px 4px; border-radius: 16px; font-size: 12.5px; text-align: center; }
  .console-tabs .info-tab .long { display: none; }
  .console-tabs .info-tab .short { display: inline; }
  .console-set { padding: 14px; }
}
@media (min-width: 768px) {
  .console-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; align-items: start; }
  .console-tabs { position: sticky; top: calc(var(--header-h) + 20px); }
  .console-save { bottom: 0; }
}
@media (min-width: 1000px) { .console-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .console-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 40px; } .console-write { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- Green top header (tablets and desktops: .topbar; phones' homepage: .home-head) ----------
   Everything on it is light so it reads on the green. The logo sits on a small white tile. */
.topbar { background: var(--green); border-bottom: 1px solid rgba(0, 0, 0, .12); box-shadow: 0 2px 12px rgba(11, 59, 45, .18); }
.topbar .brand, .topbar .brand-text { color: #fff; }
.topbar .brand-text small, .home-head .brand-text small { color: #CFE3D7; }
.topbar .logo-mark, .home-head .logo-mark { background: #fff; border-radius: 10px; padding: 3px 4px; box-sizing: content-box; height: 30px; border: 2px solid #F08A1C; }
.topnav a { color: rgba(255, 255, 255, .82); }
.topnav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.topnav a.on { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 -3px 0 #F08A1C; }
.topnav a:focus-visible, .topbar-cta .btn:focus-visible, .topbar .brand:focus-visible { outline: 3px solid #F5A04A; outline-offset: 2px; }
.topbar-cta .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .85); color: #fff; }
.topbar-cta .btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.topbar-cta .btn-primary { background: #F08A1C; color: #0B3B2D; border-color: #F08A1C; }
.topbar-cta .btn-primary:hover { background: #F5A04A; }
.home-head { background: var(--green); color: #fff; border-bottom: 1px solid rgba(0, 0, 0, .12); -webkit-backdrop-filter: none; backdrop-filter: none; }
.home-head .brand { color: #fff; }
.home-head .state-pill { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.home-head .state-pill:hover { background: rgba(255, 255, 255, .22); }
.home-head .state-pill svg { color: #fff; }
.console-card .btn, .console-title .btn, [data-staff-add] { width: auto; white-space: nowrap; }
.console-card .row .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .console-card .row .btn { flex: 0 0 auto; } }
@media (max-width: 559.98px) { .faq-row { flex-direction: column; align-items: stretch; } .faq-row [data-faq-remove] { align-self: flex-end; } }
/* Information pages: contact links and the skip link are full-size tap targets. */
.info-contact p > a, .info-foot p > a { display: inline-flex; align-items: center; min-height: 44px; }
.info-contact p, .info-foot p { margin: 0; }
.skip-link { min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- profile ---------- */
div.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; min-width: 0; }
.profile-layout { display: flex; flex-direction: column; gap: 18px; }
.profile-side, .profile-main { gap: 14px; min-width: 0; }
.profile-card { display: flex; align-items: center; gap: 14px; background: var(--green); color: #fff; border-radius: 22px; padding: 18px; }
.profile-card .muted { color: rgba(255, 255, 255, .82); }
.profile-card .chip { background: rgba(255, 255, 255, .16); color: #fff; }
.profile-card .chip.warn { background: #F3E2CF; color: #7A3410; }
.profile-card .chip.off { background: rgba(255, 255, 255, .9); color: var(--green); }
.profile-avatar { width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--green); border: 3px solid var(--accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; flex: none; }
.profile-avatar svg { width: 30px; height: 30px; }
.profile-name { font-size: 22px; color: #fff; overflow-wrap: anywhere; }
.profile-links { gap: 10px; }
button.safety-row { width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.profile-section { gap: 12px; }
.profile-section > .h3 { margin: 0; }
.profile-phone { display: flex; align-items: center; gap: 10px; background: var(--sand); color: var(--ink, inherit); font-weight: 500; cursor: default; }
.profile-phone svg { color: var(--green); flex: none; }
.report-item + .report-item { border-top: 1px solid var(--line-soft); padding-top: 10px; }
.profile-account .btn { width: 100%; }
@media (min-width: 900px) {
  .profile-layout { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); align-items: start; gap: 24px; }
  .profile-side { position: sticky; top: calc(var(--header-h, 64px) + 16px); }
  .profile-account { flex-direction: row; flex-wrap: wrap; }
  .profile-account > .h3 { flex-basis: 100%; }
  .profile-account .btn { width: auto; padding: 0 24px; }
}

/* ---------- password fields and two-step sign-in ---------- */
.pw-wrap { position: relative; display: block; }
.pw-wrap .input { width: 100%; padding-right: 76px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-height: 44px; min-width: 64px; border: 0; background: transparent; color: var(--green); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; border-radius: 10px; }
.pw-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; }
.security-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .security-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.tfa-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.5; }
.tfa-qr { width: min(240px, 100%); margin: 0 auto; background: #fff; border-radius: 14px; padding: 8px; border: 1px solid var(--line-soft); }
.tfa-qr svg { display: block; width: 100%; height: auto; }
.tfa-key { font-size: 15px; letter-spacing: .04em; word-break: break-all; background: var(--sand); padding: 2px 6px; border-radius: 6px; }

/* ---------- full-screen photo and video viewer (viewer.js) ---------- */
html.pv-open, html.pv-open body { overflow: hidden; overscroll-behavior: none; }
.pv { position: fixed; inset: 0; z-index: 1000; overflow: hidden; color: #fff; opacity: 0; transition: opacity .2s; -webkit-user-select: none; user-select: none; }
.pv.on { opacity: 1; }
.pv-bg { position: absolute; inset: 0; background: #050807; transition: opacity .2s; }
.pv-track { position: absolute; inset: 0; display: flex; touch-action: none; will-change: transform; }
.pv-slide { position: relative; flex: none; width: 100%; height: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pv-media { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; transform-origin: 50% 50%; will-change: transform; }
.pv-media img, .pv-media video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; pointer-events: none; -webkit-user-drag: none; }
.pv-media img { opacity: 0; transition: opacity .2s; }
.pv-media img.ready { opacity: 1; }
.pv-media video { width: 100%; height: 100%; background: #000; }
.pv-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: max(10px, env(safe-area-inset-top)) 10px 24px 16px;
  background: linear-gradient(rgba(0,0,0,.55), transparent); transition: opacity .2s; pointer-events: none; }
.pv-top > * { pointer-events: auto; }
.pv-count { font-weight: 700; font-size: 15px; min-width: 48px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.pv-zoomtext { font-size: 13px; font-weight: 700; background: rgba(0,0,0,.5); padding: 4px 10px; border-radius: 999px; opacity: 0; transition: opacity .25s; pointer-events: none; }
.pv-zoomtext.on { opacity: 1; }
.pv-tools { margin-left: auto; display: flex; gap: 6px; }
.pv-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.pv-btn:hover { background: rgba(0,0,0,.65); }
.pv-btn:disabled { opacity: .35; cursor: default; }
.pv-btn:focus-visible, .pv-nav:focus-visible, .pv-seek:focus-visible { outline: 3px solid #F08A1C; outline-offset: 2px; }
.pv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: none; align-items: center; justify-content: center; cursor: pointer; transition: opacity .2s, background .2s; }
.pv-nav:hover { background: rgba(255,255,255,.26); }
.pv-nav:disabled { opacity: 0; pointer-events: none; }
.pv-prev { left: 16px; } .pv-next { right: 16px; }
@media (hover: hover) and (pointer: fine) { .pv-nav { display: inline-flex; } }
.pv.zoomed .pv-nav { opacity: 0; pointer-events: none; }
.pv-vbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 24px 12px max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(0,0,0,.6)); transition: opacity .2s; font-size: 13px; font-variant-numeric: tabular-nums; }
.pv-vbar[hidden] { display: none; }
.pv-seek { flex: 1; min-width: 0; height: 44px; accent-color: #F08A1C; background: transparent; }
.pv.bare .pv-top, .pv.bare .pv-nav, .pv.bare .pv-vbar { opacity: 0; pointer-events: none; }
.pv.bare .pv-top > * { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .pv, .pv-bg, .pv-media img { transition: none; } }

/* Listing gallery: tap a photo to open it full screen */
.gallery img[data-vi] { cursor: zoom-in; }
.gallery-expand { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(14,21,18,.6); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; }
.gallery-expand:hover { background: rgba(14,21,18,.8); }
.gallery-expand:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- "Get the RAGENT App" banner (browser only; hidden inside the installed app) ---------- */
.install-banner { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "art copy" "btn btn"; align-items: center; gap: 12px 14px;
  background: linear-gradient(100deg, #E6F2D3 0%, #EEF6E2 55%, #E4F0D2 100%); border: 1px solid #D5E7BE; border-radius: 22px; padding: 14px 16px 16px; overflow: hidden; margin-top: 8px; }
.install-banner[hidden] { display: none; }
.install-art { grid-area: art; position: relative; height: 96px; }
.install-leaves { position: absolute; left: -16px; bottom: -16px; width: 128px; height: 96px; }
.install-phone { position: absolute; left: 14px; top: 0; width: 64px; height: 100px; border-radius: 14px; background: var(--green); padding: 5px; transform: rotate(-10deg); box-shadow: 0 6px 14px rgba(14,77,58,.28); }
.install-notch { position: absolute; top: 4px; left: 50%; width: 20px; height: 4px; margin-left: -10px; border-radius: 4px; background: rgba(255,255,255,.35); }
.install-screen { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 10px; background: #fff; }
.install-screen img { width: 42px; height: 42px; border-radius: 10px; border: 2px solid var(--accent); padding: 2px; background: #fff; }
.install-copy { grid-area: copy; min-width: 0; }
.install-copy h2 { font-size: 19px; line-height: 1.2; margin: 0 0 4px; color: var(--ink); font-weight: 800; letter-spacing: -.01em; }
.install-copy p { margin: 0; font-size: 14px; color: #3D4A43; line-height: 1.35; }
.install-btn { grid-area: btn; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border: 0; border-radius: 999px;
  background: linear-gradient(180deg, #1C7A3E, #0E5A2C); color: #fff; font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; box-shadow: 0 6px 14px rgba(14,90,44,.28); transition: transform .15s, box-shadow .15s; }
.install-btn svg { width: 22px; height: 22px; }
.install-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(14,90,44,.34); }
.install-btn:active { transform: translateY(0); }
.install-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (min-width: 640px) {
  .install-banner { grid-template-columns: 130px minmax(0, 1fr) auto; grid-template-areas: "art copy btn"; padding: 14px 22px 14px 18px; gap: 18px; }
  .install-art { height: 100px; }
  .install-leaves { width: 150px; height: 110px; left: -18px; bottom: -18px; }
  .install-phone { left: 30px; top: -6px; width: 70px; height: 112px; }
  .install-copy h2 { font-size: 22px; }
  .install-copy p { font-size: 15px; }
  .install-btn { padding: 0 30px; min-height: 54px; font-size: 18px; }
}
.profile-main > .install-banner { margin-top: 0; }

/* ---------- explore: area suggestions under the search box ---------- */
.area-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; margin: 0; padding: 6px; list-style: none; background: var(--card);
  border: 1px solid var(--line-soft); border-radius: 16px; box-shadow: 0 14px 34px rgba(21,33,28,.16); max-height: min(340px, 52vh); overflow-y: auto; overscroll-behavior: contain; }
.area-list[hidden] { display: none; }
.area-head { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px 6px; }
.area-opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: 15px; }
.area-opt > svg { color: var(--green); flex: none; }
.area-opt:hover, .area-opt.on { background: var(--green-soft); }
.area-opt mark { background: transparent; color: var(--green); font-weight: 800; }
.area-state { font-size: 13px; color: var(--muted); flex: none; }
.area-none { padding: 12px 10px; font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ======================================================================
   Admin panel (admin.ragenthomes.com and staff.ragenthomes.com)
   Phones: top bar, four tabs at the bottom, the full menu as a sheet from the left.
   960px+: a fixed dark-green side menu; no tabs.
   ====================================================================== */
.adm { --side-w: 256px; --adm-top: 56px; min-height: 100vh; min-height: 100dvh; background: #F3F1EB; }
.adm-side {
  position: fixed; inset: 0 auto 0 0; z-index: 40; width: min(300px, 86vw);
  display: flex; flex-direction: column; background: #0B3A2C; color: #DCE9E2;
  transform: translateX(-105%); transition: transform .22s ease; overflow-y: auto; overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom); visibility: hidden;
}
.adm.menu-open .adm-side { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .35); visibility: visible; }
.adm-scrim { position: fixed; inset: 0; z-index: 39; background: rgba(10, 20, 16, .45); opacity: 0; pointer-events: none; transition: opacity .2s; }
.adm.menu-open .adm-scrim { opacity: 1; pointer-events: auto; }
.adm-side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(env(safe-area-inset-top) + 14px) 14px 10px 18px; }
.adm-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 19px; color: #fff; min-height: 44px; }
.adm-brand .logo-mark { background: #fff; border-radius: 10px; padding: 3px; width: 38px; height: 36px; }
.adm-brand small { display: block; font-family: var(--body); font-weight: 500; font-size: 12px; color: #A9C7B9; letter-spacing: .02em; }
.adm-iconbtn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: inherit; display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 26px; line-height: 1; }
.adm-side .adm-iconbtn:hover { background: rgba(255, 255, 255, .08); }
.adm-nav { flex: 1; padding: 4px 10px 12px; display: flex; flex-direction: column; gap: 14px; }
.adm-group { display: flex; flex-direction: column; gap: 2px; }
.adm-group-title { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #7FA696; padding: 6px 12px 4px; }
.adm-link {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px;
  border: 0; border-radius: 10px; background: none; color: #DCE9E2; font-size: 15px; font-weight: 500; text-align: left;
}
.adm-link svg { width: 20px; height: 20px; flex: none; opacity: .85; }
.adm-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.adm-link.on { background: rgba(255, 255, 255, .13); color: #fff; font-weight: 600; }
.adm-link.on::before { content: ""; position: absolute; left: -10px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: #EE7411; }
.adm-link .adm-label { flex: 1; min-width: 0; }
.adm-badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #EE7411; color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.adm-badge[hidden] { display: none; }
.adm-me { border-top: 1px solid rgba(255, 255, 255, .1); padding: 10px 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.adm-me-text b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-me-text small { display: block; font-size: 12px; color: #A9C7B9; }
.adm-me .adm-link { min-height: 48px; }
.adm-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.adm-avatar svg { width: 55%; height: 55%; }
.adm-side .adm-avatar { width: 32px; height: 32px; font-size: 12px; background: #F2C48D; color: #3A2410; }
.adm-avatar.sm { width: 34px; height: 34px; font-size: 12px; }
.adm-avatar.lg { width: 64px; height: 64px; font-size: 22px; background: var(--green); color: #fff; }

.adm-body { min-width: 0; }
.adm-top {
  position: sticky; top: 0; z-index: 20; height: calc(var(--adm-top) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 8px 0 12px;
  display: flex; align-items: center; gap: 8px; background: #fff; border-bottom: 1px solid var(--line-soft);
}
.adm-menu-btn { display: none; color: var(--ink); }
.adm-focus .adm-menu-btn { display: inline-flex; }
.adm-top-brand { display: flex; flex: none; }
.adm-top-brand .logo-mark { width: 32px; height: 30px; }
.adm-top-title { flex: 1; min-width: 0; font-family: var(--display); font-weight: 700; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-top-me { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.adm-main { padding: 20px var(--pad) calc(env(safe-area-inset-bottom) + 100px); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.adm-focus .adm-main { padding: 0; gap: 0; }
.adm-tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff; border-top: 1px solid var(--line-soft); padding: 4px 6px calc(env(safe-area-inset-bottom) + 6px);
}
.adm-focus .adm-tabs { display: none; }
.adm-tab {
  position: relative; min-height: 56px; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 12px; font-weight: 500; color: var(--muted); border-radius: 12px; padding: 0 2px; text-align: center;
}
.adm-tab .adm-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.adm-tab.on { color: var(--green); font-weight: 700; }
.adm-tab .adm-badge { position: absolute; top: 2px; left: calc(50% + 6px); height: 18px; min-width: 18px; font-size: 11px; }
@media (min-width: 960px) {
  .adm-side { transform: none; width: var(--side-w); box-shadow: none !important; visibility: visible; }
  .adm-scrim, .adm-tabs, .adm-close, .adm-top-brand, .adm.adm-focus .adm-menu-btn { display: none; }
  .adm-body { margin-left: var(--side-w); }
  .adm-top { padding: 0 20px 0 28px; }
  .adm-main { padding: 28px 36px 56px; max-width: 1340px; }
}
@media (prefers-reduced-motion: reduce) { .adm-side, .adm-scrim { transition: none; } }

/* page parts */
.adm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; }
.adm-h1 { font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.adm-sub { max-width: 72ch; line-height: 1.5; font-size: 14.5px; }
.adm-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-h2 { font-family: var(--display); font-size: 18px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 8px; }
.adm-section > .adm-h2 { margin-bottom: 12px; }
.adm-count { font-family: var(--body); font-size: 12px; font-weight: 700; background: var(--seg); color: var(--muted); border-radius: 999px; padding: 2px 9px; }
.adm-card { background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; padding: 16px; min-width: 0; }
.adm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.adm-empty { display: flex; align-items: center; gap: 12px; padding: 18px; border: 1.5px dashed var(--line); border-radius: 16px; color: var(--muted); }
.adm-empty svg { color: var(--green); flex: none; }
.adm-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; color: var(--green); align-self: flex-start; }
.adm-back svg { width: 18px; height: 18px; }
.adm-actions { gap: 8px; flex-wrap: wrap; }
.adm-actions .btn { width: auto; flex: none; padding: 0 16px; }
.adm-quote { background: var(--sand); border-radius: 12px; padding: 10px 12px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.chip.danger { background: #F6DEDA; color: var(--danger); }
.chip.accent { background: #FCE7D2; color: #7A3410; }
.ok-text { color: var(--green); font-weight: 600; }
.warn-text { color: #8A3B0F; }
.danger-text { color: var(--danger); }
.adm-linkcard { display: flex; align-items: center; gap: 12px; }
.adm-linkcard > svg:first-child { color: var(--green); }
.note-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.note-chip { min-height: 44px; padding: 6px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-size: 13.5px; text-align: left; line-height: 1.3; }
.note-chip:hover { border-color: var(--green); background: var(--green-soft); }
.btn > svg { flex: none; }

/* dashboard */
.adm-todo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.adm-todo-item {
  display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center;
  background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; padding: 14px; min-width: 0;
}
.adm-todo-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; }
.adm-todo-ic svg { width: 18px; height: 18px; }
.adm-todo-num { font-family: var(--display); font-size: 28px; font-weight: 700; line-height: 1; }
.adm-todo-label { grid-column: 1 / -1; font-size: 13.5px; color: var(--muted); margin-top: 8px; line-height: 1.35; }
.adm-todo-item.hot { border-color: #EBC39C; background: #FFF8F0; }
.adm-todo-item.hot .adm-todo-ic { background: #FCE7D2; color: #A04515; }
.adm-todo-item.hot .adm-todo-num { color: #A04515; }
.adm-kpis { display: grid; grid-template-columns: 1fr; gap: 10px; }
.adm-kpi { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; padding: 16px; min-width: 0; }
.adm-kpi-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.adm-kpi-num { font-family: var(--display); font-size: 30px; font-weight: 700; overflow-wrap: anywhere; }
.adm-kpi-sub { font-size: 13px; color: var(--muted); line-height: 1.45; }
@media (hover: hover) and (pointer: fine) {
  .adm-kpi:hover, .adm-todo-item:hover { box-shadow: var(--shadow); }
  .adm-table tr[data-href]:hover td { background: #FAF8F2; }
}
.adm-charts { display: grid; grid-template-columns: 1fr; gap: 12px; }
.adm-split { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; margin-top: 8px; }
.meter-row { padding: 4px 0; border-radius: 8px; }
.meter { display: block; height: 8px; border-radius: 4px; background: var(--green-soft); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: 4px; background: var(--green); }
/* bar chart: one series, one hue, 2px gaps, 4px rounded tops, recessive grid, a tooltip on hover or focus */
.bc { margin: 0; background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; padding: 16px; min-width: 0; }
.bc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.bc-title { font-weight: 700; }
.bc-total { font-family: var(--display); font-weight: 700; font-size: 20px; }
.bc-total small { font-family: var(--body); font-weight: 500; font-size: 12px; color: var(--muted); }
.bc-plot { display: grid; grid-template-columns: 44px minmax(0, 1fr); height: 150px; }
.bc-grid { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--muted); padding-right: 6px; text-align: right; line-height: 1; }
.bc-cols {
  display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid #CFC8B8;
  background: linear-gradient(#EEEAE0, #EEEAE0) 0 0 / 100% 1px no-repeat, linear-gradient(#EEEAE0, #EEEAE0) 0 50% / 100% 1px no-repeat;
}
.bc-col { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 0; outline-offset: 0; }
.bc-bar { display: block; width: 100%; background: var(--green); border-radius: 4px 4px 0 0; }
.bc-col:hover .bc-bar, .bc-col:focus-visible .bc-bar { background: #1C7A5B; }
.bc-tip {
  position: absolute; left: 50%; top: -6px; transform: translate(-50%, -100%); z-index: 3; pointer-events: none;
  background: var(--ink); color: #fff; font-size: 12px; line-height: 1.35; padding: 6px 9px; border-radius: 8px; white-space: nowrap; opacity: 0; transition: opacity .12s;
}
.bc-tip b { display: block; font-size: 13px; }
.bc-col:nth-child(-n+3) .bc-tip { left: 0; transform: translate(0, -100%); }
.bc-col:nth-last-child(-n+3) .bc-tip { left: auto; right: 0; transform: translate(0, -100%); }
.bc-col:hover .bc-tip, .bc-col:focus .bc-tip { opacity: 1; }
.bc-axis { display: flex; justify-content: space-between; padding: 6px 0 0 44px; font-size: 11.5px; color: var(--muted); }
.bc-table { margin-top: 10px; font-size: 13px; }
.bc-table summary { cursor: pointer; color: var(--green); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.bc-table table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.bc-table th, .bc-table td { text-align: left; padding: 5px 4px; border-bottom: 1px solid var(--line-soft); }
@media (min-width: 560px) { .adm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .adm-h1 { font-size: 30px; } }
@media (min-width: 900px) { .adm-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .adm-todo { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .adm-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) { .adm-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* lists: filters and tables (tables become cards on phones) */
.adm-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: end; }
.adm-search { grid-column: 1 / -1; position: relative; display: block; }
.adm-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.adm-search .input { padding-left: 42px; }
.adm-filter { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); min-width: 0; }
.adm-filter .input { min-height: 46px; font-size: 15px; color: var(--ink); padding: 0 10px; }
.adm-results[aria-busy] { opacity: .55; transition: opacity .15s; }
.adm-total, .adm-sum { margin: 0 0 10px; }
.adm-table-wrap { min-width: 0; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.adm-table, .adm-table tbody, .adm-table tr, .adm-table td { display: block; }
.adm-table tr { background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.adm-table tr[data-href] { cursor: pointer; }
.adm-table td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 5px 0; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.adm-table td::before { content: attr(data-label); font-size: 12px; font-weight: 600; color: var(--muted); text-align: left; flex: none; }
.adm-table td:first-child { display: block; text-align: left; padding: 0 0 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line-soft); }
.adm-table td:first-child::before { content: none; }
.cell-main { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; }
.cell-main b { overflow-wrap: anywhere; }
.adm-thumb { width: 56px; height: 42px; border-radius: 8px; background: var(--green-soft); overflow: hidden; flex: none; }
.adm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
code.ref { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; background: var(--sand); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
@media (min-width: 768px) {
  .adm-filters { display: flex; flex-wrap: wrap; }
  .adm-search { flex: 2 1 280px; }
  .adm-filter { flex: 1 1 150px; max-width: 240px; }
  .adm-table-wrap { background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; overflow-x: auto; }
  .adm-table { display: table; }
  .adm-table thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: table-header-group; }
  .adm-table tbody { display: table-row-group; }
  .adm-table tr { display: table-row; background: none; border: 0; border-radius: 0; padding: 0; margin: 0; }
  .adm-table th { text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #FBFAF6; }
  .adm-table td, .adm-table td:first-child { display: table-cell; text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; margin: 0; overflow-wrap: normal; }
  .adm-table tr:last-child td { border-bottom: 0; }
  .adm-table td::before { content: none; }
}

/* detail pages */
.adm-profile { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.adm-profile-actions { gap: 8px; width: 100%; }
.adm-profile-actions .btn { width: 100%; }
.adm-contact .btn { min-height: 44px; font-size: 14px; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.adm-minis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.adm-mini { background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.adm-card .adm-mini { background: #F7F5EF; border: 0; }
.adm-mini span { font-size: 12.5px; color: var(--muted); }
.adm-mini b { font-family: var(--display); font-size: 22px; }
.adm-detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.adm-facts { display: grid; grid-template-columns: 1fr; gap: 10px 16px; }
.adm-fact { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.adm-fact span { font-size: 12px; color: var(--muted); font-weight: 600; }
.adm-fact b { font-weight: 600; overflow-wrap: anywhere; }
.adm-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.adm-gallery img, .adm-gallery video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; background: #0E1512; }
.adm-chipbar { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; padding-bottom: 2px; }
.adm-chipbar::-webkit-scrollbar { display: none; }
.adm-filter-chip { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; }
.adm-filter-chip.on { background: var(--green); border-color: var(--green); color: #fff; }
.adm-card .activity-list { padding: 0 2px; }
.adm-card.activity-list { padding: 4px 16px; }
.activity-text { font-weight: 600; overflow-wrap: anywhere; }
@media (min-width: 560px) { .adm-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) {
  .adm-minis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .adm-minis.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-profile-actions { width: auto; margin-left: auto; }
  .adm-profile-actions .btn { width: auto; padding: 0 16px; }
}
@media (min-width: 1100px) { .adm-detail { grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; } }
.adm .console-save { bottom: calc(env(safe-area-inset-bottom) + 70px); gap: 10px; }
.adm .console-save .btn { flex: none; }
@media (min-width: 960px) { .adm .console-save { bottom: 0; } }

/* ======================================================================
   Page editor: a word processor (title bar, ribbon, navigation pane, the page on a desk, status bar)
   ====================================================================== */
.wd { display: flex; flex-direction: column; height: calc(100vh - var(--adm-top) - env(safe-area-inset-top)); height: calc(100dvh - var(--adm-top) - env(safe-area-inset-top)); background: #E6E3DB; min-width: 0; }
.wd-titlebar { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 4px; background: #fff; border-bottom: 1px solid var(--line-soft); min-width: 0; flex: none; }
.wd-back { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--ink); flex: none; }
.wd-back:hover { background: var(--sand); }
.wd-docic { width: 34px; height: 34px; border-radius: 8px; background: var(--green); color: #fff; display: none; align-items: center; justify-content: center; flex: none; }
.wd-docic svg { width: 19px; height: 19px; }
.wd-name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.wd-name b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-state { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-title-actions { display: flex; gap: 6px; flex: none; }
.wd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; }
.wd-btn span { display: none; }
.wd-btn.primary { background: var(--green); border-color: var(--green); color: #fff; padding: 0 14px; position: relative; }
.wd-btn.primary span { display: inline; }
.wd-btn.primary.pulse::after { content: ""; position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; border-radius: 50%; background: #EE7411; border: 2px solid #fff; }
.wd-btn:hover { border-color: #C9C2B0; }
.wd-btn.primary:hover { background: #0B3F30; }
.wd-ribbon {
  display: flex; align-items: stretch; overflow-x: auto; background: #F8F6F1; border-bottom: 1px solid var(--line-soft);
  padding: 4px; scrollbar-width: thin; flex: none;
}
.wd-group { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 6px; border-right: 1px solid #E2DCCD; flex: none; }
.wd-group:last-of-type { border-right: 0; }
.wd-group-tools { display: flex; align-items: center; gap: 2px; }
.wd-group-label { display: none; font-size: 11px; color: var(--muted); margin-top: 3px; }
.wd-tool {
  width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none;
}
.wd-tool:hover { background: #ECE7DB; }
.wd-tool[aria-pressed="true"] { background: var(--green-soft); color: var(--green); box-shadow: inset 0 0 0 1px #B7D3C5; }
.wd-tool.wide { width: auto; padding: 0 12px; font-size: 14px; font-weight: 600; }
.wd-glyph { font-family: Georgia, 'Times New Roman', serif; font-size: 19px; line-height: 1; }
.wd-style { height: 44px; min-width: 136px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0 8px; font-size: 14px; }
.wd-zoom { display: none; align-items: center; }
.wd-zoom-val { height: 44px; min-width: 52px; border: 0; background: none; font-size: 13px; font-weight: 600; border-radius: 8px; }
.wd-zoom-val:hover { background: #ECE7DB; }
.wd-ribbon-note { display: none; align-self: center; font-size: 12.5px; color: var(--muted); padding: 0 12px; max-width: 440px; line-height: 1.4; }
.wd-menu { position: fixed; z-index: 50; background: #fff; border: 1px solid var(--line-soft); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 230px; display: flex; flex-direction: column; }
.wd-menu[hidden] { display: none; }
.wd-menu button { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border: 0; background: none; border-radius: 8px; text-align: left; font-size: 14px; }
.wd-menu button:hover, .wd-menu button:focus-visible { background: var(--green-soft); }
.wd-menu small { font-family: ui-monospace, Consolas, monospace; color: var(--muted); font-size: 12px; }
.wd-work { flex: 1; min-height: 0; display: flex; position: relative; }
.wd-pane { display: none; position: absolute; inset: 0 auto 0 0; z-index: 15; width: min(300px, 86%); background: #fff; border-right: 1px solid var(--line-soft); box-shadow: 8px 0 30px rgba(0, 0, 0, .12); overflow-y: auto; padding: 10px; }
.wd.pane-open .wd-pane { display: block; }
.wd-pane-head { display: flex; align-items: center; justify-content: space-between; padding: 0 0 6px 8px; }
.wd-nav-item { display: block; width: 100%; text-align: left; min-height: 44px; padding: 8px 10px; border: 0; background: none; border-radius: 8px; font-size: 14px; line-height: 1.35; color: var(--ink); }
.wd-nav-item.sub { padding-left: 24px; font-size: 13px; color: var(--muted); }
.wd-nav-item:hover { background: var(--sand); }
.wd-x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; color: var(--muted); font-size: 24px; line-height: 1; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.wd-x:hover { background: var(--sand); color: var(--danger); }
.wd-desk { flex: 1; min-width: 0; overflow: auto; padding: 8px 8px 40px; overscroll-behavior: contain; }
.wd-desk > .doc-warn { max-width: 816px; margin: 0 auto 10px; }
.wd-draftbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; max-width: 816px; margin: 0 auto 10px; background: #FBF1E6; border: 1px solid #EBC9A6; color: #5E2A0C; border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.wd-draftbar[hidden] { display: none; }
.wd-draftbar > svg { color: var(--accent); flex: none; }
.wd-page, .wd-page.doc {
  display: block; background: #fff; margin: 0 auto; width: 100%; max-width: 816px; min-height: 70vh;
  padding: 24px 18px 48px; border-radius: 3px; box-shadow: 0 1px 3px rgba(30, 25, 10, .14), 0 8px 24px rgba(30, 25, 10, .07);
}
.wd-title { display: block; width: 100%; border: 0; border-bottom: 1px dashed transparent; padding: 2px 0; font-family: var(--display); font-weight: 700; font-size: clamp(26px, 6vw, 34px); line-height: 1.15; background: none; color: var(--ink); }
.wd-title:hover { border-bottom-color: #CFC7B4; }
.wd-title:focus { outline: none; border-bottom-color: var(--green); }
.wd-updated { color: var(--muted); font-size: 14px; margin: 6px 0 16px; }
.wd-body { outline: none; min-height: 320px; caret-color: var(--green); overflow-wrap: anywhere; }
.wd-body:focus-visible { outline: none; }
.wd-body a { color: var(--green); }
.wd-body h2, .wd-body h3 { scroll-margin-top: 16px; }
.wd-field { display: inline-block; background: #EAE3D0; color: #4F4220; border-radius: 4px; padding: 0 5px; font-size: .92em; line-height: 1.5; white-space: nowrap; cursor: default; user-select: all; }
.wd-status { display: flex; align-items: center; gap: 14px; padding: 6px 14px calc(env(safe-area-inset-bottom) + 6px); background: var(--green); color: #DCEBE3; font-size: 12.5px; flex: none; min-width: 0; white-space: nowrap; overflow: hidden; }
.wd-saved { overflow: hidden; text-overflow: ellipsis; color: #fff; }
.wd-status-hint { display: none; opacity: .85; }
/* About page: the words sit on the page; boxes only show when you point at them or type */
.wd-about { font-size: 15px; line-height: 1.6; }
.wd-in {
  display: block; width: calc(100% + 12px); margin: 0 -6px; padding: 4px 6px; border: 0; border-radius: 6px; background: transparent; resize: none; overflow: hidden;
  font: inherit; color: inherit; line-height: inherit; outline: 1px dashed transparent; transition: outline-color .12s, background-color .12s;
}
.wd-in:hover { outline-color: #CFC7B4; }
.wd-in:focus { outline: 2px solid #8DBBA6; background: #F6FAF8; }
.wd-in::placeholder { color: #A39C8B; }
.wd-in-h1 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 5vw, 38px); line-height: 1.15; }
.wd-in-h2 { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.2; }
.wd-in-b { font-weight: 700; font-size: 16px; }
.wd-in-q { font-weight: 600; }
.wd-in-lead { font-size: 17px; color: #33423B; }
.wd-in-inline { display: inline-block; width: auto; flex: 1 1 200px; margin: 0; border-bottom: 1px dashed #CFC7B4; border-radius: 6px 6px 0 0; font-weight: 600; color: var(--accent); }
.wd-in-icon { width: 60px; margin: 0 0 4px -6px; font-size: 26px; text-align: left; }
.wd-tag { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 30px 0 4px; }
.wd-about > .wd-tag:first-child { margin-top: 0; }
.wd-words { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--muted); margin: 6px 0 12px; }
.wd-fixed { font-size: 22px; margin: 32px 0 10px; }
.wd-fixed small { display: block; font-family: var(--body); font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.wd-steps { list-style: none; counter-reset: wd; padding: 0; margin: 0; display: grid; gap: 12px; }
.wd-steps li { counter-increment: wd; position: relative; padding-left: 40px; }
.wd-steps li::before { content: counter(wd); position: absolute; left: 0; top: 4px; width: 28px; height: 28px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.wd-cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
.wd-card { border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 14px; }
.wd-faq { display: flex; gap: 8px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line-soft); }
.wd-faq-n { width: 28px; height: 28px; border-radius: 50%; background: var(--sand); color: var(--muted); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; flex: none; margin-top: 4px; }
.wd-add { margin-top: 12px; min-height: 44px; padding: 0 14px; border: 1.5px dashed var(--line); border-radius: 10px; background: none; color: var(--green); font-weight: 600; }
.wd-add:hover { background: var(--green-soft); border-color: var(--green); }
.wd-auto { font-size: 13px; color: var(--muted); margin-top: 10px; }
/* documents list */
.wd-files { display: grid; grid-template-columns: 1fr; gap: 14px; }
.wd-file { background: #fff; border: 1px solid var(--line-soft); border-radius: 16px; display: flex; flex-direction: column; min-width: 0; }
.wd-file-open { display: flex; gap: 14px; padding: 14px; align-items: flex-start; min-width: 0; }
.wd-thumb { width: 84px; height: 106px; border-radius: 10px; background: #E6E3DB; display: flex; align-items: center; justify-content: center; flex: none; }
.wd-thumb-page { width: 62px; height: 82px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); padding: 9px 7px; display: flex; flex-direction: column; gap: 4px; }
.wd-thumb-page b { height: 6px; width: 70%; background: #2A3B33; border-radius: 2px; margin-bottom: 2px; }
.wd-thumb-page i { height: 3px; background: #D5CFC1; border-radius: 2px; }
.wd-thumb-page i.s { width: 60%; }
.wd-file-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; align-items: flex-start; }
.wd-file-name { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 18px; }
.wd-file-name svg { color: var(--green); flex: none; }
.wd-file-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 14px; margin-top: auto; }
.wd-file-actions .btn { width: auto; flex: 1 1 auto; padding: 0 12px; font-size: 14px; }
@media (hover: hover) and (pointer: fine) { .wd-file:hover { box-shadow: var(--shadow); } }
@media (min-width: 560px) { .wd-btn span { display: inline; } .wd-docic { display: inline-flex; } .wd-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) {
  .wd-files { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wd-desk { padding: 24px 24px 64px; }
  .wd-page, .wd-page.doc { padding: 64px 72px 96px; min-height: 1056px; }
  .wd-zoom { display: inline-flex; }
  .wd-ribbon-note, .wd-status-hint { display: block; }
}
@media (min-width: 960px) {
  .wd-tool, .wd-style, .wd-zoom-val { height: 34px; }
  .wd-tool { width: 34px; }
  .wd-tool.wide { width: auto; }
  .wd-group-label { display: block; }
  .wd-ribbon { padding: 6px 8px 4px; }
  .wd-group { padding: 0 10px; }
  .wd-btn { height: 38px; }
}
@media (min-width: 1200px) {
  .wd-files { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wd-pane { position: static; box-shadow: none; width: 250px; flex: none; }
}

/* ---------- landlord: manage photos ---------- */
.manage-thumbs .thumb { border-color: var(--line-soft); }
.manage-thumbs .thumb .thumb-view { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; background: #E8E4DA; padding: 0; cursor: zoom-in; }
.manage-thumbs .thumb .thumb-view img { width: 100%; height: 100%; object-fit: cover; }
.manage-thumbs .thumb .thumb-del { top: 0; right: 0; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 0 0 0 16px; background: radial-gradient(circle at 60% 40%, rgba(21,33,28,.8) 15px, transparent 16px); }
.manage-thumbs .thumb .thumb-del svg { width: 16px; height: 16px; transform: translate(2px, -2px); }
.manage-thumbs .thumb .thumb-del:hover { background: radial-gradient(circle at 60% 40%, #B3261E 15px, transparent 16px); }
.manage-thumbs .thumb .thumb-del:focus-visible, .manage-thumbs .thumb .thumb-view:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.thumb-cover { position: absolute; left: 6px; bottom: 6px; background: rgba(21,33,28,.78); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; pointer-events: none; }
.manage-thumbs .vt-play, .manage-thumbs .vt-meta { pointer-events: none; }
@media (min-width: 768px) { .manage-thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.install-btn.busy { opacity: .75; cursor: progress; }
.install-btn.busy svg { animation: install-bob .8s ease-in-out infinite; }
@keyframes install-bob { 50% { transform: translateY(3px); } }
.install-banner.pulse { animation: install-pulse 1.2s ease-out 2; }
@keyframes install-pulse { 0% { box-shadow: 0 0 0 0 rgba(28,122,62,.45); } 100% { box-shadow: 0 0 0 16px rgba(28,122,62,0); } }
@media (prefers-reduced-motion: reduce) { .install-btn.busy svg, .install-banner.pulse { animation: none; } }
.ios-share { display: inline-flex; vertical-align: -3px; color: #0A84FF; }
@media (min-width: 960px) and (pointer: fine) {
  .adm-link { min-height: 40px; }
  .adm-nav { gap: 8px; }
  .adm-group-title { padding: 4px 12px 2px; }
}
.adm-table .td-v { min-width: 0; }
.adm-table td:first-child .td-v { display: block; }
/* Short screens (phones held sideways): the editor takes the whole height; its own Back button leads out. */
@media (max-height: 500px) and (max-width: 959.98px) {
  .adm-focus .adm-top { display: none; }
  .wd { height: 100vh; height: 100dvh; }
  .wd-titlebar { padding-top: max(6px, env(safe-area-inset-top)); }
  .wd-status { padding-top: 4px; padding-bottom: calc(env(safe-area-inset-bottom) + 4px); }
}
.adm .activity-row { flex-wrap: wrap; }
.adm .activity-row > .col { flex: 1 1 200px; }
/* Phones and tablets: every admin link and editor box is at least 44px to tap. */
.adm-top-brand { width: 44px; height: 44px; align-items: center; justify-content: center; }
.adm a.text-link { display: inline-flex; align-items: center; min-height: 44px; }
.adm .meter-row { min-height: 44px; justify-content: center; }
.adm-card > .row > a.col, .adm-card > .row > .col > a.text-link { min-height: 44px; justify-content: center; }
.wd-x { min-width: 44px; }
@media (max-width: 959.98px) {
  .wd-title, .wd-in { min-height: 44px; }
  .wd-in-inline { min-height: 44px; }
}
.area-credit { font-size: 11px; color: var(--muted); padding: 8px 10px 4px; border-top: 1px solid var(--line-soft); margin-top: 4px; }
.area-credit a { color: inherit; }
