/* PadLaser brand theme — navy + laser cyan on white, mobile-first. */
:root {
  --navy: #0F2B52;
  --navy-2: #14315C;
  --cyan: #19A7DC;
  --cyan-bright: #29C4F0;
  --ink: #10233D;
  --ink-soft: #4A5A70;
  --ink-faint: #8595A8;
  --bg: #F7FAFC;
  --card: #FFFFFF;
  --line: #E1E8F0;
  --good: #1E8E5A;
  --warn: #C28A17;
  --bad: #C0392B;
  --radius: 14px;
  --nav-h: 62px;
  --top-h: 56px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--ink);
  overscroll-behavior: none;
}
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--cyan); border-color: var(--cyan); }
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin: 12px 0 4px; }
a { color: var(--cyan); }

.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--top-h); z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card); border-bottom: 1px solid var(--line); padding: 0 12px;
}
.topbar-logo { height: 30px; width: auto; cursor: pointer; display: block; }
.iconbtn { position: relative; padding: 8px; color: var(--navy); border-radius: 10px; }
.iconbtn:active { background: var(--bg); }
.badge {
  position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; border-radius: 8px;
  background: var(--bad); color: #fff; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

.screen {
  position: fixed; top: var(--top-h); bottom: var(--nav-h); left: 0; right: 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.screen.noscroll { overflow: hidden; }
.pad { padding: 16px; }

.bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; height: var(--nav-h); z-index: 30;
  display: flex; align-items: stretch; background: var(--card); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.navbtn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 10.5px; font-weight: 600; color: var(--ink-faint);
}
.navbtn.active { color: var(--navy); }
.navbtn.active svg { stroke: var(--cyan); }
.plus-circle {
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--cyan) 120%); color: #fff;
  box-shadow: 0 4px 14px rgba(25, 167, 220, .45); margin-top: -14px;
}

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; margin-bottom: 12px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--navy); color: #fff; font-weight: 700; border-radius: 12px;
  padding: 13px 18px; width: 100%; margin-top: 14px;
}
.btn:active { opacity: .85; }
.btn.cyan { background: var(--cyan); }
.btn.ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn.danger { background: var(--bad); }
.btn.small { width: auto; padding: 8px 14px; font-size: 13.5px; margin-top: 0; }

.chip {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--bg); color: var(--ink-soft); border: 1px solid var(--line);
}
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip.good { background: #E7F5EE; color: var(--good); border-color: #BFE5D2; }
.chip.warn { background: #F9F1DC; color: var(--warn); border-color: #EBD9A8; }
.chip.bad { background: #FBE9E6; color: var(--bad); border-color: #F2C6BE; }
.chiprow { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; scrollbar-width: none; }
.chiprow::-webkit-scrollbar { display: none; }

.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--card); border-radius: 20px 20px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 40px rgba(15, 43, 82, .25); max-height: 80vh; overflow-y: auto;
  animation: sheetup .18s ease-out;
}
@keyframes sheetup { from { transform: translateY(40%); opacity: .4; } to { transform: none; opacity: 1; } }
.sheet h3 { margin: 0 0 6px; }
.sheet-item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 14px 10px; border-radius: 12px; font-weight: 600; font-size: 15px;
}
.sheet-item:active { background: var(--bg); }
.sheet-item .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--cyan); flex: none; }
.sheet-backdrop { position: fixed; inset: 0; background: rgba(15, 43, 82, .4); z-index: 39; }

.toast {
  position: fixed; bottom: calc(var(--nav-h) + 16px); left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 12px; font-size: 14px;
  z-index: 60; max-width: 90vw; text-align: center; box-shadow: 0 6px 24px rgba(15,43,82,.35);
}
.hidden { display: none !important; }

.empty { text-align: center; color: var(--ink-faint); padding: 48px 24px; }
.empty img { height: 56px; opacity: .5; margin-bottom: 10px; }

h1 { font-size: 22px; margin: 0 0 12px; color: var(--navy); }
h2 { font-size: 17px; margin: 0 0 10px; color: var(--navy); }
.muted { color: var(--ink-soft); font-size: 13.5px; }
.price { color: var(--navy); font-weight: 800; font-size: 20px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Mini-map: persistent bottom-right, expandable */
.minimap {
  position: fixed; right: 12px; bottom: calc(var(--nav-h) + 12px); z-index: 25;
  width: 118px; height: 88px; border-radius: 12px; overflow: hidden;
  cursor: pointer; background: #eaf4fa;
  border: 2px solid var(--card); box-shadow: 0 4px 16px rgba(15,43,82,.3);
  transition: width .22s ease, height .22s ease;
}
.minimap.expanded { width: calc(100vw - 24px); height: 55vh; }
.minimap.expanded { cursor: default; }
.minimap #feedMap,
.minimap #feedMap.leaflet-container { width: 100%; height: 100%; min-height: 100%; }
.minimap .leaflet-container { width: 100%; height: 100%; }
.minimap-close { position: absolute; top: 8px; right: 8px; z-index: 1000; background: var(--card); border-radius: 8px; padding: 4px 10px; font-weight: 700; color: var(--navy); box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.minimap:not(.expanded) .minimap-close { display: none; }
.minimap:not(.expanded) .leaflet-control-attribution {
  left: 3px; right: auto; bottom: 2px; max-width: calc(100% - 6px);
  padding: 1px 3px; border-radius: 3px; background: rgba(255,255,255,.72);
  font-size: 8px; line-height: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.minimap.expanded .leaflet-control-attribution { font-size: 11px; }

@media (min-width: 720px) {
  .screen { max-width: 560px; margin: 0 auto; left: 50%; transform: translateX(-50%); }
  .topbar, .bottomnav { max-width: 560px; left: 50%; transform: translateX(-50%); }
}

/* House ads */
.feed-ad { position: relative; border-color: var(--cyan); cursor: pointer; }
.ad-tag {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: var(--navy); color: #fff; font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px;
}
.ad-overlay {
  position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; padding: 24px;
  background: rgba(15, 43, 82, .55); backdrop-filter: blur(3px);
}
.ad-overlay-card { width: 100%; max-width: 420px; margin: 0; }
.ad-overlay .btn { width: auto; background: var(--card); }

/* ------------------------------------------------------------------ splash */
/* Full-screen brand cover shown on real page loads (markup in index.html,
   behaviour in /js/splash.js). Sits above the sheet (40) and toast (60). */
.splash {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(125% 95% at 50% 40%, #FFFFFF 0%, #F5FBFE 45%, #E4F1FA 100%);
  opacity: 1; transition: opacity .38s ease;
  /* Failsafe: if splash.js never runs, the cover still lifts on its own.
     splash.js sets style.animation='none' the moment it boots. */
  animation: splash-failsafe .5s ease 8s forwards;
}
@keyframes splash-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.splash.splash-out { opacity: 0; pointer-events: none; }

.splash-inner {
  display: flex; flex-direction: column; align-items: center;
  width: 100%; max-width: 460px; padding: 0 28px;
}
.splash-logo {
  position: relative; width: 100%; max-width: 320px;
  touch-action: none; -webkit-touch-callout: none;
  user-select: none; -webkit-user-select: none;
}
.splash-logo img {
  display: block; width: 100%; height: auto; pointer-events: none;
  -webkit-user-drag: none;
  animation: splash-in .5s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes splash-in { from { opacity: 0; transform: translateY(6px) scale(.985); } to { opacity: 1; transform: none; } }

/* Thin laser sweep that crosses under the mark exactly once. */
.splash-beam { position: absolute; left: 0; right: 0; bottom: -10px; height: 2px; overflow: hidden; }
.splash-beam i {
  position: absolute; inset: 0; border-radius: 2px;
  background: linear-gradient(90deg, rgba(25,167,220,0) 0%, var(--cyan) 35%, var(--cyan-bright) 50%, var(--cyan) 65%, rgba(25,167,220,0) 100%);
  box-shadow: 0 0 12px rgba(41,196,240,.85);
  animation: splash-beam 1.15s cubic-bezier(.35,0,.2,1) .15s both;
}
@keyframes splash-beam { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* Hold feedback — deliberately invisible until ~1.5s into a hold. */
.splash-hold {
  position: absolute; left: 14%; right: 14%; bottom: -24px; height: 3px;
  border-radius: 3px; background: rgba(15,43,82,.10);
  opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.splash.splash-holding .splash-hold { opacity: 1; }
.splash-hold i {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-bright));
  box-shadow: 0 0 10px rgba(41,196,240,.7);
  transform: scaleX(0); transform-origin: left center;
}

.splash-tag {
  margin-top: 38px; font-size: 10.5px; font-weight: 700; letter-spacing: .24em;
  text-transform: uppercase; color: var(--ink-faint); text-align: center;
  animation: splash-fade .5s ease .35s both;
}
@keyframes splash-fade { from { opacity: 0; } to { opacity: 1; } }

/* Developer-access card (built by splash.js after a 5s hold). */
.splash-unlock {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(15,43,82,.55); backdrop-filter: blur(3px);
  animation: splash-fade .18s ease both;
}
.splash-card {
  width: 100%; max-width: 340px; background: var(--card);
  border: 1px solid var(--line); border-radius: 18px; padding: 20px 18px 18px;
  box-shadow: 0 18px 50px rgba(15,43,82,.35);
}
.splash-card h2 { margin: 0 0 4px; font-size: 18px; color: var(--navy); }
.splash-card p { margin: 0 0 12px; font-size: 13px; color: var(--ink-soft); }
.splash-card input { letter-spacing: .1em; }
.splash-card .btn { margin-top: 10px; }
.splash-err { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--bad); text-align: center; }
.splash-card.shake { animation: splash-shake .42s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes splash-shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); }
  40%, 60% { transform: translateX(7px); }
}

/* Reduced motion: no sweep, no drift — just the mark and a quick fade. */
@media (prefers-reduced-motion: reduce) {
  .splash { transition: opacity .15s ease; }
  .splash-beam { display: none; }
  .splash-logo img, .splash-tag, .splash-unlock { animation: none; opacity: 1; }
  .splash-card.shake { animation: none; }
}
.splash.splash-still .splash-beam { display: none; }

/* -------------------------------------------------------------------------
   Product reset: the public app is a focused marketplace + referral intake.
   These primitives deliberately sit at the end so old rollback styles cannot
   accidentally bring retired maintenance, screening, or subscription copy
   back into the new screens.
   ------------------------------------------------------------------------- */
.welcome { max-width:560px; margin:0 auto; padding:18px 16px 26px; }
.welcome-center {
  min-height:100%; max-width:460px; margin:0 auto; padding:34px 18px 28px;
  display:flex; flex-direction:column; align-items:center; text-align:center;
}
.welcome-mark {
  display:block; width:86px; height:86px; object-fit:contain; flex:none;
  margin:0 auto 18px; border-radius:18px; background:var(--card);
  box-shadow:0 5px 18px rgba(15,43,82,.10);
}
.welcome-center h1 { max-width:420px; margin:0 0 10px; }
.welcome-center .muted { max-width:380px; margin:0; line-height:1.45; }
.welcome-center .btn { max-width:420px; }
.seo-landing-hero { border-radius:20px; padding:20px 18px; color:#fff;
  background:linear-gradient(135deg, var(--navy) 0%, #16518a 66%, var(--cyan) 145%); }
.seo-landing-hero h1 { color:#fff; margin:4px 0 8px; font-size:26px; line-height:1.12; }
.seo-landing-hero p { margin:0; color:rgba(255,255,255,.88); line-height:1.5; font-size:15px; }
.seo-free-row { display:flex; flex-wrap:wrap; gap:7px; margin-top:15px; }
.seo-free-row span { border:1px solid rgba(255,255,255,.28); border-radius:999px; padding:6px 9px; color:#fff; font-size:12px; font-weight:700; }
.seo-landing-actions { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 18px; }
.seo-landing-actions .btn { flex:1 1 190px; margin:0; }
.seo-section { margin-top:18px; }
.seo-section h2 { margin-bottom:9px; }
.seo-steps { list-style:none; padding:0; margin:0; }
.seo-steps li { display:flex; gap:10px; align-items:flex-start; padding:11px 0; border-top:1px solid var(--line); }
.seo-steps li > span { display:flex; align-items:center; justify-content:center; width:25px; height:25px; flex:none;
  border-radius:50%; background:#EAF7FD; color:var(--cyan); font-weight:800; }
.seo-steps b { color:var(--navy); font-size:14px; }
.seo-steps p,.seo-faq p { margin:3px 0 0; color:var(--ink-soft); font-size:13px; line-height:1.45; }
.seo-faq { display:grid; gap:9px; }
.seo-faq > div { padding:11px 12px; border:1px solid var(--line); border-radius:13px; background:var(--card); }
.seo-faq h3 { margin:0; color:var(--navy); font-size:14px; }
.seo-crosslinks { margin-top:16px; gap:10px; flex-wrap:wrap; }
.seo-crosslinks a { font-size:13px; }
.seo-noscript { max-width:680px; margin:24px auto; padding:24px 18px; color:var(--ink); }
.seo-noscript h1 { margin-bottom:10px; }
.seo-noscript p { color:var(--ink-soft); line-height:1.5; }
.seo-noscript nav { display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; }
.seo-noscript nav a { font-weight:700; }
.welcome-hero { border-radius:22px; padding:22px 18px 20px; color:#fff;
  background:linear-gradient(135deg, var(--navy) 0%, #16518a 62%, var(--cyan) 145%);
  box-shadow:0 12px 30px rgba(15,43,82,.16); }
.welcome-hero h1,.welcome-hero h2 { color:#fff; margin:0 0 8px; }
.welcome-hero p { margin:0; color:rgba(255,255,255,.86); font-size:14px; line-height:1.45; }
.eyebrow { color:var(--cyan); font-size:11px; letter-spacing:.12em; font-weight:800; text-transform:uppercase; }
.welcome-hero .eyebrow { color:#9eeaff; }
.journey-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:14px 0; }
.journey-card { min-height:132px; text-align:left; border:1.5px solid var(--line); border-radius:16px;
  background:var(--card); padding:15px; color:var(--ink); box-shadow:0 3px 12px rgba(15,43,82,.05); }
.journey-card:active,.journey-card:focus-visible { border-color:var(--cyan); outline:0; box-shadow:0 0 0 3px rgba(25,167,220,.15); }
.journey-card .j-icon { display:flex; align-items:center; justify-content:center; width:40px; height:40px;
  border-radius:12px; background:#EAF7FD; color:var(--cyan); font-size:21px; margin-bottom:11px; }
.journey-card b { display:block; color:var(--navy); font-size:16px; margin-bottom:4px; }
.journey-card span { display:block; color:var(--ink-soft); font-size:12.5px; line-height:1.35; }
.quiet-link { color:var(--cyan); font-size:13px; font-weight:700; text-decoration:none; }
.journey-note { display:flex; gap:10px; align-items:flex-start; background:#F2FBFF; border:1px solid #c7ebf8;
  border-radius:13px; padding:12px 13px; font-size:13px; color:var(--ink-soft); line-height:1.4; }
.journey-note b { color:var(--navy); }
.surface { max-width:560px; margin:0 auto; padding:15px 16px 28px; }
.surface-head { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:12px; }
.surface-head h1 { margin:0 0 4px; font-size:22px; }
.surface-head p { margin:0; }
.surface-head .back { flex:none; color:var(--cyan); font-size:13px; font-weight:700; padding:4px 0; }
.section-title { color:var(--navy); font-size:15px; margin:18px 0 8px; }
.hint { color:var(--ink-faint); font-size:12px; line-height:1.4; margin-top:7px; }
.form-card { background:var(--card); border:1px solid var(--line); border-radius:16px; padding:14px; margin-bottom:12px; }
.form-card h2 { margin:0 0 5px; font-size:16px; }
.form-card p { margin:0; }
.form-error { color:var(--bad); font-size:13px; font-weight:700; margin-top:10px; }
.form-success { color:var(--good); font-size:13px; font-weight:700; margin-top:10px; }
.choice-row { display:flex; flex-wrap:wrap; gap:8px; margin-top:9px; }
.choice { display:inline-flex; align-items:center; gap:7px; border:1px solid var(--line); border-radius:999px;
  padding:9px 12px; color:var(--ink-soft); background:var(--card); font-size:13px; font-weight:700; }
.choice.on { color:#fff; background:var(--navy); border-color:var(--navy); }
.feed-shell { max-width:560px; margin:0 auto; padding-bottom:28px; }
.feed-icon-btn { width:38px; height:38px; display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--line); border-radius:50%; background:var(--card); color:var(--navy); font-size:24px; line-height:1; box-shadow:0 2px 7px rgba(15,43,82,.08); }
.feed-icon-btn:active { background:#EAF7FD; }
.feed-intro { padding:8px 2px 3px; font-size:14px; }
.feed-intro p { margin:3px 0 0; }
.feed-controls { padding:8px 16px 10px; }
.feed-primary-controls { display:flex; align-items:center; gap:8px; }
.feed-control-actions { display:flex; align-items:center; gap:5px; flex:none; }
.feed-control-actions .feed-icon-btn { width:34px; height:34px; font-size:20px; }
.intentseg,.viewseg { display:flex; gap:4px; padding:4px; border:1px solid var(--line); border-radius:999px; background:var(--card); }
.intentseg button,.viewseg button { flex:1; min-height:34px; border-radius:999px; color:var(--ink-soft); font-size:13px; font-weight:800; }
.intentseg button.on,.viewseg button.on { background:var(--navy); color:#fff; }
.feed-primary-controls .intentseg { flex:1; min-width:0; }
.feed-primary-controls .viewseg { flex:0 0 132px; min-width:0; }
.feed-search-row { display:flex; align-items:center; gap:8px; margin-top:8px; }
.feed-search-row input { flex:1; padding:10px 11px; }
.feed-tools { display:flex; gap:8px; align-items:center; margin-top:9px; }
.feed-tools .search { flex:1; }
.feed-tools input { padding:10px 11px; }
.feed-tools .viewseg { flex:0 0 142px; }
.feed-meta { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:10px; }
.feed-meta .muted { font-size:12px; }
.feed-seo-title { padding:4px 0 0; }
.feed-seo-title h1 { margin:0; color:var(--navy); font-size:17px; line-height:1.2; }
.feed-card { background:var(--card); border:1px solid var(--line); border-radius:17px; overflow:hidden; margin:0 16px 12px;
  box-shadow:0 4px 14px rgba(15,43,82,.06); }
.feed-photo-wrap { position:relative; }
.feed-card .photo { width:100%; aspect-ratio:1.32; object-fit:cover; display:block; background:linear-gradient(135deg,#dcecf5,#f8fbfd); }
.feed-card .photo.empty-photo { display:flex; align-items:center; justify-content:center; color:var(--ink-faint); font-size:13px; }
.feed-card-body { padding:13px 14px 14px; }
.feed-card .title { color:var(--navy); font-size:16px; font-weight:800; margin:0 0 4px; }
.feed-card .title a { color:inherit; text-decoration:none; }
.feed-card .title a:hover { text-decoration:underline; text-decoration-color:var(--cyan); }
.feed-card .sub { color:var(--ink-soft); font-size:13px; margin-bottom:8px; }
.feed-card .facts { color:var(--ink-soft); font-size:13px; margin-bottom:10px; }
.feed-card .card-actions { display:flex; gap:8px; align-items:center; }
.feed-card .card-actions .btn { flex:1; }
.save-btn { width:40px; height:40px; flex:none; border:1px solid var(--line); border-radius:12px; color:var(--ink-faint); font-size:22px; }
.save-btn.on { color:var(--bad); border-color:#f0c7c1; background:#fff8f7; }
.boost-chip { background:#EAF7FD; color:#087da7; border-color:#9cdef2; }
.swipe-stage { position:relative; padding:0 16px 8px; }
.swipe-city-row { display:flex; align-items:baseline; justify-content:space-between; gap:10px; padding:2px 2px 8px; }
.swipe-city-row b { color:var(--navy); font-size:14px; }
.swipe-city-row .muted { font-size:12px; text-align:right; }
.swipe-card { margin:0; touch-action:none; user-select:none; transition:transform .18s ease, opacity .18s ease; }
.swipe-card.dragging { transition:none; }
.swipe-card .photo { aspect-ratio:.88; }
.swipe-inline-actions { position:absolute; left:12px; right:12px; bottom:12px; margin:0; gap:10px; padding:7px; border-radius:999px; background:rgba(255,255,255,.94); box-shadow:0 4px 16px rgba(15,43,82,.2); }
.swipe-inline-actions .btn { flex:1; }
.swipe-mini { width:42px; height:42px; flex:none; border-radius:50%; border:1px solid var(--line); background:var(--card);
  color:var(--navy); font-size:22px; line-height:1; box-shadow:0 4px 12px rgba(15,43,82,.08); }
.swipe-inline-actions .swipe-mini.save-btn { width:42px; height:42px; border-radius:50%; }
.map-status { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; padding:12px; color:var(--navy); background:rgba(247,250,252,.84); font-size:11px; font-weight:700; text-align:center; pointer-events:none; }
.minimap:not(.map-pending) .map-status { display:none; }
.swipe-empty { text-align:center; padding:44px 18px; }
.swipe-empty h2 { margin-bottom:6px; }
.locked-card { background:#F7FCFF; border:1px solid #c7ebf8; border-radius:14px; padding:13px; }
.locked-card .lock { color:var(--cyan); font-size:18px; }
.lead-card { display:block; background:var(--card); border:1px solid var(--line); border-radius:15px; padding:13px; margin:9px 0; text-align:left; }
.lead-card:hover { border-color:var(--cyan); }
.lead-card h3 { color:var(--navy); font-size:15px; margin:0 0 4px; }
.lead-card p { margin:3px 0; }
.lead-card .lead-top { display:flex; align-items:flex-start; gap:8px; justify-content:space-between; }
.lead-card .lead-top .chip { flex:none; }
.status-strip { display:flex; flex-wrap:wrap; gap:7px; margin:10px 0; }
.step-list { margin:12px 0 0; padding:0; list-style:none; }
.step-list li { display:flex; gap:9px; align-items:flex-start; padding:9px 0; border-top:1px solid var(--line); color:var(--ink-soft); font-size:13px; }
.step-list .step-dot { width:22px; height:22px; display:flex; align-items:center; justify-content:center; border-radius:50%; background:#EAF7FD; color:var(--cyan); font-weight:800; flex:none; }
.profile-head { display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.avatar { width:48px; height:48px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--navy); color:#fff; font-size:18px; font-weight:800; }
.profile-head h1 { margin:0 0 3px; font-size:20px; }
.profile-menu { display:flex; flex-direction:column; gap:8px; }
.profile-menu button,.profile-menu a { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; text-align:left; padding:13px 14px; background:var(--card); border:1px solid var(--line); border-radius:13px; text-decoration:none; color:var(--navy); font-weight:700; font-size:14px; }
.profile-menu .desc { display:block; color:var(--ink-soft); font-weight:400; font-size:12px; margin-top:3px; }
.profile-menu .arrow { color:var(--ink-faint); font-size:18px; }
.profile-action-row { display:flex; gap:8px; margin-top:12px; }
.profile-action-row .btn { flex:1; }
.profile-ad-card { margin-top:12px; }
.profile-listings { display:flex; flex-direction:column; gap:8px; margin-top:10px; }
.profile-listing { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px; background:var(--bg); border:1px solid var(--line); border-radius:12px; }
.profile-listing b { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--navy); font-size:13.5px; }
.profile-listing > div:first-child > span { display:block; margin-top:3px; color:var(--ink-soft); font-size:12px; }
.profile-listing-end { display:flex; align-items:center; justify-content:flex-end; gap:6px; flex:none; }
.verify-banner { background:#F2FBFF; border:1px solid #c7ebf8; border-radius:13px; padding:12px 13px; color:var(--ink-soft); font-size:13px; line-height:1.4; }
.verify-banner b { color:var(--navy); }
.legalbar { display:none; position:fixed; left:0; right:0; bottom:var(--nav-h); z-index:20; text-align:center; font-size:11px; padding:5px 10px; color:var(--ink-faint); background:rgba(247,250,252,.96); border-top:1px solid var(--line); }
.legalbar a { color:inherit; font-weight:600; text-decoration:none; margin:0 5px; }
.message-layout { max-width:560px; margin:0 auto; padding:15px 16px 28px; }
.message-list { display:flex; flex-direction:column; gap:8px; }
.thread-row { display:flex; align-items:center; gap:11px; padding:13px; border:1px solid var(--line); border-radius:14px; background:var(--card); text-align:left; width:100%; }
.thread-row .thread-icon { width:38px; height:38px; border-radius:11px; display:flex; align-items:center; justify-content:center; background:#EAF7FD; color:var(--cyan); flex:none; }
.thread-row .thread-copy { flex:1; min-width:0; }
.thread-row b { display:block; color:var(--navy); font-size:14px; }
.thread-row p { margin:3px 0 0; color:var(--ink-soft); font-size:12.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.thread-row .arrow { color:var(--ink-faint); font-size:18px; }
.chat { border:1px solid var(--line); border-radius:15px; overflow:hidden; background:var(--card); }
.chat-head { display:flex; justify-content:space-between; gap:10px; align-items:flex-start; padding:13px; border-bottom:1px solid var(--line); }
.chat-head h2 { margin:0 0 3px; font-size:16px; }
.chat-body { min-height:180px; max-height:48vh; overflow:auto; padding:12px; background:#fbfdff; }
.bubble { max-width:84%; padding:9px 11px; border-radius:13px; margin:7px 0; font-size:13px; line-height:1.4; }
.bubble.mine { margin-left:auto; background:var(--navy); color:#fff; border-bottom-right-radius:4px; }
.bubble.theirs { background:#EAF7FD; color:var(--ink); border-bottom-left-radius:4px; }
.bubble small { display:block; opacity:.65; font-size:10px; margin-top:3px; }
.chat-compose { display:flex; gap:8px; padding:10px; border-top:1px solid var(--line); }
.chat-compose textarea { min-height:43px; resize:none; }
.chat-compose .btn { width:auto; flex:none; margin:0; }
.realtor-pill { display:inline-flex; gap:6px; align-items:center; color:var(--navy); font-size:12px; font-weight:800; }
.realtor-pill i { width:8px; height:8px; border-radius:50%; display:inline-block; background:var(--cyan); }
.file-note { display:flex; align-items:flex-start; gap:9px; color:var(--ink-soft); font-size:12.5px; line-height:1.4; padding:10px 11px; border-radius:11px; background:#F7FAFC; border:1px solid var(--line); margin-top:10px; }
.file-note b { color:var(--navy); }
@media (max-width:460px) {
  .journey-grid { grid-template-columns:1fr; }
  .feed-tools .viewseg { flex-basis:118px; }
  .feed-tools .viewseg button { font-size:11px; }
}


/* Splash film (1080p brand animatic) */
/* The splash film is PORTRAIT 1080x1920 (9:16). On a portrait phone (~9:19.5)
   cover fills the height with only a sliver cropped off each side — that is the
   "fills the screen, never stretched" look. Wide screens letterback on the
   film's own white ground so nothing important is ever cut. object-fit never
   distorts: it crops or letterboxes, it does not stretch. */
.splash-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #FCFCFC; }
.splash { background: #FCFCFC; }
/* PHONES in portrait only: the box (~0.46) is narrower than the film (0.5625),
   so cover fills the full height and trims ~9% off each side — clean, no bars.
   Tablets are WIDER than the film, where cover would eat a third of the height,
   so everything that is not a portrait phone letterboxes instead. */
html.dev-phone.dev-portrait .splash-video,
html.dev-narrow.dev-portrait .splash-video { object-fit: cover; }
.splash .splash-inner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.splash .splash-logo { width: min(70vw, 420px); height: min(46vh, 260px); background: none; box-shadow: none; }
.splash .splash-logo img { display: none; }
.splash-skip {
  position: absolute; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom));
  padding: 7px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
  color: #fff; background: rgba(15,43,82,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .4s ease; z-index: 2;
}
.splash-skip.show { opacity: 1; }


/* Device-aware layout (see /js/device.js). --vh is the REAL viewport unit;
   mobile browsers lie about 100vh while the URL bar animates, which is what
   pushes a fixed bottom nav off-screen mid-scroll. */
.dev-phone .screen, .dev-narrow .screen { bottom: var(--nav-h); }
.dev-touch .navbtn { min-height: 44px; }            /* real tap targets */
.dev-touch .chip { padding: 6px 12px; }             /* easier chip taps */
.dev-desktop .screen, .dev-desktop-touch .screen { max-width: 560px; }
.dev-landscape.dev-phone .splash-video { object-fit: contain; }
@supports (height: 100dvh) {
  .splash { height: 100dvh; }                        /* dvh where supported */
}
