:root {
  --bg: #f8f7f4;
  --panel: #ffffff;
  --ink: #1f2328;
  --muted: #6b7280;
  --line: #e8e2d9;
  --soft: #f4f1eb;
  --brand: #ff385c;
  --brand-dark: #d7254a;
  --teal: #087c89;
  --green: #237a57;
  --amber: #b86b14;
  --blue: #2f5f8f;
  --surface-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 12px 32px rgba(15, 23, 42, 0.08);
  --elevated-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
  --shadow: var(--surface-shadow);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.topbar {
  position: sticky;
  top: 0;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 18px 10px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(232, 226, 217, 0.78);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65), 0 10px 28px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 1200;
  overflow-x: auto;
  white-space: nowrap;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  font-weight: 500;
  color: var(--ink);
  font-size: 14px;
}

.brand span {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.brand img {
  flex: 0 0 auto;
  width: auto;
  height: 36px;
  max-width: 118px;
  border-radius: 0;
  object-fit: contain;
}

.mode-switch {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

.mode-switch a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #454b51;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}

.mode-switch a.active {
  background: #fff;
  color: var(--brand-dark);
  border-color: rgba(215, 37, 74, 0.14);
  box-shadow: 0 4px 16px rgba(215, 37, 74, 0.08);
}

.top-status {
  flex: 1 1 auto;
  min-width: 94px;
  max-width: 136px;
  text-align: right;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.15;
  overflow: hidden;
  white-space: normal;
}

.city-select-label {
  flex: 0 0 auto;
}

.city-select-label select {
  width: auto;
  min-width: 86px;
  min-height: 32px;
  padding: 0 26px 0 10px;
  border-radius: 999px;
  color: #4e555b;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(232, 226, 217, 0.96);
}

.proof-banner {
  display: none;
  padding: 54px 22px 56px;
  border-bottom: 1px solid rgba(232, 226, 217, 0.76);
  background: #fff;
}

.proof-banner.active {
  display: block;
}

.landing-proof-inner {
  width: min(1040px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.landing-proof-lead,
.landing-proof-free {
  margin: 0;
  color: #202124;
  letter-spacing: 0;
}

.landing-proof-lead {
  max-width: 790px;
  color: var(--brand-dark);
  font-size: clamp(34px, 5.2vw, 62px);
  line-height: 0.98;
  font-weight: 500;
}

.landing-proof-free {
  margin-top: -4px;
  color: #2d3339;
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.2;
  font-weight: 400;
}

.landing-seo-copy {
  max-width: 760px;
  margin: 0;
  color: #565f68;
  font-size: 16px;
  line-height: 1.55;
}

.landing-proof-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.landing-proof-list li {
  position: relative;
  display: grid;
  gap: 3px;
  min-height: 74px;
  padding: 13px 14px 13px 34px;
  border: 1px solid rgba(232, 226, 217, 0.9);
  border-radius: var(--radius);
  background: #fbfaf7;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  color: #394045;
  font-size: 14px;
  line-height: 1.35;
}

.landing-proof-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 17px;
  width: 9px;
  height: 9px;
  border-radius: 8px;
  background: var(--brand-dark);
}

.landing-proof-list strong {
  color: var(--ink);
  font-weight: 500;
}

.landing-proof-list li:nth-child(2)::before {
  background: var(--teal);
}

.landing-proof-list li:nth-child(3)::before {
  background: var(--green);
}

.landing-proof-list li:nth-child(4)::before {
  background: var(--blue);
}

.landing-proof-list li:nth-child(5)::before {
  background: var(--amber);
}

.landing-proof-cta {
  width: fit-content;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 0 22px;
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  background: #111315;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
}

.landing-proof-cta:hover {
  background: var(--brand-dark);
}

.seo-noscript {
  max-width: 820px;
  margin: 24px auto;
  padding: 0 18px;
  color: var(--ink);
}

.seo-noscript h1 {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-size: 28px;
  line-height: 1.15;
  font-weight: 500;
}

.seo-noscript p {
  max-width: 720px;
  margin: 0 0 8px;
  color: #4a5055;
  font-size: 14px;
  line-height: 1.45;
}

.workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(390px, 52vh) auto auto;
  grid-template-areas:
    "intro"
    "map"
    "helper"
    "panel";
  background: var(--bg);
}

.workspace.browse-mode {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(420px, 54vh) auto auto;
  grid-template-areas:
    "intro"
    "agent"
    "map"
    "helper"
    "panel";
}

.workspace.address-mode,
.workspace.info-mode {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  grid-template-areas:
    "intro"
    "panel";
}

.workspace.landing-mode {
  display: none;
}

.page-intro {
  grid-area: intro;
  padding: 30px 24px 10px;
  background: var(--bg);
}

.page-intro[hidden] {
  display: none;
}

.page-intro-inner {
  width: min(980px, 100%);
  margin: 0 auto;
}

.page-intro .intro-copy {
  max-width: 760px;
}

.browse-agent-top {
  grid-area: agent;
  display: none;
  padding: 10px 24px 16px;
  background: var(--bg);
}

.workspace.browse-mode .browse-agent-top {
  display: block;
}

.browse-agent-top .listing-agent-panel {
  width: min(980px, 100%);
  margin: 0 auto;
}

.workspace.address-mode .page-intro-inner,
.workspace.info-mode .page-intro-inner {
  width: min(840px, 100%);
}

.workspace.address-mode .side-panel {
  overflow: visible;
  border-right: 0;
}

.workspace.address-mode .mode-panel {
  max-width: 840px;
  margin: 0 auto;
}

.workspace.address-mode .map-stage,
.workspace.info-mode .map-stage {
  display: none;
}

.workspace.address-mode .map-helper,
.workspace.info-mode .map-helper,
.workspace.landing-mode .map-helper,
.workspace.report-mode .map-helper {
  display: none;
}

.side-panel {
  grid-area: panel;
  min-height: 0;
  overflow: visible;
  border-top: 1px solid rgba(232, 226, 217, 0.84);
  background: var(--bg);
}

.mode-panel {
  display: none;
  padding: 24px;
}

.mode-panel.active {
  display: block;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: #17191c;
  font-size: 25px;
  line-height: 1.18;
  letter-spacing: 0;
  font-weight: 500;
}

.accent-title {
  color: var(--brand-dark);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  font-weight: 500;
}

h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
  font-weight: 500;
}

h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.28;
  letter-spacing: 0;
  font-weight: 500;
}

.intro-copy {
  max-width: 680px;
  margin: 12px 0 0;
  color: #5a636d;
  font-size: 13px;
  line-height: 1.55;
}

.intro-copy p {
  margin: 0;
}

.intro-copy p + p {
  margin-top: 7px;
}

.search-form {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.search-form[hidden] {
  display: none !important;
}

.address-history-explorer {
  display: grid;
  gap: 10px;
  margin: 6px 0 20px;
}

.address-history-explorer[hidden] {
  display: none !important;
}

.address-history-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.address-history-toolbar h2 {
  margin: 0;
  color: var(--brand);
  font-size: 1.05rem;
  font-weight: 600;
}

.address-history-toolbar label {
  display: block;
}

.address-history-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  border: 1px solid rgba(232, 226, 217, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  padding: 10px;
}

.address-history-filters label {
  display: grid;
  gap: 5px;
}

.address-history-filters span {
  color: #5d6267;
  font-size: 11px;
}

.address-history-filters select {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #ded6cc;
  border-radius: 7px;
  background: #fff;
  color: #2a2f33;
  font-size: 0.86rem;
}

.address-history-map-shell {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid rgba(232, 226, 217, 0.92);
  border-radius: 8px;
  background: #eef0f1;
  box-shadow: var(--surface-shadow);
}

.address-history-map {
  position: absolute;
  inset: 0;
}

.address-history-loading {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 520;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  padding: 8px 12px;
  color: #32373b;
  font-size: 0.86rem;
}

.address-history-legend {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 530;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 9px;
  max-width: min(360px, calc(100% - 24px));
  border: 1px solid rgba(133, 91, 45, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  padding: 8px 10px;
  color: #3d332a;
  font-size: 11px;
  line-height: 1.2;
}

.address-history-legend strong {
  flex: 0 0 100%;
  color: #2b2621;
  font-size: 11px;
  font-weight: 600;
}

.address-history-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.address-history-legend i {
  width: 11px;
  height: 11px;
  border: 1px solid #7a2e04;
  border-radius: 999px;
  background: var(--dot-color);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.address-history-popup {
  position: absolute;
  right: 12px;
  top: 8px;
  z-index: 540;
  width: min(320px, calc(100% - 24px));
  max-height: calc(100% - 16px);
  overflow: auto;
  border: 1px solid rgba(125, 131, 137, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 48px rgba(24, 27, 30, 0.18);
  padding: 10px;
}

.address-history-popup[hidden] {
  display: none !important;
}

.address-history-popup article {
  display: grid;
  gap: 8px;
}

.address-history-popup-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.address-history-popup h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.address-history-popup h4 {
  margin: 2px 0 0;
  color: #34393e;
  font-size: 0.78rem;
  font-weight: 600;
}

.address-history-popup p {
  margin: 0;
  color: #5d6267;
  font-size: 0.76rem;
}

.address-history-apartment-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.address-history-apartment-facts div {
  min-width: 0;
  border: 1px solid #ece8e1;
  border-radius: 6px;
  background: #fbfaf8;
  padding: 6px;
}

.address-history-apartment-facts span {
  display: block;
  color: #747a80;
  font-size: 9.5px;
}

.address-history-apartment-facts strong {
  display: block;
  margin-top: 2px;
  color: #262b2f;
  font-size: 0.74rem;
  font-weight: 600;
}

.address-history-apartment-select {
  display: grid;
  gap: 3px;
  min-width: 86px;
}

.address-history-apartment-select span {
  color: #5d6267;
  font-size: 10px;
}

.address-history-apartment-select select {
  min-height: 30px;
  border: 1px solid #ded6cc;
  border-radius: 6px;
  background: #fff;
  color: #252a2e;
  font-size: 0.75rem;
  padding: 4px 6px;
}

.address-history-loading-line {
  padding: 8px 10px;
  border: 1px solid #f1e2d0;
  border-radius: 6px;
  background: #fff8ef;
}

.address-history-graph {
  width: 100%;
  height: auto;
  border: 1px solid #ece8e1;
  border-radius: 6px;
  background: #fbfaf8;
}

.address-history-graph line {
  stroke: #c8c2b7;
  stroke-width: 1;
}

.address-history-graph polyline {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.address-history-graph circle {
  fill: #202124;
  stroke: #fff;
  stroke-width: 1.5;
}

.address-history-graph text {
  fill: #6e7479;
  font-size: 9px;
}

.address-history-graph .address-history-point-label {
  fill: #2e3337;
  font-size: 7.2px;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.88);
  stroke-width: 2px;
}

.address-history-graph .address-history-axis-label {
  fill: #596066;
  font-size: 7px;
}

.address-history-transaction-list {
  display: grid;
  gap: 4px;
  max-height: 190px;
  overflow: auto;
  padding-right: 2px;
}

.address-history-transaction-row {
  display: grid;
  gap: 5px;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid #f0ece5;
  color: #4f555a;
  font-size: 0.68rem;
}

.address-history-transaction-row.building {
  grid-template-columns: 60px 44px minmax(72px, 1fr) minmax(70px, 1fr);
}

.address-history-transaction-row.apartment {
  grid-template-columns: 62px minmax(78px, 1fr) minmax(74px, 1fr);
}

.address-history-transaction-row strong {
  color: #202124;
  font-weight: 600;
}

.address-history-valuate {
  width: 100%;
  min-height: 34px;
  border-radius: 7px;
  font-size: 0.82rem;
}

.address-history-empty {
  padding: 10px;
  border: 1px solid #ece8e1;
  border-radius: 6px;
  background: #fbfaf8;
}

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

label {
  color: #3d4348;
  font-size: 12px;
  font-weight: 500;
}

.search-form > label {
  font-size: 14.5px;
}

#addressForm {
  gap: 5px;
}

#addressForm > label {
  font-size: 12px;
}

#addressForm input {
  min-height: 22px;
  padding: 0 8px;
  font-size: 12px;
}

#addressForm button {
  min-height: 24px;
  padding: 0 10px;
  font-size: 12px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.address-submit-row button {
  width: 100%;
}

.address-structured-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.address-structured-inputs #addressStreet {
  grid-column: 1 / -1;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d8d2c8;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  padding: 0 12px;
}

input:focus,
select:focus {
  outline: 3px solid rgba(255, 56, 92, 0.14);
  border-color: var(--brand);
  background: #fff;
}

button,
.primary-action,
.secondary-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

button {
  background: #16191d;
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

button:hover {
  background: #050607;
  transform: translateY(-1px);
}

button:disabled,
.primary-action[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.primary-action {
  background: var(--brand);
  color: #fff;
}

.primary-action:hover {
  background: var(--brand-dark);
}

.secondary-action {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.filter-sliders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
  margin-bottom: 16px;
}

.filter-sliders[hidden] {
  display: none !important;
}

.listing-agent-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(232, 226, 217, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--surface-shadow);
}

.ai-agent-intro,
.address-agent-intro,
.address-agent-message {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.ai-agent-avatar {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  object-position: center 20%;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10);
}

.ai-agent-intro p,
.address-agent-intro h3,
.address-agent-message > p {
  margin: 0;
  color: #34393d;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.ai-agent-intro strong {
  color: var(--brand-dark);
  font-weight: 500;
}

.address-agent-message {
  align-items: start;
}

.human-input-shell {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
}

.human-input-shell::before {
  content: "";
  width: 48px;
  height: 48px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 50%;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23687076'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20%2021a8%208%200%200%200-16%200'/%3E%3Ccircle%20cx='12'%20cy='7'%20r='4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  pointer-events: none;
}

.human-input-shell > input,
.human-input-shell > select,
.human-input-shell > textarea {
  min-width: 0;
  width: 100%;
}

.address-input-widget .human-input-shell::before {
  align-self: center;
}

.listing-agent-form {
  display: grid;
  gap: 8px;
}

.listing-agent-form label {
  color: #3d4348;
  font-size: 13px;
  font-weight: 500;
}

.listing-agent-form textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  padding: 11px 12px;
  border: 1px solid #ded8cf;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
}

.listing-agent-form textarea:focus {
  outline: 3px solid rgba(255, 56, 92, 0.14);
  border-color: rgba(255, 56, 92, 0.55);
  background: #fff;
}

.listing-agent-form button {
  width: 100%;
}

.browse-results-section {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.browse-results-section[hidden] {
  display: none !important;
}

.browse-results-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
}

.browse-results-header h2 {
  color: #31373d;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 500;
}

.browse-results-header span,
.browse-results-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.browse-results-note {
  margin: 2px 0 0;
}

.listing-agent-parsed {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.listing-agent-parsed p,
.listing-agent-parsed em {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.listing-agent-feature-row {
  display: grid;
  gap: 6px;
}

.listing-agent-feature-row strong,
.listing-agent-parsed summary {
  color: #3d4348;
  font-size: 12px;
  font-weight: 500;
}

.listing-agent-feature-row div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.listing-agent-feature-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f2eee8;
  color: #3f454a;
  font-size: 11px;
}

.listing-feature-tiles {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px !important;
}

.listing-feature-tile {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(232, 226, 217, 0.94);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fbf8f4);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.listing-feature-tile.is-filter {
  border-color: rgba(37, 99, 235, 0.24);
  background: linear-gradient(180deg, #ffffff, #f5f9ff);
}

.listing-feature-tile.is-ranking {
  border-color: rgba(217, 119, 6, 0.22);
  background: linear-gradient(180deg, #ffffff, #fff9f0);
}

.listing-feature-tile div {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 6px !important;
}

.listing-feature-tile strong {
  color: #25292d;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.15;
}

.listing-feature-tile span {
  min-height: auto;
  padding: 2px 5px;
  border-radius: 999px;
  background: #f1eee9;
  color: #5b6268;
  font-size: 10px;
}

.listing-feature-tile p,
.listing-feature-tile small,
.listing-agent-empty {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.listing-feature-tile small {
  color: #8d5a2b;
}

.listing-feature-tile .listing-feature-mode {
  width: max-content;
  max-width: 100%;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #444b51;
  font-size: 10px;
  font-weight: 600;
}

.listing-feature-tile.is-filter .listing-feature-mode {
  background: rgba(37, 99, 235, 0.10);
  color: #1d4ed8;
}

.listing-feature-tile.is-ranking .listing-feature-mode {
  background: rgba(217, 119, 6, 0.12);
  color: #9a5a08;
}

.listing-agent-clarify {
  width: max-content;
  max-width: 100%;
  min-height: 30px;
  padding: 6px 10px;
  border-color: rgba(216, 59, 68, 0.22);
  background: #fff4f2;
  color: #8d1d27;
  font-size: 12px;
  font-weight: 600;
}

.listing-clarify-backdrop {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  background: rgba(20, 22, 24, 0.28);
  backdrop-filter: blur(3px);
}

.listing-clarify-modal {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(520px, 100%);
  max-height: min(720px, 90vh);
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(232, 226, 217, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
}

.listing-clarify-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 50%;
  background: #f7f5f2;
  color: #3d4348;
}

.listing-clarify-question {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.listing-clarify-question h3 {
  margin: 0;
  color: #2d3135;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 600;
}

.listing-clarify-question div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.listing-clarify-question button {
  min-height: 30px;
  padding: 6px 10px;
  background: #111315;
  color: #fff;
  font-size: 12px;
}

.listing-agent-parsed details {
  border-top: 1px solid var(--line);
  padding-top: 7px;
}

.listing-agent-parsed summary {
  cursor: pointer;
}

.listing-agent-parsed pre {
  max-height: 160px;
  overflow: auto;
  margin: 7px 0 0;
  padding: 8px;
  border-radius: 6px;
  background: #202124;
  color: #f8fafc;
  font-size: 11px;
  line-height: 1.35;
  white-space: pre-wrap;
}

.listing-agent-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 6px;
  padding-top: 2px;
}

.listing-agent-breadcrumbs i {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
}

.listing-agent-breadcrumbs button,
.listing-agent-breadcrumbs > span {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  max-width: 100%;
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #3d4348;
  font-size: 11px;
  line-height: 1.15;
  text-align: left;
}

.listing-agent-breadcrumbs button.active {
  border-color: rgba(216, 59, 68, 0.35);
  background: #fff2f3;
  color: #8d1d27;
}

.listing-agent-breadcrumbs button:hover {
  background: #f8f5f0;
  color: var(--ink);
}

.listing-agent-breadcrumbs strong {
  font-weight: 600;
}

.listing-agent-breadcrumbs .disabled {
  background: #f7f5f2;
  color: var(--muted);
}

.listing-agent-breadcrumbs .text-only {
  display: inline-flex;
  grid-template-columns: none;
}

.range-row {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(232, 226, 217, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.range-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  color: #3d4348;
  font-size: 13px;
}

.range-heading span {
  font-weight: 500;
}

.range-heading output {
  color: var(--muted);
  font-size: 12px;
}

.double-range {
  display: grid;
  gap: 4px;
}

.range-bound {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
}

.range-bound span {
  color: var(--muted);
  font-size: 11px;
  text-transform: lowercase;
}

.range-bound input {
  min-width: 0;
}

.market-filter-row {
  --range-color: var(--green);
}

.market-switches {
  display: grid;
  gap: 4px;
}

.market-switch-scale {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  text-transform: lowercase;
}

.switch-scale-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 3px;
}

.market-switch {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-height: 24px;
  color: var(--muted);
  font-size: 11px;
  text-transform: lowercase;
  cursor: pointer;
}

.market-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-track {
  position: relative;
  display: block;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffffff, #f4f8f2);
  transition: background 140ms ease;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #f8fbf7;
  box-shadow: 0 1px 4px rgba(32, 33, 36, .18);
  transform: translateY(-50%);
  transition: left 140ms ease, background-color 140ms ease;
}

.market-switch input:checked ~ .switch-track {
  background: linear-gradient(90deg, #edf3e8, var(--range-color, var(--green)));
}

.market-switch input:checked ~ .switch-track::after {
  left: calc(100% - 16px);
  background: var(--range-color, var(--green));
}

.market-switch:focus-within {
  outline: 2px solid rgba(17, 24, 39, 0.25);
  outline-offset: 2px;
}

.filter-sliders > button[type="submit"] {
  grid-column: 1 / -1;
  width: 100%;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  min-height: 24px;
  padding: 0;
  border: 0;
  accent-color: var(--range-color, var(--brand-dark));
  background: transparent;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #edf3e8, var(--range-color, #4b9b62));
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -5px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--range-color, #4b9b62);
  box-shadow: 0 1px 4px rgba(32, 33, 36, .24);
}

input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #edf3e8, var(--range-color, #4b9b62));
}

input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--range-color, #4b9b62);
  box-shadow: 0 1px 4px rgba(32, 33, 36, .24);
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.summary-strip button {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 2px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  text-align: left;
  padding: 9px 10px;
  min-width: 0;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.10);
}

.summary-strip button.active {
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.45), 0 12px 30px rgba(15, 23, 42, 0.16);
}

.summary-strip strong {
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
}

.summary-strip span {
  color: rgba(255,255,255,.88);
  font-size: 9.5px;
  line-height: 1.1;
}

.summary-under {
  background: #237a57;
}

.summary-fair {
  background: #2f5f8f;
}

.summary-over {
  background: var(--brand-dark);
}

.result-stack,
.listing-stack {
  display: grid;
  gap: 10px;
}

.empty-state,
.error-state {
  padding: 16px;
  border: 1px solid rgba(232, 226, 217, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  color: #4c5257;
  font-size: 14px;
  line-height: 1.45;
}

.error-state {
  border-color: rgba(216, 59, 68, 0.35);
  background: #fff2f3;
  color: #8d1d27;
}

.valuation-card,
.address-session-card,
.city-card-inner {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(232, 226, 217, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--surface-shadow);
}

.valuation-card {
  gap: 8px;
  padding: 10px;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.valuation-card:hover {
  border-color: rgba(215, 37, 74, 0.14);
  box-shadow: var(--elevated-shadow);
  transform: translateY(-1px);
}

.valuation-card header {
  display: grid;
  gap: 5px;
}

.valuation-card-top {
  grid-template-columns: minmax(92px, 33%) minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
}

.valuation-card-media {
  display: flex;
  min-width: 0;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  border-radius: 7px;
  background: #efebe4;
  color: #272b2f;
  text-decoration: none;
}

.valuation-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.valuation-card-image-placeholder {
  display: inline-flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: #f4f1eb;
  color: #7b5c35;
  font-size: 18px;
  font-weight: 500;
}

.valuation-card-title-block {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 5px;
}

.valuation-card h3 {
  margin: 0;
  color: #23272b;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 500;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.valuation-card h3 a {
  color: inherit;
  text-decoration: none;
}

.valuation-card h3 a:hover {
  text-decoration: underline;
}

@media (min-width: 700px) {
  .valuation-card-top {
    grid-template-columns: 172px minmax(0, 1fr);
  }

  .valuation-card-media {
    aspect-ratio: 16 / 10;
  }
}

.address-session-card header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.address-session-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

.address-muted {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.address-flow-card {
  gap: 0;
  padding: 0;
  overflow: visible;
  border-color: rgba(37, 39, 41, 0.08);
}

.address-sticky-header {
  position: sticky;
  top: calc(56px + env(safe-area-inset-top, 0px));
  z-index: 20;
  display: grid;
  gap: 2px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.address-sticky-header span {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.2;
  text-transform: uppercase;
}

.address-sticky-header strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
}

.address-session-body {
  display: grid;
  gap: 12px;
  padding: 12px 12px 0;
}

.address-apartment-card,
.address-history-frame {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.address-apartment-card h3,
.address-history-frame h3,
.address-prose-panel h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.address-apartment-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.address-apartment-row-wide {
  grid-template-columns: minmax(0, 1fr);
}

.address-value-box {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 9px;
  border-radius: 7px;
  background: #fbfaf8;
}

.address-value-box span {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.2;
}

.address-value-box strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

.address-history-frame p {
  margin: 0;
  color: #4e555b;
  font-size: 12.5px;
  line-height: 1.4;
}

.address-valuation-dock {
  position: sticky;
  bottom: 0;
  z-index: 25;
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding: 9px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(37, 39, 41, 0.1);
  border-radius: 0 0 var(--radius) var(--radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -12px 30px rgba(32, 33, 36, 0.12);
  backdrop-filter: blur(14px);
}

.address-dock-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 2px;
}

.address-dock-actions .secondary-action,
.address-dock-actions .primary-action {
  min-height: 34px;
  padding: 0 10px;
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 12px;
}

.address-dock-actions .secondary-action:hover,
.address-dock-actions .primary-action:hover {
  border-color: #000;
  background: #000;
  color: #fff;
}

.address-dock-actions .secondary-action:disabled,
.address-dock-actions .primary-action:disabled {
  border-color: #6f7478;
  background: #6f7478;
  color: #fff;
}

.address-dock-actions .primary-action:only-child {
  grid-column: 1 / -1;
}

.address-dock-actions.is-final .primary-action {
  min-height: 68px;
  font-size: 15px;
}

.address-valuation-labels,
.address-price-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  text-align: center;
}

.address-valuation-labels span {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.1;
  text-transform: uppercase;
}

.address-price-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
  line-height: 1.15;
}

.address-price-total strong {
  color: var(--ink);
  font-size: 16px;
}

.address-price-sqm strong {
  color: #4e555b;
  font-size: 11.5px;
  font-weight: 500;
}

.address-valuation-axis {
  position: relative;
  height: 28px;
  color: var(--muted);
  line-height: 1;
}

.address-valuation-axis::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #aeb4b8, #34383c, #aeb4b8);
  transform: translateY(-50%);
}

.address-valuation-axis .axis-dot {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 8px;
  height: 8px;
  border: 2px solid #34383c;
  border-radius: 999px;
  background: #fff;
  transform: translate(-50%, -50%);
}

.address-valuation-axis .axis-dot-min {
  left: 0;
}

.address-valuation-axis .axis-dot-fair {
  left: 50%;
}

.address-valuation-axis .axis-dot-max {
  left: 100%;
}

.address-valuation-axis small {
  position: absolute;
  top: 50%;
  z-index: 2;
  padding: 4px 7px;
  border-radius: 999px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  transform: translate(-50%, -50%);
}

.address-valuation-axis .axis-error-left {
  left: 33.333%;
  background: #237a57;
}

.address-valuation-axis .axis-error-right {
  left: 66.667%;
  background: var(--brand-dark);
}

.address-valuation-axis .axis-error.is-pulsing {
  animation: address-axis-error-pulse 720ms ease-in-out 2;
}

@keyframes address-axis-error-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(215, 37, 74, 0);
    transform: translate(-50%, -50%) scale(1);
  }
  45% {
    box-shadow: 0 0 0 5px rgba(15, 23, 42, 0.10);
    transform: translate(-50%, -50%) scale(1.045);
  }
}

.address-valuation-dock.is-loading .address-valuation-axis {
  opacity: 0.45;
}

.address-report-progress-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 2px 10px rgba(32, 33, 36, 0.06);
}

.address-report-progress-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}

.address-report-progress-card p {
  margin: 0;
  color: #4e555b;
  font-size: 13px;
  line-height: 1.4;
}

.address-widget-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.address-widget-panel,
.address-prose-panel,
.address-run-panel {
  display: grid;
  gap: 9px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.address-inline-error {
  padding: 9px 10px;
  border: 1px solid rgba(190, 18, 60, 0.22);
  border-radius: 7px;
  background: #fff1f2;
  color: #9f1239;
  font-size: 12px;
  line-height: 1.35;
}

.address-inline-error[hidden] {
  display: none;
}

.address-prose-panel .address-agent-intro p {
  font-size: 11.7px;
  line-height: 1.35;
}

.address-prose-panel .address-agent-intro .address-agent-small-note {
  color: #6b7280;
  font-size: 9.1px;
  line-height: 1.35;
}

.address-widget-panel h3,
.address-run-panel h3 {
  margin: 0;
  font-size: 14px;
}

.address-widget-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.address-widget-agent-message {
  align-items: start;
}

.address-widget-panel-head p {
  margin: 3px 0 0;
  color: #6a6259;
  font-size: 12px;
  line-height: 1.35;
}

.address-widget-agent-message .address-agent-small-note {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 11.5px;
  line-height: 1.35;
}

.address-input-widget p,
.address-prose-response p,
.address-run-panel p {
  margin: 0;
  color: #4e555b;
  font-size: 12.5px;
  line-height: 1.4;
}

.address-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.address-history-table th,
.address-history-table td {
  padding: 7px 6px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.address-input-widget {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfaf8;
}

.address-input-widget header {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
}

.address-input-widget header > span {
  color: #6e675f;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}

.address-input-widget .address-widget-control {
  display: grid;
  gap: 8px;
}

.address-gain-badge {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 5px;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid rgba(35, 122, 87, 0.28);
  border-radius: 999px;
  background: #f0faf5;
  color: #236b4f;
  font-size: 10.5px;
  line-height: 1.15;
  white-space: nowrap;
}

.address-gain-badge span {
  color: #4f725f;
}

.address-gain-badge strong {
  font-size: 11px;
  font-weight: 700;
}

.address-input-widget label,
.address-prose-panel label {
  display: grid;
  gap: 6px;
}

.address-segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.address-segmented button {
  min-height: 34px;
  padding: 0 8px;
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.address-segmented button.is-selected {
  border-color: rgba(255, 90, 95, 0.42);
  background: #fff2f2;
  color: var(--brand-dark);
}

.address-renovation-matrix {
  display: grid;
  gap: 8px;
}

.address-renovation-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(84px, .85fr);
  gap: 8px;
}

.address-renovation-market-section[hidden] {
  display: none;
}

.address-renovation-grid {
  display: grid;
  grid-template-columns: minmax(128px, 1.25fr) repeat(var(--renovation-cols), minmax(54px, 1fr));
  gap: 5px;
  align-items: center;
}

.address-renovation-grid strong,
.address-renovation-row-label {
  min-width: 0;
  color: #5f584f;
  font-size: 10px;
  line-height: 1.2;
}

.address-renovation-grid strong {
  text-align: center;
  font-weight: 600;
}

.address-renovation-row-label {
  overflow-wrap: anywhere;
}

.address-renovation-cell {
  width: 100%;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid #cfc8bd;
  border-radius: 7px;
  background: #fff;
}

.address-renovation-cell::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: auto;
  border-radius: 999px;
  background: #b8aea2;
}

.address-renovation-cell:hover,
.address-renovation-cell:focus-visible {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 90, 95, 0.16);
}

.address-renovation-cell.is-selected {
  border-color: var(--brand);
  background: #fff2f2;
}

.address-renovation-cell.is-selected::after {
  background: var(--brand);
}

.address-renovation-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
}

.address-renovation-actions button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.address-prose-panel textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border: 1px solid #cac6bd;
  border-radius: 7px;
  padding: 10px 12px;
  font: inherit;
}

.address-agent-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.address-agent-chip {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid #d8d2c8;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}

.address-agent-chip span {
  color: #6e675f;
}

.address-agent-chip strong {
  font-size: 12px;
}

.address-agent-chip small {
  color: #7c7469;
  font-size: 11px;
}

.address-agent-question {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid #ded8cf;
  border-radius: 7px;
  background: #fbfaf8;
}

.address-question-priority {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  align-items: center;
  padding-bottom: 7px;
  border-bottom: 1px solid #e6ded4;
}

.address-question-priority span {
  color: #6e675f;
  font-size: 10px;
  line-height: 1.2;
  text-transform: uppercase;
}

.address-question-priority strong {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.address-question-priority .address-gain-badge {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.address-agent-widget {
  min-width: 0;
}

.address-agent-widget .address-renovation-matrix {
  padding: 8px;
  border: 1px solid #e3ddd5;
  border-radius: 7px;
  background: #fff;
}

.address-agent-hint,
.address-agent-why,
.address-agent-muted {
  color: #6a6259;
  font-size: 12px;
  line-height: 1.4;
}

.address-agent-why {
  color: #3f6f52;
}

.address-agent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.address-agent-actions button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.address-agent-actions .primary-action {
  margin-left: auto;
}

.address-precision-ledger {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #ded8cf;
  border-radius: 7px;
  background: #fff;
}

.address-precision-ledger header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.address-precision-ledger header span {
  color: #6e675f;
  font-size: 10px;
  line-height: 1.2;
  text-transform: uppercase;
}

.address-precision-ledger header strong {
  color: #236b4f;
  font-size: 11px;
  line-height: 1.2;
}

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

.address-ledger-grid > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 8px;
  border-radius: 7px;
  background: #fbfaf8;
}

.address-ledger-grid > div > span:first-child {
  color: #6e675f;
  font-size: 10px;
  line-height: 1.2;
  text-transform: uppercase;
}

.address-ledger-wide {
  grid-column: 1 / -1;
}

.address-ledger-chip-row,
.address-ledger-rank-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.address-ledger-chip {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  align-items: center;
  min-height: 23px;
  padding: 3px 7px;
  border: 1px solid #ddd5ca;
  border-radius: 999px;
  background: #fff;
  color: #675f56;
  font-size: 11px;
  line-height: 1.2;
}

.address-ledger-chip.is-recent {
  border-color: rgba(35, 122, 87, 0.32);
  background: #f0faf5;
}

.address-ledger-chip strong {
  color: var(--ink);
  font-size: 11px;
}

.address-ledger-empty {
  color: #7c7469;
  font-size: 11px;
  line-height: 1.3;
}

.address-ledger-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 5px;
  align-items: center;
  color: #6e675f;
  font-size: 11px;
}

.address-ledger-range strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
}

.address-ledger-rank {
  display: inline-grid;
  grid-template-columns: auto minmax(0, auto) auto;
  gap: 5px;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px 3px 4px;
  border: 1px solid rgba(35, 122, 87, 0.24);
  border-radius: 999px;
  background: #f0faf5;
  color: #4f725f;
  font-size: 11px;
  line-height: 1.2;
}

.address-ledger-rank i {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #236b4f;
  color: #fff;
  font-style: normal;
  font-size: 10px;
}

.address-ledger-rank strong {
  color: #236b4f;
  font-size: 11px;
}

.address-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #ece8e1;
}

.address-progress span {
  display: block;
  height: 100%;
  background: var(--brand);
}

.address-progress-steps {
  display: grid;
  gap: 7px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.address-progress-step {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: #7a746b;
  font-size: 0.86rem;
  line-height: 1.25;
}

.address-progress-step-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid #cfc8bd;
  background: #f7f4ee;
}

.address-progress-step.is-completed {
  color: #3f6f52;
}

.address-progress-step.is-completed .address-progress-step-dot {
  border-color: #3f8f5d;
  background: #3f8f5d;
}

.address-progress-step.is-running {
  color: var(--ink);
}

.address-progress-step.is-running .address-progress-step-dot {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 90, 95, 0.15);
}

.address-progress-step.is-failed {
  color: #8f2025;
}

.address-progress-step.is-failed .address-progress-step-dot {
  border-color: #8f2025;
  background: #8f2025;
}

.address-inline-report {
  display: grid;
  gap: 12px;
}

.address-report-summary,
.address-report-section {
  display: grid;
  gap: 8px;
}

.address-report-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.address-report-metrics div {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfaf8;
}

.address-report-metrics span {
  color: var(--muted);
  font-size: 12px;
}

.address-report-metrics strong {
  font-size: 13px;
  line-height: 1.35;
}

.address-report-section h4 {
  margin: 0;
  font-size: 14px;
}

.address-report-section p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.valuation-card .address {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-row,
.card-actions,
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.valuation-card .metric-row {
  gap: 6px;
}

.metric-row-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric {
  min-width: 0;
  display: grid;
  gap: 1px;
  padding: 7px 8px;
  border-radius: 6px;
  background: #f5f2ed;
}

.metric span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
}

.metric strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-source-links {
  display: grid;
  gap: 6px 8px;
  color: #4e555b;
  font-size: 11px;
  line-height: 1.35;
  padding-top: 1px;
}

.portal-source-list {
  display: grid;
  gap: 6px;
}

.portal-source-link {
  min-height: 34px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 10px;
  background: #f5f4f1;
  color: #272b2f;
  padding: 4px 8px 4px 4px;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}

.portal-source-mark {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  font-size: 10px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0;
}

.portal-source-link.is-primary {
  border-color: rgba(8, 124, 137, 0.28);
}

.portal-source-copy {
  display: grid;
  min-width: 0;
}

.portal-source-copy > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-source-copy small {
  color: var(--muted);
  font-size: 9px;
}

.portal-source-more summary {
  cursor: pointer;
  color: var(--color-accent);
  font-weight: 600;
}

.portal-source-more[open] summary {
  margin-bottom: 6px;
}

.portal-source-link:hover {
  transform: translateY(-1px);
  filter: brightness(0.96);
}

.valuation-report-link {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0 11px;
  background: #23272b;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
}

.valuation-report-link:hover {
  background: #111416;
}

.portal-otodom {
  background: #e8fff6;
  color: #00684a;
}

.portal-morizon {
  background: #eef5ff;
  color: #1d4f91;
}

.portal-gratka {
  background: #fff3df;
  color: #995b00;
}

.portal-olx {
  background: #e7fff8;
  color: #063f35;
}

.portal-domiporta {
  background: #fff0f4;
  color: #94304c;
}

.portal-nieruchomosci {
  background: #edf7f5;
  color: #28635b;
}

.portal-allegro {
  background: #fff0df;
  color: #9a4b00;
}

.pill {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border-radius: 999px;
  padding: 0 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
}

.pill.under {
  background: var(--green);
}

.pill.fair {
  background: var(--blue);
}

.pill.over {
  background: var(--brand-dark);
}

.pill.unknown {
  background: #6f7377;
}

.source-link {
  color: var(--teal);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.source-link:hover {
  text-decoration: underline;
}

.map-stage {
  grid-area: map;
  position: relative;
  min-width: 0;
  min-height: 0;
  background: #d9dde0;
  border-top: 1px solid rgba(232, 226, 217, 0.82);
  border-bottom: 1px solid rgba(232, 226, 217, 0.82);
}

.map-helper {
  grid-area: helper;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 7px 24px 10px;
  background: rgba(255, 255, 255, 0.88);
  color: #687076;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

.map-helper-status {
  color: #31373d;
  font-size: 11px;
}

#mainMap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.city-heat-canvas {
  position: absolute;
  inset: 0;
  z-index: 410;
  pointer-events: auto;
}

.city-heat-canvas[hidden] {
  display: none;
}

.map-loading[hidden] {
  display: none;
}

.map-loading {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 660;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100% - 32px);
  padding: 9px 12px;
  border: 1px solid rgba(222, 219, 212, .86);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 28px rgba(32, 33, 36, .16);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.15;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.map-loading-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #fff5e8;
  color: var(--brand-dark);
}

.map-loading-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.leaflet-container {
  font: inherit;
}

.valuation-map-popup {
  --popup-frame: #6f7377;
}

.valuation-popup-under {
  --popup-frame: var(--green);
}

.valuation-popup-fair {
  --popup-frame: var(--blue);
}

.valuation-popup-over {
  --popup-frame: var(--brand-dark);
}

.valuation-overlay-under {
  --popup-frame: var(--green);
}

.valuation-overlay-fair {
  --popup-frame: var(--blue);
}

.valuation-overlay-over {
  --popup-frame: var(--brand-dark);
}

.valuation-map-card[hidden] {
  display: none;
}

.valuation-map-card {
  --popup-frame: #6f7377;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 670;
  width: max-content;
  max-width: min(460px, calc(100% - 20px));
  max-height: min(82vh, 560px);
  overflow: auto;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  background: transparent;
  box-shadow: 0 16px 36px rgba(32, 33, 36, 0.22);
}

.selected-valuation-marker {
  animation: selectedMarkerPulse 950ms ease-in-out infinite;
  filter: drop-shadow(0 0 5px rgba(32, 33, 36, 0.4));
}

@keyframes selectedMarkerPulse {
  0%,
  100% {
    opacity: 1;
    stroke-width: 3px;
  }
  50% {
    opacity: .78;
    stroke-width: 5px;
  }
}

.valuation-map-popup .leaflet-popup-content-wrapper {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--popup-frame);
  border: 1px solid color-mix(in srgb, var(--popup-frame) 52%, #fff);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(32, 33, 36, 0.18);
}

.valuation-map-popup .leaflet-popup-content {
  width: min(320px, calc(100vw - 56px)) !important;
  margin: 0;
}

.valuation-map-popup .leaflet-popup-tip {
  border: 1px solid var(--popup-frame);
  border: 1px solid color-mix(in srgb, var(--popup-frame) 42%, #fff);
}

.valuation-popup {
  position: relative;
  display: grid;
  width: min(100%, 460px);
  overflow: hidden;
  background: transparent;
}

.valuation-popup-image {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: contain;
  border: 0;
  background: transparent;
}

.valuation-popup-has-image .valuation-popup-image {
  border-radius: 8px 8px 0 0;
}

.valuation-popup-body {
  display: grid;
  gap: 5px;
  padding: 7px;
  background: #fff;
  border-radius: 0 0 8px 8px;
}

.valuation-popup-no-image .valuation-popup-body {
  border-radius: 8px;
}

.valuation-popup-header {
  position: relative;
  display: grid;
  gap: 3px;
  padding-right: 24px;
}

.popup-close {
  position: absolute;
  top: -4px;
  right: -2px;
  width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.popup-close:hover {
  color: var(--ink);
  background: #f2f1ee;
}

.valuation-popup-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.15;
}

.popup-title-link {
  color: inherit;
  text-decoration: none;
}

.popup-title-link:hover {
  color: var(--popup-frame);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.valuation-popup-header p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.15;
}

.popup-metric-grid {
  display: grid;
  gap: 4px;
  align-items: stretch;
}

.popup-property-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.popup-number-panel {
  display: grid;
  gap: 6px;
  padding: 6px;
  border: 2px solid var(--popup-frame);
  border: 2px solid color-mix(in srgb, var(--popup-frame) 62%, #fff);
  border-radius: 7px;
  background: #fff;
}

.popup-metric,
.popup-valuation-box {
  display: grid;
  gap: 1px;
  min-width: 0;
  padding: 4px 4px;
  border: 1px solid rgba(222, 219, 212, 0.78);
  border-radius: 7px;
  background: #f8f8f6;
}

.popup-metric span,
.popup-valuation-box span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 500;
  line-height: 1.1;
  text-transform: uppercase;
}

.popup-metric strong,
.popup-valuation-box strong {
  color: var(--ink);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.popup-metric-compact {
  justify-content: center;
  text-align: center;
}

.popup-metric-price {
  min-width: 0;
}

.popup-valuation-box small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.popup-axis {
  display: grid;
  gap: 0;
  padding: 2px 2px 0;
}

.popup-axis-heading {
  margin: 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
}

.axis-label-row {
  position: relative;
  display: block;
  height: 15px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.15;
}

.axis-point {
  position: absolute;
  top: 0;
  width: max-content;
  max-width: 74px;
  min-width: 0;
  text-align: center;
  transform: translateX(-50%);
  overflow-wrap: anywhere;
}

.axis-edge-start {
  text-align: left;
  transform: translateX(0);
}

.axis-edge-end {
  text-align: right;
  transform: translateX(-100%);
}

.axis-total-row {
  height: 18px;
  color: #3d4348;
}

.axis-kind-row {
  height: 9px;
  color: var(--popup-frame);
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
}

.axis-sqm-row {
  height: 18px;
}

.axis-track {
  position: relative;
  height: 22px;
  margin: 0;
}

.axis-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 9px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #edf3e8, var(--popup-frame));
}

.axis-tick {
  position: absolute;
  top: 3px;
  width: 1px;
  height: 17px;
  background: rgba(32, 33, 36, .44);
  transform: translateX(-.5px);
  z-index: 1;
}

.axis-listing-marker {
  position: absolute;
  top: 0;
  width: 1px;
  height: 22px;
  transform: translateX(-.5px);
  z-index: 2;
}

.axis-listing-dot {
  position: absolute;
  left: 50%;
  top: 1px;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--popup-frame);
  box-shadow: 0 1px 4px rgba(32, 33, 36, .28);
  transform: translateX(-50%);
}

.popup-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.popup-action {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  appearance: none;
}

@media (min-width: 760px) {
  .valuation-map-card {
    max-width: min(500px, calc(100% - 32px));
  }

  .valuation-map-popup .leaflet-popup-content {
    width: min(438px, calc(100vw - 80px)) !important;
  }

  .valuation-popup-has-image {
    width: min(100%, 500px);
  }

  .valuation-popup-has-image .valuation-popup-image {
    height: 260px;
    min-height: 0;
  }

  .valuation-popup-body {
    gap: 5px;
    padding: 8px;
  }

  .popup-metric-grid {
    gap: 4px;
  }

  .popup-actions {
    gap: 5px;
  }
}

.popup-report-action {
  border-color: var(--popup-frame);
  border-color: color-mix(in srgb, var(--popup-frame) 48%, var(--line));
  color: #fff;
  background: var(--popup-frame);
}

.popup-comparable-row {
  display: grid;
}

.popup-comparable-action {
  width: 100%;
  border-color: var(--popup-frame);
  border-color: color-mix(in srgb, var(--popup-frame) 48%, var(--line));
  color: #fff;
  background: var(--popup-frame);
}

.popup-action:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.popup-action-disabled {
  color: var(--muted);
  background: #f2f1ee;
}

.map-legend {
  position: absolute;
  right: 16px;
  top: 16px;
  bottom: auto;
  z-index: 500;
  width: min(140px, calc(100% - 104px));
  padding: 6px;
  border: 1px solid rgba(110, 112, 112, 0.25);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 5px 15px rgba(32, 33, 36, 0.10);
}

.map-legend:empty {
  display: none;
}

.map-legend.comparable-map-legend {
  width: min(286px, calc(100% - 32px));
}

.legend-title {
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 500;
}

.legend-bar {
  height: 5px;
  border-radius: 999px;
  border: 1px solid rgba(32, 33, 36, 0.16);
}

.legend-caption {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.comparable-legend {
  display: grid;
  gap: 7px;
}

.comparable-legend .legend-title {
  margin: 0;
  line-height: 1.25;
}

.comparable-legend-actions {
  display: flex;
  align-items: stretch;
  gap: 4px;
}

.comparable-legend-actions-empty {
  display: flex;
  justify-content: flex-end;
}

.comparable-legend-actions button {
  flex: 1 1 0;
  min-height: 24px;
  min-width: 48px;
  padding: 0 6px;
  border: 1px solid rgba(32, 33, 36, 0.14);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}

.comparable-legend-actions button.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.comparable-legend-actions .comparable-close {
  flex: 0 0 24px;
  width: 24px;
  padding: 0;
  color: var(--muted);
  background: #f7f5f1;
}

.blend-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 10px;
  padding: 8px;
  border: 1px solid rgba(35, 122, 87, .22);
  border-radius: var(--radius);
  background: #fbfdf9;
}

.blend-prompt {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  color: #3d5146;
  font-size: 12px;
  line-height: 1.35;
}

.blend-range {
  width: 100%;
  gap: 4px;
  padding: 5px 8px;
}

.blend-range .range-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  line-height: 1.1;
}

.blend-range .range-heading output {
  font-size: 11px;
  text-transform: lowercase;
}

.blend-range input[type="range"] {
  min-height: 14px;
}

.blend-range input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
}

.blend-range input[type="range"]::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  margin-top: -4px;
}

.blend-range input[type="range"]::-moz-range-track {
  height: 4px;
}

.blend-range input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
}

.blend-submit {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 38px;
  padding: 0 16px;
  background: var(--green);
  color: #fff;
}

.single-layer-control {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.single-layer-control label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

.single-layer-control select {
  min-height: 38px;
  border-radius: var(--radius);
  color: #303438;
  background: #fff;
}

.city-card[hidden] {
  display: none;
}

.map-overlay-card {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 650;
  width: min(360px, calc(100% - 32px));
  margin: 0;
}

.map-overlay-card .city-card-inner {
  position: relative;
  max-height: min(52vh, 430px);
  overflow: auto;
  background: rgba(255, 255, 255, 0.96);
  gap: 9px;
  padding: 12px;
}

.overlay-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  min-height: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  background: #f5f1ec;
  color: #3d3434;
  font-size: 18px;
  line-height: 1;
}

.city-card-header {
  display: flex;
  gap: 9px;
  align-items: center;
  padding-right: 28px;
}

.city-card-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.city-card-header span {
  color: var(--muted);
  font-size: 11px;
}

.theme-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #17613e;
  background: #edf3e8;
}

.theme-icon svg {
  width: 17px;
  height: 17px;
}

.theme-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.percentile-sentence {
  margin: 0;
  color: #303438;
  font-size: 13px;
  line-height: 1.35;
}

.percentile-sentence strong {
  display: inline-block;
  margin: 0 2px;
  color: var(--brand-dark);
  font-size: 24px;
  line-height: 1;
  font-weight: 600;
}

.trend-sentence,
.trend-compare {
  margin: 0;
  color: #303438;
  font-size: 13px;
  line-height: 1.35;
}

.trend-sentence strong {
  display: block;
  margin-top: 3px;
  color: var(--brand-dark);
  font-size: 28px;
  line-height: 1;
  font-weight: 600;
}

.trend-compare strong {
  color: var(--brand-dark);
  font-size: 18px;
  font-weight: 600;
}

.percentile-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.percentile-chips div,
.ranking-line {
  display: grid;
  gap: 2px;
  padding: 7px 8px;
  border-radius: 7px;
  background: #f8f8f6;
}

.percentile-chips span {
  color: var(--muted);
  font-size: 10px;
}

.percentile-chips strong,
.ranking-line strong {
  font-size: 14px;
  font-weight: 500;
}

.ranking-line {
  margin: 0;
  color: #303438;
  font-size: 12px;
  line-height: 1.3;
}

.card-detail-lines {
  display: grid;
  gap: 7px;
}

.card-detail-group {
  display: grid;
  gap: 6px;
  margin: 0;
}

.card-detail-lines h4 {
  margin: 0;
  color: #303438;
  font-size: 11px;
  font-weight: 500;
}

.card-detail-lines > p {
  display: grid;
  grid-template-columns: minmax(102px, auto) 1fr;
  gap: 8px;
  align-items: start;
  margin: 0;
  color: #4e555b;
  font-size: 12px;
  line-height: 1.3;
}

.card-detail-lines > p > strong {
  color: #303438;
  font-size: 11px;
  font-weight: 500;
}

.card-detail-lines > p > span {
  min-width: 0;
}

.report-view {
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: auto;
  background: var(--bg);
}

.report-view[hidden] {
  display: none;
}

.workspace.report-mode {
  display: block;
}

.workspace.report-mode .side-panel,
.workspace.report-mode .map-stage {
  display: none;
}

.report-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 245, 242, 0.96);
}

.report-toolbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.report-sheet {
  width: min(980px, calc(100% - 32px));
  margin: 24px auto 46px;
  display: grid;
  gap: 18px;
}

.report-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid #d7e4e7;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(229, 246, 249, 0.96), rgba(255, 255, 255, 0.96) 48%, rgba(238, 246, 237, 0.96)),
    #fff;
  box-shadow: 0 18px 45px rgba(35, 55, 63, 0.08);
}

.report-hero h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: 0;
}

.report-hero p {
  margin: 8px 0 0;
  color: #5f666c;
}

.report-section {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid #e0e6e8;
  border-radius: 8px;
  background: #fff;
}

.report-section h2,
.report-confidence-card h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
}

.report-section h3 {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: 0;
}

.report-section p {
  margin: 0;
  color: #42484e;
  line-height: 1.5;
}

.report-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.report-valuation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 154px;
  gap: 14px;
  align-items: stretch;
}

.report-price-stack {
  display: grid;
  gap: 14px;
}

.report-price-card {
  padding: 24px;
  gap: 18px;
  border-color: #c8d8de;
  background: #fbfdfd;
}

.report-price-card-secondary {
  padding: 18px 24px;
  border-color: var(--line);
  background: #fff;
}

.report-range-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid #bdd4dc;
  border-radius: 7px;
  color: #305160;
  background: #edf6f8;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.report-price-axis {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  padding-top: 18px;
}

.report-price-axis::before {
  content: "";
  position: absolute;
  top: 33px;
  left: 11%;
  right: 11%;
  height: 2px;
  background: #b6c7ce;
}

.report-price-point {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
  min-width: 0;
}

.report-price-point::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid #2e6978;
  background: #fff;
}

.report-price-point span {
  color: #6a7177;
  font-size: 12px;
  font-weight: 700;
}

.report-price-point strong {
  color: #111820;
  font-size: 24px;
  line-height: 1.05;
}

.report-price-point small {
  color: #657078;
  font-size: 12px;
}

.report-price-point.is-featured strong {
  font-size: 32px;
}

.report-price-point.is-featured::before {
  width: 17px;
  height: 17px;
  background: #2e6978;
  box-shadow: 0 0 0 5px rgba(46, 105, 120, 0.12);
}

.report-confidence-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 14px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.report-confidence-scale {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
  align-items: center;
  min-height: 286px;
  padding: 24px 5px;
}

.report-confidence-line {
  height: 3px;
  border-radius: 999px;
  background: #9db2ba;
}

.report-confidence-dot {
  position: absolute;
  left: 50%;
  top: var(--confidence-top);
  width: 13px;
  height: 13px;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  border-radius: 50%;
  background: #ba3b46;
  box-shadow: 0 0 0 2px rgba(186, 59, 70, 0.18);
}

.report-confidence-label {
  position: absolute;
  right: 2px;
  color: #6b7378;
  font-size: 11px;
  font-weight: 700;
}

.report-confidence-label.is-top {
  top: 0;
}

.report-confidence-label.is-bottom {
  bottom: 0;
}

.report-components-card {
  border-color: #c8d8de;
  box-shadow: inset 4px 0 0 #2e6978;
}

.report-renovation-card {
  border-color: #e1c8a9;
  background: #fffdf9;
}

.report-renovation-card p {
  font-size: 80%;
}

.report-table-wrap {
  overflow-x: auto;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.report-table th,
.report-table td {
  padding: 10px 11px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.report-table thead th {
  color: #596167;
  background: #f5f7f7;
  font-size: 11px;
  text-transform: uppercase;
}

.report-table tbody th {
  width: 36%;
  color: #1d252b;
  font-weight: 700;
}

.report-table tr:last-child th,
.report-table tr:last-child td {
  border-bottom: 0;
}

.report-comment-cell,
.report-muted {
  color: #687078;
}

.report-source-row {
  display: block;
}

.report-source-row .listing-source-links {
  width: 100%;
}

.price-history-chart {
  width: 100%;
  min-height: 220px;
  overflow: visible;
}

.price-history-chart text {
  fill: #687078;
  font-size: 11px;
}

.report-history-warnings {
  margin: 0;
  color: #687078;
  font-size: 12px;
}

.report-pricing-layout {
  display: grid;
  gap: 14px;
}

.report-primary-pricing-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.report-pricing-main {
  display: grid;
  gap: 14px;
}

.report-visual-section {
  gap: 18px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(29, 47, 54, 0.06);
}

.report-visual-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.report-section-kicker {
  display: block;
  margin-bottom: 5px;
  color: #2e6978;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-price-card {
  padding: 28px;
  border-color: #c7dfe5;
  background:
    radial-gradient(circle at 86% 22%, rgba(62, 143, 157, 0.12), transparent 30%),
    linear-gradient(180deg, #fbfefe, #f7fbfb);
}

.report-price-card.is-secondary {
  padding: 21px 24px;
  border-color: #d8e2dd;
  background:
    radial-gradient(circle at 88% 18%, rgba(111, 157, 95, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff, #f8fbf8);
}

.report-price-card .report-price-axis {
  padding: 28px 8px 2px;
}

.report-price-card .report-price-axis::before {
  top: 39px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8cbfc9, #1682a0, #94bd82);
}

.report-price-card .report-price-point::before {
  border-color: #1682a0;
}

.report-price-card .report-price-point.is-featured::before {
  background: #1682a0;
}

.report-price-card .report-price-point strong {
  font-size: 25px;
}

.report-price-card .report-price-point.is-featured strong {
  color: #0c5c72;
  font-size: 35px;
}

.report-price-card.is-secondary .report-price-point strong {
  font-size: 19px;
}

.report-price-card.is-secondary .report-price-point.is-featured strong {
  font-size: 25px;
}

.report-confidence-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 14px 8px;
  border-color: #d9e3e6;
  background: #fff;
}

.report-confidence-card h2 {
  font-size: 13px;
  line-height: 1.15;
}

.report-confidence-card .report-confidence-scale {
  min-height: 100%;
}

.report-confidence-card .report-confidence-line {
  height: 2px;
  background: #9db2ba;
}

.report-confidence-card .report-confidence-dot {
  background: #ba3b46;
}

.report-components-card {
  border-color: #c8d8de;
  box-shadow: inset 4px 0 0 #2e6978, 0 12px 34px rgba(29, 47, 54, 0.06);
}

.report-comparable-listings-card,
.report-comparable-transactions-card,
.report-extra-sections-card {
  border-color: #d6e2e8;
  background: #fff;
}

.report-comparable-transactions-card {
  background:
    radial-gradient(circle at 94% 10%, rgba(46, 105, 120, 0.10), transparent 28%),
    linear-gradient(180deg, #ffffff, #f8fbfc);
}

.report-comparable-card-list {
  display: grid;
  gap: 6px;
}

.report-comparable-card {
  display: grid;
  gap: 5px;
  padding: 7px;
  border: 1px solid #dde8eb;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.report-comparable-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.report-comparable-card header a,
.report-comparable-card header span {
  color: #135f76;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.report-comparable-card header a:hover {
  text-decoration: underline;
}

.report-comparable-card header small {
  color: #69747a;
  font-size: 11px;
  font-weight: 700;
}

.report-comparable-facts-grid,
.report-comparable-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.report-comparable-facts-grid div,
.report-comparable-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  padding: 3px 6px;
  border: 1px solid #e5ecee;
  border-radius: 7px;
  background: #fbfdfd;
}

.report-comparable-facts-grid span,
.report-comparable-metric span {
  min-width: 0;
  color: #68747a;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.report-comparable-facts-grid strong,
.report-comparable-metric strong {
  flex: 0 1 auto;
  min-width: 0;
  color: #1f2b32;
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.report-comparable-listings-table tbody th small {
  display: block;
  margin-top: 4px;
  color: #69747a;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.report-comparable-listings-table tbody th a {
  color: #135f76;
  text-decoration: none;
}

.report-comparable-listings-table tbody th a:hover {
  text-decoration: underline;
}

.report-extra-section-list {
  display: grid;
  gap: 12px;
}

.report-extra-section-list .report-raw-section {
  padding: 14px;
  box-shadow: none;
}

.report-audit-trail-card {
  gap: 8px;
  padding: 12px 14px;
  border-color: #e5e7e9;
  background: #f8f9f9;
  box-shadow: none;
}

.report-audit-trail-card .report-section-kicker {
  color: #8a9196;
  font-size: 9px;
}

.report-audit-trail-card h2 {
  color: #747b80;
  font-size: 12px;
}

.report-audit-lines {
  display: grid;
  gap: 4px;
  color: #878f94;
  font-size: 9px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.report-audit-lines p {
  margin: 0;
  color: inherit;
  line-height: inherit;
}

.report-line-list {
  display: grid;
  gap: 7px;
  font-size: 13px;
}

.report-line-list p {
  margin: 0;
}

.report-missing-info-card {
  gap: 8px;
  padding: 14px 16px;
  border-color: #d8e4d5;
  background:
    radial-gradient(circle at 96% 0%, rgba(118, 162, 88, 0.12), transparent 26%),
    linear-gradient(180deg, #ffffff, #f8fbf7);
  box-shadow: inset 4px 0 0 #6f9d5f, 0 12px 34px rgba(29, 47, 54, 0.06);
}

.report-missing-info-card h2 {
  font-size: 14px;
}

.report-missing-info-card .report-section-kicker {
  margin-bottom: 3px;
  font-size: 10px;
}

.report-missing-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0 0 0 18px;
  color: #2f393e;
  font-size: 12px;
  line-height: 1.35;
}

.report-missing-list li::marker {
  color: #6f9d5f;
}

.customer-report-v2 {
  display: grid;
  gap: 0;
  color: #182026;
  background: #fff;
}

.report-v2-hero {
  display: grid;
  grid-template-columns: minmax(250px, 0.78fr) minmax(0, 1.22fr);
  min-height: 520px;
  border: 1px solid #dce2e3;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.report-v2-hero > img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  background: #eef1f1;
}

.report-v2-hero--no-image {
  grid-template-columns: 1fr;
  min-height: 0;
}

.report-v2-hero--no-image .report-v2-hero-content {
  width: min(100%, 720px);
  padding-block: 48px;
}

.report-v2-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 38px clamp(28px, 5vw, 58px);
}

.report-v2-address {
  margin: 0;
  color: #1b262c;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
}

.report-v2-property-facts {
  margin: 5px 0 28px;
  color: #667176;
  font-size: 13px;
  line-height: 1.45;
}

.report-v2-kicker {
  margin: 0 0 6px;
  color: #166978;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.report-v2-central {
  display: block;
  max-width: 100%;
  color: #10181c;
  font-size: 48px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.report-v2-meter {
  margin-top: 5px;
  color: #566369;
  font-size: 14px;
  font-weight: 700;
}

.report-v2-range {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 14px;
  align-items: baseline;
  margin-top: 24px;
  padding: 15px 0;
  border-top: 1px solid #dce3e4;
  border-bottom: 1px solid #dce3e4;
}

.report-v2-range span,
.report-v2-range small {
  color: #657177;
  font-size: 12px;
}

.report-v2-range strong {
  min-width: 0;
  font-size: 21px;
  overflow-wrap: anywhere;
}

.report-v2-range small {
  grid-column: 2;
}

.report-v2-evidence {
  margin-top: 22px;
  padding-left: 14px;
  border-left: 3px solid #168294;
}

.report-v2-evidence > strong {
  color: #125d6a;
  font-size: 14px;
}

.report-v2-evidence p {
  margin: 4px 0 0;
  color: #303b40;
  font-size: 14px;
  line-height: 1.5;
}

.report-v2-evidence .report-v2-qualification {
  color: #5d4b31;
}

.report-v2-method-cue {
  margin: 12px 0 0;
  color: #6f787d;
  font-size: 11px;
}

.report-v2-asking {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 18px;
  align-items: center;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid #d9e2d6;
  border-radius: 8px;
  background: #f7faf6;
}

.report-v2-asking > div {
  display: grid;
  gap: 2px;
}

.report-v2-asking span {
  color: #687268;
  font-size: 11px;
}

.report-v2-asking > div strong {
  font-size: 18px;
}

.report-v2-asking p {
  margin: 0;
  color: #2d382f;
  font-size: 13px;
  line-height: 1.45;
}

.report-v2-asking > span {
  grid-column: 2;
}

.report-v2-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
}

.report-v2-actions > span {
  color: #70797d;
  font-size: 11px;
}

.report-v2-section {
  display: grid;
  gap: 15px;
  padding: 36px 4px;
  border-top: 1px solid #dfe4e5;
  background: transparent;
}

.report-v2-section > h2,
.report-v2-section > summary {
  margin: 0;
  color: #182126;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.report-v2-section > summary {
  cursor: pointer;
}

.report-v2-intro {
  max-width: 760px;
  margin: 0;
  color: #59646a;
  font-size: 13px;
  line-height: 1.55;
}

.report-v2-bridge {
  display: grid;
  gap: 0;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.report-v2-bridge li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid #e8ebec;
}

.report-v2-bridge li span {
  color: #4f5a60;
}

.report-v2-bridge li strong {
  white-space: nowrap;
}

.report-v2-bridge .is-positive {
  color: #166a54;
}

.report-v2-bridge .is-negative {
  color: #9a4a3f;
}

.report-v2-bridge li.is-total {
  padding-top: 18px;
  border-bottom: 0;
  font-size: 17px;
}

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

.report-v2-comparable {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid #dce3e5;
  border-radius: 8px;
  background: #fff;
}

.report-v2-comparable header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.report-v2-comparable header span {
  color: #176c7a;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.report-v2-comparable h3 {
  margin: 3px 0 0;
  font-size: 16px;
  letter-spacing: 0;
}

.report-v2-comparable time {
  color: #6c767b;
  font-size: 11px;
  white-space: nowrap;
}

.report-v2-comparable-facts {
  margin: 0;
  color: #5e686d;
  font-size: 12px;
}

.report-v2-comparable dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.report-v2-comparable dl div {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: baseline;
}

.report-v2-comparable dt {
  color: #687277;
  font-size: 11px;
}

.report-v2-comparable dd {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  text-align: right;
}

.report-v2-comparable > a {
  color: #14697a;
  font-size: 12px;
  font-weight: 700;
}

.report-v2-disclosure > summary::marker {
  color: #197184;
}

.report-v2-disclosure[open] > summary {
  margin-bottom: 6px;
}

.report-v2-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid #e0e5e6;
  background: #e0e5e6;
}

.report-v2-facts > div {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  min-height: 92px;
  padding: 14px;
  background: #fff;
}

.report-v2-facts dt,
.report-v2-facts small {
  color: #6a7479;
  font-size: 10px;
}

.report-v2-facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.report-v2-refine {
  padding: 15px 17px;
  border-left: 3px solid #73965d;
  background: #f7faf5;
}

.report-v2-refine p {
  margin: 4px 0 0;
  color: #53604e;
  font-size: 12px;
}

.report-v2-neighbourhood {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.report-v2-neighbourhood li {
  display: grid;
  gap: 5px;
  padding: 16px 0;
  border-top: 3px solid #6d9480;
}

.report-v2-neighbourhood strong {
  font-size: 14px;
  text-transform: capitalize;
}

.report-v2-neighbourhood span {
  color: #5e686d;
  font-size: 12px;
  line-height: 1.4;
}

.report-v2-history > div:first-of-type {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.report-v2-history-result {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.report-v2-history-result h3,
.report-v2-history-result p {
  margin: 0;
}

.report-v2-history-result p {
  color: #59646a;
  font-size: 13px;
  line-height: 1.5;
}

.report-v2-history-result ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.report-v2-history-result li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #e4e8e9;
}

.report-v2-history-result li > div {
  display: grid;
  gap: 3px;
}

.report-v2-history-result li > div:last-child {
  text-align: right;
}

.report-v2-history-result li span {
  color: #687277;
  font-size: 11px;
}

.report-v2-scope {
  color: #697277;
  font-size: 12px;
}

.report-v2-state {
  display: grid;
  justify-items: start;
  gap: 14px;
  max-width: 620px;
  padding: 48px 4px;
}

.report-v2-state h1,
.report-v2-state p {
  margin: 0;
}

.report-v2-state p {
  color: #586269;
  line-height: 1.55;
}

.report-components-table th:first-child {
  width: 42%;
}

.report-components-table td,
.report-components-table th {
  background: #fff;
}

.report-components-table tbody tr:nth-child(odd) td,
.report-components-table tbody tr:nth-child(odd) th {
  background: #fafcfc;
}

.report-renovation-card {
  border-color: #e3d3b8;
  background:
    radial-gradient(circle at 92% 18%, rgba(197, 139, 58, 0.12), transparent 28%),
    #fffdf8;
}

.report-renovation-card p {
  font-size: 12px;
}

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

.report-renovation-metrics div {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid #eadcc5;
  border-radius: 8px;
  background: #fffaf1;
}

.report-renovation-metrics span {
  color: #76624b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.report-renovation-metrics strong {
  color: #2f2a24;
  font-size: 14px;
}

.report-fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.report-fact-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  padding: 5px 7px;
  border: 1px solid #e2e8ea;
  border-radius: 8px;
  background: #f8fafb;
}

.report-fact-tile span {
  color: #667178;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.report-fact-tile strong {
  min-width: 0;
  color: #1e2a31;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.report-neighbourhood-card {
  border-color: #d7e4e4;
  background:
    radial-gradient(circle at 92% 10%, rgba(45, 133, 141, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff, #f8fbfb);
}

.report-neighbourhood-rankings {
  display: grid;
  gap: 14px;
}

.report-neighbourhood-rankings h3 {
  margin: 0;
  color: #23323a;
  font-size: 16px;
  font-weight: 800;
}

.report-h3-rank-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.report-h3-rank {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  padding: 12px 8px;
  border: 1px solid color-mix(in srgb, var(--rank-color) 34%, #e6ecee);
  border-radius: 8px;
  background: color-mix(in srgb, var(--rank-color) 12%, #fff);
  text-align: center;
}

.report-h3-ring {
  --ring-dot-radius: clamp(33px, 3.7vw, 44px);
  position: relative;
  width: clamp(76px, 8.4vw, 98px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 57%, transparent 58%),
    conic-gradient(var(--rank-color) 0 var(--rank-angle), #e7ecec var(--rank-angle) 360deg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rank-color) 38%, #fff);
}

.report-h3-ring strong {
  color: #1e2a31;
  font-size: 18px;
  line-height: 1;
}

.report-h3-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--rank-color);
  box-shadow: 0 0 0 1px rgba(27, 43, 49, 0.14);
  transform: translate(-50%, -50%) rotate(var(--rank-angle)) translateY(calc(-1 * var(--ring-dot-radius)));
  transform-origin: center;
}

.report-h3-rank > span {
  min-width: 0;
  color: #3f4a50;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

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

.report-neighbourhood-feature {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 13px;
  border: 1px solid #dfe9e6;
  border-radius: 8px;
  background: #fff;
}

.report-neighbourhood-feature span {
  color: #5d686c;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.report-neighbourhood-feature strong {
  color: #142229;
  font-size: 18px;
  line-height: 1.1;
}

.report-neighbourhood-feature small {
  min-width: 0;
  color: #5f6a70;
  font-size: 12px;
  overflow-wrap: anywhere;
}

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

.report-impact-explanation {
  margin: 0;
  color: #59666d;
  font-size: 12px;
  line-height: 1.45;
}

.report-impact-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 1.4fr) 72px;
  gap: 12px;
  align-items: center;
}

.report-impact-row > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.report-impact-row strong {
  min-width: 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.report-impact-row span {
  color: #667178;
  font-size: 12px;
}

.report-impact-row em {
  color: #253039;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.report-impact-row em.is-positive {
  color: #47763d;
}

.report-impact-row em.is-negative {
  color: #a04444;
}

.report-impact-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef0;
}

.report-impact-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.report-impact-bar.is-positive i {
  background: #76a965;
}

.report-impact-bar.is-negative i {
  background: #ba5a5a;
}

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

.json-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.json-list li {
  padding: 10px;
  border-radius: 7px;
  background: #f8f8f6;
  color: #34383c;
}

.retired-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}

.retired-shell {
  width: min(440px, 100%);
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.brand.compact span {
  font-size: 16px;
}

.info-block {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(232, 226, 217, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--surface-shadow);
}

.info-block p {
  margin: 0;
  color: #4e555b;
  line-height: 1.5;
}

.workspace.info-mode .side-panel {
  border-right: 0;
}

.info-panel {
  max-width: 760px;
  margin: 0 auto;
}

.site-footer {
  padding: 14px 18px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(232, 226, 217, 0.86);
  background: #fff;
  color: #747c85;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

@media (max-width: 980px) {
  .report-v2-hero {
    grid-template-columns: minmax(210px, 0.65fr) minmax(0, 1.35fr);
  }

  .report-v2-hero-content {
    padding: 30px 26px;
  }

  .report-v2-central {
    font-size: 40px;
  }

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

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

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

  .report-primary-pricing-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .report-confidence-card {
    min-height: 0;
  }

  .report-confidence-scale {
    min-height: 170px;
  }

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

  .topbar {
    gap: 14px;
    padding: 8px 12px;
  }

  .mode-switch {
    flex: 0 0 auto;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .top-status {
    min-width: 64px;
    max-width: 74px;
  }

  .workspace {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(300px, 48vh) auto auto;
    grid-template-areas:
      "intro"
      "map"
      "helper"
      "panel";
  }

  .workspace.address-mode,
  .workspace.info-mode {
    grid-template-rows: auto auto;
    grid-template-areas:
      "intro"
      "panel";
  }

  .workspace.browse-mode {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(300px, 48vh) auto auto;
    grid-template-areas:
      "intro"
      "agent"
      "map"
      "helper"
      "panel";
  }

  .browse-agent-top {
    padding: 8px 16px 12px;
  }

  .side-panel {
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .map-stage {
    min-height: 300px;
  }
}

@media (max-width: 560px) {
  .report-sheet {
    width: min(100% - 20px, 1040px);
    margin-top: 12px;
  }

  .report-toolbar {
    padding: 12px;
    align-items: flex-start;
  }

  .report-v2-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .report-v2-hero > img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .report-v2-hero-content {
    padding: 24px 18px;
  }

  .report-v2-address {
    font-size: 18px;
  }

  .report-v2-central {
    font-size: 36px;
  }

  .report-v2-range,
  .report-v2-asking {
    grid-template-columns: 1fr;
  }

  .report-v2-range small,
  .report-v2-asking > span {
    grid-column: 1;
  }

  .report-v2-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-v2-section {
    padding: 28px 2px;
  }

  .report-v2-comparables,
  .report-v2-facts,
  .report-v2-neighbourhood {
    grid-template-columns: 1fr;
  }

  .report-v2-comparable header {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .report-v2-bridge li {
    gap: 8px;
  }

  .report-v2-bridge li strong {
    white-space: normal;
    text-align: right;
  }

  .report-hero {
    flex-direction: column;
    padding: 18px;
  }

  .report-hero h1 {
    font-size: 23px;
  }

  .report-visual-heading,
  .report-component-title,
  .report-component-card.is-muted {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .report-price-card,
  .report-price-card.is-secondary {
    padding: 18px 12px;
  }

  .report-primary-pricing-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .report-confidence-card {
    padding: 12px 5px;
  }

  .report-confidence-card h2 {
    font-size: 11px;
  }

  .report-price-axis {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: stretch;
    padding-top: 0;
  }

  .report-price-axis::before {
    display: none;
  }

  .report-price-card .report-price-axis {
    padding: 0;
  }

  .report-price-point {
    justify-items: start;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "dot label"
      "dot total"
      "dot meter";
    column-gap: 10px;
    text-align: left;
  }

  .report-price-point::before {
    grid-area: dot;
    align-self: center;
  }

  .report-price-point span {
    grid-area: label;
  }

  .report-price-point strong {
    grid-area: total;
    font-size: 22px;
  }

  .report-price-point.is-featured strong {
    font-size: 26px;
  }

  .report-price-point small {
    grid-area: meter;
  }

  .report-renovation-metrics,
  .report-fact-grid {
    grid-template-columns: 1fr;
  }

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

  .report-comparable-facts-grid,
  .report-comparable-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-impact-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .report-impact-row em {
    text-align: left;
  }

  .address-renovation-controls,
  .address-renovation-actions {
    grid-template-columns: 1fr;
  }

  .address-renovation-grid {
    grid-template-columns: minmax(96px, 1fr) repeat(var(--renovation-cols), minmax(40px, 1fr));
    gap: 4px;
  }

  .address-renovation-cell {
    height: 30px;
    min-height: 30px;
  }

  .topbar {
    flex-wrap: wrap;
    gap: 7px 9px;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 10px 8px;
    overflow-x: visible;
    white-space: normal;
  }

  .brand img {
    width: auto;
    height: 30px;
  }

  .mode-switch {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: visible;
  }

  .top-status {
    order: 4;
    flex: 0 0 100%;
    min-width: 0;
    max-width: none;
    text-align: left;
  }

  .city-select-label select {
    min-width: 72px;
    font-size: 11px;
  }

  .mode-switch a {
    min-height: 32px;
    padding: 0 7px;
    font-size: 13.25px;
  }

  .mode-panel {
    padding: 16px;
  }

  .browse-agent-top {
    padding: 6px 10px 10px;
  }

  .proof-banner {
    padding: 28px 14px 30px;
  }

  .landing-proof-lead {
    font-size: 31px;
  }

  .landing-proof-free {
    font-size: 17px;
  }

  .landing-proof-list li {
    font-size: 13px;
    min-height: 0;
  }

  .landing-proof-list {
    grid-template-columns: 1fr;
  }

  .range-row {
    width: 100%;
  }

  .input-row,
  .address-widget-grid,
  .address-report-metrics,
  .report-kv {
    grid-template-columns: 1fr;
  }

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

  .address-apartment-row {
    gap: 6px;
  }

  .address-value-box {
    padding: 7px 6px;
  }

  .address-price-total strong {
    font-size: 13px;
  }

  .address-price-sqm strong,
  .address-valuation-axis,
  .address-valuation-labels span {
    font-size: 10px;
  }

  .address-valuation-axis {
    height: 24px;
  }

  .address-valuation-axis small {
    padding: 3px 6px;
    font-size: 13px;
  }

  .address-session-card header {
    grid-template-columns: 1fr;
  }

  .address-history-toolbar {
    align-items: center;
    flex-direction: row;
  }

  .address-history-toolbar label {
    width: auto;
  }

  .address-history-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
  }

  .address-history-filters select {
    min-height: 34px;
    padding: 6px 7px;
    font-size: 0.78rem;
  }

  .address-history-map-shell {
    min-height: 430px;
  }

  .address-history-popup {
    left: 50%;
    right: auto;
    top: 8px;
    width: min(320px, calc(100% - 36px));
    max-height: calc(100% - 16px);
    padding: 10px;
    transform: translateX(-50%);
  }

  .address-history-transaction-row {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .address-history-transaction-row span:last-child {
    grid-column: 2;
  }

  .accent-title {
    font-size: 29px;
  }

  .summary-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .summary-strip button {
    min-height: 45px;
    padding: 5px;
  }

  .summary-strip strong {
    font-size: 14px;
  }

  .summary-strip span {
    font-size: 8.5px;
  }

  .map-overlay-card {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
  }
}

@media (max-width: 380px) {
  .filter-sliders,
  .blend-controls {
    grid-template-columns: 1fr;
  }

  .market-switches {
    grid-template-columns: 1fr;
  }
}

@media print {
  .report-toolbar,
  .topbar,
  .site-footer {
    display: none !important;
  }

  .report-sheet {
    width: 100%;
    margin: 0;
  }

  .report-section,
  .report-hero {
    break-inside: avoid;
    box-shadow: none !important;
  }
}

/* Landing page premium redesign — 2026-07-20 */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --color-bg: #faf7f2;
  --color-surface: #fffdf9;
  --color-surface-soft: #f3eee6;
  --color-ink: #1c2928;
  --color-muted: #657270;
  --color-line: #ddd7ce;
  --color-accent: #087c89;
  --color-accent-hover: #066a75;
  --color-accent-soft: #ddeff0;
  --color-data: #d95d4f;
  --color-data-soft: #f8e1dc;
  --color-focus: #075e67;
  --font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--font-body);
}

body {
  font-family: var(--font-body);
}

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

.topbar {
  gap: 18px;
  background: rgba(250, 247, 242, 0.92);
  border-bottom-color: rgba(221, 215, 206, 0.82);
}

.mode-switch a {
  color: #40504e;
  font-size: 13px;
  font-weight: 500;
}

.mode-switch a:hover {
  color: var(--color-accent);
  background: rgba(255, 253, 249, 0.74);
}

.mode-switch a.active {
  color: var(--color-accent);
  border-color: rgba(8, 124, 137, 0.18);
  box-shadow: 0 4px 16px rgba(8, 124, 137, 0.08);
}

.city-select-label select {
  min-width: 68px;
  color: var(--color-accent);
  font-weight: 600;
  border-color: var(--color-line);
  background-color: var(--color-surface);
}

.top-status:empty {
  display: none;
}

.landing-proof {
  padding: 0;
  border-bottom: 0;
  background: var(--color-bg);
  color: var(--color-ink);
}

.landing-proof-inner {
  width: 100%;
  max-width: none;
  gap: 0;
}

.landing-hero-grid {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  gap: 48px;
  align-items: center;
  padding: 52px 0 42px;
}

.landing-hero-copy {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.landing-kicker {
  width: fit-content;
  margin: 0;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.landing-proof-lead {
  max-width: none;
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -.035em;
  text-wrap: wrap;
}

.landing-seo-copy {
  max-width: 54ch;
  margin: 0;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.55;
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-market-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 600;
}

.landing-market-filter select {
  width: 100%;
  min-height: 42px;
  padding: 0 38px 0 12px;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  color: var(--color-ink);
  background-color: rgba(255, 253, 249, .92);
  font: 600 13px/1.2 var(--font-body);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.landing-market-filter select:hover {
  border-color: rgba(8, 124, 137, .42);
  background-color: #fff;
}

.landing-cta {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--color-accent);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.landing-cta:hover {
  transform: translateY(-1px);
}

.landing-cta-primary {
  color: #fff;
  background: var(--color-accent);
  box-shadow: 0 10px 24px rgba(8, 124, 137, .18);
}

.landing-cta-primary:hover {
  color: #fff;
  background: var(--color-accent-hover);
}

.landing-cta-secondary {
  color: var(--color-accent);
  background: rgba(255, 253, 249, .72);
}

.landing-cta-secondary:hover {
  background: var(--color-accent-soft);
}

.landing-cta[aria-selected="false"] {
  color: var(--color-accent);
  background: rgba(255, 253, 249, .72);
  box-shadow: none;
}

.landing-cta[aria-selected="true"] {
  color: #fff;
  background: var(--color-accent);
  box-shadow: 0 10px 24px rgba(8, 124, 137, .18);
}

.landing-tool-panel {
  min-width: 0;
}

.landing-tool-panel[hidden] {
  display: none !important;
}

.landing-address-form {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(8, 124, 137, .18);
  border-radius: 16px;
  background: rgba(255, 253, 249, .88);
  box-shadow: 0 12px 34px rgba(30, 63, 61, .08);
}

.landing-address-form > label {
  color: var(--color-ink);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
}

.landing-address-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(88px, .7fr) minmax(98px, .8fr) auto;
  gap: 8px;
}

.landing-address-fields input,
.landing-address-fields button {
  min-width: 0;
  min-height: 46px;
  border-radius: 10px;
  font: inherit;
}

.landing-address-fields input {
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--color-line);
  color: var(--color-ink);
  background: #fff;
  font-size: 13px;
}

.landing-address-fields input:focus {
  outline: 3px solid rgba(8, 124, 137, .16);
  border-color: var(--color-accent);
}

.landing-address-fields button {
  padding: 0 17px;
  border: 1px solid var(--color-accent);
  color: #fff;
  background: var(--color-accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.landing-agent-mount {
  min-width: 0;
}

.landing-agent-mount .browse-agent-top {
  display: block;
  padding: 0;
}

.landing-agent-mount .listing-agent-panel {
  gap: 10px;
  margin: 0;
  padding: 14px;
  border-color: rgba(8, 124, 137, .18);
  border-radius: 16px;
  background: rgba(255, 253, 249, .88);
  box-shadow: 0 12px 34px rgba(30, 63, 61, .08);
}

.landing-agent-mount .ai-agent-intro p {
  color: #334340;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.landing-agent-mount .listing-agent-form {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.landing-agent-mount .human-input-shell {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
}

.landing-agent-mount .human-input-shell::before {
  width: 38px;
  height: 38px;
  align-self: center;
  background-size: 18px 18px;
  box-shadow: none;
}

.landing-agent-mount .listing-agent-form textarea {
  min-height: 54px;
  max-height: 96px;
  resize: none;
  padding: 9px 10px;
  border-color: var(--color-line);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  line-height: 1.35;
}

.listing-agent-form textarea:focus {
  outline: 3px solid rgba(8, 124, 137, .16);
  border-color: var(--color-accent);
}

.landing-agent-mount .listing-agent-form button {
  width: auto;
  min-width: 110px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--color-accent);
}

.landing-agent-mount .listing-agent-form button:hover {
  background: var(--color-accent-hover);
}

.listing-agent-form[aria-busy="true"] button {
  cursor: wait;
  opacity: .7;
}

.landing-trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 0;
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
}

.landing-trust-line span {
  display: inline-flex;
  align-items: center;
}

.landing-trust-line span:not(:last-child)::after {
  content: "·";
  margin: 0 8px;
  color: var(--color-data);
  font-weight: 600;
}

.landing-map-preview {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(221, 215, 206, .92);
  border-radius: 24px;
  background: var(--color-surface);
  box-shadow: 0 24px 60px rgba(28, 54, 52, .13);
}

.landing-map-preview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}

.landing-map-preview figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid rgba(221, 215, 206, .88);
  border-radius: 12px;
  background: rgba(255, 253, 249, .93);
  box-shadow: 0 10px 24px rgba(28, 54, 52, .10);
  backdrop-filter: blur(10px);
}

.landing-map-preview figcaption strong {
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 600;
}

.landing-map-preview figcaption span {
  color: var(--color-muted);
  font-size: 11px;
  white-space: nowrap;
}

.landing-market-card {
  min-width: 0;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(221, 215, 206, .92);
  border-radius: 24px;
  background: var(--color-surface);
  box-shadow: 0 24px 60px rgba(28, 54, 52, .13);
}

.landing-market-heading,
.landing-trend-heading,
.landing-source-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.landing-market-eyebrow {
  margin: 0 0 4px;
  color: var(--color-data);
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.landing-market-heading h2,
.landing-trend-heading h3,
.landing-source-heading h3 {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.02em;
}

.landing-market-heading h2 {
  font-size: 22px;
  line-height: 1.15;
}

.landing-market-filter--below-map {
  display: flex;
  align-items: center;
  width: min(100%, 240px);
  gap: 8px;
  margin-top: 8px;
}

.landing-market-filter--below-map > span {
  flex: 0 0 auto;
  font-size: 10px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.landing-market-filter--below-map select {
  flex: 1 1 auto;
  min-height: 34px;
  height: 34px;
  padding-left: 10px;
  font-size: 12px;
}

.landing-district-map-frame {
  position: relative;
  min-height: 310px;
  margin-top: 13px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: #f6f2eb;
}

.landing-district-map-frame svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 500;
}

.landing-map-loading {
  fill: var(--color-muted);
  font: 500 14px/1 var(--font-body);
}

.landing-map-district {
  stroke: rgba(255, 253, 249, .95);
  stroke-width: 1.7;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: fill .18s ease, opacity .18s ease, stroke-width .18s ease;
}

.landing-map-district:hover,
.landing-map-district:focus {
  opacity: .84;
  outline: none;
  stroke: var(--color-ink);
  stroke-width: 2.4;
}

.landing-map-district.is-selected {
  stroke: var(--color-ink);
  stroke-width: 3;
}

.landing-map-river {
  fill: none;
  stroke: #79c7d5;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .95;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

.landing-map-label {
  fill: #173b3c;
  font: 700 12px/1 var(--font-body);
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(255, 253, 249, .92);
  stroke-width: 4px;
  stroke-linejoin: round;
  pointer-events: none;
}

.landing-map-landmark {
  pointer-events: none;
}

.landing-map-landmark circle {
  fill: var(--color-surface);
  stroke: var(--color-data);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.landing-map-landmark path,
.landing-map-landmark rect {
  fill: var(--color-data);
}

.landing-map-landmark text {
  fill: var(--color-ink);
  font: 700 10px/1 var(--font-body);
  paint-order: stroke;
  stroke: rgba(255, 253, 249, .95);
  stroke-width: 3px;
}

.landing-map-legend {
  position: absolute;
  left: 12px;
  bottom: 12px;
  min-width: 150px;
  padding: 8px 10px;
  border: 1px solid rgba(221, 215, 206, .88);
  border-radius: 10px;
  background: rgba(255, 253, 249, .92);
  box-shadow: 0 8px 20px rgba(28, 54, 52, .08);
  backdrop-filter: blur(8px);
}

.landing-map-legend-bar {
  height: 6px;
  margin: 5px 0 3px;
  border-radius: 999px;
}

.landing-map-legend-title,
.landing-map-legend-scale {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--color-muted);
  font-size: 9px;
  line-height: 1.2;
}

.landing-map-legend-title {
  display: block;
  color: var(--color-ink);
  font-weight: 600;
}

.landing-district-summary {
  min-height: 52px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 0;
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--color-accent-soft);
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.4;
}

.landing-district-summary strong {
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 17px;
}

.landing-district-summary b {
  color: var(--color-data);
  font-size: 15px;
}

.landing-trend {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--color-line);
}

.landing-trend-heading h3,
.landing-source-heading h3 {
  font-size: 15px;
  line-height: 1.25;
}

.landing-trend-heading span,
.landing-source-heading span {
  color: var(--color-muted);
  font-size: 10px;
  line-height: 1.3;
  text-align: right;
}

.landing-trend svg {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 8px;
  overflow: visible;
}

.landing-chart-grid {
  stroke: #e4ded6;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.landing-chart-axis-label {
  fill: var(--color-muted);
  font: 500 10px/1 var(--font-body);
}

.landing-chart-line {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.landing-chart-area {
  fill: rgba(8, 124, 137, .10);
}

.landing-chart-point {
  fill: var(--color-surface);
  stroke: var(--color-data);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.landing-chart-value {
  fill: var(--color-ink);
  font: 700 10px/1 var(--font-body);
  text-anchor: middle;
  paint-order: stroke;
  stroke: var(--color-surface);
  stroke-width: 3px;
}

.landing-chart-empty {
  fill: var(--color-muted);
  font: 500 12px/1.4 var(--font-body);
}

.landing-source-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--color-line);
}

.landing-source-table-wrap {
  margin-top: 8px;
  overflow-x: auto;
}

.landing-source-panel table {
  width: 100%;
  border-collapse: collapse;
  color: var(--color-ink);
  font-size: 11px;
}

.landing-source-panel th,
.landing-source-panel td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
}

.landing-source-panel th:last-child,
.landing-source-panel td:last-child {
  text-align: right;
}

.landing-source-panel tbody td:last-child {
  color: var(--color-data);
  font-weight: 700;
}

.landing-market-method {
  margin: 10px 0 0;
  color: var(--color-muted);
  font-size: 9.5px;
  line-height: 1.45;
}

.landing-stats-strip {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  background: var(--color-surface);
  box-shadow: 0 10px 30px rgba(30, 63, 61, .06);
}

.landing-stats-strip li {
  min-width: 0;
  min-height: 88px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  padding: 24px 18px;
}

.landing-stats-strip li + li {
  border-left: 1px solid var(--color-line);
}

.landing-stats-strip strong {
  color: var(--color-data);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
}

.landing-stats-strip span {
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 500;
}

.landing-stat-updated {
  flex-wrap: wrap;
}

.landing-stat-updated span {
  flex-basis: 100%;
  text-align: center;
}

.landing-stat-updated strong {
  font-family: var(--font-body);
  font-size: 16px;
}

.landing-sample-card {
  width: min(1200px, calc(100% - 48px));
  margin: 30px auto 64px;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(360px, 1.14fr);
  gap: 48px;
  align-items: center;
  padding: 34px 38px;
  border: 1px solid var(--color-line);
  border-radius: 20px;
  background: var(--color-surface-soft);
}

.landing-sample-copy {
  min-width: 0;
}

.landing-sample-eyebrow {
  margin: 0 0 8px;
  color: var(--color-accent);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.landing-sample-card h2 {
  margin: 0 0 22px;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.02em;
}

.landing-sample-label {
  display: block;
  margin-bottom: 5px;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.3;
}

.landing-sample-value {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.landing-sample-value strong {
  color: var(--color-data);
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -.025em;
}

.landing-sample-value span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #943f35;
  background: var(--color-data-soft);
  font-size: 13px;
  font-weight: 600;
}

.landing-sample-context {
  max-width: 42ch;
  margin: 12px 0 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.5;
}

.landing-sparkline {
  min-width: 0;
  padding: 18px 20px 14px;
  border: 1px solid rgba(221, 215, 206, .92);
  border-radius: 16px;
  background: var(--color-surface);
}

.landing-sparkline-heading,
.landing-sparkline-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.landing-sparkline-heading span,
.landing-sparkline-labels {
  color: var(--color-muted);
  font-size: 11px;
  line-height: 1.35;
}

.landing-sparkline-heading strong {
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 600;
}

.landing-sparkline svg {
  display: block;
  width: 100%;
  height: auto;
  margin: 4px 0 0;
}

.sparkline-area {
  fill: url("#sampleSparkFill");
}

.sparkline-line {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sparkline-start {
  fill: var(--color-surface);
  stroke: var(--color-accent);
  stroke-width: 3;
}

.sparkline-end {
  fill: var(--color-data);
  stroke: var(--color-surface);
  stroke-width: 3;
}

.browse-agent-mount {
  grid-area: agent;
}

.workspace.browse-mode .browse-agent-mount .browse-agent-top {
  display: block;
}

.workspace.browse-mode .browse-agent-mount .listing-agent-panel {
  width: min(980px, 100%);
  margin: 0 auto;
}

.site-footer {
  border-top-color: var(--color-line);
  background: var(--color-bg);
}

.landing-cta:focus-visible,
.landing-market-filter select:focus-visible,
.mode-switch a:focus-visible,
.listing-agent-form button:focus-visible,
.listing-agent-form textarea:focus-visible,
.city-select-label select:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

@media (max-width: 1023px) {
  .landing-hero-grid {
    width: min(760px, calc(100% - 40px));
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    padding: 40px 0 34px;
  }

  .landing-proof-lead {
    max-width: none;
    font-size: 40px;
  }

  .landing-map-preview,
  .landing-market-card {
    width: 100%;
    max-width: 680px;
    justify-self: center;
  }

  .landing-stats-strip,
  .landing-sample-card {
    width: min(760px, calc(100% - 40px));
  }

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

  .landing-stats-strip li:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--color-line);
  }

  .landing-stats-strip li:nth-child(4) {
    border-top: 1px solid var(--color-line);
  }

  .landing-sample-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 767px) {
  .topbar {
    flex-wrap: wrap;
    gap: 8px 10px;
    padding: calc(9px + env(safe-area-inset-top, 0px)) 12px 8px;
    overflow: visible;
  }

  .brand img {
    height: 30px;
  }

  .mode-switch {
    order: 3;
    flex: 0 0 100vw;
    width: 100vw;
    max-width: 100vw;
    min-width: 0;
    margin: 0 -12px;
    padding: 0 12px 1px;
    gap: 4px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .mode-switch::-webkit-scrollbar {
    display: none;
  }

  .mode-switch a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 9px;
    font-size: 12.5px;
  }

  .city-select-label {
    margin-left: auto;
  }

  .top-status {
    display: none;
  }

  .landing-hero-grid,
  .landing-stats-strip,
  .landing-sample-card {
    width: min(100% - 28px, 620px);
  }

  .landing-hero-grid {
    gap: 28px;
    padding: 28px 0;
  }

  .landing-hero-copy {
    gap: 15px;
  }

  .landing-proof-lead {
    max-width: none;
    font-size: 34px;
    line-height: 1.06;
  }

  .landing-seo-copy {
    font-size: 15px;
  }

  .landing-map-preview {
    border-radius: 18px;
  }

  .landing-market-card {
    padding: 16px;
    border-radius: 18px;
  }

  .landing-district-map-frame {
    min-height: 0;
  }

  .landing-map-preview figcaption {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .landing-stats-strip li {
    min-height: 78px;
    padding: 19px 12px;
  }

  .landing-stats-strip strong {
    font-size: 21px;
  }

  .landing-sample-card {
    margin-top: 24px;
    margin-bottom: 40px;
    padding: 24px 20px;
  }

  .landing-sample-value strong {
    font-size: 32px;
  }

  .browse-agent-top {
    padding: 8px 14px 12px;
  }
}

@media (max-width: 419px) {
  .landing-kicker {
    font-size: 11px;
  }

  .landing-proof-lead {
    font-size: 32px;
  }

  .landing-hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-market-filter {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  .landing-cta {
    width: 100%;
  }

  .landing-agent-mount .listing-agent-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-agent-mount .listing-agent-form button {
    width: 100%;
  }

  .landing-agent-mount .human-input-shell {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .landing-agent-mount .human-input-shell::before {
    width: 32px;
    height: 32px;
  }

  .landing-address-fields {
    grid-template-columns: minmax(0, 1fr) minmax(86px, .65fr);
  }

  .landing-address-fields input:first-child {
    grid-column: 1 / -1;
  }

  .landing-address-fields button {
    grid-column: 1 / -1;
  }

  .landing-market-heading,
  .landing-trend-heading,
  .landing-source-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .landing-trend-heading span,
  .landing-source-heading span {
    text-align: left;
  }

  .landing-map-label {
    font-size: 11px;
  }

  .landing-district-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .landing-trust-line {
    display: grid;
    gap: 5px;
  }

  .landing-trust-line span:not(:last-child)::after {
    display: none;
  }

  .landing-map-preview figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

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

  .landing-stats-strip li {
    flex-direction: column;
    align-items: center;
    gap: 3px;
  }

  .landing-stat-updated {
    flex-wrap: nowrap;
  }

  .landing-stat-updated span {
    flex-basis: auto;
  }

  .landing-sparkline {
    padding: 14px 12px 11px;
  }
}

@media (max-width: 360px) {
  .landing-proof-lead {
    font-size: 31px;
  }

  .landing-stats-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-stats-strip li + li,
  .landing-stats-strip li:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--color-line);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-cta,
  .landing-map-district {
    transition: none;
  }

  .landing-cta:hover {
    transform: none;
  }
}

@media (prefers-contrast: more) {
  .landing-map-preview,
  .landing-market-card,
  .landing-stats-strip,
  .landing-sample-card,
  .landing-sparkline,
  .landing-agent-mount .listing-agent-panel {
    border-color: var(--color-ink);
  }
}
