@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --navy-950: #0F2942;
  --navy-800: #163A5C;
  --ink-900: #1F2A36;
  --ink-700: #34495E;
  --ink-500: #6B7C8F;
  --ink-400: #94A3B8;
  --line: #DDE6EE;
  --line-soft: #EEF3F7;
  --bg: #F5F7FA;
  --blue-600: #2C6CA8;
  --blue-100: #EDF3FA;
  --rust-600: #C1622E;
  --rust-100: #FBF1EA;
  --gold-500: #d6a532;
  --gold-600: #B98216;
  --green-600: #16a34a;
  --green-100: #dcfce7;
  --red-600: #dc2626;
  --red-100: #fee2e2;
  --amber-600: #d97706;
  --amber-100: #fef3c7;
  color: var(--ink-900);
  background: var(--bg);
  font-family: Manrope, system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); overflow-x: hidden; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.7; }
h1, h2, h3, .brand, .big-number { font-family: Sora, system-ui, sans-serif; }
h1 { margin: 0; font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.04em; line-height: 1.05; color: var(--navy-950); }
h2 { margin: 0; font-size: 22px; letter-spacing: -0.02em; color: var(--navy-950); font-weight: 700; }
h3 { margin: 0 0 10px; color: var(--navy-950); font-size: 16px; }
p { color: var(--ink-700); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
label { display: flex; flex-direction: column; gap: 6px; color: var(--ink-700); font-size: 13px; font-weight: 800; }
input, select { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; color: var(--ink-900); }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(320px,440px); gap: 32px; align-items: center; padding: clamp(24px,6vw,80px); overflow: hidden; background: radial-gradient(circle at 20% 20%, rgba(37,99,235,.18), transparent 30%), radial-gradient(circle at 80% 20%, rgba(180,83,9,.18), transparent 28%), var(--navy-950); }
.auth-copy, .auth-copy p, .auth-copy h1 { color: #fff; }
.auth-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; }
.auth-links a { color: var(--gold-500); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.brand { font-weight: 800; letter-spacing: -0.02em; }
.brand span { color: var(--gold-500); font-weight: 500; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 14px 36px rgba(15,41,66,.08); }
.auth-card { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--line-soft); padding: 5px; border-radius: 12px; }
.tabs button { border: none; border-radius: 9px; background: transparent; padding: 9px; font-weight: 800; color: var(--ink-500); }
.tabs button.active { background: #fff; color: var(--navy-950); }
.primary, .secondary, .ghost { border: none; border-radius: 999px; padding: 10px 18px; font-weight: 800; }
.primary { background: var(--gold-500); color: var(--navy-950); }
.secondary { border: 1px solid var(--line); background: #fff; color: var(--navy-950); }
.ghost { background: rgba(255,255,255,.1); color: #fff; }
.error { color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; padding: 9px 10px; font-size: 13px; }

.topbar { position: sticky; top: 0; z-index: 10; background: var(--navy-950); color: #fff; display: flex; align-items: center; gap: 22px; padding: 14px 28px; }
.topbar nav { display: flex; gap: 4px; overflow-x: auto; flex: 1; }
.topbar a { color: rgba(255,255,255,.72); font-family: Sora, system-ui, sans-serif; font-size: 13px; font-weight: 700; padding: 8px 12px; white-space: nowrap; }
.app-shell { width: 100%; margin: 0; padding: 24px 32px 80px; }
.app-shell.report-only { padding: 0; }
.command-center { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,420px); gap: 16px; align-items: start; margin-bottom: 24px; }
.report-form { display: flex; flex-direction: column; gap: 18px; padding: 22px; }
.report-form-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.zip-row { display: grid; grid-template-columns: minmax(140px,1fr) auto minmax(140px,1fr); gap: 12px; align-items: end; }
.zip-row > span { align-self: center; color: var(--ink-500); font-weight: 900; text-align: center; }
.tier-radio-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.tier-radio { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; min-height: 106px; }
.tier-radio.selected { border-color: var(--gold-500); box-shadow: 0 0 0 2px rgba(217,164,65,.16); background: #fffbf2; }
.tier-radio input { margin-top: 2px; accent-color: var(--gold-500); }
.tier-radio input:disabled { cursor: not-allowed; }
.tier-radio:has(input:disabled) { opacity: .62; cursor: not-allowed; }
.tier-radio strong { display: block; color: var(--navy-950); font-family: Sora, system-ui, sans-serif; font-size: 13px; }
.tier-radio small { display: block; margin-top: 5px; color: var(--ink-500); font-size: 12px; line-height: 1.35; font-weight: 600; }
.tier-radio .tier-sale { color: var(--rust-600); font-weight: 900; }
.tier-radio .tier-sale s { color: var(--ink-500); font-weight: 700; margin-right: 4px; }
.tier-radio .tier-sale b { color: var(--rust-600); font-family: Sora, system-ui, sans-serif; font-size: 14px; }
.tier-footnote { margin: -8px 0 0; color: var(--ink-500); font-size: 12px; line-height: 1.45; }
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 12px; grid-column: 2; grid-row: 1 / span 2; }
.pricing-card { padding: 16px; }
.price { font-family: Sora, system-ui, sans-serif; font-size: 24px; font-weight: 800; color: var(--navy-950); }
.status-line, .muted { color: var(--ink-500); }
.small { font-size: 12px; }
.history { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; max-height: 520px; overflow: auto; grid-column: 2; }
.history .eyebrow { margin-bottom: 8px; }
.side-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.side-toggle { display: flex; gap: 4px; background: var(--line-soft); padding: 4px; border-radius: 999px; }
.side-toggle button { border: none; border-radius: 999px; background: transparent; color: var(--ink-500); padding: 6px 10px; font-size: 11px; font-weight: 800; }
.side-toggle button.active { background: #fff; color: var(--navy-950); box-shadow: 0 4px 10px rgba(15,41,66,.08); }
.zip-finder-form { display: grid; grid-template-columns: minmax(0,1.4fr) 84px auto; gap: 8px; align-items: end; margin-bottom: 12px; }
.zip-finder-list { display: grid; gap: 6px; }
.zip-finder-item { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: 10px; }
.zip-finder-item.compared { background: #fffbf2; border-color: #F0D7A3; }
.zip-finder-item strong { font-family: Sora, system-ui, sans-serif; font-size: 14px; color: var(--navy-950); }
.zip-finder-item span { color: var(--ink-500); font-size: 12px; }
.zip-finder-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.zip-compared-link { border: none; background: transparent; color: var(--gold-600); padding: 0; margin: 0; font-size: 11px; font-weight: 800; text-align: left; }
.zip-compared-link.current { color: var(--rust-600); }
.zip-finder-item > div button { border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy-950); padding: 4px 8px; font-size: 11px; font-weight: 800; margin-left: 4px; }
.history-item { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; border: 1px solid transparent; border-radius: 12px; background: transparent; padding: 10px; color: var(--ink-700); }
.history-item.active, .history-item:hover { border-color: var(--line); background: var(--line-soft); }
.history-item span { font-size: 12px; color: var(--ink-500); }
.history-kind { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 8px; font-size: 10px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.history-kind.preview { color: #334155; background: var(--line-soft); }
.history-kind.full { color: #7A4A00; background: #FFF3D1; }
.report-stage { min-width: 0; }
.empty { padding: 40px; }
.production-report { min-height: 100vh; background: var(--bg); color: var(--ink-900); font-family: Manrope, system-ui, sans-serif; font-size: 15px; line-height: 1.5; overflow-x: hidden; }
.production-toolbar { position: sticky; top: 0; z-index: 30; background: var(--navy-950); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.1); }
.toolbar-row { max-width: 1280px; margin: 0 auto; padding: 14px 32px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.toolbar-field { flex: 1 1 180px; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 8px 12px; min-width: 140px; max-width: 280px; }
.toolbar-field span { font-size: 11px; font-weight: 800; color: rgba(255,255,255,.55); text-transform: uppercase; }
.toolbar-field strong { font-family: Sora, system-ui, sans-serif; font-size: 14px; color: #fff; }
.toolbar-vs { color: rgba(255,255,255,.4); font-weight: 800; }
.toolbar-refresh { font-size: 12px; color: rgba(255,255,255,.55); white-space: nowrap; }
.home-icon-button { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.82); padding: 0; }
.home-icon-button:hover { background: rgba(255,255,255,.14); color: #fff; }
.home-icon-button svg { width: 17px; height: 17px; display: block; }
.unlock-button { border: none; border-radius: 999px; padding: 9px 16px; background: var(--gold-500); color: var(--navy-950); font-family: Sora, system-ui, sans-serif; font-size: 12px; font-weight: 900; white-space: nowrap; box-shadow: 0 10px 26px rgba(217,164,65,.22); }
.unlock-button:disabled { opacity: .72; cursor: not-allowed; }
.unlock-error { max-width: 280px; color: #fecaca; font-size: 12px; line-height: 1.3; }
.toolbar-secondary { border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 9px 14px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.86); font-family: Sora, system-ui, sans-serif; font-size: 12px; font-weight: 800; white-space: nowrap; }
.toolbar-secondary:hover { background: rgba(255,255,255,.14); color: #fff; }
.production-nav { max-width: 1280px; margin: 0 auto; padding: 6px 24px 8px; display: flex; gap: 2px; flex-wrap: wrap; justify-content: center; overflow: visible; border-top: 1px solid rgba(255,255,255,.1); }
.production-nav a { font-family: Sora, system-ui, sans-serif; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.75); padding: 7px 10px; border-radius: 999px; white-space: nowrap; }
.production-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.city-pill-row { max-width: 1280px; margin: 0 auto 28px; padding: 32px 32px 0; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.city-pill { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 14px; font-family: Sora, system-ui, sans-serif; font-weight: 800; font-size: 18px; color: var(--navy-950); }
.city-pill.left { background: var(--blue-100); border: 1px solid #D9E7F5; }
.city-pill.right { background: var(--rust-100); border: 1px solid #F5DFCB; }
.warning-pill { margin-left: auto; }
.production-report .section, .production-report > footer { max-width: 1280px; margin-left: auto; margin-right: auto; padding-left: 32px; padding-right: 32px; }
.report-hero { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; background: linear-gradient(180deg,#ffffff,#FBFCFE); border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px; }
.eyebrow { color: var(--gold-600, #B98216); font-family: Sora, system-ui, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.section { scroll-margin-top: 120px; margin-bottom: 56px; }
.section-subtitle { margin: 6px 0 0; max-width: 700px; font-size: 14px; line-height: 1.55; color: var(--ink-500); }
.grid { display: grid; gap: 16px; margin-top: 16px; }
.grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.grid.four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.grid.compact { gap: 12px; }
.summary-card, .score-card, .metric-card, .map-card, .stat-strip, .accordion { padding: 20px; }
.production-report .section .card { padding: 20px; min-width: 0; }
.production-report .section .card .category-line > span,
.production-report .section .card .nearest-hospital span { min-width: 0; overflow-wrap: anywhere; }
.score-label { font-size: 12px; font-weight: 800; color: var(--ink-500); text-transform: uppercase; letter-spacing: .06em; }
.score-row { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.score-row.right { margin-top: 10px; }
.score-row strong { font-family: Sora, system-ui, sans-serif; font-size: 26px; font-weight: 800; }
.score-row.right strong { font-size: 20px; }
.score-row span { font-size: 12px; color: var(--ink-400); }
.single-bar { height: 10px; border-radius: 999px; background: var(--line-soft); overflow: hidden; margin-top: 8px; }
.single-bar i { display: block; height: 100%; border-radius: 999px; }
.locked-score { position: relative; overflow: hidden; }
.locked-score .score-content { filter: blur(7px); opacity: .45; pointer-events: none; user-select: none; }
.locked-score-badge { position: absolute; top: 84px; left: 50%; transform: translateX(-50%); z-index: 1; border-radius: 999px; padding: 6px 11px; background: var(--navy-950); color: #fff; font-size: 11px; font-weight: 900; white-space: nowrap; box-shadow: 0 10px 24px rgba(15,41,66,.18); }
.compare-metric { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 10px 0; }
.compare-metric strong { font-family: Sora, system-ui, sans-serif; font-size: 28px; }
.metric-side-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; font-size: 13px; }
.metric-side-row span { color: var(--ink-500); }
.metric-side-row strong { font-family: Sora, system-ui, sans-serif; font-size: 14px; font-weight: 800; }
.left-accent { color: var(--blue-600); }
.right-accent { color: var(--rust-600); }
.metric-row, .category-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.dual-bars { display: grid; gap: 5px; margin-top: 10px; height: 18px; }
.dual-bars i, .bar-row b { display: block; height: 100%; border-radius: 999px; }
.left-bar { background: var(--blue-600); height: 7px; }
.right-bar { background: var(--rust-600); height: 7px; }
.chip { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 900; white-space: nowrap; }
.tone-left { color: #1d4ed8; background: var(--blue-100); }
.tone-right { color: #9a3412; background: var(--rust-100); }
.tone-good { color: #166534; background: var(--green-100); }
.tone-watch { color: #92400e; background: var(--amber-100); }
.tone-serious { color: #991b1b; background: var(--red-100); }
.tone-neutral { color: #334155; background: var(--line-soft); }
.section-kicker-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.section-kicker-row p { margin: 2px 0 0; }
.release-list h3 { font-size: 14px; }
.release-list.left h3 { color: var(--blue-600); }
.release-list.right h3 { color: var(--rust-600); }
.release-facility { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.release-facility-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.release-facility-head strong { font-family: Sora, system-ui, sans-serif; font-size: 13px; color: var(--navy-950); }
.map-preview { min-height: 170px; }
.compare-map { height: 320px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--line-soft); }
.compare-map .leaflet-container { height: 100%; width: 100%; }
.compare-map img { max-width: none; }
.compare-map-empty { display: flex; align-items: center; justify-content: center; color: var(--ink-500); font-size: 13px; }
.map-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--ink-500); }
.crime-key { color: #dc2626; }
.environment-key { color: #16a34a; }
.traffic-label { margin-top: 18px; }
.stat-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; text-align: center; }
.stat-strip h3 { grid-column: 1 / -1; }
.stat-strip.left h3, .stat-strip.left strong { color: var(--blue-600); }
.stat-strip.right h3, .stat-strip.right strong { color: var(--rust-600); }
.stat-strip strong { display: block; font-family: Sora, system-ui, sans-serif; font-size: 26px; color: var(--navy-950); }
.stat-strip span { color: var(--ink-500); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.caveat, .legal { color: var(--ink-500); font-size: 12px; line-height: 1.6; }
.stacked-bar { display: flex; flex-flow: row nowrap; align-items: stretch; width: 100%; height: 26px; border-radius: 8px; overflow: hidden; background: var(--line-soft); margin: 12px 0 8px; }
.stacked-bar > i { display: block; height: auto; min-width: 0; flex-shrink: 0; border-radius: 0; }
.stacked-bar.mostly-minimal { background: var(--green-600); }
.stacked-bar .danger, .flood-legend .danger { background: var(--red-600); }
.stacked-bar .warn, .flood-legend .warn { background: var(--amber-600); }
.stacked-bar .good, .flood-legend .good { background: var(--green-600); }
.stacked-bar .levee, .flood-legend .levee { background: var(--blue-600); }
.section-break { margin: 22px 0 0; }
.health-card .facility-total, .nearest-hospital, .readout { border-radius: 12px; padding: 12px 14px; }
.facility-total.left, .nearest-hospital.left, .readout.left, .soft-stat.left { background: var(--blue-100); }
.facility-total.right, .nearest-hospital.right, .readout.right, .soft-stat.right { background: var(--rust-100); }
.facility-total strong { display: block; font-family: Sora, system-ui, sans-serif; font-size: 26px; line-height: 1; }
.facility-total.left strong, .category-line strong.left, h3.left { color: var(--blue-600); }
.facility-total.right strong, .category-line strong.right, h3.right { color: var(--rust-600); }
.facility-total span, .nearest-hospital span { display: block; margin-top: 4px; color: var(--ink-500); font-size: 12px; }
.nearest-hospital strong { display: block; font-size: 12px; }
.nearest-hospital.left strong { color: var(--blue-600); }
.nearest-hospital.right strong { color: var(--rust-600); }
.facility-types { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.air-row { margin-top: 12px; }
.air-row p { margin: 2px 0 0; }
.flood-legend { justify-content: space-between; }
.flood-legend i { border-radius: 2px; width: 9px; height: 9px; }
.readout { margin: 12px 0; }
.readout p { margin: 4px 0 0; font-size: 13px; }
.category-scale { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 12px 0; }
.category-scale span { height: 30px; border-radius: 8px; background: var(--line-soft); color: var(--ink-500); display: flex; align-items: center; justify-content: center; font-family: Sora, system-ui, sans-serif; font-weight: 700; font-size: 12px; border: 1px solid var(--line); }
.category-scale .active { color: #fff; }
.category-scale .band-0, .category-scale .band-1 { background: var(--green-600); border-color: var(--green-600); }
.category-scale .band-2 { background: var(--amber-600); border-color: var(--amber-600); }
.category-scale .band-3, .category-scale .band-4, .category-scale .band-5 { background: var(--red-600); border-color: var(--red-600); }
.seismic-metric { margin-top: 14px; }
.seismic-metric .category-line { border-bottom: none; padding-bottom: 0; }
.seismic-track { position: relative; padding-top: 22px; }
.seismic-track .single-bar { margin-top: 0; height: 9px; }
.seismic-pill { position: absolute; top: 0; color: #fff; border-radius: 999px; padding: 2px 7px; font-family: Sora, system-ui, sans-serif; font-size: 10.5px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.seismic-scale { display: flex; justify-content: space-between; margin-top: 3px; color: var(--ink-400); font-size: 10.5px; }
.walk-row .category-line { border-bottom: none; padding-bottom: 2px; }
.walk-row { margin-top: 10px; }
.climate-card h3 { margin-bottom: 4px; }
.big-number { color: var(--navy-950); font-size: 44px; font-weight: 800; line-height: 1; }
.soft-stat { border-radius: 10px; padding: 12px 14px; background: var(--blue-100); }
.climate-card.right .soft-stat { background: var(--rust-100); }
.soft-stat span { display: block; color: var(--ink-500); font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.soft-stat strong { display: block; margin-top: 3px; color: var(--navy-950); font-family: Sora, system-ui, sans-serif; font-size: 22px; line-height: 1; }
.mini-chart { margin-top: 14px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.chart-head strong { font-size: 12px; color: var(--ink-700); }
.chart-head span { font-size: 11px; color: var(--ink-400); }
.chart-legend { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; color: var(--ink-500); font-size: 11px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend i { width: 10px; height: 10px; border-radius: 999px; display: inline-block; }
.commute-card .muted { margin: 8px 0 10px; }
.commute-stack { display: flex; height: 28px; border-radius: 8px; overflow: hidden; background: var(--line-soft); }
.commute-stack i { display: block; height: 100%; }
.commute-legend { justify-content: flex-start; margin-top: 10px; }
.commute-legend i { border-radius: 2px; width: 9px; height: 9px; }
.bar-row { display: grid; grid-template-columns: 46px 1fr 70px; gap: 10px; align-items: center; font-size: 12px; color: var(--ink-500); margin-top: 10px; }
.bar-row i { display: block; height: 9px; background: var(--line-soft); border-radius: 999px; overflow: hidden; }
.bar-row b { background: var(--gold-500); }
.school-card h3 { margin-bottom: 2px; }
.district-layer + .district-layer { margin-top: 8px; }
.district-layer .school-list-title { margin-top: 8px; }
.school-card .muted { margin-top: 0; }
.overlap-bar { display: flex; flex-flow: row nowrap; align-items: stretch; width: 100%; height: 22px; border-radius: 8px; overflow: hidden; background: var(--line-soft); margin: 12px 0 8px; }
.overlap-bar > i { display: block; height: 100%; min-width: 0; border-radius: 0; }
.overlap-bar.left > i.primary { background: var(--blue-600); }
.overlap-bar.right > i.primary { background: var(--rust-600); }
.overlap-bar.left > i.rest { background: #D9E7F5; }
.overlap-bar.right > i.rest { background: #F5DFCB; }
.district-line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 4px 0; font-size: 13px; color: var(--ink-700); }
.district-line span:first-child { min-width: 0; }
.district-line span:last-child, .school-level { flex: 0 0 auto; color: var(--ink-400); font-weight: 600; }
.school-list-title { margin-top: 14px; margin-bottom: 6px; color: var(--ink-500); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.forecast-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; margin-top: 12px; }
.forecast-day { text-align: center; padding: 10px 4px; border-radius: 10px; border: 1px solid transparent; background: transparent; }
.forecast-day.sun { background: #FBF2DF; border-color: var(--gold-500); }
.forecast-day.rain { background: var(--blue-100); }
.viewing-note { margin-top: 12px; }
.vantage-card { border-left-width: 3px; border-left-style: solid; }
.vantage-card.left { border-left-color: var(--blue-600); }
.vantage-card.right { border-left-color: var(--rust-600); }
.vantage-card .eyebrow.left { color: var(--blue-600); }
.vantage-card .eyebrow.right { color: var(--rust-600); }
.vantage-card p { margin: 8px 0 0; font-size: 13.5px; }
.forecast-day span { display: block; font-size: 11px; color: var(--ink-500); }
.forecast-day strong { display: block; font-size: 12px; margin-top: 4px; color: var(--navy-950); }
.forecast-day small { display: block; font-size: 10px; color: var(--ink-400); margin-top: 2px; }
.vantage-box { margin-top: 14px; padding: 14px; border-left: 3px solid var(--blue-600); border-radius: 10px; background: #fff; border-top: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.live-card:nth-child(2) .vantage-box { border-left-color: var(--rust-600); }
.vantage-box p { margin: 8px 0 0; font-size: 13.5px; }
.accordion-list { display: grid; gap: 10px; margin-top: 16px; }
.accordion summary { display: block; font-family: Sora, system-ui, sans-serif; font-weight: 800; cursor: pointer; color: var(--navy-950); }
.narrative-title { display: block; }
.narrative-teaser { display: block; margin-top: 3px; max-width: 860px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: Manrope, system-ui, sans-serif; font-weight: 500; font-size: 12.5px; color: var(--ink-500); }
details[open] > summary .narrative-teaser { display: none; }
.narrative-body { display: grid; gap: 16px; margin-top: 14px; }
.narrative-section h4 { margin: 0 0 6px; font-family: Sora, system-ui, sans-serif; font-size: 14px; color: var(--navy-950); }
.narrative-section p { margin: 0; font-size: 13.5px; line-height: 1.7; }
.narrative-section p + p { margin-top: 8px; }
.closing-card { margin-top: 16px; background: var(--navy-950); }
.closing-card p { margin: 8px 0 0; font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.85); }
.legal { background: var(--navy-950); color: rgba(255,255,255,.68); border-radius: 18px; padding: 18px 22px; }
.locked-preview { margin-top: 16px; display: grid; grid-template-columns: minmax(260px,.9fr) minmax(0,1.4fr); gap: 18px; align-items: center; background: linear-gradient(135deg,#fff,#f8fbff); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: 0 10px 30px rgba(15,23,42,.06); }
.locked-preview h3 { font-size: 22px; margin-top: 14px; }
.locked-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.locked-card { border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 14px; min-height: 78px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.locked-card span { width: 42px; height: 8px; border-radius: 999px; background: linear-gradient(90deg,var(--blue-600),var(--gold-500)); opacity: .85; }
.locked-card strong { color: var(--navy-950); font-size: 14px; }
.full-report-upsell { margin-top: 16px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(135deg,#fff,#fff8ea); padding: 28px; box-shadow: 0 14px 36px rgba(15,41,66,.08); }
.full-report-upsell h3 { margin: 8px 0 12px; font-size: clamp(24px,3vw,36px); line-height: 1.12; letter-spacing: -0.03em; }
.full-report-upsell p { max-width: 940px; margin: 0; color: var(--ink-700); font-size: 15px; line-height: 1.7; }
.full-report-upsell .upsell-price { margin-top: 16px; font-family: Sora, system-ui, sans-serif; font-weight: 800; color: var(--navy-950); }
.full-report-upsell .upsell-sale { margin-top: 6px; color: var(--rust-600); font-weight: 800; }
.full-report-upsell s { color: var(--ink-500); }
.modal-backdrop { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 22px; background: rgba(15,41,66,.54); backdrop-filter: blur(5px); }
.upgrade-modal { position: relative; width: min(560px, 100%); padding: 28px; box-shadow: 0 24px 80px rgba(0,0,0,.28); }
.upgrade-modal h2 { margin-top: 8px; font-size: clamp(24px,4vw,34px); line-height: 1.12; }
.upgrade-modal p { margin: 12px 0 0; }
.upgrade-price { font-family: Sora, system-ui, sans-serif; font-size: 20px; font-weight: 900; color: var(--rust-600); }
.upgrade-price s { color: var(--ink-500); font-weight: 700; margin-right: 6px; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-500); font-size: 22px; line-height: 1; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.app-download-footer { max-width: 1280px; margin: 20px auto 18px; padding: 34px 38px; border-radius: 24px; background: radial-gradient(circle at 80% 20%, rgba(44,108,168,.28), transparent 30%), linear-gradient(135deg, #07111f, var(--navy-950)); color: #fff; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(240px,.65fr); gap: 28px; align-items: center; overflow: hidden; }
.app-download-footer h2 { color: #fff; font-size: clamp(30px, 4vw, 52px); line-height: 1.03; margin: 8px 0 12px; letter-spacing: -0.04em; }
.app-download-footer p { color: rgba(255,255,255,.82); max-width: 720px; margin: 0; }
.download-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.store-badge { display: inline-flex; align-items: center; justify-content: center; height: 48px; border-radius: 10px; overflow: hidden; box-shadow: 0 16px 32px rgba(0,0,0,.24); }
.store-badge img { display: block; height: 48px; width: auto; }
.store-badge.google img { height: 70px; margin: -11px -10px; }
.download-note { margin-top: 16px !important; font-size: 12.5px; color: rgba(255,255,255,.72) !important; }
.phone-preview { justify-self: center; max-height: 360px; align-self: end; filter: drop-shadow(0 24px 60px rgba(0,0,0,.48)); }
.phone-preview img { display: block; max-height: 390px; max-width: 100%; object-fit: contain; }

@media (max-width: 900px) {
  .auth-shell, .report-form, .locked-preview { grid-template-columns: 1fr; }
  .command-center { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-grid, .history { grid-column: auto; grid-row: auto; }
  .zip-finder-form { grid-template-columns: 1fr 84px; }
  .zip-finder-form .primary { grid-column: 1 / -1; }
  .grid.four, .grid.three, .grid.two { grid-template-columns: 1fr; }
  .toolbar-refresh { display: none; }
  .warning-pill { margin-left: 0; }
  .app-download-footer { grid-template-columns: 1fr; margin-left: 16px; margin-right: 16px; }
  .phone-preview { display: none; }
}
