: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;
  background: #0a0e18;
}
body.mode-landing { overflow: hidden; }

/* ── Full-bleed world map ── */
.map-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #0a0e18;
}
.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 (compact dock) ── */
.hunt-osd.t-osd,
.hunt-osd {
  position: fixed;
  top: 5.25rem;
  left: 0.75rem;
  z-index: 40;
  width: min(17.5rem, calc(100vw - 1.5rem));
  max-height: min(42vh, 22rem);
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: var(--scan-bg);
  border: 1px solid rgba(91, 140, 255, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  color: #b8c8e8;
  font-family: "SF Mono", "Menlo", "Consolas", ui-monospace, monospace;
  font-size: 0.7rem;
  line-height: 1.35;
  pointer-events: auto;
  overflow: hidden;
  cursor: pointer;
  transition: width 0.35s ease, max-height 0.35s ease, top 0.35s ease, left 0.35s ease;
}
.hunt-osd.hidden { display: none !important; }
.hunt-osd.is-min {
  max-height: none;
  width: auto;
  min-width: 10rem;
}
.hunt-osd.is-min .osd-console,
.hunt-osd.is-min .osd-roster,
.hunt-osd.is-min .osd-subhead { display: none; }
.hunt-osd.is-expanded {
  top: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(36rem, calc(100vw - 2rem));
  max-height: min(70vh, 36rem);
  cursor: default;
  z-index: 55;
}
.osd-head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid rgba(91, 140, 255, 0.2);
  background: rgba(14, 22, 40, 0.95);
  flex-shrink: 0;
}
.osd-brand {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--scan);
  flex-shrink: 0;
}
.osd-pulse {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--scan-ok);
  box-shadow: 0 0 8px var(--scan-ok);
  animation: t-pulse 1.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes t-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.osd-status {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  color: #d8e4ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.68rem;
  text-transform: none;
  letter-spacing: 0;
}
.osd-metrics {
  display: flex;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.62rem;
  flex-shrink: 0;
}
.osd-metrics b { color: var(--scan-ok); font-weight: 700; }
.osd-minimize {
  background: transparent;
  border: 1px solid rgba(91, 140, 255, 0.3);
  color: #9eb6e0;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  border-radius: 4px;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.osd-minimize:hover { background: rgba(91, 140, 255, 0.12); }
.osd-subhead {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid rgba(91, 140, 255, 0.12);
}
.osd-console {
  flex: 0 1 auto;
  max-height: 5.5rem;
  overflow-y: auto;
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid rgba(91, 140, 255, 0.12);
  scrollbar-width: thin;
}
.hunt-osd.is-expanded .osd-console { max-height: 12rem; }
.osd-line {
  color: rgba(180, 200, 235, 0.9);
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.66rem;
}
.osd-line::before {
  content: "› ";
  color: var(--scan-dim);
}
.osd-line.ok { color: var(--scan-ok); }
.osd-line.dim { color: rgba(154, 168, 199, 0.55); }
.osd-line.warn { color: #e8c56a; }
.osd-line.lock {
  color: #e8eefc;
  background: rgba(91, 140, 255, 0.12);
  padding: 0.05rem 0.15rem;
  border-radius: 3px;
}
.osd-roster {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0.3rem 0.4rem 0.45rem;
}
.osd-company {
  border: 1px solid rgba(91, 140, 255, 0.2);
  border-radius: 8px;
  margin-bottom: 0.3rem;
  padding: 0.35rem 0.45rem;
  background: rgba(12, 18, 32, 0.75);
}
.osd-company.is-active {
  border-color: rgba(91, 140, 255, 0.55);
  box-shadow: 0 0 12px rgba(91, 140, 255, 0.12);
}
.osd-co-head {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-weight: 700;
  color: #e0e8fc;
  font-size: 0.68rem;
  text-transform: none;
  letter-spacing: 0;
}
.osd-co-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.osd-co-tag {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--scan);
  text-transform: uppercase;
}
.osd-co-details {
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.62rem;
}
.osd-co-details li {
  padding: 0.08rem 0 0.08rem 0.65rem;
  position: relative;
}
.osd-co-details li::before {
  content: "·";
  position: absolute;
  left: 0.1rem;
  color: var(--scan-dim);
}
.osd-emp {
  margin-top: 0.2rem;
  padding-top: 0.2rem;
  border-top: 1px dashed rgba(91, 140, 255, 0.15);
}
.osd-emp-row {
  display: flex;
  gap: 0.35rem;
  padding: 0.08rem 0;
  font-size: 0.62rem;
  color: #c8d4f0;
}
.osd-emp-name { font-weight: 600; min-width: 4.5rem; }
.osd-emp-title { color: var(--muted); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.osd-emp-row.is-researching .osd-emp-title { color: #e8c56a; }
@keyframes osd-row-in {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Full scan page (from HUD expand) */
.scan-page {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(8, 12, 22, 0.94);
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem 1.5rem;
}
.scan-page.hidden { display: 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;
}
.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 ── */
.landing-ui {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 10, 20, 0.72) 0%, transparent 18%),
    linear-gradient(0deg, rgba(6, 10, 20, 0.78) 0%, transparent 22%);
}
.landing-ui.landing-minimal {
  /* map-forward; light bars only */
}
.landing-ui.hidden { display: none !important; }
.landing-ui > * { pointer-events: auto; }
.landing-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  flex-wrap: wrap;
  background: linear-gradient(180deg, rgba(8, 12, 22, 0.82) 0%, transparent 100%);
}
.landing-top .brand-mark {
  margin: 0;
  margin-bottom: 0;
  flex: 1;
  min-width: 6.5rem;
  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(560px, calc(100% - 2rem));
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: stretch;
  flex: 0 0 auto;
}
.landing-minimal .prompt-dock {
  /* dead-center of map */
  margin: 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 */
.token-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.token-modal.hidden { display: none !important; }
.token-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 18, 0.72);
  backdrop-filter: blur(8px);
}
.token-modal-card {
  position: relative;
  width: min(440px, 100%);
  background: rgba(20, 27, 45, 0.97);
  border: 1px solid rgba(91, 140, 255, 0.35);
  border-radius: 18px;
  padding: 1.5rem 1.35rem 1.25rem;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  animation: fadeUp 0.28s ease;
}
.token-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 1.35rem;
  cursor: pointer;
  line-height: 1;
}
.token-modal-close:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.token-modal-card h2 {
  margin: 0.2rem 0 0.45rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.token-quota-pill {
  display: inline-block;
  margin: 0.35rem 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  background: #0d1424;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}
.token-pack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}
.token-pack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.85rem 0.4rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0d1424;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.token-pack:hover {
  border-color: var(--accent);
  background: #152038;
  transform: translateY(-1px);
}
.token-pack.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(91, 140, 255, 0.25), 0 8px 24px rgba(91, 140, 255, 0.12);
}
.token-pack .tp-n {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ok);
}
.token-pack .tp-l { font-size: 0.72rem; color: var(--muted); }
.token-pack .tp-p { font-size: 0.95rem; font-weight: 700; margin-top: 0.25rem; }
.token-pack .tp-b { font-size: 0.65rem; color: var(--accent); font-weight: 600; margin-top: 0.15rem; }
@media (max-width: 420px) {
  .token-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);
}
