/* ==========================================================================
   AreaIntel — Design System
   Single-pass clean stylesheet. 2026-05-26.
   ========================================================================== */

/* 1. Design Tokens
   ========================================================================== */
:root {
  --ink:         #0f172a;
  --muted:       #667085;
  --line:        rgba(15, 23, 42, 0.1);
  --panel:       #ffffff;
  --wash:        #eef3f6;
  --nav:         #07111f;

  --teal:        #0e7490;
  --blue:        #1d4ed8;
  --green:       #12805c;
  --red:         #a64235;
  --amber:       #b45309;
  --brick:       #a44f3f;
  --violet:      #5b5bd6;

  --radius:      14px;
  --radius-sm:   10px;
  --radius-lg:   18px;
  --shadow:      0 30px 90px rgba(15, 23, 42, 0.18);
  --soft-shadow: 0 16px 45px rgba(15, 23, 42, 0.10);
  --card-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);

  /* Design system: 5-state status tokens (fg/bg/accent). See DESIGN_SYSTEM.md. */
  --st-verified-fg:#08724a;  --st-verified-bg:#e5f7ef;  --st-verified-accent:#0e9f6e;
  --st-modeled-fg:#9a5b09;   --st-modeled-bg:#fff4e2;   --st-modeled-accent:#e0a23a;
  --st-estimated-fg:#0f5f9a; --st-estimated-bg:#e7f1fb; --st-estimated-accent:#2f8fd6;
  --st-research-fg:#51606b;  --st-research-bg:#eef2f6;  --st-research-accent:#8aa0b4;
  --st-risk-fg:#963226;      --st-risk-bg:#f9e4df;      --st-risk-accent:#d9534f;

  /* Design system: spacing scale (4px base). */
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:20px;
  --sp-6:24px; --sp-8:32px; --sp-10:40px; --sp-12:48px; --sp-16:64px;

  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Admin-only launch operations */
.admin-page {
  min-height: 100vh;
  background: #07111f;
  color: #eef6ff;
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.admin-hero {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
  padding: 28px;
  border: 1px solid rgba(139, 211, 230, 0.18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(10, 29, 48, 0.96), rgba(14, 42, 64, 0.86));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.admin-home-link {
  color: #8bd3e6;
  font-weight: 900;
  text-decoration: none;
}

.admin-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -0.04em;
}

.admin-hero p {
  margin: 0;
  color: #c8d6e4;
}

.admin-auth-panel {
  border-color: rgba(139, 211, 230, 0.28);
}

.admin-token-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.admin-token-row input,
.admin-token-row button,
.admin-page .launch-form input,
.admin-page .launch-form select,
.admin-page .launch-form textarea {
  min-height: 46px;
  border-radius: 10px;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-actions button {
  width: fit-content;
  min-height: 42px;
  padding: 0 18px;
}

.admin-row {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
}

.admin-row span {
  color: var(--muted);
}

.admin-row small {
  color: #64748b;
}

.admin-page .agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.agent-card em {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e7f8ef;
  color: #087443;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 900;
}

@media (max-width: 720px) {
  .admin-token-row {
    grid-template-columns: 1fr;
  }
}

/* Confident, aligned numbers wherever metrics appear. */
.signal-card strong,
.decision-strip strong,
.business-results strong,
#business-count,
.exec-metrics strong,
.compare-table td,
.verdict-score span { font-variant-numeric: tabular-nums; }

/* 2. Base Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background: var(--wash);
  color: var(--ink);
}

h1, h2, h3, h4, p { margin-top: 0; }

h1 { margin-bottom: 0; font-size: 1.34rem; line-height: 1.18; }
h2 { margin-bottom: 0; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.05; }
h3 { margin-bottom: 12px; font-size: 1.18rem; line-height: 1.25; }
h4 { margin-bottom: 8px; font-size: 0.94rem; }

button, input, select, textarea { font: inherit; }

button {
  cursor: pointer;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

button:disabled { cursor: wait; opacity: 0.68; }
button:not(:disabled):hover { transform: translateY(-1px); }

input, select {
  min-height: 42px;
  border: 1px solid #c7d4dd;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--ink);
  padding: 0 12px;
}

input::placeholder { color: #7a8996; }

input:focus, select:focus, textarea:focus, button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-color: var(--teal);
}

[hidden] { display: none !important; }

/* 3. App Shell & Workspace
   ========================================================================== */
.app-shell {
  padding: 14px;
}

.workspace {
  display: grid;
  grid-template-columns: clamp(260px, 24vw, 330px) minmax(0, 1fr);
  min-height: calc(100vh - 28px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #f5f8fa;
  box-shadow: var(--shadow);
}

/* 4. Sidebar
   ========================================================================== */
.sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.92), rgba(8, 24, 38, 0.98)),
    url("https://images.unsplash.com/photo-1534430480872-3498386e7856?auto=format&fit=crop&w=1000&q=80")
      center / cover;
  color: #f6fbff;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(14, 116, 144, 0.22), transparent 48%);
}

.sidebar > * { position: relative; z-index: 1; }

/* Brand */
.brand {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.03)),
    linear-gradient(145deg, #12324a, #0e7490);
  color: #f9fbf2;
  box-shadow: 0 12px 28px rgba(14, 116, 144, 0.22);
}

.liberty-mark {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.2;
}

.eyebrow {
  margin: 0;
  color: #b9c8d6;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-title {
  margin: 2px 0 3px;
  color: #ffffff;
  font-size: 1.72rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.brand-tagline {
  margin: 0;
  color: #d9e7ee;
  font-size: 0.88rem;
  line-height: 1.38;
  font-weight: 700;
}

/* Positioning card */
.positioning-card {
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(226, 232, 240, 0.16);
  background: rgba(7, 17, 31, 0.78);
}

.positioning-card p {
  margin: 0;
  color: #dbeafe;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Step labels */
.step-label {
  margin: 0 0 2px;
  color: #8bd3e6;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Sidebar forms */
.sidebar .business-form,
.sidebar .search-panel,
.sidebar .address-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(226, 232, 240, 0.16);
  background: rgba(7, 17, 31, 0.78);
}

.sidebar label {
  display: block;
  color: #f8fafc;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
}

.sidebar input,
.sidebar select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: #111827;
  background: #f8fbfc;
  border: 1px solid rgba(226, 232, 240, 0.34);
  box-shadow: none;
}

.sidebar input::placeholder { color: rgba(15, 23, 42, 0.45); }

.zip-row,
.address-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

/* Budget + radius side-by-side, de-emphasised relative to action buttons */
.address-aux-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.address-aux-row input,
.address-aux-row select {
  font-size: 0.78rem;
  min-height: 36px;
  padding: 6px 10px;
  color: #374151;
}

/* Primary action button — full-width, more visual weight */
.sidebar .primary-button {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(14, 116, 144, 0.5);
  background: linear-gradient(145deg, #0e7490, #0f5568);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 28px rgba(14, 116, 144, 0.28);
  white-space: normal;
}

.sidebar button,
.sidebar .zip-row button,
.sidebar .address-row button,
.sidebar .business-form button {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(14, 116, 144, 0.4);
  background: linear-gradient(145deg, #0e7490, #155e75);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(14, 116, 144, 0.22);
  white-space: normal;
}

.business-suggestions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  max-height: min(420px, 52vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(103, 232, 249, 0.22);
  background: rgba(2, 16, 28, 0.94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 30;
}

.business-suggestions[hidden] {
  display: none;
}

.business-suggestions button {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 800;
  text-align: left;
  box-shadow: none;
}

.business-suggestions button:hover,
.business-suggestions button:focus-visible {
  border-color: rgba(103, 232, 249, 0.44);
  background: rgba(14, 116, 144, 0.4);
  outline: none;
}

.subtle-button {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: none !important;
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: #bae6fd;
  font-size: 0.86rem;
  font-weight: 600;
}

/* Section labels */
.section-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar .section-label { color: #b9c8d6; }

/* 5. Start Screen
   ========================================================================== */
.start-screen {
  display: grid;
  align-content: start;
  gap: 22px;
  min-height: calc(100vh - 28px);
  padding: clamp(34px, 4.5vw, 56px);
  overflow: auto;
  background:
    linear-gradient(135deg, rgba(7, 17, 31, 0.78), rgba(15, 44, 66, 0.6)),
    url("https://images.unsplash.com/photo-1534430480872-3498386e7856?auto=format&fit=crop&w=2000&q=85")
      center / cover;
  color: #ffffff;
}

.start-screen .section-label { color: #8bd3e6; }

.start-screen h2 {
  max-width: 720px;
  font-size: clamp(2.25rem, 4.2vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
}

.start-screen > div:first-child > p:not(.section-label) {
  max-width: 680px;
  color: #dbe7ef;
  font-size: 1.1rem;
  line-height: 1.55;
}

.start-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.start-cta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(139, 211, 230, 0.30);
  background: rgba(7, 17, 31, 0.52);
  color: #e8f8fb;
  font-size: 0.78rem;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.start-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 920px;
}

.start-steps article {
  min-height: 142px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

.start-steps span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-weight: 900;
}

.start-steps strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 1.05rem;
}

.start-steps article p { color: #d4e4ee; line-height: 1.5; }

/* 6. Results Area
   ========================================================================== */
.results {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: 26px;
  background: var(--wash);
  overflow: auto;
}

/* 7. Hero Report
   ========================================================================== */
.hero-report {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(22px, 3.5vw, 38px);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(7, 17, 31, 0.92), rgba(15, 44, 66, 0.86)),
    url("https://images.unsplash.com/photo-1522083165195-3424ed129620?auto=format&fit=crop&w=1600&q=82")
      center / cover;
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-report > div:first-child { min-width: 0; }

.hero-report .section-label { color: #8bd3e6; }

.hero-report h2 {
  max-width: 24ch;
  color: #fff;
  font-size: clamp(1.7rem, 2.6vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  overflow-wrap: break-word;
  word-break: normal;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.hero-report p {
  max-width: 60ch;
  margin: 10px 0 0;
  color: #dbeafe;
  font-size: 1rem;
  line-height: 1.5;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-tags span {
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.09);
  color: #dbeafe;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ghost-button,
.export-button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(14, 116, 144, 0.4);
  background: linear-gradient(145deg, #0e7490, #155e75);
  color: #fff;
  font-weight: 800;
}

/* 8. Decision Strip
   ========================================================================== */
.decision-strip {
  display: grid;
  grid-template-columns: minmax(320px, 1.45fr) repeat(3, minmax(185px, 0.78fr));
  gap: 12px;
  align-items: stretch;
  padding: 6px;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(circle at 10% 0%, rgba(14, 116, 144, 0.11), transparent 35%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(232, 243, 247, 0.84));
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

.decision-strip article {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 176px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-top: 0;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  color: var(--ink);
  overflow: hidden;
}

.decision-strip article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--teal);
}

.decision-strip article:nth-child(2)::before { background: var(--blue); }
.decision-strip article:nth-child(3)::before { background: var(--green); }
.decision-strip article:nth-child(4)::before { background: var(--amber); }

.decision-strip .decision-main-card {
  align-content: center;
  min-height: 250px;
  padding: 26px;
  border-color: rgba(103, 232, 249, 0.28);
  background:
    radial-gradient(circle at 16% 6%, rgba(103, 232, 249, 0.22), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(22, 163, 74, 0.18), transparent 30%),
    linear-gradient(145deg, #07111f, #0d3047 54%, #0e7490);
  color: #ffffff;
}

.decision-strip .decision-main-card::before {
  height: 0;
}

.decision-strip .decision-main-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.decision-strip p { margin: 0; color: #475569; line-height: 1.48; }
.decision-strip strong { color: var(--ink); font-size: 1.22rem; line-height: 1.2; }
.decision-strip article:not(.decision-main-card) p { font-size: 0.88rem; }
.decision-strip article:not(.decision-main-card) strong { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.decision-strip .decision-main-card .signal-label { color: rgba(255, 255, 255, 0.78); }
.decision-strip .decision-main-card p { color: rgba(255, 255, 255, 0.78); max-width: 38ch; }

.decision-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  max-width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: clamp(1.85rem, 3.5vw, 3.1rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  background: #e7f0f4;
  color: var(--teal);
}

.decision-open           { background: #dff5ea; color: #075e3a; }
.decision-conditional    { background: #e8f3f7; color: #075f76; }
.decision-do-not-open    { background: #f9e4df; color: #963226; }
.decision-needs-more-data{ background: #eef2f6; color: #334155; }

.decision-strip .decision-main-card .decision-badge {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16);
}

.decision-strip .decision-main-card .decision-open { color: #075e3a; }
.decision-strip .decision-main-card .decision-conditional { color: #075f76; }
.decision-strip .decision-main-card .decision-do-not-open { color: #963226; }
.decision-strip .decision-main-card .decision-needs-more-data { color: #334155; }

/* Investment memo
   ========================================================================== */
.investment-memo {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 250, 0.98));
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.memo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
  gap: 14px;
  align-items: stretch;
}

.memo-hero-copy {
  min-width: 0;
  padding: clamp(20px, 3vw, 30px);
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
}

.memo-hero-copy h3 {
  max-width: 22ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 2.4vw, 2.45rem);
  line-height: 1.05;
  overflow-wrap: break-word;
}

.memo-hero-copy p:last-child {
  max-width: 66ch;
  margin: 12px 0 0;
  color: #475569;
  font-size: 1rem;
  line-height: 1.55;
}

.memo-score-stack {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.memo-score-stack article {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 120px;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #10202a;
  color: #ffffff;
}

.memo-score-stack article:nth-child(2) {
  background: #263238;
}

.memo-score-stack span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.memo-score-stack strong {
  color: #ffffff;
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  line-height: 1;
}

.memo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.memo-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
}

.memo-card-header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.memo-card h4 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.2;
}

.memo-index {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #e8f3f7;
  color: #075f76;
  font-size: 0.78rem;
  font-weight: 950;
}

.memo-risk-card .memo-index {
  background: var(--st-risk-bg);
  color: var(--st-risk-fg);
}

.memo-actions-card .memo-index {
  background: #fff4e2;
  color: #8a5a0a;
}

.memo-list {
  display: grid;
  gap: 9px;
}

.memo-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  padding: 12px;
  border-radius: 9px;
  border: 1px solid #dfe8ed;
  background: #f8fbfc;
}

.memo-list-row span {
  color: #64717a;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.memo-list-row strong {
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.25;
}

.memo-list-row p {
  grid-column: 1 / -1;
  margin: 0;
  color: #53636c;
  font-size: 0.84rem;
  line-height: 1.4;
}

.memo-thesis-card .memo-list-row strong:nth-child(2) {
  display: grid;
  place-items: center;
  min-width: 38px;
  min-height: 32px;
  padding: 0 7px;
  border-radius: 7px;
  background: #e5f7ef;
  color: #08724a;
}

.memo-risk-row {
  border-color: rgba(217, 83, 79, 0.24);
  background: #fff8f6;
}

.memo-risk-row span {
  color: var(--st-risk-fg);
}

.memo-action-list .memo-list-row {
  background: #fffdf8;
  border-color: rgba(202, 153, 55, 0.24);
}

.data-connected-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(19, 74, 83, 0.16);
  background: #f7fbfa;
  color: #334155;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.data-connected-strip strong {
  margin-right: 2px;
  color: var(--ink);
  font-size: 0.86rem;
}

.signals-strip-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.signals-strip-key {
  flex-basis: 100%;
  color: #6b7c86;
  font-size: 0.7rem;
  font-weight: 600;
}

.evidence-panel,
.verdict-panel,
.institutional-panel,
.compare-panel {
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.09);
}

.compare-panel {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(239,248,249,0.94));
}

.signal-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
}

.signal-chip em {
  font-style: normal;
  font-weight: 850;
  opacity: 0.85;
}

.signal-chip .signal-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  flex: 0 0 auto;
}

.signal-chip-connected {
  background: #e5f7ef;
  color: #08724a;
}

.signal-chip-modeled {
  background: #fff4e2;
  color: #9a5b09;
}

.signal-chip-refreshing {
  background: #f3f7fb;
  color: #31506b;
}

.signal-chip-refreshing .signal-dot {
  animation: statusPulse 1.15s ease-in-out infinite;
}

/* 9. Summary Signal Cards
   ========================================================================== */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.signal-card {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 150px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid #d8e2e8;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.signal-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--teal);
}

.signal-card:nth-child(2)::before { background: var(--green); }
.signal-card:nth-child(3)::before { background: var(--blue); }
.signal-card:nth-child(4)::before { background: var(--brick); }

.signal-card strong { font-size: 1.52rem; color: var(--ink); }

.signal-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

meter {
  width: 100%;
  height: 8px;
}
meter::-webkit-meter-bar {
  border: 0;
  background: #e8edf0;
}
meter::-webkit-meter-optimum-value { background: var(--teal); }

/* 10. Evidence Panel
   ========================================================================== */
.evidence-panel {
  background: linear-gradient(135deg, #ffffff 0%, #eef8f6 100%);
  border: 1px solid rgba(19, 74, 83, 0.14);
}

.evidence-signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.evidence-signal-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(26, 73, 83, 0.12);
  box-shadow: 0 12px 28px rgba(12, 31, 38, 0.08);
}

.evidence-signal-card > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.evidence-signal-card strong {
  color: #10202a;
  font-size: 0.98rem;
  line-height: 1.15;
}

.evidence-signal-card > div > span {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  color: #0f4f48;
  background: rgba(33, 173, 132, 0.14);
  border: 1px solid rgba(33, 173, 132, 0.24);
}

.evidence-signal-card.evidence-partial > div > span {
  color: #5d4b19;
  background: rgba(202, 153, 55, 0.14);
  border-color: rgba(202, 153, 55, 0.24);
}

.evidence-signal-card p {
  margin: 0;
  color: #53636c;
  font-size: 0.9rem;
  line-height: 1.42;
}

/* 11. Business Checker
   ========================================================================== */
.business-checker { display: grid; gap: 16px; }

.business-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  gap: 14px;
}

.business-results article {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid #d8e2e8;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.business-results p      { margin: 0; color: #475569; font-size: 0.94rem; line-height: 1.45; }
.business-results strong { font-size: clamp(1.1rem, 1.8vw, 1.45rem); line-height: 1.15; color: var(--ink); }

/* Scoped to beat `.business-results article` (which forced a white card and
   made the white number invisible). */
.business-results .business-count {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 22px 16px;
  background: linear-gradient(145deg, #102238, #0e7490) !important;
  color: #ffffff;
  border-color: rgba(14, 116, 144, 0.42);
}

.business-results .business-count > span#business-count {
  display: block;
  color: #ffffff;
  font-size: clamp(2.35rem, 7vw, 4rem);
  font-weight: 900;
  line-height: 0.98;
  overflow-wrap: normal;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.18);
}

.business-count small {
  display: block;
  max-width: 18ch;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.93);
  font-size: 0.82rem;
  line-height: 1.25;
  font-weight: 800;
  text-wrap: balance;
}

.source-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}

.source-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.93);
  font-size: 0.7rem;
  font-weight: 850;
  line-height: 1.15;
  white-space: normal;
}

/* 12. Concept Fit Panel
   ========================================================================== */
.concept-fit-panel {
  background: linear-gradient(145deg, #eef5f7, #e4edf2);
}

.concept-fit-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.concept-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 150px;
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.concept-card h4    { margin: 5px 0 8px; font-size: 1.04rem; line-height: 1.18; }
.concept-card p     { margin: 0; color: var(--muted); line-height: 1.4; }
.concept-card small { display: block; margin-top: 10px; font-size: 0.78rem; color: var(--muted); line-height: 1.4; }

.concept-card > strong {
  display: grid;
  place-items: center;
  align-self: start;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
}

.concept-good  { border: 1px solid rgba(18, 128, 92, 0.2);  background: linear-gradient(145deg, #e9f7ef, #cfeadb); }
.concept-good > strong { background: #12805c; }
.concept-mixed { border: 1px solid rgba(14, 116, 144, 0.22); background: linear-gradient(145deg, #e8f3f8, #d0e2ec); }
.concept-mixed > strong { background: #0e7490; }
.concept-risky { border: 1px solid rgba(189, 75, 75, 0.2);  background: linear-gradient(145deg, #f7eeec, #edd6d2); }
.concept-risky > strong { background: #a44f3f; }

/* 13. Places Panel
   ========================================================================== */
.places-panel {
  display: grid;
  gap: 16px;
  background: #ffffff;
  border: 1px solid rgba(19, 74, 83, 0.13);
}

.places-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.place-card,
.empty-places {
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid #d8e2e8;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.place-card img,
.place-photo-fallback {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #dbe4ea;
}

.place-photo-fallback {
  display: grid;
  place-items: center;
  color: var(--blue);
  font-weight: 900;
  font-size: 1.6rem;
}

.place-card div:last-child,
.empty-places { padding: 14px; }

.place-card h4 { margin-bottom: 6px; }

.place-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.place-meta span {
  padding: 4px 7px;
  border-radius: 6px;
  background: #eef5f7;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 850;
}

.place-card p, .place-card small, .empty-places p { color: var(--muted); line-height: 1.45; }

/* 14. Institutional Panel (supporting analysis)
   ========================================================================== */
.institutional-panel {
  display: grid;
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(248, 251, 252, 0.96), rgba(241, 247, 249, 0.96));
  border-color: rgba(15, 23, 42, 0.08);
}

.institutional-grid,
.analysis-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.institutional-grid article,
.analysis-columns article,
.score-drivers-card {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.institutional-grid strong { display: block; margin-top: 6px; font-size: 1.35rem; color: var(--ink); }
.institutional-grid p      { margin: 8px 0 0; color: var(--muted); line-height: 1.45; }

.score-drivers-card {
  display: grid;
  gap: 14px;
}

.score-drivers-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.score-drivers-card strong {
  color: var(--ink);
  font-size: 1.12rem;
}

.score-driver-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.score-driver-row {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 10px;
  background: #f7fafb;
  border: 1px solid #dce6eb;
}

.score-driver-row span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.score-driver-row strong {
  font-size: 1.45rem;
  line-height: 1;
}

.score-driver-row small {
  color: var(--muted);
  line-height: 1.35;
}

.score-driver-row.positive strong { color: var(--green); }
.score-driver-row.negative strong { color: var(--brick); }

.unknown-factors {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid #d8e2e8;
  background: #ffffff;
  box-shadow: var(--card-shadow);
}

.mini-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.mini-metric-grid div {
  padding: 10px;
  border-radius: 8px;
  background: #f7fafc;
  border: 1px solid #dbe5eb;
}

.mini-metric-grid span, .score-row small, .scenario-card small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.mini-metric-grid strong { margin-top: 4px; font-size: 1rem; }

.score-breakdown,
.scenario-analysis {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}

.score-row,
.scenario-card {
  display: grid;
  gap: 5px;
  padding: 10px;
  border-radius: 8px;
  background: #f7fafc;
  border: 1px solid #dbe5eb;
  color: var(--ink);
}

.score-row { grid-template-columns: minmax(0, 1fr) 44px; align-items: center; }

.score-row > span {
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: 6px;
  background: var(--teal);
  color: #fff;
  font-weight: 900;
}

.score-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 0.76rem; }
.scenario-card > span { color: #172133; font-weight: 900; }
.scenario-card small  { color: var(--muted); font-size: 0.76rem; line-height: 1.35; }

.explainability-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.explainability-card {
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #f4f7f8;
}

.explainability-card > strong {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.explainability-card ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.42;
}

.explainability-fact  { background: #e6f3f1; }
.explainability-fact  > strong { background: #0f766e; }
.explainability-inference { background: #edf2f7; }
.explainability-inference > strong { background: #315c7a; }
.explainability-estimate { background: #f5efe6; }
.explainability-estimate > strong { background: #8a5a26; }

.compact-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.methodology-details,
.advanced-tools {
  border: 1px solid #d7e1e8;
  border-radius: var(--radius);
  background: #ffffff;
}

.methodology-details summary,
.advanced-tools summary {
  cursor: pointer;
  padding: 16px;
  color: var(--ink);
  font-weight: 850;
}

.methodology-details[open],
.advanced-tools[open] { padding-bottom: 14px; }

.methodology-details .analysis-columns,
.advanced-tools .panel { margin: 0 14px 14px; }

.trust-note { margin: 0 16px 14px; color: var(--muted); line-height: 1.45; }

.methodology-source-map {
  margin: 0 14px 14px;
  padding: 16px;
  border: 1px solid #d8e2e8;
  border-radius: var(--radius);
  background: #f7fafc;
}

.source-map-list {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}

.source-map-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px;
  border-radius: 10px;
  border: 1px solid #dbe5eb;
  background: #ffffff;
}

.source-map-row strong,
.source-map-row span,
.source-map-row small {
  display: block;
}

.source-map-row strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.source-map-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.source-map-row small {
  margin-top: 5px;
  color: #35566a;
  font-size: 0.74rem;
  font-weight: 800;
}

.source-map-status {
  white-space: nowrap;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  color: #123044;
  background: #eef5f7;
}

.source-map-status.connected {
  color: #07543f;
  background: #dff5ea;
}

.source-map-status.partial {
  color: #1f5b78;
  background: #dff2f8;
}

.source-map-status.needs-confirmation {
  color: #7a3f12;
  background: #f8ead5;
}

.source-map-status.manual {
  color: #5b3344;
  background: #f3e4ea;
}

/* 15. Map Panel
   ========================================================================== */
.map-panel { display: grid; gap: 12px; }

.market-map {
  position: relative;
  min-height: 500px;
  border-radius: var(--radius);
  background: #dbe4ea;
  border: 1px solid #d8e2e8;
  overflow: hidden;
  z-index: 0;
}

.market-map.map-fallback {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(17, 124, 125, 0.15), rgba(14, 62, 86, 0.22)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.55) 0 2px, transparent 2px 28px),
    #dbe4ea;
}

.static-map-fallback {
  display: grid;
  gap: 8px;
  max-width: 360px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #d8e2e8;
  box-shadow: var(--card-shadow);
  text-align: center;
}

.static-map-fallback strong { color: var(--ink); font-size: 1rem; }
.static-map-fallback span,
.static-map-fallback small { color: var(--muted); line-height: 1.4; }

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.map-legend span { display: inline-flex; align-items: center; gap: 6px; }

.legend-dot, .map-marker {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(16, 27, 39, 0.18);
}

.address-dot,    .address-marker    { background: var(--blue); }
.competitor-dot, .competitor-marker { background: var(--brick); }
.density-dot                         { background: linear-gradient(135deg, var(--brick), var(--amber)); }
.registry-dot,   .registry-marker   { background: #c99a14; }
.lease-dot,      .lease-marker      { background: var(--green); }

.map-marker.selected-location {
  position: relative;
  box-shadow: 0 0 0 2px rgba(16, 27, 39, 0.18), 0 0 0 8px rgba(37, 99, 235, 0.12);
}

.map-marker.selected-location::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px solid rgba(37, 99, 235, 0.35);
  border-radius: inherit;
  animation: mapPulse 1.8s ease-out infinite;
}

@keyframes mapPulse {
  0% { transform: scale(0.72); opacity: 0.85; }
  100% { transform: scale(1.65); opacity: 0; }
}

/* 16. Opportunity Panel
   ========================================================================== */
.opportunity-panel { display: grid; gap: 16px; }

.opportunity-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.opportunity-item {
  display: grid;
  gap: 14px;
  align-content: space-between;
  min-height: 240px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid #d8e2e8;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.opportunity-item:nth-child(1) { border-top: 4px solid var(--teal); }
.opportunity-item:nth-child(2) { border-top: 4px solid var(--blue); }
.opportunity-item:nth-child(3) { border-top: 4px solid var(--green); }
.opportunity-item:nth-child(4) { border-top: 4px solid #c99a14; }
.opportunity-item:nth-child(5) { border-top: 4px solid var(--brick); }

.opportunity-item h4 { margin-bottom: 6px; }
.opportunity-item p  { color: var(--muted); line-height: 1.45; }

.opportunity-metrics {
  display: grid;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid #e8edf0;
}

.opportunity-metrics > span { color: var(--muted); font-size: 0.82rem; }
.opportunity-metrics strong { color: var(--green); font-size: 1.05rem; }

/* 17. Insight Grid
   ========================================================================== */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.insight-panel { min-height: 230px; }
.insight-panel h3 { margin-bottom: 12px; }
.insight-panel p  { color: var(--muted); }

.profile-list { display: grid; gap: 12px; margin-top: 16px; }

.profile-row {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.profile-row:last-child { border-bottom: 0; padding-bottom: 0; }
.profile-row strong { color: var(--ink); }
.profile-row span   { color: var(--muted); line-height: 1.5; }

.plain-list { display: grid; gap: 10px; margin: 16px 0 0; padding-left: 20px; }
.plain-list li { color: var(--muted); line-height: 1.5; }

.fit-bar {
  position: relative;
  height: 14px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid #e8edf0;
  background: linear-gradient(90deg, #eaf7ef 0%, #f8edd3 52%, #e8eef7 100%);
}

.fit-bar span {
  display: block;
  width: 50%;
  height: 100%;
  background: var(--green);
}

.fit-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 750;
}

/* 18. Market / Diligence Grid
   ========================================================================== */
.market-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
}

.pulse-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.pulse-row:last-child { border-bottom: 0; }
.pulse-row span { color: var(--muted); font-weight: 750; }
.pulse-row strong { color: var(--brick); }

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.5;
}

/* 19. Report Layout (categories + narrative)
   ========================================================================== */
.report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
}

.recommendations { min-height: 430px; }

.category-list { display: grid; gap: 10px; margin-top: 16px; }

.category-item {
  display: grid;
  grid-template-columns: 1fr 76px;
  gap: 14px;
  align-items: center;
  padding: 13px;
  border-radius: var(--radius);
  border: 1px solid #d8e2e8;
  background: #ffffff;
  box-shadow: var(--card-shadow);
}

.category-item h4 { margin: 0 0 5px; font-size: 0.98rem; }
.category-item p  { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.42; }

.score {
  display: grid;
  place-items: center;
  min-width: 58px;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 850;
}

.score.strong { color: var(--green); background: #eaf7ef; }
.score.mixed  { color: var(--amber); background: #fff3dd; }
.score.weak   { color: var(--red);   background: #fdecec; }

.narrative { display: grid; gap: 14px; }
.narrative p, .evidence li { color: var(--muted); line-height: 1.55; }

.evidence {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.evidence h4 { margin-bottom: 10px; }
.evidence ul { display: grid; gap: 10px; margin: 0; padding-left: 20px; }

/* 20. Civic / Site Intel Panels
   ========================================================================== */
.civic-panel,
.site-intel-panel,
.foot-traffic-panel { display: grid; gap: 16px; }

.civic-grid,
.site-intel-grid,
.foot-traffic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.civic-grid article,
.site-intel-grid article,
.foot-traffic-grid article {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid #d8e2e8;
  background: #ffffff;
  box-shadow: var(--card-shadow);
}

.foot-score-card {
  background: linear-gradient(145deg, #0e5260, #143348) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.foot-score-card .signal-label,
.foot-score-card p,
.foot-score-card strong { color: #ffffff; }

.foot-score-card p { opacity: 0.86; }

.foot-traffic-why {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid #d8e2e8;
  background: #f7fafb;
}

.foot-traffic-why strong { color: var(--ink); }
.foot-traffic-why p { margin: 0; color: var(--muted); line-height: 1.45; }

.revenue-estimator-panel { display: grid; gap: 16px; }

.revenue-input-grid,
.revenue-output-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.revenue-input-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.revenue-input-grid input,
.revenue-input-grid select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #c7d4dd;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.revenue-output-grid article {
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid #d8e2e8;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--card-shadow);
}

.revenue-output-grid strong {
  color: var(--teal);
  font-size: 1.2rem;
}

.civic-grid strong, .site-intel-grid strong, .foot-traffic-grid strong { color: var(--brick); font-size: 1.16rem; }
.foot-traffic-grid strong { color: var(--teal); }
.civic-grid p, .site-intel-grid p, .foot-traffic-grid p { margin: 0; color: var(--muted); line-height: 1.45; }

.mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.mini-list span {
  padding: 5px 7px;
  border-radius: 6px;
  background: #eef5f7;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 850;
}

/* 21. Advanced Tools (lease / location)
   ========================================================================== */
.available-spaces-panel { background: linear-gradient(145deg, #edf3f8, #dfe9ef); }
.lease-panel, .saved-spaces-panel { display: grid; gap: 16px; }
.saved-spaces-panel { margin-top: -10px; }

.listing-feed-note {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #f0d58a;
  background: #fff9e6;
}

.listing-feed-note strong { color: var(--amber); }
.listing-feed-note span   { color: var(--muted); line-height: 1.45; }

.listing-platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.listing-platform-grid a {
  display: grid;
  gap: 5px;
  min-height: 84px;
  padding: 14px;
  border: 1px solid rgba(14, 116, 144, 0.18);
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, #f0f6f8, #dce8ee);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--card-shadow);
  transition: transform 140ms ease, border-color 140ms ease;
}

.listing-platform-grid a:hover {
  transform: translateY(-1px);
  border-color: rgba(14, 116, 144, 0.36);
}

.listing-platform-grid strong { color: #12324a; font-size: 0.98rem; }
.listing-platform-grid span   { color: var(--muted); font-size: 0.82rem; line-height: 1.35; }

.listing-results { display: grid; gap: 10px; margin-top: 12px; }

.listing-result-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(14, 116, 144, 0.16);
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, #f4f8fa, #e1ebf0);
  box-shadow: var(--card-shadow);
}

.listing-result-card h4 { margin: 4px 0 6px; }
.listing-result-card p  { margin: 0; color: var(--muted); line-height: 1.45; }

.manual-platform-links { margin-top: 12px; }
.manual-platform-links summary { cursor: pointer; color: #155e75; font-weight: 850; }
.manual-platform-links .listing-platform-grid { margin-top: 10px; }

.csv-import-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
}

.csv-import-row small { grid-column: 2; color: var(--muted); line-height: 1.45; }
.csv-import-row label { color: var(--ink); font-weight: 850; }

.lease-form {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(130px, 0.72fr));
  gap: 8px;
}

.lease-form textarea,
.lease-form #lease-link,
.lease-form button { grid-column: span 2; }

.lease-form textarea {
  min-height: 58px;
  padding: 11px 12px;
  border: 1px solid #c7d4dd;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  resize: vertical;
  font: inherit;
}

.lease-form button {
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(14, 116, 144, 0.4);
  background: linear-gradient(145deg, #0e7490, #155e75);
  color: #fff;
  font-weight: 900;
}

.lease-list { display: grid; gap: 10px; }

.lease-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid #d8e2e8;
  background: #ffffff;
  box-shadow: var(--card-shadow);
}

.lease-card h4 { margin-bottom: 6px; }
.lease-card p, .lease-card small { color: var(--muted); line-height: 1.45; }

.lease-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.lease-actions a,
.quick-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(14, 116, 144, 0.4);
  border-radius: 6px;
  background: linear-gradient(145deg, #0e7490, #155e75);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform 140ms ease;
}

.lease-actions a:hover, .quick-links a:hover { transform: translateY(-1px); }

.lease-actions button {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #fdecec;
  border: 1px solid #efb7b7;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 850;
}

.quick-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.lease-fit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.lease-fit-grid > span {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.6);
}

.lease-fit-grid strong { color: var(--ink); font-size: 0.98rem; line-height: 1.2; }
.lease-fit-grid small  { color: var(--muted); font-size: 0.72rem; font-weight: 850; letter-spacing: 0.04em; text-transform: uppercase; }

.lease-fit-good    { border-left: 5px solid #12805c !important; }
.lease-fit-tight   { border-left: 5px solid #b45309 !important; }
.lease-fit-risky   { border-left: 5px solid #b91c1c !important; }
.lease-fit-unknown { border-left: 5px solid #0e7490 !important; }

/* 22. Photo Strip & Modal
   ========================================================================== */
.photo-strip {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 16px;
}

.photo-strip figure {
  position: relative;
  min-height: 210px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #dbe4ea;
  cursor: pointer;
  box-shadow: var(--soft-shadow);
}

.photo-strip img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  display: block;
  object-fit: cover;
}

.photo-strip figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(16, 27, 39, 0.78);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
}

.photo-strip figure::after {
  content: "Open";
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
  color: #07111f;
  font-size: 0.72rem;
  font-weight: 900;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.photo-strip figure:hover::after,
.photo-strip figure:focus-visible::after { opacity: 1; transform: translateY(0); }

.photo-strip figure:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.photo-modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px; background: rgba(16, 27, 39, 0.72); }

.photo-modal-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
  width: min(980px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 16px;
}

.photo-modal-card img { width: 100%; min-height: 320px; height: 100%; object-fit: cover; background: #07111f; }
.photo-modal-card h3  { margin-top: 8px; font-size: 1.6rem; }
.photo-modal-card p:last-child { margin-bottom: 0; color: var(--muted); line-height: 1.55; }

.photo-modal-close {
  grid-column: 1 / -1;
  justify-self: end;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(14, 116, 144, 0.4);
  background: linear-gradient(145deg, #0e7490, #155e75);
  color: #fff;
  font-weight: 850;
}

/* 23. Panel Component
   ========================================================================== */
.panel {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid #d8e2e8;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(247, 252, 253, 0.9));
  box-shadow: var(--card-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -24px -24px 18px;
  padding: 18px 24px;
  border-bottom: 1px solid #d8e2e8;
  background: #f4f8fa;
  border-radius: var(--radius) var(--radius) 0 0;
}

.panel-header h3 {
  margin-bottom: 0;
  font-size: clamp(1.05rem, 1.55vw, 1.32rem);
  line-height: 1.2;
  overflow-wrap: break-word;
}

.map-panel .panel-header         { border-left: 5px solid var(--teal); }
.business-checker .panel-header  { border-left: 5px solid var(--teal); }
.opportunity-panel .panel-header { border-left: 5px solid var(--green); }
.places-panel .panel-header      { border-left: 5px solid var(--blue); }
.civic-panel .panel-header       { border-left: 5px solid var(--brick); }
.site-intel-panel .panel-header  { border-left: 5px solid var(--violet); }
.concept-fit-panel .panel-header { border-left: 5px solid var(--teal); }
.institutional-panel .panel-header { border-left: 5px solid var(--teal); }

.panel-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.verify-note {
  margin: 8px 0 0;
  padding-left: 10px;
  border-left: 2px solid #e0b15f;
  color: #8a6212;
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 600;
}

/* Panel accordion (collapsible sections)
   ========================================================================== */
.panel-accordion {
  /* Reset browser defaults */
}

.panel-accordion > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.panel-accordion > summary::-webkit-details-marker { display: none; }

.panel-accordion > summary.panel-header {
  /* Closed state: no gap below, full corner radius */
  margin-bottom: 0;
  border-radius: var(--radius);
}

.panel-accordion[open] > summary.panel-header {
  margin-bottom: 18px;
  border-radius: var(--radius) var(--radius) 0 0;
}

/* Chevron */
.panel-accordion > summary.panel-header::after {
  content: "▾";
  font-size: 1rem;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 10px;
}

.panel-accordion[open] > summary.panel-header::after {
  transform: rotate(-180deg);
}

.panel-accordion > summary.panel-header:hover {
  background: #edf2f6;
}

/* No-signal fallback copy (Government Risk / Site Intel) */
.no-signal-copy {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.72;
  font-style: italic;
  margin-top: 4px;
}

/* 24. UI Atoms
   ========================================================================== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  background: #e7f4f4;
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.pill::before,
.mini-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 16%, transparent);
  flex: 0 0 auto;
}

.status-connected {
  background: #e5f7ef;
  color: #08724a;
}

.status-estimated {
  background: #eef5f7;
  color: #0f6275;
}

.status-modeled {
  background: #fff4e2;
  color: #9a5b09;
}

.status-refreshing {
  background: #f3f7fb;
  color: #31506b;
}

.status-refreshing::before {
  animation: statusPulse 1.15s ease-in-out infinite;
}

.mini-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.last-updated {
  margin-left: auto;
  color: #6b7c86;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  white-space: nowrap;
}

.skeleton-text,
.skeleton-line,
.skeleton-number {
  color: transparent !important;
  border-radius: 8px;
  background: linear-gradient(90deg, #e5edf1 0%, #f7fbfc 48%, #e5edf1 100%);
  background-size: 220% 100%;
  animation: skeletonShimmer 1.25s ease-in-out infinite;
}

.skeleton-text {
  display: inline-block;
  min-width: 8.5rem;
  min-height: 1.1em;
}

.skeleton-line {
  display: block;
  width: min(100%, 18rem);
  height: 0.85rem;
  margin-top: 8px;
}

.skeleton-line.short { width: min(64%, 11rem); }

.business-count > span.skeleton-number {
  width: min(72%, 13rem);
  height: 3.8rem;
}

@keyframes skeletonShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@keyframes statusPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.35); opacity: 1; }
}

.mini-source {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.memo-button {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(14, 116, 144, 0.4);
  background: linear-gradient(145deg, #0e7490, #155e75);
  color: #fff;
  font-weight: 800;
}

.memo-box {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid #d8e2e8;
  border-radius: var(--radius-sm);
  background: #f7fafc;
}

.memo-box p:last-child { margin-bottom: 0; }

.verdict-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 18px;
  align-items: center;
  padding: 26px;
  border-radius: var(--radius);
  border: 0;
  border-left: 8px solid var(--brick);
  background:
    linear-gradient(90deg, rgba(164, 79, 63, 0.06), transparent 28%),
    #ffffff;
  box-shadow: var(--card-shadow);
}

.verdict-panel p { margin-bottom: 0; color: var(--muted); line-height: 1.55; }

.verdict-score {
  display: grid;
  place-items: center;
  min-height: 100px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #b8d8c7;
  background: #eaf7ef;
  text-align: center;
}

.verdict-score span  { color: var(--green); font-size: 1.3rem; font-weight: 900; line-height: 1.15; }
.verdict-score small { display: block; margin-top: 6px; color: #3a4a52; font-weight: 700; font-size: 0.74rem; }

/* Decision-tier color variants (replaces the single green grade box). */
.verdict-score.vt-definite, .verdict-score.vt-strong { background: var(--st-verified-bg); border-color: rgba(14, 159, 110, 0.42); }
.verdict-score.vt-definite span, .verdict-score.vt-strong span { color: var(--st-verified-fg); }
.verdict-score.vt-conditional { background: var(--st-modeled-bg); border-color: rgba(224, 162, 58, 0.5); }
.verdict-score.vt-conditional span { color: var(--st-modeled-fg); }
.verdict-score.vt-risk { background: var(--st-risk-bg); border-color: rgba(217, 83, 79, 0.45); }
.verdict-score.vt-risk span { color: var(--st-risk-fg); }

/* Business examples */
.business-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.business-examples button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #c9d8e0;
  border-radius: 6px;
  background: #eef5f7;
  color: var(--teal);
  font-weight: 800;
  box-shadow: none;
}

/* 25. Responsive
   ========================================================================== */
@media (max-width: 1280px) {
  .workspace { grid-template-columns: 280px minmax(0, 1fr); }
  .sidebar   { padding: 16px 14px; }
}

@media (max-width: 1360px) and (min-width: 861px) {
  .decision-strip,
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1060px) {
  .workspace,
  .report-layout,
  .insight-grid,
  .market-grid,
  .start-steps {
    grid-template-columns: 1fr;
  }

  .sidebar { min-height: auto; }

  .decision-strip,
  .summary-grid,
  .business-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .memo-hero,
  .memo-grid {
    grid-template-columns: 1fr;
  }

  .memo-score-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .photo-strip,
  .photo-modal-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .lease-fit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .app-shell { padding: 0; }

  .workspace {
    grid-template-columns: 1fr;
    min-height: 100vh;
    overflow: visible;
    border-radius: 0;
  }

  .sidebar {
    overflow: visible;
    overscroll-behavior: auto;
  }

  .results, .start-screen { padding: 18px; }

  .results {
    order: -1;
  }

  .results > .executive-decision-strip {
    order: -3;
  }

  .results > .investment-memo {
    order: -2;
  }

  .results > .hero-report {
    order: -1;
  }

  .start-screen h2  { font-size: clamp(2rem, 9vw, 3rem); }
  .hero-report {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
  }
  .hero-report h2 {
    max-width: 100%;
    font-size: clamp(1.7rem, 6.4vw, 2.25rem);
    line-height: 1.04;
    letter-spacing: -0.025em;
  }
  .hero-report p {
    max-width: 36rem;
    font-size: 0.95rem;
  }

  .civic-grid,
  .site-intel-grid,
  .foot-traffic-grid,
  .revenue-input-grid,
  .revenue-output-grid,
  .score-driver-list,
  .institutional-grid,
  .analysis-columns { grid-template-columns: 1fr; }

  .decision-strip,
  .summary-grid,
  .business-results,
  .memo-score-stack { grid-template-columns: 1fr; }

  .decision-strip {
    padding: 4px;
    border-radius: 16px;
  }

  .decision-strip article {
    min-height: auto;
  }

  .decision-strip .decision-main-card {
    min-height: 0;
    padding: 22px;
  }

  .source-map-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .source-map-status {
    justify-self: start;
  }
}

@media (hover: hover) and (pointer: fine) {
  .panel:hover,
  .decision-strip article:hover,
  .signal-card:hover,
  .business-results article:hover,
  .evidence-signal-card:hover,
  .institutional-grid article:hover,
  .analysis-columns article:hover,
  .score-drivers-card:hover,
  .place-card:hover,
  .opportunity-item:hover,
  .unknown-factors:hover {
    transform: translateY(-2px);
    border-color: rgba(14, 116, 144, 0.24);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 680px) {
  .sidebar, .results, .start-screen { padding: 18px; }

  .start-screen { min-height: 60vh; align-content: start; }
  .start-screen h2 { font-size: clamp(2.1rem, 11vw, 3rem); }
  .start-steps { grid-template-columns: 1fr; }

  .start-steps article {
    border-radius: 16px;
  }

  .business-suggestions {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 40;
    max-height: min(240px, 32vh);
    padding: 8px;
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
  }

  .business-suggestions button {
    min-height: 48px;
    font-size: 1rem;
  }

  .hero-report        { padding: 18px; }
  .investment-memo    { padding: 12px; border-radius: 14px; }
  .memo-hero-copy     { padding: 18px; }
  .memo-hero-copy h3  { font-size: clamp(1.35rem, 7vw, 1.85rem); }
  .memo-score-stack article { min-height: 104px; }
  .memo-list-row      { grid-template-columns: 1fr; }
  .memo-thesis-card .memo-list-row strong:nth-child(2) {
    justify-self: start;
  }
  .hero-report h2 {
    font-size: clamp(1.45rem, 5.8vw, 1.85rem);
    line-height: 1.1;
    text-wrap: pretty;
  }
  .hero-report p { font-size: 0.92rem; }
  .hero-tags span {
    max-width: 100%;
    font-size: 0.68rem;
    overflow-wrap: anywhere;
  }
  .hero-report,
  .panel,
  .verdict-panel,
  .decision-strip article { border-radius: 14px; }

  .zip-row, .address-row { grid-template-columns: 1fr; }

  .ghost-button, select, .quick-links, .business-form { width: 100%; }

  .lease-form,
  .lease-card,
  .lease-fit-grid,
  .address-row,
  .business-form { grid-template-columns: 1fr; }

  .lease-form textarea,
  .lease-form #lease-link,
  .lease-form button { grid-column: auto; }

  .quick-links,
  .csv-import-row,
  .lease-actions { justify-content: flex-start; }

  .csv-import-row          { grid-template-columns: 1fr; }
  .csv-import-row small    { grid-column: auto; }
  .category-item           { grid-template-columns: 1fr; }
  .score                   { justify-self: start; }

  .panel          { padding: 18px; }
  .panel-header   { margin: -18px -18px 16px; padding: 16px 18px; }

  .market-map     { min-height: 360px; }
  .photo-strip,
  .photo-modal-card,
  .verdict-panel,
  .explainability-list { grid-template-columns: 1fr; }

  .panel-header   { flex-direction: column; align-items: stretch; }

  .decision-badge {
    justify-self: stretch;
    font-size: clamp(1.25rem, 6vw, 1.7rem);
    text-align: center;
  }

  .decision-strip .decision-main-card {
    min-height: 0;
    padding: 20px;
  }

  .business-count > span { font-size: clamp(2rem, 12vw, 3.1rem); }

  .evidence-signal-grid,
  .places-list    { grid-template-columns: 1fr; }

  .summary-grid   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opportunity-list { grid-template-columns: 1fr; }
  .market-grid    { grid-template-columns: 1fr; }
  .insight-grid   { grid-template-columns: 1fr; }
  .report-layout  { grid-template-columns: 1fr; }
}

@media (min-width: 1120px) {
  .business-results {
    grid-template-columns:
      minmax(210px, 0.8fr)
      minmax(220px, 1fr)
      minmax(220px, 1fr)
      minmax(260px, 1.15fr);
  }
}

@media (max-width: 980px) and (min-width: 681px) {
  .business-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Print export
   ========================================================================== */
/* Print-only blocks (report header/footer) are hidden on screen. */
.print-only { display: none; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: 100%;
}

/* Unified toolbar look so the action buttons read as one set on the hero. */
.hero-actions button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #eaf4fb;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}
.hero-actions button:hover { background: rgba(255, 255, 255, 0.18); }
.hero-actions button:disabled { opacity: 0.5; cursor: not-allowed; }
.hero-actions .primary-button {
  background: #f3f8fb;
  color: #0e2a40;
  border-color: transparent;
}
.hero-actions .primary-button:hover { background: #fff; }

@media print {
  /* Backgrounds/colors must survive print so Live (green) vs Modeled (amber)
     labels stay meaningful in the PDF. */
  *, *::before, *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    box-shadow: none !important;
    animation: none !important;
    transition: none !important;
  }

  @page { margin: 14mm 12mm 18mm; }

  html, body { background: #fff !important; }

  /* Collapse the app chrome down to just the report, full width. */
  .app-shell, .workspace { display: block !important; }
  .sidebar, #start-screen { display: none !important; }
  .results { display: block !important; width: 100% !important; }

  /* Interactive controls and non-report panels have no place in a PDF. */
  button, input, select, textarea,
  .hero-actions, .map-panel, .advanced-tools, .compare-panel,
  .category-filter, #category-filter { display: none !important; }

  /* Force-expanded details (set open via JS) print their content. */
  details { display: block !important; }
  details > summary { list-style: none; }

  /* Show the print-only header and footer. */
  .print-only { display: block; }

  .print-header {
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0e2a40;
  }
  .print-header .print-brand {
    display: block;
    font-size: 20pt;
    font-weight: 900;
    color: #0e2a40;
    letter-spacing: -0.01em;
  }
  .print-header .print-tagline {
    display: block;
    font-size: 9pt;
    color: #556;
    margin-top: 2px;
  }
  .print-header .print-meta {
    display: block;
    font-size: 10pt;
    font-weight: 700;
    color: #0e2a40;
    margin-top: 6px;
  }

  .print-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding-top: 4px;
    border-top: 1px solid #c9d4dc;
    font-size: 7.5pt;
    line-height: 1.35;
    color: #556;
  }

  /* Keep report blocks intact across page breaks. */
  .panel, .signal-card, .verdict-panel, .decision-strip article,
  .summary-grid article, .evidence-signal-card, .source-map-row,
  .insight-panel, .market-panel, .diligence-panel, .signal-chip {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .results { font-size: 9.5pt; }

  /* Trim heavy / low-value content so the PDF stays shareable. */
  .place-card img, .place-photo-fallback { display: none !important; }
  .panel { padding: 10px 12px !important; margin: 0 0 8px !important; }
  .hero-report { padding: 14px !important; }
  .results > section, .results > div { margin-bottom: 8px !important; }
  .summary-grid, .institutional-grid, .analysis-columns, .insight-grid,
  .foot-traffic-grid, .revenue-output-grid, .civic-grid, .site-intel-grid,
  .business-results, .concept-fit-list, .places-list, .evidence-signal-grid {
    gap: 8px !important;
  }
}

/* Executive summary PDF (1-2 page default export)
   ========================================================================== */
/* Hidden on screen; revealed only in print-exec mode. */
#exec-summary { display: none; }

.exec-summary { color: #1f2933; }

.exec-decision {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #d7e0e6;
  border-radius: 12px;
  background: #f8fbfc;
}
.exec-decision-main { max-width: 64%; }
.exec-label {
  display: block;
  font-size: 8pt;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a6b75;
}
.exec-verdict {
  display: inline-block;
  margin: 4px 0 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 15pt;
  font-weight: 900;
  letter-spacing: 0.01em;
}
.exec-decision-main p { margin: 0; font-size: 9.5pt; line-height: 1.4; color: #38444d; }
.exec-metrics { display: flex; flex-direction: column; gap: 8px; text-align: right; }
.exec-metrics span { display: block; font-size: 8pt; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: #5a6b75; }
.exec-metrics strong { font-size: 13pt; font-weight: 900; color: #0e2a40; }

.exec-confidence-note { margin: 6px 2px 10px; font-size: 8.5pt; color: #6b7c86; }

.exec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }

.exec-card {
  border: 1px solid #e1e8ed;
  border-radius: 10px;
  padding: 11px 13px;
}
.exec-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 7px;
  font-size: 10.5pt;
  font-weight: 800;
  color: #0e2a40;
}
.exec-card h3 .status { font-size: 7pt; padding: 3px 7px; }
.exec-card h3 em { font-style: normal; font-weight: 600; color: var(--st-modeled-fg); font-size: 9pt; }
.exec-card p { margin: 0 0 4px; font-size: 9.5pt; line-height: 1.4; }
.exec-stat strong { font-size: 13pt; font-weight: 900; color: #0e2a40; }
.exec-sub { color: #6b7c86; font-size: 8.5pt; }

.exec-card ul { margin: 0; padding: 0; list-style: none; }
.exec-card ul li { margin-bottom: 6px; font-size: 9.5pt; line-height: 1.35; }
.exec-reasons li strong { display: block; color: var(--st-verified-fg); }
.exec-reasons li span { color: #43515a; font-size: 9pt; }
.exec-risks li { padding-left: 12px; position: relative; }
.exec-risks li::before { content: "•"; position: absolute; left: 0; color: var(--st-risk-accent); font-weight: 900; }
.exec-alternatives li { padding-left: 12px; position: relative; }
.exec-alternatives li::before { content: "→"; position: absolute; left: 0; color: var(--st-estimated-fg); }

.exec-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.exec-legend .status { font-size: 7pt; }

.exec-foot-note {
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px solid #d7e0e6;
  font-size: 8pt;
  color: #6b7c86;
  line-height: 1.4;
}

@media print {
  /* Default Export PDF = executive summary: show it, hide the full report. */
  body.print-exec #exec-summary { display: block; }
  body.print-exec .results > *:not(.print-header):not(.print-footer):not(#exec-summary) {
    display: none !important;
  }
  .exec-card, .exec-decision { break-inside: avoid; page-break-inside: avoid; }
}

/* Compare locations (Phase 4)
   ========================================================================== */
.compare-panel { border-color: rgba(14, 42, 64, 0.16); }

.compare-panel .panel-header {
  background:
    linear-gradient(135deg, rgba(7, 17, 31, 0.96), rgba(14, 74, 93, 0.88));
  color: #ffffff;
}

.compare-panel .panel-header .section-label,
.compare-panel .panel-header h3 { color: #ffffff; }

.compare-body { margin-top: 4px; }

.compare-table-wrap { position: relative; overflow-x: auto; }
/* Scroll affordance: a soft right fade hinting more columns. */
.compare-table-wrap::after {
  content: "";
  position: sticky;
  top: 0; right: 0;
  float: right;
  width: 24px;
  height: 1px;
  box-shadow: 18px 0 18px -10px rgba(15, 23, 42, 0.18) inset;
  pointer-events: none;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  font-size: 0.88rem;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
}

/* Keep the metric label column visible while scrolling locations. */
.compare-table th[scope="row"],
.compare-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #ffffff;
}

.compare-table th,
.compare-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #e6edf1;
  vertical-align: top;
}

.compare-table thead th { border-bottom: 2px solid #d7e0e6; }

.compare-table tbody th[scope="row"] {
  font-weight: 800;
  color: #5a6b75;
  white-space: nowrap;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.compare-col-head { display: flex; flex-direction: column; gap: 3px; }
.compare-col-head strong { color: var(--ink); font-size: 0.92rem; }
.compare-col-head span { color: var(--muted); font-size: 0.76rem; }

.compare-top {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--st-verified-bg);
  color: var(--st-verified-fg);
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.compare-remove {
  align-self: flex-start;
  margin-top: 2px;
  padding: 2px 0;
  border: none;
  background: none;
  color: #963226;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.compare-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.compare-best {
  background: var(--st-verified-bg);
  color: var(--st-verified-fg);
  font-weight: 850;
  box-shadow: inset 3px 0 0 var(--st-verified-accent);
}

/* Saved reports (Phase 5)
   ========================================================================== */
.saved-reports-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.16);
  background: rgba(7, 17, 31, 0.70);
}

.saved-reports-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.saved-report-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

/* Scoped under .saved-reports-panel to override the generic .sidebar button
   gradient/full-width styling. */
.saved-reports-panel .saved-open {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
  padding: 10px 11px;
  border: 1px solid rgba(139, 211, 230, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  text-align: left;
  box-shadow: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.saved-reports-panel .saved-open:hover { border-color: #8bd3e6; background: #f7fbfa; }
.saved-reports-panel .saved-open strong { font-size: 0.84rem; font-weight: 800; color: var(--ink); }
.saved-reports-panel .saved-open span { font-size: 0.74rem; font-weight: 600; color: var(--muted); }

.saved-reports-panel .saved-open em {
  align-self: flex-start;
  margin-top: 2px;
  padding: 1px 7px;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 850;
}

.saved-reports-panel .saved-remove {
  flex: 0 0 auto;
  width: 32px;
  min-width: 32px;
  min-height: 0;
  padding: 0;
  border: 1px solid rgba(19, 74, 83, 0.16);
  border-radius: 10px;
  background: #fff;
  color: #963226;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: none;
  cursor: pointer;
}

.saved-reports-panel .saved-remove:hover { background: #f9e4df; }

/* AreaIntel Assistant (Phase 6) — dark enterprise chat
   ========================================================================== */
.assistant-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: linear-gradient(145deg, #0e7490, #0e2a40);
  color: #f3f8fb;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(8, 23, 38, 0.4);
}
.assistant-toggle:hover { filter: brightness(1.07); }
.assistant-toggle svg { width: 20px; height: 20px; }
body.assistant-open .assistant-toggle { display: none; }

.assistant-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 600px;
  max-height: calc(100vh - 40px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: #0e2238;
  color: #e6edf3;
  box-shadow: 0 28px 70px rgba(5, 16, 28, 0.55);
  overflow: hidden;
}
.assistant-panel[hidden] { display: none; }

.assistant-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(145deg, #103450, #0c1f33);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.assistant-header strong { display: block; font-size: 0.98rem; color: #fff; }
.assistant-header span { font-size: 0.76rem; color: #9fb3c8; }
.assistant-close {
  border: none;
  background: transparent;
  color: #9fb3c8;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.assistant-close:hover { color: #fff; }

.assistant-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.assistant-msg {
  max-width: 86%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.assistant-msg-bot {
  align-self: flex-start;
  background: #16304a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #dfe9f1;
}
.assistant-msg-user {
  align-self: flex-end;
  background: linear-gradient(145deg, #0e7490, #0c5a6e);
  color: #f2fbfd;
}

.assistant-dots { display: inline-flex; gap: 4px; }
.assistant-dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #7fb0c9;
  animation: assistantPulse 1s ease-in-out infinite;
}
.assistant-dots i:nth-child(2) { animation-delay: 0.15s; }
.assistant-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes assistantPulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

.assistant-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 8px;
}
.assistant-chip {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #cfe0ec;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}
.assistant-chip:hover { background: rgba(14, 116, 144, 0.35); color: #fff; }

.assistant-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.assistant-cta button {
  flex: 1 1 auto;
  padding: 8px 10px;
  border: 1px solid rgba(45, 212, 191, 0.4);
  border-radius: 9px;
  background: rgba(14, 116, 144, 0.18);
  color: #bfeee8;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.assistant-cta button:hover { background: rgba(14, 116, 144, 0.4); color: #fff; }
/* Advisor review is the escalation/conversion action — make it primary. */
.assistant-cta button[data-cta="advisor"] {
  order: -1;
  flex-basis: 100%;
  padding: 10px 12px;
  border-color: transparent;
  background: linear-gradient(145deg, #14b8a6, #0e7490);
  color: #04222b;
  font-weight: 850;
}
.assistant-cta button[data-cta="advisor"]:hover { filter: brightness(1.08); color: #04222b; }

/* Suggested-questions heading in the empty/idle state. */
.assistant-suggestions-label {
  flex-basis: 100%;
  margin: 2px 0 0;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7e93a8;
}

.assistant-form {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b1c2e;
}
.assistant-form textarea {
  flex: 1;
  resize: none;
  max-height: 96px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: #102a42;
  color: #eaf2f8;
  font: inherit;
  font-size: 0.86rem;
}
.assistant-form textarea::placeholder { color: #7e93a8; }
.assistant-form textarea:focus { outline: 2px solid rgba(45, 212, 191, 0.5); outline-offset: 0; }
.assistant-form button {
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(145deg, #14b8a6, #0e7490);
  color: #05222b;
  font-weight: 850;
  cursor: pointer;
}
.assistant-form button:disabled { opacity: 0.55; cursor: progress; }

@media (max-width: 560px) {
  .assistant-panel {
    right: 0; left: 0; bottom: 0;
    width: 100%;
    max-width: 100%;
    height: 86vh;
    max-height: 86dvh;
    padding-top: 12px;
    border-radius: 18px 18px 0 0;
  }
  /* Bottom-sheet grabber affordance. */
  .assistant-panel::before {
    content: "";
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    width: 40px; height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
  }
  .assistant-form { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .assistant-toggle {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
    justify-content: center;
    padding: 0;
  }
  .assistant-toggle span { display: none; }
}

/* Keep the assistant out of printed reports. */
@media print {
  .assistant-toggle, .assistant-panel, .assistant-onboard { display: none !important; }
}

/* UI/UX audit polish
   ========================================================================== */
/* NYC-only notice (sidebar, near logo + search). */
.nyc-notice {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(243, 199, 68, 0.42);
  border-radius: 12px;
  background: rgba(243, 199, 68, 0.12);
}
.nyc-notice span { font-size: 1.15rem; line-height: 1.1; }
.nyc-notice p { margin: 0; font-size: 0.78rem; line-height: 1.42; color: #e8eef3; }
.nyc-notice strong { color: #f3c744; }

/* Make the market-pressure label readable on the dark gradient card. */
.business-results .business-count .business-count-caption {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 2px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  text-shadow: none;
}

/* Clearance so the floating assistant never hides the last content. */
.results,
.start-screen { padding-bottom: 96px; }

/* Assistant onboarding bubble (first open only). */
.assistant-onboard {
  position: fixed;
  right: 20px;
  bottom: 80px;
  z-index: 1250;
  width: 244px;
  padding: 12px 30px 13px 14px;
  border-radius: 14px;
  background: #0e2238;
  border: 1px solid rgba(45, 212, 191, 0.4);
  color: #e6edf3;
  box-shadow: 0 16px 40px rgba(5, 16, 28, 0.5);
}
.assistant-onboard[hidden] { display: none; }
.assistant-onboard strong { display: block; font-size: 0.86rem; color: #bfeee8; margin-bottom: 3px; }
.assistant-onboard span { font-size: 0.76rem; color: #9fb3c8; line-height: 1.42; }
.assistant-onboard::after {
  content: "";
  position: absolute;
  right: 30px;
  bottom: -7px;
  width: 13px;
  height: 13px;
  background: #0e2238;
  border-right: 1px solid rgba(45, 212, 191, 0.4);
  border-bottom: 1px solid rgba(45, 212, 191, 0.4);
  transform: rotate(45deg);
}
.assistant-onboard-close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: none;
  background: transparent;
  color: #8aa0b4;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.assistant-onboard-close:hover { color: #fff; }

@media (max-width: 560px) {
  .assistant-onboard { right: 14px; bottom: 72px; width: 220px; }
}

.form-message-warn { color: #9a5b09 !important; font-weight: 700; }

/* Launch/revenue sections
   ========================================================================== */
.launch-section {
  margin-top: 28px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid rgba(11, 28, 46, 0.11);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 22px 70px rgba(13, 34, 52, 0.1);
}

.launch-section-header {
  max-width: 780px;
  margin-bottom: 18px;
}

.launch-section-header h3 {
  margin: 4px 0 8px;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  letter-spacing: -0.03em;
  color: #101923;
}

.launch-section-header p {
  margin: 0;
  color: #5d6b77;
  line-height: 1.55;
}

.pricing-grid,
.advisor-grid,
.agents-grid,
.admin-grid,
.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.pricing-card,
.advisor-grid article,
.agent-card,
.admin-grid article,
.account-grid form,
.account-management-card {
  border: 1px solid rgba(14, 42, 64, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f7fbfc);
  padding: 18px;
  box-shadow: 0 14px 34px rgba(13, 34, 52, 0.08);
}

.pricing-card-featured {
  border-color: rgba(14, 116, 144, 0.34);
  background: linear-gradient(180deg, #f0fcfb, #ffffff);
}

.pricing-card span,
.agent-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e7f7f5;
  color: #0f766e;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pricing-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 2rem;
  color: #0b1c2e;
  letter-spacing: -0.04em;
}

.pricing-card h4,
.advisor-grid strong,
.agent-card strong,
.admin-grid h4,
.account-grid strong,
.account-management-card strong {
  display: block;
  margin: 0 0 8px;
  color: #101923;
  font-size: 1.05rem;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.account-actions button {
  flex: 1 1 150px;
}

.pricing-card p,
.advisor-grid p,
.agent-card p {
  margin: 0 0 16px;
  color: #5d6b77;
  line-height: 1.5;
}

.pricing-card button,
.launch-form button,
.admin-token-row button {
  border: none;
  border-radius: 13px;
  background: linear-gradient(145deg, #128099, #0f766e);
  color: #ffffff;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(14, 116, 144, 0.24);
}

.pricing-card button {
  width: 100%;
  padding: 12px 14px;
}

.launch-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.compact-launch-form { margin-top: 16px; }

.launch-form input,
.launch-form select,
.launch-form textarea,
.admin-token-row input {
  width: 100%;
  border: 1px solid rgba(11, 28, 46, 0.16);
  border-radius: 13px;
  background: #ffffff;
  padding: 12px 13px;
  color: #10202f;
  font: inherit;
}

.launch-form textarea {
  min-height: 112px;
  grid-column: 1 / -1;
  resize: vertical;
}

.launch-form button {
  grid-column: 1 / -1;
  padding: 13px 16px;
}

.launch-status {
  grid-column: 1 / -1;
  margin: 0;
  color: #5d6b77;
  font-weight: 700;
}

.launch-status a { color: #0e7490; }
.launch-status-ok { color: #0f766e; }
.launch-status-error { color: #a33b2f; }

.agent-card em {
  display: inline-flex;
  font-style: normal;
  font-weight: 850;
  color: #0e7490;
}

.admin-token-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-token-row input { flex: 1; }
.admin-token-row button { padding: 0 18px; }

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-row {
  padding: 12px;
  border: 1px solid rgba(11, 28, 46, 0.09);
  border-radius: 13px;
  background: #fff;
}

.admin-row strong,
.admin-row span,
.admin-row small {
  display: block;
}

.admin-row span {
  margin-top: 4px;
  color: #52616f;
}

.admin-row small {
  margin-top: 6px;
  color: #7b8995;
  line-height: 1.45;
}

@media (max-width: 720px) {
  .launch-form,
  .admin-grid,
  .account-grid {
    grid-template-columns: 1fr;
  }

  .admin-token-row {
    flex-direction: column;
  }

  .admin-token-row button {
    min-height: 46px;
  }
}

/* Design system: 5-state status atom + extended pill/chip tones
   ========================================================================== */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: var(--radius-pill, 999px);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}
.status__dot { width: 7px; height: 7px; border-radius: 999px; background: currentColor; flex: 0 0 auto; }
.status--verified  { background: var(--st-verified-bg);  color: var(--st-verified-fg); }
.status--modeled   { background: var(--st-modeled-bg);   color: var(--st-modeled-fg); }
.status--estimated { background: var(--st-estimated-bg); color: var(--st-estimated-fg); }
.status--research  { background: var(--st-research-bg);  color: var(--st-research-fg); }
.status--risk      { background: var(--st-risk-bg);      color: var(--st-risk-fg); }
.status--research .status__dot { animation: statusPulse 1.15s ease-in-out infinite; }

/* New pill tones (used via setStatusPill). */
.status-estimated { background: var(--st-estimated-bg); color: var(--st-estimated-fg); }
.status-risk      { background: var(--st-risk-bg);      color: var(--st-risk-fg); }

/* New signals-strip chip tones. */
.signal-chip-estimated { background: var(--st-estimated-bg); color: var(--st-estimated-fg); }
.signal-chip-risk      { background: var(--st-risk-bg);      color: var(--st-risk-fg); }

@media (prefers-reduced-motion: reduce) {
  .status--research .status__dot,
  .signal-chip-refreshing .signal-dot,
  .status-refreshing::before { animation: none !important; }
}

/* P2: Risk=Red treatment for risk content + tooltip affordance
   ========================================================================== */
.scenario-card--risk {
  background: var(--st-risk-bg);
  border-color: rgba(217, 83, 79, 0.35);
  border-left: 3px solid var(--st-risk-accent);
}
.scenario-card--risk > span:last-child { color: #5a2a23; font-weight: 700; }
/* Beat `.scenario-card > span` so the Risk chip keeps its red. */
.scenario-card .status--risk { color: var(--st-risk-fg); font-weight: 800; }

/* Signal a metric card carries an explanation on hover/long-press. */
.signal-card[title],
.executive-decision-strip article[title],
.foot-traffic-grid article[title],
.business-results article[title] { cursor: help; }

/* External-search indicator on Location Options links */
.ext-mark { font-size: 0.8em; opacity: 0.75; }

/* Compare table: dedicated rank/status row (badges out of column headers) */
.compare-rank-row th { border-bottom: none; padding-bottom: 4px; vertical-align: bottom; }
.compare-rank-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.compare-rank-num {
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2f6;
  color: #5a6b75;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}
.compare-table thead th:first-child {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5a6b75;
  vertical-align: bottom;
}

/* Compare headers: keep business name tidy, truncate long addresses (full
   address shown via the title tooltip). */
.compare-col-head { max-width: 200px; }
.compare-col-head strong { white-space: normal; overflow-wrap: anywhere; }
.compare-addr {
  display: block;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Executive Report Visual Redesign — Investment Terminal
   Applies a premium decision-platform identity over the legacy AreaIntel UI.
   ========================================================================== */
:root {
  --ink: #101318;
  --muted: #66717f;
  --line: rgba(16, 19, 24, 0.12);
  --panel: #ffffff;
  --wash: #e8ebef;
  --nav: #070a0f;
  --teal: #2f6feb;
  --blue: #4b8cff;
  --green: #16a66a;
  --red: #d94a3a;
  --amber: #d99a2b;
  --brick: #b84235;
  --violet: #6b5cff;
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 10px;
  --shadow: 0 34px 80px rgba(7, 10, 15, 0.22);
  --soft-shadow: 0 18px 42px rgba(7, 10, 15, 0.12);
  --card-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 42px rgba(7, 10, 15, 0.08);
  --terminal: #070a0f;
  --terminal-2: #111827;
  --paper: #f7f8fa;
  --porcelain: #fbfcfd;
  --memo-border: rgba(16, 19, 24, 0.1);
}

body {
  background:
    linear-gradient(180deg, #070a0f 0, #111827 360px, #e8ebef 361px);
  color: var(--ink);
}

.app-shell {
  padding: 16px;
}

.workspace {
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.38);
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(7, 10, 15, 0.96), rgba(12, 17, 25, 0.98));
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.sidebar::before {
  background:
    linear-gradient(180deg, rgba(75, 140, 255, 0.08), transparent 34%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 55%);
}

.brand {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.mark {
  border-radius: 9px;
  background: linear-gradient(145deg, #f7f8fa, #dbe3ea);
  color: #070a0f;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.eyebrow,
.step-label,
.section-label {
  color: #7dd3fc;
  letter-spacing: 0.12em;
}

.brand-title {
  letter-spacing: -0.04em;
}

.brand-tagline,
.positioning-card p,
.nyc-notice p {
  color: #c8d2dc;
}

.positioning-card,
.nyc-notice,
.intake-card,
.search-panel,
.address-panel,
.saved-reports-panel {
  border-radius: 10px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.sidebar input,
.sidebar select,
.sidebar textarea {
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.92);
  color: #101318;
}

.sidebar button,
.sidebar .zip-row button,
.sidebar .address-row button,
.sidebar .business-form button,
.primary-button,
.ghost-button,
.export-button,
.memo-button {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #f8fafc, #dfe7ee);
  color: #101318;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  letter-spacing: 0;
}

.sidebar button:hover,
.primary-button:hover,
.ghost-button:hover,
.export-button:hover,
.memo-button:hover {
  background: #ffffff;
}

.business-suggestions {
  border-radius: 10px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(7, 10, 15, 0.98);
}

.business-suggestions button {
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
}

.results {
  gap: 14px;
  background:
    linear-gradient(180deg, #f7f8fa, #eceff3);
}

.hero-report {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(7, 10, 15, 0.98), rgba(17, 24, 39, 0.94)),
    linear-gradient(90deg, rgba(75, 140, 255, 0.15), transparent);
  box-shadow: 0 26px 70px rgba(7, 10, 15, 0.22);
}

.hero-report h2 {
  max-width: 18ch;
  letter-spacing: -0.045em;
}

.hero-report p {
  color: #c8d2dc;
}

.hero-tags span {
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #dce6ef;
}

.hero-actions {
  max-width: 380px;
  justify-content: flex-end;
}

.hero-actions button {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.hero-actions #export-pdf-button,
.hero-actions #copy-link-button {
  background: #f8fafc;
  color: #101318;
}

.decision-strip {
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.decision-strip article {
  min-height: 168px;
  border-radius: 10px;
  border: 1px solid var(--memo-border);
  border-top: 1px solid var(--memo-border);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--card-shadow);
}

.decision-strip article::before {
  height: 3px;
  background: #4b8cff;
}

.decision-strip .decision-main-card {
  min-height: 238px;
  background:
    linear-gradient(145deg, #070a0f, #101827 56%, #172033);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 26px 70px rgba(7, 10, 15, 0.28);
}

.decision-strip .decision-main-card::after {
  inset: 10px;
  border-radius: 8px;
}

.decision-badge {
  border-radius: 8px;
  letter-spacing: -0.03em;
}

.decision-open {
  background: #e8f8ef;
  color: #0d7449;
}

.decision-conditional {
  background: #eaf2ff;
  color: #245fcc;
}

.decision-do-not-open {
  background: #fff0ec;
  color: #b84235;
}

.decision-needs-more-data {
  background: #eef1f5;
  color: #46515f;
}

.investment-memo {
  border-radius: 12px;
  border-color: rgba(16, 19, 24, 0.12);
  background: #fbfcfd;
  box-shadow: var(--soft-shadow);
}

.memo-hero-copy,
.memo-card,
.memo-score-stack article,
.signal-card,
.panel,
.verdict-panel,
.business-results article,
.institutional-grid article,
.analysis-columns article,
.score-drivers-card,
.unknown-factors,
.foot-traffic-grid article,
.revenue-output-grid article,
.revenue-input-grid label,
.market-panel,
.diligence-panel {
  border-radius: 10px;
  border: 1px solid rgba(16, 19, 24, 0.1);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--card-shadow);
}

.memo-hero-copy h3 {
  letter-spacing: -0.045em;
}

.memo-score-stack article {
  background: #101318;
  color: #f8fafc;
}

.memo-score-stack article:nth-child(2) {
  background: #1f2937;
}

.memo-index {
  border-radius: 7px;
  background: #eaf2ff;
  color: #245fcc;
}

.memo-list-row,
.score-row,
.scenario-card,
.mini-metric-grid div,
.source-map-row,
.evidence-signal-card {
  border-radius: 8px;
  border-color: rgba(16, 19, 24, 0.09);
  background: #f8fafc;
}

.memo-risk-row,
.scenario-card--risk {
  background: #fff4f1;
}

.data-connected-strip {
  border-radius: 10px;
  border-color: rgba(16, 19, 24, 0.1);
  background: #ffffff;
  box-shadow: var(--card-shadow);
}

.summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.signal-card::before {
  height: 3px;
}

.signal-card strong,
.business-results strong,
.institutional-grid strong,
.memo-score-stack strong,
.decision-strip article:not(.decision-main-card) strong {
  letter-spacing: -0.035em;
}

.evidence-panel,
.institutional-panel,
.compare-panel {
  background: #ffffff;
  box-shadow: var(--card-shadow);
}

.panel-header {
  border-bottom-color: rgba(16, 19, 24, 0.08);
  background: #f8fafc;
}

.pill,
.status,
.signal-chip,
.mini-status,
.source-map-status {
  border-radius: 999px;
}

.market-map {
  border-radius: 10px;
  filter: saturate(0.82) contrast(1.03);
}

.assistant-toggle {
  background: #101318;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

@media (max-width: 860px) {
  body {
    background: #e8ebef;
  }

  .app-shell {
    padding: 0;
  }

  .workspace {
    border-radius: 0;
    box-shadow: none;
  }

  .results {
    padding: 14px;
    background: #e8ebef;
  }

  .decision-strip {
    gap: 10px;
  }

  .decision-strip .decision-main-card {
    min-height: 0;
    padding: 18px;
  }

  .decision-badge {
    font-size: clamp(1.35rem, 7vw, 1.85rem);
  }

  .investment-memo {
    padding: 10px;
  }

  .memo-hero-copy {
    padding: 18px;
  }

  .hero-report {
    grid-template-columns: 1fr;
    border-radius: 10px;
  }

  .hero-actions {
    max-width: none;
    justify-content: flex-start;
  }
}

/* ==========================================================================
   Decision Map Intelligence — Placer + Buxton + Reonomy + ArcGIS direction
   ========================================================================== */
:root {
  --ink: #111827;
  --muted: #607080;
  --line: rgba(15, 23, 42, 0.12);
  --panel: #ffffff;
  --wash: #eef4f8;
  --nav: #0b1220;
  --teal: #2563eb;
  --blue: #2563eb;
  --green: #12a66a;
  --red: #dc4c3e;
  --amber: #d99a2b;
  --brick: #c24132;
  --violet: #5b6ee1;
  --radius: 12px;
  --radius-sm: 9px;
  --radius-lg: 16px;
  --shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
  --soft-shadow: 0 16px 42px rgba(37, 99, 235, 0.12);
  --card-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  --map-navy: #0b1220;
  --map-blue: #2563eb;
  --map-cyan: #14b8d4;
  --paper: #f8fafc;
  --panel-blue: #eff6ff;
}

body {
  background:
    linear-gradient(180deg, #dbeafe 0, #eef4f8 240px, #f8fafc 100%);
  color: var(--ink);
}

.workspace {
  background: #f8fafc;
  border: 1px solid rgba(37, 99, 235, 0.1);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.16);
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(11, 18, 32, 0.96), rgba(16, 31, 54, 0.97)),
    radial-gradient(circle at 15% 0%, rgba(20, 184, 212, 0.16), transparent 34%);
  border-right: 1px solid rgba(148, 163, 184, 0.22);
}

.sidebar::before {
  background:
    linear-gradient(135deg, rgba(20, 184, 212, 0.16), transparent 44%),
    linear-gradient(180deg, rgba(37, 99, 235, 0.12), transparent 62%);
}

.mark {
  background:
    linear-gradient(145deg, #ffffff, #dbeafe);
  color: #1d4ed8;
}

.eyebrow,
.step-label,
.section-label {
  color: #60a5fa;
}

.positioning-card,
.nyc-notice,
.intake-card,
.search-panel,
.address-panel {
  border-color: rgba(147, 197, 253, 0.22);
  background: rgba(15, 23, 42, 0.52);
}

.sidebar button,
.sidebar .zip-row button,
.sidebar .address-row button,
.sidebar .business-form button,
.primary-button,
.ghost-button,
.export-button,
.memo-button,
.subtle-button {
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: linear-gradient(180deg, #ffffff, #eaf2ff);
  color: #0f2f68;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.16);
}

.sidebar button:hover,
.primary-button:hover,
.ghost-button:hover,
.export-button:hover,
.memo-button:hover,
.subtle-button:hover {
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.36);
}

.business-suggestions {
  background: #0b1220;
  border-color: rgba(96, 165, 250, 0.28);
}

.business-suggestions button {
  background: rgba(37, 99, 235, 0.16);
  border-color: rgba(147, 197, 253, 0.18);
}

.business-suggestions button:hover,
.business-suggestions button:focus-visible {
  background: rgba(20, 184, 212, 0.2);
}

.results {
  background:
    linear-gradient(180deg, #f8fafc, #eef4f8);
}

.results > .hero-report { order: -7; }
.results > .map-panel { order: -6; }
.results > .executive-decision-strip { order: -5; }
.results > .investment-memo { order: -4; }
.results > .data-connected-strip { order: -3; }
.results > .summary-grid { order: -2; }
.results > .evidence-panel { order: -1; }

.hero-report {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  align-items: stretch;
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background:
    linear-gradient(135deg, rgba(11, 18, 32, 0.96), rgba(30, 64, 175, 0.88)),
    radial-gradient(circle at 85% 15%, rgba(20, 184, 212, 0.32), transparent 32%);
  box-shadow: 0 28px 70px rgba(37, 99, 235, 0.18);
}

.hero-report h2 {
  max-width: 26ch;
  letter-spacing: -0.035em;
}

.hero-report p {
  color: #dbeafe;
}

.hero-tags span {
  background: rgba(239, 246, 255, 0.12);
  border-color: rgba(191, 219, 254, 0.22);
}

.hero-actions {
  align-content: end;
  justify-content: end;
}

.hero-actions button {
  border: 1px solid rgba(191, 219, 254, 0.24);
  background: rgba(239, 246, 255, 0.12);
  color: #eaf2ff;
}

.hero-actions #export-pdf-button,
.hero-actions #copy-link-button {
  background: #ffffff;
  color: #1d4ed8;
}

.map-panel {
  overflow: hidden;
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
}

.map-panel .panel-header {
  margin: 0;
  padding: 18px 20px;
  border-left: 0;
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
  background:
    linear-gradient(90deg, #f8fbff, #eef6ff);
}

.map-panel .panel-header h3 {
  margin-bottom: 0;
}

.market-map {
  min-height: 520px;
  border-radius: 0;
  border: 0;
  filter: saturate(1.05) contrast(1.04);
}

.map-legend {
  margin: 0;
  padding: 12px 16px 16px;
  background: #f8fafc;
  border-top: 1px solid rgba(37, 99, 235, 0.1);
}

.decision-strip {
  grid-template-columns: minmax(320px, 1.25fr) repeat(3, minmax(190px, 0.75fr));
  gap: 12px;
}

.decision-strip article {
  border-radius: 14px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.decision-strip article::before {
  height: 4px;
  background: var(--map-blue);
}

.decision-strip article:nth-child(3)::before { background: var(--green); }
.decision-strip article:nth-child(4)::before { background: var(--amber); }

.decision-strip .decision-main-card {
  background:
    linear-gradient(145deg, #0b1220, #10264d 52%, #1d4ed8);
  border-color: rgba(147, 197, 253, 0.24);
  box-shadow: 0 26px 72px rgba(37, 99, 235, 0.24);
}

.decision-badge {
  border-radius: 12px;
  letter-spacing: -0.025em;
}

.decision-conditional {
  background: #eff6ff;
  color: #1d4ed8;
}

.investment-memo {
  border-radius: 18px;
  background:
    linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.memo-hero-copy {
  background:
    linear-gradient(180deg, #ffffff, #f8fbff);
}

.memo-hero-copy h3 {
  color: #0b1220;
}

.memo-score-stack article {
  background:
    linear-gradient(145deg, #0b1220, #14356e);
}

.memo-score-stack article:nth-child(2) {
  background:
    linear-gradient(145deg, #0f2637, #0e7490);
}

.memo-index {
  background: #dbeafe;
  color: #1d4ed8;
}

.memo-risk-card .memo-index {
  background: #fee2dd;
  color: #b42318;
}

.memo-actions-card .memo-index {
  background: #fff4dc;
  color: #9a6200;
}

.summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.signal-card,
.panel,
.verdict-panel,
.business-results article,
.institutional-grid article,
.analysis-columns article,
.score-drivers-card,
.unknown-factors,
.foot-traffic-grid article,
.revenue-output-grid article,
.revenue-input-grid label {
  border-radius: 14px;
  border: 1px solid rgba(37, 99, 235, 0.1);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.signal-card::before {
  height: 4px;
  background: var(--map-blue);
}

.signal-card:nth-child(2)::before { background: var(--green); }
.signal-card:nth-child(3)::before { background: var(--map-cyan); }
.signal-card:nth-child(4)::before { background: var(--red); }

.panel-header {
  background: #f8fbff;
  border-bottom-color: rgba(37, 99, 235, 0.1);
}

.evidence-panel {
  background: #ffffff;
}

.evidence-signal-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.evidence-signal-card {
  background: #f8fafc;
  border-color: rgba(37, 99, 235, 0.1);
}

.data-connected-strip {
  border-radius: 14px;
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.12);
}

.signal-chip-connected,
.status--verified,
.status-connected {
  background: #e8f8ef;
  color: #0e7b50;
}

.signal-chip-modeled,
.status--modeled,
.status-modeled {
  background: #fff4dc;
  color: #9a6200;
}

.signal-chip-estimated,
.status-estimated,
.status--estimated {
  background: #eaf2ff;
  color: #1d4ed8;
}

.signal-chip-risk,
.status-risk,
.status--risk {
  background: #fee2dd;
  color: #b42318;
}

.assistant-toggle {
  background: linear-gradient(145deg, #1d4ed8, #0e7490);
  color: #ffffff;
}

@media (max-width: 1060px) {
  .market-map {
    min-height: 430px;
  }
}

@media (max-width: 860px) {
  body {
    background: #eef4f8;
  }

  .results {
    background: #eef4f8;
  }

  .results > .executive-decision-strip { order: -7; }
  .results > .map-panel { order: -6; }
  .results > .investment-memo { order: -5; }
  .results > .hero-report { order: -4; }

  .hero-report {
    grid-template-columns: 1fr;
  }

  .decision-strip {
    grid-template-columns: 1fr;
  }

  .map-panel {
    border-radius: 14px;
  }

  .market-map {
    min-height: 340px;
  }

  .map-legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .results {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 400px);
    grid-auto-flow: row dense;
    align-items: start;
    gap: 14px;
  }

  .results > * {
    order: 0;
  }

  .results > .hero-report {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 0;
    padding: 22px 26px;
  }

  .hero-report h2 {
    font-size: clamp(2rem, 2.6vw, 3rem);
  }

  .hero-report p {
    max-width: 72ch;
  }

  .results > .map-panel {
    grid-column: 1;
    grid-row: 2 / span 2;
  }

  .results > .executive-decision-strip {
    grid-column: 2;
    grid-row: 2;
    position: sticky;
    top: 18px;
    z-index: 3;
  }

  .results > .investment-memo {
    grid-column: 2;
    grid-row: 3;
  }

  .results > .data-connected-strip,
  .results > .summary-grid,
  .results > .evidence-panel,
  .results > #compare-panel,
  .results > .verdict-panel,
  .results > .business-checker,
  .results > .concept-fit-panel,
  .results > .places-panel,
  .results > .institutional-panel,
  .results > .opportunity-panel,
  .results > .insight-grid,
  .results > .market-grid,
  .results > .foot-traffic-panel,
  .results > .revenue-estimator-panel,
  .results > .civic-panel,
  .results > .site-intel-panel,
  .results > .report-layout,
  .results > .advanced-tools {
    grid-column: 1 / -1;
  }

  .executive-decision-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .decision-strip article {
    min-height: 116px;
    padding: 16px;
  }

  .decision-strip .decision-main-card {
    min-height: 190px;
    padding: 20px;
  }

  .decision-strip .decision-main-card p {
    max-width: none;
  }

  .decision-badge {
    justify-self: stretch;
    text-align: center;
    font-size: clamp(1.45rem, 2.2vw, 2.1rem);
  }

  .investment-memo {
    padding: 12px;
  }

  .memo-hero {
    grid-template-columns: 1fr;
  }

  .memo-score-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .memo-score-stack article {
    min-height: 92px;
    padding: 14px;
  }

  .memo-score-stack strong {
    font-size: 1.3rem;
  }

  .memo-grid {
    grid-template-columns: 1fr;
  }

  .memo-hero-copy {
    padding: 18px;
  }

  .memo-hero-copy h3 {
    font-size: clamp(1.45rem, 2vw, 2rem);
  }

  .memo-list-row {
    grid-template-columns: 1fr auto;
  }

  .market-map {
    min-height: 680px;
  }
}

/* Spatial Intelligence Console — Placer + Buxton + Reonomy + ArcGIS direction v4 */
:root {
  --ai-bg: #f4f7fb;
  --ai-paper: #ffffff;
  --ai-paper-2: #f8fbff;
  --ai-ink: #111827;
  --ai-muted: #5b6472;
  --ai-line: rgba(17, 24, 39, 0.1);
  --ai-line-strong: rgba(17, 24, 39, 0.16);
  --ai-nav: #08111f;
  --ai-nav-2: #0c1a2e;
  --ai-blue: #1f5eff;
  --ai-cyan: #0ea5b7;
  --ai-green: #16a36a;
  --ai-amber: #c8891d;
  --ai-red: #cf3d32;
  --ai-shadow-sm: 0 8px 22px rgba(17, 24, 39, 0.08);
  --ai-shadow-md: 0 18px 44px rgba(17, 24, 39, 0.12);
}

html {
  background: var(--ai-bg);
}

body {
  background:
    linear-gradient(180deg, #f8fbff 0, var(--ai-bg) 320px),
    var(--ai-bg);
  color: var(--ai-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell {
  background: var(--ai-bg);
}

.workspace {
  min-height: 100vh;
  background: var(--ai-bg);
}

.sidebar {
  color: #e5edf8;
  background:
    linear-gradient(180deg, rgba(12, 26, 46, 0.98), rgba(8, 17, 31, 1)),
    var(--ai-nav);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 18px 0 60px rgba(8, 17, 31, 0.18);
}

.sidebar::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.55;
}

.brand {
  gap: 12px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mark {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(31, 94, 255, 0.9), rgba(14, 165, 183, 0.9));
  box-shadow: 0 12px 30px rgba(31, 94, 255, 0.32);
}

.liberty-mark path {
  stroke: #ffffff;
}

.brand .eyebrow,
.step-label,
.section-label {
  color: #91a5c1;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-title {
  color: #ffffff;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-tagline,
.positioning-card p,
.nyc-notice p {
  color: #b8c6d8;
}

.nyc-notice,
.positioning-card,
.sidebar .business-form,
.sidebar .search-panel,
.sidebar .address-panel,
.saved-reports-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.nyc-notice span {
  display: none;
}

.nyc-notice strong,
.positioning-card strong,
.sidebar label {
  color: #ffffff;
}

.sidebar input,
.sidebar select,
.sidebar textarea {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ai-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sidebar input:focus,
.sidebar select:focus,
.sidebar textarea:focus {
  border-color: #8ec5ff;
  box-shadow: 0 0 0 3px rgba(31, 94, 255, 0.28);
}

.sidebar button,
.sidebar .zip-row button,
.sidebar .address-row button,
.sidebar .business-form button,
.primary-button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: linear-gradient(135deg, var(--ai-blue), #1746c7);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(31, 94, 255, 0.28);
}

.sidebar .subtle-button {
  background: rgba(255, 255, 255, 0.08);
  color: #dce8f7;
  box-shadow: none;
}

.business-suggestions {
  border-radius: 10px;
  border: 1px solid rgba(31, 94, 255, 0.18);
  box-shadow: 0 18px 44px rgba(8, 17, 31, 0.24);
}

.results,
.start-screen {
  background:
    linear-gradient(rgba(31, 94, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 94, 255, 0.03) 1px, transparent 1px),
    var(--ai-bg);
  background-size: 36px 36px;
}

.hero-report {
  border-radius: 12px;
  border: 1px solid var(--ai-line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(242, 247, 255, 0.96)),
    radial-gradient(circle at 90% 20%, rgba(14, 165, 183, 0.14), transparent 34%);
  color: var(--ai-ink);
  box-shadow: var(--ai-shadow-md);
}

.hero-report::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(31, 94, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 94, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.hero-report .section-label {
  color: var(--ai-blue);
}

.hero-report h2 {
  color: var(--ai-ink);
  letter-spacing: 0;
}

.hero-report p {
  color: var(--ai-muted);
}

.hero-tags span {
  border: 1px solid rgba(31, 94, 255, 0.16);
  border-radius: 999px;
  background: #eef4ff;
  color: #1945a3;
}

.hero-actions button {
  border-radius: 9px;
  border: 1px solid var(--ai-line);
  background: #ffffff;
  color: var(--ai-ink);
  box-shadow: var(--ai-shadow-sm);
}

.hero-actions #export-pdf-button,
.hero-actions #copy-link-button {
  background: var(--ai-nav);
  color: #ffffff;
}

.map-panel {
  border-radius: 12px;
  border: 1px solid var(--ai-line-strong);
  background: var(--ai-paper);
  box-shadow: var(--ai-shadow-md);
}

.map-panel .panel-header {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, #08111f, #0c1a2e 58%, #14315c);
  color: #ffffff;
}

.map-panel .panel-header .section-label,
.map-panel .panel-header p {
  color: #a9bad2;
}

.map-panel .panel-header h3 {
  color: #ffffff;
  letter-spacing: 0;
}

.market-map {
  background: #dbe7f1;
  filter: saturate(0.95) contrast(1.02);
}

.market-map.map-fallback {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(8, 17, 31, 0.08), transparent 42%),
    linear-gradient(rgba(255, 255, 255, 0.48) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.42) 1px, transparent 1px),
    linear-gradient(135deg, #c5dfe5, #e7eef7);
  background-size: auto, 46px 46px, 46px 46px, auto;
}

.market-map.map-fallback::before,
.market-map.map-fallback::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.market-map.map-fallback::before {
  width: 230px;
  height: 230px;
  border: 1px solid rgba(31, 94, 255, 0.2);
  box-shadow:
    0 0 0 68px rgba(31, 94, 255, 0.06),
    0 0 0 134px rgba(14, 165, 183, 0.05);
}

.market-map.map-fallback::after {
  width: 18px;
  height: 18px;
  background: var(--ai-blue);
  box-shadow:
    128px -92px 0 -3px var(--ai-red),
    -148px 84px 0 -4px var(--ai-amber),
    108px 118px 0 -5px var(--ai-green),
    -96px -132px 0 -5px var(--ai-cyan);
}

.static-map-fallback {
  position: relative;
  z-index: 1;
  max-width: 360px;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 70px rgba(8, 17, 31, 0.18);
  backdrop-filter: blur(10px);
}

.static-map-fallback strong {
  color: var(--ai-ink);
}

.static-map-fallback span,
.static-map-fallback small {
  color: var(--ai-muted);
}

.map-legend {
  background: #ffffff;
  border-top: 1px solid var(--ai-line);
}

.map-legend span,
.status-chip,
.signal-chip-connected,
.signal-chip-modeled,
.signal-chip-estimated,
.signal-chip-risk,
.status--verified,
.status--modeled,
.status--estimated,
.status--risk,
.status-connected,
.status-modeled,
.status-estimated,
.status-risk {
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.executive-decision-strip {
  gap: 10px;
}

.decision-strip article {
  border-radius: 11px;
  border: 1px solid var(--ai-line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--ai-shadow-sm);
}

.decision-strip article::before {
  height: 3px;
  background: var(--ai-blue);
}

.decision-strip .decision-main-card {
  border-color: rgba(31, 94, 255, 0.18);
  background:
    linear-gradient(145deg, #08111f 0%, #0e213b 54%, #1f5eff 100%);
  box-shadow: 0 24px 58px rgba(31, 94, 255, 0.28);
}

.decision-strip .decision-main-card h3,
.decision-strip .decision-main-card p,
.decision-strip .decision-main-card .section-label {
  color: #ffffff;
}

.decision-strip .decision-main-card p {
  color: #d7e5f7;
}

.decision-badge {
  border-radius: 8px;
  background: #ffffff;
  color: #063c51;
  box-shadow: inset 0 -1px 0 rgba(17, 24, 39, 0.08);
}

.decision-strip h3,
.signal-card h3,
.panel h3,
.memo-hero-copy h3 {
  letter-spacing: 0;
}

.investment-memo,
.panel,
.evidence-panel,
.verdict-panel,
.business-results article,
.institutional-grid article,
.analysis-columns article,
.score-drivers-card,
.unknown-factors,
.foot-traffic-grid article,
.revenue-output-grid article,
.revenue-input-grid label,
.data-connected-strip,
.signal-card {
  border-radius: 11px;
  border: 1px solid var(--ai-line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--ai-shadow-sm);
}

.investment-memo {
  background:
    linear-gradient(180deg, #ffffff, #fbfdff);
}

.memo-hero-copy {
  border-radius: 10px;
  border: 1px solid var(--ai-line);
  background: #ffffff;
}

.memo-score-stack article {
  border-radius: 10px;
  background: #0b1728;
}

.memo-score-stack article:nth-child(2) {
  background: #0d3d4b;
}

.memo-card {
  border-radius: 10px;
}

.memo-index {
  border-radius: 7px;
  background: #e9f0ff;
  color: #1945a3;
}

.memo-risk-card .memo-index {
  background: #fde7e4;
  color: #a72920;
}

.memo-actions-card .memo-index {
  background: #fff1d6;
  color: #8b5a0b;
}

.summary-grid {
  gap: 10px;
}

.signal-card {
  min-height: 150px;
}

.signal-card::before {
  height: 3px;
}

.panel-header {
  border-bottom: 1px solid var(--ai-line);
  background: #fbfdff;
}

.assistant-toggle {
  border-radius: 999px;
  background: linear-gradient(135deg, #08111f, var(--ai-blue));
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(8, 17, 31, 0.28);
}

@media (max-width: 860px) {
  body,
  .results,
  .start-screen {
    background:
      linear-gradient(rgba(31, 94, 255, 0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(31, 94, 255, 0.035) 1px, transparent 1px),
      var(--ai-bg);
    background-size: 28px 28px;
  }

  .results {
    padding: 10px;
  }

  .results > .executive-decision-strip { order: -8; }
  .results > .map-panel { order: -7; }
  .results > .investment-memo { order: -6; }
  .results > .hero-report { order: -5; }

  .decision-strip article {
    min-height: auto;
    padding: 14px;
  }

  .decision-strip .decision-main-card {
    min-height: 168px;
  }

  .decision-badge {
    padding: 12px;
    font-size: 1.35rem;
  }

  .map-panel,
  .hero-report,
  .investment-memo,
  .decision-strip article {
    border-radius: 10px;
  }

  .market-map {
    min-height: 380px;
  }

  .sidebar {
    margin-top: 0;
    border-right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
}

@media (min-width: 1100px) {
  .workspace {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 18px;
    overflow-y: auto;
  }

  .results {
    padding: 18px;
    grid-template-columns: minmax(560px, 1fr) minmax(340px, 392px);
    gap: 12px;
  }

  .results > .hero-report {
    grid-column: 1 / -1;
    padding: 20px 22px;
  }

  .results > .map-panel {
    grid-column: 1;
    grid-row: 2 / span 2;
  }

  .results > .executive-decision-strip {
    grid-column: 2;
    grid-row: 2;
    top: 18px;
  }

  .results > .investment-memo {
    grid-column: 2;
    grid-row: 3;
  }

  .decision-strip .decision-main-card {
    min-height: 176px;
  }

  .decision-strip article {
    min-height: 104px;
  }

  .market-map {
    min-height: calc(100vh - 246px);
  }
}


/* ============================================================
   Public homepage — approved SpotVest production design (dark / cyan)
   Scoped under body.landing-mode so the app shell, Leaflet report,
   and PDF export remain exactly as before. When landing-mode is
   removed (after Analyze), all of this falls away.
   ============================================================ */
@keyframes ai-blink{0%,100%{opacity:1}50%{opacity:.25}}
@keyframes ai-sp{to{transform:rotate(360deg)}}
@keyframes ai-pop{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

body.landing-mode{
  --navy:#080E1C; --slate:#111827; --glass:#1E293B; --cyan:#06B6D4;
  --green:#10B981; --amber:#F59E0B; --red:#EF4444;
  --white:#F1F5F9; --muted:#94A3B8; --dim:#475569; --line:#1E293B;
  background:var(--navy);
}

/* hide the app sidebar + single-column workspace on the landing */
body.landing-mode .workspace{grid-template-columns:minmax(0,1fr);}
body.landing-mode .sidebar{display:none;}

body.landing-mode .start-screen{
  display:block;
  min-height:100vh;
  padding:0;
  overflow:visible;
  background:var(--navy);
  color:var(--white);
  font-family:'Inter',system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
}
body.landing-mode .start-screen *,
body.landing-mode .start-screen *::before,
body.landing-mode .start-screen *::after{box-sizing:border-box;}
body.landing-mode .start-screen a{color:inherit;text-decoration:none;}

body.landing-mode .wrap{max-width:1180px;margin:0 auto;padding:0 32px;}
body.landing-mode .wm{font-family:'IBM Plex Mono',monospace;font-weight:700;letter-spacing:-.01em;}
body.landing-mode .wm span{color:var(--cyan);}

body.landing-mode .eb{display:flex;align-items:center;gap:10px;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--cyan);font-weight:600;margin-bottom:18px;}
body.landing-mode .eb::before{content:'';width:24px;height:2px;background:var(--cyan);}

body.landing-mode .cprim{background:var(--cyan);color:var(--navy);font-weight:700;padding:13px 24px;border-radius:8px;font-size:15px;display:inline-flex;align-items:center;gap:8px;border:none;cursor:pointer;}
body.landing-mode .csec{border:1px solid rgba(255,255,255,.18);color:var(--muted);padding:13px 24px;border-radius:8px;font-size:15px;background:transparent;cursor:pointer;display:inline-flex;align-items:center;gap:8px;}

/* NAV */
body.landing-mode .nav{position:sticky;top:0;z-index:50;background:rgba(8,14,28,.85);backdrop-filter:blur(10px);border-bottom:1px solid rgba(255,255,255,.06);}
body.landing-mode .nav .wrap{display:flex;align-items:center;justify-content:space-between;height:66px;}
body.landing-mode .navL{display:flex;gap:26px;align-items:center;}
body.landing-mode .nl{font-size:13px;color:var(--muted);cursor:pointer;}
body.landing-mode a.nl:hover{color:var(--white);}
body.landing-mode .ncta{background:var(--cyan);color:var(--navy);font-size:13px;font-weight:700;padding:9px 16px;border-radius:6px;border:none;cursor:pointer;}

/* HERO */
body.landing-mode .hero{display:grid;grid-template-columns:1.15fr .85fr;gap:40px;align-items:center;padding:72px 0 56px;}
body.landing-mode .h1{font-size:clamp(40px,5vw,72px);font-weight:800;line-height:1.08;letter-spacing:-.03em;margin-bottom:20px;color:var(--white);}
body.landing-mode .h1 .hl{color:var(--cyan);}
body.landing-mode .lead{font-size:18px;color:var(--muted);line-height:1.6;margin-bottom:28px;max-width:520px;}
body.landing-mode .herostat{font-size:12px;color:var(--dim);font-family:'IBM Plex Mono',monospace;margin-top:18px;}
body.landing-mode .verdictcard{background:#0D1424;border:1px solid var(--line);border-radius:14px;padding:18px;}

/* WHAT IS SPOTVEST */
body.landing-mode .what-spotvest{
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  gap:42px;
  align-items:start;
  padding:56px 0;
  border-top:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.06);
}
body.landing-mode .what-spotvest-copy{
  display:grid;
  gap:18px;
  background:linear-gradient(135deg,rgba(6,182,212,.10),rgba(30,41,59,.45));
  border:1px solid rgba(148,163,184,.18);
  border-radius:16px;
  padding:28px;
}
body.landing-mode .what-spotvest-copy p{
  color:#CBD5E1;
  font-size:18px;
  line-height:1.65;
}

/* SECTIONS (prototype sections live directly inside .wrap) */
body.landing-mode .wrap > section{padding:64px 0;}
body.landing-mode .hero{padding:72px 0 56px;}
body.landing-mode .sec-alt{background:#0A0F1E;border-top:1px solid rgba(255,255,255,.04);border-bottom:1px solid rgba(255,255,255,.04);}
body.landing-mode .h2{font-size:clamp(28px,3.5vw,42px);font-weight:700;letter-spacing:-.02em;margin-bottom:8px;color:var(--white);}
body.landing-mode .subh{color:var(--muted);font-size:16px;line-height:1.6;margin-bottom:28px;max-width:640px;}

/* MAP */
body.landing-mode .mapcard{background:#0A0F1E;border:1px solid var(--line);border-radius:14px;overflow:hidden;}
body.landing-mode .maphd{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;}
body.landing-mode .live{display:inline-flex;align-items:center;gap:7px;background:rgba(16,185,129,.1);border:1px solid rgba(16,185,129,.3);border-radius:100px;padding:5px 12px;font-size:10px;font-weight:600;color:var(--green);letter-spacing:.08em;}
body.landing-mode .liveDot{width:7px;height:7px;border-radius:50%;background:var(--green);animation:ai-blink 1.4s ease-in-out infinite;}
body.landing-mode .mapwrap{position:relative;height:420px;}
body.landing-mode #home-map{position:absolute;inset:0;}
body.landing-mode .maplibregl-ctrl-attrib{font-size:9px!important;}
body.landing-mode .readout{position:absolute;top:14px;left:14px;z-index:2;background:rgba(8,14,28,.88);border:1px solid #1E3A5F;border-radius:9px;padding:9px 14px;display:flex;align-items:center;gap:9px;backdrop-filter:blur(6px);}
body.landing-mode .readout i{color:var(--cyan);}
body.landing-mode .readout span{font-family:'IBM Plex Mono',monospace;font-size:12px;}
body.landing-mode .controls{display:flex;flex-wrap:wrap;gap:14px;align-items:center;padding:12px 14px;border-top:1px solid var(--line);}
body.landing-mode .cgroup{display:flex;gap:5px;align-items:center;flex-wrap:wrap;}
body.landing-mode .cglabel{font-size:9px;text-transform:uppercase;letter-spacing:.1em;color:var(--dim);font-weight:600;margin-right:3px;}
body.landing-mode .bchip{font-size:11px;border:1px solid #2D3F55;background:var(--glass);color:var(--muted);border-radius:100px;padding:6px 13px;cursor:pointer;display:inline-flex;align-items:center;gap:5px;}
body.landing-mode .bchip.on{background:rgba(6,182,212,.14);border-color:var(--cyan);color:var(--white);}
body.landing-mode .lbtn{font-size:12px;font-weight:600;color:var(--muted);background:transparent;border:1px solid var(--line);border-radius:7px;padding:8px 12px;cursor:pointer;display:inline-flex;align-items:center;gap:6px;}
body.landing-mode .lbtn.on{background:rgba(6,182,212,.14);color:var(--white);border-color:var(--cyan);}
body.landing-mode .maphint{font-size:12px;color:var(--dim);margin-top:12px;display:flex;align-items:center;gap:7px;}

/* DEMO PANEL */
body.landing-mode .aif{background:#0A0F1E;border:1px solid var(--line);border-radius:14px;overflow:hidden;}
body.landing-mode .aib{display:grid;grid-template-columns:300px 1fr;}
body.landing-mode .ail{padding:22px;border-right:1px solid var(--line);background:#0D1424;}
body.landing-mode .air{padding:22px;min-height:380px;position:relative;background:var(--navy);}
body.landing-mode .aLbl{font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:var(--dim);margin-bottom:8px;font-weight:600;display:block;}
body.landing-mode .bizG{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:16px;}
body.landing-mode .chip{font-size:12px;border:1px solid #2D3F55;background:var(--glass);color:var(--muted);border-radius:8px;padding:10px;cursor:pointer;display:flex;align-items:center;gap:7px;}
body.landing-mode .chip.sel{background:rgba(6,182,212,.12);border-color:var(--cyan);color:var(--white);}
body.landing-mode .seg{display:flex;background:#0D1424;border:1px solid #2D3F55;border-radius:9px;padding:4px;gap:4px;margin-bottom:14px;}
body.landing-mode .seg button{flex:1;font-size:11px;font-weight:600;color:var(--muted);background:transparent;border:none;border-radius:7px;padding:9px 4px;cursor:pointer;line-height:1.25;}
body.landing-mode .seg button.on{background:rgba(6,182,212,.15);color:var(--white);}
body.landing-mode .seg button .ss{display:block;font-size:9px;font-weight:400;color:var(--dim);margin-top:1px;}
body.landing-mode .seg button.on .ss{color:var(--cyan);}
body.landing-mode .field{width:100%;background:var(--glass);border:1px solid #2D3F55;border-radius:8px;padding:11px 12px;color:var(--white);font-family:'IBM Plex Mono',monospace;font-size:13px;margin-bottom:16px;}
body.landing-mode .field:focus{outline:none;border-color:var(--cyan);}
body.landing-mode .anB{width:100%;background:var(--cyan);color:var(--navy);font-size:13px;font-weight:700;padding:13px;border-radius:8px;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:7px;}
body.landing-mode .ph{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;color:var(--dim);}
body.landing-mode .spin{width:30px;height:30px;border:3px solid var(--line);border-top-color:var(--cyan);border-radius:50%;animation:ai-sp .8s linear infinite;margin-bottom:14px;}
body.landing-mode .rev{animation:ai-pop .4s ease both;}
body.landing-mode .scopepill{display:inline-flex;align-items:center;gap:6px;background:#0D1424;border:1px solid #1E3A5F;border-radius:6px;padding:5px 10px;margin-bottom:12px;font-family:'IBM Plex Mono',monospace;font-size:10px;color:var(--muted);}
body.landing-mode .scopepill i{color:var(--cyan);}
body.landing-mode .scorebadge{display:flex;align-items:center;gap:9px;border-radius:8px;padding:11px 16px;margin-bottom:14px;font-family:'IBM Plex Mono',monospace;}
body.landing-mode .icard{background:var(--slate);border:1px solid var(--line);border-radius:8px;padding:12px;}
body.landing-mode .icard h4{font-size:9px;text-transform:uppercase;letter-spacing:.1em;margin-bottom:6px;}
body.landing-mode .icard p{font-size:11px;line-height:1.55;color:#64748B;}

/* HOW IT WORKS */
body.landing-mode .cards3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
body.landing-mode .aic{background:var(--glass);border:1px solid #2D3F55;border-radius:12px;padding:22px;}
body.landing-mode .aic .bar{height:2px;border-radius:1px;margin-bottom:14px;}
body.landing-mode .aic .ico{width:38px;height:38px;border-radius:8px;display:flex;align-items:center;justify-content:center;margin-bottom:12px;}
body.landing-mode .aic h3{font-size:15px;font-weight:700;margin-bottom:8px;color:var(--white);}
body.landing-mode .aic p{font-size:12px;color:#64748B;line-height:1.65;}

/* METRICS */
body.landing-mode .metrics{display:grid;grid-template-columns:repeat(4,1fr);text-align:center;}
body.landing-mode .metrics > div{padding:0 18px;border-right:1px solid var(--line);}
body.landing-mode .metrics > div:last-child{border-right:none;}
body.landing-mode .metrics .num{font-size:clamp(34px,4vw,52px);font-weight:800;color:var(--cyan);line-height:1;}
body.landing-mode .metrics .lbl{font-size:12px;color:#64748B;margin-top:8px;}

/* FOOTER */
body.landing-mode .home-footer{background:#060A14;border-top:1px solid var(--line);padding:48px 0 30px;}
body.landing-mode .fgrid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:24px;margin-bottom:32px;}
body.landing-mode .fcol h5{font-size:12px;font-weight:500;margin-bottom:14px;color:var(--white);}
body.landing-mode .fcol a{display:block;font-size:13px;color:#64748B;margin-bottom:10px;}
body.landing-mode .fcol a:hover{color:var(--muted);}
body.landing-mode .fbottom{border-top:1px solid var(--line);padding-top:18px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:11px;color:#334155;font-family:'IBM Plex Mono',monospace;}

/* ---- KEPT backend-wired sections, restyled to the dark theme ---- */
body.landing-mode .nav-button{border:0;background:transparent;padding:0;font:inherit;cursor:pointer;}
body.landing-mode .nav-button:hover{color:var(--white);}
body.landing-mode .start-screen .launch-section{max-width:1180px;margin:0 auto;padding:56px 32px;background:transparent;border:none;border-radius:0;box-shadow:none;}
body.landing-mode .start-screen .sec-alt .launch-section{max-width:none;padding-left:0;padding-right:0;}
body.landing-mode .public-action-section,
body.landing-mode .public-action-section[hidden]{display:none !important;}
body.landing-mode .public-action-section.is-public-open{display:block !important;scroll-margin-top:82px;margin-bottom:88px;}
body.landing-mode .launch-section-header .section-label,
body.landing-mode .section-label{color:var(--cyan);text-transform:uppercase;letter-spacing:.14em;font-size:11px;font-weight:600;}
body.landing-mode .launch-section-header h3,
body.landing-mode .launch-section h3{color:var(--white);font-weight:700;letter-spacing:-.02em;}
body.landing-mode .launch-section-header p,
body.landing-mode .launch-section p{color:var(--muted);}
body.landing-mode .launch-form{background:#0A0F1E;border:1px solid var(--line);border-radius:14px;padding:22px;display:flex;flex-direction:column;gap:12px;}
body.landing-mode .account-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
body.landing-mode .launch-form strong{color:var(--white);font-size:15px;}
body.landing-mode .launch-form input,
body.landing-mode .launch-form select,
body.landing-mode .launch-form textarea{width:100%;background:var(--glass);border:1px solid #2D3F55;border-radius:8px;padding:11px 12px;color:var(--white);font-size:14px;font-family:'Inter',system-ui,sans-serif;}
body.landing-mode .launch-form input::placeholder,
body.landing-mode .launch-form textarea::placeholder{color:#64748B;}
body.landing-mode .launch-form input:focus,
body.landing-mode .launch-form select:focus,
body.landing-mode .launch-form textarea:focus{outline:none;border-color:var(--cyan);}
body.landing-mode .launch-form textarea{min-height:96px;resize:vertical;}
body.landing-mode .launch-form button[type="submit"]{background:var(--cyan);color:var(--navy);font-weight:700;border:none;border-radius:8px;padding:12px;cursor:pointer;}
body.landing-mode .launch-status{color:var(--muted);font-size:12px;}
body.landing-mode .account-private{display:none !important;}
body.landing-mode.account-signed-in .account-section.is-public-open .account-private{display:flex !important;}
body.landing-mode .pricing-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;}
body.landing-mode .pricing-card{background:var(--glass);border:1px solid #2D3F55;border-radius:12px;padding:22px;display:flex;flex-direction:column;gap:8px;color:var(--muted);}
body.landing-mode .pricing-card span{font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:var(--dim);}
body.landing-mode .pricing-card strong{font-size:30px;color:var(--cyan);font-weight:800;}
body.landing-mode .pricing-card h4{color:var(--white);font-size:15px;}
body.landing-mode .pricing-card p{font-size:12px;color:#64748B;line-height:1.6;}
body.landing-mode .pricing-card-featured{border-color:var(--cyan);box-shadow:0 0 0 1px rgba(6,182,212,.4);}
body.landing-mode .pricing-card .launch-scroll{margin-top:auto;background:var(--cyan);color:var(--navy);font-weight:700;border:none;border-radius:8px;padding:10px;cursor:pointer;}
body.landing-mode .advisor-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:18px;}
body.landing-mode .advisor-grid article{background:var(--glass);border:1px solid #2D3F55;border-radius:12px;padding:18px;}
body.landing-mode .advisor-grid strong{color:var(--white);}
body.landing-mode .advisor-grid p{color:#64748B;font-size:13px;}

/* ---- Responsive (prototype breakpoint) ---- */
@media(max-width:860px){
  body.landing-mode .start-screen{padding-bottom:calc(120px + env(safe-area-inset-bottom, 0px));}
  body.landing-mode .hero{grid-template-columns:1fr;}
  body.landing-mode .what-spotvest{grid-template-columns:1fr;gap:20px;}
  body.landing-mode .what-spotvest-copy{padding:22px;}
  body.landing-mode .what-spotvest-copy p{font-size:16px;}
  body.landing-mode .aib{grid-template-columns:1fr;}
  body.landing-mode .ail{border-right:none;border-bottom:1px solid var(--line);}
  body.landing-mode .cards3{grid-template-columns:1fr;}
  body.landing-mode .metrics{grid-template-columns:1fr 1fr;gap:24px 0;}
  body.landing-mode .metrics > div:nth-child(2){border-right:none;}
  body.landing-mode .fgrid{grid-template-columns:1fr 1fr;}
  body.landing-mode .wrap{padding:0 20px;}
  body.landing-mode .start-screen .launch-section{padding-left:20px;padding-right:20px;}
  body.landing-mode .account-grid,
  body.landing-mode .pricing-grid,
  body.landing-mode .advisor-grid{grid-template-columns:1fr;}
  body.landing-mode .public-action-section.is-public-open{margin-bottom:120px;}
  body.landing-mode .launch-form{padding-bottom:calc(24px + env(safe-area-inset-bottom, 0px));}
  body.landing-mode .assistant-toggle{bottom:calc(18px + env(safe-area-inset-bottom, 0px));}
}
@media(max-width:700px){
  body.landing-mode span.nl{display:none;}
  body.landing-mode .navL{gap:14px;}
}
@media(max-width:480px){
  body.landing-mode .pricing-grid{grid-template-columns:1fr;}
  body.landing-mode .navL{gap:10px;}
  body.landing-mode .nl{font-size:12px;}
}

/* ============================================================
   Unified AreaIntel app experience
   Keeps all analysis/report logic intact; aligns the logged-in
   product with the approved premium public homepage direction.
   ============================================================ */
body:not(.landing-mode) {
  --app-navy: #080e1c;
  --app-navy-2: #0d1424;
  --app-panel: #ffffff;
  --app-panel-soft: #f6f9fc;
  --app-ink: #101827;
  --app-muted: #617184;
  --app-cyan: #06b6d4;
  --app-teal: #0e7490;
  --app-green: #16a66a;
  --app-amber: #c8891d;
  --app-red: #c24132;
  --app-line: rgba(15, 23, 42, 0.12);
  --app-line-dark: rgba(255, 255, 255, 0.11);
  --app-shadow: 0 24px 70px rgba(8, 14, 28, 0.16);
  --app-shadow-soft: 0 12px 34px rgba(8, 14, 28, 0.08);
  background:
    radial-gradient(circle at 8% 0%, rgba(6, 182, 212, 0.18), transparent 28%),
    linear-gradient(180deg, #080e1c 0, #0d1424 280px, #eef4f7 281px);
  color: var(--app-ink);
}

body:not(.landing-mode) .app-shell {
  padding: 14px;
  background: transparent;
}

body:not(.landing-mode) .workspace {
  background: #eef4f7;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.28);
}

body:not(.landing-mode) .sidebar {
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8, 14, 28, 0.98), rgba(13, 20, 36, 0.99));
  background-size: 28px 28px, 28px 28px, auto;
  border-right: 1px solid var(--app-line-dark);
  color: #f1f5f9;
}

body:not(.landing-mode) .sidebar::before {
  background: radial-gradient(circle at 20% 0%, rgba(6, 182, 212, 0.22), transparent 38%);
  opacity: 1;
}

body:not(.landing-mode) .brand {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--app-line-dark);
}

body:not(.landing-mode) .mark {
  background: linear-gradient(145deg, rgba(6, 182, 212, 0.86), rgba(16, 185, 129, 0.5));
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(6, 182, 212, 0.18);
}

body:not(.landing-mode) .liberty-mark path {
  stroke: #ffffff;
}

body:not(.landing-mode) .brand-title {
  color: #ffffff;
  letter-spacing: -0.04em;
}

body:not(.landing-mode) .brand-tagline,
body:not(.landing-mode) .nyc-notice p,
body:not(.landing-mode) .positioning-card p {
  color: #aebed0;
}

body:not(.landing-mode) .eyebrow,
body:not(.landing-mode) .step-label,
body:not(.landing-mode) .section-label {
  color: var(--app-cyan);
  letter-spacing: 0.13em;
}

body:not(.landing-mode) .nyc-notice,
body:not(.landing-mode) .positioning-card,
body:not(.landing-mode) .intake-card,
body:not(.landing-mode) .search-panel,
body:not(.landing-mode) .address-panel,
body:not(.landing-mode) .saved-reports-panel {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--app-line-dark);
  border-radius: 14px;
  box-shadow: none;
  backdrop-filter: blur(12px);
}

body:not(.landing-mode) .sidebar label,
body:not(.landing-mode) .nyc-notice strong,
body:not(.landing-mode) .positioning-card strong {
  color: #ffffff;
}

body:not(.landing-mode) .sidebar input,
body:not(.landing-mode) .sidebar select,
body:not(.landing-mode) .sidebar textarea {
  min-height: 48px;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 12px;
  font-size: 0.98rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body:not(.landing-mode) .sidebar input:focus,
body:not(.landing-mode) .sidebar select:focus,
body:not(.landing-mode) .sidebar textarea:focus {
  border-color: var(--app-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.26);
}

body:not(.landing-mode) .sidebar button,
body:not(.landing-mode) .primary-button,
body:not(.landing-mode) .ghost-button,
body:not(.landing-mode) .subtle-button,
body:not(.landing-mode) .export-button,
body:not(.landing-mode) .memo-button {
  min-height: 44px;
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 12px;
  background: linear-gradient(135deg, #06b6d4, #0e7490);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 14px 32px rgba(6, 182, 212, 0.2);
}

body:not(.landing-mode) .ghost-button,
body:not(.landing-mode) .subtle-button {
  background: rgba(255, 255, 255, 0.08);
  color: #dce8f7;
  box-shadow: none;
}

body:not(.landing-mode) .results {
  padding: 18px;
  gap: 16px;
  background:
    linear-gradient(rgba(6, 182, 212, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.035) 1px, transparent 1px),
    #eef4f7;
  background-size: 34px 34px;
}

body:not(.landing-mode) .hero-report {
  position: relative;
  overflow: hidden;
  align-items: end;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(8, 14, 28, 0.94), rgba(13, 20, 36, 0.88)),
    url("https://images.unsplash.com/photo-1534430480872-3498386e7856?auto=format&fit=crop&w=1600&q=80") center/cover;
  box-shadow: var(--app-shadow);
}

body:not(.landing-mode) .hero-report::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 14, 28, 0.88), rgba(8, 14, 28, 0.42)),
    radial-gradient(circle at 92% 8%, rgba(6, 182, 212, 0.22), transparent 36%);
}

body:not(.landing-mode) .hero-report > * {
  position: relative;
  z-index: 1;
}

body:not(.landing-mode) .hero-report .section-label {
  color: #67e8f9;
}

body:not(.landing-mode) .hero-report h2 {
  max-width: 20ch;
  color: #ffffff;
  font-size: clamp(2.1rem, 4vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

body:not(.landing-mode) .hero-report p {
  max-width: 68ch;
  color: #dbeafe;
}

body:not(.landing-mode) .hero-tags span,
body:not(.landing-mode) .pill,
body:not(.landing-mode) .signal-chip,
body:not(.landing-mode) .status,
body:not(.landing-mode) .mini-status,
body:not(.landing-mode) .source-map-status {
  border-radius: 999px;
}

body:not(.landing-mode) .hero-tags span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f8fafc;
}

body:not(.landing-mode) .hero-actions button {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  box-shadow: none;
}

body:not(.landing-mode) .hero-actions #export-pdf-button,
body:not(.landing-mode) .hero-actions #copy-link-button {
  background: #ffffff;
  color: #0e7490;
}

body:not(.landing-mode) .analyst-tabs {
  padding: 10px;
  border: 1px solid var(--app-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--app-shadow-soft);
  backdrop-filter: blur(12px);
}

body:not(.landing-mode) .analyst-tabs a {
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

body:not(.landing-mode) .decision-strip {
  gap: 12px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body:not(.landing-mode) .decision-strip article,
body:not(.landing-mode) .investment-memo,
body:not(.landing-mode) .panel,
body:not(.landing-mode) .signal-card,
body:not(.landing-mode) .verdict-panel,
body:not(.landing-mode) .business-results article,
body:not(.landing-mode) .institutional-grid article,
body:not(.landing-mode) .analysis-columns article,
body:not(.landing-mode) .score-drivers-card,
body:not(.landing-mode) .unknown-factors,
body:not(.landing-mode) .foot-traffic-grid article,
body:not(.landing-mode) .revenue-output-grid article,
body:not(.landing-mode) .revenue-input-grid label,
body:not(.landing-mode) .market-panel,
body:not(.landing-mode) .diligence-panel,
body:not(.landing-mode) .data-connected-strip,
body:not(.landing-mode) .evidence-signal-card,
body:not(.landing-mode) .memo-card,
body:not(.landing-mode) .memo-hero-copy {
  border: 1px solid var(--app-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--app-shadow-soft);
}

body:not(.landing-mode) .decision-strip article::before,
body:not(.landing-mode) .signal-card::before {
  height: 4px;
}

body:not(.landing-mode) .decision-strip .decision-main-card {
  background:
    radial-gradient(circle at 90% 0%, rgba(6, 182, 212, 0.24), transparent 36%),
    linear-gradient(145deg, #080e1c, #0d2f45 58%, #0e7490);
  border-color: rgba(103, 232, 249, 0.22);
  color: #ffffff;
}

body:not(.landing-mode) .decision-strip .decision-main-card .section-label,
body:not(.landing-mode) .decision-strip .decision-main-card .signal-label,
body:not(.landing-mode) .decision-strip .decision-main-card p {
  color: #c7e8f1;
}

body:not(.landing-mode) .decision-badge {
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  text-align: center;
}

body:not(.landing-mode) .decision-open {
  color: #0d7449;
  background: #dcfce7;
}

body:not(.landing-mode) .decision-conditional {
  color: #0e7490;
  background: #cffafe;
}

body:not(.landing-mode) .decision-do-not-open {
  color: #b42318;
  background: #fee2dd;
}

body:not(.landing-mode) .decision-needs-more-data {
  color: #334155;
  background: #e2e8f0;
}

body:not(.landing-mode) .memo-score-stack article {
  background: #0d1424;
  color: #ffffff;
  border-radius: 14px;
}

body:not(.landing-mode) .memo-score-stack article:nth-child(2) {
  background: #0f3b4a;
}

body:not(.landing-mode) .panel-header {
  margin: -1px -1px 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--app-line);
  border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, #f8fbff, #eef8fb);
}

body:not(.landing-mode) .map-panel {
  overflow: hidden;
  background: #ffffff;
}

body:not(.landing-mode) .map-panel .panel-header {
  background:
    linear-gradient(135deg, rgba(8, 14, 28, 0.98), rgba(13, 20, 36, 0.95));
  color: #ffffff;
}

body:not(.landing-mode) .map-panel .panel-header h3 {
  color: #ffffff;
}

body:not(.landing-mode) .map-panel .panel-header p,
body:not(.landing-mode) .map-panel .panel-header .section-label {
  color: #a6c3cf;
}

body:not(.landing-mode) .market-map {
  border: 0;
  border-radius: 0;
  background: #dbe7ef;
}

body:not(.landing-mode) .business-count,
body:not(.landing-mode) .business-count * {
  overflow-wrap: anywhere;
}

body:not(.landing-mode) .business-count #business-count {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 0.95;
}

body:not(.landing-mode) .business-results {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

body:not(.landing-mode) .summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

body:not(.landing-mode) .signal-card,
body:not(.landing-mode) .business-results article {
  min-height: 150px;
}

body:not(.landing-mode) .business-suggestions {
  z-index: 1000;
  max-height: min(360px, 55vh);
  overflow-y: auto;
  border: 1px solid rgba(103, 232, 249, 0.24);
  background: #0b1220;
  box-shadow: 0 24px 70px rgba(8, 14, 28, 0.42);
}

body:not(.landing-mode) .business-suggestions button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  text-align: left;
}

body:not(.landing-mode) .business-suggestions button:hover,
body:not(.landing-mode) .business-suggestions button:focus-visible {
  background: rgba(6, 182, 212, 0.16);
}

body:not(.landing-mode) .launch-section,
body:not(.landing-mode) .pricing-card,
body:not(.landing-mode) .advisor-grid article,
body:not(.landing-mode) .launch-form {
  border-radius: 16px;
  border: 1px solid var(--app-line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--app-shadow-soft);
}

body:not(.landing-mode) .pricing-card-featured {
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 20px 54px rgba(6, 182, 212, 0.14);
}

@media (min-width: 1100px) {
  body:not(.landing-mode) .workspace {
    grid-template-columns: 340px minmax(0, 1fr);
  }

  body:not(.landing-mode) .sidebar {
    padding: 22px;
  }

  body:not(.landing-mode) .results {
    grid-template-columns: minmax(0, 1fr);
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
  }

  body:not(.landing-mode) .results > * {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    position: static !important;
  }

  body:not(.landing-mode) .executive-decision-strip {
    display: grid;
    grid-template-columns: minmax(320px, 1.25fr) repeat(3, minmax(180px, 0.75fr));
  }

  body:not(.landing-mode) .decision-strip .decision-main-card {
    min-height: 176px;
  }

  body:not(.landing-mode) .map-panel {
    order: 4;
  }

  body:not(.landing-mode) .market-map {
    min-height: 520px;
  }
}

@media (max-width: 860px) {
  body:not(.landing-mode) .app-shell {
    padding: 0;
  }

  body:not(.landing-mode) .workspace {
    border-radius: 0;
  }

  body:not(.landing-mode) .sidebar {
    padding: 20px;
  }

  body:not(.landing-mode) .results {
    padding: 12px;
    background:
      linear-gradient(rgba(6, 182, 212, 0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(6, 182, 212, 0.035) 1px, transparent 1px),
      #eef4f7;
    background-size: 28px 28px;
  }

  body:not(.landing-mode) .hero-report {
    min-height: 420px;
    padding: 22px;
    border-radius: 18px;
  }

  body:not(.landing-mode) .hero-report h2 {
    max-width: 12ch;
    font-size: clamp(2.15rem, 13vw, 3.25rem);
    line-height: 0.98;
  }

  body:not(.landing-mode) .hero-report p {
    font-size: 1rem;
    line-height: 1.45;
  }

  body:not(.landing-mode) .hero-tags {
    gap: 8px;
  }

  body:not(.landing-mode) .hero-tags span {
    max-width: 100%;
    font-size: 0.72rem;
    white-space: normal;
  }

  body:not(.landing-mode) .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  body:not(.landing-mode) .hero-actions button {
    min-height: 42px;
    padding: 9px 10px;
    font-size: 0.82rem;
  }

  body:not(.landing-mode) .executive-decision-strip,
  body:not(.landing-mode) .summary-grid,
  body:not(.landing-mode) .business-results,
  body:not(.landing-mode) .memo-grid,
  body:not(.landing-mode) .analysis-columns,
  body:not(.landing-mode) .institutional-grid,
  body:not(.landing-mode) .foot-traffic-grid,
  body:not(.landing-mode) .revenue-output-grid {
    grid-template-columns: 1fr;
  }

  body:not(.landing-mode) .decision-strip .decision-main-card {
    min-height: 0;
  }

  body:not(.landing-mode) .panel-header {
    padding: 16px;
  }

  body:not(.landing-mode) .market-map {
    min-height: 360px;
  }

  body:not(.landing-mode).business-picker-open {
    overflow: hidden;
  }

  body:not(.landing-mode).business-picker-open .business-suggestions {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    bottom: 12px !important;
    width: auto !important;
    max-height: min(62vh, 520px);
    padding: 12px;
    border-radius: 18px;
    z-index: 9999;
  }
}

/* App intake state: when the homepage CTA opens the product shell, keep the
   approved homepage hidden and show a clean product prompt instead. */
body:not(.landing-mode) .start-screen:not([hidden]) {
  min-height:100vh;
  display:grid !important;
  place-items:center;
  padding:clamp(28px, 5vw, 72px);
  color:#EAFBFF;
  background:
    linear-gradient(135deg, rgba(2, 8, 23, .86), rgba(8, 47, 73, .72)),
    url("https://images.unsplash.com/photo-1534430480872-3498386e7856?auto=format&fit=crop&w=1800&q=80") center/cover;
  border-radius:0 26px 26px 0;
  overflow:hidden;
}

body:not(.landing-mode) .start-screen:not([hidden]) > * {
  display:none !important;
}

body:not(.landing-mode) .start-screen:not([hidden])::before {
  content:"Business Decision Intelligence";
  display:block;
  width:min(720px, 92%);
  padding:clamp(28px, 5vw, 52px);
  border:1px solid rgba(148, 241, 255, .2);
  border-radius:24px;
  background:linear-gradient(135deg, rgba(7, 18, 35, .82), rgba(8, 63, 85, .58));
  box-shadow:0 34px 90px rgba(2, 8, 23, .42), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter:blur(18px);
  font-size:clamp(36px, 6vw, 78px);
  line-height:.96;
  letter-spacing:-.055em;
  font-weight:900;
}

body:not(.landing-mode) .start-screen:not([hidden])::after {
  content:"Use the left panel to choose a business type, enter a ZIP code or exact address, and generate the executive decision report.";
  position:absolute;
  left:50%;
  top:calc(50% + min(150px, 18vw));
  transform:translateX(-50%);
  width:min(640px, 78%);
  color:#BAEFFF;
  font-size:clamp(15px, 1.5vw, 20px);
  line-height:1.55;
  text-align:center;
}

body:not(.landing-mode) .sidebar input::placeholder {
  color:#6B7C8D;
}

body:not(.landing-mode) .sidebar .nyc-notice p,
body:not(.landing-mode) .sidebar .positioning-card p {
  color:#B8CAD6;
}

body:not(.landing-mode) .sidebar .intake-card p,
body:not(.landing-mode) .sidebar .form-message,
body:not(.landing-mode) .sidebar .help-text {
  color:#A7BAC8;
}

body:not(.landing-mode) .compare-panel .panel-header {
  background:
    linear-gradient(135deg, rgba(7, 18, 35, .94), rgba(8, 63, 85, .78)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1600&q=80") center/cover;
  color:#F2FDFF;
  border-bottom:1px solid rgba(148, 241, 255, .18);
}

body:not(.landing-mode) .compare-panel .panel-header .section-label,
body:not(.landing-mode) .compare-panel .panel-header h3,
body:not(.landing-mode) .compare-panel .panel-header p {
  color:#F2FDFF;
}

body:not(.landing-mode) .compare-panel .panel-header .subtle-button {
  background:rgba(255,255,255,.12);
  color:#F2FDFF;
  border-color:rgba(255,255,255,.22);
}

/* ============================================================
   Final app unification pass
   The homepage is the visual source of truth; this keeps the
   inside product from falling back into the older light dashboard.
   ============================================================ */
body:not(.landing-mode) {
  --app-panel: rgba(10, 18, 32, 0.86);
  --app-panel-soft: rgba(13, 24, 42, 0.74);
  --app-ink: #f4fbff;
  --app-muted: #b8c7d7;
  --app-soft: #88a2b3;
  --app-line: rgba(148, 241, 255, 0.14);
  --app-glass: linear-gradient(145deg, rgba(11, 23, 41, 0.9), rgba(10, 45, 59, 0.66));
  color: var(--app-ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(6, 182, 212, 0.22), transparent 28%),
    radial-gradient(circle at 92% 10%, rgba(22, 166, 106, 0.12), transparent 34%),
    #070d18;
}

body:not(.landing-mode) .workspace,
body:not(.landing-mode) .results {
  background:
    linear-gradient(rgba(148, 241, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 241, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 82% 0%, rgba(6, 182, 212, 0.13), transparent 34%),
    #07111f;
  background-size: 36px 36px, 36px 36px, auto, auto;
}

body:not(.landing-mode) .results {
  color: var(--app-ink);
}

body:not(.landing-mode) .hero-report {
  border-color: rgba(148, 241, 255, 0.2);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.36);
}

body:not(.landing-mode) .hero-report h2 {
  overflow-wrap: anywhere;
}

body:not(.landing-mode) .analyst-tabs,
body:not(.landing-mode) .decision-strip article,
body:not(.landing-mode) .investment-memo,
body:not(.landing-mode) .panel,
body:not(.landing-mode) .signal-card,
body:not(.landing-mode) .verdict-panel,
body:not(.landing-mode) .business-results article,
body:not(.landing-mode) .institutional-grid article,
body:not(.landing-mode) .analysis-columns article,
body:not(.landing-mode) .score-drivers-card,
body:not(.landing-mode) .unknown-factors,
body:not(.landing-mode) .foot-traffic-grid article,
body:not(.landing-mode) .revenue-output-grid article,
body:not(.landing-mode) .revenue-input-grid label,
body:not(.landing-mode) .market-panel,
body:not(.landing-mode) .diligence-panel,
body:not(.landing-mode) .data-connected-strip,
body:not(.landing-mode) .evidence-signal-card,
body:not(.landing-mode) .memo-card,
body:not(.landing-mode) .memo-hero-copy,
body:not(.landing-mode) .launch-section,
body:not(.landing-mode) .pricing-card,
body:not(.landing-mode) .advisor-grid article,
body:not(.landing-mode) .launch-form,
body:not(.landing-mode) .source-map-card,
body:not(.landing-mode) .source-map-list article,
body:not(.landing-mode) .methodology-panel,
body:not(.landing-mode) details,
body:not(.landing-mode) .compare-panel,
body:not(.landing-mode) .compare-card,
body:not(.landing-mode) .saved-report-card {
  background: var(--app-glass);
  border-color: var(--app-line);
  color: var(--app-ink);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

body:not(.landing-mode) .panel-header,
body:not(.landing-mode) .investment-memo-header,
body:not(.landing-mode) .business-checker-header,
body:not(.landing-mode) .compare-panel .panel-header {
  background: linear-gradient(135deg, rgba(13, 20, 36, 0.92), rgba(8, 63, 85, 0.72));
  border-color: rgba(148, 241, 255, 0.14);
  color: var(--app-ink);
}

body:not(.landing-mode) .panel-header h3,
body:not(.landing-mode) .panel-header h4,
body:not(.landing-mode) .panel-header p,
body:not(.landing-mode) .investment-memo-header h3,
body:not(.landing-mode) .investment-memo-header p,
body:not(.landing-mode) .business-checker-header h3,
body:not(.landing-mode) .business-checker-header p,
body:not(.landing-mode) .compare-panel .panel-header h3,
body:not(.landing-mode) .compare-panel .panel-header p {
  color: var(--app-ink);
}

body:not(.landing-mode) h1,
body:not(.landing-mode) h2,
body:not(.landing-mode) h3,
body:not(.landing-mode) h4,
body:not(.landing-mode) strong,
body:not(.landing-mode) .signal-title,
body:not(.landing-mode) .metric-value,
body:not(.landing-mode) .score-value,
body:not(.landing-mode) .summary-value,
body:not(.landing-mode) .recommendation,
body:not(.landing-mode) .decision-strip strong {
  color: var(--app-ink);
}

body:not(.landing-mode) p,
body:not(.landing-mode) li,
body:not(.landing-mode) dd,
body:not(.landing-mode) .muted,
body:not(.landing-mode) .help-text,
body:not(.landing-mode) .signal-description,
body:not(.landing-mode) .memo-card p,
body:not(.landing-mode) .panel p,
body:not(.landing-mode) .business-results article p,
body:not(.landing-mode) .analysis-columns article p,
body:not(.landing-mode) .institutional-grid article p,
body:not(.landing-mode) .unknown-factors li,
body:not(.landing-mode) .source-map-list article p {
  color: var(--app-muted);
}

body:not(.landing-mode) .section-label,
body:not(.landing-mode) .eyebrow,
body:not(.landing-mode) .signal-label,
body:not(.landing-mode) .source-map-label {
  color: #7ddcff;
}

body:not(.landing-mode) .analyst-tabs a,
body:not(.landing-mode) .pill,
body:not(.landing-mode) .status,
body:not(.landing-mode) .mini-status,
body:not(.landing-mode) .source-map-status,
body:not(.landing-mode) .hero-tags span,
body:not(.landing-mode) .signal-chip {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(148, 241, 255, 0.18);
  color: #e7f8ff;
}

body:not(.landing-mode) .decision-strip .decision-main-card {
  background:
    radial-gradient(circle at 92% 0%, rgba(6, 182, 212, 0.32), transparent 38%),
    linear-gradient(145deg, rgba(5, 15, 30, 0.98), rgba(7, 66, 86, 0.86));
}

body:not(.landing-mode) .decision-badge {
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

body:not(.landing-mode) input,
body:not(.landing-mode) select,
body:not(.landing-mode) textarea {
  background: rgba(248, 250, 252, 0.96);
  color: #0f172a;
}

body:not(.landing-mode) .results button,
body:not(.landing-mode) .results .primary-button,
body:not(.landing-mode) .results .export-button {
  border-color: rgba(103, 232, 249, 0.24);
}

body:not(.landing-mode) table,
body:not(.landing-mode) .compare-table {
  color: var(--app-ink);
  border-color: rgba(148, 241, 255, 0.14);
}

body:not(.landing-mode) th,
body:not(.landing-mode) td {
  border-color: rgba(148, 241, 255, 0.1);
}

body:not(.landing-mode) th {
  background: rgba(255, 255, 255, 0.08);
  color: #dff8ff;
}

body:not(.landing-mode) .market-map,
body:not(.landing-mode) .map-panel {
  background: rgba(8, 14, 28, 0.88);
  border-color: rgba(148, 241, 255, 0.16);
}

body:not(.landing-mode) .map-panel .panel-header {
  background: linear-gradient(135deg, rgba(5, 15, 30, 0.96), rgba(7, 66, 86, 0.72));
}

body:not(.landing-mode) .leaflet-control,
body:not(.landing-mode) .leaflet-popup-content-wrapper {
  color: #0f172a;
}

body:not(.landing-mode) .start-screen:not([hidden]) {
  border-left: 1px solid rgba(148, 241, 255, 0.1);
}

@media (max-width: 860px) {
  body:not(.landing-mode) .results {
    background:
      linear-gradient(rgba(148, 241, 255, 0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(148, 241, 255, 0.03) 1px, transparent 1px),
      #07111f;
    background-size: 28px 28px;
  }

  body:not(.landing-mode) .hero-report {
    min-height: 360px;
  }

  body:not(.landing-mode) .hero-report h2 {
    max-width: 14ch;
    font-size: clamp(1.85rem, 10vw, 2.8rem);
    line-height: 1.02;
  }

  body:not(.landing-mode) .results > .hero-report {
    order: -12 !important;
  }

  body:not(.landing-mode) .results > .executive-decision-strip {
    order: -11 !important;
  }

  body:not(.landing-mode) .results > .data-connected-strip {
    order: -10 !important;
  }

  body:not(.landing-mode) .results > .investment-memo {
    order: -9 !important;
  }

  body:not(.landing-mode) .results > .summary-grid {
    order: -8 !important;
  }

  body:not(.landing-mode) .results > .map-panel {
    order: -7 !important;
  }
}

/* ============================================================
   Inside app visual alignment — match approved homepage style
   Visual-only override. Keeps scoring, APIs, report logic intact.
   ============================================================ */
body:not(.landing-mode) {
  --ai-navy: #080e1c;
  --ai-navy-2: #0a0f1e;
  --ai-slate: #111827;
  --ai-glass: #1e293b;
  --ai-cyan: #06b6d4;
  --ai-green: #10b981;
  --ai-amber: #f59e0b;
  --ai-red: #ef4444;
  --ai-white: #f1f5f9;
  --ai-muted: #94a3b8;
  --ai-dim: #64748b;
  --ai-line: rgba(255, 255, 255, 0.11);
  --ai-panel: rgba(10, 15, 30, 0.9);
  --ai-panel-2: rgba(13, 20, 36, 0.92);
  --ai-depth: 0 28px 90px rgba(0, 0, 0, 0.36);
  background:
    radial-gradient(circle at 10% 0%, rgba(6, 182, 212, 0.2), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(16, 185, 129, 0.12), transparent 34%),
    var(--ai-navy);
  color: var(--ai-white);
}

body:not(.landing-mode) .workspace {
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px),
    var(--ai-navy);
  background-size: 28px 28px;
  border-color: rgba(255,255,255,.08);
}

body:not(.landing-mode) .results,
body:not(.landing-mode) .start-screen:not([hidden]) {
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px),
    radial-gradient(circle at 80% 0%, rgba(6, 182, 212, 0.14), transparent 34%),
    var(--ai-navy);
  background-size: 28px 28px, 28px 28px, auto, auto;
  color: var(--ai-white);
}

body:not(.landing-mode) .sidebar {
  background:
    radial-gradient(circle at 16% 0%, rgba(6, 182, 212, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(8,14,28,.98), rgba(10,15,30,.99));
}

body:not(.landing-mode) .nyc-notice,
body:not(.landing-mode) .positioning-card,
body:not(.landing-mode) .intake-card,
body:not(.landing-mode) .search-panel,
body:not(.landing-mode) .address-panel,
body:not(.landing-mode) .saved-reports-panel {
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid var(--ai-line);
  border-radius: 14px;
  box-shadow: none;
}

body:not(.landing-mode) .results > section,
body:not(.landing-mode) .results > div,
body:not(.landing-mode) .analyst-tabs,
body:not(.landing-mode) .decision-strip article,
body:not(.landing-mode) .investment-memo,
body:not(.landing-mode) .panel,
body:not(.landing-mode) .signal-card,
body:not(.landing-mode) .verdict-panel,
body:not(.landing-mode) .business-results article,
body:not(.landing-mode) .institutional-grid article,
body:not(.landing-mode) .analysis-columns article,
body:not(.landing-mode) .score-drivers-card,
body:not(.landing-mode) .unknown-factors,
body:not(.landing-mode) .foot-traffic-grid article,
body:not(.landing-mode) .revenue-output-grid article,
body:not(.landing-mode) .revenue-input-grid label,
body:not(.landing-mode) .market-panel,
body:not(.landing-mode) .diligence-panel,
body:not(.landing-mode) .data-connected-strip,
body:not(.landing-mode) .evidence-signal-card,
body:not(.landing-mode) .memo-card,
body:not(.landing-mode) .memo-hero-copy,
body:not(.landing-mode) .source-map-card,
body:not(.landing-mode) .source-map-list article,
body:not(.landing-mode) .methodology-panel,
body:not(.landing-mode) details,
body:not(.landing-mode) .compare-panel,
body:not(.landing-mode) .compare-card,
body:not(.landing-mode) .places-card,
body:not(.landing-mode) .listing-card,
body:not(.landing-mode) .concept-fit-card,
body:not(.landing-mode) .launch-section,
body:not(.landing-mode) .pricing-card,
body:not(.landing-mode) .advisor-grid article,
body:not(.landing-mode) .launch-form {
  background: var(--ai-panel);
  border: 1px solid var(--ai-line);
  color: var(--ai-white);
  box-shadow: var(--ai-depth), inset 0 1px 0 rgba(255,255,255,.055);
  backdrop-filter: blur(14px);
}

body:not(.landing-mode) .results > .hero-report,
body:not(.landing-mode) .results > .map-panel,
body:not(.landing-mode) .results > .executive-decision-strip {
  box-shadow: none;
}

body:not(.landing-mode) .hero-report {
  background:
    linear-gradient(90deg, rgba(8, 14, 28, 0.9), rgba(8, 14, 28, 0.45)),
    radial-gradient(circle at 90% 8%, rgba(6, 182, 212, 0.2), transparent 35%),
    url("https://images.unsplash.com/photo-1534430480872-3498386e7856?auto=format&fit=crop&w=1600&q=80") center/cover;
  border-radius: 18px;
  border: 1px solid var(--ai-line);
}

body:not(.landing-mode) .hero-report h2 {
  color: var(--ai-white);
  font-size: clamp(2.7rem, 5.2vw, 5.25rem);
  letter-spacing: -0.055em;
  line-height: 0.96;
  max-width: 17ch;
}

body:not(.landing-mode) .hero-report p {
  color: var(--ai-muted);
  font-size: 1rem;
}

body:not(.landing-mode) .hero-tags span,
body:not(.landing-mode) .pill,
body:not(.landing-mode) .status,
body:not(.landing-mode) .mini-status,
body:not(.landing-mode) .source-map-status,
body:not(.landing-mode) .signal-chip,
body:not(.landing-mode) .map-legend span {
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(255,255,255,.13);
  color: var(--ai-white);
}

body:not(.landing-mode) .hero-actions button,
body:not(.landing-mode) .results button,
body:not(.landing-mode) .primary-button,
body:not(.landing-mode) .export-button,
body:not(.landing-mode) .memo-button {
  background: var(--ai-cyan);
  color: var(--ai-navy);
  border-color: transparent;
  box-shadow: 0 14px 34px rgba(6, 182, 212, 0.2);
}

body:not(.landing-mode) .hero-actions .ghost-button,
body:not(.landing-mode) .ghost-button,
body:not(.landing-mode) .subtle-button {
  background: rgba(30, 41, 59, 0.72);
  color: var(--ai-white);
  border-color: rgba(255,255,255,.13);
  box-shadow: none;
}

body:not(.landing-mode) .panel-header,
body:not(.landing-mode) .investment-memo-header,
body:not(.landing-mode) .business-checker-header,
body:not(.landing-mode) .compare-panel .panel-header {
  background: rgba(17, 24, 39, 0.84);
  border-color: var(--ai-line);
  color: var(--ai-white);
}

body:not(.landing-mode) h1,
body:not(.landing-mode) h2,
body:not(.landing-mode) h3,
body:not(.landing-mode) h4,
body:not(.landing-mode) strong,
body:not(.landing-mode) .signal-title,
body:not(.landing-mode) .metric-value,
body:not(.landing-mode) .score-value,
body:not(.landing-mode) .summary-value,
body:not(.landing-mode) .recommendation,
body:not(.landing-mode) .decision-strip strong,
body:not(.landing-mode) .panel-header h3,
body:not(.landing-mode) .panel-header h4,
body:not(.landing-mode) .investment-memo-header h3,
body:not(.landing-mode) .business-checker-header h3 {
  color: var(--ai-white);
}

body:not(.landing-mode) p,
body:not(.landing-mode) li,
body:not(.landing-mode) dd,
body:not(.landing-mode) .muted,
body:not(.landing-mode) .help-text,
body:not(.landing-mode) .signal-description,
body:not(.landing-mode) .memo-card p,
body:not(.landing-mode) .panel p,
body:not(.landing-mode) .business-results article p,
body:not(.landing-mode) .analysis-columns article p,
body:not(.landing-mode) .institutional-grid article p,
body:not(.landing-mode) .unknown-factors li,
body:not(.landing-mode) .source-map-list article p,
body:not(.landing-mode) .panel-header p,
body:not(.landing-mode) .investment-memo-header p,
body:not(.landing-mode) .business-checker-header p {
  color: var(--ai-muted);
}

body:not(.landing-mode) .section-label,
body:not(.landing-mode) .eyebrow,
body:not(.landing-mode) .signal-label,
body:not(.landing-mode) .source-map-label,
body:not(.landing-mode) .step-label {
  color: var(--ai-cyan);
}

body:not(.landing-mode) .decision-strip .decision-main-card,
body:not(.landing-mode) .memo-score-stack article,
body:not(.landing-mode) .business-count {
  background:
    radial-gradient(circle at 94% 0%, rgba(6,182,212,.26), transparent 35%),
    linear-gradient(145deg, rgba(8,14,28,.98), rgba(8,72,92,.82));
  border-color: rgba(6,182,212,.28);
}

body:not(.landing-mode) .decision-badge {
  background: rgba(241, 245, 249, 0.96);
  color: #0e7490;
  border: 0;
}

body:not(.landing-mode) .decision-open { color: #047857; }
body:not(.landing-mode) .decision-conditional { color: #0e7490; }
body:not(.landing-mode) .decision-do-not-open { color: #b42318; }
body:not(.landing-mode) .decision-needs-more-data { color: #334155; }

body:not(.landing-mode) .business-results .business-count,
body:not(.landing-mode) .business-results .business-count * {
  color: var(--ai-white);
}

body:not(.landing-mode) .business-results .business-count #business-count,
body:not(.landing-mode) .business-count #business-count {
  font-size: clamp(2.6rem, 6vw, 4.35rem);
  overflow-wrap: anywhere;
}

body:not(.landing-mode) .concept-fit-card,
body:not(.landing-mode) .source-map-list article,
body:not(.landing-mode) .listing-card,
body:not(.landing-mode) .places-card {
  background: rgba(17, 24, 39, 0.82);
}

body:not(.landing-mode) .concept-fit-card *,
body:not(.landing-mode) .source-map-list article *,
body:not(.landing-mode) .listing-card *,
body:not(.landing-mode) .places-card * {
  color: inherit;
}

body:not(.landing-mode) input,
body:not(.landing-mode) select,
body:not(.landing-mode) textarea {
  background: #f8fafc;
  color: #0f172a;
  border-color: rgba(255,255,255,.18);
}

body:not(.landing-mode) .business-suggestions {
  position: absolute;
  z-index: 9999;
  max-height: min(420px, 58vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #0a0f1e;
  border: 1px solid rgba(6,182,212,.35);
  border-radius: 14px;
  box-shadow: 0 28px 90px rgba(0,0,0,.48);
}

body:not(.landing-mode) .business-suggestions button {
  color: var(--ai-white);
  background: transparent;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
}

body:not(.landing-mode) .business-suggestions button:hover,
body:not(.landing-mode) .business-suggestions button:focus-visible {
  background: rgba(6, 182, 212, 0.16);
}

body:not(.landing-mode) .map-panel .panel-header,
body:not(.landing-mode) .market-map {
  background: var(--ai-panel-2);
}

body:not(.landing-mode) .leaflet-control,
body:not(.landing-mode) .leaflet-popup-content-wrapper,
body:not(.landing-mode) .leaflet-popup-tip {
  color: #0f172a;
}

@media (min-width: 1100px) {
  body:not(.landing-mode) .workspace {
    grid-template-columns: 340px minmax(0, 1fr);
  }

  body:not(.landing-mode) .results {
    max-width: 1180px;
    padding: 24px;
    gap: 18px;
  }

  body:not(.landing-mode) .executive-decision-strip {
    display: grid;
    grid-template-columns: 1.35fr .72fr .72fr .72fr;
  }
}

@media (max-width: 860px) {
  body:not(.landing-mode) .results {
    padding: 12px;
  }

  body:not(.landing-mode) .results > .hero-report {
    order: -12 !important;
  }

  body:not(.landing-mode) .results > .executive-decision-strip {
    order: -11 !important;
  }

  body:not(.landing-mode) .hero-report {
    min-height: auto;
    padding: 22px;
  }

  body:not(.landing-mode) .hero-report h2 {
    max-width: 13ch;
    font-size: clamp(2rem, 11vw, 3rem);
    line-height: 0.98;
  }

  body:not(.landing-mode) .hero-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  body:not(.landing-mode) .hero-report h2 {
    font-size: clamp(1.85rem, 10vw, 2.65rem);
  }

  body:not(.landing-mode) .hero-tags span {
    white-space: normal;
    max-width: 100%;
  }

  body:not(.landing-mode) .business-suggestions {
    left: 0;
    right: 0;
    width: 100%;
  }
}
/* ================================================================
   Inside report: homepage-style AreaIntel output
   Keeps the engine intact, replaces the first visible report decision
   with the same compact output pattern as the approved front-page demo.
   ================================================================ */
body:not(.landing-mode) .full-decision-panel {
  background:
    radial-gradient(circle at 12% 0%, rgba(6, 182, 212, .16), transparent 32%),
    linear-gradient(145deg, rgba(10, 15, 30, .96), rgba(13, 20, 36, .98));
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 18px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .28);
  color: var(--white);
  padding: 22px;
  overflow: hidden;
  position: relative;
}

body:not(.landing-mode) .full-decision-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .28;
  pointer-events: none;
}

body:not(.landing-mode) .full-decision-panel > * {
  position: relative;
  z-index: 1;
}

body:not(.landing-mode) .full-decision-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .42fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 16px;
}

body:not(.landing-mode) .full-decision-head h3 {
  margin: 8px 0 0;
  color: #f8fafc;
  font-size: clamp(1.8rem, 3vw, 3rem);
  letter-spacing: -.045em;
  line-height: .98;
}

body:not(.landing-mode) .full-decision-panel .section-label {
  color: #67e8f9;
}

body:not(.landing-mode) .full-decision-panel .scopepill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  background: rgba(8, 14, 28, .78);
  border: 1px solid rgba(6, 182, 212, .34);
  border-radius: 8px;
  color: #cbd5e1;
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 7px 11px;
  text-transform: uppercase;
}

body:not(.landing-mode) .full-decision-panel .scopepill i {
  color: #22d3ee;
}

body:not(.landing-mode) .full-decision-panel .scorebadge {
  --front-verdict-color: #f59e0b;
  align-items: center;
  background: rgba(8, 14, 28, .84);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  display: flex;
  gap: 9px;
  min-height: 82px;
  padding: 16px 18px;
  font-family: "IBM Plex Mono", monospace;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}

body:not(.landing-mode) .full-decision-panel .scorebadge[data-verdict="viable"] {
  background: rgba(16, 185, 129, .08);
  border-color: rgba(16, 185, 129, .35);
}

body:not(.landing-mode) .full-decision-panel .scorebadge[data-verdict="moderate"] {
  background: rgba(245, 158, 11, .08);
  border-color: rgba(245, 158, 11, .35);
}

body:not(.landing-mode) .full-decision-panel .scorebadge[data-verdict="high-risk"] {
  background: rgba(239, 68, 68, .08);
  border-color: rgba(239, 68, 68, .35);
}

body:not(.landing-mode) .full-decision-panel .scorebadge[data-verdict="review"] {
  background: rgba(100, 116, 139, .12);
  border-color: rgba(148, 163, 184, .35);
}

body:not(.landing-mode) .full-decision-panel .score-dot {
  background: var(--front-verdict-color);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(6, 182, 212, .12);
  height: 9px;
  width: 9px;
  flex: 0 0 auto;
}

body:not(.landing-mode) .full-decision-panel .score-label {
  color: var(--front-verdict-color);
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
}

body:not(.landing-mode) .full-decision-panel .score-value {
  color: var(--front-verdict-color);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.06em;
}

body:not(.landing-mode) .full-decision-panel .score-total {
  color: #94a3b8;
  font-size: .9rem;
  margin-left: -4px;
}

body:not(.landing-mode) .full-decision-panel .score-confidence {
  color: #94a3b8;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .08em;
  margin-left: auto;
  text-align: right;
  text-transform: uppercase;
}

body:not(.landing-mode) .full-decision-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body:not(.landing-mode) .full-decision-card {
  background: rgba(17, 24, 39, .78);
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 12px;
  min-height: 150px;
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

body:not(.landing-mode) .full-decision-card h4 {
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  margin: 0 0 9px;
  text-transform: uppercase;
}

body:not(.landing-mode) .full-decision-card p {
  color: #94a3b8;
  font-size: .92rem;
  line-height: 1.6;
  margin: 0;
}

body:not(.landing-mode) .full-decision-card-good {
  border-top: 2px solid #10b981;
}
body:not(.landing-mode) .full-decision-card-good h4 {
  color: #34d399;
}
body:not(.landing-mode) .full-decision-card-risk {
  border-top: 2px solid #f59e0b;
}
body:not(.landing-mode) .full-decision-card-risk h4 {
  color: #fbbf24;
}
body:not(.landing-mode) .full-decision-card-action {
  border-top: 2px solid #06b6d4;
}
body:not(.landing-mode) .full-decision-card-action h4 {
  color: #22d3ee;
}

body:not(.landing-mode) .full-decision-footnote {
  color: #1e3a5f;
  font-family: "IBM Plex Mono", monospace;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .04em;
  margin: 12px 0 0;
  text-align: right;
  text-transform: uppercase;
}

body:not(.landing-mode) .full-decision-actions {
  border-top: 1px solid rgba(148, 163, 184, .16);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
}

body:not(.landing-mode) .full-decision-actions .primary-button,
body:not(.landing-mode) .full-decision-actions .ghost-button {
  border-radius: 8px;
  min-height: 40px;
}

body:not(.landing-mode) .full-decision-actions .primary-button {
  background: #06b6d4;
  border-color: #06b6d4;
  color: #080e1c;
}

body:not(.landing-mode) .full-decision-actions .ghost-button {
  background: rgba(15, 23, 42, .74);
  border-color: rgba(148, 163, 184, .24);
  color: #cbd5e1;
}

body:not(.landing-mode) .hero-report {
  display: none !important;
}

body:not(.landing-mode) .executive-decision-strip {
  display: none !important;
}

@media (max-width: 900px) {
  body:not(.landing-mode) .full-decision-head,
  body:not(.landing-mode) .full-decision-cards {
    grid-template-columns: 1fr;
  }

  body:not(.landing-mode) .full-decision-panel .scorebadge {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  body:not(.landing-mode) .full-decision-panel {
    border-radius: 15px;
    padding: 16px;
  }

  body:not(.landing-mode) .full-decision-head h3 {
    font-size: 2rem;
    line-height: 1.02;
  }

  body:not(.landing-mode) .full-decision-panel .scorebadge {
    flex-wrap: wrap;
  }

  body:not(.landing-mode) .full-decision-panel .score-confidence {
    flex-basis: 100%;
    margin-left: 0;
    text-align: left;
  }

  body:not(.landing-mode) .full-decision-card {
    min-height: auto;
  }

  body:not(.landing-mode) .full-decision-actions .primary-button,
  body:not(.landing-mode) .full-decision-actions .ghost-button {
    flex: 1 1 100%;
  }
}
