/* Valuation pages (account-ui, design v2). Page-scoped classes only (vl-*): kit classes (.pt-btn, .pt-card, .pt-input, .pt-alert, .pt-badge) are NEVER redefined here.
   Tokens come from pt.css; fallbacks are the DESIGN_V2 values. */
.pt-valuation { --v-bg: var(--pt-gray-25, #fcfcfb); --v-surface: var(--pt-gray-0, #fff); --v-line: var(--pt-gray-200, #e4e4e0); --v-line-strong: var(--pt-gray-300, #d2d2cc);
  --v-text: var(--pt-gray-900, #171716); --v-text-2: var(--pt-gray-600, #55554f); --v-text-3: var(--pt-gray-500, #74746e);
  --v-red: var(--pt-red-600, #cf1f1d); --v-red-text: var(--pt-red-700, #ad1917); --v-red-soft: var(--pt-red-50, #fff1f1);
  --v-ring: var(--pt-ring, rgba(207, 31, 29, .38)); --v-radius: var(--pt-r-md, 12px);
  --v-ok: #15803d; --v-ok-bg: #ecfdf3; --v-warn: #8a4107; --v-warn-bg: #fffaeb; --v-info: #1d4ed8; --v-info-bg: #eff6ff; --v-bad: #9f1239; --v-bad-bg: #fff1f3; }
.pt-valuation main, .pt-valuation .pt-main { background: var(--v-bg); }
.vl-wrap { padding-block: 24px 72px; display: grid; gap: 20px; max-width: 760px; margin-inline: auto; }
.vl-wrap--wide { max-width: 960px; }
@media (min-width: 900px) { .vl-wrap { padding-block: 48px 96px; gap: 24px; } }
.vl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vl-head h1 { margin: 0 0 8px; font-size: 1.875rem; line-height: 1.15; font-weight: 800; letter-spacing: -.025em; }
@media (min-width: 900px) { .vl-head h1 { font-size: 2.25rem; } }
.vl-lead { color: var(--v-text-2); margin: 0; font-size: 1.0625rem; line-height: 1.55; max-width: 56ch; }
.vl-eyebrow { color: var(--v-red-text); margin: 0 0 8px; font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.vl-note { color: var(--v-text-2); font-size: .9375rem; margin: 12px 0 0; line-height: 1.5; }
.vl-help { color: var(--v-text-2); font-size: .8125rem; margin: 0; line-height: 1.45; }
.vl-error { color: var(--v-bad); font-weight: 600; font-size: .875rem; margin: 0; }

/* card surface */
.vl-card { background: var(--v-surface); border: 1px solid var(--v-line); border-radius: 20px; padding: 20px; }
@media (min-width: 900px) { .vl-card { padding: 32px; border-radius: 24px; } }
.vl-card > h2, .vl-card__h { margin: 0 0 12px; font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; }

/* form */
.vl-form { display: flex; flex-direction: column; gap: 32px; }
.vl-fs { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.vl-fs legend { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.0625rem; padding: 0; margin-bottom: 4px; }
.vl-step { width: 26px; height: 26px; border-radius: 50%; background: var(--v-red-soft); color: var(--v-red-text); font-size: .8125rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.vl-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vl-field > label { font-weight: 600; font-size: .9375rem; }
.vl-form .pt-input { min-height: 48px; }
.vl-grid2, .vl-grid3 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.vl-alert { display: flex; gap: 10px; padding: 14px 16px; border-radius: var(--v-radius); background: var(--v-bad-bg); border: 1px solid #fbcfd6; color: var(--v-bad); font-weight: 600; font-size: .9375rem; }
.vl-alert:focus { outline: 3px solid var(--v-ring); }
.vl-checks { display: flex; flex-wrap: wrap; gap: 10px; }
.vl-chip { position: relative; display: inline-flex; }
.vl-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.vl-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--v-line-strong); border-radius: 999px; background: var(--v-surface); font-weight: 600; font-size: .9375rem; transition: border-color .16s, background .16s, color .16s; }
.vl-chip:hover span { border-color: var(--pt-gray-400, #a3a39d); }
.vl-chip input:checked + span { background: var(--v-red-soft); border-color: var(--v-red); color: var(--v-red-text); }
.vl-chip input:focus-visible + span { outline: 3px solid var(--v-ring); outline-offset: 2px; }
.vl-listbox { list-style: none; margin: 0; padding: 4px; border: 1px solid var(--v-line-strong); border-radius: var(--v-radius); background: var(--v-surface); max-height: 260px; overflow: auto; box-shadow: var(--pt-shadow-md, 0 6px 20px -6px rgba(17,17,16,.12)); }
.vl-listbox li { min-height: 44px; display: flex; align-items: center; padding: 0 12px; cursor: pointer; border-radius: 8px; }
.vl-listbox li[aria-selected="true"], .vl-listbox li:hover { background: var(--v-red-soft); }
.vl-picked { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; padding: 10px 14px; border: 1px solid var(--v-line); border-radius: var(--v-radius); background: var(--v-bg); }
.vl-actions { display: flex; flex-direction: column; gap: 12px; }
.vl-loading { color: var(--v-info); font-weight: 600; margin: 0; }
.vl-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.vl-wrap a:focus-visible, .vl-wrap summary:focus-visible { outline: 3px solid var(--v-ring); outline-offset: 2px; border-radius: 4px; }

@media (min-width: 600px) {
  .vl-grid2 { grid-template-columns: 1fr 1fr; }
  .vl-grid3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* result hero */
.vl-hero { text-align: center; padding-block: 32px; }
@media (min-width: 900px) { .vl-hero { padding-block: 56px; } }
.vl-hero__k { margin: 0 0 8px; font-size: .9375rem; font-weight: 600; color: var(--v-text-2); }
.vl-range { font-size: clamp(2rem, 9.5vw, 3.75rem); font-weight: 800; margin: 0; line-height: 1.08; letter-spacing: -.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; color: var(--v-text); }
.vl-dash { color: var(--v-text-3); font-weight: 600; margin-inline: .08em; }
.vl-track { position: relative; max-width: 420px; height: 10px; margin: 28px auto 8px; border-radius: 999px; background: var(--pt-red-100, #ffe0df); }
.vl-track__fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--pt-red-200, #ffc7c5), var(--pt-red-500, #e5332f)); }
.vl-track__dot { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--v-surface); border: 4px solid var(--v-red); box-shadow: 0 2px 6px rgba(17,17,16,.2); }
.vl-mid { margin: 20px 0 0; color: var(--v-text-2); font-size: 1rem; }
.vl-mid strong { color: var(--v-text); font-variant-numeric: tabular-nums; }
.vl-conf { margin: 18px 0 0; }
.vl-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .875rem; background: var(--pt-gray-100, #efefec); color: var(--v-text); }
.vl-badge svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vl-conf--high { background: var(--v-ok-bg); color: var(--v-ok); }
.vl-conf--medium { background: var(--v-info-bg); color: var(--v-info); }
.vl-conf--low { background: var(--v-warn-bg); color: var(--v-warn); }
.vl-hero .vl-note { max-width: 52ch; margin-inline: auto; }
.vl-explain { font-size: 1.0625rem; line-height: 1.65; margin: 0; max-width: 62ch; }
.vl-warn { background: var(--v-warn-bg); border: 1px solid #fde4a8; color: var(--v-warn); border-radius: 20px; padding: 18px 20px; }
.vl-warn h2 { font-size: 1rem; margin: 0 0 8px; }
.vl-warn ul { margin: 0; padding-inline-start: 1.2em; line-height: 1.5; }

/* price points: three cards, one neutral hue, the market one accented */
.vl-pp { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.vl-pp__item { border: 1px solid var(--v-line); border-radius: 16px; padding: 18px; background: var(--v-bg); }
.vl-pp__item--market { background: var(--v-red-soft); border-color: var(--pt-red-200, #ffc7c5); }
.vl-pp__item h3 { margin: 0; font-size: .9375rem; font-weight: 700; color: var(--v-text-2); }
.vl-pp__price { font-size: 1.625rem; font-weight: 800; margin: 6px 0 2px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.vl-pp__time { font-weight: 700; margin: 0; }
.vl-pp__hint { margin: 6px 0 0; color: var(--v-text-2); font-size: .875rem; line-height: 1.45; }
@media (min-width: 700px) { .vl-pp { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* charts: one hue (neutral), the highlighted element in brand red; the table alternative sits right under */
.vl-fig { margin: 20px 0 0; }
.vl-fig figcaption { font-weight: 700; margin-bottom: 8px; }
.vl-svg { width: 100%; max-width: 560px; height: auto; display: block; margin-inline: auto; }
.vl-grid { stroke: var(--v-line); stroke-width: 1; }
.vl-tick { font-size: 10px; fill: var(--v-text-2); font-variant-numeric: tabular-nums; }
.vl-label { font-size: 11px; fill: var(--v-text-2); }
.vl-label--strong { fill: var(--v-text); font-weight: 700; }
.vl-bar { fill: var(--pt-gray-300, #d2d2cc); }
.vl-bar--mark { fill: var(--v-red); }
.vl-marker { stroke: var(--v-text); stroke-width: 2; stroke-dasharray: 5 3; }
.vl-whisker { stroke: var(--v-text); stroke-width: 2; }
.vl-tbar { fill: var(--pt-gray-300, #d2d2cc); }
.vl-svg rect.vl-tbar:nth-of-type(2) { fill: var(--v-red); }
.vl-svg rect.vl-tbar:nth-of-type(3) { fill: var(--pt-gray-500, #74746e); }
.vl-alt { margin-top: 12px; }
.vl-alt > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--v-red-text); font-weight: 600; }

/* comparables as cards */
.vl-comps { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
@media (min-width: 700px) { .vl-comps { grid-template-columns: 1fr 1fr; } }
.vl-comp { border: 1px solid var(--v-line); border-radius: 16px; padding: 16px; background: var(--v-surface); display: flex; flex-direction: column; gap: 4px; min-width: 0; transition: border-color .16s, box-shadow .16s; }
.vl-comp:hover { border-color: var(--v-line-strong); box-shadow: var(--pt-shadow-md, 0 6px 20px -6px rgba(17,17,16,.12)); }
.vl-comp__price { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.vl-comp__ppm { color: var(--v-text-2); font-size: .875rem; font-variant-numeric: tabular-nums; }
.vl-comp__title { font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; margin-top: 4px; }
.vl-comp__title a { color: var(--v-text); text-decoration: none; }
.vl-comp__title a:hover { color: var(--v-red-text); text-decoration: underline; }
.vl-comp__meta { color: var(--v-text-2); font-size: .875rem; line-height: 1.45; }
.vl-comp__tag { margin-top: auto; padding-top: 8px; font-size: .8125rem; color: var(--v-text-3); }
.vl-subh { margin: 24px 0 0; font-size: 1rem; font-weight: 700; }
.vl-tablewrap { overflow-x: auto; margin-block: 12px; border: 1px solid var(--v-line); border-radius: 12px; }
.vl-table { border-collapse: collapse; width: 100%; font-size: .9375rem; min-width: 460px; }
.vl-table caption { text-align: start; font-weight: 700; padding: 12px 16px 4px; }
.vl-table th, .vl-table td { padding: 10px 16px; border-bottom: 1px solid var(--v-line); text-align: start; vertical-align: top; }
.vl-table tr:last-child > * { border-bottom: 0; }
.vl-table thead th { background: var(--pt-gray-50, #f7f7f5); font-size: .8125rem; white-space: nowrap; color: var(--v-text-2); }
.vl-table .vl-num { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vl-adj { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.vl-adj li { display: flex; gap: 12px; align-items: baseline; line-height: 1.45; }
.vl-adj strong { font-variant-numeric: tabular-nums; min-width: 4em; }
.vl-adj small { color: var(--v-text-2); }
.vl-caveats { color: var(--v-text-2); font-size: .9375rem; line-height: 1.55; padding-inline: 4px; }
.vl-caveats h2 { font-size: 1rem; margin: 0 0 8px; color: var(--v-text); }
.vl-caveats ul { padding-inline-start: 1.2em; margin: 0 0 12px; }

/* call to action */
.vl-cta { display: flex; flex-direction: column; gap: 12px; text-align: center; align-items: center; }
.vl-cta .pt-btn--primary { width: 100%; }
.vl-cta__row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.vl-live { margin: 0; min-height: 1.2em; color: var(--v-ok); font-weight: 600; }
@media (min-width: 600px) { .vl-cta .pt-btn--primary { width: auto; min-width: 280px; } }

/* history */
.vl-hlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.vl-hrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--v-line); border-radius: 16px; background: var(--v-surface); text-decoration: none; color: var(--v-text); transition: border-color .16s, box-shadow .16s; min-height: 76px; }
.vl-hrow:hover { border-color: var(--v-line-strong); box-shadow: var(--pt-shadow-md, 0 6px 20px -6px rgba(17,17,16,.12)); color: var(--v-text); }
.vl-hrow__t { font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.vl-hrow__d { color: var(--v-text-2); font-size: .875rem; }
.vl-hrow__r { font-weight: 800; font-variant-numeric: tabular-nums; text-align: end; }
.vl-hrow__b { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.vl-empty { text-align: center; padding-block: 48px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.vl-empty h2 { margin: 0; }
.vl-empty p { color: var(--v-text-2); margin: 0 0 12px; }
@media (prefers-reduced-motion: reduce) { .vl-chip span, .vl-comp, .vl-hrow { transition: none; } }

/* ---- chat first (Amara, 17 Nov): the page uses the ui layout (amara/page.html: chat left / form right on desktop,
   full-screen chat + "Fill in the form" sheet on phones). Only the valuation's own extras live here. */
.vl-amextra { display: flex; align-items: center; gap: 20px; }
.vl-amextra__img { width: 160px; height: 100px; object-fit: cover; border-radius: 16px; box-shadow: var(--pt-shadow-md, 0 6px 20px -6px rgba(17,17,16,.12)); }
.vl-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; color: var(--v-text-2); font-size: .875rem; font-weight: 600; }
.vl-trust li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.vl-trust svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; color: var(--v-ok); }
.pt-valuation--chat .vl-form.vl-card { border: 0; padding: 0; background: transparent; }
.vl-carry { margin: 0 0 20px; display: grid; gap: 10px; }
.vl-carry > div { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--v-line); }
.vl-carry dt { color: var(--v-text-2); font-weight: 600; }
.vl-carry dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.vl-carry__form { margin: 0 0 8px; }
.vl-cta__form { width: 100%; margin: 0; }

/* result: a calmer, more modern hero (soft brand glow behind the range) */
.vl-hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, var(--pt-red-50, #fff1f1) 0%, var(--v-surface) 62%); box-shadow: var(--pt-shadow-md, 0 6px 20px -6px rgba(17,17,16,.12)); }
.vl-cta { background: linear-gradient(180deg, var(--v-surface), var(--pt-gray-50, #f7f7f5)); }
.vl-head--img { position: relative; padding: 24px 20px; border-radius: 20px; overflow: hidden; color: #fff; background: #1f1f1d var(--vl-hero) center / cover no-repeat; }
.vl-head--img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,17,16,.84), rgba(17,17,16,.55)); }
.vl-head--img > * { position: relative; }
.vl-head--img .vl-eyebrow { color: #ffd5d4; }
.vl-head--img h1 { color: #fff; }
@media (min-width: 900px) { .vl-head--img { padding: 36px 32px; border-radius: 24px; } }
