:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --accent: #ea580c;
  --accent-dark: #c2410c;
  --accent-soft: #fff7ed;
  --soft: #f1f5f9;
  --good: #166534;
  --good-bg: #ecfdf5;
  --warn: #92400e;
  --warn-bg: #fffbeb;
  --bad: #991b1b;
  --bad-bg: #fef2f2;
  --info: #1d4ed8;
  --info-bg: #eff6ff;
  --shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  --radius: 24px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}
.container { width: min(1180px, calc(100vw - 32px)); margin: 0 auto; }
.hero { background: #fff; border-bottom: 1px solid var(--border); padding: 56px 0 40px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; background: var(--soft); color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; font-size: 12px; font-weight: 600;
}
h1 { margin: 18px 0 10px; max-width: 780px; font-size: clamp(34px, 5vw, 56px); line-height: 1.04; letter-spacing: -0.03em; }
.subheadline { margin: 0 0 26px; font-size: 20px; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-card { padding: 24px; }
.sentence-wrap { background: var(--soft); border: 1px solid var(--border); border-radius: 24px; padding: 18px; overflow: visible; }
.sentence-label { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .04em; }
.sentence {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: clamp(18px, 1.8vw, 28px);
  line-height: 1.35;
}
.sentence > span {
  flex: 0 0 auto;
  white-space: nowrap;
}
.inline-select {
  appearance: auto;
  -webkit-appearance: menulist;
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 18px;
  height: 56px;
  min-width: 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}
.select-intent { width: 150px; }
.select-property { width: 150px; }
.select-subtype { width: 220px; }
.select-neighbourhood { width: min(280px, 100%); }
.helper-row { margin-top: 12px; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.helper { color: var(--muted); font-size: 13px; }
.dev-tools { color: var(--muted); font-size: 13px; }
.dev-tools summary { cursor: pointer; font-weight: 600; }
.compact-field { margin-top: 10px; min-width: 250px; }
.toolbar { margin-top: 18px; display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; }
.toolbar.single-action { grid-template-columns: 1fr; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; font-weight: 600; }
.field input { width: 100%; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--border); background: white; font-size: 14px; }
button {
  border: 0; border-radius: 18px; background: var(--accent); color: white; padding: 14px 18px;
  font-size: 14px; font-weight: 700; cursor: pointer; min-height: 48px;
  box-shadow: 0 8px 18px rgba(234, 88, 12, 0.18);
}
button:hover { background: var(--accent-dark); }
button:disabled { opacity: 0.6; cursor: not-allowed; }
.button-loading {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.button-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  animation: spin 800ms linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.secondary-action {
  margin-top: 18px;
  background: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
  box-shadow: 0 8px 18px rgba(234, 88, 12, 0.18);
}
.wide-action {
  width: 100%;
  justify-content: center;
}
.icon-button {
  width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
  font-size: 22px;
  line-height: 1;
}
.status-banner {
  margin-top: 14px; padding: 12px 14px; border-radius: 16px; border: 1px solid transparent; font-size: 14px;
}
.status-banner.info { background: var(--info-bg); color: var(--info); border-color: #bfdbfe; }
.status-banner.error { background: var(--bad-bg); color: var(--bad); border-color: #fecaca; }
main { padding: 28px 0 60px; }
.site-footer {
  border-top: 1px solid var(--border);
  background: #ffffff;
  color: var(--muted);
  padding: 20px 0;
  font-size: 14px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.site-footer a,
.back-link {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}
.site-footer a:hover,
.back-link:hover {
  text-decoration: underline;
}
.legal-page {
  background: #ffffff;
  min-height: 100vh;
}
.legal-content {
  max-width: 880px;
  padding-top: 44px;
  padding-bottom: 72px;
}
.legal-content h1 {
  max-width: none;
}
.legal-content section {
  border-top: 1px solid var(--border);
  padding: 22px 0;
}
.legal-content h2 {
  margin: 0 0 8px;
  font-size: 22px;
}
.legal-content p {
  margin: 0;
  color: #334155;
  line-height: 1.75;
}
.empty {
  min-height: 220px; display: grid; place-items: center; text-align: center; color: var(--muted);
  border: 1px dashed var(--border); background: var(--soft); border-radius: var(--radius);
}
.empty-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.page-stack { gap: 18px; }
.grid-2 { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.compact-metrics-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-2-equal { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.section-card { padding: 20px; }
.compact-card { padding: 16px; box-shadow: none; }
.kicker { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.section-title { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.mini-title { font-weight: 700; margin-bottom: 10px; }
.big-number { font-size: clamp(34px, 3.8vw, 50px); font-weight: 800; letter-spacing: -0.03em; margin: 8px 0 0; }
.metric { font-size: 32px; font-weight: 800; }
.comparison-text { font-size: 20px; font-weight: 700; margin-top: 8px; }
.compact-metrics-grid .metric { font-size: 28px; }
.badges, .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.badges { margin-top: 14px; }
.badge, .chip {
  padding: 7px 10px; border-radius: 999px; background: var(--soft); border: 1px solid var(--border);
  font-size: 12px; font-weight: 600; color: #334155;
}
.stale-note { margin-top: 10px; font-size: 14px; color: var(--warn); }
.kv-list, .list-block, .stack, .social-progress { display: grid; gap: 10px; }
.kv {
  display: flex; justify-content: space-between; gap: 20px; padding: 12px 14px;
  background: var(--soft); border-radius: 16px; font-size: 14px;
}
.kv strong { font-size: 15px; }
.list-row { display: flex; justify-content: space-between; gap: 16px; background: var(--soft); border-radius: 16px; padding: 11px 14px; font-size: 14px; }
.chart-wrap { height: 330px; margin-top: 8px; }
.progress-head { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.progress-bar { width: 100%; height: 12px; border-radius: 999px; background: var(--soft); overflow: hidden; border: 1px solid var(--border); }
.progress-bar > div { height: 100%; background: var(--accent); width: 0; transition: width 0.3s ease; }
.counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.count-box { padding: 13px 14px; border-radius: 16px; background: var(--soft); font-size: 14px; }
.quote { padding: 14px; border-radius: 18px; background: var(--soft); font-size: 14px; line-height: 1.6; }
.quote-meta { margin-top: 8px; font-size: 12px; color: var(--muted); }
.theme-box { background: var(--soft); border-radius: 16px; padding: 12px 14px; font-size: 14px; }
.muted { color: var(--muted); }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 8px; }
.compact-head { margin-bottom: 12px; }
.mini-status {
  padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--border);
  background: var(--soft); color: var(--muted); white-space: nowrap;
}
.mini-status.success { background: var(--good-bg); color: var(--good); border-color: #bbf7d0; }
.mini-status.warning { background: var(--warn-bg); color: var(--warn); border-color: #fde68a; }
.mini-status.error { background: var(--bad-bg); color: var(--bad); border-color: #fecaca; }
.mini-status.info { background: var(--info-bg); color: var(--info); border-color: #bfdbfe; }
.mini-status.neutral { background: var(--soft); color: var(--muted); border-color: var(--border); }
.inline-alert {
  padding: 10px 12px; border-radius: 14px; background: var(--warn-bg); color: var(--warn);
  border: 1px solid #fde68a; font-size: 13px; margin-bottom: 12px;
}
.glance-card { background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); }
.glance-summary { font-size: 18px; line-height: 1.65; color: #1e293b; max-width: 900px; white-space: pre-line; }
.metric-card { min-height: 130px; }
.estimate-hero-card { min-height: 160px; }
.profile-grid, .social-grid, .demographic-grid, .theme-summary-grid { align-items: start; }
@media (max-width: 960px) {
  .grid-2, .grid-3, .grid-4, .grid-2-equal, .counts, .social-grid, .demographic-grid, .theme-summary-grid, .profile-grid { grid-template-columns: 1fr; }
  .helper-row { flex-direction: column; }
  .sentence { font-size: 18px; gap: 10px; }
  .inline-select, .select-intent, .select-property, .select-subtype, .select-neighbourhood { width: 100%; }
  .sentence > span { width: 100%; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .price-map { height: 320px; }
}


.list-subtitle {
  margin: 4px 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}
.share-row {
  display: grid;
  gap: 6px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.share-row:first-of-type { border-top: 0; }
.share-row-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.share-label {
  color: var(--text);
  font-weight: 600;
}
.share-meta {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.share-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--soft);
  overflow: hidden;
}
.share-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #cbd5e1 0%, #94a3b8 100%);
}
@media (max-width: 640px) {
  .share-row-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}


.market-range-grid, #marketRangeList, #populationList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.stat-tile {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border);
  min-height: 96px;
  display: grid;
  gap: 6px;
  align-content: start;
}
.stat-kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
.stat-value {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stat-meta {
  font-size: 12px;
  color: var(--muted);
}
.glance-summary {
  font-size: 17px;
  line-height: 1.75;
  white-space: pre-line;
}
.inline-alert {
  background: #fff7ed;
  border-color: #fed7aa;
}
.social-progress {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.count-box {
  border: 1px solid var(--border);
  background: #fff;
}
.metric-card {
  min-height: 118px;
}
.property-analysis-card {
  border-color: #cbd5e1;
  margin-top: 4px;
}
.property-analysis-card.analysis-loaded {
  animation: analysisLoaded 700ms ease both;
}
@keyframes analysisLoaded {
  0% {
    opacity: 0;
    transform: translateY(10px);
    box-shadow: 0 0 0 rgba(234, 88, 12, 0);
  }
  45% {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 0 0 5px rgba(234, 88, 12, 0.16);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    box-shadow: var(--shadow);
  }
}
.property-analysis-summary {
  font-size: 17px;
  line-height: 1.6;
  color: #1e293b;
  margin-bottom: 14px;
}
.property-value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.property-value-grid > div {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
}
.value-meter {
  position: relative;
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding-top: 22px;
}
.value-meter-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  height: 18px;
  overflow: visible;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.value-meter-zone:first-child { border-radius: 999px 0 0 999px; }
.value-meter-zone:last-of-type { border-radius: 0 999px 999px 0; }
.value-meter-zone.strong { background: #16a34a; }
.value-meter-zone.good { background: #86efac; }
.value-meter-zone.neutral { background: #e2e8f0; }
.value-meter-zone.pricey { background: #facc15; }
.value-meter-zone.expensive { background: #ef4444; }
.value-meter-marker {
  position: absolute;
  top: -8px;
  width: 6px;
  height: 34px;
  border-radius: 999px;
  background: #0f172a;
  box-shadow: 0 0 0 4px #ffffff, 0 4px 12px rgba(15, 23, 42, 0.28);
  transform: translateX(-50%);
  z-index: 2;
}
.value-meter-marker-label {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  z-index: 3;
}
.value-meter-marker-label::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #0f172a;
}
.value-meter-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.property-analysis-note {
  margin-top: 12px;
  font-size: 13px;
}
.property-comparables {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.property-comparable-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
  font-size: 13px;
}
.property-comparable-row strong {
  display: block;
  color: #0f172a;
}
.property-comparable-row span {
  color: #60718b;
}
.analysis-dialog {
  width: min(640px, calc(100vw - 32px));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
}
.analysis-dialog::backdrop {
  background: rgba(15, 23, 42, 0.36);
}
.analysis-dialog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.analysis-dialog label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.analysis-dialog input,
.analysis-dialog select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  font-size: 15px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}
.paywall-dialog {
  width: min(700px, calc(100vw - 32px));
}
.paywall-copy {
  color: #334155;
  line-height: 1.6;
  margin-bottom: 14px;
}
.paywall-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.paywall-benefits > div {
  min-height: 72px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
  color: #0f172a;
  font-weight: 800;
  line-height: 1.35;
}
.promo-code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px;
}
.promo-code-row button {
  min-height: 46px;
}
.quote, .theme-box {
  border: 1px solid var(--border);
}
@media (max-width: 960px) {
  .market-range-grid, #marketRangeList, #populationList { grid-template-columns: 1fr; }
  .property-value-grid, .analysis-dialog-grid { grid-template-columns: 1fr; }
  .paywall-benefits, .promo-code-row { grid-template-columns: 1fr; }
}

.loading-banner {
  display: grid;
  gap: 14px;
}
.loading-banner-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.loading-banner-headline {
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}
.loading-banner-detail {
  color: #1d4ed8;
  font-size: 13px;
  line-height: 1.5;
}
.loading-banner-percent {
  font-size: 20px;
  font-weight: 800;
  color: #1d4ed8;
  white-space: nowrap;
}
.loading-banner-metrics {
  display: grid;
  justify-items: end;
  gap: 2px;
  min-width: 180px;
  text-align: right;
}
.loading-banner-timer {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.global-progress {
  background: #dbeafe;
  border-color: #bfdbfe;
}
.loading-steps {
  display: grid;
  gap: 10px;
}
.loading-step {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.65);
  border: 1px solid #dbeafe;
}
.loading-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 5px;
  background: #cbd5e1;
}
.loading-step.loading .loading-step-dot { background: #2563eb; box-shadow: 0 0 0 4px rgba(37,99,235,0.12); }
.loading-step.success .loading-step-dot,
.loading-step.cached .loading-step-dot { background: #16a34a; }
.loading-step.warning .loading-step-dot { background: #d97706; }
.loading-step.error .loading-step-dot { background: #dc2626; }
.loading-step-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 2px;
}
.loading-step-status {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.loading-step-detail {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .loading-banner-top,
  .loading-step-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .loading-banner-metrics {
    justify-items: start;
    text-align: left;
  }
}

@media (min-width: 961px) {
  .sentence { align-items: center; }
}


.price-map { width: 100%; height: 420px; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: #f8fafc; }
.map-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.map-toggle { min-height: 40px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.map-toggle.active { background: var(--accent-dark); color: #fff; border-color: var(--accent-dark); }
.map-meta { margin-top: 12px; font-size: 13px; color: var(--muted); }
.chart-meta {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
  color: #60718b;
  font-size: 13px;
  line-height: 1.45;
}
.chart-meta.warning {
  padding: 10px 12px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  background: #fff7ed;
  color: #92400e;
}
.demographic-chart-wrap { height: 260px; }


.map-toggle-secondary {
  border-style: dashed;
}

.map-toggle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


.data-basis-card { background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); }
.data-basis-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.data-basis-item { padding: 14px 16px; border: 1px solid var(--border); border-radius: 18px; background: #fff; display: grid; gap: 6px; align-content: start; min-height: 88px; }
.data-basis-value { color: #1e293b; font-size: 14px; line-height: 1.45; font-weight: 600; }
@media (max-width: 960px) { .data-basis-grid { grid-template-columns: 1fr; } }

.report-overview-card {
  display: grid;
  gap: 24px;
  padding: 28px;
  border-color: #dbe3ee;
}
.report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.report-kpi {
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px 24px;
  border: 1px solid #dde6f1;
  border-radius: 22px;
  background: #ffffff;
}
.report-kpi-label {
  color: #60718b;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}
.report-kpi-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.report-kpi-value {
  color: #0f172a;
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0;
}
.report-kpi-meta {
  color: #60718b;
  font-size: 12px;
  line-height: 1.35;
}
.report-glance-panel {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}
.report-glance-panel .section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.05;
  max-width: 820px;
}
.report-glance-panel .glance-summary {
  max-width: none;
  font-size: 17px;
  line-height: 1.75;
  color: #1f2a3d;
}
.distribution-panel {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}
.distribution-head {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  align-items: center;
}
.info-button {
  width: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 999px;
  background: #eef2f7;
  color: #60718b;
  box-shadow: none;
  border: 1px solid #dbe3ee;
  font-weight: 900;
}
.info-button:hover { background: #e2e8f0; color: #0f172a; }
.histogram-chart-wrap {
  height: 320px;
  margin-top: 0;
}
.distribution-meta {
  color: #60718b;
  font-size: 13px;
  line-height: 1.45;
}
.rental-comparables {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.info-dialog {
  width: min(680px, calc(100vw - 32px));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 0;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
}
.info-dialog::backdrop {
  background: rgba(15, 23, 42, 0.36);
}
.info-dialog-inner {
  padding: 24px;
}
.info-dialog-copy {
  display: grid;
  gap: 12px;
  color: #334155;
  font-size: 16px;
  line-height: 1.65;
}
.info-dialog-copy p {
  margin: 0;
}
.fair-psf-visual {
  height: 300px;
  margin: 4px 0 18px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
}
.premium-cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
}
.premium-cta-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
}
.premium-cta-panel p {
  margin: 8px 0 0;
  color: #475569;
  line-height: 1.6;
}
.premium-cta-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.premium-cta-meta span {
  border: 1px solid #fed7aa;
  background: #ffffff;
  border-radius: 999px;
  padding: 6px 10px;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
}
.bottom-premium-cta {
  margin-top: 4px;
}
.report-trends-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: stretch;
}
.trend-chart-stack {
  display: grid;
  gap: 16px;
}
.report-trend-panel,
.estate-compare-panel {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #ffffff;
  padding: 18px;
  box-shadow: var(--shadow);
}
.report-chart-wrap {
  height: 260px;
}
.matrix-chart-wrap {
  height: 380px;
}
.matrix-panel-empty .matrix-chart-wrap {
  display: none;
}
.chart-panel-empty .report-chart-wrap {
  display: none;
}
.report-chart-wrap canvas,
.histogram-chart-wrap canvas,
.matrix-chart-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.estate-compare-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  max-height: 900px;
  position: sticky;
  top: 16px;
}
.estate-compare-limit {
  border: 1px solid #dbe3ee;
  border-radius: 999px;
  padding: 8px 10px;
  background: #f8fafc;
  color: #60718b;
  font-size: 12px;
  font-weight: 800;
}
.estate-compare-list {
  display: grid;
  gap: 8px;
  overflow: auto;
  max-height: 760px;
  padding-right: 4px;
}
.estate-option {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
}
.estate-option input {
  margin-top: 2px;
  accent-color: var(--accent);
}
.estate-option strong,
.estate-option small {
  display: block;
}
.estate-option strong {
  color: #0f172a;
  font-size: 13px;
}
.estate-option small {
  color: #60718b;
  font-size: 12px;
  margin-top: 2px;
}
.section-divider {
  padding: 24px 0 4px;
}
@media (max-width: 960px) {
  .report-kpi-grid { grid-template-columns: 1fr; }
  .report-overview-card { padding: 20px; }
  .report-kpi { min-height: 112px; }
  .report-trends-section { grid-template-columns: 1fr; }
  .estate-compare-panel { position: static; max-height: none; }
  .estate-compare-list { max-height: 360px; }
  .premium-cta-panel { grid-template-columns: 1fr; }
  .premium-cta-panel button { width: 100%; }
}

.project-search-row {
  margin-top: 14px;
  display: grid;
  gap: 7px;
  max-width: 560px;
}
.project-search-row label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.project-search-row input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  font-size: 16px;
  padding: 13px 15px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}
.project-search-hint {
  color: var(--muted);
  font-size: 13px;
}

.glance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0 12px;
}
.mini-section-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.glance-list {
  margin: 0;
  padding-left: 18px;
  color: #334155;
  line-height: 1.55;
}
.glance-list:empty { display: none; }
.glance-confidence {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .glance-grid { grid-template-columns: 1fr; }
}

.summary-box {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.75);
  border-radius: 16px;
  padding: 14px 16px;
  color: #344054;
  line-height: 1.55;
}
.soft-alert {
  background: #f8fafc;
  border-color: #e4e7ec;
  color: #475467;
}
.compact-list .muted-line,
.compact-list div {
  font-size: 0.88rem;
  color: #475467;
  line-height: 1.45;
}

.glance-summary p {
  margin: 0 0 12px;
}
.glance-summary p:last-child {
  margin-bottom: 0;
}


.social-toolbar { display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.social-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.social-theme-chart-wrap { display: grid; gap: 10px; }
.social-theme-chart { height: 320px; min-height: 320px; }
.chart-caption { color:#667085; font-size:0.88rem; line-height:1.45; margin-top:4px; }
.quote-rationale { margin-top:8px; color:#475467; font-size:0.88rem; line-height:1.45; }
.social-debug-panel { border:1px solid #e4e7ec; background:#f8fafc; border-radius:8px; padding:12px; }
.debug-metrics { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap:8px; }
.debug-metric { background:#fff; border:1px solid #e4e7ec; border-radius:8px; padding:10px; display:grid; gap:2px; }
.debug-metric strong { font-size:1.05rem; color:#0f172a; }
.debug-metric span { color:#667085; font-size:0.82rem; }
.debug-section { margin-top:12px; display:grid; gap:8px; }
.debug-quote { background:#fff; }
@media (max-width: 720px) { .debug-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.secondary-btn { appearance:none; border:1px solid var(--accent); background:var(--accent); color:#fff; border-radius:10px; padding:8px 12px; font:inherit; font-weight:600; cursor:pointer; }
.secondary-btn:hover { background:var(--accent-dark); }
