:root {
  --bg: #0b1020;
  --card: #141b2d;
  --text: #e8eefc;
  --muted: #9aa8c7;
  --accent: #5b8cff;
  --ok: #3dd68c;
  --border: #243049;
  font-family: "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 10% -10%, #1a2744, var(--bg));
  color: var(--text);
  min-height: 100vh;
}
.wrap { max-width: 800px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
header h1 { margin: 0 0 0.25rem; font-size: 1.75rem; letter-spacing: -0.02em; }
.muted { color: var(--muted); margin: 0 0 1rem; }
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.steps li {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
}
.steps li.active { border-color: var(--accent); color: var(--text); background: #1a2744; }
.steps li.done { border-color: var(--ok); color: var(--ok); }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.card h2 { margin: 0 0 1rem; font-size: 1.1rem; }
.card h3 { margin: 1.25rem 0 0.5rem; font-size: 0.95rem; color: var(--muted); }
label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.75rem; }
input, select {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0d1424;
  color: var(--text);
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
button {
  border: 0;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
button.secondary { background: #2a3650; }
button.ghost { background: transparent; border: 1px solid var(--border); color: var(--muted); }
button.small { padding: 0.35rem 0.65rem; font-size: 0.8rem; }
.invoices { display: flex; flex-direction: column; gap: 0.4rem; margin: 0.5rem 0; }
.invoice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.85rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0d1424;
}
.invoice-row a { color: var(--accent); }
.seq { margin: 0.75rem 0; font-size: 0.85rem; color: var(--muted); }
.seq summary { cursor: pointer; color: var(--accent); margin-bottom: 0.5rem; }
.seq-touch { margin: 0.5rem 0 0.75rem; }
.seq-body {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--text);
  margin: 0.35rem 0;
  background: #0a0f1a;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem;
}
.lead-promise {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0 0 1rem;
}
.ob-progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.ob-bar {
  flex: 1;
  height: 8px;
  background: #0d1424;
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.ob-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--ok);
  transition: width 0.2s ease;
}
.ob-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.ob-steps li {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}
.ob-steps li.active { border-color: var(--accent); color: var(--text); }
.ob-steps li.done { border-color: var(--ok); color: var(--ok); }
.vert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
@media (max-width: 560px) { .vert-grid { grid-template-columns: 1fr; } }
.vert-card {
  text-align: left;
  background: #0d1424;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-weight: 400;
}
.vert-card strong { font-size: 0.9rem; }
.vert-card span { font-size: 0.75rem; color: var(--muted); }
.vert-card.selected { border-color: var(--accent); background: #1a2744; }
.service-list {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
.service-list strong { color: var(--text); }
.checklist {
  display: grid;
  gap: 0.35rem;
  margin: 0.75rem 0 1rem;
}
.deliv-item { margin-bottom: 0.25rem; }
label.check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.4;
}
label.check input { width: auto; margin-top: 0.25rem; }
.banner {
  background: #1a2744;
  border: 1px solid var(--accent);
  color: var(--text);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
}
.banner.warn {
  border-color: #e8a838;
  background: #2a2210;
}
.dialog {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  padding: 1.25rem;
  max-width: 420px;
}
.dialog::backdrop { background: rgba(0,0,0,0.55); }
.dialog h3 { margin: 0 0 0.5rem; }
.out {
  background: #0a0f1a;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  overflow: auto;
  font-size: 0.78rem;
  min-height: 2.5rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.hint { font-size: 0.8rem; color: var(--muted); margin: 0.25rem 0 0.75rem; }
.hint code { color: #c5d4ff; }
.hidden { display: none !important; }
.summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.summary .tile {
  background: #0d1424;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
}
.summary .k { font-size: 0.7rem; color: var(--muted); }
.summary .v { font-size: 1.1rem; font-weight: 700; }
.quality-strip .tile.warn .v { color: #f0b429; }
.quality-strip .tile.bad .v { color: #f07178; }
.quality-strip .tile.ok .v { color: var(--ok); }
.quality-strip .tile .v.small {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  word-break: break-word;
}
.kill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
}
.kill-chip {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: #0d1424;
}
.kill-chip.off {
  border-color: #f07178;
  color: #f07178;
  background: #2a1518;
}
.kill-chip.on {
  border-color: #2d6a4f;
  color: var(--ok);
}
.leads { display: flex; flex-direction: column; gap: 0.75rem; }
.lead {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem;
  background: #0d1424;
}
.lead h4 { margin: 0 0 0.35rem; font-size: 1rem; }
.lead .meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.5rem; }
.lead .draft {
  font-size: 0.82rem;
  white-space: pre-wrap;
  background: #0a0f1a;
  border-radius: 6px;
  padding: 0.6rem;
  margin: 0.5rem 0;
  max-height: 160px;
  overflow: auto;
}
.badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  margin-right: 0.35rem;
}
.badge.billed { border-color: var(--ok); color: var(--ok); }
.badge.accepted { border-color: var(--accent); color: var(--accent); }
.badge.rejected { border-color: #ff6b7a; color: #ff6b7a; }

/* Sprint 1 — opportunity judgment */
.judgment {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  margin: 0.5rem 0 0.65rem;
  background: #0a1020;
}
.judgment-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  margin-bottom: 0.45rem;
}
.badge.disposition {
  text-transform: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.badge.disp-go { border-color: var(--ok); color: var(--ok); background: #0f2418; }
.badge.disp-mid { border-color: var(--accent); color: #9ec0ff; background: #121a2e; }
.badge.disp-stop { border-color: #ff6b7a; color: #ff6b7a; background: #2a1216; }
.badge.disp-park { border-color: #8a93a8; color: #b8c0d4; }
.next-step { font-size: 0.82rem; color: var(--text); }
.next-step strong { color: var(--muted); font-weight: 600; }
.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}
.check-pill {
  font-size: 0.68rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.check-pill.on { border-color: var(--ok); color: var(--ok); }
.check-pill.off { opacity: 0.65; }
.judgment-lenses, .judgment-edit, .seq {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.judgment-lenses summary, .judgment-edit summary, .seq summary {
  cursor: pointer;
  color: var(--text);
  font-size: 0.8rem;
}
.lens-list { margin-top: 0.45rem; display: grid; gap: 0.25rem; }
.lens-row {
  display: grid;
  grid-template-columns: 5.5rem 4.5rem 1fr;
  gap: 0.35rem;
  font-size: 0.75rem;
  padding: 0.2rem 0.3rem;
  border-radius: 4px;
  background: #0d1424;
}
.lens-name { font-weight: 600; color: var(--text); text-transform: capitalize; }
.lens-status { color: var(--muted); }
.lens-row.status-strong .lens-status { color: var(--ok); }
.lens-row.status-ok .lens-status { color: #9ec0ff; }
.lens-row.status-weak .lens-status { color: #e8a838; }
.lens-row.status-fail .lens-status,
.lens-row.status-stop .lens-status { color: #ff6b7a; }
.lens-reason { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.judgment-form { margin-top: 0.5rem; }
.judgment-form label { margin-bottom: 0.5rem; }
.judgment-form input { margin-top: 0.25rem; }

/* Sprint 2 — reply ops + filters */
.lead-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
}
.filter-chip, .reply-chip {
  font-size: 0.75rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #0d1424;
  color: var(--muted);
  cursor: pointer;
  font-weight: 500;
}
.filter-chip.on, .reply-chip.on {
  border-color: var(--accent);
  color: var(--text);
  background: #1a2744;
}
.reply-ops {
  margin: 0.4rem 0 0.35rem;
  font-size: 0.82rem;
}
.reply-ops summary {
  cursor: pointer;
  color: var(--text);
  font-size: 0.8rem;
}
.reply-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.45rem 0;
}
.reply-chip:hover { border-color: var(--accent); color: var(--text); }
.reply-notes { margin-top: 0.35rem; }
.reply-notes input { margin-top: 0.25rem; }
.reply-banner {
  font-size: 0.78rem;
  border-radius: 6px;
  padding: 0.4rem 0.55rem;
  margin: 0.4rem 0 0.25rem;
  border: 1px solid var(--border);
}
.reply-banner.go {
  border-color: var(--ok);
  color: var(--ok);
  background: #0f2418;
}
.reply-banner.stop {
  border-color: #ff6b7a;
  color: #ffb3bb;
  background: #2a1216;
}
.reply-banner.mid {
  border-color: var(--accent);
  color: #9ec0ff;
  background: #121a2e;
}
.badge.reply-badge {
  border-color: #8a93a8;
  color: #c5d0e8;
  text-transform: none;
}

/* Sprint 3 — meeting path */
.meeting-ops {
  margin: 0.4rem 0 0.35rem;
  font-size: 0.82rem;
}
.meeting-ops summary {
  cursor: pointer;
  color: var(--text);
  font-size: 0.8rem;
}
.meeting-form { margin-top: 0.45rem; }
.meeting-h {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.meeting-form label { margin-bottom: 0.5rem; }
.meeting-form input, .meeting-form select {
  margin-top: 0.25rem;
  display: block;
  width: 100%;
  background: #0a0f1a;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 0.4rem 0.5rem;
  font: inherit;
}
.meeting-form .check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.meeting-form .check input { width: auto; margin: 0; }

/* Sprint 4 — weekly ops */
.weekly-ops {
  margin: 1.25rem 0 1.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.weekly-controls {
  align-items: flex-end;
  margin-bottom: 0.75rem;
}
.weekly-controls label { flex: 0 0 140px; margin-bottom: 0; }
.weekly-actions { margin-bottom: 0.75rem; }
.friday-card, .prioritize-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0d1424;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
}
.friday-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem;
  align-items: baseline;
  margin-bottom: 0.65rem;
}
.friday-head h4 { margin: 0; font-size: 0.95rem; }
.friday-summary .tile.highlight {
  border-color: var(--accent);
  background: #1a2744;
}
.friday-summary .delta {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 0.25rem;
}
.friday-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
}
.friday-grid h5 {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.friday-grid .bn, .friday-grid .one-change {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  line-height: 1.4;
}
.one-change {
  border-left: 3px solid var(--accent);
  padding-left: 0.55rem;
}
.conv-list { display: grid; gap: 0.2rem; }
.conv-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  gap: 0.5rem;
}
.mini-list {
  margin: 0 0 0.75rem;
  padding-left: 1rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.mini-list .muted { list-style: none; margin-left: -1rem; }
.linkish {
  background: none;
  border: none;
  color: var(--accent);
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}
.prio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.65rem;
}
.prio-bucket h5 {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.prio-bucket .count {
  color: var(--text);
  font-weight: 700;
}
.prio-bucket.today { border-left: 3px solid var(--ok); padding-left: 0.5rem; }
.prio-bucket.month { border-left: 3px solid var(--accent); padding-left: 0.5rem; }
.prio-bucket.leave { border-left: 3px solid #8a93a8; padding-left: 0.5rem; }
.prio-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.45rem;
  width: 100%;
  text-align: left;
  background: #0a0f1a;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem 0.5rem;
  margin-bottom: 0.3rem;
  color: var(--text);
  cursor: pointer;
  font: inherit;
}
.prio-row:hover { border-color: var(--accent); }
.prio-co { font-size: 0.82rem; font-weight: 600; grid-column: 2; }
.prio-next {
  grid-column: 1 / -1;
  font-size: 0.72rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lead.flash {
  outline: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(91, 140, 255, 0.25);
  transition: outline 0.2s, box-shadow 0.2s;
}

/* HubSpot Path A / B */
.hs-path-b {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #121a2e;
  padding: 0.85rem 1rem;
  margin: 0.75rem 0;
}
.hs-path-b-inner strong { display: block; margin-bottom: 0.35rem; }
.hs-path-b-inner p { margin: 0 0 0.65rem; font-size: 0.85rem; color: var(--muted); line-height: 1.4; }
.btn-link {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.btn-link.small { padding: 0.25rem 0.55rem; font-size: 0.75rem; margin-left: 0.35rem; }
#hsCtaBanner .small { margin-left: 0.35rem; }

/* ═══ Map-first shell (UI-1…UI-3) ═══ */
html, body { height: 100%; }
body {
  overflow: hidden;
  /* Light base so map tiles never flash black void (Nearside) */
  background: #e8ebe6;
}
body.mode-landing { overflow: hidden; }

/* ── Full-bleed world map ── */
.map-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #e8ebe6;
}
.map-canvas-world {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}
.map-stage .leaflet-control-attribution {
  background: rgba(10, 14, 24, 0.65) !important;
  color: #8a9bb8 !important;
  font-size: 0.65rem !important;
}
.map-stage .leaflet-control-zoom a {
  background: rgba(20, 27, 45, 0.9) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}

/* ═══════════════════════════════════════════════════════════
   MARKET SCAN — cool blue scan (never full-screen red)
   Prompt docks bottom; HUD left; welcome hidden while hunting
   ═══════════════════════════════════════════════════════════ */
:root {
  --scan: #5b8cff;
  --scan-dim: rgba(91, 140, 255, 0.45);
  --scan-glow: rgba(91, 140, 255, 0.35);
  --scan-ok: #3dd68c;
  --scan-bg: rgba(10, 16, 28, 0.92);
}

.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;
}

.t-vision {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 6;
  overflow: hidden;
}
.t-vision.hidden { display: none !important; }

/* Soft sweep only — no red wash */
.t-scan-bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  top: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(91, 140, 255, 0.15) 20%,
    var(--scan) 50%,
    rgba(91, 140, 255, 0.15) 80%,
    transparent 100%
  );
  box-shadow: 0 0 12px 2px var(--scan-glow);
  animation: t-scan-sweep 3.2s linear infinite;
  z-index: 2;
  opacity: 0.85;
}
@keyframes t-scan-sweep {
  0% { top: 0%; opacity: 0; }
  8% { opacity: 0.9; }
  92% { opacity: 0.9; }
  100% { top: 100%; opacity: 0; }
}

.t-radar {
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(42vmin, 320px);
  height: min(42vmin, 320px);
  margin: calc(min(42vmin, 320px) / -2) 0 0 calc(min(42vmin, 320px) / -2);
  border-radius: 50%;
  border: 1px solid rgba(91, 140, 255, 0.35);
  box-shadow: inset 0 0 30px rgba(91, 140, 255, 0.06);
  animation: t-radar-expand 2.8s ease-out infinite;
  z-index: 1;
}
@keyframes t-radar-expand {
  0% { transform: scale(0.35); opacity: 0.55; }
  100% { transform: scale(1.15); opacity: 0; }
}

.t-reticle {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  z-index: 3;
  opacity: 0.75;
  transition: transform 0.3s ease-out, opacity 0.25s;
}
.t-reticle.is-lock { animation: t-reticle-lock 0.4s ease-out; }
@keyframes t-reticle-lock {
  0% { transform: scale(1.25); opacity: 0.35; }
  100% { transform: scale(1); opacity: 0.9; }
}
.t-reticle-h, .t-reticle-v {
  position: absolute;
  background: var(--scan);
  opacity: 0.7;
}
.t-reticle-h {
  left: 12%; right: 12%; top: 50%; height: 1px; margin-top: -0.5px;
}
.t-reticle-v {
  top: 12%; bottom: 12%; left: 50%; width: 1px; margin-left: -0.5px;
}
.t-reticle-ring {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(91, 140, 255, 0.45);
  border-radius: 50%;
}
.t-reticle-br {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--scan);
  border-style: solid;
  border-width: 0;
}
.t-reticle-br.tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.t-reticle-br.tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.t-reticle-br.bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.t-reticle-br.br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

/* Map stays readable — mild cool tint only, never blood-red */
body.is-t-vision .map-canvas-world {
  filter: saturate(0.92) brightness(1.02);
  transition: filter 0.45s ease;
}
body.is-t-vision .landing-ui {
  background: transparent !important;
}

/* ── Left scan HUD — transparent glass, larger, live stream ── */
.hunt-osd.t-osd,
.hunt-osd {
  position: fixed;
  top: 4.5rem;
  left: 0.75rem;
  z-index: 80;
  width: min(26rem, calc(100vw - 1.5rem));
  max-height: min(62vh, 34rem);
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  background: rgba(12, 10, 9, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #f5f5f4;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.78rem;
  line-height: 1.4;
  pointer-events: auto !important;
  overflow: hidden;
  cursor: default;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  transition:
    width 0.35s ease,
    max-height 0.35s ease,
    top 0.35s ease,
    left 0.35s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.hunt-osd .osd-feedback,
.hunt-osd .osd-fb,
.hunt-osd button {
  pointer-events: auto !important;
  cursor: pointer;
}
.hunt-osd .osd-head {
  cursor: pointer;
}
.hunt-osd.hidden { display: none !important; }
.hunt-osd.is-min {
  max-height: none;
  width: auto;
  min-width: 12rem;
  background: rgba(12, 10, 9, 0.55);
}
.hunt-osd.is-min .osd-console,
.hunt-osd.is-min .osd-roster,
.hunt-osd.is-min .osd-subhead,
.hunt-osd.is-min .osd-think { display: none; }
.hunt-osd.is-expanded {
  top: 4.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(40rem, calc(100vw - 1.5rem));
  max-height: min(72vh, 40rem);
  cursor: default;
  z-index: 90;
}
.osd-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}
.osd-brand {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fb923c;
  flex-shrink: 0;
  text-transform: none;
}
.osd-pulse {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #a3e635;
  box-shadow: 0 0 10px rgba(163, 230, 53, 0.65);
  animation: t-pulse 1.2s ease-in-out infinite;
  flex-shrink: 0;
}
.hunt-osd.is-thinking .osd-pulse {
  background: #fb923c;
  box-shadow: 0 0 12px rgba(251, 146, 60, 0.75);
  animation: t-pulse 0.7s ease-in-out infinite;
}

/* Done / idle: quiet chrome — map is the product, not the status bar */
.hunt-osd.is-done {
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28) !important;
  background: rgba(12, 10, 9, 0.32) !important;
}
.hunt-osd.is-done .osd-pulse {
  background: rgba(163, 230, 53, 0.75);
  box-shadow: none;
  animation: none;
  opacity: 0.7;
}
.hunt-osd.is-done .osd-head {
  background: transparent !important;
  border-bottom-color: rgba(255, 255, 255, 0.06);
  padding: 0.45rem 0.65rem;
}
.hunt-osd.is-done .osd-brand {
  color: rgba(251, 146, 60, 0.75);
  font-weight: 700;
}
.hunt-osd.is-done .osd-status {
  color: rgba(250, 250, 249, 0.88);
  font-weight: 550;
  font-size: 0.74rem;
}
.hunt-osd.is-done .osd-metrics {
  opacity: 0.7;
}
.hunt-osd.is-done .osd-subhead {
  color: rgba(245, 245, 244, 0.42);
  font-size: 0.58rem;
  letter-spacing: 0.03em;
  text-transform: none;
  padding: 0.2rem 0.65rem 0.35rem;
  border-bottom-color: transparent;
}
.hunt-osd.is-done .osd-console {
  max-height: 4.5rem;
  opacity: 0.55;
  mask-image: linear-gradient(180deg, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
}
.hunt-osd.is-done .osd-line {
  font-size: 0.68rem;
  color: rgba(245, 245, 244, 0.45);
}
.hunt-osd.is-done .osd-line.ok {
  color: rgba(163, 230, 53, 0.75);
}

/* Settled: compact result chip — no lazy full idle panel */
.hunt-osd.is-settled {
  max-height: none !important;
  width: auto !important;
  min-width: 11.5rem;
  max-width: min(18rem, calc(100vw - 1.25rem));
  border-radius: 999px !important;
  background: rgba(12, 10, 9, 0.48) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28) !important;
}
.hunt-osd.is-settled .osd-console,
.hunt-osd.is-settled .osd-roster,
.hunt-osd.is-settled .osd-subhead,
.hunt-osd.is-settled .osd-think,
.hunt-osd.is-settled .osd-metrics,
.hunt-osd.is-settled #btnOsdExpand {
  display: none !important;
}
.hunt-osd.is-settled .osd-head {
  border: 0 !important;
  padding: 0.4rem 0.55rem 0.4rem 0.7rem !important;
  gap: 0.35rem;
  background: transparent !important;
}
.hunt-osd.is-settled .osd-brand {
  display: none;
}
.hunt-osd.is-settled .osd-status {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(250, 250, 249, 0.9);
  max-width: 12rem;
}
.hunt-osd.is-settled .osd-minimize {
  width: 1.25rem;
  height: 1.25rem;
  border-color: rgba(255, 255, 255, 0.12);
  background: transparent;
  opacity: 0.65;
}
.hunt-osd.is-settled:hover {
  background: rgba(12, 10, 9, 0.62) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}
@keyframes t-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.osd-status {
  flex: 1;
  min-width: 0;
  font-weight: 650;
  color: #fafaf9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.78rem;
  text-transform: none;
  letter-spacing: -0.01em;
}
.osd-metrics {
  display: flex;
  gap: 0.45rem;
  color: rgba(245, 245, 244, 0.55);
  font-size: 0.68rem;
  flex-shrink: 0;
}
.osd-metrics b { color: #a3e635; font-weight: 700; }
.osd-minimize {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(245, 245, 244, 0.85);
  width: 1.4rem;
  height: 1.4rem;
  padding: 0;
  border-radius: 6px;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.osd-minimize:hover { background: rgba(251, 146, 60, 0.18); border-color: rgba(251, 146, 60, 0.45); }
.osd-subhead {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(245, 245, 244, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Live thinking strip — agent-style activity while free look runs */
.osd-think {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(
    90deg,
    rgba(251, 146, 60, 0.1),
    rgba(255, 255, 255, 0.03) 55%,
    rgba(251, 146, 60, 0.06)
  );
  overflow: hidden;
  flex-shrink: 0;
}
.osd-think[hidden] { display: none !important; }
.osd-think-orb {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 2px solid rgba(251, 146, 60, 0.35);
  border-top-color: #fb923c;
  animation: osd-spin 0.75s linear infinite;
  flex-shrink: 0;
}
@keyframes osd-spin {
  to { transform: rotate(360deg); }
}
.osd-think-text {
  flex: 1;
  min-width: 0;
  font-size: 0.76rem;
  font-weight: 600;
  color: #fed7aa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.osd-think-dots {
  display: inline-flex;
  gap: 0.18rem;
  flex-shrink: 0;
}
.osd-think-dots i {
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: #fb923c;
  opacity: 0.35;
  animation: osd-dot 1.1s ease-in-out infinite;
}
.osd-think-dots i:nth-child(2) { animation-delay: 0.18s; }
.osd-think-dots i:nth-child(3) { animation-delay: 0.36s; }
@keyframes osd-dot {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}
.osd-think-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 40%;
  background: linear-gradient(90deg, transparent, #fb923c, transparent);
  animation: osd-bar 1.6s ease-in-out infinite;
}
@keyframes osd-bar {
  0% { left: -40%; }
  100% { left: 100%; }
}

.osd-console {
  flex: 0 1 auto;
  max-height: 11rem;
  min-height: 4.5rem;
  overflow-y: auto;
  padding: 0.45rem 0.65rem 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
  scrollbar-color: rgba(251, 146, 60, 0.4) transparent;
  mask-image: linear-gradient(180deg, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent);
}
.hunt-osd.is-expanded .osd-console { max-height: 16rem; }
.hunt-osd.is-thinking .osd-console { max-height: 13rem; }

.osd-line {
  position: relative;
  color: rgba(245, 245, 244, 0.78);
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.74rem;
  line-height: 1.4;
  padding: 0.18rem 0 0.18rem 0.85rem;
  animation: osd-line-in 0.35s ease-out both;
}
.osd-line::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: rgba(251, 146, 60, 0.45);
}
.osd-line.is-latest {
  color: #fafaf9;
  font-weight: 550;
}
.osd-line.is-latest::before {
  background: #fb923c;
  box-shadow: 0 0 8px rgba(251, 146, 60, 0.7);
  animation: t-pulse 0.9s ease-in-out infinite;
}
.osd-line.is-streaming {
  background: linear-gradient(
    90deg,
    rgba(251, 146, 60, 0.12),
    rgba(255, 255, 255, 0.03) 60%,
    transparent
  );
  border-radius: 0.35rem;
  margin: 0.05rem -0.15rem;
  padding-left: 1rem;
}
.osd-line.ok { color: #a3e635; }
.osd-line.ok::before { background: #a3e635; box-shadow: 0 0 6px rgba(163, 230, 53, 0.5); }
.osd-line.dim { color: rgba(245, 245, 244, 0.42); }
.osd-line.warn { color: #fcd34d; }
.osd-line.warn::before { background: #fcd34d; }
.osd-line.lock {
  color: #fed7aa;
  background: rgba(251, 146, 60, 0.1);
  border-radius: 0.35rem;
  padding: 0.2rem 0.35rem 0.2rem 1rem;
}
.osd-line.is-settled {
  opacity: 0.72;
}
@keyframes osd-line-in {
  from {
    opacity: 0;
    transform: translateY(6px);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: none;
  }
}

.osd-roster {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0.4rem 0.5rem 0.55rem;
  scrollbar-width: thin;
}
.osd-company {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.55rem;
  margin-bottom: 0.35rem;
  padding: 0.4rem 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  animation: osd-row-in 0.35s ease-out both;
}
.osd-company.is-active {
  border-color: rgba(251, 146, 60, 0.45);
  box-shadow: 0 0 16px rgba(251, 146, 60, 0.12);
  background: rgba(251, 146, 60, 0.08);
}
.osd-co-head {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-weight: 700;
  color: #fafaf9;
  font-size: 0.76rem;
  text-transform: none;
  letter-spacing: -0.01em;
}
.osd-co-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.osd-co-tag {
  font-size: 0.58rem;
  font-weight: 700;
  color: #fb923c;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.osd-co-details {
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  color: rgba(245, 245, 244, 0.55);
  font-size: 0.68rem;
}
.osd-co-details li {
  padding: 0.1rem 0 0.1rem 0.65rem;
  position: relative;
  animation: osd-line-in 0.3s ease-out both;
}
.osd-co-details li::before {
  content: "·";
  position: absolute;
  left: 0.1rem;
  color: rgba(251, 146, 60, 0.55);
}
.osd-emp {
  margin-top: 0.25rem;
  padding-top: 0.25rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}
.osd-emp-row {
  display: flex;
  gap: 0.35rem;
  padding: 0.1rem 0;
  font-size: 0.68rem;
  color: rgba(245, 245, 244, 0.8);
}
.osd-emp-name { font-weight: 600; min-width: 4.5rem; }
.osd-emp-title { color: rgba(245, 245, 244, 0.5); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.osd-emp-row.is-researching .osd-emp-title { color: #fcd34d; }
@keyframes osd-row-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .osd-line,
  .osd-company,
  .osd-co-details li,
  .osd-think-orb,
  .osd-think-dots i,
  .osd-think-bar,
  .osd-pulse {
    animation: none !important;
  }
}

/* Full scan page (from HUD expand) — must sit above map HUD (z-80) */
.scan-page {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(8, 12, 22, 0.94);
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem 1.5rem;
  pointer-events: auto !important;
  touch-action: manipulation;
}
.scan-page.hidden { display: none !important; }
/* Results mode: own the viewport — no floating HUD / convert / dock bleed */
body.results-open .hunt-osd,
body.results-open #huntHud,
body.results-open .convert-strip,
body.results-open .pin-fb-sheet {
  display: none !important;
}
body.results-open .landing-ui {
  pointer-events: none !important;
  visibility: hidden !important; /* fully out of the hit-test path */
}
body.results-open .scan-page,
body.results-open .scan-page * {
  pointer-events: auto !important;
}
/* Map must not steal taps under the results workspace */
body.results-open #mapCanvas,
body.results-open .map-stage,
body.results-open .leaflet-container,
body.results-open .leaflet-pane,
body.results-open .leaflet-control-container,
body.results-open .leaflet-overlay-pane,
body.results-open .leaflet-marker-pane,
body.results-open .leaflet-shadow-pane,
body.results-open .leaflet-tooltip-pane,
body.results-open .leaflet-popup-pane {
  pointer-events: none !important;
}
.scan-page-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.scan-page-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 720px) {
  .scan-page-body { grid-template-columns: 1fr; }
}
.scan-page-console, .scan-page-roster {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0e1528;
  padding: 0.75rem;
  overflow: auto;
  font-family: "SF Mono", "Menlo", ui-monospace, monospace;
  font-size: 0.78rem;
  color: #c8d4f0;
}

/* Prompt docks to bottom while hunting; welcome gone */
.prompt-dock {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease, margin 0.45s ease;
}
.landing-ui.is-hunting {
  background: transparent !important;
  justify-content: flex-end;
  pointer-events: none;
}
.landing-ui.is-hunting > * { pointer-events: none; }
.landing-ui.is-hunting .prompt-dock {
  pointer-events: auto;
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 1.5rem));
  margin: 0;
  z-index: 45;
}
/* FREE LOOK DONE strip (docked in landing-bottom) must stay clickable while hunting */
.landing-ui.is-hunting .convert-strip,
.landing-ui.is-hunting .convert-strip *,
.landing-ui.is-hunting .landing-bottom > .convert-strip,
.landing-ui.is-hunting .landing-bottom > .convert-strip * {
  pointer-events: auto !important;
}
.landing-ui.is-hunting .landing-bottom {
  pointer-events: none;
}
.landing-ui.is-hunting .landing-bottom > .prompt-dock,
.landing-ui.is-hunting .landing-bottom > .convert-strip,
.landing-ui.is-hunting .landing-bottom > .landing-foot {
  pointer-events: auto !important;
}
/* Quick Setup / territory sheets: always interactive (map must not block typing/buttons) */
.landing-ui.is-hunting .biz-sheet,
.landing-ui.is-hunting .biz-sheet *,
.landing-ui.is-hunting .territory-sheet,
.landing-ui.is-hunting .territory-sheet *,
.landing-ui .biz-sheet:not(.hidden),
.landing-ui .biz-sheet:not(.hidden) *,
.landing-ui .territory-sheet:not(.hidden),
.landing-ui .territory-sheet:not(.hidden) *,
.landing-ui.ow-ui > .territory-sheet,
.landing-ui.ow-ui > .territory-sheet * {
  pointer-events: auto !important;
}
.landing-ui.is-hunting .landing-foot,
.landing-ui.is-hunting .gtm-strip,
.landing-ui.is-hunting .qualify-panel {
  display: none !important;
}
.landing-ui.is-hunting .landing-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 44;
  pointer-events: auto;
  background: linear-gradient(180deg, rgba(8, 12, 22, 0.75), transparent);
  padding-bottom: 1.5rem;
}
.landing-ui.is-hunting .prompt-bar {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}
.prompt-dock.hunting .prompt-bar {
  box-shadow: 0 0 0 1px rgba(91, 140, 255, 0.4), 0 8px 28px rgba(0, 0, 0, 0.4);
}

@media (max-width: 640px) {
  .hunt-osd {
    top: auto;
    bottom: 5.25rem;
    left: 0.5rem;
    right: auto;
    width: min(16rem, calc(100vw - 1rem));
    max-height: 28vh;
  }
  .hunt-osd.is-expanded {
    left: 0.5rem;
    right: 0.5rem;
    width: auto;
    transform: none;
    bottom: 5.25rem;
    top: auto;
    max-height: 48vh;
  }
  .landing-ui.is-hunting .prompt-dock {
    bottom: 0.65rem;
  }
}

/* Target lock pins — corner brackets (T-style acquisition) */
.pin-target {
  background: transparent !important;
  border: 0 !important;
}
.pin-target .target-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  margin-left: -28px;
  margin-top: -28px;
}
.pin-target .target-bracket {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--scan);
  border-style: solid;
  border-width: 0;
  box-shadow: 0 0 6px var(--scan-glow);
}
.pin-target .target-bracket.tl { top: 4px; left: 4px; border-top-width: 2px; border-left-width: 2px; }
.pin-target .target-bracket.tr { top: 4px; right: 4px; border-top-width: 2px; border-right-width: 2px; }
.pin-target .target-bracket.bl { bottom: 4px; left: 4px; border-bottom-width: 2px; border-left-width: 2px; }
.pin-target .target-bracket.br { bottom: 4px; right: 4px; border-bottom-width: 2px; border-right-width: 2px; }
.pin-target .target-ring {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid rgba(91, 140, 255, 0.65);
  animation: t-target-pulse 1s ease-out infinite;
}
.pin-target .target-ring.delay { animation-delay: 0.3s; opacity: 0.5; inset: 6px; }
.pin-target .target-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--scan-ok);
  box-shadow: 0 0 10px var(--scan-ok);
}
.pin-target .target-label {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  margin-top: 2px;
  white-space: nowrap;
  font-size: 0.62rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0;
  text-transform: none;
  color: #e8eefc;
  background: rgba(10, 16, 28, 0.92);
  border: 1px solid rgba(91, 140, 255, 0.4);
  border-radius: 6px;
  padding: 0.12rem 0.35rem;
  pointer-events: none;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}
@keyframes t-target-pulse {
  0% { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(1.25); opacity: 0; }
}
.pin-target.locked .target-ring { animation: none; opacity: 0.45; transform: scale(1); border-color: #e8c56a; }
.pin-target.locked .target-core { background: #e8c56a; box-shadow: 0 0 12px rgba(255, 176, 32, 0.7); }
.pin-target.locked .target-bracket { border-color: #e8c56a; box-shadow: 0 0 6px rgba(255, 176, 32, 0.5); }
.pin-target.locked .target-label {
  color: #e8c56a;
  border-color: rgba(255, 176, 32, 0.55);
}
.pin-target.is-acquiring .target-wrap {
  animation: t-acquire 0.55s ease-out;
}
@keyframes t-acquire {
  0% { transform: scale(1.6); opacity: 0.3; }
  100% { transform: scale(1); opacity: 1; }
}

/* Legacy class aliases used by setScanAnim */
.scan-sweep { /* moved to .t-scan-bar */ }
.radar-pulse { /* moved to .t-radar */ }

/* ── Landing: minimal — header + prompt + footer (Nearside light) ── */
.landing-ui {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  /* Vignette lives on .map-vignette — keep shell transparent for map wallpaper */
  background: transparent;
}
.landing-ui.landing-minimal {
  /* map-forward; light bars only */
}
.landing-ui.hidden { display: none !important; }
/* Default: children clickable; .ow-ui overrides for true map wallpaper hit-testing */
.landing-ui:not(.ow-ui) > * { pointer-events: auto; }
.landing-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  flex-wrap: wrap;
  background: transparent;
}
.landing-top .brand-mark {
  margin: 0;
  margin-bottom: 0;
  flex: 0 0 auto;
  min-width: 0;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
}
.brand-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(91, 140, 255, 0.35);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  background: rgba(91, 140, 255, 0.1);
}
.landing-loc {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--muted);
  background: rgba(20, 27, 45, 0.8);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  backdrop-filter: blur(8px);
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.loc-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
  flex-shrink: 0;
}
.landing-loc.locating .loc-dot {
  background: var(--accent);
  animation: pulse-pin 1s ease-in-out infinite;
}
.landing-signin { flex-shrink: 0; }

.prompt-dock {
  width: min(26rem, calc(100% - 1.25rem));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: stretch;
  flex: 0 0 auto;
}
.landing-minimal .prompt-dock {
  /* footer stack owns vertical placement */
  margin: 0 auto;
}
.value-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.value-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 3.6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.22;
  color: var(--text);
}
.value-title .grad {
  background: linear-gradient(100deg, #7eb0ff, #5b8cff 45%, #3dd68c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.value-lede {
  margin: 0 auto 1rem;
  max-width: 36rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}
.value-lede em {
  color: var(--text);
  font-style: normal;
  font-weight: 600;
}
.value-pillars {
  list-style: none;
  margin: 0 auto 0.35rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  max-width: 34rem;
  text-align: left;
}
.value-pillars li {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  background: rgba(12, 18, 32, 0.72);
  border: 1px solid rgba(36, 48, 73, 0.9);
  backdrop-filter: blur(10px);
}
.value-pillars .vp-icon {
  color: var(--ok);
  font-size: 0.85rem;
  line-height: 1.3;
  flex-shrink: 0;
}
.value-pillars strong {
  display: block;
  font-size: 0.78rem;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 0.1rem;
}
.value-pillars span:last-child {
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.3;
}
@media (max-width: 560px) {
  .value-pillars { grid-template-columns: 1fr; }
  .value-title { font-size: 1.25rem; }
}

.prompt-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.55rem 0.5rem 0.6rem;
  border-radius: 16px;
  background: rgba(12, 18, 32, 0.94);
  border: 1px solid rgba(91, 140, 255, 0.4);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 24px 60px rgba(0, 0, 0, 0.5),
    0 0 50px rgba(91, 140, 255, 0.14);
  backdrop-filter: blur(18px);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.prompt-bar:focus-within {
  border-color: var(--accent);
  box-shadow:
    0 0 0 3px rgba(91, 140, 255, 0.22),
    0 24px 60px rgba(0, 0, 0, 0.5);
}
.prompt-bar input {
  flex: 1;
  border: 0 !important;
  background: transparent !important;
  color: var(--text);
  font-size: 0.95rem;
  padding: 0.6rem 0.4rem !important;
  margin: 0 !important;
  outline: none;
  box-shadow: none !important;
  min-width: 0;
}
.prompt-bar input::placeholder { color: #6b7a99; font-size: 0.88rem; }
.prompt-mic, .prompt-go {
  height: 2.55rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  border: 0;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}
.prompt-mic {
  width: 2.55rem;
  background: transparent;
  color: var(--muted);
}
.prompt-mic:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.prompt-mic.listening {
  color: #fff;
  background: #e85d6a;
  box-shadow: 0 0 0 4px rgba(232, 93, 106, 0.25);
  animation: pulse-pin 1s ease-in-out infinite;
}
.prompt-go {
  gap: 0.35rem;
  padding: 0 0.9rem;
  background: linear-gradient(135deg, #5b8cff, #4a7af0);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
}
.prompt-go-label { letter-spacing: 0.02em; }
.prompt-go:hover { filter: brightness(1.08); }
.prompt-go:disabled { opacity: 0.5; cursor: wait; }
.prompt-sublabel {
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}
.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}
.chip {
  background: rgba(12, 18, 32, 0.88);
  border: 1px solid rgba(36, 48, 73, 0.95);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.78rem;
  cursor: pointer;
  font-weight: 500;
  backdrop-filter: blur(8px);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.chip:hover {
  border-color: rgba(91, 140, 255, 0.55);
  color: var(--text);
  background: rgba(91, 140, 255, 0.1);
}
.prompt-status {
  text-align: center;
  min-height: 1.2em;
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.prompt-status.error { color: #f0a0a8; }
.prompt-status.ok { color: var(--ok); }
.landing-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem 1rem;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  pointer-events: auto;
  background: linear-gradient(0deg, rgba(8, 12, 22, 0.88) 0%, transparent 100%);
}
.landing-foot .sep { opacity: 0.45; }
.foot-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}
.foot-chips .chip {
  font-size: 0.72rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(14, 20, 36, 0.85);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}
.foot-chips .chip:hover {
  color: var(--text);
  border-color: var(--accent);
}
.foot-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.45rem;
}
.foot-link {
  background: none;
  border: 0;
  color: var(--accent);
  font: inherit;
  font-size: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.foot-link:hover { color: #9ec0ff; }
.landing-minimal .prompt-status {
  min-height: 1.1rem;
  text-align: center;
  font-size: 0.8rem;
  margin: 0;
}

/* Qualify quiz + scope calculator (landing) */
.qualify-panel {
  margin-top: 0.85rem;
  width: min(920px, 100%);
  animation: osd-row-in 0.35s ease-out;
}
.qualify-panel.hidden { display: none !important; }
.qualify-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0.75rem;
  align-items: stretch;
}
@media (max-width: 720px) {
  .qualify-grid { grid-template-columns: 1fr; }
}
.qualify-quiz, .scope-calc {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(12, 16, 28, 0.92);
  padding: 1rem 1.1rem;
  backdrop-filter: blur(12px);
}
.qualify-progress {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.qualify-progress span {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: #243049;
}
.qualify-progress span.on { background: var(--accent); }
.qualify-progress span.done { background: var(--ok); }
.qualify-step-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.qualify-step-hint {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}
.qualify-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.9rem;
}
.quiz-choices {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.quiz-choice {
  text-align: left;
  background: #0d1424;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  font: inherit;
  width: 100%;
}
.quiz-choice:hover, .quiz-choice.selected {
  border-color: var(--accent);
  background: #152038;
}
.quiz-text { width: 100%; margin: 0; }
.scope-calc-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.scope-calc h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: #e8eefc;
}
.scope-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}
.scope-metric {
  background: #0a0f1a;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
}
.scope-metric.highlight {
  border-color: rgba(91, 140, 255, 0.55);
  grid-column: span 2;
}
.scope-metric .sk {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
}
.scope-metric .sv {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  margin-top: 0.15rem;
  letter-spacing: -0.02em;
}
.scope-metric.highlight .sv { color: var(--accent); }
.scope-full {
  margin: 0.65rem 0 0.35rem;
  font-size: 0.78rem;
  color: #e8c56a;
  line-height: 1.35;
}
.scope-warnings {
  margin: 0.35rem 0;
  padding-left: 1.1rem;
  color: #ffb0b0;
  font-size: 0.78rem;
  line-height: 1.4;
}
.scope-warnings:empty { display: none; }
.scope-reco {
  margin: 0.5rem 0 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}
.scope-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.landing-ui.is-quiz .gtm-strip { display: none; }
.landing-ui.is-quiz .value-lede { font-size: 0.85rem; }

/* hunt layout: see MARKET SCAN block */

/* GTM / Outbound OS pricing strip */
.gtm-strip {
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto 0.75rem;
  pointer-events: auto;
}
.gtm-strip-inner {
  padding: 0.85rem 1rem 0.75rem;
  border-radius: 14px;
  background: rgba(10, 16, 30, 0.88);
  border: 1px solid rgba(91, 140, 255, 0.28);
  backdrop-filter: blur(12px);
  text-align: center;
}
.gtm-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.gtm-line {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}
.gtm-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}
@media (max-width: 640px) {
  .gtm-cards { grid-template-columns: 1fr 1fr; }
}
.gtm-card {
  text-align: left;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0d1424;
}
.gtm-card.featured {
  border-color: rgba(91, 140, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(91, 140, 255, 0.15);
}
.gtm-card h3 {
  margin: 0 0 0.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}
.gtm-price {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ok);
  letter-spacing: -0.02em;
}
.gtm-price span {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
}
.gtm-card p {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.3;
}
.gtm-cta {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.gtm-cta.secondary {
  background: #2a3650;
}
.gtm-cta:hover { filter: brightness(1.08); }
.gtm-micro {
  margin: 0;
  font-size: 0.7rem;
  color: var(--muted);
}
.gtm-micro a { color: var(--accent); }
.prompt-dock.hunting .prompt-bar {
  box-shadow: 0 0 0 1px rgba(91, 140, 255, 0.5), 0 0 30px rgba(91, 140, 255, 0.25);
}

/* Free quota chip on landing */
.free-quota-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(20, 27, 45, 0.8);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  cursor: pointer;
}
.free-quota-chip b { color: var(--ok); }
.free-quota-chip.low b { color: #f0b429; }
.free-quota-chip.out b { color: #f07178; }

/* Token purchase modal — high-contrast dark (readable on map) */
.token-modal {
  position: fixed;
  inset: 0;
  /* Above .scan-page (400) so Research / Unlock Research paywall is visible */
  z-index: 500 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: auto !important;
}
.token-modal.hidden { display: none !important; }
.token-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: auto !important;
}
.token-modal-card {
  position: relative;
  width: min(26rem, 100%);
  background: #1c1917;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.15rem;
  padding: 1.35rem 1.2rem 1.15rem;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6);
  animation: fadeUp 0.28s ease;
  pointer-events: auto !important;
  z-index: 1;
  color: #fafaf9;
}
.token-modal .token-pack,
.token-modal button {
  pointer-events: auto !important;
  cursor: pointer;
}
.token-modal-close {
  /* FIX MOBILE-01: sticky so it stays visible when modal content scrolls on mobile */
  position: sticky;
  top: 0;
  float: right;
  margin: -0.35rem -0.35rem 0.35rem 0.35rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  color: #e7e5e4;
  font-size: 1.35rem;
  cursor: pointer;
  line-height: 1;
}
.token-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}
.token-modal-card h2 {
  margin: 0.2rem 0 0.45rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: #fafaf9;
}
.token-quota-pill {
  display: inline-block;
  margin: 0.35rem 0 1rem;
  font-size: 0.8rem;
  font-weight: 650;
  color: #d9f99d;
  background: rgba(163, 230, 53, 0.12);
  border: 1px solid rgba(163, 230, 53, 0.3);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}
.paywall-tabs {
  display: flex;
  gap: 0.35rem;
  margin: 0.5rem 0 0.75rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.paywall-tab {
  flex: 1;
  border: 0;
  background: transparent;
  color: #a8a29e;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
}
.paywall-tab.is-active {
  background: rgba(251, 146, 60, 0.2);
  color: #fafaf9;
  box-shadow: 0 0 0 1px rgba(251, 146, 60, 0.35);
}
.token-pack-grid,
.plan-pack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}
.plan-pack-grid.hidden,
.token-pack-grid.hidden {
  display: none !important;
}
a.token-pack {
  text-decoration: none;
}
.token-pack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.85rem 0.4rem;
  border-radius: 0.85rem;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: #fafaf9;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.token-pack:hover {
  border-color: rgba(251, 146, 60, 0.55);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}
.token-pack.featured {
  border-color: #fb923c;
  background: rgba(251, 146, 60, 0.16);
  box-shadow: 0 0 0 1px rgba(251, 146, 60, 0.2);
}
.token-pack .tp-n {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #a3e635;
}
.token-pack .tp-l { font-size: 0.72rem; color: #a8a29e; }
.token-pack .tp-p { font-size: 1rem; font-weight: 750; margin-top: 0.25rem; color: #fafaf9; }
.token-pack .tp-b { font-size: 0.68rem; color: #fb923c; font-weight: 700; margin-top: 0.15rem; }
@media (max-width: 420px) {
  .token-pack-grid,
  .plan-pack-grid { grid-template-columns: 1fr; }
}

/* Cursory / locked lead UI */
.company-row.cursory { opacity: 0.92; }
.locked-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #f0b429;
  border: 1px solid rgba(240, 180, 41, 0.4);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  margin-left: 0.35rem;
  vertical-align: middle;
}
.locked-field {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
  opacity: 0.65;
}
.unlock-cta {
  margin-top: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px dashed rgba(91, 140, 255, 0.45);
  background: rgba(91, 140, 255, 0.08);
  font-size: 0.85rem;
  color: var(--muted);
}
.unlock-cta button { margin-top: 0.45rem; }

/* Auth glass over map */
.pre-shell {
  position: fixed !important;
  inset: 0;
  z-index: 30;
  background: rgba(8, 12, 22, 0.45) !important;
  backdrop-filter: blur(6px);
  min-height: 100vh;
  min-height: 100dvh;
}
.pre-shell.hidden { display: none !important; }
.auth-glass {
  background: rgba(20, 27, 45, 0.94) !important;
  backdrop-filter: blur(16px);
}

.app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  background: transparent;
  position: relative;
  z-index: 15;
  pointer-events: none;
}
.app-shell > * { pointer-events: auto; }
.app-shell.hidden { display: none !important; }
body.mode-app .map-stage {
  /* leave room conceptually; map full bleed under chrome */
}
body.mode-app .topbar,
body.mode-app .sidebar,
body.mode-app .mobile-tabs,
body.mode-app .map-side {
  background: rgba(14, 21, 40, 0.92);
  backdrop-filter: blur(12px);
}
.map-layout-chrome {
  /* side panel only layout — map is body-level */
  display: flex !important;
  justify-content: flex-end;
  height: 100%;
  background: transparent !important;
  pointer-events: none;
}
.map-chrome-only {
  flex: 1;
  position: relative;
  pointer-events: none;
  background: transparent !important;
  border: 0 !important;
  min-height: 0 !important;
}
.map-chrome-only .map-toolbar {
  pointer-events: auto;
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 16;
}
.map-chrome-only .map-draw-hint {
  pointer-events: none;
  position: absolute;
  left: 0.75rem;
  top: 3.2rem;
  z-index: 16;
}
body.mode-app .map-side {
  pointer-events: auto;
  height: 100%;
  max-height: 100%;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--border);
  background: #0e1528;
  flex-shrink: 0;
  z-index: 20;
}
.topbar-brand { display: flex; align-items: baseline; gap: 0.65rem; }
.topbar-brand strong { font-size: 1rem; letter-spacing: -0.02em; }
.ws-name { color: var(--muted); font-size: 0.85rem; }
.status-strip { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.badge-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 0.3rem 0.65rem;
  background: #141b2d;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  min-width: 4.5rem;
}
.badge-btn .badge-k { font-size: 0.65rem; color: var(--muted); }
.badge-btn .badge-v { font-size: 0.9rem; font-weight: 700; }
.badge-btn.ghost { background: transparent; }

.shell-body {
  display: flex;
  flex: 1;
  min-height: 0;
}
.sidebar {
  width: 148px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: #0e1528;
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-item {
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}
.nav-item:hover { background: #1a2744; color: var(--text); }
.nav-item.active { background: #1a2744; color: var(--text); border: 1px solid var(--accent); }
.nav-item.block { width: 100%; margin-bottom: 0.35rem; }

.mobile-tabs {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: #0e1528;
  border-top: 1px solid var(--border);
  padding: 0.35rem;
  gap: 0.25rem;
  justify-content: space-around;
}
.mobile-tabs .nav-item { flex: 1; text-align: center; font-size: 0.75rem; padding: 0.55rem 0.25rem; }

.shell-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: transparent;
}
.view {
  display: none;
  height: 100%;
  overflow: auto;
}
.view.active { display: flex; flex-direction: column; }
.page-pad { padding: 1.25rem; max-width: 960px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.page-head h2 { margin: 0; }

/* Map layout */
.view-map.active { overflow: hidden; }
.map-layout {
  display: flex;
  flex: 1;
  min-height: 0;
  height: 100%;
}
.map-canvas-wrap {
  flex: 1;
  position: relative;
  min-width: 0;
}
.map-canvas {
  width: 100%;
  height: 100%;
  background: #0a0f1a;
  z-index: 1;
}
.map-toolbar {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: 70%;
}
.map-toolbar .geo-mode.active {
  border: 1px solid var(--accent);
  background: #1a2744;
}
.map-draw-hint {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  background: rgba(14, 21, 40, 0.92);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
  pointer-events: none;
}
.map-draw-hint:empty { display: none; }
.region-queue, .segments-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.4rem 0;
  max-height: 140px;
  overflow: auto;
}
.region-chip, .segment-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  font-size: 0.78rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  background: #0a0f1a;
  border: 1px solid var(--border);
}
.region-chip button, .segment-chip button {
  padding: 0.15rem 0.4rem;
  font-size: 0.7rem;
}
.inline-row {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}
.inline-row input { flex: 1; margin: 0; }
/* legacy .scan-sweep replaced by .t-scan-bar inside .t-vision */

.map-side {
  width: min(400px, 42vw);
  flex-shrink: 0;
  border-left: 1px solid var(--border);
  background: var(--card);
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.side-panel { padding: 1rem; }
.side-panel h2 { margin: 0 0 0.75rem; font-size: 1.05rem; }
.card-inner {
  background: #0d1424;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.75rem;
}
.card-inner .k { font-size: 0.7rem; color: var(--muted); }
.card-inner .v { font-size: 1rem; font-weight: 700; }
.credit-est .bad, #creditEstWarn.bad { color: #f07178; }

.side-panel label { margin-bottom: 0.55rem; }
.side-panel textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0d1424;
  color: var(--text);
  font: inherit;
}

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.results-head h2 { margin: 0; font-size: 1rem; }
.scan-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.scan-counts b { color: var(--text); }
.quality-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.company-list { display: flex; flex-direction: column; gap: 0.35rem; }
.company-row {
  display: flex;
  align-items: stretch;
  gap: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0d1424;
}
.company-row.active { border-color: var(--accent); }
.row-check { margin: 0; padding: 0.5rem 0.25rem 0.5rem 0.5rem; }
.company-main {
  flex: 1;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 0.5rem 0.55rem;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0.1rem 0.4rem;
  font: inherit;
}
.company-main .cname { font-weight: 600; font-size: 0.88rem; }
.company-main .meta {
  grid-column: 2;
  font-size: 0.72rem;
  color: var(--muted);
}
.lead-detail {
  margin-top: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}
.lead-detail h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.draft-pre {
  font-size: 0.75rem;
  white-space: pre-wrap;
  background: #0a0f1a;
  border-radius: 6px;
  padding: 0.55rem;
  max-height: 160px;
  overflow: auto;
  color: var(--muted);
}

/* Pins */
.pin-marker {
  background: transparent !important;
  border: 0 !important;
}
.pin-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.35);
}
.pin-dot.inline {
  display: inline-block;
  width: 10px;
  height: 10px;
  vertical-align: middle;
  grid-row: 1 / span 2;
  align-self: center;
}
.pin-ok .pin-dot, .pin-dot.pin-ok { background: var(--ok); }
.pin-park .pin-dot, .pin-dot.pin-park { background: #6b7a99; }
.pin-run .pin-dot, .pin-dot.pin-run {
  background: var(--accent);
  animation: pulse-pin 1.2s ease-in-out infinite;
}
.pin-bad .pin-dot, .pin-dot.pin-bad { background: #f0b429; }
.pin-fail .pin-dot, .pin-dot.pin-fail {
  background: #f07178;
  border-radius: 2px;
}
@keyframes pulse-pin {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.75; }
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.data-table th, .data-table td {
  border-bottom: 1px solid var(--border);
  padding: 0.45rem 0.4rem;
  text-align: left;
}
.data-table th { color: var(--muted); font-weight: 600; font-size: 0.75rem; }

.int-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #121a2e;
}
.int-card h3 { margin: 0 0 0.35rem; }
.int-card .hidden { display: none !important; }
.hs-advanced {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.hs-advanced summary {
  cursor: pointer;
  color: var(--muted);
  user-select: none;
}
.hs-advanced[open] summary { margin-bottom: 0.35rem; }
.badge-btn.is-connected { border-color: var(--ok); }
.badge-btn.is-connected .badge-v { color: var(--ok); }
.badge-btn.is-demo { border-color: var(--accent); }
.badge-btn.is-demo .badge-v { color: #9ec0ff; }
.badge-btn.is-off .badge-v { color: var(--muted); }
.more-menu { display: flex; flex-direction: column; gap: 0.35rem; }
.usage-table { margin: 0.75rem 0; }

label.check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--muted);
}
label.check input { width: auto; margin: 0; }

/* Mobile: bottom sheet pattern */
@media (max-width: 860px) {
  .sidebar { display: none; }
  .mobile-tabs { display: flex; }
  .shell-main { padding-bottom: 3.5rem; }
  .map-layout { flex-direction: column; }
  .map-canvas-wrap { flex: 1; min-height: 42vh; }
  .map-side {
    width: 100%;
    max-height: 48vh;
    border-left: 0;
    border-top: 1px solid var(--border);
    border-radius: 12px 12px 0 0;
  }
  .side-handle {
    width: 36px;
    height: 4px;
    background: var(--border);
    border-radius: 99px;
    margin: 0.45rem auto 0.25rem;
  }
  .topbar { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .t-scan-bar, .t-radar, .pin-target .target-ring, .pin-run .pin-dot, .osd-pulse { animation: none !important; }
  body.is-t-vision .map-canvas-world { filter: none; }
}

/* ═══ Interest journey: welcome → auth → intent → map ═══ */
.journey {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2rem 1.25rem 3rem;
  background:
    radial-gradient(900px 500px at 15% -10%, #1e3a6e 0%, transparent 55%),
    radial-gradient(700px 400px at 90% 20%, #1a2744 0%, transparent 50%),
    var(--bg);
}
.journey-screen {
  width: min(520px, 100%);
  animation: fadeUp 0.32s ease;
}
.journey-screen.wide,
#screen-intent { width: min(560px, 100%); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* Step rail */
.journey-rail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0.4rem 0.85rem;
  background: rgba(20, 27, 45, 0.72);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--muted);
  backdrop-filter: blur(8px);
}
.journey-rail li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
}
.journey-rail li.active { color: var(--text); }
.journey-rail li.done { color: var(--ok); }
.journey-rail li.muted-rail { opacity: 0.55; }
.rail-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 700;
  background: #0d1424;
  border: 1px solid var(--border);
  color: var(--muted);
}
.journey-rail li.active .rail-n {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.journey-rail li.done .rail-n {
  background: rgba(61, 214, 140, 0.15);
  border-color: var(--ok);
  color: var(--ok);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.brand-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #5b8cff, #3dd68c);
  box-shadow: 0 0 12px rgba(91, 140, 255, 0.55);
}
.journey-hero h1 {
  font-size: clamp(1.7rem, 4.2vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 0.9rem;
  font-weight: 700;
}
.journey-hero .grad {
  background: linear-gradient(100deg, #7eb0ff, #5b8cff 42%, #3dd68c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 0.45rem;
}
.lede {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 1.35rem;
}
.lede em { color: var(--text); font-style: normal; font-weight: 600; }
.value-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.value-list li {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0.65rem 0.85rem 0.65rem 2rem;
  position: relative;
  background: rgba(20, 27, 45, 0.55);
  border: 1px solid var(--border);
  border-radius: 10px;
  line-height: 1.4;
}
.value-list li strong { color: var(--text); font-weight: 600; }
.value-list li::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(61, 214, 140, 0.18);
}
.btn-lg {
  padding: 0.8rem 1.45rem;
  font-size: 1rem;
  border-radius: 10px;
}
.btn-lg.full { width: 100%; }
.journey-cta { margin-top: 0.15rem; }
.journey-cta .btn-lg { min-width: 12rem; }
.micro { font-size: 0.78rem; margin-top: 0.9rem; color: var(--muted); }
.journey-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.6rem 1.45rem 1.4rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.journey-card h2 {
  margin: 0.15rem 0 0.4rem;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.journey-card .muted.tight { margin-bottom: 1.1rem; line-height: 1.45; }
.link-back {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 0;
  font-size: 0.85rem;
  cursor: pointer;
  margin-bottom: 0.85rem;
  display: inline-block;
}
.link-back:hover { color: var(--text); }
.oauth-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.15rem 0 0.35rem;
}
.oauth-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.78rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0d1424;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.oauth-btn:hover { border-color: #4a5f8a; background: #152038; }
.oauth-btn:disabled { opacity: 0.55; cursor: wait; }
.oauth-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0.9rem 0;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.solo { margin-bottom: 1rem; }
.solo input:focus,
.intent-grid input:focus,
.intent-grid select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.2);
}
.solo input.field-error,
.intent-grid input.field-error {
  border-color: #e85d6a;
  box-shadow: 0 0 0 3px rgba(232, 93, 106, 0.15);
}
.hint {
  min-height: 1.2em;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.65rem 0 0;
}
.hint.error { color: #f0a0a8; }
.hint.ok { color: var(--ok); }
.field-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 0.45rem;
  font-weight: 600;
}
.intent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0.85rem 0 1.15rem;
}
.intent-grid label:first-child { grid-column: 1 / -1; }
@media (max-width: 520px) {
  .intent-grid { grid-template-columns: 1fr; }
  .intent-grid label:first-child { grid-column: auto; }
  .journey-rail { font-size: 0.72rem; gap: 0.25rem 0.45rem; padding: 0.35rem 0.65rem; }
}
.intent-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.25rem;
}
.pill {
  background: #0d1424;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  font-size: 0.82rem;
  cursor: pointer;
  font-weight: 500;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.pill:hover { border-color: var(--accent); color: var(--text); }
.pill.active {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(91, 140, 255, 0.14);
}
/**
 * DoorKik home (doorkik.com) — OpenWebUI-style shell.
 * Interactive map is the wallpaper. UI floats sparsely on top.
 * ONE job: kick the door open on who's next.
 */

:root {
  /* Dark defaults — theme-day-night.css may refine / switch to light */
  --ns-ink: #f5f5f4;
  --ns-stone: #a8a29e;
  --ns-line: rgba(245, 245, 244, 0.14);
  --ns-clay: #fb923c;
  --ns-clay-deep: #ea580c;
  --ns-moss: #a3e635;
  --ns-moss-soft: rgba(163, 230, 53, 0.12);
  --ns-card: #292524;
  --ns-map-bg: #1c1917;
  --ns-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.25);
  --ns-glass: rgba(28, 25, 23, 0.78);
  --ns-glass-strong: rgba(28, 25, 23, 0.92);
  --ns-blur: saturate(1.15) blur(14px);
  --ns-safe-b: env(safe-area-inset-bottom, 0px);
  --ns-safe-t: env(safe-area-inset-top, 0px);
  --ns-font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --bg: var(--ns-map-bg);
  --card: var(--ns-card);
  --text: var(--ns-ink);
  --muted: var(--ns-stone);
  --accent: var(--ns-clay);
  --ok: var(--ns-moss);
  --border: var(--ns-line);
  font-family: var(--ns-font);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  height: 100%;
  background: var(--ns-map-bg) !important;
  color: var(--ns-ink);
  font-family: var(--ns-font);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ═══ Map wallpaper (always interactive underneath) ═══ */
.map-stage {
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  background: var(--ns-map-bg) !important;
}
.map-wallpaper .map-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Soft edge only — map stays full-bleed wallpaper, not a “window” */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, transparent 12%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.22) 0%, transparent 18%);
}
.map-canvas,
.map-canvas-world {
  width: 100% !important;
  height: 100% !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  background: var(--ns-map-bg) !important;
}
.leaflet-container {
  background: var(--ns-map-bg) !important;
  font: inherit !important;
}
.leaflet-control-attribution {
  font-size: 10px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: var(--ns-stone) !important;
  margin: 0 0.5rem 0.35rem !important;
}
/* Zoom +/- removed (zoomControl: false) — keep hidden if Leaflet re-adds */
.leaflet-control-zoom {
  display: none !important;
}

/* Quiet scan FX */
.t-vision { opacity: 0.35; }
.t-scan-bar {
  background: linear-gradient(180deg, transparent, rgba(194, 65, 12, 0.12), transparent) !important;
  height: 2px !important;
  box-shadow: none !important;
}
.t-radar, .t-reticle { opacity: 0.15 !important; }

/* ═══ OpenWebUI-style shell: only UI chrome captures clicks ═══ */
.landing-ui {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none; /* map pans underneath */
  background: transparent !important;
  padding:
    max(0.55rem, var(--ns-safe-t))
    max(0.55rem, env(safe-area-inset-right, 0px))
    0
    max(0.55rem, env(safe-area-inset-left, 0px));
  gap: 0.5rem;
  box-sizing: border-box;
}
.landing-ui.landing-simple {
  justify-content: space-between;
}
.landing-ui.landing-simple .prompt-dock {
  margin-top: auto;
}
/* Only interactive chrome receives events — rest of viewport = map.
   Override styles.css `.landing-ui > * { pointer-events: auto }` so map pans. */
.landing-ui.ow-ui > * {
  pointer-events: none !important;
}
.landing-ui.ow-ui > .landing-top,
.landing-ui.ow-ui > .landing-bottom,
.landing-ui.ow-ui > .prompt-dock,
.landing-ui.ow-ui > .landing-foot,
.landing-ui.ow-ui > .gtm-strip,
.landing-ui.ow-ui > .qualify-panel,
/* Sheets must always receive clicks (not only during is-hunting) */
.landing-ui.ow-ui > .territory-sheet,
.landing-ui.ow-ui > .biz-sheet,
.landing-ui.ow-ui > .account-menu {
  pointer-events: auto !important;
}
.landing-ui.ow-ui > .landing-bottom {
  pointer-events: none !important;
}
.landing-ui.ow-ui > .landing-bottom > .prompt-dock,
.landing-ui.ow-ui > .landing-bottom > .landing-foot,
.landing-ui.ow-ui > .landing-bottom > .convert-strip,
.landing-ui.ow-ui > .landing-foot .landing-seo-links {
  pointer-events: auto !important;
}
/* Territory / Quick Setup: every control inside is clickable */
.landing-ui.ow-ui > .territory-sheet:not(.hidden),
.landing-ui.ow-ui > .territory-sheet:not(.hidden) *,
.landing-ui.ow-ui > .biz-sheet:not(.hidden),
.landing-ui.ow-ui > .biz-sheet:not(.hidden) *,
.landing-ui .territory-sheet:not(.hidden),
.landing-ui .territory-sheet:not(.hidden) *,
body.territory-sheet-open .territory-sheet,
body.territory-sheet-open .territory-sheet *,
body.territory-sheet-open .territory-card,
body.territory-sheet-open .territory-card * {
  pointer-events: auto !important;
}
body.territory-sheet-open .territory-sheet {
  z-index: 320 !important;
  isolation: isolate;
}
/* Map must not steal taps while territory dialog is open */
body.territory-sheet-open #mapCanvas,
body.territory-sheet-open .leaflet-container,
body.territory-sheet-open .leaflet-pane,
body.territory-sheet-open .leaflet-control-container {
  pointer-events: none !important;
}

/* ── Sparse top bar (single glass strip) ── */
.landing-top,
.ow-topbar,
.landing-ui.ow-ui .landing-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  flex: 0 0 auto !important;
  flex-wrap: nowrap !important;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto !important;
  padding: 0.4rem 0.45rem 0.4rem 0.85rem !important;
  background: var(--ns-glass) !important;
  border: 1px solid rgba(28, 25, 23, 0.08) !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 24px rgba(28, 25, 23, 0.08) !important;
  backdrop-filter: var(--ns-blur);
  -webkit-backdrop-filter: var(--ns-blur);
}

.ow-top-left {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 0 1 auto;
}
.ow-top-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  flex: 1 1 auto;
  min-width: 0;
}

.landing-top .brand-mark,
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 !important;
  flex: 0 0 auto;
  min-width: 0;
  font-weight: 750;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  text-transform: none !important;
  color: var(--ns-ink) !important;
  text-shadow: none;
}
.brand-word {
  white-space: nowrap;
}

.brand-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #ea580c, var(--ns-clay-deep));
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.15);
  flex-shrink: 0;
}

/* Territory / location — high-contrast pill (readable on map + dark chrome) */
.landing-loc,
.ow-loc-btn,
#landingLoc {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  font: inherit !important;
  font-size: 0.74rem !important;
  font-weight: 650 !important;
  color: #fafaf9 !important;
  background: rgba(28, 25, 23, 0.94) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 999px !important;
  padding: 0.38rem 0.75rem !important;
  max-width: min(16rem, 48vw);
  overflow-x: auto;
  overflow-y: hidden;
  text-overflow: clip;
  white-space: nowrap;
  cursor: pointer !important;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.4) !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(251, 146, 60, 0.45) transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
html[data-theme="light"] .landing-loc,
html[data-theme="light"] .ow-loc-btn,
html.theme-light .landing-loc,
html.theme-light .ow-loc-btn,
html[data-theme="light"] #landingLoc,
html.theme-light #landingLoc {
  color: #1c1917 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(28, 25, 23, 0.14) !important;
  box-shadow: 0 2px 10px rgba(28, 25, 23, 0.12) !important;
}
.landing-loc::-webkit-scrollbar,
.ow-loc-btn::-webkit-scrollbar {
  height: 3px;
}
.landing-loc::-webkit-scrollbar-thumb,
.ow-loc-btn::-webkit-scrollbar-thumb {
  background: rgba(251, 146, 60, 0.45);
  border-radius: 999px;
}
.ow-loc-btn:hover,
#landingLoc:hover {
  background: rgba(41, 37, 36, 0.98) !important;
  border-color: rgba(251, 146, 60, 0.55) !important;
  color: #fff !important;
}
html[data-theme="light"] .ow-loc-btn:hover,
html.theme-light .ow-loc-btn:hover {
  background: #fff !important;
  border-color: rgba(194, 65, 12, 0.45) !important;
  color: #1c1917 !important;
}
.ow-loc-text,
#landingLocText {
  min-width: 0;
  color: inherit !important;
  overflow-x: auto;
  overflow-y: hidden;
  text-overflow: clip;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.loc-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #a3e635 !important;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(163, 230, 53, 0.25);
}
.landing-loc.locating .loc-dot,
.ow-loc-btn.locating .loc-dot {
  animation: ns-pulse 1.1s ease-in-out infinite;
}

.free-quota-chip {
  display: none;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--ns-moss);
  background: var(--ns-moss-soft);
  border: 0;
  border-radius: 999px;
  padding: 0.38rem 0.65rem;
  cursor: pointer;
  flex-shrink: 0;
}
.free-quota-chip:not([hidden]) { display: inline-flex; }

button.ghost.small,
.landing-signin,
.ow-signin,
#btnLandingTokens,
.ow-icon-btn {
  background: transparent !important;
  border: 1px solid transparent !important;
  color: var(--ns-ink) !important;
  border-radius: 999px !important;
  padding: 0.4rem 0.85rem !important;
  font-weight: 650 !important;
  font-size: 0.8rem !important;
  box-shadow: none !important;
  flex-shrink: 0;
}
.ow-signin {
  background: var(--ns-ink) !important;
  color: #fff !important;
  border-color: transparent !important;
}
.ow-signin:hover {
  background: #000 !important;
}
#btnLandingTokens[hidden],
#btnLandingMenu[hidden],
#landingAccount[hidden] { display: none !important; }

.landing-account {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ns-stone);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  max-width: 7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Composer base (width/footer overrides in footer-dock-fix.css) ── */
.prompt-dock,
.ow-composer,
.landing-ui.ow-ui .prompt-dock,
.landing-minimal .prompt-dock {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  margin-top: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0.35rem !important;
  flex: 0 0 auto !important;
  z-index: 30;
  padding: 0.4rem 0.45rem 0.45rem !important;
  background: var(--ns-glass-strong) !important;
  border: 1px solid rgba(28, 25, 23, 0.08) !important;
  border-radius: 1.15rem !important;
  box-shadow:
    0 8px 28px rgba(28, 25, 23, 0.12),
    0 1px 4px rgba(28, 25, 23, 0.05) !important;
  backdrop-filter: var(--ns-blur);
  -webkit-backdrop-filter: var(--ns-blur);
}
.ow-composer-hint {
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ns-ink);
  opacity: 0.9;
}

.home-modes,
.ow-segment {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.15rem;
  padding: 0.18rem;
  background: rgba(28, 25, 23, 0.05);
  border-radius: 999px;
  width: fit-content;
  max-width: min(100%, 28rem);
  margin: 0 auto;
}
.home-mode {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  justify-content: center;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--ns-stone);
  cursor: pointer;
  font: inherit;
  box-shadow: none;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s, box-shadow 0.15s;
}
.home-mode:hover { color: var(--ns-ink); background: rgba(255, 255, 255, 0.55); }
.home-mode.is-active {
  border-color: transparent;
  background: #fff;
  color: var(--ns-ink);
  box-shadow: 0 1px 4px rgba(28, 25, 23, 0.1);
}
.hm-label {
  font-size: 0.72rem;
  font-weight: 700;
}
.hm-desc { display: none; }

.home-tier-note {
  margin: 0;
  font-size: 0.68rem;
  color: var(--ns-stone);
  text-align: center;
  line-height: 1.3;
  text-shadow: none;
  opacity: 0.85;
}

.prompt-bar,
.ow-input {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.3rem 0.3rem 0.3rem 0.65rem;
  border-radius: 999px;
  background: #fff !important;
  border: 1px solid rgba(28, 25, 23, 0.1) !important;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04) !important;
}
.prompt-bar:focus-within,
.ow-input:focus-within {
  background: #fff !important;
  border-color: var(--ns-clay) !important;
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.14) !important;
}
.prompt-bar input {
  flex: 1;
  border: 0 !important;
  background: transparent !important;
  color: var(--ns-ink) !important;
  font-family: var(--ns-font);
  font-size: 1rem !important;
  font-weight: 500;
  padding: 0.7rem 0.4rem !important;
  margin: 0 !important;
  outline: none;
  box-shadow: none !important;
  min-width: 0;
}
.prompt-bar input::placeholder {
  color: #a8a29e !important;
  font-weight: 400;
}

.prompt-mic {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: transparent;
  color: #a8a29e;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.prompt-mic:hover { color: var(--ns-ink); background: #e7e5e4; }
.prompt-mic.listening {
  color: #fff;
  background: var(--ns-clay);
}

.prompt-go {
  height: 2.5rem;
  min-width: 3.4rem;
  padding: 0 1.1rem;
  border-radius: 999px !important;
  border: 0;
  background: var(--ns-clay) !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-shrink: 0;
  position: relative;
}
.prompt-go:hover { background: var(--ns-clay-deep) !important; }
.prompt-go:disabled { opacity: 0.7; cursor: wait; }
.prompt-go.is-running {
  background: var(--ns-clay-deep) !important;
  cursor: wait;
}
.prompt-go.is-running .prompt-go-label {
  opacity: 0;
  width: 0;
  overflow: hidden;
}
.prompt-go-spin {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ns-spin 0.7s linear infinite;
}
.prompt-go.is-running .prompt-go-spin {
  display: block;
}
@keyframes ns-spin {
  to { transform: rotate(360deg); }
}

.foot-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0;
}
.foot-chips .chip,
.chip {
  font-size: 0.75rem !important;
  font-weight: 500;
  padding: 0.35rem 0.7rem !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid var(--ns-line) !important;
  color: var(--ns-ink) !important;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06) !important;
}
.foot-chips .chip:hover,
.chip:hover {
  border-color: var(--ns-clay) !important;
  color: var(--ns-clay-deep) !important;
  background: #fff7ed !important;
}

.prompt-status {
  text-align: center;
  min-height: 1.25em;
  max-height: 2.6em;
  margin: 0.5rem 0 0;
  font-size: 0.84rem;
  color: var(--ns-stone);
  font-weight: 500;
  transition: color 0.15s ease, opacity 0.15s ease;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  word-break: break-word;
}
.prompt-status.error { color: #b91c1c; }
.prompt-status.ok { color: var(--ns-moss); }
.prompt-status.is-live {
  color: var(--ns-clay-deep);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
}
.prompt-status.is-live::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--ns-clay);
  animation: ns-pulse 1.1s ease-in-out infinite;
  flex-shrink: 0;
}

/* Full-width running banner under dock — always visible while searching.
   First OSM look can take 10–25s; elapsed timer in srb-text proves activity. */
.search-running-bar {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.55rem auto 0;
  padding: 0.5rem 1rem;
  width: fit-content;
  max-width: min(28rem, calc(100% - 0.5rem));
  border-radius: 999px;
  background: rgba(28, 25, 23, 0.92);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(251, 146, 60, 0.25);
  pointer-events: none;
  z-index: 20;
  position: relative;
}
.search-running-bar.is-on {
  display: inline-flex;
  animation: srb-breathe 2.2s ease-in-out infinite;
}
@keyframes srb-breathe {
  0%, 100% { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(251, 146, 60, 0.25); }
  50% { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28), 0 0 0 2px rgba(251, 146, 60, 0.4); }
}
.search-running-bar .srb-spin {
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ns-spin 0.7s linear infinite;
  flex-shrink: 0;
}
.search-running-bar .srb-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(24rem, 72vw);
  font-variant-numeric: tabular-nums;
}

.prompt-dock.is-searching {
  outline: 2px solid rgba(194, 65, 12, 0.28);
  outline-offset: 3px;
}
.prompt-dock.is-searching .prompt-bar {
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.12) !important;
}
.landing-ui.is-hunting .ow-composer-hint {
  display: none;
}

.landing-foot-empty {
  height: 0.5rem;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
}

/* SEO copy is screen-reader / crawler only — never a second top-left card */
.seo-app-intro.sr-only,
.seo-app-intro {
  /* keep in document for SEO; never paint a second corner block */
}
.landing-ui.is-hunting .seo-app-intro,
body.mode-app .seo-app-intro {
  /* still fine as sr-only */
}

/* Footer links: glass pill under composer, not stuck to map edge */
.landing-seo-foot {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0;
  pointer-events: none;
  order: 99;
  margin-top: 0.15rem;
}
.landing-foot-copy {
  margin: 0;
  pointer-events: none;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ns-muted, #a8a29e);
  opacity: 0.9;
}
.landing-ui > .landing-foot {
  pointer-events: none;
}
.landing-seo-links {
  pointer-events: auto;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 0.85rem;
  font-size: 0.7rem;
  background: var(--ns-glass);
  border: 1px solid rgba(28, 25, 23, 0.06);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  box-shadow: 0 2px 12px rgba(28, 25, 23, 0.06);
  backdrop-filter: var(--ns-blur);
  -webkit-backdrop-filter: var(--ns-blur);
}
.landing-seo-links a {
  color: var(--ns-stone, #57534e);
  text-decoration: none;
  font-weight: 500;
}
.landing-seo-links a:hover { color: var(--ns-clay, #c2410c); }

/* Chips: horizontal scroll on narrow screens */
.foot-chips,
.ow-chips {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0.4rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.1rem 0.1rem 0.15rem;
  mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.foot-chips::-webkit-scrollbar { display: none; }
.foot-chips .chip,
.ow-chips .chip {
  flex: 0 0 auto;
}

/* ── Hunting: slim composer, map breathing room ── */
.landing-ui.is-hunting {
  background: transparent !important;
  justify-content: space-between;
  pointer-events: none;
}
.landing-ui.is-hunting > * { pointer-events: none; }
.landing-ui.is-hunting .landing-top,
.landing-ui.is-hunting .prompt-dock,
.landing-ui.is-hunting .convert-strip,
.landing-ui.is-hunting .landing-bottom > .convert-strip {
  pointer-events: auto;
}
.landing-ui.is-hunting .convert-strip,
.landing-ui.is-hunting .convert-strip * {
  pointer-events: auto !important;
}
.landing-ui.is-hunting .home-modes,
.landing-ui.is-hunting .home-tier-note,
.landing-ui.is-hunting .foot-chips {
  display: none !important;
}
.landing-ui.is-hunting .prompt-dock {
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  padding: 0.35rem 0.4rem 0.4rem;
}

/* Hunt progress — larger transparent glass HUD (not white) */
.hunt-osd,
.hunt-osd.t-osd {
  top: 4.25rem !important;
  left: 0.75rem !important;
  width: min(26rem, calc(100vw - 1.5rem)) !important;
  max-height: min(62vh, 34rem) !important;
  background: rgba(12, 10, 9, 0.42) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 1rem !important;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  color: #f5f5f4 !important;
  font-family: var(--ns-font, system-ui, sans-serif) !important;
  backdrop-filter: blur(16px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.2) !important;
}
.hunt-osd.is-thinking {
  border-color: rgba(251, 146, 60, 0.35) !important;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(251, 146, 60, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
.osd-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04) !important;
}
/* Free-map feedback chips (ops learning) — transparent HUD palette */
.osd-feedback {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.4rem 0.55rem 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
}
.osd-fb,
button.osd-fb {
  font: inherit !important;
  font-size: 0.68rem !important;
  font-weight: 650 !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fafaf9 !important;
  border-radius: 999px !important;
  padding: 0.35rem 0.6rem !important;
  min-height: 1.85rem !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
  position: relative;
  z-index: 3;
}
.osd-fb:hover,
button.osd-fb:hover {
  color: #fff !important;
  border-color: rgba(251, 146, 60, 0.55) !important;
  background: rgba(251, 146, 60, 0.18) !important;
}
.osd-fb:disabled,
button.osd-fb:disabled {
  opacity: 0.55;
  cursor: default !important;
}
.lead-fb-row {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.65rem;
  flex-wrap: wrap;
  pointer-events: auto !important;
}

/* Pin feedback sheet — body-level, always clickable on free look */
.pin-fb-sheet {
  position: fixed !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  bottom: calc(12.5rem + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 85 !important;
  width: min(48rem, calc(100vw - 1.5rem)) !important;
  pointer-events: auto !important;
  isolation: isolate;
}
.pin-fb-sheet.hidden {
  display: none !important;
}
.pin-fb-inner {
  background: rgba(28, 25, 23, 0.98);
  border: 1px solid rgba(251, 146, 60, 0.4);
  border-radius: 1rem;
  padding: 0.85rem 0.95rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  color: #f5f5f4;
  pointer-events: auto !important;
}
.pin-fb-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.pin-fb-kicker {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fb923c;
}
.pin-fb-title {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fafaf9;
  max-height: 2.6em;
  overflow: auto;
  word-break: break-word;
}
.pin-fb-meta {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #a8a29e;
  max-height: 3.2em;
  overflow: auto;
  word-break: break-word;
}
.pin-fb-close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fafaf9;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto !important;
}
.pin-fb-help {
  margin: 0.55rem 0 0.4rem;
  font-size: 0.72rem;
  color: #a8a29e;
}
.pin-fb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  pointer-events: auto !important;
}
.pin-fb-actions .osd-fb {
  flex: 1 1 auto;
  min-width: 5.5rem;
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  color: #fafaf9 !important;
}
.pin-fb-actions .osd-fb:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: #fb923c !important;
}
.pin-fb-research {
  width: 100% !important;
  margin-top: 0.55rem !important;
  min-height: 2.4rem !important;
  border: 0 !important;
  border-radius: 0.7rem !important;
  background: #ea580c !important;
  color: #fff !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}
body.has-free-look .pin-fb-sheet:not(.hidden) {
  bottom: calc(14.5rem + env(safe-area-inset-bottom, 0px)) !important;
}
@media (max-width: 520px) {
  .pin-fb-sheet {
    bottom: calc(11.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }
  body.has-free-look .pin-fb-sheet:not(.hidden) {
    bottom: calc(15.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}

.osd-brand {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--ns-clay) !important;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
}
.osd-pulse {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--ns-clay);
  animation: ns-pulse 1.2s ease-in-out infinite;
}
.osd-status {
  flex: 1;
  font-size: 0.76rem !important;
  font-weight: 500;
  color: var(--ns-ink) !important;
}
.osd-metrics {
  font-size: 0.68rem;
  color: var(--ns-stone);
  display: inline-flex;
  gap: 0.35rem;
}
.osd-metrics b { color: var(--ns-ink); }
.osd-minimize {
  background: transparent !important;
  border: 0 !important;
  color: var(--ns-stone) !important;
  width: 1.4rem;
  height: 1.4rem;
}
.osd-subhead {
  display: flex;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.66rem;
  color: var(--ns-stone);
  border-bottom: 1px solid var(--ns-line);
  background: #fff !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.osd-console {
  max-height: 7rem;
  overflow: auto;
  padding: 0.4rem 0.65rem;
  font-size: 0.7rem;
  color: var(--ns-stone);
  background: transparent !important;
  font-family: var(--ns-font) !important;
}
.osd-roster {
  padding: 0.25rem 0.5rem 0.5rem;
  max-height: 6rem;
  overflow: auto;
}

/* Legacy light scan chrome — never override dark results workspace */
.scan-page:not(.is-results) {
  background: #f7f4ef !important;
  color: var(--ns-ink) !important;
}
.scan-page:not(.is-results) .scan-page-top {
  background: #fff !important;
  border-bottom: 1px solid var(--ns-line) !important;
}
.scan-page.is-results,
.scan-page.is-results .scan-page-top {
  background: #0c0a09 !important;
  color: #fafaf9 !important;
}

/* Token / auth — high-contrast dark card (never white + light text) */
.token-modal-card,
.token-modal-card.token-modal-card-v2 {
  background: #1c1917 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 1.1rem !important;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55) !important;
  color: #fafaf9 !important;
}
.token-modal-card .eyebrow,
#tokenModalEyebrow {
  font-size: 0.7rem !important;
  font-weight: 750 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #fb923c !important;
  margin: 0 0 0.15rem !important;
}
.token-modal-card h2,
#tokenModalTitle {
  font-weight: 750 !important;
  letter-spacing: -0.02em !important;
  color: #fafaf9 !important;
  margin: 0.15rem 0 0.45rem !important;
}
.token-modal-card .muted,
.token-modal-card .tight,
#tokenModalBody,
#tokenModalFoot {
  color: #d6d3d1 !important;
}
.token-pack,
.token-modal .token-pack {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 0.85rem !important;
  color: #fafaf9 !important;
}
.token-pack.featured,
.token-modal .token-pack.featured {
  border-color: rgba(251, 146, 60, 0.65) !important;
  background: rgba(251, 146, 60, 0.14) !important;
  box-shadow: 0 0 0 1px rgba(251, 146, 60, 0.2) !important;
}
.token-pack .tp-n {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: #a3e635 !important;
}
.token-pack .tp-l {
  color: #a8a29e !important;
}
.token-pack .tp-p {
  font-weight: 750 !important;
  color: #fafaf9 !important;
}
.token-pack .tp-b {
  color: #fb923c !important;
  font-weight: 650 !important;
}
.token-quota-pill,
#tokenQuotaPill {
  background: rgba(163, 230, 53, 0.12) !important;
  color: #d9f99d !important;
  border: 1px solid rgba(163, 230, 53, 0.28) !important;
  border-radius: 999px !important;
  padding: 0.4rem 0.75rem !important;
  font-size: 0.78rem !important;
  font-weight: 650 !important;
}

/* ── Auth modal: theme-aware glass card (FIX: AUTH-01) ─────────────────── */
/* Dark default: frosted glass that matches the map aesthetic */
.journey-card.auth-glass,
.auth-glass {
  position: relative; /* needed for .auth-close absolute positioning */
  background: var(--ns-glass-strong, rgba(28, 25, 23, 0.92)) !important;
  border: 1px solid var(--ns-line-strong, rgba(245, 245, 244, 0.22)) !important;
  border-radius: 18px !important;
  box-shadow:
    0 0 0 1px rgba(245, 245, 244, 0.06),
    0 8px 32px rgba(0, 0, 0, 0.55),
    0 24px 64px rgba(0, 0, 0, 0.35) !important;
  color: var(--ns-ink, #f5f5f4) !important;
  backdrop-filter: blur(24px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.6) !important;
  max-width: 24rem;
  margin: 12vh auto;
  padding: 1.5rem !important;
  animation: auth-modal-rise 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
}

/* Light theme: clean white card */
html[data-theme="light"] .journey-card.auth-glass,
html.theme-light .journey-card.auth-glass,
html[data-theme="light"] .auth-glass,
html.theme-light .auth-glass {
  background: #ffffff !important;
  color: var(--ns-ink, #1c1917) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-color: var(--ns-line, rgba(28, 25, 23, 0.1)) !important;
  box-shadow:
    0 1px 3px rgba(28, 25, 23, 0.06),
    0 12px 40px rgba(28, 25, 23, 0.1) !important;
}

@keyframes auth-modal-rise {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* AUTH-MODAL-01: secondary dismiss — ghost, small, low contrast vs primary OAuth CTAs */
.auth-close {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  background: none;
  border: 0;
  color: var(--ns-stone, #a8a29e);
  font-size: 1.15rem;
  line-height: 1;
  padding: 0.3rem 0.4rem;
  cursor: pointer;
  opacity: 0.55;
  border-radius: 6px;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.auth-close:hover {
  opacity: 1;
  background: var(--ns-surface-input, rgba(245, 245, 244, 0.08));
}

.auth-glass h2 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ── OAuth buttons: readable in both themes (FIX: AUTH-01) ─────────────── */
/*
 * AUTH-MODAL-02 compliance note:
 * Dark mode uses translucent dark bg + white text + full-color Google G logo.
 * Google GIS branding guidelines (2025) permit the colorful G logo on dark
 * surfaces; the white-G-outline variant is an alternative, not a requirement.
 * Light mode uses white bg + dark text per standard Google button spec.
 * Both variants are within Google and Microsoft brand guidelines.
 */
.oauth-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem !important;
  border-radius: 12px !important;
  border: 1px solid var(--ns-line-strong, rgba(245, 245, 244, 0.22)) !important;
  background: rgba(245, 245, 244, 0.07) !important;
  color: var(--ns-ink, #f5f5f4) !important;
  font-weight: 600 !important;
  margin-bottom: 0.4rem;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.14s ease, box-shadow 0.18s ease !important;
}

.oauth-btn:hover {
  background: rgba(245, 245, 244, 0.13) !important;
  border-color: rgba(245, 245, 244, 0.35) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

.oauth-btn:active {
  transform: translateY(0) !important;
  background: rgba(245, 245, 244, 0.05) !important;
}

.oauth-btn:disabled {
  opacity: 0.45;
  cursor: wait;
  transform: none !important;
}

/* Light theme oauth buttons */
html[data-theme="light"] .oauth-btn,
html.theme-light .oauth-btn {
  background: #ffffff !important;
  color: var(--ns-ink, #1c1917) !important;
  border: 1px solid rgba(28, 25, 23, 0.12) !important;
  box-shadow: 0 1px 4px rgba(28, 25, 23, 0.06) !important;
}

html[data-theme="light"] .oauth-btn:hover,
html.theme-light .oauth-btn:hover {
  background: #f9f8f7 !important;
  border-color: rgba(28, 25, 23, 0.2) !important;
  box-shadow: 0 3px 10px rgba(28, 25, 23, 0.1) !important;
}

/* ── Auth error message: red treatment (FIX: AUTH-02) ──────────────────── */
#authJourneyMsg:not(:empty) {
  display: block !important;
  color: var(--ns-danger, #f87171) !important;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.45rem 0.65rem;
  background: rgba(248, 113, 113, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(248, 113, 113, 0.22);
  margin: 0.35rem 0 0.1rem;
  line-height: 1.4;
}

html[data-theme="light"] #authJourneyMsg:not(:empty),
html.theme-light #authJourneyMsg:not(:empty) {
  color: #b91c1c !important;
  background: rgba(185, 28, 28, 0.05);
  border-color: rgba(185, 28, 28, 0.18);
}

.link-back {
  background: none;
  border: 0;
  color: var(--ns-clay, #fb923c);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-bottom: 0.6rem;
  transition: opacity 0.15s ease;
}

.link-back:hover {
  opacity: 0.75;
}

/* App shell */
.topbar {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid var(--ns-line) !important;
  color: var(--ns-ink) !important;
}
.topbar-brand strong { font-weight: 700; color: var(--ns-ink); }
.ws-name { color: var(--ns-stone) !important; }
.badge-btn {
  background: #fff !important;
  border: 1px solid var(--ns-line) !important;
  border-radius: 999px !important;
  color: var(--ns-ink) !important;
}
.sidebar, .mobile-tabs {
  background: #fff !important;
  border-color: var(--ns-line) !important;
}
.nav-item {
  color: var(--ns-stone) !important;
  border-radius: 10px !important;
  font-weight: 600;
}
.nav-item.active {
  background: #fff7ed !important;
  color: var(--ns-clay-deep) !important;
}
.map-side, .side-panel, .page-pad {
  background: #fff !important;
  color: var(--ns-ink) !important;
  border-color: var(--ns-line) !important;
}
.map-side h2, .page-pad h2, .side-panel h2 {
  font-weight: 700;
  letter-spacing: -0.02em;
}
.card-inner, .company-list, .lead-detail, .campaign-table {
  background: #fafaf9 !important;
  border-color: var(--ns-line) !important;
  border-radius: 12px !important;
}
.map-toolbar {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid var(--ns-line) !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
/* Only real CTAs get clay fill — not chrome icons (close, mic, steps, egg, zoom) */
button:not(.ghost):not(.secondary):not(.oauth-btn):not(.chip):not(.token-pack):not(.prompt-mic):not(.nav-item):not(.badge-btn):not(.free-quota-chip):not(.foot-link):not(.link-back):not(.osd-minimize):not(.token-modal-close):not(.home-mode):not(.ow-loc-btn):not(.prompt-go):not(.foot-egg):not(.biz-close):not(.biz-step):not(.biz-skip):not(.biz-chip):not(.biz-save-only):not(.linkish):not(.pin-fb-close):not(.territory-close):not(.leaflet-control-zoom-in):not(.leaflet-control-zoom-out):not(.site-scan-gear):not(.sr-btn):not(.sr-place-row button):not(.srd-free-actions a):not(.srd-free-actions button):not(.srd-fb button):not(.srd-research):not(.sc-btn):not(.territory-apply):not(.territory-gps):not(.territory-advanced-toggle):not(.convert-keep):not(.convert-browse):not(.convert-cta):not(.pin-fb-btn):not(.osd-fb):not(.paywall-tab):not(.auth-close):not(.lc-step):not(.am-item):not(.territory-seg-btn):not(.territory-save-sm):not(.territory-apply-sm):not(.territory-preset):not(.territory-state) {
  background: var(--ns-clay);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
}
/* Explicit chrome resets (map zoom + sheet close must never look primary) */
.leaflet-control-zoom a,
.leaflet-bar a,
button.biz-close,
.biz-close {
  background: rgba(28, 25, 23, 0.92) !important;
  color: #fafaf9 !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
}
.leaflet-control-zoom a:hover,
.leaflet-bar a:hover,
button.biz-close:hover,
.biz-close:hover {
  background: rgba(41, 37, 36, 0.98) !important;
  color: #fff !important;
}
button.biz-step,
.biz-step {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #a8a29e !important;
  font-weight: 650 !important;
}
button.biz-step.is-active,
.biz-step.is-active {
  background: rgba(251, 146, 60, 0.16) !important;
  color: #fafaf9 !important;
}
button.secondary {
  background: #f5f5f4 !important;
  color: var(--ns-ink) !important;
  border: 1px solid var(--ns-line) !important;
  border-radius: 10px !important;
}
/* Theme-aware fields — never force white bg + light ink (unreadable on dark) */
input, select, textarea {
  background: var(--ns-surface-elevated, #292524) !important;
  border: 1px solid var(--ns-line, rgba(245, 245, 244, 0.14)) !important;
  color: var(--ns-ink, #f5f5f4) !important;
  border-radius: 10px !important;
  font-family: var(--ns-font);
  caret-color: var(--ns-clay, #fb923c);
}
input::placeholder,
textarea::placeholder {
  color: var(--ns-muted, #a8a29e) !important;
  opacity: 1;
}
/* Chrome autofill paints white — force readable ink */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: var(--ns-ink, #f5f5f4) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--ns-surface-elevated, #292524) inset !important;
  box-shadow: 0 0 0 1000px var(--ns-surface-elevated, #292524) inset !important;
  transition: background-color 99999s ease-in-out 0s;
  caret-color: var(--ns-clay, #fb923c);
}
label { color: var(--ns-stone); }
.out, pre.out {
  background: var(--ns-surface-soft, #292524) !important;
  border: 1px solid var(--ns-line) !important;
  color: var(--ns-stone) !important;
  border-radius: 10px !important;
}
.hint, .micro, .muted { color: var(--ns-stone) !important; }

@keyframes ns-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@media (max-width: 640px) {
  .home-title { font-size: 1.2rem; }

  .landing-ui {
    padding:
      max(0.5rem, var(--ns-safe-t))
      0.55rem
      max(0.55rem, calc(0.35rem + var(--ns-safe-b)))
      0.55rem;
    gap: 0.55rem;
  }

  .landing-top,
  .ow-topbar {
    padding: 0.35rem 0.35rem 0.35rem 0.7rem;
    gap: 0.4rem;
  }

  .brand-word { font-size: 0.88rem; }

  /* Location: icon-only density on phones */
  .ow-loc-btn {
    max-width: 7.5rem;
    padding: 0.38rem 0.55rem;
    font-size: 0.68rem;
  }
  .fq-label { display: none; }

  .ow-signin {
    padding: 0.38rem 0.75rem !important;
    font-size: 0.75rem !important;
  }

  .prompt-dock,
  .ow-composer {
    width: 100%;
    border-radius: 1.15rem;
    padding: 0.65rem 0.7rem 0.75rem;
    gap: 0.45rem;
  }

  .ow-composer-hint {
    font-size: 0.78rem;
  }

  .prompt-bar input {
    font-size: 16px !important; /* prevent iOS zoom */
  }

  .leaflet-control-zoom {
    margin-top: 4.25rem !important;
  }

  .hunt-osd, .hunt-osd.t-osd {
    bottom: auto !important;
    top: 4.25rem !important;
    left: 0.55rem !important;
    right: 0.55rem !important;
    width: auto !important;
  }

  .landing-seo-links {
    font-size: 0.65rem;
    gap: 0.45rem 0.65rem;
    padding: 0.3rem 0.65rem;
  }
}

@media (max-width: 380px) {
  .ow-loc-text {
    max-width: 4.5rem;
  }
  .home-mode {
    padding: 0.35rem 0.7rem;
  }
}
/**
 * DoorKik — day / night theme tokens
 * Default: dark (readable chrome on the map)
 * Toggle: document.documentElement.dataset.theme = "light" | "dark"
 * localStorage key: doorkik-theme
 */

/* Dark is the product default — first paint without FOUC */
:root,
html[data-theme="dark"],
html.theme-dark {
  color-scheme: dark;
  --ns-ink: #f5f5f4;
  --ns-ink-soft: #e7e5e4;
  --ns-stone: #a8a29e;
  --ns-muted: #a8a29e;
  --ns-line: rgba(245, 245, 244, 0.14);
  --ns-line-strong: rgba(245, 245, 244, 0.22);
  --ns-surface: #1c1917;
  --ns-surface-elevated: #292524;
  --ns-surface-soft: #292524;
  --ns-surface-input: rgba(245, 245, 244, 0.08);
  --ns-clay: #fb923c;
  --ns-clay-deep: #ea580c;
  --ns-clay-soft: rgba(251, 146, 60, 0.18);
  --ns-moss: #a3e635;
  --ns-moss-soft: rgba(163, 230, 53, 0.12);
  --ns-card: #292524;
  --ns-map-bg: #1c1917;
  --ns-map-veil: rgba(0, 0, 0, 0.2);
  --ns-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 36px rgba(0, 0, 0, 0.5);
  --ns-scrim: rgba(28, 25, 23, 0.94);
  --ns-glass: rgba(28, 25, 23, 0.78);
  --ns-glass-strong: rgba(28, 25, 23, 0.92);
  --ns-console-bg: rgba(0, 0, 0, 0.28);
  --ns-focus-ring: rgba(251, 146, 60, 0.55);
  --ns-selection: rgba(251, 146, 60, 0.28);
  --ns-danger: #f87171;
  --ns-ok: #a3e635;
  --ns-chip-bg: rgba(41, 37, 36, 0.95);
  --ns-mode-active-bg: #44403c;
  --bg: var(--ns-map-bg);
  --card: var(--ns-card);
  --text: var(--ns-ink);
  --muted: var(--ns-stone);
  --accent: var(--ns-clay);
  --ok: var(--ns-moss);
  --border: var(--ns-line);
}

html[data-theme="light"],
html.theme-light {
  color-scheme: light;
  --ns-ink: #1c1917;
  --ns-ink-soft: #44403c;
  --ns-stone: #57534e;
  --ns-muted: #78716c;
  --ns-line: rgba(28, 25, 23, 0.1);
  --ns-line-strong: rgba(28, 25, 23, 0.16);
  --ns-surface: #ffffff;
  --ns-surface-elevated: #ffffff;
  --ns-surface-soft: #f5f5f4;
  --ns-surface-input: rgba(28, 25, 23, 0.04);
  --ns-clay: #c2410c;
  --ns-clay-deep: #9a3412;
  --ns-clay-soft: rgba(194, 65, 12, 0.12);
  --ns-moss: #3f6212;
  --ns-moss-soft: #ecfccb;
  --ns-card: #ffffff;
  --ns-map-bg: #e2e8e0;
  --ns-map-veil: transparent;
  --ns-shadow: 0 1px 2px rgba(28, 25, 23, 0.05), 0 10px 30px rgba(28, 25, 23, 0.08);
  --ns-scrim: rgba(255, 255, 255, 0.94);
  --ns-glass: rgba(255, 255, 255, 0.78);
  --ns-glass-strong: rgba(255, 255, 255, 0.92);
  --ns-console-bg: rgba(28, 25, 23, 0.04);
  --ns-focus-ring: rgba(194, 65, 12, 0.45);
  --ns-selection: rgba(194, 65, 12, 0.18);
  --ns-danger: #b91c1c;
  --ns-ok: #3f6212;
  --ns-chip-bg: #ffffff;
  --ns-mode-active-bg: #ffffff;
  --bg: var(--ns-map-bg);
  --card: var(--ns-card);
  --text: var(--ns-ink);
  --muted: var(--ns-stone);
  --accent: var(--ns-clay);
  --ok: var(--ns-moss);
  --border: var(--ns-line);
}

/* System preference only when explicitly data-theme is unset and no theme class */
@media (prefers-color-scheme: light) {
  html:not([data-theme]):not(.theme-light):not(.theme-dark) {
    /* Keep dark default even if OS is light — product default is dark */
    color-scheme: dark;
  }
}

body,
.landing-ui,
.shell {
  background: transparent;
  color: var(--ns-ink);
}

html,
body {
  background: var(--ns-map-bg, #1c1917) !important;
  color: var(--ns-ink);
}

.map-stage,
.map-canvas,
.map-canvas-world,
.leaflet-container {
  background: var(--ns-map-bg, #1c1917) !important;
}

/* Soft vignette: dark by default so chrome stays readable */
html[data-theme="dark"] .map-wallpaper .map-vignette,
html.theme-dark .map-wallpaper .map-vignette,
:root:not([data-theme="light"]):not(.theme-light) .map-wallpaper .map-vignette {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 14%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.4) 0%, transparent 20%) !important;
}

html[data-theme="light"] .map-wallpaper .map-vignette,
html.theme-light .map-wallpaper .map-vignette {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, transparent 12%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.22) 0%, transparent 18%) !important;
}

.leaflet-control-attribution {
  background: var(--ns-scrim) !important;
  color: var(--ns-stone) !important;
}

.leaflet-control-zoom a {
  background: var(--ns-glass-strong) !important;
  color: var(--ns-ink) !important;
  border-color: var(--ns-line) !important;
}

.prompt-dock.ow-composer,
#promptDock {
  background: var(--ns-scrim) !important;
  border-color: var(--ns-line) !important;
  box-shadow: var(--ns-shadow) !important;
  color: var(--ns-ink) !important;
}

.prompt-bar,
.ow-input {
  background: var(--ns-surface-input) !important;
  border-color: var(--ns-line) !important;
}

.prompt-bar input,
#promptInput {
  color: var(--ns-ink) !important;
  caret-color: var(--ns-clay) !important;
}

.prompt-bar input::placeholder,
#promptInput::placeholder {
  color: var(--ns-muted) !important;
}

.home-modes.ow-segment {
  background: var(--ns-surface-soft) !important;
  border-color: var(--ns-line) !important;
}

.home-mode {
  color: var(--ns-stone) !important;
}

.home-mode.is-active {
  background: var(--ns-surface-elevated) !important;
  color: var(--ns-ink) !important;
}

.agent-console {
  border-bottom-color: var(--ns-line) !important;
  color: var(--ns-ink-soft);
}

.agent-row {
  background: var(--ns-surface-elevated) !important;
  border-color: var(--ns-line) !important;
  color: var(--ns-ink) !important;
}

.agent-card.is-open .agent-row {
  background: var(--ns-clay-soft) !important;
  border-color: var(--ns-clay) !important;
}

.agent-lines {
  background: var(--ns-console-bg) !important;
  border-color: var(--ns-line) !important;
}

.chip {
  border-color: var(--ns-line) !important;
  color: var(--ns-ink-soft) !important;
  background: var(--ns-surface-elevated) !important;
}

.landing-ui .value-title,
.landing-ui .home-title:not(.sr-only) {
  color: var(--ns-ink) !important;
}

.landing-ui .value-lede,
.ow-composer-hint,
.home-tier-note,
.prompt-status {
  color: var(--ns-muted) !important;
}

.prompt-dock.is-listening,
.prompt-bar.is-listening {
  border-color: var(--ns-clay) !important;
  box-shadow:
    0 0 0 2px var(--ns-clay-soft),
    var(--ns-shadow) !important;
}

.prompt-mic.is-listening {
  background: var(--ns-clay-soft) !important;
  color: var(--ns-clay) !important;
  animation: mic-pulse 1.2s ease-in-out infinite;
}

@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--ns-clay-soft); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .prompt-mic.is-listening { animation: none; }
}

.landing-ui {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (max-width: 860px) {
  body { min-height: 100dvh; }
}

/* ════════════════════════════════════════════════════════════════════════
   MICRO-ANIMATIONS + INTERACTION POLISH  (FIX: ANIM-01/02/03)
   ════════════════════════════════════════════════════════════════════════ */

/* ── Chip: lift + clay glow on hover ─────────────────────────────────── */
.chip {
  transition:
    background 0.18s ease,
    border-color 0.2s ease,
    color 0.15s ease,
    transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.18s ease !important;
}

.chip:hover {
  background: rgba(251, 146, 60, 0.1) !important;
  border-color: rgba(251, 146, 60, 0.38) !important;
  color: var(--ns-ink) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 14px rgba(251, 146, 60, 0.18), 0 1px 4px rgba(0, 0, 0, 0.15) !important;
}

.chip:active {
  transform: translateY(0) !important;
  background: var(--ns-clay-soft) !important;
  border-color: var(--ns-clay) !important;
}

/* Light theme chip hover */
html[data-theme="light"] .chip:hover,
html.theme-light .chip:hover {
  background: rgba(194, 65, 12, 0.07) !important;
  border-color: rgba(194, 65, 12, 0.3) !important;
  box-shadow: 0 3px 10px rgba(194, 65, 12, 0.12) !important;
}

/* ── HUD dock: slide-up entrance ─────────────────────────────────────── */
@keyframes hud-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.prompt-dock.ow-composer {
  animation: hud-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Find / Go button: clay glow on hover ────────────────────────────── */
.prompt-go {
  transition: box-shadow 0.2s ease, transform 0.14s ease, background 0.18s ease !important;
}

.prompt-go:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 0 0 3px var(--ns-clay-soft), 0 6px 20px rgba(251, 146, 60, 0.32) !important;
}

.prompt-go:active {
  transform: scale(0.97) !important;
  box-shadow: none !important;
}

/* ── Tab segment: smooth active indicator transition ─────────────────── */
.home-mode {
  transition:
    background 0.2s ease,
    color 0.18s ease,
    box-shadow 0.2s ease !important;
}

/* ── Sign-in pill: consistent hover glow ─────────────────────────────── */
.ow-signin {
  transition: background 0.18s ease, box-shadow 0.18s ease, opacity 0.15s ease !important;
}

.ow-signin:hover {
  opacity: 0.85 !important;
  box-shadow: 0 0 0 3px rgba(245, 245, 244, 0.12) !important;
}

/* ── Location pill: subtle hover ─────────────────────────────────────── */
.ow-loc-btn {
  transition: background 0.18s ease, border-color 0.18s ease !important;
}

.ow-loc-btn:hover {
  background: rgba(245, 245, 244, 0.12) !important;
  border-color: var(--ns-line-strong) !important;
}

/* ── Free quota chip: hover affordance ───────────────────────────────── */
.free-quota-chip {
  transition: box-shadow 0.18s ease, transform 0.14s ease !important;
}

.free-quota-chip:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 10px rgba(163, 230, 53, 0.2) !important;
}

/* ── Reduced motion: disable all above ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .chip,
  .prompt-go,
  .home-mode,
  .ow-signin,
  .ow-loc-btn,
  .free-quota-chip {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
  .prompt-dock.ow-composer {
    animation: none !important;
  }
  .journey-card.auth-glass,
  .auth-glass {
    animation: none !important;
  }
}
/**
 * DoorKik — responsive breakpoints (mobile-first hardening)
 * Load AFTER nearside.css
 *
 * Fixes from mobile audit (2026-08-05):
 * - Map stays wallpaper (≥50% viewport visible)
 * - SEO hero never paints over map (even if sr-only is overridden)
 * - Top bar density / truncation
 * - Customers | Money true segment control (only one active)
 * - Composer + chips single dock
 * - Safe-area + iOS 16px inputs
 */

/* ── Breakpoint tokens ── */
:root {
  --bp-xs: 380px;
  --bp-sm: 640px;
  --bp-md: 860px;
  --bp-lg: 1100px;
  --ns-safe-t: env(safe-area-inset-top, 0px);
  --ns-safe-b: env(safe-area-inset-bottom, 0px);
  --ns-safe-l: env(safe-area-inset-left, 0px);
  --ns-safe-r: env(safe-area-inset-right, 0px);
}

/* ═══════════════════════════════════════════════════════════
   HARD: SEO intro must never compete with the map UI
   (HTML already has .sr-only; reinforce against overrides)
   ═══════════════════════════════════════════════════════════ */
.seo-app-intro,
.seo-app-intro.sr-only,
header.seo-app-intro {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

/* Kill any JS-injected duplicate hero cards on landing */
.landing-ui .value-title,
.landing-ui .value-lede,
.landing-ui .value-kicker,
.landing-ui .value-pillars,
.landing-ui .home-title:not(.sr-only),
.landing-ui .seo-card,
.landing-ui .intro-card {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════
   Mode segment: ONLY .is-active is filled
   (fixes both Customers + Money looking primary)
   ═══════════════════════════════════════════════════════════ */
.home-modes.ow-segment,
.ow-segment {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: center;
  align-items: center;
  gap: 0.12rem;
  padding: 0.16rem;
  background: rgba(28, 25, 23, 0.06) !important;
  border-radius: 999px;
  width: fit-content;
  max-width: min(100%, 28rem);
  margin: 0 auto;
  border: 0 !important;
  box-shadow: none !important;
}

.home-mode {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto !important;
  min-width: 0 !important;
  padding: 0.36rem 0.8rem !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--ns-stone, #57534e) !important;
  box-shadow: none !important;
  font-weight: 650 !important;
  white-space: nowrap !important;
  cursor: pointer;
}

.home-mode:hover {
  /* FIX RESP-01: theme-aware hover — not hardcoded white (jarring in dark mode) */
  color: var(--ns-ink) !important;
  background: var(--ns-surface-elevated, rgba(245, 245, 244, 0.12)) !important;
}

.home-mode.is-active {
  /* FIX RESP-01: use design-token bg so dark theme renders correctly */
  background: var(--ns-mode-active-bg, #44403c) !important;
  color: var(--ns-ink) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25) !important;
}

/* Light theme: override to white-card style */
html[data-theme="light"] .home-mode:hover,
html.theme-light .home-mode:hover {
  background: rgba(255, 255, 255, 0.7) !important;
}

html[data-theme="light"] .home-mode.is-active,
html.theme-light .home-mode.is-active {
  background: #ffffff !important;
  color: var(--ns-ink, #1c1917) !important;
  box-shadow: 0 1px 4px rgba(28, 25, 23, 0.1) !important;
}

/* Prevent global button rules from painting both modes clay */
.landing-ui button.home-mode:not(.is-active) {
  background: transparent !important;
  color: var(--ns-stone, #57534e) !important;
}

/* ═══════════════════════════════════════════════════════════
   ≤1100px — tablet: slightly tighter chrome
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .prompt-dock.ow-composer {
    width: 100% !important;
    max-width: 100% !important;
  }

  .landing-top.ow-topbar {
    max-width: calc(100% - 0.5rem);
  }
}

/* ═══════════════════════════════════════════════════════════
   ≤860px — app shell: bottom sheet + hide sidebar
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .sidebar {
    display: none !important;
  }

  .mobile-tabs {
    display: flex !important;
    padding-bottom: max(0.35rem, var(--ns-safe-b));
  }

  .shell-main {
    padding-bottom: calc(3.5rem + var(--ns-safe-b));
  }

  .map-layout {
    flex-direction: column !important;
  }

  .map-canvas-wrap {
    flex: 1 1 auto !important;
    min-height: 42vh !important;
  }

  .map-side {
    width: 100% !important;
    max-height: 48vh !important;
    border-left: 0 !important;
    border-top: 1px solid var(--ns-line, #e7e5e4) !important;
    border-radius: 14px 14px 0 0 !important;
  }

  .topbar {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-left: max(0.75rem, var(--ns-safe-l));
    padding-right: max(0.75rem, var(--ns-safe-r));
  }
}

/* ═══════════════════════════════════════════════════════════
   ≤640px — phone: map-first landing
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  /* Shell padding + safe areas */
  .landing-ui.ow-ui {
    padding:
      max(0.45rem, var(--ns-safe-t))
      max(0.5rem, var(--ns-safe-l))
      max(0.45rem, calc(0.35rem + var(--ns-safe-b)))
      max(0.5rem, var(--ns-safe-r)) !important;
    gap: 0.45rem !important;
    justify-content: space-between !important;
  }

  /* ── Top bar: one row, no wrap, no truncation drama ── */
  .landing-top.ow-topbar {
    flex-wrap: nowrap !important;
    padding: 0.3rem 0.3rem 0.3rem 0.65rem !important;
    gap: 0.35rem !important;
    border-radius: 999px !important;
  }

  .ow-top-left {
    flex: 0 0 auto;
    min-width: 0;
  }

  .ow-top-right {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
    gap: 0.3rem !important;
  }

  .brand-word {
    font-size: 0.85rem !important;
  }

  /* Location: compact; hide long text under 480px via max-width */
  .ow-loc-btn {
    max-width: 6.75rem !important;
    padding: 0.32rem 0.5rem !important;
    font-size: 0.65rem !important;
  }

  .ow-loc-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .fq-label {
    display: none !important;
  }

  .free-quota-chip {
    padding: 0.32rem 0.5rem !important;
    font-size: 0.7rem !important;
  }

  .ow-signin {
    padding: 0.35rem 0.7rem !important;
    font-size: 0.72rem !important;
  }

  /* Hide secondary top actions on narrow phones */
  #btnLandingTokens,
  #btnLandingMenu {
    display: none !important;
  }

  /* ── Composer: full width, less padding, map breathes ── */
  .prompt-dock.ow-composer {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    margin-top: auto !important;
    border-radius: 1.1rem !important;
    padding: 0.55rem 0.6rem 0.65rem !important;
    gap: 0.4rem !important;
  }

  .ow-composer-hint {
    font-size: 0.75rem !important;
    margin: 0 !important;
  }

  .home-modes.ow-segment {
    width: auto;
    max-width: 100%;
    flex-wrap: nowrap !important;
  }

  .home-mode {
    flex: 0 0 auto !important;
    padding: 0.34rem 0.62rem !important;
  }

  .hm-label {
    font-size: 0.75rem !important;
  }

  /* iOS: prevent zoom on focus */
  .prompt-bar input,
  .ow-input input,
  #promptInput {
    font-size: 16px !important;
  }

  .prompt-go {
    min-width: 3rem !important;
    height: 2.4rem !important;
    padding: 0 0.85rem !important;
  }

  .prompt-mic {
    width: 2.25rem !important;
    height: 2.25rem !important;
  }

  /* Chips: single horizontal scroller */
  .foot-chips.ow-chips,
  .ow-chips {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 0.35rem !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.05rem 0 0.1rem !important;
    mask-image: linear-gradient(90deg, #000 88%, transparent);
  }

  .foot-chips.ow-chips::-webkit-scrollbar {
    display: none;
  }

  .foot-chips .chip,
  .ow-chips .chip {
    flex: 0 0 auto !important;
    font-size: 0.72rem !important;
    padding: 0.32rem 0.65rem !important;
  }

  .home-tier-note {
    font-size: 0.62rem !important;
    margin: 0 !important;
  }

  .prompt-status {
    font-size: 0.78rem !important;
    min-height: 1.1em;
  }

  /* Footer: minimal */
  .landing-seo-links {
    font-size: 0.62rem !important;
    gap: 0.4rem 0.55rem !important;
    padding: 0.28rem 0.6rem !important;
  }

  /* Hunt HUD: larger transparent panel; leave room for bottom bar */
  .hunt-osd,
  .hunt-osd.t-osd {
    top: 3.75rem !important;
    left: 0.5rem !important;
    right: auto !important;
    width: min(22rem, calc(100vw - 1rem)) !important;
    max-height: min(48vh, 22rem) !important;
  }
  .hunt-osd.is-expanded {
    left: 0.5rem !important;
    right: 0.5rem !important;
    width: auto !important;
    transform: none !important;
    max-height: min(58vh, 28rem) !important;
  }

  .leaflet-control-zoom {
    margin-top: 3.85rem !important;
  }

  /* Hunting mode: even less chrome */
  .landing-ui.is-hunting .prompt-dock {
    padding: 0.45rem 0.55rem 0.55rem !important;
  }

  .landing-ui.is-hunting .ow-composer-hint,
  .landing-ui.is-hunting .home-tier-note,
  .landing-ui.is-hunting .foot-chips {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   ≤480px — small phone: location icon-priority
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .ow-loc-text {
    max-width: 4.25rem;
  }

  .brand-word {
    font-size: 0.8rem !important;
  }

  /* Optional: hide location text, keep green dot as affordance */
  .landing-top.ow-topbar.is-ultra-compact .ow-loc-text {
    display: none;
  }

  .home-mode {
    padding: 0.35rem 0.45rem !important;
  }

  .prompt-dock.ow-composer {
    border-radius: 1rem !important;
    padding: 0.5rem 0.55rem 0.55rem !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   ≤380px — very small devices
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 380px) {
  .ow-loc-btn {
    max-width: 2.5rem !important;
    padding: 0.32rem !important;
    justify-content: center;
  }

  .ow-loc-text {
    display: none !important;
  }

  .brand-word {
    max-width: 5.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ow-signin {
    padding: 0.32rem 0.55rem !important;
    font-size: 0.68rem !important;
  }

  .hm-label {
    font-size: 0.7rem !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   Landscape phones: keep composer from dominating height
   ═══════════════════════════════════════════════════════════ */
@media (max-height: 480px) and (orientation: landscape) {
  .landing-ui.ow-ui {
    gap: 0.25rem !important;
  }

  .ow-composer-hint,
  .home-tier-note,
  .landing-seo-foot {
    display: none !important;
  }

  .prompt-dock.ow-composer {
    padding: 0.4rem 0.5rem !important;
    gap: 0.3rem !important;
  }

  .foot-chips.ow-chips {
    display: none !important;
  }

  .hunt-osd {
    max-height: 40vh !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   Reduced motion
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .t-scan-bar,
  .t-radar,
  .osd-pulse,
  .prompt-go-spin,
  .search-running-bar .srb-spin,
  .pin-target .target-ring {
    animation: none !important;
  }
}
/**
 * Footer-anchored slim search dock.
 * Narrow composer fixed to the bottom stack (with SEO footer), not mid-viewport.
 * Load AFTER nearside.css / nearside-responsive.css.
 */

/* ── Shell: header top, bottom stack pinned to footer ── */
.landing-ui.landing-simple,
.landing-ui.ow-ui {
  justify-content: flex-start !important;
  gap: 0.5rem !important;
}

.landing-bottom {
  margin-top: auto !important;
  margin-bottom: 0 !important;
  width: 100%;
  max-width: 100%;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0.4rem !important;
  flex: 0 0 auto !important;
  pointer-events: none;
  z-index: 30;
  padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
  padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  padding-bottom: max(0.45rem, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.landing-bottom > * {
  pointer-events: auto;
}

/* Map pan: only chrome gets clicks */
.landing-ui.ow-ui > .landing-bottom {
  pointer-events: none !important;
}
.landing-ui.ow-ui > .landing-bottom > .prompt-dock,
.landing-ui.ow-ui > .landing-bottom > .landing-foot,
.landing-ui.ow-ui > .landing-bottom > .convert-strip,
.landing-ui.ow-ui > .landing-bottom > .convert-strip * {
  pointer-events: auto !important;
}

/* ── Slim, narrow dock ── */
.prompt-dock.ow-composer,
#promptDock.ow-composer,
#promptDock,
.landing-ui.ow-ui .prompt-dock,
.landing-minimal .prompt-dock {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  margin-top: 0 !important;
  padding: 0.4rem 0.5rem 0.45rem !important;
  gap: 0.28rem !important;
  border-radius: 1.15rem !important;
  box-shadow: var(--ns-shadow) !important;
  border: 1px solid var(--ns-line, rgba(245, 245, 244, 0.14)) !important;
  background: var(--ns-scrim, rgba(28, 25, 23, 0.94)) !important;
  color: var(--ns-ink, #f5f5f4) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex: 0 0 auto !important;
  align-self: stretch !important;
  box-sizing: border-box !important;
}

.prompt-dock.is-footer-anchored {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0.4rem 0.5rem 0.45rem !important;
  border-radius: 1.15rem !important;
}

.ow-composer-hint {
  margin: 0 !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.25 !important;
  opacity: 0.88;
}

.home-modes.ow-segment {
  display: flex !important;
  flex-wrap: nowrap !important;
  padding: 0.12rem !important;
  border-radius: 999px !important;
  gap: 0.08rem !important;
  max-width: none;
  width: fit-content;
  margin-inline: auto;
}

.home-mode {
  flex: 0 0 auto !important;
  padding: 0.28rem 0.72rem !important;
  border-radius: 999px !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  min-height: 0 !important;
  min-width: 0 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

.hm-label {
  font-size: 0.72rem !important;
  font-weight: 650 !important;
  white-space: nowrap;
}

/* Pill input: shorter than a chat box */
.prompt-bar,
.ow-input,
.prompt-dock .prompt-bar,
.prompt-dock form.prompt-bar {
  display: flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
  padding: 0.12rem 0.18rem 0.12rem 0.6rem !important;
  min-height: 2.15rem !important;
  height: 2.15rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(28, 25, 23, 0.1) !important;
  background: rgba(28, 25, 23, 0.035) !important;
  box-shadow: none !important;
}

.prompt-bar:focus-within,
.ow-input:focus-within {
  border-color: var(--ns-clay, #fb923c) !important;
  background: var(--ns-surface-elevated, #292524) !important;
  box-shadow:
    0 0 0 2px var(--ns-clay-soft, rgba(251, 146, 60, 0.18)),
    0 0 0 3px transparent !important;
}

.prompt-bar input,
.ow-input input,
#promptInput,
input#promptInput {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0.25rem 0.25rem !important;
  margin: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  line-height: 1.3 !important;
  font-size: 0.875rem !important;
  color: var(--ns-ink, #1c1917) !important;
  border-radius: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  -webkit-overflow-scrolling: touch;
}

.prompt-bar input::placeholder,
#promptInput::placeholder {
  color: rgba(28, 25, 23, 0.38) !important;
}

.prompt-mic,
button.prompt-mic {
  width: 1.75rem !important;
  height: 1.75rem !important;
  min-width: 1.75rem !important;
  padding: 0 !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--ns-stone, #57534e) !important;
  box-shadow: none !important;
  flex-shrink: 0 !important;
}

.prompt-mic:hover,
button.prompt-mic:hover {
  background: rgba(28, 25, 23, 0.06) !important;
  color: var(--ns-ink, #1c1917) !important;
}

.prompt-go,
button.prompt-go,
.prompt-bar .prompt-go {
  min-width: 2.1rem !important;
  width: auto !important;
  height: 1.85rem !important;
  padding: 0 0.65rem !important;
  border-radius: 999px !important;
  border: 0 !important;
  font-size: 0.75rem !important;
  font-weight: 650 !important;
  flex-shrink: 0 !important;
  box-shadow: none !important;
}

.foot-chips.ow-chips,
.ow-chips {
  gap: 0.25rem !important;
  padding: 0.02rem 0.1rem 0 !important;
  justify-content: center;
  flex-wrap: wrap;
}

.foot-chips .chip,
.ow-chips .chip {
  padding: 0.2rem 0.5rem !important;
  font-size: 0.65rem !important;
  border-radius: 999px !important;
}

.home-tier-note {
  margin: 0 !important;
  font-size: 0.62rem !important;
  line-height: 1.25 !important;
  opacity: 0.72;
  text-align: center;
}

.prompt-status {
  margin: 0 !important;
  font-size: 0.7rem !important;
  text-align: center;
}

/* Footer sits under dock, compact */
.landing-bottom .landing-foot,
.landing-bottom #landingSeoFoot {
  width: 100%;
  max-width: min(36rem, 100%);
  margin: 0 auto !important;
  padding: 0.15rem 0.35rem 0.1rem !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.landing-bottom .landing-seo-links {
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  font-size: 0.65rem;
  opacity: 0.78;
}

/* Hunting: stay bottom, even slimmer */
.landing-ui.is-hunting {
  justify-content: flex-start !important;
}

.landing-ui.is-hunting .landing-bottom {
  margin-top: auto !important;
}

.landing-ui.is-hunting .home-modes,
.landing-ui.is-hunting .home-tier-note,
.landing-ui.is-hunting .foot-chips {
  display: none !important;
}

.landing-ui.is-hunting .prompt-dock {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0.35rem 0.4rem 0.4rem !important;
}

.landing-ui.is-hunting .landing-foot {
  opacity: 0.55;
}

@media (min-width: 861px) {
  .prompt-dock.ow-composer.is-footer-anchored,
  #promptDock.is-footer-anchored {
    width: 100% !important;
    max-width: min(48rem, 100%) !important;
  }
  .prompt-bar,
  .ow-input {
    min-height: 2.25rem !important;
    height: 2.25rem !important;
    padding: 0.15rem 0.22rem 0.15rem 0.7rem !important;
  }
  .prompt-bar input,
  #promptInput {
    font-size: 0.9rem !important;
  }
}

@media (max-width: 860px) {
  .prompt-dock.ow-composer,
  #promptDock {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.35rem 0.4rem 0.4rem !important;
    border-radius: 1.1rem !important;
  }
  .prompt-bar,
  .ow-input {
    min-height: 2.5rem !important;
    height: 2.5rem !important;
  }
  .prompt-bar input,
  #promptInput {
    font-size: 16px !important; /* no iOS zoom */
  }
  .prompt-go {
    height: 2rem !important;
  }
  .landing-bottom .landing-seo-links a:nth-child(n + 5) {
    display: none; /* keep footer short on small screens */
  }
}

@media (prefers-reduced-motion: reduce) {
  .prompt-bar,
  .prompt-dock.ow-composer {
    transition: none !important;
  }
}
/**
 * DoorKik — AI-app layout polish
 * Load after responsive, agent-console, slim-search-bar, focus-states.
 * Mobile footer-anchor + readability overrides: footer-dock-fix.css (load last).
 */

.landing-ui.ow-ui,
.landing-ui {
  --ai-space-1: 0.25rem;
  --ai-space-2: 0.5rem;
  --ai-space-3: 0.75rem;
  --ai-space-4: 1rem;
  --ai-radius-pill: 999px;
  --ai-radius-shell: 1.35rem;
  --ai-ink: var(--ns-ink, #f5f5f4);
  --ai-muted: var(--ns-stone, #a8a29e);
  --ai-clay: var(--ns-clay, #fb923c);
  --ai-line: var(--ns-line, rgba(245, 245, 244, 0.14));
  --ai-elev: var(--ns-shadow, 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.45));
  --ai-safe-b: env(safe-area-inset-bottom, 0px);
  --ai-safe-t: env(safe-area-inset-top, 0px);
  --ai-z-map: 1;
  --ai-z-top: 40;
  --ai-z-dock: 50;
  --ai-z-tabs: 55;
}

.landing-ui.ow-ui {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: var(--ai-space-3) !important;
  min-height: 100dvh;
  min-height: 100svh;
  padding:
    max(var(--ai-space-2), var(--ai-safe-t))
    var(--ai-space-3)
    max(var(--ai-space-3), var(--ai-safe-b)) !important;
  box-sizing: border-box !important;
  position: relative;
  overflow-x: hidden;
}

.landing-top.ow-topbar {
  position: relative;
  z-index: var(--ai-z-top) !important;
  flex: 0 0 auto;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.prompt-dock.ow-composer,
#promptDock {
  position: relative;
  z-index: var(--ai-z-dock) !important;
  flex: 0 0 auto;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.45rem !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0.4rem 0.5rem 0.45rem !important;
  border-radius: var(--ai-radius-shell) !important;
  border: 1px solid var(--ai-line) !important;
  background: var(--ns-scrim, rgba(28, 25, 23, 0.94)) !important;
  color: var(--ai-ink) !important;
  box-shadow: var(--ai-elev) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-sizing: border-box !important;
}

/* Footer-anchored: stay in bottom stack (footer-dock-fix wins for position) */
.prompt-dock.is-footer-anchored,
.landing-ui.is-dock-anchored .prompt-dock,
.landing-ui.is-hunting .prompt-dock {
  position: relative !important;
  left: auto !important;
  transform: none !important;
  bottom: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  z-index: var(--ai-z-dock) !important;
}

.landing-ui.is-dock-anchored,
.landing-ui.is-hunting,
.landing-ui.hero-hidden {
  justify-content: flex-end !important;
}

.landing-ui.is-hunting .home-modes,
.landing-ui.is-dock-anchored .home-modes,
.landing-ui.is-hunting .foot-chips,
.landing-ui.is-dock-anchored .foot-chips,
.landing-ui.is-hunting .landing-seo-foot,
.landing-ui.is-dock-anchored .landing-seo-foot,
.landing-ui.is-hunting .ow-composer-hint,
.landing-ui.is-dock-anchored .ow-composer-hint {
  display: none !important;
}

.home-mode:not(.is-active) {
  background: transparent !important;
  color: var(--ai-muted) !important;
}
.home-mode.is-active {
  background: #fff !important;
  color: var(--ai-ink) !important;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.08) !important;
}

.prompt-bar,
.ow-input {
  display: flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
  min-height: 2.5rem !important;
  padding: 0.18rem 0.22rem 0.18rem 0.8rem !important;
  border-radius: var(--ai-radius-pill) !important;
  border: 1px solid rgba(28, 25, 23, 0.1) !important;
  background: rgba(28, 25, 23, 0.035) !important;
}

#promptInput,
.prompt-bar input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--ai-ink) !important;
  font-size: 0.9375rem !important;
}

@media (max-width: 860px) {
  #promptInput,
  .prompt-bar input {
    font-size: 16px !important;
  }
}
/**
 * Focus states — keyboard-visible, mouse-quiet, AI-bar aligned.
 * Load AFTER slim-search-bar.css / agent-console.css.
 *
 * Principles
 * ----------
 * - :focus-visible for keyboard / a11y (ring)
 * - :focus-within on the pill when the input is active
 * - No thick rectangular outlines on the old boxy controls
 * - Clay accent consistent with DoorKik brand
 */

/* ── Global: only show outline when keyboard-driven ────────────────────── */
:focus:not(:focus-visible) {
  outline: none;
}

/* ── Search pill: active field ─────────────────────────────────────────── */
.prompt-bar:focus-within,
.ow-input:focus-within,
.prompt-dock .prompt-bar:focus-within {
  border-color: rgba(194, 65, 12, 0.4) !important;
  background: #fff !important;
  box-shadow:
    0 0 0 2px rgba(194, 65, 12, 0.12),
    0 0 0 4px rgba(194, 65, 12, 0.06) !important;
}

/* Input itself: no extra ring (parent pill carries it) */
.prompt-bar input:focus,
.prompt-bar input:focus-visible,
.ow-input input:focus,
.ow-input input:focus-visible,
#promptInput:focus,
#promptInput:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: 0 !important;
  background: transparent !important;
}

/* Dock elevates slightly while composing */
.prompt-dock:focus-within,
#promptDock:focus-within {
  border-color: rgba(194, 65, 12, 0.18) !important;
  box-shadow:
    0 1px 2px rgba(28, 25, 23, 0.04),
    0 10px 32px rgba(28, 25, 23, 0.1),
    0 0 0 1px rgba(194, 65, 12, 0.08) !important;
}

/* ── Go / submit ───────────────────────────────────────────────────────── */
.prompt-go:focus-visible,
button.prompt-go:focus-visible {
  outline: 2px solid rgba(194, 65, 12, 0.55) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.15) !important;
}

.prompt-go:active,
button.prompt-go:active {
  transform: scale(0.97);
}

/* ── Mic ───────────────────────────────────────────────────────────────── */
.prompt-mic:focus-visible,
button.prompt-mic:focus-visible {
  outline: 2px solid rgba(194, 65, 12, 0.45) !important;
  outline-offset: 2px !important;
  background: rgba(194, 65, 12, 0.08) !important;
  color: var(--ns-ink, #1c1917) !important;
}

/* ── Mode segment (Places / People etc.) ───────────────────────────────── */
.home-mode:focus-visible {
  outline: 2px solid rgba(194, 65, 12, 0.5) !important;
  outline-offset: 1px !important;
  z-index: 1;
}

.home-mode.is-active:focus-visible {
  outline-color: rgba(194, 65, 12, 0.65) !important;
}

/* Track shows focus when a child mode is focused */
.home-modes.ow-segment:focus-within {
  box-shadow: 0 0 0 2px rgba(194, 65, 12, 0.1);
  border-radius: 999px;
}

/* ── Suggestion chips ──────────────────────────────────────────────────── */
.foot-chips .chip:focus-visible,
.ow-chips .chip:focus-visible,
button.chip:focus-visible {
  outline: 2px solid rgba(194, 65, 12, 0.45) !important;
  outline-offset: 1px !important;
  background: #fff7ed !important;
  border-color: rgba(194, 65, 12, 0.35) !important;
}

/* ── Agent console rows ────────────────────────────────────────────────── */
.agent-row:focus-visible {
  outline: 2px solid rgba(194, 65, 12, 0.5) !important;
  outline-offset: 1px !important;
  border-color: rgba(194, 65, 12, 0.35) !important;
  background: #fff7ed !important;
}

.agent-card.is-open .agent-row:focus-visible {
  border-radius: 10px 10px 0 0;
}

/* ── Top bar controls ──────────────────────────────────────────────────── */
.ow-loc-btn:focus-visible,
.ow-signin:focus-visible,
.landing-top button:focus-visible,
.brand-word:focus-visible {
  outline: 2px solid rgba(194, 65, 12, 0.45) !important;
  outline-offset: 2px !important;
}

/* ── Company / list rows (map side + windowed list) ─────────────────────── */
.company-row:focus-visible,
[data-windowed-index]:focus-visible,
.map-side button:focus-visible,
.lead-row:focus-visible {
  outline: 2px solid rgba(194, 65, 12, 0.45) !important;
  outline-offset: 1px !important;
}

/* ── Mobile tabs ───────────────────────────────────────────────────────── */
.mobile-tabs button:focus-visible {
  outline: 2px solid rgba(194, 65, 12, 0.5) !important;
  outline-offset: 2px !important;
}

/* ── High contrast / forced colors ─────────────────────────────────────── */
@media (forced-colors: active) {
  .prompt-bar:focus-within,
  .home-mode:focus-visible,
  .prompt-go:focus-visible,
  .agent-row:focus-visible,
  .chip:focus-visible {
    outline: 3px solid CanvasText !important;
    outline-offset: 2px !important;
  }
}

/* ── Reduced motion: no scale pop on activate ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .prompt-go:active,
  button.prompt-go:active {
    transform: none;
  }
}

/* ── Optional: subtle caret / selection color inside the field ─────────── */
.prompt-bar input,
#promptInput {
  caret-color: #c2410c;
}

.prompt-bar input::selection,
#promptInput::selection {
  background: rgba(194, 65, 12, 0.18);
  color: var(--ns-ink, #1c1917);
}
/**
 * Footer-anchored search dock + multi-agent console
 * Load after nearside.css + nearside-responsive.css
 */

/* ── When dock is footer-anchored: hero disappears, search pins bottom ── */
.landing-ui.is-dock-anchored,
.landing-ui.is-hunting,
.landing-ui.hero-hidden {
  justify-content: flex-end !important;
}

.landing-ui.is-dock-anchored .ow-composer-hint,
.landing-ui.is-hunting .ow-composer-hint,
.landing-ui.hero-hidden .ow-composer-hint,
.landing-ui.is-dock-anchored .home-tier-note,
.landing-ui.is-hunting .home-tier-note,
.landing-ui.hero-hidden .home-tier-note,
.landing-ui.is-dock-anchored .seo-app-intro,
.landing-ui.hero-hidden .value-title,
.landing-ui.hero-hidden .value-lede,
.landing-ui.hero-hidden .value-kicker {
  display: none !important;
}

.prompt-dock.is-footer-anchored,
.landing-ui.is-dock-anchored .prompt-dock,
.landing-ui.is-hunting .prompt-dock {
  position: relative !important;
  left: auto !important;
  transform: none !important;
  bottom: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  z-index: 45 !important;
  pointer-events: auto !important;
}

/* Keep top bar during hunt; hide footer SEO links under the dock */
.landing-ui.is-dock-anchored .landing-seo-foot,
.landing-ui.is-hunting .landing-seo-foot {
  opacity: 0;
  pointer-events: none;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* ── Agent console (above search input, inside dock) ── */
.agent-console {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: min(32vh, 14rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: 0.15rem 0.1rem 0.35rem;
  border-bottom: 1px solid rgba(28, 25, 23, 0.08);
  margin-bottom: 0.15rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.7rem;
  line-height: 1.35;
}

.agent-console.is-empty {
  display: none;
}

.agent-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.agent-card.is-open .agent-row {
  border-radius: 10px 10px 0 0;
  border-bottom-color: transparent;
  border-color: rgba(194, 65, 12, 0.45);
  background: #fff7ed;
}

.agent-row {
  display: grid;
  grid-template-columns: 0.55rem minmax(0, 1fr) auto auto;
  grid-template-rows: auto auto;
  column-gap: 0.45rem;
  row-gap: 0.1rem;
  width: 100%;
  text-align: left;
  padding: 0.4rem 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(28, 25, 23, 0.08);
  background: rgba(255, 255, 255, 0.9);
  color: inherit;
  cursor: pointer;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.agent-row:hover {
  border-color: rgba(194, 65, 12, 0.3);
  background: #fffbeb;
}

.agent-chevron {
  grid-column: 4;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 0.65rem;
  color: var(--ns-stone, #57534e);
  opacity: 0.7;
}

.agent-dot {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--ns-stone, #78716c);
  align-self: center;
}

.agent-row.status-running .agent-dot,
.agent-row.status-queued .agent-dot {
  background: var(--ns-clay, #c2410c);
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.15);
  animation: agent-pulse 1.1s ease-in-out infinite;
}

.agent-row.status-ok .agent-dot,
.agent-row.status-done .agent-dot {
  background: var(--ns-moss, #3f6212);
  animation: none;
}

.agent-row.status-warn .agent-dot {
  background: #d97706;
  animation: none;
}

.agent-row.status-error .agent-dot {
  background: #b91c1c;
  animation: none;
}

@keyframes agent-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.agent-label {
  grid-column: 2;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--ns-ink, #1c1917);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-status {
  grid-column: 3;
  grid-row: 1;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ns-stone, #57534e);
  align-self: center;
}

.agent-row.status-running .agent-status {
  color: var(--ns-clay, #c2410c);
}

.agent-detail {
  grid-column: 2 / span 2;
  grid-row: 2;
  font-size: 0.68rem;
  color: var(--ns-stone, #57534e);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-lines {
  margin: 0 0 0.25rem;
  padding: 0.35rem 0.55rem 0.4rem 1.15rem;
  border-radius: 0 0 10px 10px;
  background: rgba(28, 25, 23, 0.04);
  border: 1px solid rgba(28, 25, 23, 0.08);
  border-top: 0;
  max-height: 7rem;
  overflow-y: auto;
}

.agent-lines.is-empty .agent-line.dim {
  opacity: 0.65;
  font-style: italic;
}

.agent-line {
  color: var(--ns-stone, #57534e);
  white-space: pre-wrap;
  word-break: break-word;
  padding: 0.08rem 0;
}

.agent-line:last-child {
  color: var(--ns-ink, #1c1917);
  font-weight: 600;
}

/* Modes can stay; chips optional while running */
.landing-ui.is-dock-anchored .home-modes {
  margin-bottom: 0.15rem;
}

.landing-ui.is-dock-anchored .foot-chips,
.landing-ui.is-hunting .foot-chips {
  display: none !important;
}

/* Mobile density */
@media (max-width: 640px) {
  .agent-console {
    max-height: min(28vh, 11rem);
    font-size: 0.68rem;
  }

  .prompt-dock.is-footer-anchored,
  .landing-ui.is-dock-anchored .prompt-dock,
  .landing-ui.is-hunting .prompt-dock {
    width: 100% !important;
    max-width: 100% !important;
    bottom: auto !important;
    border-radius: 1.1rem !important;
    padding: 0.4rem 0.45rem 0.45rem !important;
  }

  .agent-row {
    padding: 0.35rem 0.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agent-row.status-running .agent-dot {
    animation: none;
  }
}
/**
 * DoorKik — final footer-anchor + wide search bar
 * Prompt always sits at the bottom of the screen, above the SEO footer.
 * Full width of the viewport with side margins (does not hug edges).
 */

/* ── Icon system: stroke-based SVG primitives ── */
@keyframes dk-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.icon-link, .icon-sliders, .icon-warn, .icon-paste {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.site-scan-connector svg {
  display: inline-block;
  vertical-align: middle;
}

/* ── Shell: header top, bottom stack at foot ── */
.landing-ui,
.landing-ui.landing-simple,
.landing-ui.ow-ui {
  justify-content: flex-start !important;
  gap: 0.45rem !important;
  /* Keep bottom chrome visible above the fold */
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
}

.landing-bottom {
  margin-top: auto !important;
  margin-bottom: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0.4rem !important;
  flex: 0 0 auto !important;
  pointer-events: none;
  z-index: 45;
  /* Side pad so bar never hugs the screen edge */
  padding-left: max(0.75rem, env(safe-area-inset-left, 0px)) !important;
  padding-right: max(0.75rem, env(safe-area-inset-right, 0px)) !important;
  padding-bottom: max(0.45rem, env(safe-area-inset-bottom, 0px)) !important;
  box-sizing: border-box !important;
}

.landing-bottom > * {
  pointer-events: auto;
}

.landing-ui.ow-ui > .landing-bottom {
  pointer-events: none !important;
}

.landing-ui.ow-ui > .landing-bottom > .prompt-dock,
.landing-ui.ow-ui > .landing-bottom > .landing-foot,
.landing-ui.ow-ui > .landing-bottom > .convert-strip,
.landing-ui.ow-ui > .landing-bottom > .convert-strip * {
  pointer-events: auto !important;
}

/* ── Wide AI / search dock — full available width, footer-pinned ── */
.landing-bottom .prompt-dock,
.landing-bottom #promptDock,
.prompt-dock.is-footer-anchored,
.landing-ui .prompt-dock.ow-composer.is-footer-anchored,
#promptDock.ow-composer,
#promptDock {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  top: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0.4rem 0.5rem 0.45rem !important;
  gap: 0.28rem !important;
  border-radius: 1.15rem !important;
  z-index: 45 !important;
  flex: 0 0 auto !important;
  align-self: stretch !important;
  background: var(--ns-scrim, rgba(28, 25, 23, 0.94)) !important;
  border: 1px solid var(--ns-line, rgba(245, 245, 244, 0.14)) !important;
  box-shadow: var(--ns-shadow, 0 8px 24px rgba(0, 0, 0, 0.45)) !important;
  color: var(--ns-ink, #f5f5f4) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-sizing: border-box !important;
}

/* YOU SELL + site line — centered in the dock */
.landing-bottom .seller-bar,
#promptDock .seller-bar,
.prompt-dock .seller-bar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}
.landing-bottom .biz-chip#bizChip,
#promptDock .biz-chip#bizChip {
  margin-left: auto !important;
  margin-right: auto !important;
  justify-content: center !important;
  text-align: center !important;
}
.landing-bottom .site-scan-row,
#promptDock .site-scan-row {
  flex: 0 1 auto !important;
  justify-content: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}
.landing-bottom .site-scan-row.is-scanned,
#promptDock .site-scan-row.is-scanned {
  border-color: rgba(74, 222, 128, 0.4) !important;
  background: rgba(74, 222, 128, 0.12) !important;
}
.landing-bottom .site-scan-row.is-scanning,
#promptDock .site-scan-row.is-scanning {
  border-color: rgba(251, 146, 60, 0.45) !important;
  background: rgba(251, 146, 60, 0.12) !important;
}
.landing-bottom .site-scan-row.is-error,
#promptDock .site-scan-row.is-error {
  border-color: rgba(248, 113, 113, 0.45) !important;
  background: rgba(248, 113, 113, 0.12) !important;
}
.landing-bottom .site-scan-status,
#promptDock .site-scan-status {
  font-weight: 750 !important;
}
.landing-bottom .site-scan-gear,
#promptDock .site-scan-gear,
.landing-bottom button.site-scan-gear,
#promptDock button.site-scan-gear {
  pointer-events: auto !important;
  background: rgba(255, 255, 255, 0.06) !important;
  background-color: rgba(255, 255, 255, 0.06) !important;
  color: #d6d3d1 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
  border-radius: 999px !important;
}
.landing-bottom .site-scan-row.is-scanned .site-scan-gear,
#promptDock .site-scan-row.is-scanned .site-scan-gear {
  background: rgba(74, 222, 128, 0.1) !important;
  border-color: rgba(74, 222, 128, 0.28) !important;
  color: #bbf7d0 !important;
}

/* Pill input — slightly taller for the wider bar */
.landing-bottom .prompt-bar,
.landing-bottom .ow-input,
.prompt-dock.is-footer-anchored .prompt-bar,
#promptDock .prompt-bar {
  display: flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
  min-height: 2.45rem !important;
  height: 2.45rem !important;
  padding: 0.15rem 0.2rem 0.15rem 0.7rem !important;
  border-radius: 999px !important;
  border: 1px solid var(--ns-line, rgba(245, 245, 244, 0.14)) !important;
  background: var(--ns-surface-input, rgba(245, 245, 244, 0.08)) !important;
  box-shadow: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.landing-bottom .prompt-bar input,
.landing-bottom #promptInput,
#promptDock #promptInput,
#promptInput {
  font-size: 0.85rem !important;
  padding: 0.2rem 0.2rem !important;
  min-height: 0 !important;
  height: auto !important;
  line-height: 1.25 !important;
  color: var(--ns-ink, #f5f5f4) !important;
  caret-color: var(--ns-clay, #fb923c) !important;
  /* Long URLs / queries: scroll inside the field instead of clipping */
  overflow-x: auto !important;
  overflow-y: hidden !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  -webkit-overflow-scrolling: touch;
}

#promptInput::placeholder,
.prompt-bar input::placeholder {
  color: var(--ns-muted, #a8a29e) !important;
  opacity: 1 !important;
}

/* Only the dock Go button — never convert-strip CTAs */
.landing-bottom .prompt-dock .prompt-go,
#promptDock .prompt-go,
#btnPromptGo {
  min-width: 2.4rem !important;
  min-height: 2.2rem !important;
  height: 2.2rem !important;
  padding: 0 0.75rem !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
}

/* Mic: real element is small; expand tap target via padding + min-height */
.landing-bottom .prompt-mic,
#promptDock .prompt-mic {
  width: 2.2rem !important;
  height: 2.2rem !important;
  min-width: 2.2rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
}

/* Site-scan gear: larger tap target, no emoji */
.landing-bottom .site-scan-gear,
#promptDock .site-scan-gear,
button.site-scan-gear {
  min-width: 2rem !important;
  min-height: 1.8rem !important;
  height: 1.8rem !important;
  padding: 0 0.45rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
}

/* Compact chrome above/below the pill */
.ow-composer-hint {
  margin: 0 !important;
  font-size: 0.7rem !important;
  font-weight: 650 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.2 !important;
  color: var(--ns-ink, #f5f5f4) !important;
  opacity: 0.95 !important;
}

.home-modes.ow-segment {
  display: flex !important;
  flex-wrap: nowrap !important;
  padding: 0.12rem !important;
  max-width: none !important;
  width: fit-content !important;
  margin-inline: auto;
  gap: 0.08rem !important;
  background: var(--ns-surface-input, rgba(245, 245, 244, 0.08)) !important;
}

.home-mode {
  flex: 0 0 auto !important;
  padding: 0.34rem 0.78rem !important;
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  min-height: 1.85rem !important;
  min-width: 0 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  color: var(--ns-stone, #a8a29e) !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
}

.home-mode.is-active {
  background: var(--ns-mode-active-bg, #44403c) !important;
  color: var(--ns-ink, #f5f5f4) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) !important;
  font-weight: 700 !important;
}

.foot-chips.ow-chips,
.ow-chips {
  gap: 0.22rem !important;
  padding: 0.02rem 0.05rem 0 !important;
  justify-content: center;
  flex-wrap: wrap;
}

.foot-chips .chip,
.ow-chips .chip,
button.chip {
  padding: 0.32rem 0.65rem !important;
  font-size: 0.68rem !important;
  min-height: 1.85rem !important;
  border-radius: 999px !important;
  background: var(--ns-chip-bg, rgba(255, 255, 255, 0.08)) !important;
  color: var(--ns-ink-soft, #e7e5e4) !important;
  border: 1px solid var(--ns-line, rgba(245, 245, 244, 0.14)) !important;
  font-weight: 550 !important;
  opacity: 1 !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
}

.home-tier-note,
.prompt-status {
  margin: 0 !important;
  font-size: 0.6rem !important;
  line-height: 1.2 !important;
  color: var(--ns-muted, #a8a29e) !important;
  opacity: 0.95 !important;
  text-align: center;
  max-width: 100%;
  max-height: 2.5em;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  word-break: break-word;
}

/* SEO footer under the dock */
.landing-bottom .landing-foot,
.landing-bottom #landingSeoFoot,
.landing-bottom .landing-seo-foot {
  display: block !important;
  width: 100%;
  max-width: min(32rem, 100%);
  margin: 0 auto !important;
  padding: 0.1rem 0.3rem 0.05rem !important;
  height: auto !important;
  opacity: 0.78 !important;
  overflow: visible !important;
  pointer-events: auto !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.landing-bottom .landing-seo-links {
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.3rem 0.55rem;
  font-size: 0.62rem;
}
.landing-bottom .landing-foot-copy {
  text-align: center;
  font-size: 0.58rem;
  color: var(--ns-muted, #a8a29e);
  opacity: 0.85;
  margin: 0.05rem 0 0;
}

/* © easter egg — identical to surrounding muted copy (not a link look) */
.landing-bottom .foot-egg,
.landing-foot-copy .foot-egg,
button.foot-egg {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  color: inherit !important;
  font: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  text-decoration: none !important;
  box-shadow: none !important;
  cursor: text !important; /* looks like static copy, still clickable */
  pointer-events: auto !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  min-height: 0 !important;
  min-width: 0 !important;
  height: auto !important;
  width: auto !important;
}
.landing-bottom .foot-egg:hover,
.landing-bottom .foot-egg:focus,
.landing-bottom .foot-egg:focus-visible,
.landing-bottom .foot-egg:active,
button.foot-egg:hover,
button.foot-egg:focus,
button.foot-egg:focus-visible,
button.foot-egg:active {
  background: transparent !important;
  color: inherit !important;
  opacity: inherit !important;
  text-decoration: none !important;
  outline: none !important;
  box-shadow: none !important;
  border: 0 !important;
}
.foot-egg-year {
  pointer-events: none;
}

/* Full-viewport modal; click anywhere closes */
.egg-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
}
.egg-modal.hidden,
.egg-modal[hidden] {
  display: none !important;
}
.egg-modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.egg-modal-panel {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 42rem);
  max-height: min(88vh, 28rem);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0c0a09;
  cursor: pointer;
}
.egg-modal-video {
  display: block;
  width: 100%;
  max-height: min(88vh, 28rem);
  height: auto;
  object-fit: contain;
  background: #000;
  pointer-events: none; /* click goes to modal → close */
}

/* Hunting: stay full-width bottom, hide chips/modes */
.landing-ui.is-hunting,
.landing-ui.is-dock-anchored,
.landing-ui.hero-hidden {
  justify-content: flex-start !important;
}

.landing-ui.is-hunting .landing-bottom,
.landing-ui.is-dock-anchored .landing-bottom {
  margin-top: auto !important;
}

.landing-ui.is-hunting .prompt-dock,
.landing-ui.is-dock-anchored .prompt-dock {
  position: relative !important;
  left: auto !important;
  transform: none !important;
  bottom: auto !important;
  width: 100% !important;
  max-width: 100% !important;
}

.landing-ui.is-hunting .home-modes,
.landing-ui.is-hunting .home-tier-note,
.landing-ui.is-hunting .foot-chips,
.landing-ui.is-dock-anchored .home-modes,
.landing-ui.is-dock-anchored .foot-chips {
  display: none !important;
}

/* Map attribution above the bottom stack */
.leaflet-bottom {
  bottom: calc(10.5rem + env(safe-area-inset-bottom, 0px)) !important;
}

@media (min-width: 861px) {
  .landing-bottom {
    padding-left: max(1.25rem, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(1.25rem, env(safe-area-inset-right, 0px)) !important;
  }

  .landing-bottom .prompt-dock,
  .prompt-dock.is-footer-anchored,
  #promptDock {
    width: 100% !important;
    max-width: min(48rem, 100%) !important;
  }

  .landing-bottom .prompt-bar,
  #promptDock .prompt-bar {
    min-height: 2.55rem !important;
    height: 2.55rem !important;
  }

  .landing-bottom #promptInput,
  #promptInput {
    font-size: 0.95rem !important;
  }
}

@media (max-width: 860px) {
  .landing-bottom {
    padding-left: max(0.7rem, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(0.7rem, env(safe-area-inset-right, 0px)) !important;
  }

  .landing-bottom .prompt-dock,
  #promptDock {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.45rem 0.5rem 0.5rem !important;
    gap: 0.4rem !important;
  }

  .landing-bottom .prompt-bar,
  #promptDock .prompt-bar {
    min-height: 2.6rem !important;
    height: 2.6rem !important;
    gap: 0.35rem !important;
  }

  #promptInput,
  .prompt-bar input {
    font-size: 16px !important; /* no iOS zoom */
  }

  .landing-bottom .landing-seo-links a:nth-child(n + 5) {
    display: none;
  }

  .leaflet-bottom {
    bottom: calc(11.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 400px) {
  .landing-bottom {
    padding-left: max(0.55rem, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(0.55rem, env(safe-area-inset-right, 0px)) !important;
  }

  .landing-bottom .prompt-dock,
  #promptDock {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prompt-dock,
  .prompt-bar {
    transition: none !important;
  }
}

/* ── Touch-target hardening: top bar ── */
#btnLandingSignIn,
.ow-signin,
button.ghost.small {
  min-height: 2.2rem !important;
  padding-top: 0.42rem !important;
  padding-bottom: 0.42rem !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
}
.free-quota-chip,
#freeQuotaChip {
  min-height: 2rem !important;
  padding: 0.38rem 0.75rem !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
}
#landingLoc {
  min-height: 2.2rem !important;
  touch-action: manipulation !important;
}

/* ── Footer SEO links — bigger tap targets ── */
.landing-seo-links a {
  padding: 0.3rem 0.2rem !important;
  display: inline-block !important;
  touch-action: manipulation !important;
}

/* ── bizChip: taller ── */
#bizChip,
.biz-chip {
  min-height: 2rem !important;
  padding-top: 0.3rem !important;
  padding-bottom: 0.3rem !important;
  touch-action: manipulation !important;
}

/* ── Hunt HUD: all interactive controls ── */
.osd-minimize,
.hud-close,
.hud-expand,
#btnOsdMin,
#btnOsdExpand {
  min-width: 2.2rem !important;
  min-height: 2.2rem !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
}

/* ── Feedback buttons (Good fit / Wrong type / Not for me) ── */
.osd-fb,
.srd-fb button,
.pin-fb-btn {
  min-height: 2.5rem !important;
  padding: 0.5rem 0.85rem !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
}

/* ── Results workspace: sr-place cards ── */
.sr-place,
.sr-place-row {
  min-height: 3.5rem !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
}

/* ── Scan page close / back button ── */
#btnScanPageClose,
.scan-page-map-btn {
  min-height: 2.2rem !important;
  min-width: 5.5rem !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
}

/* ── Convert strip CTAs ── */
.convert-cta,
.convert-browse,
.convert-keep {
  min-height: 2.75rem !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
}

/* ── Mobile: ensure 44px minimum on small screens ── */
@media (max-width: 760px) {
  #btnPromptGo {
    min-height: 2.5rem !important;
    height: 2.5rem !important;
  }
  .prompt-mic,
  #btnMic {
    width: 2.5rem !important;
    height: 2.5rem !important;
    min-width: 2.5rem !important;
  }
  .home-mode {
    min-height: 2.2rem !important;
    padding: 0.4rem 0.7rem !important;
  }
  .foot-chips .chip,
  .ow-chips .chip,
  button.chip {
    min-height: 2.2rem !important;
    padding: 0.4rem 0.8rem !important;
  }
  #btnLandingSignIn,
  .ow-signin {
    min-height: 2.5rem !important;
  }
  .osd-fb,
  .srd-fb button,
  .pin-fb-btn {
    min-height: 2.75rem !important;
  }
}
/**
 * Post-login lifecycle: business memory, next steps, account menu.
 * Load after footer-dock-fix.css
 */

/* ── Next-step rail ── */
.lifecycle-rail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  pointer-events: auto;
  z-index: 35;
  margin: 0.15rem auto 0;
  padding: 0.28rem 0.45rem;
  width: fit-content;
  max-width: calc(100% - 1rem);
  border-radius: 999px;
  background: var(--ns-scrim, rgba(28, 25, 23, 0.94));
  border: 1px solid var(--ns-line, rgba(245, 245, 244, 0.14));
  box-shadow: var(--ns-shadow);
  color: var(--ns-ink, #f5f5f4);
}

.lifecycle-rail.hidden {
  display: none !important;
}

.lc-step {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 0;
  background: transparent;
  color: var(--ns-muted, #a8a29e);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.28rem 0.45rem;
  border-radius: 999px;
  cursor: pointer;
  /* Future/unreached steps are dimmed — makes active step obvious */
  opacity: 0.5;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}

/* Done and active steps are fully visible */
.lc-step.is-done,
.lc-step.is-active {
  opacity: 1;
}

.lc-step:hover {
  opacity: 1;
  color: var(--ns-ink, #f5f5f4);
  background: var(--ns-surface-input, rgba(245, 245, 244, 0.08));
}

.lc-step.is-active {
  color: var(--ns-ink, #f5f5f4);
  background: var(--ns-surface-input, rgba(245, 245, 244, 0.08));
}

/* Done: filled orange badge with check feel */
.lc-step.is-done .lc-n {
  background: var(--ns-clay, #fb923c);
  color: #1c1917;
}

/* Active: orange ring on badge — shows "you are here" */
.lc-step.is-active .lc-n {
  outline: 2px solid var(--ns-clay, #fb923c);
  outline-offset: 1px;
  background: rgba(251, 146, 60, 0.15);
}

.lc-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: var(--ns-surface-soft, #292524);
  font-size: 0.62rem;
  font-weight: 700;
}

.lc-sep {
  width: 0.75rem;
  height: 1px;
  background: var(--ns-line);
  opacity: 0.7;
}

/* ── Account menu ── */
.account-menu {
  position: fixed;
  top: calc(3.2rem + env(safe-area-inset-top, 0px));
  right: 0.65rem;
  z-index: 80;
  min-width: 11.5rem;
  padding: 0.3rem;
  border-radius: 0.85rem;
  background: var(--ns-scrim, rgba(28, 25, 23, 0.96));
  border: 1px solid var(--ns-line);
  box-shadow: var(--ns-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  pointer-events: auto;
}

.account-menu.hidden {
  display: none !important;
}

.am-item {
  border: 0;
  background: transparent;
  color: var(--ns-ink, #f5f5f4);
  text-align: left;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 550;
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  cursor: pointer;
}

.am-item:hover {
  background: var(--ns-surface-input, rgba(245, 245, 244, 0.08));
}

.am-item.am-danger {
  color: var(--ns-danger, #f87171);
}

/* Territory admin borders on map (Leaflet path) */
.territory-boundary {
  filter: drop-shadow(0 0 6px rgba(234, 88, 12, 0.35));
}
.territory-boundary--country {
  filter: drop-shadow(0 0 10px rgba(251, 146, 60, 0.4));
}
.territory-boundary--state {
  filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.35));
}
.territory-boundary--city {
  filter: drop-shadow(0 0 5px rgba(234, 88, 12, 0.3));
}

/* ── Post-login sell case strip ── */
.seller-case-strip {
  margin: 0.35rem 0 0.15rem;
  padding: 0.65rem 0.8rem;
  border-radius: 0.85rem;
  background: rgba(28, 25, 23, 0.92);
  border: 1px solid rgba(251, 146, 60, 0.35);
  color: #fafaf9;
  text-align: left;
  pointer-events: auto !important;
}
.seller-case-strip.hidden {
  display: none !important;
}
.sc-kicker {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fb923c;
}
.sc-summary {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
  color: #fafaf9;
}
.sc-angles {
  margin: 0.4rem 0 0;
  padding: 0 0 0 1rem;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #d6d3d1;
}
.sc-angles li {
  margin: 0.15rem 0;
}
.sc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}
.sc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: 0.4rem 0.7rem;
  border-radius: 0.6rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fafaf9;
}
.sc-btn-primary {
  border-color: rgba(251, 146, 60, 0.5);
  background: rgba(251, 146, 60, 0.14);
  color: #fdba74;
}
.sc-btn-cta {
  border: 0;
  background: #ea580c;
  color: #fff;
}
.sc-btn-cta:hover {
  background: #c2410c;
}
.landing-ui.ow-ui .seller-case-strip,
.landing-ui.ow-ui .seller-case-strip * {
  pointer-events: auto !important;
}

/* ── Territory sheet (city / ZIP / county / country) ── */
.territory-sheet {
  position: fixed !important;
  inset: 0 !important;
  z-index: 320 !important;
  display: flex !important;
  align-items: flex-start;
  justify-content: center;
  padding: max(4.5rem, calc(env(safe-area-inset-top, 0px) + 3.5rem)) 0.75rem 1rem;
  pointer-events: auto !important;
  isolation: isolate;
}
.territory-sheet.hidden {
  display: none !important;
}
.territory-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  border: 0;
  cursor: pointer;
  pointer-events: auto !important;
  z-index: 0;
}
.territory-card {
  position: relative;
  z-index: 2;
  width: min(24rem, 100%);
  max-height: min(88dvh, 36rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 1.1rem;
  background: #1c1917;
  color: #fafaf9;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  padding: 0.95rem 1rem 1rem;
  pointer-events: auto !important;
  touch-action: manipulation;
}
.territory-card input,
.territory-card button,
.territory-card label,
.territory-form,
.territory-form * {
  pointer-events: auto !important;
  touch-action: manipulation;
}
.territory-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.25rem;
}
.territory-kicker {
  margin: 0 0 0.12rem;
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fb923c;
}
.territory-head h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #fafaf9;
}
.territory-close {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fafaf9;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.territory-close:hover {
  background: rgba(255, 255, 255, 0.14);
}
.territory-lede {
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #a8a29e;
}
.territory-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.territory-field input,
#territoryInput {
  width: 100% !important;
  box-sizing: border-box;
  min-height: 2.85rem !important;
  padding: 0.65rem 0.85rem !important;
  border-radius: 0.75rem !important;
  border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
  background: #0c0a09 !important;
  background-color: #0c0a09 !important;
  color: #fafaf9 !important;
  -webkit-text-fill-color: #fafaf9 !important;
  font: inherit;
  font-size: 0.95rem !important;
  font-weight: 550 !important;
  outline: none;
  caret-color: #fb923c !important;
  color-scheme: dark;
}
#territoryInput::placeholder {
  color: #a8a29e !important;
  -webkit-text-fill-color: #a8a29e !important;
  opacity: 1 !important;
}
#territoryInput:focus {
  border-color: rgba(251, 146, 60, 0.65) !important;
  box-shadow: 0 0 0 2px rgba(251, 146, 60, 0.2) !important;
  background: #0c0a09 !important;
  color: #fafaf9 !important;
  -webkit-text-fill-color: #fafaf9 !important;
}
#territoryInput:-webkit-autofill,
#territoryInput:-webkit-autofill:focus {
  -webkit-text-fill-color: #fafaf9 !important;
  -webkit-box-shadow: 0 0 0 1000px #0c0a09 inset !important;
  box-shadow: 0 0 0 1000px #0c0a09 inset !important;
}
.territory-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
}
.territory-hints span {
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: #a8a29e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  background: rgba(255, 255, 255, 0.04);
}
.territory-status {
  min-height: 1.15rem;
  margin: 0;
  font-size: 0.75rem;
  color: #a8a29e;
}
.territory-status.is-ok {
  color: #a3e635;
}
.territory-status.is-err {
  color: #f87171;
}
.territory-status.is-busy {
  color: #fdba74;
}
.territory-quick-row {
  display: flex;
  gap: 0.4rem;
  align-items: stretch;
}
.territory-apply,
#btnTerritoryApply {
  flex: 1 1 auto;
  min-height: 2.55rem;
  border: 0;
  border-radius: 0.75rem;
  background: #ea580c;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
.territory-apply:hover {
  background: #c2410c;
}
.territory-apply:disabled {
  opacity: 0.65;
  cursor: wait;
}
.territory-gps,
#btnTerritoryGps {
  flex: 0 0 auto;
  min-width: 5.5rem;
  min-height: 2.55rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fafaf9;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  padding: 0 0.75rem;
}
.territory-gps:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(251, 146, 60, 0.45);
}

/* Advanced toggle — quiet, not a second primary CTA */
.territory-advanced-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  margin-top: 0.15rem;
  padding: 0.45rem;
  border: 0;
  background: transparent;
  color: #a8a29e;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
  border-radius: 0.5rem;
}
.territory-advanced-toggle:hover {
  color: #fafaf9;
  background: rgba(255, 255, 255, 0.05);
}
.territory-advanced-toggle[aria-expanded="true"] {
  color: #fdba74;
}
.territory-advanced-toggle[aria-expanded="true"] .territory-adv-chevron {
  transform: rotate(180deg);
}
.territory-adv-chevron {
  display: inline-block;
  transition: transform 0.15s ease;
  font-size: 0.7rem;
}

.territory-advanced {
  margin-top: 0.15rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.territory-advanced.hidden {
  display: none !important;
}

.territory-seg {
  display: flex;
  gap: 0.25rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}
.territory-seg-btn {
  flex: 1;
  border: 0;
  background: transparent;
  color: #a8a29e;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 650;
  padding: 0.4rem 0.5rem;
  border-radius: 999px;
  cursor: pointer;
}
.territory-seg-btn.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fafaf9;
}
.territory-help {
  margin: 0;
  font-size: 0.72rem;
  color: #78716c;
  line-height: 1.35;
}
.territory-tab-panel.hidden {
  display: none !important;
}

.territory-preset-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.territory-preset {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #e7e5e4;
  border-radius: 999px;
  padding: 0.38rem 0.7rem;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.25;
}
.territory-preset:hover {
  border-color: rgba(251, 146, 60, 0.5);
  color: #fff;
}
.territory-preset.is-active {
  background: rgba(251, 146, 60, 0.18);
  border-color: rgba(251, 146, 60, 0.55);
  color: #fed7aa;
}

.territory-filter {
  width: 100%;
  box-sizing: border-box;
  min-height: 2.25rem;
  padding: 0.4rem 0.7rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fafaf9;
  font: inherit;
  font-size: 0.82rem;
  outline: none;
}
.territory-filter:focus {
  border-color: rgba(251, 146, 60, 0.5);
}
.territory-state-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.3rem;
  max-height: 11.5rem;
  overflow-y: auto;
  padding: 0.1rem 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.territory-state {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #d6d3d1;
  border-radius: 0.5rem;
  padding: 0.38rem 0.25rem;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
}
.territory-state:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.territory-state.is-on {
  background: rgba(251, 146, 60, 0.2);
  border-color: rgba(251, 146, 60, 0.55);
  color: #fed7aa;
}
.territory-state[hidden] {
  display: none !important;
}

.territory-multi-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding: 0.4rem 0 0;
  font-size: 0.72rem;
  color: #a8a29e;
}
.territory-multi-bar[hidden] {
  display: none !important;
}
.territory-apply-sm,
.territory-save-sm {
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}
.territory-apply-sm {
  background: #ea580c;
  color: #fff;
  margin-left: auto;
}
.territory-save-sm {
  background: rgba(255, 255, 255, 0.08);
  color: #e7e5e4;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.territory-section-label {
  margin: 0 0 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #78716c;
}
.territory-saved {
  margin-bottom: 0.55rem;
}
.territory-saved[hidden] {
  display: none !important;
}
.territory-saved-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.territory-saved-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fafaf9;
  border-radius: 999px;
  padding: 0.28rem 0.35rem 0.28rem 0.65rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  max-width: 100%;
}
.territory-saved-chip.is-active {
  border-color: rgba(251, 146, 60, 0.55);
  background: rgba(251, 146, 60, 0.14);
  color: #fed7aa;
}
.territory-saved-chip .terr-x {
  border: 0;
  background: transparent;
  color: #a8a29e;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0.1rem 0.35rem;
  cursor: pointer;
  border-radius: 999px;
}
.territory-saved-chip .terr-x:hover {
  color: #f87171;
  background: rgba(248, 113, 113, 0.12);
}

@media (max-width: 380px) {
  .territory-state-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Business sheet (quick setup) ── */
/* Above map, hunt HUD, convert strip — must receive clicks/keyboard */
.biz-sheet {
  position: fixed;
  inset: 0;
  z-index: 280 !important;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.65rem;
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
  pointer-events: auto !important;
  isolation: isolate;
}

.biz-sheet.hidden {
  display: none !important;
  pointer-events: none !important;
}

.biz-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  border: 0;
  cursor: pointer;
  pointer-events: auto !important;
  z-index: 0;
}

.biz-sheet-card {
  position: relative;
  z-index: 2;
  width: min(26rem, 100%);
  max-height: min(90dvh, 42rem);
  height: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.15rem 1.15rem 0.85rem 0.85rem;
  background: #1c1917;
  color: #f5f5f4;
  color-scheme: dark;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  padding: 0;
  -webkit-overflow-scrolling: touch;
  pointer-events: auto !important;
  /* Isolate from parent light-theme vars that washed field text */
  --ns-ink: #fafaf9;
  --ns-ink-soft: #e7e5e4;
  --ns-muted: #a8a29e;
  --ns-surface-input: #0c0a09;
  --ns-surface-elevated: #0c0a09;
  --ns-line: rgba(255, 255, 255, 0.22);
}

/* Map must not steal gestures while Quick Setup is open */
body.biz-sheet-open #mapStage,
body.biz-sheet-open #mapCanvas,
body.biz-sheet-open .leaflet-container,
body.biz-sheet-open .map-stage {
  pointer-events: none !important;
}
body.biz-sheet-open {
  overflow: hidden;
}
body.biz-sheet-open .biz-sheet,
body.biz-sheet-open .biz-sheet-card,
body.biz-sheet-open .biz-sheet input,
body.biz-sheet-open .biz-sheet button,
body.biz-sheet-open .biz-sheet textarea,
body.biz-sheet-open .biz-form-scroll {
  pointer-events: auto !important;
}

.biz-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
  padding: 0.9rem 0.95rem 0.35rem;
  background: #1c1917;
  z-index: 2;
}

.biz-sheet-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fafaf9;
}

.biz-close {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fafaf9;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  pointer-events: auto;
}
.biz-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.biz-kicker {
  margin: 0 0 0.15rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fb923c;
}

/* Step navigation */
.biz-steps {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
  padding: 0.35rem 0.95rem 0.55rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.biz-steps::-webkit-scrollbar {
  display: none;
}
.biz-step {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #a8a29e;
  border-radius: 999px;
  padding: 0.32rem 0.55rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  pointer-events: auto;
}
.biz-step:hover {
  border-color: rgba(251, 146, 60, 0.45);
  color: #fafaf9;
}
.biz-step.is-active {
  background: rgba(251, 146, 60, 0.16);
  border-color: rgba(251, 146, 60, 0.55);
  color: #fafaf9;
}
.biz-step.is-done .biz-step-n {
  background: #ea580c;
  color: #fff;
}
.biz-step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.62rem;
  font-weight: 750;
}
.biz-step.is-active .biz-step-n {
  background: #ea580c;
  color: #fff;
}
.biz-step-line {
  width: 0.55rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.biz-lede {
  margin: 0;
  padding: 0 0.95rem 0.55rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #a8a29e;
  flex-shrink: 0;
}

.biz-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  gap: 0;
  overflow: hidden;
  pointer-events: auto !important;
}

.biz-form-scroll {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(55dvh, 28rem);
  overflow-x: hidden;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  padding: 0 0.95rem 0.5rem;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  pointer-events: auto !important;
}

.biz-form-scroll input,
.biz-form-scroll button,
.biz-form-scroll label,
.biz-sheet input,
.biz-sheet button,
.biz-sheet select,
.biz-sheet textarea {
  pointer-events: auto !important;
  touch-action: manipulation;
}

/* Inputs must be typeable (never inherit map none) */
.biz-sheet input[type="text"],
.biz-sheet input[type="url"],
.biz-sheet input:not([type]),
.biz-sheet #bizWebsiteInput,
.biz-sheet #bizOffer,
.biz-sheet #bizTarget,
.biz-sheet #bizGeo {
  -webkit-user-select: text !important;
  user-select: text !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  position: relative;
  z-index: 2;
}

.biz-actions-sticky {
  flex-shrink: 0;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.45rem !important;
  margin: 0 !important;
  padding: 0.65rem 0.95rem max(0.75rem, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #1c1917;
}
.biz-actions-sticky .biz-save,
#btnBizSaveSearch {
  width: 100% !important;
  min-height: 2.75rem !important;
  height: auto !important;
  border: 0 !important;
  border-radius: 0.75rem !important;
  background: #ea580c !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}
.biz-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.biz-save-only,
#btnBizSave {
  flex: 1 1 auto;
  min-height: 2.35rem !important;
  height: auto !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fafaf9 !important;
  border-radius: 0.7rem !important;
  font-weight: 650 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}
.biz-actions-sticky .biz-skip {
  margin: 0 !important;
  padding: 0.5rem 0.65rem !important;
  text-decoration: none !important;
  border: 0 !important;
  background: transparent !important;
  color: #a8a29e !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  white-space: nowrap;
  cursor: pointer !important;
  pointer-events: auto !important;
}
.biz-actions-sticky .biz-skip:hover {
  color: #fafaf9 !important;
}

.biz-discover {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0.75rem 0 0.35rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(251, 146, 60, 0.08);
  font-size: 0.8rem;
  line-height: 1.4;
  color: #e7e5e4;
  cursor: pointer;
}
.biz-discover input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: #fb923c;
}
/* Let the copy shrink + wrap within the flex row instead of overflowing the
   sheet (clipped by biz-form-scroll's overflow-x:hidden on ~375px screens). */
.biz-discover span {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}
.biz-discover strong {
  display: block;
  color: #fafaf9;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.biz-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ns-ink-soft, #e7e5e4);
}

.biz-field-primary input {
  font-size: 1rem !important;
  min-height: 2.75rem !important;
}

/* Site / LinkedIn row + Go */
.biz-url-row {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
  width: 100%;
}
.biz-url-row input {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.95rem !important;
  min-height: 2.75rem !important;
}
.biz-scan-btn {
  flex: 0 0 auto;
  min-width: 3.25rem;
  padding: 0 0.9rem;
  border: 0;
  border-radius: 0.7rem;
  background: #ea580c;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  pointer-events: auto;
}
.biz-scan-btn:hover {
  background: #c2410c;
}
.biz-scan-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}
.biz-scan-hint {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  color: #a8a29e;
}
.biz-identified {
  margin-top: 0.65rem;
  padding: 0.55rem 0.65rem 0.65rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(251, 146, 60, 0.28);
  background: rgba(251, 146, 60, 0.08);
}
.biz-identified-k {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fdba74;
}
.biz-identified .biz-field {
  margin: 0;
}
.biz-identified-meta {
  margin: 0.4rem 0 0;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  color: #d6d3d1;
}
.biz-no-site {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
}
.biz-no-site .linkish {
  background: none;
  border: 0;
  padding: 0;
  color: #fdba74;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.biz-find-note {
  margin: -0.15rem 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  color: #a8a29e;
}

.biz-field.is-biz-focus,
.biz-field-block.is-biz-focus {
  outline: 1px solid rgba(251, 146, 60, 0.35);
  outline-offset: 4px;
  border-radius: 0.75rem;
  padding: 0.35rem;
  margin: -0.35rem;
  background: rgba(251, 146, 60, 0.06);
}

.biz-field em,
.biz-opt {
  font-style: normal;
  font-weight: 500;
  color: var(--ns-muted, #a8a29e);
  font-size: 0.72rem;
}

.biz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: -0.25rem;
}

.biz-sheet .biz-chip,
.biz-chip {
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f5f5f4 !important;
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.3;
}
.biz-sheet .biz-chip:hover,
.biz-chip:hover {
  border-color: rgba(251, 146, 60, 0.65) !important;
  background: rgba(251, 146, 60, 0.16) !important;
  color: #fff !important;
}

/*
 * Quick Setup always sits on a dark card — pin high-contrast field colors
 * with !important so global / theme rules never wash text out.
 */
.biz-sheet .biz-field input,
.biz-sheet .biz-field select,
.biz-sheet .biz-url-row input,
.biz-sheet #bizWebsiteInput,
.biz-sheet #bizOffer,
.biz-sheet #bizTarget,
.biz-sheet #bizGeo,
.settings-biz-form input,
.settings-biz-form select {
  font: inherit !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  color: #fafaf9 !important;
  -webkit-text-fill-color: #fafaf9 !important;
  background: #0c0a09 !important;
  background-color: #0c0a09 !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 0.7rem !important;
  overflow-x: auto;
  text-overflow: clip;
  white-space: nowrap;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.75rem !important;
  min-height: 2.55rem !important;
  caret-color: #fb923c !important;
  color-scheme: dark;
}

.biz-sheet .biz-field input::placeholder,
.biz-sheet .biz-url-row input::placeholder,
.biz-sheet #bizWebsiteInput::placeholder,
.biz-sheet #bizOffer::placeholder,
.biz-sheet #bizTarget::placeholder,
.biz-sheet #bizGeo::placeholder,
.settings-biz-form input::placeholder {
  color: #a8a29e !important;
  -webkit-text-fill-color: #a8a29e !important;
  opacity: 1 !important;
}

.biz-sheet .biz-field input:-webkit-autofill,
.biz-sheet .biz-field input:-webkit-autofill:hover,
.biz-sheet .biz-field input:-webkit-autofill:focus,
.biz-sheet .biz-url-row input:-webkit-autofill,
.biz-sheet #bizWebsiteInput:-webkit-autofill,
.biz-sheet #bizOffer:-webkit-autofill,
.biz-sheet #bizTarget:-webkit-autofill,
.biz-sheet #bizGeo:-webkit-autofill {
  -webkit-text-fill-color: #fafaf9 !important;
  caret-color: #fb923c !important;
  -webkit-box-shadow: 0 0 0 1000px #0c0a09 inset !important;
  box-shadow: 0 0 0 1000px #0c0a09 inset !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  transition: background-color 99999s ease-in-out 0s;
}

.biz-field input,
.biz-field select,
.settings-biz-form input,
.settings-biz-form select {
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: #fafaf9;
  background: #0c0a09;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.7rem;
  overflow-x: auto;
  text-overflow: clip;
  white-space: nowrap;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.75rem;
  min-height: 2.55rem;
  caret-color: #fb923c;
}

.biz-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.25rem;
}
.biz-actions .biz-save {
  width: 100%;
  min-height: 2.7rem;
}
.biz-skip {
  margin-top: 0.15rem;
  border: 0;
  background: transparent;
  color: var(--ns-muted, #a8a29e);
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0.35rem;
}
.biz-skip:hover {
  color: var(--ns-ink, #f5f5f4);
}

.biz-status {
  min-height: 1.1rem;
  margin: 0;
  font-size: 0.75rem;
  color: var(--ns-muted, #a8a29e);
}
.biz-status.is-ok {
  color: #4ade80;
}
.biz-status.is-err {
  color: #f87171;
}

.biz-sheet .biz-field input:focus,
.biz-sheet .biz-field select:focus,
.biz-sheet .biz-url-row input:focus,
.biz-sheet #bizWebsiteInput:focus,
.biz-sheet #bizOffer:focus,
.biz-sheet #bizTarget:focus,
.biz-sheet #bizGeo:focus,
.biz-field input:focus,
.biz-field select:focus,
.settings-biz-form input:focus,
.settings-biz-form select:focus {
  outline: none !important;
  border-color: #fb923c !important;
  box-shadow: 0 0 0 2px rgba(251, 146, 60, 0.35) !important;
  background: #0c0a09 !important;
  color: #fafaf9 !important;
  -webkit-text-fill-color: #fafaf9 !important;
}

.biz-status {
  min-height: 1.1rem;
  margin: 0;
  font-size: 0.75rem;
  color: var(--ns-muted, #a8a29e);
}

.biz-status.is-ok {
  color: var(--ns-ok, #a3e635);
}

.biz-status.is-err {
  color: var(--ns-danger, #f87171);
}

.biz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-top: 0.2rem;
}

.biz-save {
  min-width: 5.5rem !important;
  height: 2.2rem !important;
  padding: 0 0.9rem !important;
  font-size: 0.85rem !important;
}

/* Compact seller row: YOU SELL + site line — centered in the dock */
.seller-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.45rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  text-align: center;
}
.seller-bar:empty,
.seller-bar:not(:has(.biz-chip:not(.hidden))):not(:has(.site-scan-row:not([hidden]))) {
  display: none;
}

/* Chip on composer — size to content, centered with site line */
.prompt-dock .biz-chip,
.landing-bottom .biz-chip#bizChip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: auto;
  max-width: min(18rem, 100%);
  flex: 0 1 auto;
  margin: 0 auto;
  border: 1px solid rgba(251, 146, 60, 0.35);
  background: rgba(251, 146, 60, 0.12);
  color: var(--ns-ink, #f5f5f4);
  border-radius: 999px;
  padding: 0.22rem 0.55rem 0.22rem 0.5rem;
  font: inherit;
  cursor: pointer;
  text-align: center;
  min-height: 1.7rem;
}
/* Base chip (sheet chips keep left-aligned labels via .biz-sheet rules) */
.biz-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  width: auto;
  max-width: min(16.5rem, 100%);
  flex: 0 1 auto;
  border: 1px solid rgba(251, 146, 60, 0.35);
  background: rgba(251, 146, 60, 0.12);
  color: var(--ns-ink, #f5f5f4);
  border-radius: 999px;
  padding: 0.22rem 0.55rem 0.22rem 0.5rem;
  font: inherit;
  cursor: pointer;
  text-align: left;
  min-height: 1.7rem;
}

.biz-chip.hidden {
  display: none !important;
}

.biz-chip:hover {
  border-color: var(--ns-clay, #fb923c);
  background: rgba(251, 146, 60, 0.18);
}

.biz-chip-k {
  font-size: 0.58rem;
  font-weight: 750;
  color: #fdba74;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.biz-chip-v {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 9.5rem;
  font-size: 0.72rem;
  font-weight: 650;
  color: #fafaf9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.biz-chip-edit {
  font-size: 0.62rem;
  font-weight: 700;
  color: #fb923c;
  flex-shrink: 0;
}

.biz-chip.is-empty .biz-chip-v {
  color: #fb923c;
}

/* Settings form */
.settings-biz-form {
  max-width: 28rem;
  margin-bottom: 1.25rem;
}

.settings-biz-form .biz-field {
  color: inherit;
}

body.is-signed-in #btnLandingBiz {
  display: inline-flex;
}

/* Pre-login: phase you vs pair (not Yelp directory) */
.prompt-dock.is-phase-you .home-modes {
  display: none !important;
}

.prompt-dock.is-phase-pair .home-modes {
  display: flex !important;
}

.prompt-dock.is-phase-you .biz-chip {
  display: none !important;
}
.prompt-dock.is-phase-you .seller-bar:not(:has(.site-scan-row:not([hidden]))) {
  display: none !important;
}

.home-modes.hidden {
  display: none !important;
}

.guest-rail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0.1rem auto 0;
  padding: 0.22rem 0.5rem;
  width: fit-content;
  max-width: calc(100% - 1rem);
  border-radius: 999px;
  background: var(--ns-scrim, rgba(28, 25, 23, 0.9));
  border: 1px solid var(--ns-line);
  color: var(--ns-muted, #a8a29e);
  font-size: 0.65rem;
  font-weight: 600;
  pointer-events: none;
  z-index: 34;
}

.guest-rail .gr-on {
  color: var(--ns-ink, #f5f5f4);
}

.guest-rail .gr-dot {
  opacity: 0.45;
}

.guest-rail.hidden {
  display: none !important;
}

/* Site line: 🔗 host · Scanned|Scanning|Error  ⚙️ */
.site-scan-row {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  width: auto;
  max-width: min(24rem, 100%);
  min-width: 0;
  flex: 0 1 auto;
  margin: 0 auto;
  padding: 0.22rem 0.28rem 0.22rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  font-size: 0.7rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-align: center;
  color: #e7e5e4;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.site-scan-row[hidden] {
  display: none !important;
}

/* Scanned = linked OK */
.site-scan-row.is-scanned {
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.1);
}
/* Scanning = in progress */
.site-scan-row.is-scanning {
  border-color: rgba(251, 146, 60, 0.45);
  background: rgba(251, 146, 60, 0.1);
}
/* Error */
.site-scan-row.is-error {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.1);
}
.site-scan-row.is-linkedin.is-scanned {
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(96, 165, 250, 0.1);
}

.site-scan-connector {
  flex-shrink: 0;
  font-size: 0.88rem;
  line-height: 1;
  width: 1.1rem;
  text-align: center;
}
.site-scan-row.is-scanning .site-scan-connector {
  animation: site-scan-spin 0.9s linear infinite;
  display: inline-block;
}
@keyframes site-scan-spin {
  to {
    transform: rotate(360deg);
  }
}

.site-scan-url {
  font-weight: 700;
  color: #fafaf9;
  min-width: 0;
  flex: 0 1 auto;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-scan-dot {
  color: rgba(168, 162, 158, 0.75);
  flex-shrink: 0;
}
.site-scan-status {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  color: #a8a29e;
}
.site-scan-row.is-scanned .site-scan-status {
  color: #4ade80;
}
.site-scan-row.is-scanning .site-scan-status {
  color: #fdba74;
}
.site-scan-row.is-error .site-scan-status {
  color: #f87171;
}
.site-scan-row.is-linkedin.is-scanned .site-scan-status {
  color: #93c5fd;
}

/* Config / settings widget — subtle, matches pill (never orange CTA fill) */
button.site-scan-gear,
.site-scan-gear {
  flex-shrink: 0;
  display: inline-grid !important;
  place-items: center;
  width: 1.55rem !important;
  height: 1.55rem !important;
  min-width: 1.55rem !important;
  min-height: 1.55rem !important;
  margin: 0 0 0 0.1rem !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  background-color: rgba(255, 255, 255, 0.06) !important;
  color: #d6d3d1 !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  cursor: pointer;
  pointer-events: auto !important;
  transition: background 0.12s ease, transform 0.12s ease, border-color 0.12s ease;
}
.site-scan-row.is-scanned .site-scan-gear {
  border-color: rgba(74, 222, 128, 0.28) !important;
  background: rgba(74, 222, 128, 0.1) !important;
  color: #bbf7d0 !important;
}
button.site-scan-gear:hover,
.site-scan-gear:hover,
button.site-scan-gear:focus,
.site-scan-gear:focus,
button.site-scan-gear:active,
.site-scan-gear:active {
  background: rgba(255, 255, 255, 0.12) !important;
  background-color: rgba(255, 255, 255, 0.12) !important;
  color: #fafaf9 !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  transform: rotate(28deg);
  box-shadow: none !important;
  outline: none !important;
}
.site-scan-row.is-scanned .site-scan-gear:hover {
  background: rgba(74, 222, 128, 0.18) !important;
  border-color: rgba(74, 222, 128, 0.4) !important;
  color: #ecfdf5 !important;
}
.site-scan-gear:focus-visible {
  outline: 1px solid rgba(168, 162, 158, 0.55) !important;
  outline-offset: 1px;
}

/* Prefer a clean centered stack on narrow docks */
@media (max-width: 640px) {
  .seller-bar {
    flex-direction: column;
    gap: 0.2rem;
  }
  .prompt-dock .biz-chip,
  .landing-bottom .biz-chip#bizChip {
    max-width: min(20rem, 100%);
  }
  .site-scan-row {
    max-width: min(22rem, 100%);
  }
}

/* Value line under hint */
.value-line {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--ns-muted, #a8a29e);
  text-align: center;
  font-weight: 500;
}

.prompt-dock.is-phase-pair .value-line {
  display: none;
}

.composer-alt {
  margin: 0;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  justify-content: center;
  align-items: center;
}

.composer-alt-sep {
  color: var(--ns-stone, #a8a29e);
  font-size: 0.65rem;
  user-select: none;
}

.composer-alt .linkish,
button.linkish {
  border: 0;
  background: none;
  color: var(--ns-clay, #fb923c);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0.1rem;
}

.prompt-dock.is-phase-pair .composer-alt {
  display: none;
}

/* ── Slim file-picker row ───────────────────────────────────────────────────
   Hidden by default; revealed only when user clicks "Upload a file".
   Never shows the native <input type=file> widget — we style our own trigger.
*/
.composer-file-row {
  display: none;           /* hidden by default — JS sets display:flex to reveal */
  margin: 0.1rem 0 0;
  padding: 0.2rem 0.6rem;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: var(--ns-stone, #a8a29e);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 6px;
  background: rgba(255,255,255,.04);
  max-width: 26rem;
  margin-inline: auto;
}

.composer-file-row input[type="file"] {
  /* Always hidden — used only as a programmatic trigger */
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.composer-file-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.68rem;
  color: var(--ns-stone, #a8a29e);
}

.composer-file-cancel {
  font-size: 0.6rem !important;
  color: var(--ns-stone, #a8a29e) !important;
  text-decoration: none !important;
  opacity: 0.6;
  padding: 0 0.1rem !important;
}

/* Convert strip — docked in landing-bottom (one footer stack, not floating over dock) */
.convert-strip,
.convert-strip-docked {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  z-index: 5 !important;
  width: 100% !important;
  max-width: min(42rem, 100%) !important;
  margin: 0 auto 0.35rem !important;
  padding: 0 !important;
  pointer-events: auto !important;
  box-sizing: border-box;
  order: -1; /* above search dock in flex column if needed */
  flex: 0 0 auto;
}

.convert-strip.hidden {
  display: none !important;
}

.convert-strip-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 1rem;
  background: rgba(28, 25, 23, 0.98);
  border: 1px solid rgba(251, 146, 60, 0.4);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  color: #f5f5f4;
  pointer-events: auto !important;
  box-sizing: border-box;
}

.convert-copy {
  flex: 1 1 12rem;
  min-width: 0;
}

.convert-kicker {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fb923c;
}

.convert-title {
  margin: 0.1rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fafaf9;
  max-height: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
}

.convert-body {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #a8a29e;
  max-height: none;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}
.convert-title::-webkit-scrollbar,
.convert-body::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
.convert-title::-webkit-scrollbar-thumb,
.convert-body::-webkit-scrollbar-thumb {
  background: rgba(251, 146, 60, 0.45);
  border-radius: 999px;
}

.convert-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: flex-end;
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}

.convert-keep,
#btnConvertKeep,
.convert-cta,
#btnConvertResearch {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 8.5rem !important;
  min-height: 2.45rem !important;
  height: auto !important;
  max-height: none !important;
  padding: 0.5rem 0.85rem !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  border-radius: 0.7rem !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: rgba(251, 146, 60, 0.35);
  user-select: none;
  -webkit-user-select: none;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative !important;
  z-index: 3 !important;
}

.convert-keep,
#btnConvertKeep {
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fafaf9 !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}
.convert-keep:hover,
#btnConvertKeep:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
}

/* Primary paid CTA — solid clay, never share .prompt-go dock styles */
.convert-cta,
#btnConvertResearch {
  border: 0 !important;
  background: #ea580c !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(234, 88, 12, 0.45) !important;
}
.convert-cta:hover,
#btnConvertResearch:hover {
  background: #c2410c !important;
}
.convert-keep:focus-visible,
#btnConvertKeep:focus-visible,
.convert-cta:focus-visible,
#btnConvertResearch:focus-visible {
  outline: 2px solid #fb923c !important;
  outline-offset: 2px !important;
}
.convert-keep:active,
#btnConvertKeep:active,
.convert-cta:active,
#btnConvertResearch:active {
  transform: scale(0.98);
}

@media (min-width: 420px) {
  .convert-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .convert-keep,
  #btnConvertKeep,
  .convert-cta,
  #btnConvertResearch {
    flex: 1 1 calc(50% - 0.25rem) !important;
    width: auto !important;
    min-width: 10rem !important;
  }
}

/* Room for fixed strip above footer dock on short phones */
@media (max-width: 520px) {
  .convert-strip {
    bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}

body.has-free-look {
  /* strip + results workspace take focus after free look */
}

/* ── Convert strip v2: step chips + browse CTA ── */
.convert-strip-v2 .convert-strip-inner {
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  padding: 0.75rem 0.9rem;
}
.convert-strip-v2 .convert-copy {
  flex: 1 1 auto;
}
.convert-strip-v2 .convert-title {
  white-space: normal;
  font-size: 0.98rem;
  line-height: 1.25;
  max-height: none;
}
.convert-strip-v2 .convert-body {
  -webkit-line-clamp: 3;
  font-size: 0.74rem;
  color: #d6d3d1;
}
.convert-steps {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.convert-steps li {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.68rem;
  font-weight: 650;
  color: #e7e5e4;
}
.convert-steps li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background: #ea580c;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
}
.convert-actions-v2 {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem !important;
  width: 100%;
}
.convert-actions-v2 .convert-cta,
.convert-actions-v2 #btnConvertResearch {
  grid-column: 1 / -1;
  min-width: 0 !important;
  width: 100% !important;
  flex: none !important;
}
.convert-browse,
#btnConvertBrowse,
.convert-keep,
#btnConvertKeep {
  min-width: 0 !important;
  width: 100% !important;
  flex: none !important;
}
.convert-browse,
#btnConvertBrowse {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 2.45rem !important;
  padding: 0.5rem 0.75rem !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  border-radius: 0.7rem !important;
  border: 1.5px solid rgba(251, 146, 60, 0.55) !important;
  background: rgba(251, 146, 60, 0.14) !important;
  color: #fdba74 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}
.convert-browse:hover,
#btnConvertBrowse:hover {
  background: rgba(251, 146, 60, 0.24) !important;
  color: #ffedd5 !important;
}
@media (min-width: 520px) {
  .convert-strip-v2 .convert-strip-inner {
    flex-direction: row;
    align-items: center;
  }
  .convert-actions-v2 {
    flex: 0 0 14rem;
    width: 14rem;
    grid-template-columns: 1fr;
  }
  .convert-actions-v2 .convert-cta,
  .convert-actions-v2 #btnConvertResearch {
    grid-column: auto;
  }
}

/* ══════════════════════════════════════════════════════════════════
   FREE-LOOK RESULTS WORKSPACE  —  redesigned for conversion
   Structure: topbar / hero / (list | detail)
   Nothing relies on pointer-events inheritance — every interactive
   element gets explicit pointer-events: auto.
   ══════════════════════════════════════════════════════════════════ */

/* 1 ── Scan page: full-screen takeover ───────────────────────────── */
.scan-page {
  position: fixed !important;
  inset: 0 !important;
  z-index: 400 !important;
  background: #0c0a09 !important;
  color: #fafaf9 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  pointer-events: auto !important;
  isolation: isolate !important;
  touch-action: manipulation !important;
}
/* 2 ── Ensure .hidden always wins ────────────────────────────────── */
.scan-page.hidden { display: none !important; }

/* 3 ── Kill everything behind the results workspace ─────────────── */
body.results-open #huntHud,
body.results-open .hunt-osd,
body.results-open .convert-strip,
body.results-open .pin-fb-sheet { display: none !important; }
body.results-open .landing-ui {
  visibility: hidden !important;
  pointer-events: none !important;
}
body.results-open #mapCanvas,
body.results-open .map-stage,
body.results-open .leaflet-container,
body.results-open .leaflet-pane,
body.results-open .leaflet-control-container,
body.results-open .leaflet-overlay-pane,
body.results-open .leaflet-marker-pane,
body.results-open .leaflet-shadow-pane,
body.results-open .leaflet-tooltip-pane,
body.results-open .leaflet-popup-pane { pointer-events: none !important; }

/* Nuclear pointer-events reset — every element in #scanPage is hittable */
#scanPage, #scanPage * {
  pointer-events: auto !important;
  touch-action: manipulation !important;
}

/* 4 ── Top bar: always 56 px, back button always visible ─────────── */
.scan-page-top {
  flex: 0 0 56px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.25rem;
  background: #111;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}
.scan-page-titles {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.scan-page-top strong,
#scanPageTitle {
  display: block;
  font-size: 0.97rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #fafaf9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scan-page-sub {
  font-size: 0.72rem;
  color: #78716c;
  margin: 0.1rem 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scan-page-top-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
/* Back to map — always reachable, high contrast */
.scan-page-top .ghost,
.scan-page-map-btn,
#btnScanPageClose,
#btnScanPageMap {
  display: inline-flex !important;
  align-items: center !important;
  height: 36px !important;
  padding: 0 1rem !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  background: rgba(255,255,255,0.07) !important;
  color: #fafaf9 !important;
  font-size: 0.82rem !important;
  font-weight: 650 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  position: relative !important;
  z-index: 3 !important;
  touch-action: manipulation !important;
}
.scan-page-top .ghost:hover,
#btnScanPageClose:hover {
  background: rgba(255,255,255,0.13) !important;
  border-color: rgba(255,255,255,0.4) !important;
}

/* 5 ── Hero strip: compact count + action buttons ────────────────── */
.scan-results-hero {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  background: #141210;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative;
  z-index: 1;
}
.scan-results-hero.hidden { display: none !important; }
.sr-hero-copy { flex: 1 1 auto; min-width: 0; }
.sr-kicker {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ea580c;
  margin: 0;
}
.sr-title {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fafaf9;
  margin: 0.15rem 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sr-lead {
  font-size: 0.78rem;
  color: #78716c;
  margin: 0.2rem 0 0;
  line-height: 1.4;
}
.sr-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.sr-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 36px !important;
  padding: 0 1rem !important;
  border-radius: 8px !important;
  font-size: 0.83rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  position: relative !important;
  z-index: 2 !important;
}
.sr-btn-ghost {
  border: 1px solid rgba(255,255,255,0.22) !important;
  background: transparent !important;
  color: #d6d3d1 !important;
}
.sr-btn-ghost:hover { background: rgba(255,255,255,0.08) !important; }
.sr-btn-cta {
  border: 0 !important;
  background: #ea580c !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(234,88,12,0.35) !important;
}
.sr-btn-cta:hover { background: #c2410c !important; }

/* 6 ── Body: log view (non-results) and results view ────────────── */
.scan-page-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  overflow: hidden;
  /* Non-results: two log panes */
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem 1.15rem;
  box-sizing: border-box;
}
/* Hide log panes in results mode */
.scan-page.is-results .scan-page-console,
.scan-page.is-results .scan-page-roster { display: none !important; }
/* Hide result panes in log mode */
.scan-page:not(.is-results) .scan-results-list,
.scan-page:not(.is-results) .scan-results-detail { display: none !important; }
/* Results: sidebar list + detail panel, no body padding (panels own their space) */
.scan-page.is-results .scan-page-body {
  grid-template-columns: clamp(220px, 30%, 320px) 1fr;
  gap: 0;
  padding: 0;
}

/* Log pane chrome */
.scan-page-console,
.scan-page-roster {
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 0.85rem !important;
  background: #1c1917 !important;
  color: #d6d3d1 !important;
  font-family: inherit !important;
  overflow: auto;
  min-height: 0;
}

/* 7 ── Company list (left panel) ─────────────────────────────────── */
.scan-results-list {
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem;
  border-right: 1px solid rgba(255,255,255,0.08);
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}
.scan-results-list.hidden { display: none !important; }

/* Company card */
.sr-place {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.09);
  background: #1a1816;
  color: #fafaf9;
  text-align: left;
  cursor: pointer !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
  transition: background 0.11s, border-color 0.11s;
  box-sizing: border-box;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.sr-place:hover { background: #222; border-color: rgba(255,255,255,0.18); }
.sr-place.is-selected {
  border-color: #ea580c;
  background: rgba(234,88,12,0.1);
  box-shadow: inset 0 0 0 1px rgba(234,88,12,0.25);
}
.sr-place-info {
  flex: 1 1 auto;
  min-width: 0;
}
.sr-place-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem;
}
.sr-place-name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fafaf9;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sr-place-badge {
  flex-shrink: 0;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.38rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
  color: #a8a29e;
  line-height: 1;
}
.sr-place-badge.is-it,
.sr-place-badge.is-software { background: rgba(56,189,248,0.15); color: #7dd3fc; }
.sr-place-badge.is-noise { background: rgba(248,113,113,0.1); color: #fca5a5; }
.sr-place-meta {
  margin: 0.18rem 0 0;
  font-size: 0.7rem;
  color: #57534e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sr-place-arrow {
  flex-shrink: 0;
  color: #3c3836;
  display: block;
  transition: color 0.11s, transform 0.11s;
}
.sr-place:hover .sr-place-arrow,
.sr-place.is-selected .sr-place-arrow { color: #ea580c; transform: translateX(3px); }

/* 8 ── Detail panel (right panel) ───────────────────────────────── */
.scan-results-detail {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: #0f0d0c;
  border-left: none;
  box-sizing: border-box;
}
.scan-results-detail.hidden { display: none !important; }

/* Empty placeholder */
.srd-empty {
  margin: auto;
  text-align: center;
  color: #3c3836;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Detail content */
.srd-body.hidden { display: none !important; }
.srd-kicker {
  margin: 0;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ea580c;
}
.srd-name {
  margin: 0.4rem 0 0;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  color: #fafaf9;
  line-height: 1.15;
}
.srd-meta {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #78716c;
  word-break: break-word;
}

/* Free actions: website / call / map */
.srd-free-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.15rem;
}
.srd-free-actions a,
.srd-free-actions button {
  display: inline-flex !important;
  align-items: center !important;
  height: 36px !important;
  padding: 0 1rem !important;
  border-radius: 999px !important;
  font-size: 0.8rem !important;
  font-weight: 650 !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  background: transparent !important;
  color: #d6d3d1 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  transition: background 0.11s, border-color 0.11s !important;
}
.srd-free-actions a:hover,
.srd-free-actions button:hover {
  background: rgba(255,255,255,0.09) !important;
  border-color: rgba(255,255,255,0.3) !important;
  color: #fafaf9 !important;
}

/* Divider */
.srd-cta-divider {
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 1.4rem 0 0;
}

/* ★ Primary CTA — the conversion point of this whole page ★ */
.srd-research {
  display: block !important;
  width: 100% !important;
  margin-top: 1rem !important;
  min-height: 54px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #ea580c !important;
  color: #fff !important;
  font: inherit !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
  box-shadow: 0 4px 22px rgba(234,88,12,0.45) !important;
  transition: background 0.12s, box-shadow 0.12s, transform 0.08s !important;
  position: relative !important;
  z-index: 2 !important;
}
.srd-research:hover {
  background: #c2410c !important;
  box-shadow: 0 6px 28px rgba(234,88,12,0.55) !important;
}
.srd-research:active { transform: scale(0.982) !important; }
.srd-research-hint {
  font-size: 0.72rem;
  color: #44403c;
  text-align: center;
  margin: 0.55rem 0 0;
  line-height: 1.4;
}

/* Feedback row */
.srd-fb-label {
  margin: 1.6rem 0 0.5rem;
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #44403c;
}
.srd-fb {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}
.srd-fb button {
  min-height: 38px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255,255,255,0.13) !important;
  background: rgba(255,255,255,0.04) !important;
  color: #a8a29e !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
  transition: border-color 0.11s, background 0.11s, color 0.11s !important;
  position: relative !important;
  z-index: 1 !important;
}
.srd-fb button:hover {
  border-color: rgba(251,146,60,0.45) !important;
  background: rgba(234,88,12,0.08) !important;
  color: #fafaf9 !important;
}

/* Lead detail panel: feedback row (free/locked view) */
.lead-fb-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-top: 0.55rem;
}
.lead-fb-row button {
  min-height: 38px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255,255,255,0.13) !important;
  background: rgba(255,255,255,0.04) !important;
  color: #a8a29e !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
  transition: border-color 0.11s, background 0.11s, color 0.11s !important;
}
.lead-fb-row button:hover {
  border-color: rgba(251,146,60,0.45) !important;
  background: rgba(234,88,12,0.08) !important;
  color: #fafaf9 !important;
}
.lead-fb-row button:disabled {
  opacity: 0.45 !important;
  cursor: default !important;
}

/* 9 ── Pin sheet free actions (map popup) ────────────────────────── */
.pin-fb-free {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-top: 0.65rem;
}
.pin-fb-free:empty { display: none; }
.pin-fb-free a,
.pin-fb-free button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 2.25rem !important;
  padding: 0.4rem 0.5rem !important;
  border-radius: 0.55rem !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
  background: rgba(255,255,255,0.08) !important;
  color: #fafaf9 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  width: 100% !important;
}
.pin-fb-research-hint {
  margin: 0.4rem 0 0;
  font-size: 0.7rem;
  line-height: 1.35;
  color: #a8a29e;
}
.pin-fb-research { margin-top: 0.65rem !important; }
.pin-fb-actions {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

/* 10 ── Mobile: stack detail above list ──────────────────────────── */
@media (max-width: 760px) {
  .scan-results-hero { flex-wrap: wrap; gap: 0.5rem; }
  .sr-lead { display: none; } /* save vertical space */

  .scan-page.is-results .scan-page-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  /* Detail pane first (CTA above fold), list scrolls below */
  .scan-results-detail {
    order: 1;
    max-height: 52vh;
    padding: 1rem;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .scan-results-list {
    order: 2;
    border-right: none;
  }
  .srd-name { font-size: 1.25rem; }
  .srd-fb,
  .lead-fb-row,
  .pin-fb-free,
  .pin-fb-actions { grid-template-columns: 1fr; }
  .sr-actions { flex-direction: column; align-items: stretch; }
  .sr-btn { justify-content: center !important; }
}

/* ── Research unlock modal — always high-contrast on map ── */
.token-modal {
  /* Above .scan-page (400) so Research / Unlock Research paywall is visible */
  z-index: 500 !important;
}
.token-modal-backdrop {
  background: rgba(0, 0, 0, 0.62) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}
.token-modal-card,
.token-modal-card-v2,
#tokenModal .token-modal-card {
  width: min(26rem, 100%) !important;
  max-width: min(26rem, calc(100vw - 1.5rem)) !important;
  max-height: min(92dvh, 40rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #1c1917 !important;
  color: #fafaf9 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 1.15rem !important;
  padding: 1.35rem 1.2rem 1.15rem !important;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6) !important;
}
#tokenModal .token-modal-close,
.token-modal-close {
  color: #e7e5e4 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: 0.5rem !important;
}
#tokenModal .token-modal-close:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.14) !important;
}
#tokenModalEyebrow {
  color: #fb923c !important;
}
#tokenModalTitle {
  color: #fafaf9 !important;
  font-size: 1.35rem !important;
  line-height: 1.2 !important;
}
#tokenModalBody {
  color: #d6d3d1 !important;
  font-size: 0.88rem !important;
  line-height: 1.45 !important;
  margin: 0 0 0.35rem !important;
}
#tokenModalFoot,
#tokenModalMsg {
  color: #a8a29e !important;
  font-size: 0.75rem !important;
  line-height: 1.4 !important;
}
#tokenQuotaPill {
  display: inline-block !important;
  margin: 0.35rem 0 0.85rem !important;
  color: #d9f99d !important;
  background: rgba(163, 230, 53, 0.12) !important;
  border: 1px solid rgba(163, 230, 53, 0.3) !important;
}

/* Paywall compare — readable on dark card */
.paywall-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0.75rem 0 0.85rem;
}
.pc-col {
  border-radius: 0.75rem;
  padding: 0.6rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}
.pc-paid {
  border-color: rgba(251, 146, 60, 0.55) !important;
  background: rgba(251, 146, 60, 0.12) !important;
  box-shadow: 0 0 0 1px rgba(251, 146, 60, 0.15);
}
.pc-h {
  font-size: 0.78rem !important;
  font-weight: 750 !important;
  margin-bottom: 0.4rem !important;
  color: #fafaf9 !important;
}
.pc-paid .pc-h {
  color: #fdba74 !important;
}
.pc-list {
  margin: 0 !important;
  padding: 0 0 0 0.95rem !important;
  font-size: 0.74rem !important;
  line-height: 1.45 !important;
  color: #d6d3d1 !important;
}
.pc-list li {
  margin: 0.12rem 0;
  color: #d6d3d1 !important;
}

/* Packs */
#tokenModal .token-pack-grid {
  gap: 0.5rem !important;
  margin-bottom: 0.65rem !important;
}
#tokenModal .token-pack {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
  color: #fafaf9 !important;
  min-height: 6.25rem;
  padding: 0.85rem 0.45rem !important;
}
#tokenModal .token-pack:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(251, 146, 60, 0.55) !important;
  transform: translateY(-1px);
}
#tokenModal .token-pack.featured {
  background: rgba(251, 146, 60, 0.16) !important;
  border-color: #fb923c !important;
}
#tokenModal .token-pack .tp-n {
  color: #a3e635 !important;
  font-size: 1.4rem !important;
  font-weight: 800 !important;
}
#tokenModal .token-pack .tp-l {
  color: #a8a29e !important;
  font-size: 0.72rem !important;
}
#tokenModal .token-pack .tp-p {
  color: #fafaf9 !important;
  font-size: 1rem !important;
  font-weight: 750 !important;
  margin-top: 0.2rem !important;
}
#tokenModal .token-pack .tp-b {
  color: #fb923c !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  margin-top: 0.2rem !important;
}
#tokenModal .token-pack.featured .tp-b {
  color: #fdba74 !important;
}

.token-modal-card-v2 {
  max-width: 26rem;
}

/* Guest: de-emphasize sign-in until value delivered */
body:not(.is-signed-in):not(.has-free-look) .landing-signin {
  opacity: 0.85;
}

body.has-free-look .convert-strip:not(.hidden) {
  animation: convert-in 0.28s ease;
  pointer-events: auto !important;
}

/* Docked strip lives in footer stack — no giant floating bottom gap */
body.has-free-look .leaflet-bottom {
  bottom: calc(11rem + env(safe-area-inset-bottom, 0px)) !important;
}

@keyframes convert-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  body.has-free-look .convert-strip:not(.hidden) {
    animation: none;
  }
}

@media (max-width: 520px) {
  .lc-l {
    max-width: 4.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .biz-sheet {
    padding: 0;
    align-items: stretch;
  }
  .biz-sheet-card {
    width: 100%;
    max-height: 92dvh;
    border-radius: 1.1rem 1.1rem 0 0;
  }
}
/**
 * Mobile free-look / hunt HUD fix (2026-08-05)
 *
 * Screenshot issues:
 * - Expanded hunt OSD covers most of the map with empty dark body
 * - "Working…" / Free look row stuck while 0 places
 * - "Use this area" / Near me compete with HUD + bottom dock
 * - Agent rows (light) paint badly on dark mobile chrome
 *
 * Load LAST among layout CSS (after footer-dock-fix, agent-console).
 */

/* ── Hunt OSD: compact card on all screens ── */
/* Only adjust top/z-index/height here; width is handled per breakpoint below */
.hunt-osd,
.hunt-osd.t-osd,
#huntHud {
  position: fixed !important;
  top: max(3.6rem, calc(env(safe-area-inset-top, 0px) + 3.2rem)) !important;
  z-index: 35 !important; /* under topbar(40) and dock(45) */
  box-sizing: border-box !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  /* Compact by default — map must stay visible */
  max-height: min(28vh, 11rem) !important;
}

/* Mobile only: span full width under the top bar */
@media (max-width: 640px) {
  .hunt-osd,
  .hunt-osd.t-osd,
  #huntHud {
    left: max(0.5rem, env(safe-area-inset-left, 0px)) !important;
    right: max(0.5rem, env(safe-area-inset-right, 0px)) !important;
    width: auto !important;
    max-width: none !important;
  }
}

/* Minimized: header only */
.hunt-osd.is-minimized,
#huntHud.is-minimized {
  max-height: 2.75rem !important;
}

.hunt-osd.is-minimized .osd-subhead,
.hunt-osd.is-minimized .osd-console,
.hunt-osd.is-minimized .osd-roster,
#huntHud.is-minimized .osd-subhead,
#huntHud.is-minimized .osd-console,
#huntHud.is-minimized .osd-roster {
  display: none !important;
}

/* Header stays one row; metrics can shrink */
.osd-head {
  display: flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  flex-wrap: nowrap !important;
  min-height: 2.4rem !important;
  padding: 0.35rem 0.45rem !important;
}

.osd-status {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 0.78rem !important;
}

.osd-metrics {
  flex: 0 0 auto !important;
  font-size: 0.68rem !important;
  white-space: nowrap !important;
}

.osd-console,
.osd-roster {
  max-height: 6.5rem !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* Empty body while still 0 places: don't leave a big black hole */
.hunt-osd:not(.is-minimized) .osd-console:empty,
.hunt-osd:not(.is-minimized) .osd-roster:empty {
  display: none !important;
  min-height: 0 !important;
  padding: 0 !important;
}

/* ── Agent console inside dock: dark-theme friendly, tight ── */
@media (max-width: 640px) {
  .agent-console {
    max-height: min(22vh, 8.5rem) !important;
    padding: 0.1rem 0 0.25rem !important;
  }

  .agent-row {
    background: rgba(41, 37, 36, 0.95) !important;
    border-color: rgba(245, 245, 244, 0.12) !important;
    color: #f5f5f4 !important;
  }

  .agent-card.is-open .agent-row {
    background: rgba(68, 64, 60, 0.98) !important;
    border-color: rgba(251, 146, 60, 0.45) !important;
  }

  .agent-label {
    color: #f5f5f4 !important;
  }

  .agent-detail,
  .agent-status,
  .agent-line {
    color: #a8a29e !important;
  }

  .agent-line:last-child {
    color: #e7e5e4 !important;
  }

  .agent-lines {
    background: rgba(28, 25, 23, 0.55) !important;
    border-color: rgba(245, 245, 244, 0.1) !important;
  }

  /* Hunt OSD tighter on phone */
  .hunt-osd,
  #huntHud {
    max-height: min(24vh, 9.5rem) !important;
  }

  .hunt-osd.is-minimized,
  #huntHud.is-minimized {
    max-height: 2.6rem !important;
  }

  /* Map radius / area picker CTAs — sit above bottom dock, below HUD */
  .map-area-actions,
  .geo-area-bar,
  #mapAreaActions {
    position: fixed !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 32 !important;
    display: flex !important;
    gap: 0.5rem !important;
    width: max-content !important;
    max-width: calc(100vw - 1.5rem) !important;
  }

  /* Leaflet zoom clear of HUD + top bar */
  .leaflet-control-zoom {
    margin-top: 4.25rem !important;
  }

  .leaflet-top.leaflet-left {
    top: 0.25rem !important;
  }
}

/* While searching: prefer minimized chrome so map stays usable */
body.is-searching .hunt-osd:not(.is-expanded),
.landing-ui.is-hunting .hunt-osd:not(.is-expanded) {
  max-height: 2.75rem !important;
}

body.is-searching .hunt-osd:not(.is-expanded) .osd-console,
body.is-searching .hunt-osd:not(.is-expanded) .osd-roster,
body.is-searching .hunt-osd:not(.is-expanded) .osd-subhead,
.landing-ui.is-hunting .hunt-osd:not(.is-expanded) .osd-console,
.landing-ui.is-hunting .hunt-osd:not(.is-expanded) .osd-roster,
.landing-ui.is-hunting .hunt-osd:not(.is-expanded) .osd-subhead {
  display: none !important;
}

/* Convert strip stays above dock, below nothing critical */
.convert-strip {
  z-index: 48 !important;
}

/* Dark basemap without a keyed tile source.
   OSM serves light tiles only. Inverting and rotating the hue produces a dark
   map whose roads and labels stay legible, which is what the CARTO dark_all
   layer used to provide before it moved behind an API key.
   Applied via Leaflet's className option in makeBasemapLayer(). */
.leaflet-tile-pane .basemap-dark {
  filter: invert(1) hue-rotate(180deg) brightness(0.92) contrast(0.9) saturate(0.8);
}
