/* Guided valuation: the work stays left; one evolving profile stays right. */
.valuation-flow { display:block; padding:0; background:var(--canvas); scroll-margin-top:0; }
.valuation-flow[hidden] { display:none; }
.valuation-flow[data-current-step] { background:var(--canvas); }
.vf-workspace { display:grid; grid-template-columns:minmax(0,2fr) minmax(320px,1fr); min-height:calc(100svh - var(--site-header-height,75px)); }
.vf-workspace[data-profile-family="house"] { grid-template-columns:minmax(0,1.7fr) minmax(380px,1fr); }
.vf-main { display:flex; flex-direction:column; min-width:0; padding:30px clamp(24px,3.2vw,56px); }
.valuation-flow .vf-progress { margin:0 0 34px; }
.valuation-flow .vf-progress ol { grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; padding:0; }
.valuation-flow .vf-progress li { display:block; padding:0; font-size:var(--type-metadata); border-top:2px solid var(--ink-12); }
.vf-progress button { width:100%; display:flex; align-items:center; gap:7px; padding:12px 0 0; color:inherit; background:none; border:0; text-align:left; font:inherit; cursor:pointer; }
.vf-progress button:disabled { cursor:default; }
.valuation-flow .vf-progress li b { white-space:normal; font-weight:var(--weight-medium); }
.valuation-flow .vf-progress li span { display:grid; place-items:center; width:24px; height:24px; margin:0; flex:none; }
.valuation-flow .vf-progress li.is-current { color:var(--ink); border-color:var(--brick); }
.valuation-flow .vf-progress li.is-complete { color:var(--ink-70); border-color:var(--ink-40); }
.valuation-flow .vf-form { flex:1; display:flex; min-width:0; }
.valuation-flow .vf-step.is-active { display:flex; flex:1; flex-direction:column; align-items:stretch; min-width:0; gap:0; }
.valuation-flow .vf-step[hidden] { display:none; }
.valuation-flow .vf-heading { max-width:none; margin:0 0 26px; }
.valuation-flow .vf-step > .vf-heading { align-self:stretch; }
.valuation-flow .vf-heading h2 { font-size:var(--heading-size,var(--type-display)); line-height:var(--heading-line,var(--line-display)); letter-spacing:var(--heading-tracking,var(--tracking-editorial)); }
.valuation-flow .vf-heading p { font-size:var(--type-lead); margin:12px 0 0; line-height:var(--line-lead); }
.valuation-flow .vf-actions { flex:none; margin-top:auto; padding-top:26px; }
.valuation-flow .vf-actions .btn { min-height:48px; min-width:170px; }
.valuation-flow .vf-back { font-size:var(--type-ui); line-height:var(--line-ui);}
.vf-location-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(220px,.9fr); gap:32px; align-items:center; flex:1; }
.valuation-flow .canton-map--flow { grid-column:auto; grid-row:auto; width:100%; padding:0; }
.valuation-flow .canton-map--flow .canton-map__stage { width:100%; margin:auto; }
.valuation-flow .canton-map--flow .canton-map__svg { height:clamp(270px,43vh,410px); max-height:none; margin:0; }
.valuation-flow .vf-fields--location { grid-template-columns:1fr; gap:12px; margin:0; }
.valuation-flow .vf-fields--location .vf-field:last-child { grid-column:auto; }
.valuation-flow .vf-fields--core { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 24px; margin-top:6px; }
.valuation-flow .vf-fields--extras { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px 18px; }
.valuation-flow .vf-field { gap:6px; }
.valuation-flow .vf-field label { font-size:var(--type-body); font-weight:var(--weight-label); }
.valuation-flow .vf-field input,.valuation-flow .vf-field textarea,.valuation-flow .sel__btn { min-height:44px; font-size:var(--type-body); }
.valuation-flow .vf-error:empty { display:none; }
.valuation-flow .vf-error { margin-top:1px; font-size:var(--type-caption); }
.valuation-flow .vf-field.has-error .sel__btn { border-color:var(--brick); }
.valuation-flow .vf-field textarea { padding-bottom:24px; min-height:72px; }
.valuation-flow .vf-counter { bottom:6px; }
.vf-cellar { display:flex; align-items:center; gap:9px; margin:18px 0 16px; color:var(--ink); font-size:var(--type-metadata); cursor:pointer; }
.vf-cellar input { width:17px; height:17px; accent-color:var(--brick); }
.valuation-flow [data-vf-house-only][hidden],.valuation-flow [data-vf-apartment-only][hidden] { display:none; }
.valuation-flow .vf-types { gap:18px; margin-top:6px; }
.valuation-flow .vf-type__surface { height:100%; min-height:290px; padding:28px 18px 22px; align-items:flex-start; text-align:left; justify-content:flex-start; background:transparent; }
.valuation-flow .vf-type__surface > svg { width:100%; height:150px; stroke-width:1.5; }
.valuation-flow .vf-type__surface > strong { font-size:var(--type-h4); line-height:var(--line-h3); margin-top:20px; }
.valuation-flow .vf-type__surface > small { font-size:var(--type-caption); margin-top:10px; line-height:var(--line-caption); }
.valuation-flow .vf-type__surface > i { opacity:1; transform:none; background:transparent; border:1px solid var(--ink-12); color:transparent; width:24px; height:24px; }
.valuation-flow .vf-type > input:checked + .vf-type__surface { border-color:var(--brick); background:#fff5; }
.valuation-flow .vf-type > input:checked + .vf-type__surface > i { background:var(--brick); border-color:var(--brick); color:white; }
.valuation-flow .vf-choice-error { margin:10px 0 0; }
.valuation-flow .vf-choice-error:empty { display:none; }

.vf-profile { align-self:start; position:sticky; top:var(--site-header-height,75px); background:var(--ink); color:var(--ivory); max-height:calc(100svh - var(--site-header-height,75px)); overflow:auto; }
.vf-profile-inner { min-height:calc(100svh - var(--site-header-height,75px)); display:flex; flex-direction:column; padding:20px clamp(22px,2.6vw,44px); }
.vf-profile h2 { color:var(--ivory); font-family:var(--heading-family,var(--sans)); font-size:var(--heading-size,var(--type-h2-editorial)); font-weight:var(--heading-weight,var(--weight-heading)); line-height:var(--heading-line,var(--line-h2-editorial)); letter-spacing:var(--heading-tracking,var(--tracking-editorial)); margin:0 0 10px; }
.vf-profile-progress-label { margin:0 0 7px; color:var(--on-ink-65); font-size:var(--type-caption); line-height:var(--line-caption); }
.vf-profile-progress { display:flex; align-items:center; gap:14px; }
.vf-profile-progress progress { width:100%; height:5px; border:0; border-radius:8px; overflow:hidden; background:var(--on-ink-line); accent-color:var(--brick); }
.vf-profile-progress progress::-webkit-progress-bar { background:var(--on-ink-line); }
.vf-profile-progress progress::-webkit-progress-value { background:var(--brick); transition:width var(--motion-ui); }
.vf-profile-progress progress::-moz-progress-bar { background:var(--brick); }
.vf-profile-progress > span { flex:none; color:var(--on-ink-65); font-size:var(--type-caption); white-space:nowrap; }
.vf-profile-progress-prompt { min-height:1.4em; margin:8px 0 0; color:var(--on-ink-65); font-size:var(--type-caption); line-height:var(--line-caption); }
.vf-profile-progress-prompt[hidden] { display:none; }
.vf-profile-art { display:grid; place-items:center; width:100%; height:clamp(190px,26vh,250px); flex:none; margin:8px 0 8px; }
.vf-profile-art.has-property-sim { height:clamp(260px,36vh,350px); overflow:clip; }
.vf-profile-art > svg { grid-area:1/1; width:100%; height:100%; }
.vf-profile-art [hidden],.vf-profile [hidden] { display:none; }
.property-sim { position:relative; grid-area:1/1; width:auto; height:100%; aspect-ratio:1; max-width:100%; transform:scale(.84); }
/* Match visible building areas while leaving the shared plot at one scale. */
.property-sim[data-property-type="house"],.property-sim__layer--base img[data-sim-type="house"] { --sim-building-scale:.78; --sim-building-offset:-6%; }
.property-sim[data-property-type="apartment"],.property-sim__layer--base img[data-sim-type="apartment"] { --sim-building-scale:1.13; }
.property-sim[data-property-type="commercial"],.property-sim__layer--base img[data-sim-type="commercial"] { --sim-building-scale:1.1; }
.property-sim[data-property-type="farmhouse"],.property-sim__layer--base img[data-sim-type="farmhouse"] { --sim-building-scale:1.06; }
.property-sim[data-property-type="garage-parking"],.property-sim[data-property-type="investment-building"],.property-sim[data-property-type="land"],.property-sim__layer--base img[data-sim-type="garage-parking"],.property-sim__layer--base img[data-sim-type="investment-building"],.property-sim__layer--base img[data-sim-type="land"] { --sim-building-scale:1.11; }
.property-sim[data-property-type="mixed-use"],.property-sim__layer--base img[data-sim-type="mixed-use"] { --sim-building-scale:1.02; }
.property-sim[data-property-type="land"],.property-sim__layer--base img[data-sim-type="land"] { --sim-building-offset:1%; }
.property-sim__layer { position:absolute; inset:0; pointer-events:none; }
.property-sim__layer--view { overflow:visible; }
.property-sim__layer .property-sim__view { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; opacity:0; transition:opacity var(--motion-step) var(--ease); }
.property-sim__layer .property-sim__view.is-visible { opacity:.8; }
.property-sim__layer--plot { transform:scale(1.34); }
.property-sim__garden-plane { position:absolute; inset:0; opacity:0; transition:opacity var(--motion-step) var(--ease); }
.property-sim__garden-plane.is-visible { opacity:1; }
.property-sim__layer--context,.property-sim__layer--structural,.property-sim__layer--outdoor { transform:none; }
.property-sim__layer--location { transform:scale(.82); }
.property-sim__layer img { display:block; width:100%; height:100%; object-fit:contain; }
.property-sim__addon { position:absolute; inset:0; opacity:0; transition:opacity var(--motion-step) var(--ease); }
.property-sim__addon.is-visible { opacity:1; }
.property-sim__addon[data-addon="house-garden-trees"] { inset:auto; left:10%; top:24%; width:50%; height:48%; object-fit:contain; }
.property-sim__addon[data-addon="house-garden-front"] { inset:auto; left:20%; top:53%; width:20%; height:20%; object-fit:contain; }
.property-sim__addon[data-addon="house-garden-border"] { inset:auto; left:67%; top:44%; width:27%; height:27%; object-fit:contain; }
.property-sim__addon[data-addon="house-terrace"] { inset:auto; left:13%; top:49%; width:29%; height:29%; object-fit:contain; }
.property-sim__addon[data-addon="house-garage"] { inset:auto; left:66%; top:42%; width:30%; height:30%; object-fit:contain; }
/* Corrected additions share a 1600px canvas registered to the approved house render.
   This maps that canvas onto the house layer (door used as the anchor), then applies
   the house's own offset and scale, so each addition sits exactly against the house. */
.property-sim__addon[data-addon^="house-fit-"] { transform-origin:0 0; --sim-addon-adjust:translate(0,0); transform:translate(50%, calc(50% + var(--sim-building-offset))) scale(var(--sim-building-scale)) translate(-50%,-50%) translate(-41.9%,-28.7%) scale(1.7365) var(--sim-addon-adjust); }
.property-sim__addon[data-addon="house-rented-couple-dog"] { inset:auto; left:43%; top:60%; width:22%; height:25%; object-fit:contain; }
/* Trim the copied entrance steps at the facade's ground line so they cannot float outside the plot. */
.property-sim__addon[data-addon^="house-neighbor"] { --sim-building-scale:.78; transform-origin:50% 50%; filter:grayscale(1) brightness(1.75); clip-path:polygon(0 0,100% 0,100% 100%,55.8% 84.7%,21.6% 67%,0 67%); }
/* Join the side walls along the isometric street: the house's facade spans
   218px across and 115px down on its 640px canvas. Apply its .78 scale to both
   offsets so the three front facades share one continuous line. */
.property-sim__addon[data-addon="house-neighbor-left"] { transform:translate(-26.57%,calc(var(--sim-building-offset) - 14.02%)) scale(var(--sim-building-scale)); }
.property-sim__addon[data-addon="house-neighbor-right"] { transform:translate(26.57%,calc(var(--sim-building-offset) + 14.02%)) scale(var(--sim-building-scale)); }
.property-sim__addon[data-addon^="house-neighbor"].is-visible { opacity:.26; }
.property-sim__addon[data-addon="house-neighbor-left"] { -webkit-mask-image:linear-gradient(to right,transparent 18%,#000 52%); mask-image:linear-gradient(to right,transparent 18%,#000 52%); }
.property-sim__addon[data-addon="house-neighbor-right"] { -webkit-mask-image:linear-gradient(to left,transparent 18%,#000 52%); mask-image:linear-gradient(to left,transparent 18%,#000 52%); }
/* Lower the garage to the house's ground line. Enlarge the carport about its
   front post, keeping its roof below the main roof and its footprint on the plot. */
.property-sim__addon[data-addon="house-fit-garage"] { --sim-addon-adjust:translate(0,3.35%); }
.property-sim__addon[data-addon="house-fit-indoor-parking"] { --sim-addon-adjust:translate(-5.4%,-7.9%) scale(1.15); }
.property-sim[data-property-type="house"] .property-sim__layer--view .property-sim__view,
.property-sim[data-property-type="apartment"] .property-sim__layer--view .property-sim__view { transform:scale(1.18) translateY(-7%); }
.property-sim__addon[data-addon="apartment-garden-lush"] { inset:auto; left:5%; top:20%; width:58%; height:54%; object-fit:contain; }
.property-sim__addon[data-addon="apartment-balcony"] { transform:translate(5%,-3%) scaleX(-1) scale(.9); }
.property-sim__addon[data-addon="apartment-garage"] { inset:auto; left:61%; top:29%; width:39%; height:39%; object-fit:contain; }
.property-sim__addon[data-addon="apartment-rented-couple-dog"] { inset:auto; left:38%; top:60%; width:24%; height:28%; object-fit:contain; }
.property-sim__layout-label { position:absolute; top:0; right:2%; max-width:55%; padding:5px 10px; border:1px solid #a9c8da99; border-radius:999px; background:#e7f4fbf2; box-shadow:0 4px 14px #071d3d35; color:var(--ink); font:var(--weight-body) var(--type-caption)/var(--line-caption) var(--sans); text-align:center; opacity:0; transform:translateY(4px); transition:opacity var(--motion-step) var(--ease),transform var(--motion-step) var(--ease); }
.property-sim__layout-label.is-visible { opacity:1; transform:translateY(0); }
.property-sim__unit-overlay { position:absolute; inset:0; display:block; width:100%; height:100%; opacity:0; transform:translateY(-7%) scale(1.13); transform-origin:50% 50%; transition:opacity var(--motion-step) var(--ease); }
.property-sim__unit-overlay.is-visible { opacity:1; }
.property-sim__unit-highlight path { fill:#ffd278; fill-opacity:.75; stroke:#ffe6ad; stroke-width:1.6; stroke-linejoin:round; }
/* Road follows the plot's front-right edge. The framing stays fixed on every step. */
.property-sim__layer .property-sim__road { inset:auto; left:47.56%; top:57.81%; width:70.7%; height:45.41%; object-fit:contain; transform:rotate(-2.4deg); transform-origin:0 0; clip-path:polygon(0 70.5%,75.9% 0,84.3% 8%,84.6% 10.2%,99.8% 24.7%,99.8% 30.8%,23.1% 99.7%,0 77.1%); }
.property-sim__layer--base img { position:absolute; inset:0; --sim-building-offset:-7%; opacity:0; transform:translateY(var(--sim-building-offset)) scale(var(--sim-building-scale,.95)); transition:opacity var(--motion-step) var(--ease); }
.property-sim__layer--base img[data-sim-height="5"] { transform:translateY(-10%) scale(1.13); }
.property-sim__layer--base img[data-sim-height="8"] { transform:translateY(-10%) scale(1.13); }
.property-sim__layer--base img[data-sim-variant^="land-"] { transform:scale(1.34); }
/* Register the woodland ground's left, right and front corners to the plot.
   Its source ground is slightly taller and narrower than the shared diamond. */
.property-sim__layer--base img[data-sim-variant="land-woodland"] { transform:scale(1.34) translate(.4%,-3.45%) scale(1.042,.954); }
.property-sim__layer--base img.is-visible { opacity:1; }
.property-sim__location-pin { opacity:0; transform-origin:50% 72%; transform:translateY(-13.5%) scale(.65); transition:opacity var(--motion-step) var(--ease); }
.property-sim__location-pin.is-visible { opacity:1; }
.vf-profile-building { fill:none; stroke:var(--ivory); stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; --acc:var(--brick); }
.vf-profile-building [data-vf-feature]:not([hidden]) { animation:vf-extra-enter var(--motion-step) var(--ease) both; }
.vf-profile-context { flex:none; margin-top:18px; }
.vf-profile-location { color:var(--ivory); display:flex; align-items:center; gap:7px; font-size:var(--type-metadata); font-weight:var(--weight-label); line-height:var(--line-metadata); }
.vf-profile-location svg { width:15px; height:15px; flex:none; fill:none; stroke:currentColor; stroke-width:1.5; }
.vf-profile-type { margin-top:3px; color:var(--on-ink-65); font-size:var(--type-caption); line-height:var(--line-caption); }
.vf-profile-context small { display:block; margin-top:4px; color:var(--on-ink-65); font-size:var(--type-caption); line-height:var(--line-caption); }
.vf-profile-art { position:relative; }
.vf-profile-art.has-long-icon-rail { min-height:var(--profile-rail-height); }
.vf-profile-art.has-long-icon-rail .property-sim { height:min(100%,350px); }
.vf-profile[data-profile-family="house"] .vf-profile-art.has-long-icon-rail .property-sim { height:min(100%,430px); }
.vf-profile-icon-rail { display:none; position:absolute; z-index:2; top:50%; left:0; width:150px; max-height:100%; grid-template-columns:minmax(0,1fr); gap:3px; overflow:hidden; transform:translateY(-50%); }
.vf-profile-icon-rail:not([hidden]) { display:grid; }
.vf-profile-icon-rail > span { display:flex; align-items:center; justify-content:flex-start; gap:7px; width:100%; min-height:42px; padding:3px 5px; border:1px solid var(--on-ink-line); border-radius:7px; background:#0b244ba8; color:var(--ivory); }
.vf-profile-icon-rail svg { flex:none; width:32px; height:32px; padding:6px; border:1px solid #ffffff48; border-radius:6px; fill:none; stroke:var(--ivory); stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.vf-profile-icon-rail .vf-orientation-arrow { fill:#e6b97d; stroke:#d1a166; stroke-width:1; }
.vf-profile-icon-copy { display:flex; flex-direction:column; min-width:0; line-height:var(--line-caption); }
.vf-profile-icon-copy strong { font-size:var(--type-caption); font-weight:var(--weight-label); }
.vf-profile-icon-copy small { display:block; color:var(--on-ink-65); font-size:var(--type-caption); line-height:var(--line-caption); overflow-wrap:anywhere; }
.vf-profile-art.has-long-icon-rail .vf-profile-icon-rail { height:min(100%,calc(var(--profile-icon-count) * 43px)); grid-auto-rows:minmax(0,1fr); gap:2px; }
.vf-profile-art.has-long-icon-rail .vf-profile-icon-rail > span { min-height:0; height:100%; padding:2px 4px; overflow:hidden; }
.vf-profile-art.has-long-icon-rail .vf-profile-icon-copy small { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
.vf-profile[data-profile-family="apartment"] .property-sim { transform:translateX(4%) scale(.84); }
.vf-profile[data-profile-family="house"] .property-sim { transform:translateX(10%) scale(.82); }
.vf-profile-art.has-profile-icons .property-sim { transform:translateX(22%) scale(.84); }
.vf-profile[data-profile-family="house"] .vf-profile-art.has-property-sim { height:clamp(330px,46vh,430px); }
.vf-profile[data-profile-family="house"] .vf-profile-art.has-profile-icons .property-sim { transform:translateX(22%) scale(.82); }
.vf-profile[data-profile-family="apartment"] .vf-profile-art.has-profile-icons .property-sim { transform:translateX(26%) scale(.84); }
@media(max-width:480px) {
  .vf-profile-icon-rail { width:128px; }
  .vf-profile-art.has-profile-icons .property-sim { transform:translateX(26%) scale(.70); }
  .vf-profile[data-profile-family="apartment"] .vf-profile-art.has-profile-icons .property-sim { transform:translateX(26%) scale(.70); }
  .vf-profile[data-profile-family="house"] .vf-profile-art.has-profile-icons .property-sim { transform:translateX(16%) scale(.60); }
}
@media(max-width:760px) {
  .vf-profile-art.has-long-icon-rail .property-sim { height:min(100%,290px); }
  .vf-profile[data-profile-family="house"] .vf-profile-art.has-long-icon-rail .property-sim { height:min(100%,330px); }
}
.vf-profile[data-profile-family="house"] .vf-profile-stats { grid-auto-flow:row; grid-template-columns:repeat(3,minmax(0,1fr)); }
.vf-profile[data-profile-family="house"] .vf-profile-stats > div { flex-direction:column-reverse; padding:9px 4px; }
.vf-profile[data-profile-family="house"] .vf-profile-stats > div+div { border-left:0; }
.vf-profile[data-profile-family="house"] .vf-profile-stats > div:not(:nth-child(3n+1)) { border-left:1px solid var(--on-ink-line); }
.vf-profile[data-profile-family="house"] .vf-profile-stats > div:nth-child(n+4) { border-top:1px solid var(--on-ink-line); }
.vf-profile-summary { min-width:0; }
.vf-profile-stats { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); border:1px solid var(--on-ink-line); border-radius:var(--r); }
.vf-profile-stats>div { display:flex; flex-direction:column-reverse; align-items:center; justify-content:flex-end; gap:8px; min-width:0; padding:12px 4px; text-align:center; }
.vf-profile-stats>div+div { border-left:1px solid var(--on-ink-line); }
.vf-profile-stats dt { color:var(--on-ink-65); font-size:var(--type-caption); line-height:var(--line-caption); }
.vf-profile-stats dd { display:grid; place-items:center; min-height:28px; color:var(--ivory); font-size:var(--type-metadata); line-height:var(--line-metadata); font-weight:var(--weight-label); overflow-wrap:anywhere; }
.vf-profile-stats dd.vf-profile-grade { min-width:28px; padding:4px 7px; border-radius:3px; background:var(--ivory); color:var(--ink); }
.vf-profile-other { margin-top:12px; }
.vf-profile-other>div { display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1px solid var(--on-ink-line); font-size:var(--type-caption); line-height:var(--line-caption); }
.vf-profile-other dd { text-align:right; overflow-wrap:anywhere; }
.vf-profile-other dt { color:var(--on-ink-65); }
.vf-profile-extras { padding-top:16px; }
.vf-profile-extras h3 { margin:0 0 8px; color:var(--on-ink-65); font:var(--heading-weight,var(--weight-heading)) var(--heading-size,var(--type-h3))/var(--heading-line,var(--line-h3)) var(--heading-family,var(--sans)); letter-spacing:var(--heading-tracking,var(--tracking-heading)); text-transform:uppercase; }
.vf-profile-extras ul { display:flex; flex-wrap:wrap; gap:5px 0; }
.vf-profile-extras li { color:var(--ivory); font-size:var(--type-caption); line-height:var(--line-caption); }
.vf-profile-extras li:not(:last-child)::after { content:'·'; padding-inline:8px; color:var(--on-ink-65); }
.vf-profile-note { color:var(--on-ink-65); font-size:var(--type-caption); margin:auto 0 0; padding-top:24px; }
.vf-ready { color:var(--ivory); font-size:var(--type-metadata); text-align:center; padding:12px 0; margin:0; border-block:1px solid var(--on-ink-line); }
.vf-ready:not([hidden]) { animation:vf-ready-enter var(--motion-reveal) var(--ease) both; }
.vf-ready > span { display:inline-grid; place-items:center; width:22px; height:22px; margin-right:6px; border:1px solid #fff7; border-radius:50%; }
@keyframes vf-extra-enter { from { opacity:0; } to { opacity:1; } }
@keyframes vf-ready-enter { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:translateY(0); } }

/* One primary next step, with quiet ways to keep the estimate. */
.vf-estimate-layout { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr); gap:18px; align-items:stretch; }
.valuation-flow .vf-result { background:var(--ink); color:var(--ivory); border-left:4px solid var(--brick); padding:26px 24px; min-width:0; container-type:inline-size; }
.valuation-flow .vf-result > p { color:var(--on-ink-65); font-size:var(--type-caption); }
.valuation-flow .vf-result > strong { color:var(--ivory); font-size:var(--type-data); line-height:var(--line-data); margin-top:18px; letter-spacing:var(--tracking-heading); }
.valuation-flow .vf-result > strong span { display:inline-block; white-space:nowrap; }
.valuation-flow .vf-result > small.vf-result__basis { color:var(--on-ink-65); font-size:var(--type-caption); margin-top:14px; }
.valuation-flow .vf-result hr { background:var(--on-ink-line); margin:24px 0; }
.valuation-flow .vf-result ul { grid-template-columns:1fr 1fr; gap:22px 18px; padding:0; }
.valuation-flow .vf-result li b { color:var(--ivory); font-size:var(--type-caption); font-weight:var(--weight-medium); overflow-wrap:anywhere; }
.valuation-flow .vf-result li span { color:var(--on-ink-65); font-size:var(--type-caption); }
.vf-expert { padding:24px 22px; background:#ffffff65; border-top:2px solid var(--brick); border-radius:var(--r); display:flex; flex-direction:column; align-items:flex-start; }
.vf-expert-icon { width:40px; height:40px; fill:none; stroke:var(--ink); stroke-width:1.5; margin-bottom:16px; }
.vf-expert h2 { font-family:var(--heading-family,var(--sans)); font-size:var(--heading-size,var(--type-h2-editorial)); line-height:var(--heading-line,var(--line-h2-editorial)); letter-spacing:var(--heading-tracking,var(--tracking-editorial)); font-weight:var(--heading-weight,var(--weight-heading)); }
.vf-expert p { color:var(--ink-70); font-size:var(--type-body); line-height:var(--line-body); margin:12px 0 20px; }
.vf-expert .btn { width:100%; min-height:54px; padding:12px 16px; margin-top:auto; gap:10px; font-size:var(--type-ui); line-height:var(--line-ui); text-align:left; justify-content:space-between; white-space:normal; }
.vf-expert .btn svg { width:18px; height:18px; flex:none; transition:transform var(--motion-fast); }
.vf-expert .btn:hover svg { transform:translateX(3px); }
.vf-expert small { color:var(--ink-55); font-size:var(--type-caption); line-height:var(--line-caption); margin-top:12px; }
.vf-keep-estimate { display:flex; flex-wrap:wrap; align-items:center; gap:10px 20px; margin-top:20px; }
.vf-keep-estimate > span { font-size:var(--type-caption); color:var(--ink-70); }
.vf-quick-actions { display:flex; flex-wrap:wrap; gap:10px; }
.vf-quick-action { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:44px; padding:10px 14px; background:transparent; color:var(--ink); border:1px solid var(--ink-12); border-radius:var(--r); font:inherit; font-size:var(--type-ui); font-weight:var(--weight-medium); cursor:pointer; transition:background var(--motion-fast),border-color var(--motion-fast); }
.vf-quick-action:hover { background:var(--ink-08); border-color:var(--ink-40); }
.vf-quick-action:disabled { cursor:wait; opacity:.6; }
.vf-quick-action svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.vf-keep-estimate > small { color:var(--ink-55); font-size:var(--type-caption); flex-basis:100%; }
.vf-save-status { color:var(--ink-70); font-size:var(--type-caption); margin-top:8px; }
.vf-save-status:empty { display:none; }
.valuation-flow .vf-disclaimer { margin:18px 0 0; padding:14px 0 0; border:0; border-top:1px solid var(--ink-12); font-size:var(--type-caption); line-height:var(--line-caption); }
.vf-draft-note { color:var(--ink-55); font-size:var(--type-caption); text-align:right; }
@media(min-width:761px) and (max-width:1190px) {
  .vf-estimate-layout { grid-template-columns:1fr; }
  .vf-expert { display:grid; grid-template-columns:1fr 1fr; gap:8px 20px; }
  .vf-expert-icon { display:none; }
  .vf-expert h2,.vf-expert p { grid-column:1; }
  .vf-expert p { margin:0; }
  .vf-expert .btn { grid-column:2; grid-row:1/3; align-self:center; margin:0; }
  .vf-expert small { grid-column:2; margin:0; }
}
@media(min-width:1051px) and (max-height:780px) {
  .vf-main { padding-block:22px; }
  .valuation-flow .vf-progress { margin-bottom:22px; }
  .valuation-flow .vf-heading { margin-bottom:20px; }
  .valuation-flow .vf-heading h2 { font-size:var(--heading-size,var(--type-display)); }
  .valuation-flow .vf-heading p { margin-top:8px; font-size:var(--type-lead); }
  .valuation-flow .vf-type__surface { min-height:245px; padding-top:20px; }
  .valuation-flow .vf-type__surface > svg { height:120px; }
  .valuation-flow .vf-fields--extras { gap:10px 16px; }
  .valuation-flow .vf-actions { padding-top:20px; }
  .vf-profile-inner { padding-top:18px; }
  .vf-profile-art { height:175px; margin-block:12px 0; }
}
@media(max-width:1050px) {
  .vf-workspace { grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr); }
  .vf-workspace[data-profile-family="house"] { grid-template-columns:minmax(0,1.55fr) minmax(380px,1fr); }
  .vf-main { padding:26px 22px; }
  .valuation-flow .vf-progress ol { gap:6px; }
  .vf-progress button { gap:4px; flex-direction:column; align-items:flex-start; }
  .valuation-flow .vf-progress li { font-size:var(--type-metadata); }
  .valuation-flow .vf-progress li b { max-width:100%; hyphens:auto; overflow-wrap:anywhere; }
  .valuation-flow .vf-heading h2 { font-size:var(--heading-size,var(--type-display)); }
  .vf-location-layout { grid-template-columns:1fr; gap:18px; }
  .valuation-flow .canton-map--flow .canton-map__svg { height:230px; }
  .valuation-flow .vf-fields--location { grid-template-columns:1fr 1fr; }
  .valuation-flow .vf-fields--location .vf-field:last-child { grid-column:1/-1; }
  .valuation-flow .vf-types { gap:10px; }
  .valuation-flow .vf-type__surface { padding:28px 10px 18px; min-height:235px; }
  .valuation-flow .vf-type__surface > svg { height:95px; }
  .valuation-flow .vf-type__surface > strong { font-size:var(--type-h4); }
  .valuation-flow .vf-type__surface > small { font-size:var(--type-caption); }
  .valuation-flow .vf-fields--extras { grid-template-columns:1fr 1fr; }
}
@media(min-width:761px) and (max-width:900px) {
  .vf-workspace { display:flex; flex-direction:column; }
  .vf-main { min-height:0; padding:30px clamp(28px,5vw,48px) 36px; }
  .vf-location-layout { grid-template-columns:minmax(0,.9fr) minmax(0,1fr); gap:28px; }
  .valuation-flow .canton-map--flow .canton-map__svg { height:clamp(270px,36vw,330px); }
  .valuation-flow .vf-fields--location { grid-template-columns:1fr; }
  .valuation-flow .vf-fields--location .vf-field:last-child { grid-column:auto; }
  .vf-profile { position:static; width:100%; max-height:none; overflow:visible; }
  .vf-profile-inner { min-height:0; padding:28px clamp(28px,5vw,48px); }
  .vf-profile-art { height:220px; }
  .vf-profile-art.has-property-sim { height:260px; }
  .vf-profile-note { padding-top:20px; }
}
@media(max-width:760px) {
  .vf-workspace { display:flex; flex-direction:column; }
  .vf-main { padding:24px 20px 28px; }
  .valuation-flow .vf-progress { margin-bottom:26px; }
  .valuation-flow .vf-progress li,.valuation-flow .vf-progress li b { font-size:var(--type-metadata); line-height:var(--line-metadata); }
  .valuation-flow .vf-heading h2 { font-size:var(--heading-size,var(--type-display)); }
  .valuation-flow .vf-types { grid-template-columns:1fr; gap:12px; }
  .valuation-flow .vf-type__surface { display:grid; grid-template-columns:95px 1fr; grid-template-rows:auto auto; gap:0 18px; padding:15px 42px 15px 12px; min-height:114px; }
  .valuation-flow .vf-type__surface > svg { grid-column:1; grid-row:1/3; width:100%; height:85px; }
  .valuation-flow .vf-type__surface > strong { grid-column:2; margin:6px 0 0; font-size:var(--type-h4); }
  .valuation-flow .vf-type__surface > small { grid-column:2; margin-top:3px; font-size:var(--type-caption); }
  .valuation-flow .vf-actions { padding-top:26px; }
  .vf-profile { position:static; max-height:none; width:100%; overflow:visible; }
  .vf-profile-inner { min-height:0; padding:20px 24px; }
  .vf-profile h2 { font-size:var(--heading-size,var(--type-h2-editorial)); }
  .vf-profile-art { height:210px; }
  .vf-profile-art.has-property-sim { height:290px; }
  .vf-profile-note { padding-top:20px; }
  .vf-estimate-layout { grid-template-columns:1fr; }
  .vf-expert { padding:22px; }
  .vf-expert-icon { display:none; }
  .vf-expert .btn { font-size:var(--type-ui); }
  .vf-keep-estimate > span { flex-basis:100%; }
  .vf-draft-note { max-width:135px; }
}
@media(max-width:900px) {
  .valuation-flow .vf-field input:not([type="checkbox"]),
  .valuation-flow .vf-field select,
  .valuation-flow .vf-field textarea,
  .valuation-flow .sel__btn,
  .vf-request-controls > input { font-size:var(--type-body); }
}
@media(max-width:380px) {
  .valuation-flow .vf-fields--core,.valuation-flow .vf-fields--extras,.valuation-flow .vf-fields--location { grid-template-columns:1fr; }
  .valuation-flow .vf-fields--location .vf-field:last-child { grid-column:auto; }
  .valuation-flow .vf-type__surface { grid-template-columns:80px 1fr; gap:0 10px; }
  .valuation-flow .vf-result ul { grid-template-columns:1fr; }
}
@media(prefers-reduced-motion:reduce) {
  .valuation-flow * { animation:none!important; transition:none!important; }
}

/* Estimate: a complete result first, then a simple request on the page. */
.valuation-flow .vf-estimate-layout { grid-template-columns:1fr; gap:16px; }
.valuation-flow .vf-result { padding:22px 26px; }
.valuation-flow .vf-result > strong { display:flex; align-items:baseline; flex-wrap:wrap; gap:.18em; font-size:var(--type-data); margin-top:10px; line-height:var(--line-data); letter-spacing:var(--tracking-heading); }
.vf-value-range__dash { color:var(--on-ink-65); font-size:var(--type-body); }
.valuation-flow .vf-result > small.vf-result__basis { margin-top:10px; }
.valuation-flow .vf-result hr { margin:16px 0; }
.valuation-flow .vf-result ul { grid-template-columns:.5fr 1fr 1.5fr .55fr; gap:18px; }
.valuation-flow .vf-result li b { font-size:var(--type-caption); }
.valuation-flow .vf-expert { display:grid; grid-template-columns:minmax(180px,.7fr) minmax(0,1.3fr); gap:24px; padding:20px 24px; align-items:center; }
.valuation-flow .vf-expert h2 { font-size:var(--heading-size,var(--type-h2-editorial)); }
.valuation-flow .vf-expert p { font-size:var(--type-body); margin:10px 0 0; }
.vf-request-fields { min-width:0; border:0; padding:0; margin:0; }
.vf-request-fields > label { display:block; font-size:var(--type-body); font-weight:var(--weight-label); margin-bottom:7px; }
.vf-request-controls { display:flex; flex-wrap:wrap; gap:9px; }
.vf-request-controls > input { width:100%; min-width:0; height:42px; border:1px solid var(--ink-40); border-radius:var(--r); background:var(--canvas); color:var(--ink); font:inherit; font-size:var(--type-body); padding:10px 12px; }
.vf-request-controls > input[aria-invalid="true"] { border-color:var(--brick); }
.valuation-flow .vf-expert .btn { margin:0; min-height:44px; font-size:var(--type-ui); padding:10px 14px; }
.valuation-flow .vf-expert small { display:block; margin-top:8px; font-size:var(--type-caption); line-height:var(--line-caption); }
.vf-request-trap { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.valuation-flow .vf-expert .vf-request-status { font-size:var(--type-caption); line-height:var(--line-caption); margin:8px 0 0; color:var(--ink); }
.vf-request-status:empty { display:none; }
.vf-request-status[data-state="error"] { color:var(--brick)!important; }
.vf-request-fields:disabled .vf-request-controls { opacity:.65; }
.vf-request-fields.is-sent .vf-request-controls,.vf-request-fields.is-sent > label,.vf-request-fields.is-sent > small { display:none; }
.vf-request-fields.is-sent .vf-request-status { padding:14px; border-left:2px solid #177264; background:#1772640a; }
.valuation-flow [data-vf-step="5"].is-active .vf-value-range { animation:vf-value-reveal var(--motion-reveal) var(--ease) both; }
@keyframes vf-value-reveal { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
.valuation-flow [data-vf-step="5"] .vf-actions { padding-top:14px; margin-top:auto; }
.valuation-flow .vf-keep-estimate { margin-top:14px; gap:6px 16px; }
.valuation-flow .vf-disclaimer { margin-top:10px; padding-top:10px; max-width:none; }
@media(min-width:901px) {
  body.vf-calculator-open { overflow:hidden; height:100dvh; }
  body.vf-calculator-open .footer { display:none; }
  .vf-calculator-open .vf-workspace { height:calc(100dvh - var(--site-header-height,75px)); min-height:0; }
  .vf-calculator-open .vf-main { height:100%; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; }
  .vf-calculator-open .vf-profile { position:sticky; height:calc(100dvh - var(--site-header-height,75px)); max-height:none; overflow:hidden; }
  .vf-calculator-open .vf-profile-inner { min-height:0; height:100%; }
  .vf-calculator-open .vf-profile h2,.vf-calculator-open .vf-profile-progress,.vf-calculator-open .vf-ready,.vf-calculator-open .vf-profile-note { flex:none; }
  .vf-calculator-open .vf-profile-art { height:clamp(190px,26vh,250px); }
  .vf-calculator-open .vf-profile-art.has-property-sim { height:clamp(260px,36vh,350px); }
  .vf-calculator-open .vf-profile-summary { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#ffffff50 transparent; }
  .vf-calculator-open .vf-profile-note { padding-top:14px; }
  .vf-calculator-open .vf-progress { margin-bottom:22px; }
  .vf-calculator-open .vf-heading { margin-bottom:20px; }
  .vf-calculator-open [data-vf-step="5"] .vf-heading p { margin-top:8px; }
}
@media(min-width:901px) and (max-height:820px) {
  .vf-calculator-open .vf-main { padding-block:16px; }
  .vf-calculator-open .vf-progress { margin-bottom:16px; }
  .vf-calculator-open .vf-progress button { padding-top:8px; }
  .vf-calculator-open .vf-heading { margin-bottom:14px; }
  .vf-calculator-open .vf-heading h2 { font-size:var(--heading-size,var(--type-display)); }
  .vf-calculator-open [data-vf-step="5"] .vf-heading p { display:none; }
  .valuation-flow .vf-result { padding:16px 20px; }
  .valuation-flow .vf-result > strong { font-size:var(--type-data); }
  .valuation-flow .vf-result hr { margin:12px 0; }
  .valuation-flow .vf-expert { padding:14px 20px; gap:20px; }
  .valuation-flow .vf-expert h2 { font-size:var(--heading-size,var(--type-h2-editorial)); }
  .valuation-flow .vf-expert p { margin-top:8px; }
  .valuation-flow .vf-keep-estimate { margin-top:10px; }
  .valuation-flow .vf-keep-estimate > small { flex-basis:auto; }
  .vf-calculator-open .vf-profile-inner { padding-top:16px; padding-bottom:16px; }
  .vf-calculator-open .vf-profile h2 { margin-bottom:8px; }
  .vf-calculator-open .vf-profile-art { height:165px; margin-top:6px; }
  .vf-calculator-open .vf-profile-art.has-property-sim { height:235px; }
}
@media(min-width:761px) and (max-width:1100px) {
  .valuation-flow .vf-expert { grid-template-columns:1fr; gap:14px; }
  .valuation-flow .vf-expert-copy { display:flex; gap:16px; align-items:center; }
  .valuation-flow .vf-expert-copy > * { flex:1; }
  .valuation-flow .vf-result ul { grid-template-columns:1fr 1fr; }
}
@media(max-width:760px) {
  .valuation-flow .vf-expert { grid-template-columns:1fr; gap:18px; }
  .valuation-flow .vf-result { padding:22px; }
  .valuation-flow .vf-result > strong { font-size:var(--type-data); }
  .valuation-flow .vf-result ul { grid-template-columns:1fr 1fr; }
  .valuation-flow .vf-expert .btn { font-size:var(--type-ui); }
  .vf-request-controls > input { font-size:var(--type-body); }
}
@media(prefers-reduced-motion:reduce) {
  .valuation-flow [data-vf-step="5"].is-active .vf-value-range { animation:none; }
}
.valuation-flow { border-top:0; }
.valuation-flow [data-vf-step="5"] .vf-back { padding-block:4px; }
.valuation-flow [data-vf-step="5"] .vf-actions { padding-top:8px; }
@media(min-width:761px) and (max-height:820px) {
  .valuation-flow .vf-estimate-layout { gap:10px; }
  .valuation-flow .vf-result { padding-block:13px; }
  .valuation-flow .vf-expert { padding-block:12px; }
  .vf-calculator-open [data-vf-step="5"] .vf-heading { margin-bottom:10px; }
}

/* The illustration changes in place; property facts remain independently scrollable. */
.vf-profile-building [data-vf-scene="outlook"] { stroke:#92abc4; opacity:.45; stroke-width:1.3; }
.vf-profile-building .vf-scene-solid { fill:var(--ink); }
.vf-profile-building .vf-scene-context { stroke:#92abc4; }
.vf-profile-building .vf-scene-accent,
.vf-profile-building [data-vf-scene="condition"] { stroke:var(--brick); }
.vf-profile-building .vf-scene-selected-window { fill:rgba(198,36,30,.16); }
.vf-profile-building text { fill:var(--ivory); stroke:none; font:var(--weight-body) var(--type-body)/var(--line-body) var(--sans); }
.vf-profile-building [data-vf-scene="condition"] text { fill:#becbdd; }
.vf-profile-building [data-vf-scene="heating"] { stroke:#becbdd; stroke-width:1.4; }
.vf-profile-building .vf-scene-energy > path { fill:rgba(250,248,241,.08); stroke:#becbdd; }
.vf-profile-building [data-scene-energy] { font-size:var(--type-caption); font-weight:var(--weight-bold); }
.vf-profile-building [data-scene-area],.vf-profile-building [data-scene-year] { fill:#becbdd; }
.vf-profile-building[data-condition="gut"] [data-vf-scene="building"] { opacity:.55; }
.valuation-flow [data-vf-scopes][hidden] { display:none; }
@media(prefers-reduced-motion:reduce) {
  .property-sim__layer--base img,.property-sim__location-pin,.property-sim__addon,.property-sim__layer .property-sim__view,.property-sim__unit-overlay { transition:none; }
}
.vf-other-subtype { margin-top:20px; max-width:480px; }
.vf-result.is-review .vf-value-range { font-size:var(--type-data); }
.vf-result.is-review .vf-value-range__dash { display:none; }

/* Related questions share a quiet heading, rather than a wall of inputs. */
.vf-label-icon { width:15px; height:15px; flex:none; display:inline-block; vertical-align:-2px; margin-right:7px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; color:var(--ink-70); }
.valuation-flow .vf-grouped-fields { grid-template-columns:1fr; gap:18px; }
.vf-question-group { min-width:0; margin:0; padding:0; border:0; }
.vf-question-group[hidden] { display:none; }
.vf-question-group > legend { display:block; width:100%; margin:0 0 10px; padding:0 0 7px; border-bottom:1px solid var(--ink-12); font-size:var(--type-caption); font-weight:var(--weight-label); color:var(--ink-70); letter-spacing:var(--tracking-body); }
.vf-group-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:12px 20px; }
.vf-group-fields > * { min-width:0; }
.valuation-flow .vf-fields--extras.vf-grouped-fields { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 26px; }
.valuation-flow [data-property-family="apartment"] .vf-fields--extras [data-vf-group="outdoor"] { grid-column:1/-1; }
.vf-fields--extras [data-vf-group="building"],.vf-fields--extras [data-vf-group="land"] { grid-column:1/-1; }
.vf-fields--extras [data-vf-group="building"] .vf-group-fields { grid-template-columns:repeat(4,minmax(0,1fr)); }
.vf-fields--extras [data-vf-group="building"][data-visible-fields="1"] .vf-group-fields,
.vf-fields--extras [data-vf-group="building"][data-visible-fields="2"] .vf-group-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
.vf-fields--extras [data-vf-group="land"] .vf-group-fields { grid-template-columns:repeat(3,minmax(0,1fr)); }
.vf-group-fields .vf-cellar { margin:0; align-self:end; min-height:44px; padding-bottom:2px; font-size:var(--type-metadata); gap:7px; }
.vf-group-fields .vf-cellar .vf-label-icon { margin-right:0; }
.valuation-flow .vf-field--garden .vf-check { display:flex; align-items:center; gap:9px; min-height:58px; padding:11px 13px; border:1px solid var(--ink-12); border-radius:var(--r); background:#fff; color:var(--ink); cursor:pointer; }
.valuation-flow .vf-field--garden .vf-check input { flex:none; width:18px; height:18px; min-height:18px; margin:0; accent-color:var(--brick); }
.valuation-flow .vf-field--garden .vf-check:has(input:checked) { border-color:var(--brick); background:var(--ivory-deep); }
.valuation-flow .vf-field--garden .vf-check:focus-within { outline:2px solid var(--brick); outline-offset:2px; }
.valuation-flow .vf-field--garden .vf-label-icon { margin:0 2px 0 0; }
.vf-group-fields .sel__val { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.vf-group-fields .sel__btn > svg { flex:none; }
.valuation-flow [data-vf-step="4"] > .vf-field--description { margin-top:16px; }
@media (max-width:1100px) {
  .valuation-flow .vf-fields--extras.vf-grouped-fields { grid-template-columns:1fr; }
  .vf-fields--extras [data-vf-group="building"] .vf-group-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:560px) {
  .vf-group-fields { gap:12px 14px; }
  .vf-fields--extras [data-vf-group="land"] .vf-group-fields { grid-template-columns:1fr; }
  .vf-question-group .vf-field label { font-size:var(--type-body); }
  .vf-label-icon { width:14px; height:14px; margin-right:5px; }
}
@media (min-width:1101px) and (max-height:820px) {
  .valuation-flow .vf-fields--extras.vf-grouped-fields { gap:12px 24px; }
  .vf-question-group > legend { margin-bottom:7px; padding-bottom:5px; }
  .valuation-flow [data-vf-step="4"] > .vf-field--description { margin-top:12px; }
  .valuation-flow [data-vf-step="4"] textarea { height:60px; min-height:60px; }
}
@media (max-width:560px) {
  .valuation-flow .vf-question-group[data-visible-fields="1"] .vf-group-fields { grid-template-columns:1fr; }
  /* Questions whose answers are long take the full width on a phone. */
  .vf-group-fields > .vf-field:has(#vf-view),
  .vf-group-fields > .vf-field:has(#vf-streetQuality),
  .vf-group-fields > .vf-field:has(#vf-plotUsability),
  .vf-group-fields > .vf-field:has(#vf-constructionStandard),
  .vf-group-fields > .vf-field:has(#vf-occupancy) { grid-column:1/-1; }
}

/* Other is a visual choice, not a dropdown covering the family cards. */
.valuation-flow .vf-residential-subtype { width:100%; margin-top:24px; gap:12px; }
.valuation-flow .vf-residential-subtype>label { font-size:var(--type-body); font-weight:var(--weight-label); }
.vf-residential-choices { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.vf-residential-choice { display:flex; align-items:center; gap:12px; min-width:0; min-height:72px; padding:14px 16px; border:1px solid var(--ink-12); border-radius:5px; background:transparent; color:var(--ink); text-align:left; font:inherit; cursor:pointer; transition:border-color var(--motion-fast),background var(--motion-fast); }
.vf-residential-choice strong { font-size:var(--type-metadata); line-height:var(--line-metadata); font-weight:var(--weight-label); }
.vf-residential-choice__check { display:grid; place-items:center; width:18px; height:18px; flex:none; border:1px solid var(--ink-12); border-radius:50%; color:transparent; font-size:var(--type-caption); }
.vf-residential-choice:hover { border-color:var(--ink-40); background:var(--paper); }
.vf-residential-choice[aria-checked="true"] { border-color:var(--brick); background:var(--paper); }
.vf-residential-choice[aria-checked="true"] .vf-residential-choice__check { background:var(--brick); border-color:var(--brick); color:#fff; }
.vf-residential-choice:focus-visible { outline:2px solid var(--ink); outline-offset:3px; }
.vf-residential-subtype.has-error .vf-residential-choices { outline:1px solid var(--brick); outline-offset:4px; border-radius:5px; }
@media (min-width:761px) {
  .valuation-flow .vf-form[data-property-family="house"] .vf-type__surface,.valuation-flow .vf-form[data-property-family="apartment"] .vf-type__surface { min-height:170px; padding-block:16px; }
  .valuation-flow .vf-form[data-property-family="house"] .vf-type__surface>svg,.valuation-flow .vf-form[data-property-family="apartment"] .vf-type__surface>svg { height:85px; }
  .valuation-flow .vf-form[data-property-family="house"] .vf-type__surface>strong,.valuation-flow .vf-form[data-property-family="apartment"] .vf-type__surface>strong { margin-top:8px; font-size:var(--type-h4); }
  .valuation-flow .vf-form[data-property-family="house"] .vf-type__surface>small,.valuation-flow .vf-form[data-property-family="apartment"] .vf-type__surface>small { display:none; }
}
.valuation-flow .vf-other-subtype { max-width:none; width:100%; margin-top:24px; gap:12px; }
.valuation-flow .vf-other-subtype>label { font-size:var(--type-body); font-weight:var(--weight-label); }
.vf-subtype-choices { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.vf-subtype-choice { position:relative; display:flex; flex-direction:column; align-items:flex-start; padding:18px 12px 15px; min-width:0; border:1px solid var(--ink-12); border-radius:5px; background:transparent; color:var(--ink); text-align:left; font:inherit; cursor:pointer; transition:border-color var(--motion-fast),background var(--motion-fast); }
.vf-subtype-choice>svg { display:block; width:100%; height:80px; margin:6px auto 12px; flex:none; }
.vf-subtype-choice .vf-scene-accent { stroke:var(--brick); }
.vf-subtype-choice>strong { font-size:var(--type-metadata); line-height:var(--line-metadata); font-weight:var(--weight-label); }
.vf-subtype-choice>small { display:block; font-size:var(--type-caption); line-height:var(--line-caption); margin-top:6px; color:var(--ink-70); }
.vf-subtype-choice__check { position:absolute; top:9px; right:9px; display:grid; place-items:center; width:17px; height:17px; border:1px solid var(--ink-12); border-radius:50%; color:transparent; font-size:var(--type-caption); }
.vf-subtype-choice:hover { border-color:var(--ink-40); background:var(--paper); }
.vf-subtype-choice[aria-checked="true"] { border-color:var(--brick); background:var(--paper); }
.vf-subtype-choice[aria-checked="true"] .vf-subtype-choice__check { background:var(--brick); border-color:var(--brick); color:white; }
.vf-subtype-choice:focus-visible { outline:2px solid var(--ink); outline-offset:3px; }
.vf-other-subtype.has-error .vf-subtype-choices { outline:1px solid var(--brick); outline-offset:4px; border-radius:5px; }
.valuation-flow .vf-form[data-property-family="other"] .vf-type__surface { display:flex; flex-direction:row; align-items:center; justify-content:flex-start; gap:10px; padding:16px 28px 16px 12px; min-height:90px; }
.valuation-flow .vf-form[data-property-family="other"] .vf-type__surface>svg { width:60px; height:56px; }
.valuation-flow .vf-form[data-property-family="other"] .vf-type__surface>strong { margin:0; font:var(--weight-heading) var(--type-h4)/var(--line-h3) var(--sans); }
.valuation-flow .vf-form[data-property-family="other"] .vf-type__surface>small { display:none; }
.valuation-flow .vf-form[data-property-family="other"] .vf-type__surface>i { width:17px; height:17px; font-size:var(--type-caption); top:9px; right:9px; }
@media (min-width:761px) and (max-width:1100px) {
 .vf-subtype-choices { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .vf-subtype-choice>svg { height:55px; }
 .valuation-flow .vf-form[data-property-family="other"] .vf-type__surface { flex-direction:column; gap:4px; }
}
@media (max-width:760px) {
 .vf-residential-choices { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .vf-residential-choice { min-height:64px; padding:12px; }
 .valuation-flow .vf-form[data-property-family="other"] .vf-types { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
 .valuation-flow .vf-form[data-property-family="other"] .vf-type__surface { flex-direction:column; padding:22px 6px 12px; gap:4px; }
 .valuation-flow .vf-form[data-property-family="other"] .vf-type__surface>strong { font-size:var(--type-h4); }
 .vf-subtype-choices { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
 .vf-subtype-choice { padding:15px; }
 .vf-subtype-choice>svg { height:70px; }
}
@media (prefers-reduced-motion:reduce) { .vf-subtype-choice,.vf-residential-choice { transition:none; } }

/* Final step: result, expert request, then a single save/share row. */
.valuation-flow [data-vf-step="5"] .vf-estimate-layout { grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr); gap:16px; }
.valuation-flow [data-vf-step="5"] .vf-result { display:flex; flex-direction:column; justify-content:center; padding:28px 24px; }
.valuation-flow [data-vf-step="5"] .vf-result>strong { font-size:var(--type-data); margin-top:20px; line-height:var(--line-data); }
.valuation-flow [data-vf-step="5"] .vf-result.is-review>strong { font-size:var(--type-data); }
.valuation-flow [data-vf-step="5"] .vf-result>small.vf-result__basis { font-size:var(--type-caption); margin-top:16px; }
.valuation-flow [data-vf-step="5"] .vf-result hr { margin:26px 0 18px; }
.valuation-flow [data-vf-step="5"] .vf-result ul { grid-template-columns:.85fr 1.25fr 1fr .8fr; gap:12px; align-items:start; }
.valuation-flow [data-vf-step="5"] .vf-result li b { font-size:var(--type-caption); line-height:var(--line-caption); overflow-wrap:normal; }
.valuation-flow [data-vf-step="5"] .vf-expert { display:flex; flex-direction:column; align-items:stretch; justify-content:center; gap:22px; padding:26px 22px; }
.valuation-flow [data-vf-step="5"] .vf-expert-copy { display:block; }
.valuation-flow [data-vf-step="5"] .vf-expert h2 { font-size:var(--heading-size,var(--type-h2-editorial)); line-height:var(--heading-line,var(--line-h2-editorial)); }
.valuation-flow [data-vf-step="5"] .vf-expert-copy p { font-size:var(--type-body); margin:12px 0 0; line-height:var(--line-body); }
.valuation-flow [data-vf-step="5"] .vf-expert .btn { font-size:var(--type-ui); padding:12px; min-height:48px; }
.valuation-flow [data-vf-step="5"] .vf-expert small { font-size:var(--type-caption); }
.vf-estimate-info { margin:12px 0 0; font-size:var(--type-caption); color:var(--ink-70); }
.vf-estimate-info summary { display:flex; align-items:center; gap:8px; list-style:none; width:fit-content; cursor:pointer; min-height:32px; color:var(--ink-70); }
.vf-estimate-info summary::-webkit-details-marker { display:none; }
.vf-estimate-info summary::before { content:'+'; font-size:var(--type-body); color:var(--brick); }
.vf-estimate-info[open] summary::before { content:'−'; }
.vf-estimate-info summary:focus-visible { outline:2px solid var(--ink); outline-offset:3px; }
.vf-estimate-info p { max-width:680px; font-size:var(--type-body); line-height:var(--line-body); padding:6px 0 10px 20px; }
.valuation-flow [data-vf-step="5"] .vf-keep-estimate { border-top:1px solid var(--ink-12); padding-top:18px; margin-top:18px; justify-content:space-between; gap:12px 20px; }
.valuation-flow [data-vf-step="5"] .vf-keep-estimate>span { font-size:var(--type-metadata); font-weight:var(--weight-label); color:var(--ink); }
.valuation-flow [data-vf-step="5"] .vf-result-footer { display:flex; align-items:center; gap:20px; padding-top:26px; }
.valuation-flow .vf-result-footer .vf-disclaimer { border:0; padding:0; margin:0; font-size:var(--type-caption); max-width:420px; text-align:right; color:var(--ink-70); }
.valuation-flow .vf-result-footer .vf-back { white-space:nowrap; }
@media (min-width:761px) and (max-width:1190px) {
 .valuation-flow [data-vf-step="5"] .vf-estimate-layout { grid-template-columns:1fr; }
 .valuation-flow [data-vf-step="5"] .vf-expert { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
 .valuation-flow [data-vf-step="5"] .vf-result { padding:24px; }
}
@media (max-width:760px) {
 .valuation-flow [data-vf-step="5"] .vf-estimate-layout { grid-template-columns:1fr; }
 .valuation-flow [data-vf-step="5"] .vf-result { padding:26px 20px; }
 .valuation-flow [data-vf-step="5"] .vf-result ul { grid-template-columns:1fr 1fr; gap:12px 20px; }
 .valuation-flow [data-vf-step="5"] .vf-result>strong { font-size:var(--type-data); }
 .valuation-flow [data-vf-step="5"] .vf-result-footer { flex-direction:column; align-items:flex-start; gap:16px; padding-top:30px; }
 .valuation-flow .vf-result-footer .vf-disclaimer { text-align:left; }
}
.valuation-flow [data-vf-step="5"] .vf-result:not(.is-review)>strong { font-size:var(--type-data); }
.valuation-flow [data-vf-step="5"] .vf-result>small.vf-result__basis,.valuation-flow [data-vf-step="5"] .vf-result li b { font-size:var(--type-caption); }
@media (min-width:901px) and (max-height:820px) {
  .vf-calculator-open .vf-profile[data-profile-family="house"] .vf-profile-art.has-property-sim { height:330px; }
}

/* The estimate step reunites the completed profile and the value on one blue canvas. */
body.vf-estimate-reveal { height:auto; overflow:auto; background:var(--ink); }
.valuation-flow[data-current-step="5"] { min-height:calc(100dvh - var(--site-header-height,75px)); background:var(--ink); color:var(--ivory); transition:background-color .55s var(--ease); }
.valuation-flow[data-current-step="5"] .vf-workspace { display:grid; grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr); align-items:center; gap:clamp(28px,4vw,72px); width:100%; max-width:1560px; height:auto; min-height:calc(100dvh - var(--site-header-height,75px)); margin-inline:auto; padding:clamp(28px,3.4vw,58px); background:radial-gradient(ellipse 58% 65% at 35% 47%,var(--ink-raised) 0%,var(--ink) 76%); }
.valuation-flow[data-current-step="5"] .vf-progress { display:none; }
.valuation-flow[data-current-step="5"] .vf-profile { grid-column:1; grid-row:1; justify-self:end; position:relative; top:auto; width:100%; max-width:650px; height:auto; max-height:none; overflow:visible; border:1px solid var(--on-ink-line); border-radius:14px; background:var(--ink-raised); box-shadow:0 18px 48px #06173335; }
.valuation-flow[data-current-step="5"] .vf-profile-inner { height:auto; min-height:0; padding:26px clamp(22px,2.5vw,36px); }
.valuation-flow[data-current-step="5"] .vf-profile-art.has-property-sim,.vf-calculator-open .valuation-flow[data-current-step="5"] .vf-profile-art.has-property-sim,.vf-calculator-open .valuation-flow[data-current-step="5"] .vf-profile[data-profile-family="house"] .vf-profile-art.has-property-sim { height:clamp(290px,29vw,370px); }
.valuation-flow[data-current-step="5"] .vf-profile-summary { flex:none; min-height:0; overflow:visible; }
.valuation-flow[data-current-step="5"] .vf-profile-note { margin-top:0; padding-top:16px; }
.valuation-flow[data-current-step="5"] .vf-main { grid-column:2; grid-row:1; justify-self:start; width:100%; max-width:630px; height:auto; min-height:0; padding:0; overflow:visible; animation:vf-finale-result .8s .14s cubic-bezier(.2,.75,.2,1) both; }
.valuation-flow[data-current-step="5"] .vf-form { display:block; }
.valuation-flow[data-current-step="5"] .vf-heading { margin-bottom:20px; }
.valuation-flow[data-current-step="5"] .vf-heading h2 { color:var(--ivory); font-size:var(--heading-size,var(--type-display)); }
.valuation-flow[data-current-step="5"] .vf-heading h2:focus { outline:none; }
.valuation-flow[data-current-step="5"] .vf-result { padding:0; border:0; background:transparent; color:var(--ivory); }
.valuation-flow[data-current-step="5"] .vf-result > p { color:var(--on-ink-65); font-size:var(--type-caption); letter-spacing:var(--tracking-body); text-transform:uppercase; }
.valuation-flow[data-current-step="5"] .vf-result > strong { margin-top:12px; color:var(--ivory); font-size:var(--type-data); line-height:var(--line-data); }
.valuation-flow[data-current-step="5"] .vf-result > small.vf-result__basis { margin-top:14px; color:var(--on-ink-65); }
.valuation-flow[data-current-step="5"] .vf-result hr,.valuation-flow[data-current-step="5"] .vf-result ul { display:none; }
.valuation-flow[data-current-step="5"] .vf-estimate-layout { display:grid; grid-template-columns:1fr; gap:28px; }
.valuation-flow[data-current-step="5"] .vf-expert { display:block; padding:22px 24px; border:1px solid var(--on-ink-line); border-radius:10px; background:#ffffff0b; }
.valuation-flow[data-current-step="5"] .vf-expert h2 { color:var(--ivory); font-size:var(--heading-size,var(--type-h2-editorial)); }
.valuation-flow[data-current-step="5"] .vf-expert p { color:var(--on-ink-65); font-size:var(--type-body); margin:8px 0 16px; }
.valuation-flow[data-current-step="5"] .vf-expert .vf-request-fields > label { color:var(--ivory); }
.valuation-flow[data-current-step="5"] .vf-expert small { color:var(--on-ink-65); }
.valuation-flow[data-current-step="5"] .vf-expert .vf-request-status { color:var(--ivory); }
.valuation-flow[data-current-step="5"] .vf-estimate-info,.valuation-flow[data-current-step="5"] .vf-estimate-info summary,.valuation-flow[data-current-step="5"] .vf-estimate-info p { color:var(--on-ink-65); }
.valuation-flow[data-current-step="5"] .vf-estimate-info summary:focus-visible { outline-color:var(--ivory); }
.valuation-flow[data-current-step="5"] .vf-keep-estimate { border-top-color:var(--on-ink-line); }
.valuation-flow[data-current-step="5"] .vf-keep-estimate > span { color:var(--ivory); }
.valuation-flow[data-current-step="5"] .vf-quick-action { color:var(--ivory); border-color:#ffffff45; }
.valuation-flow[data-current-step="5"] .vf-quick-action:hover { background:#ffffff16; border-color:#ffffff88; }
.valuation-flow[data-current-step="5"] .vf-result-footer .vf-back { color:var(--ivory); }
.valuation-flow[data-current-step="5"] .vf-result-footer .vf-disclaimer { color:var(--on-ink-65); }
.valuation-flow[data-current-step="5"] .vf-save-status { color:var(--ivory); }
@keyframes vf-finale-profile { from { opacity:0; transform:translateX(7%) scale(.985); } to { opacity:1; transform:translateX(0) scale(1); } }
@keyframes vf-finale-result { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
@media(max-width:980px) {
  .valuation-flow[data-current-step="5"] .vf-workspace { display:flex; flex-direction:column; align-items:center; gap:32px; padding:28px clamp(20px,5vw,42px) 52px; }
  .valuation-flow[data-current-step="5"] .vf-profile,.valuation-flow[data-current-step="5"] .vf-main { width:100%; max-width:680px; justify-self:auto; }
  .valuation-flow[data-current-step="5"] .vf-profile { order:0; }
  .valuation-flow[data-current-step="5"] .vf-profile { animation:vf-finale-profile .72s cubic-bezier(.2,.75,.2,1) both; }
  .valuation-flow[data-current-step="5"] .vf-main { order:1; }
}
@media(max-width:760px) {
  .valuation-flow[data-current-step="5"] .vf-workspace { gap:24px; padding:20px 16px 40px; }
  .valuation-flow[data-current-step="5"] .vf-main { order:0; }
  .valuation-flow[data-current-step="5"] .vf-profile { order:1; }
  .valuation-flow[data-current-step="5"] .vf-profile-inner { padding:20px; }
  .valuation-flow[data-current-step="5"] .vf-profile-art.has-property-sim,.vf-calculator-open .valuation-flow[data-current-step="5"] .vf-profile-art.has-property-sim,.vf-calculator-open .valuation-flow[data-current-step="5"] .vf-profile[data-profile-family="house"] .vf-profile-art.has-property-sim { height:290px; }
  .valuation-flow[data-current-step="5"] .vf-result > strong { font-size:var(--type-data); }
  .valuation-flow[data-current-step="5"] .vf-expert { padding:20px; }
}
@media(prefers-reduced-motion:reduce) {
  .valuation-flow[data-current-step="5"] .vf-profile,.valuation-flow[data-current-step="5"] .vf-main { animation:none; }
}

/* Keep the final step editable and give the result and property equal space. */
.valuation-flow[data-current-step="5"] .vf-progress { display:block; margin:0 0 20px; }
.valuation-flow[data-current-step="5"] .vf-progress li { color:var(--on-ink-65); border-top-color:#ffffff55; }
.valuation-flow[data-current-step="5"] .vf-progress li.is-current { color:var(--ivory); border-top-color:var(--brick); }
.valuation-flow[data-current-step="5"] .vf-progress li.is-complete { color:var(--ivory); border-top-color:#ffffffa0; }
.valuation-flow[data-current-step="5"] .vf-progress button:focus-visible { outline:2px solid var(--ivory); outline-offset:4px; }

@media(min-width:981px) {
  body.vf-estimate-reveal { height:auto; overflow:auto; }
  .valuation-flow[data-current-step="5"] { height:auto; min-height:calc(100dvh - var(--site-header-height,75px)); }
  .valuation-flow[data-current-step="5"] .vf-workspace {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    align-items:stretch;
    gap:clamp(20px,2.4vw,40px);
    width:100%; max-width:1640px;
    height:auto; min-height:calc(100dvh - var(--site-header-height,75px));
    padding:clamp(16px,2vh,24px) clamp(20px,3vw,48px);
    background:radial-gradient(ellipse 58% 70% at 72% 48%,var(--ink-raised) 0%,var(--ink) 78%);
  }
  .valuation-flow[data-current-step="5"] .vf-main {
    grid-column:1; grid-row:1; justify-self:stretch;
    display:flex; flex-direction:column;
    width:100%; max-width:none; height:auto;
    min-height:0; overflow:visible;
  }
  .valuation-flow[data-current-step="5"] .vf-form { display:flex; flex:1; min-height:0; }
  .valuation-flow[data-current-step="5"] [data-vf-step="5"].is-active { min-height:0; }
  .valuation-flow[data-current-step="5"] .vf-profile {
    grid-column:2; grid-row:1; justify-self:stretch;
    display:flex; width:100%; max-width:none; height:auto; min-height:0;
    overflow:visible;
  }
  .valuation-flow[data-current-step="5"] .vf-profile-inner {
    flex:1; height:auto; min-height:0;
    padding:clamp(16px,2vh,24px) clamp(18px,2vw,28px);
  }
  .valuation-flow[data-current-step="5"] .vf-profile h2 { margin-bottom:4px; font-size:var(--heading-size,var(--type-h2-editorial)); }
  .valuation-flow[data-current-step="5"] .vf-profile-progress-label { margin-bottom:5px; }
  .valuation-flow[data-current-step="5"] .vf-profile-progress-prompt { margin-top:5px; }
  .valuation-flow[data-current-step="5"] .vf-profile-context { margin-top:10px; }
  .valuation-flow[data-current-step="5"] .vf-profile-art.has-property-sim,
  .vf-calculator-open .valuation-flow[data-current-step="5"] .vf-profile-art.has-property-sim,
  .vf-calculator-open .valuation-flow[data-current-step="5"] .vf-profile[data-profile-family="house"] .vf-profile-art.has-property-sim {
    height:clamp(300px,46vh,350px); min-height:0; margin:4px 0;
  }
  .valuation-flow[data-current-step="5"] .vf-profile-art.has-profile-icons .property-sim,
  .valuation-flow[data-current-step="5"] .vf-profile[data-profile-family="house"] .vf-profile-art.has-profile-icons .property-sim,
  .valuation-flow[data-current-step="5"] .vf-profile[data-profile-family="apartment"] .vf-profile-art.has-profile-icons .property-sim {
    transform:translateX(18%) scale(1.04);
  }
  .valuation-flow[data-current-step="5"] .vf-profile-icon-rail {
    width:145px; max-height:100%; gap:3px; overflow:hidden;
  }
  .valuation-flow[data-current-step="5"] .vf-profile-icon-rail > span { min-height:32px; padding:2px 4px; gap:6px; }
  .valuation-flow[data-current-step="5"] .vf-profile-icon-rail svg { width:28px; height:28px; padding:5px; }
  .valuation-flow[data-current-step="5"] .vf-profile-icon-copy strong { font-size:var(--type-caption); }
  .valuation-flow[data-current-step="5"] .vf-profile-icon-copy small { font-size:var(--type-caption); line-height:var(--line-caption); }
  .valuation-flow[data-current-step="5"] .has-long-icon-rail .vf-profile-icon-rail { height:100%; grid-auto-rows:minmax(0,1fr); gap:1px; }
  .valuation-flow[data-current-step="5"] .has-long-icon-rail .vf-profile-icon-rail > span { min-height:0; height:100%; padding:1px 3px; overflow:hidden; }
  .valuation-flow[data-current-step="5"] .has-long-icon-rail .vf-profile-icon-rail svg { width:23px; height:23px; padding:4px; }
  .valuation-flow[data-current-step="5"] .has-long-icon-rail .vf-profile-icon-copy strong { font-size:var(--type-caption); }
  .valuation-flow[data-current-step="5"] .has-long-icon-rail .vf-profile-icon-copy small { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
  .valuation-flow[data-current-step="5"] .vf-profile-summary { flex:1 0 auto; min-height:0; overflow:visible; }
  .valuation-flow[data-current-step="5"] .vf-profile-stats,
  .valuation-flow[data-current-step="5"] .vf-profile[data-profile-family="house"] .vf-profile-stats {
    display:grid; grid-auto-flow:row; grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .valuation-flow[data-current-step="5"] .vf-profile-stats > div,
  .valuation-flow[data-current-step="5"] .vf-profile[data-profile-family="house"] .vf-profile-stats > div {
    gap:2px; padding:2px; border-top:0; border-left:0;
  }
  .valuation-flow[data-current-step="5"] .vf-profile-stats > div:not(:nth-child(4n+1)),
  .valuation-flow[data-current-step="5"] .vf-profile[data-profile-family="house"] .vf-profile-stats > div:not(:nth-child(4n+1)) { border-left:1px solid var(--on-ink-line); }
  .valuation-flow[data-current-step="5"] .vf-profile-stats > div:nth-child(n+5) { border-top:1px solid var(--on-ink-line); }
  .valuation-flow[data-current-step="5"] .vf-profile-stats dd { min-height:16px; font-size:var(--type-metadata); }
  .valuation-flow[data-current-step="5"] .vf-profile-stats dt { font-size:var(--type-caption); }
  .valuation-flow[data-current-step="5"] .vf-profile-extras,
  .valuation-flow[data-current-step="5"] .vf-ready,
  .valuation-flow[data-current-step="5"] .vf-profile-note { display:none; }
  .valuation-flow[data-current-step="5"] .vf-profile-other { margin-top:4px; }
  .valuation-flow[data-current-step="5"] .vf-profile-other > div { padding:4px 0; font-size:var(--type-caption); }

  .valuation-flow[data-current-step="5"] .vf-heading { margin-bottom:12px; }
  .valuation-flow[data-current-step="5"] .vf-heading h2 { font-size:var(--heading-size,var(--type-display)); }
  .valuation-flow[data-current-step="5"] .vf-estimate-layout { gap:clamp(12px,2vh,22px); }
  .valuation-flow[data-current-step="5"] .vf-result > strong,
  .valuation-flow[data-current-step="5"] [data-vf-step="5"] .vf-result:not(.is-review)>strong {
    margin-top:6px; font-size:var(--type-data); line-height:var(--line-data);
  }
  .valuation-flow[data-current-step="5"] .vf-result > small.vf-result__basis { margin-top:7px; }
  .valuation-flow[data-current-step="5"] .vf-expert { padding:clamp(14px,2vh,20px); }
  .valuation-flow[data-current-step="5"] .vf-expert h2 { font-size:var(--heading-size,var(--type-h2-editorial)); }
  .valuation-flow[data-current-step="5"] .vf-expert p { margin:5px 0 11px; }
  .valuation-flow[data-current-step="5"] .vf-expert small { margin-top:5px; }
  .valuation-flow[data-current-step="5"] .vf-expert .btn { min-height:40px; padding-block:7px; }
  .valuation-flow[data-current-step="5"] .vf-estimate-info { margin-top:5px; }
  .valuation-flow[data-current-step="5"] .vf-estimate-info summary { min-height:28px; }
  .valuation-flow[data-current-step="5"] [data-vf-step="5"] .vf-keep-estimate {
    margin-top:8px; padding-top:9px; gap:6px 12px;
  }
  .valuation-flow[data-current-step="5"] .vf-quick-actions { gap:7px; }
  .valuation-flow[data-current-step="5"] .vf-quick-action { min-height:36px; padding:6px 9px; font-size:var(--type-ui); }
  .valuation-flow[data-current-step="5"] [data-vf-step="5"] .vf-actions { padding-top:7px; margin-top:auto; }
  .valuation-flow[data-current-step="5"] .vf-result-footer { gap:12px; }
  .valuation-flow[data-current-step="5"] .vf-result-footer .vf-disclaimer { font-size:var(--type-caption); line-height:var(--line-caption); }
}

@media(max-width:980px) {
  .valuation-flow[data-current-step="5"] .vf-main { order:0; }
  .valuation-flow[data-current-step="5"] .vf-profile { order:1; }
}
@media(min-width:981px) and (max-width:1150px) {
  .valuation-flow[data-current-step="5"] .vf-workspace { grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); }
  .valuation-flow[data-current-step="5"] .vf-profile-art.has-profile-icons .property-sim,
  .valuation-flow[data-current-step="5"] .vf-profile[data-profile-family="house"] .vf-profile-art.has-profile-icons .property-sim,
  .valuation-flow[data-current-step="5"] .vf-profile[data-profile-family="apartment"] .vf-profile-art.has-profile-icons .property-sim {
    transform:translateX(20%) scale(.78);
  }
}

/* V5: choose a commune directly, or filter communes by canton. */
.valuation-flow[data-current-step="5"] .vf-request-controls>input { min-height:48px; height:auto; padding:11px 14px; border:1px solid var(--on-ink-40); border-radius:7px; background:rgba(255,255,255,.025); color:var(--on-ink); }
.valuation-flow[data-current-step="5"] .vf-request-controls>input::placeholder { color:var(--on-ink-65); }
.valuation-flow[data-current-step="5"] .vf-request-controls>input:focus-visible { outline:none; border-color:var(--on-ink); box-shadow:0 0 0 3px rgba(245,242,232,.14); }
.valuation-flow[data-current-step="5"] .vf-request-controls>input[aria-invalid="true"] { border-color:var(--error-on-ink); }
.valuation-flow[data-current-step="5"] .vf-request-status[data-state="error"] { color:var(--error-on-ink)!important; }
.valuation-flow[data-current-step="5"] { overflow-x:clip; }
.valuation-flow .vf-profile-art.has-property-sim { overflow:hidden; }
.commune-picker { position:relative; }
.valuation-flow .commune-picker>select.sr-only { width:1px; height:1px; min-height:0; padding:0; left:0; top:0; overflow:hidden; clip-path:inset(50%); }
.commune-picker__list { position:absolute; z-index:35; top:calc(100% + 5px); left:0; right:0; max-height:260px; overflow-y:auto; border:1px solid var(--ink-12); border-radius:var(--r-lg); background:var(--paper); box-shadow:var(--shadow); }
.commune-picker__list[hidden] { display:none; }
.commune-picker__list>li { padding:12px 16px; font-size:var(--type-metadata); cursor:pointer; }
.commune-picker__list>li:hover,.commune-picker__list>li[aria-selected="true"] { color:var(--brick); background:var(--ivory); }
.commune-picker__empty { color:var(--ink-70); cursor:default!important; }
.valuation-flow .vf-types,.valuation-flow .vf-form[data-property-family="other"] .vf-types { grid-template-columns:repeat(4,minmax(0,1fr)); }
.valuation-flow .vf-type__surface { padding:20px 12px; }
.valuation-flow .vf-type__surface>strong { font-size:var(--type-h4); }
@media(max-width:760px) {
 .valuation-flow .vf-types,.valuation-flow .vf-form[data-property-family="other"] .vf-types { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .valuation-flow .vf-type__surface,.valuation-flow .vf-form[data-property-family="other"] .vf-type__surface { display:flex; flex-direction:column; gap:0; min-height:184px; padding:18px 14px; }
 .valuation-flow .vf-type__surface>svg { height:70px; }
 .valuation-flow .vf-type__surface>strong,.valuation-flow .vf-form[data-property-family="other"] .vf-type__surface>strong { margin-top:12px; font-size:var(--type-h4); }
 .valuation-flow .vf-type__surface>small { margin-top:6px; }
 .vf-location-layout,.vf-fields--location,.vf-field,.commune-picker { min-width:0; }
}

/* Reference layout: grouped question rows, preview, facts, then completeness.
   Existing typography tokens, palette, fields and valuation logic are retained. */
.valuation-flow:not([data-current-step="5"]) .vf-workspace { grid-template-columns:minmax(0,1.85fr) minmax(360px,1fr); }
.valuation-flow .vf-grouped-fields,
.valuation-flow .vf-fields--extras.vf-grouped-fields { grid-template-columns:minmax(0,1fr); gap:18px; }
.valuation-flow .vf-question-group {
  display:grid; grid-template-columns:minmax(165px,.78fr) minmax(0,2fr); gap:24px;
  padding:22px; border:1px solid var(--ink-12); border-radius:var(--r);
  background:var(--paper);
}
.valuation-flow .vf-question-group[hidden] { display:none; }
.valuation-flow .vf-question-group > legend.sr-only { position:absolute; width:1px; height:1px; margin:-1px; padding:0; border:0; overflow:hidden; clip-path:inset(50%); }
.vf-group-intro { display:flex; align-items:flex-start; gap:14px; min-width:0; }
.vf-group-intro > svg { width:28px; height:28px; flex:none; fill:none; stroke:var(--ink); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.vf-group-title { display:block; font:var(--weight-heading) var(--type-h4)/var(--line-h4) var(--sans); letter-spacing:var(--tracking-heading); }
.vf-group-intro p { margin-top:8px; font-size:var(--type-metadata); line-height:var(--line-metadata); }
.valuation-flow .vf-question-group .vf-group-fields { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 20px; }
.valuation-flow .vf-question-group .vf-label-icon { display:none; }
.valuation-flow .vf-fields--extras .vf-question-group { grid-column:auto; }
/* Garden shares the terrace input's row, with its hint underneath. */
.valuation-flow .vf-field--garden { padding-top:calc(var(--vf-outdoor-label-height,1lh) + 6px); }
.valuation-flow .vf-field--garden .vf-check { min-height:44px; padding-block:9px; }
/* Cellar / storage uses the garden's bordered checkbox, level with the parking stepper beside it. */
.valuation-flow .vf-group-fields .vf-cellar { min-height:44px; padding:9px 13px; border:1px solid var(--ink-12); border-radius:var(--r); background:#fff; color:var(--ink); font-size:var(--type-body); font-weight:var(--weight-label); gap:9px; }
.valuation-flow .vf-group-fields .vf-cellar input { flex:none; width:18px; height:18px; min-height:18px; margin:0; accent-color:var(--brick); }
.valuation-flow .vf-group-fields .vf-cellar:has(input:checked) { border-color:var(--brick); background:var(--ivory-deep); }
.valuation-flow .vf-group-fields .vf-cellar:focus-within { outline:2px solid var(--brick); outline-offset:2px; }
.vf-profile-completeness { flex:none; margin-top:18px; padding:16px; border:1px solid var(--on-ink-line); border-radius:var(--r); }
.vf-profile-completeness .vf-profile-progress-prompt { min-height:0; }
.vf-profile-completeness .vf-profile-progress-label { margin-bottom:10px; }
.valuation-flow:not([data-current-step="5"]) .vf-profile-context { margin-top:8px; }
.valuation-flow:not([data-current-step="5"]) .vf-profile-summary { flex:1; }
.vf-profile-summary-title { display:none; color:var(--ivory); margin-bottom:12px; padding-bottom:12px; border-bottom:1px solid var(--on-ink-line); }
.vf-profile-summary:has(> dl:not([hidden])) .vf-profile-summary-title { display:block; }
.valuation-flow[data-current-step] .vf-profile[data-profile-family] .vf-profile-stats {
  display:grid; grid-auto-flow:row; grid-template-columns:repeat(2,minmax(0,1fr));
  border:0; border-radius:0; gap:10px 22px;
}
.valuation-flow[data-current-step] .vf-profile[data-profile-family] .vf-profile-stats[hidden] { display:none; }
.valuation-flow[data-current-step] .vf-profile[data-profile-family] .vf-profile-stats > div:nth-child(n) {
  flex-direction:row; align-items:baseline; justify-content:space-between;
  border:0; padding:0; gap:12px; text-align:left;
}
.valuation-flow[data-current-step] .vf-profile[data-profile-family] .vf-profile-stats dd { min-height:0; text-align:right; }
.valuation-flow .vf-profile-summary .vf-profile-icon-rail {
  position:static; width:100%; height:auto; max-height:none; transform:none;
  grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 22px; margin-top:10px; overflow:visible;
}
.valuation-flow .vf-profile-summary .vf-profile-icon-rail > span { min-height:0; height:auto; padding:0; border:0; background:none; border-radius:0; }
.valuation-flow .vf-profile-summary .vf-profile-icon-rail svg { display:none; }
.valuation-flow .vf-profile-summary .vf-profile-icon-copy { flex-direction:row; justify-content:space-between; align-items:baseline; gap:12px; width:100%; }
.valuation-flow .vf-profile-summary .vf-profile-icon-copy strong { font-weight:var(--weight-body); color:var(--on-ink-65); }
.valuation-flow .vf-profile-summary .vf-profile-icon-copy small { color:var(--ivory); text-align:right; display:block; }
.valuation-flow:not([data-current-step="5"]) .vf-profile-art.has-property-sim { height:clamp(260px,39vh,440px); min-height:0; margin-block:16px; }
.valuation-flow:not([data-current-step="5"]) .vf-profile[data-profile-family] .vf-profile-art .property-sim { transform:scale(1.04); height:100%; }
.valuation-flow:not([data-current-step="5"]) .vf-profile-note { margin:0; padding-top:12px; }
/* Keep all result facts visible in the page's normal flow. */
.valuation-flow[data-current-step="5"] .vf-profile-summary { overflow:visible; }
.valuation-flow[data-current-step="5"] .vf-profile-art.has-property-sim { min-height:0; }
.valuation-flow[data-current-step="5"] .vf-profile[data-profile-family] .vf-profile-art .property-sim { transform:scale(1.04); }
.valuation-flow[data-current-step="5"] .vf-profile-completeness { margin-top:10px; padding:10px 12px; }
@media(min-width:901px) {
  .vf-calculator-open .valuation-flow:not([data-current-step="5"]) .vf-profile[data-profile-family] .vf-profile-art.has-property-sim { height:clamp(200px,calc(100dvh - 610px),440px); }
  .vf-calculator-open .valuation-flow[data-current-step="5"] .vf-profile[data-profile-family] .vf-profile-art.has-property-sim { height:clamp(210px,calc(100dvh - 570px),350px); }
  .vf-calculator-open .valuation-flow:not([data-current-step="5"]) .vf-main { --vf-gutter:clamp(24px,3.2vw,56px); padding:26px var(--vf-gutter) 0; }
  .valuation-flow:not([data-current-step="5"]) .vf-actions {
    position:sticky; bottom:0; z-index:12; margin-inline:calc(-1 * var(--vf-gutter)); margin-top:auto;
    padding:16px var(--vf-gutter); border-top:1px solid var(--ink-12); background:var(--canvas);
  }
  .valuation-flow:not([data-current-step="5"]) .vf-grouped-fields { padding-bottom:24px; }
  .valuation-flow:not([data-current-step="5"]) [data-vf-step="4"] > .vf-field--description { margin-bottom:24px; }
  .vf-calculator-open .valuation-flow:not([data-current-step="5"]) .vf-profile-inner { padding:28px clamp(22px,2.6vw,44px) 22px; }
}
@media(min-width:901px) and (max-width:1250px) {
  .valuation-flow:not([data-current-step="5"]) .vf-workspace { grid-template-columns:minmax(0,1.65fr) minmax(320px,1fr); }
  .valuation-flow .vf-question-group { grid-template-columns:minmax(0,1fr); gap:18px; padding:20px; }
  .vf-group-intro p { margin-top:4px; }
  .valuation-flow[data-current-step] .vf-profile[data-profile-family] .vf-profile-stats,
  .valuation-flow .vf-profile-summary .vf-profile-icon-rail { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:900px) {
  .valuation-flow:not([data-current-step="5"]) .vf-workspace { display:flex; }
  .valuation-flow .vf-question-group { grid-template-columns:minmax(0,1fr); gap:18px; padding:20px; }
  .vf-group-intro p { margin-top:4px; }
  .valuation-flow:not([data-current-step="5"]) .vf-profile-art.has-property-sim { height:320px; }
  .valuation-flow:not([data-current-step="5"]) .vf-actions { position:sticky; bottom:0; z-index:12; padding-block:14px; border-top:1px solid var(--ink-12); background:var(--canvas); margin-top:20px; }
}
@media(max-width:560px) {
  .valuation-flow .vf-question-group { padding:18px 16px; }
  .valuation-flow .vf-question-group .vf-group-fields { grid-template-columns:minmax(0,1fr); gap:14px; }
  .valuation-flow .vf-field--garden { padding-top:0; }
  .valuation-flow[data-current-step] .vf-profile[data-profile-family] .vf-profile-stats,
  .valuation-flow .vf-profile-summary .vf-profile-icon-rail { grid-template-columns:minmax(0,1fr); }
}

/* ---------------------------------------------------------------- simpler mobile journey */
/* Counts: − / + around the number, so phones rarely need the keyboard. */
.valuation-flow .vf-stepper { display:grid; grid-template-columns:44px minmax(0,1fr) 44px; gap:6px; align-items:stretch; }
.valuation-flow .vf-stepper input { text-align:center; -moz-appearance:textfield; appearance:textfield; }
.valuation-flow .vf-stepper input::-webkit-inner-spin-button,.valuation-flow .vf-stepper input::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
.valuation-flow .vf-stepper__button { display:grid; place-items:center; min-height:44px; border:1px solid var(--ink-12); border-radius:var(--r); background:rgba(255,255,255,.58); color:var(--ink); transition:border-color var(--motion-fast) var(--ease),background var(--motion-fast) var(--ease); }
.valuation-flow .vf-stepper__button:hover { border-color:var(--ink-40); background:#fff; }
.valuation-flow .vf-stepper__button:active { background:var(--ivory-deep); }
.valuation-flow .vf-stepper__button:focus-visible { outline:2px solid var(--brick); outline-offset:2px; }
.valuation-flow .vf-stepper__button:disabled { opacity:.45; cursor:not-allowed; }
.valuation-flow .vf-stepper__button svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }

/* Result note when a house has no plot size, with a shortcut to the field. */
.valuation-flow .vf-question-group { scroll-margin-top:calc(var(--site-header-height,75px) + 16px); }
.valuation-flow .vf-refine { margin-top:18px; padding:20px 22px; border:1px solid var(--on-ink-line); border-radius:var(--r-xl); background:#ffffff0b; }
.valuation-flow .vf-refine[hidden] { display:none; }
.valuation-flow .vf-refine h3 { color:var(--ivory); }
.valuation-flow .vf-refine-note { margin:6px 0 14px; color:var(--on-ink-65); font-size:var(--type-metadata); line-height:var(--line-metadata); }
.valuation-flow .vf-refine-note.is-warning { color:var(--ivory); padding-left:12px; border-left:2px solid var(--brick-on-ink); }
.valuation-flow .vf-refine-chips { display:flex; flex-wrap:wrap; gap:8px; }
.valuation-flow .vf-refine-chip { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:8px 14px; border:1px solid var(--on-ink-line); border-radius:999px; color:var(--ivory); font-size:var(--type-metadata); font-weight:var(--weight-medium); transition:border-color var(--motion-fast) var(--ease),background var(--motion-fast) var(--ease); }
.valuation-flow .vf-refine-chip:hover { border-color:var(--on-ink-40); background:#ffffff10; }
.valuation-flow .vf-refine-chip:focus-visible { outline:2px solid var(--ivory); outline-offset:2px; }
.valuation-flow .vf-refine-chip svg { width:18px; height:18px; flex:none; fill:none; stroke:var(--brick-on-ink); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.valuation-flow .vf-refine-chip--key { border-color:var(--brick-on-ink); }

@media(max-width:760px) {
  /* The commune alone locates the property; the canton is filled in from it. */
  .valuation-flow .vf-fields--location .vf-field:has(#vf-canton) { display:none; }
  .valuation-flow .vf-fields--location { grid-template-columns:1fr; }

  /* While answering the essentials and extras, the property being built sits on
     top as a compact header, so each answer visibly changes it. */
  .valuation-flow:is([data-current-step="3"],[data-current-step="4"]) .vf-profile { order:-1; }
  .valuation-flow:is([data-current-step="3"],[data-current-step="4"]) .vf-profile :is(#vf-profile-title,.vf-profile-summary,.vf-profile-note,[data-vf-profile-icons],[data-vf-profile-sales],.vf-profile-progress-label,[data-vf-profile-prompt]) { display:none; }
  .valuation-flow:is([data-current-step="3"],[data-current-step="4"]) .vf-profile-inner { display:grid; grid-template-columns:minmax(0,1fr) 116px; grid-template-areas:"context art" "progress art"; align-items:center; column-gap:14px; row-gap:10px; padding:12px 20px; }
  .valuation-flow:is([data-current-step="3"],[data-current-step="4"]) .vf-profile-context { grid-area:context; align-self:end; margin:0; }
  .valuation-flow:is([data-current-step="3"],[data-current-step="4"]) .vf-profile .vf-profile-art.has-property-sim { grid-area:art; width:116px; height:116px; min-height:0; margin:0; }
  .valuation-flow:is([data-current-step="3"],[data-current-step="4"]) .vf-profile .vf-profile-art.has-property-sim .property-sim { width:116px; height:116px; transform:none; }
  .valuation-flow:is([data-current-step="3"],[data-current-step="4"]) .vf-profile-completeness { grid-area:progress; align-self:start; margin:0; padding:0; border:0; background:none; }
}

/* No native spin arrows: sizes have a slider, counts have taps or − / +. */
.valuation-flow input[type="number"] { -moz-appearance:textfield; appearance:textfield; }
.valuation-flow input[type="number"]::-webkit-inner-spin-button,.valuation-flow input[type="number"]::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }

/* Living area: slider plus typical sizes. Grey until the visitor gives a size. */
.valuation-flow .vf-size-assist { margin-top:10px; }
.valuation-flow .vf-size-assist[hidden] { display:none; }
@media(min-width:901px) {
  .valuation-flow .vf-size-assist { display:none; }
}
.valuation-flow .vf-size-range { --fill:50%; display:block; width:100%; height:32px; margin:0; padding:0; border:0; background:transparent; -webkit-appearance:none; appearance:none; cursor:pointer; touch-action:pan-y; }
.valuation-flow .vf-size-range:focus { outline:none; box-shadow:none; }
.valuation-flow .vf-size-range::-webkit-slider-runnable-track { height:4px; border-radius:2px; background:linear-gradient(to right,var(--brick) var(--fill),var(--ink-12) var(--fill)); }
.valuation-flow .vf-size-range::-moz-range-track { height:4px; border-radius:2px; background:var(--ink-12); }
.valuation-flow .vf-size-range::-moz-range-progress { height:4px; border-radius:2px; background:var(--brick); }
.valuation-flow .vf-size-range::-webkit-slider-thumb { -webkit-appearance:none; width:28px; height:28px; margin-top:-12px; border:2px solid var(--brick); border-radius:50%; background:#fff; box-shadow:0 2px 6px rgba(9,35,77,.18); }
.valuation-flow .vf-size-range::-moz-range-thumb { width:24px; height:24px; border:2px solid var(--brick); border-radius:50%; background:#fff; box-shadow:0 2px 6px rgba(9,35,77,.18); }
.valuation-flow .vf-size-assist.is-untouched .vf-size-range::-webkit-slider-runnable-track { background:var(--ink-12); }
.valuation-flow .vf-size-assist.is-untouched .vf-size-range::-webkit-slider-thumb { border-color:var(--ink-40); }
.valuation-flow .vf-size-assist.is-untouched .vf-size-range::-moz-range-progress { background:transparent; }
.valuation-flow .vf-size-assist.is-untouched .vf-size-range::-moz-range-thumb { border-color:var(--ink-40); }
.valuation-flow .vf-size-presets { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; margin-top:6px; }

/* Shared look for every tap choice in the questions. */
.valuation-flow :is(.vf-size-preset,.vf-count-choice,.vf-condition-choice) { min-height:44px; border:1px solid var(--ink-12); border-radius:var(--r); background:rgba(255,255,255,.58); color:var(--ink); transition:border-color var(--motion-fast) var(--ease),background var(--motion-fast) var(--ease),box-shadow var(--motion-fast) var(--ease); }
.valuation-flow :is(.vf-size-preset,.vf-count-choice,.vf-condition-choice):hover { border-color:var(--ink-40); background:#fff; }
.valuation-flow :is(.vf-size-preset,.vf-count-choice,.vf-condition-choice):focus-visible { outline:2px solid var(--brick); outline-offset:2px; }
.valuation-flow :is(.vf-size-preset[aria-pressed="true"],.vf-count-choice[aria-checked="true"],.vf-condition-choice[aria-checked="true"]) { border-color:var(--brick); background:#fff; box-shadow:inset 0 0 0 1px var(--brick); }
.valuation-flow :is(.vf-count-choice,.vf-condition-choice):disabled { opacity:.45; cursor:not-allowed; }
.valuation-flow .vf-size-preset { color:var(--ink-70); font-size:var(--type-metadata); font-weight:var(--weight-medium); font-variant-numeric:tabular-nums; }
.valuation-flow .vf-size-preset[aria-pressed="true"] { color:var(--ink); }

.valuation-flow .vf-count-choices { display:flex; gap:6px; }
.valuation-flow .vf-count-choice { flex:1 1 0; min-width:0; font-size:var(--type-body); font-weight:var(--weight-medium); font-variant-numeric:tabular-nums; }
.valuation-flow .vf-count-choice[aria-checked="true"] { color:var(--brick); }

.valuation-flow .vf-field:has(.vf-condition-choices) { grid-column:1/-1; }
.valuation-flow .vf-condition-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.valuation-flow .vf-condition-choice { display:flex; align-items:flex-start; gap:10px; min-height:64px; padding:10px 12px; border-radius:var(--r-lg); text-align:left; }
.valuation-flow .vf-condition-choice svg { flex:none; width:22px; height:22px; margin-top:1px; fill:none; stroke:var(--ink-55); stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.valuation-flow .vf-condition-choice[aria-checked="true"] svg { stroke:var(--brick); }
.valuation-flow .vf-condition-choice strong { display:block; font-size:var(--type-metadata); font-weight:var(--weight-label); line-height:var(--line-metadata); }
.valuation-flow .vf-condition-choice small { display:block; margin-top:2px; color:var(--ink-55); font-size:var(--type-caption); line-height:var(--line-caption); }
@media(min-width:761px) { .valuation-flow .vf-condition-choices { grid-template-columns:repeat(3,minmax(0,1fr)); } }

/* ---------------------------------------------------------------- result screen
   The price is the one large figure: a small eyebrow above it, its basis and "Why this
   estimate?" directly under it, then a quiet row of text actions. The expert request
   follows one step quieter, so it invites without outweighing the number.
   The step heading stays for screen readers; the eyebrow says the same thing visually. */
.valuation-flow[data-current-step="5"] [data-vf-step="5"] > .vf-heading { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.valuation-flow[data-current-step="5"] .vf-result > p { display:block; margin:0; color:var(--on-ink-65); font-size:var(--type-caption); font-weight:var(--weight-label); line-height:var(--line-eyebrow); letter-spacing:var(--tracking-eyebrow); text-transform:uppercase; }
.valuation-flow[data-current-step="5"] .vf-result:not(.is-review) > strong.vf-value-range {
  /* As large as the scale allows while both figures still fit on one line of the column. */
  --estimate-fit:min(var(--type-estimate), var(--vf-price-size, var(--type-estimate)));
  flex-wrap:nowrap; gap:.24em; margin-top:10px; font-size:var(--estimate-fit); line-height:var(--line-data);
}
.valuation-flow[data-current-step="5"] .vf-result:not(.is-review) .vf-value-range__dash { color:var(--on-ink-65); font-size:inherit; font-weight:var(--weight-body); }
.valuation-flow[data-current-step="5"] .vf-result.is-review > strong { margin-top:10px; font-weight:var(--weight-heading); }
.valuation-flow[data-current-step="5"] .vf-result__basis { display:block; margin-top:10px; color:var(--on-ink-65); font-size:var(--type-metadata); line-height:var(--line-metadata); }
.valuation-flow[data-current-step="5"] .vf-estimate-info { margin-top:4px; }
.valuation-flow[data-current-step="5"] .vf-estimate-info summary { min-height:32px; }
.valuation-flow[data-current-step="5"] .vf-estimate-info .vf-disclaimer { max-width:680px; margin:0; padding:0 0 10px 20px; border:0; text-align:left; font-size:var(--type-caption); line-height:var(--line-caption); color:var(--on-ink-65); }
/* Secondary actions: one row of small text buttons under the figure. */
.valuation-flow[data-current-step="5"] .vf-result-download { display:flex; flex-wrap:wrap; align-items:center; gap:0 24px; margin-top:14px; padding-top:12px; border-top:1px solid var(--on-ink-line); }
.valuation-flow[data-current-step="5"] .vf-result-download :is(.vf-quick-action,.vf-back) { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0; border:0; background:none; color:var(--ivory); font-size:var(--type-metadata); font-weight:var(--weight-label); line-height:var(--line-metadata); text-decoration:none; cursor:pointer; }
.valuation-flow[data-current-step="5"] .vf-result-download :is(.vf-quick-action,.vf-back):hover { text-decoration:underline; text-underline-offset:4px; }
.valuation-flow[data-current-step="5"] .vf-result-download :is(.vf-quick-action,.vf-back):focus-visible { outline:2px solid var(--ivory); outline-offset:3px; }
.valuation-flow[data-current-step="5"] .vf-result-download .vf-quick-action svg { flex:none; width:16px; height:16px; }
.valuation-flow[data-current-step="5"] .vf-result-download .vf-back { color:var(--on-ink-65); }
.valuation-flow[data-current-step="5"] .vf-result-download .vf-save-status { flex-basis:100%; margin:0; }
.valuation-flow[data-current-step="5"] .vf-result-download .vf-save-status:empty { display:none; }
/* The expert request: a step quieter than the figure, with clear space above it. */
.valuation-flow[data-current-step="5"] [data-vf-step="5"] .vf-expert { margin-top:16px; background:transparent; }

/* Current details: each fact with the same small icon as its question. */
.vf-profile-stats dt { display:flex; align-items:center; gap:7px; }
.vf-stat-icon { flex:none; width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; opacity:.8; }
/* The remaining facts (heating, condition, garden…) show their icon in the same style. */
.valuation-flow .vf-profile-summary .vf-profile-icon-rail > span { align-items:center; }
.valuation-flow .vf-profile-summary .vf-profile-icon-rail > span > svg { display:block; width:15px; height:15px; padding:0; border:0; border-radius:0; stroke:currentColor; stroke-width:1.6; opacity:.8; }
.valuation-flow .vf-profile-summary .vf-profile-icon-rail > span > .vf-profile-icon-copy strong { display:flex; align-items:center; }
/* The expert request sits under the result, one step below it. */
.valuation-flow[data-current-step="5"] .vf-expert h2 { font-size:var(--type-h4); line-height:var(--line-h4); }
/* A clear figure, an expert invitation, then the property's supporting facts. */
.valuation-flow[data-current-step="5"] .vf-result:not(.is-review) > strong { font-weight:var(--weight-heading); font-variant-numeric:tabular-nums; letter-spacing:var(--tracking-estimate); }
.vf-expert-header,.vf-refine-heading { display:flex; align-items:flex-start; gap:16px; }
.vf-expert-header .vf-expert-copy { min-width:0; flex:1; }
.vf-result-symbol { flex:none; display:grid; place-items:center; width:48px; height:48px; border:1px solid var(--on-ink-line); border-radius:50%; background:#ffffff08; color:var(--brick-on-ink); }
.vf-result-symbol svg { width:25px; height:25px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.valuation-flow[data-current-step="5"] .vf-expert p { margin:6px 0 16px; }
.valuation-flow[data-current-step="5"] .vf-special-case-reasons { margin-bottom:16px; }
.valuation-flow .vf-refine-heading { align-items:center; margin-bottom:8px; }
.valuation-flow .vf-refine-heading .vf-result-symbol { width:40px; height:40px; }
.valuation-flow .vf-refine-note.is-warning { padding:0; border:0; }
.valuation-flow[data-current-step="5"] .vf-profile-summary-title { padding:16px 0 0; margin:0 0 16px; border:0; border-top:1px solid var(--on-ink-line); }
.valuation-flow[data-current-step="5"] .vf-profile:is([data-profile-family="house"],[data-profile-family="apartment"]) .vf-profile-extras,
.valuation-flow[data-current-step="5"] .vf-ready { display:none; }
.vf-completeness-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:4px 12px; margin-bottom:10px; }
.vf-profile-completeness .vf-completeness-heading .vf-profile-progress-label { margin:0; color:var(--ivory); font-size:var(--type-metadata); font-weight:var(--weight-medium); }
.vf-profile-edit { display:inline-flex; align-items:center; justify-content:center; gap:7px; flex:none; min-height:44px; padding:6px 0 6px 8px; color:var(--ivory); font:inherit; font-size:var(--type-caption); text-decoration:underline; text-underline-offset:4px; text-decoration-color:var(--on-ink-40); }
.vf-profile-edit[hidden] { display:none; }
.vf-profile-edit:hover { text-decoration-color:var(--ivory); }
.vf-profile-edit:focus-visible { outline:2px solid var(--ivory); outline-offset:3px; }
.valuation-flow[data-current-step="5"] .vf-profile-completeness { padding:12px 16px; background:#ffffff04; }
@media(min-width:1280px) {
  .valuation-flow[data-current-step="5"] .vf-profile[data-profile-family] .vf-profile-stats,
  .valuation-flow[data-current-step="5"] .vf-profile-summary .vf-profile-icon-rail { column-gap:20px; row-gap:12px; }
  .valuation-flow[data-current-step="5"] .vf-profile[data-profile-family] .vf-profile-stats > div:nth-child(even),
  .valuation-flow[data-current-step="5"] .vf-profile-summary .vf-profile-icon-rail > span:nth-child(even) { border-left:1px solid var(--on-ink-line); padding-left:20px; }
}
@media(max-width:560px) {
  .vf-expert-header,.vf-refine-heading { gap:12px; }
  .vf-result-symbol { width:36px; height:36px; }
  .vf-result-symbol svg { width:20px; height:20px; }
  .valuation-flow[data-current-step="5"] .vf-profile-completeness { padding:12px; }
  .valuation-flow[data-current-step="5"] .vf-progress { padding-bottom:20px; }
  .valuation-flow[data-current-step="5"] .vf-progress li { position:relative; }
  .valuation-flow[data-current-step="5"] .vf-progress button { min-height:44px; padding:6px 0; align-items:center; justify-content:center; }
  .valuation-flow[data-current-step="5"] .vf-progress li b { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .valuation-flow[data-current-step="5"] .vf-progress li.is-current b { top:100%; right:0; width:max-content; height:auto; clip-path:none; overflow:visible; white-space:nowrap; }
}
.valuation-flow[data-current-step="5"] .vf-expert.is-special-case { border-left:3px solid var(--brick); }
/* Special case: a warning sign (#ic-warning) in the expert title, in the no-price note and on the illustration. */
.valuation-flow .vf-warning-sign { display:block; flex:none; width:30px; height:auto; aspect-ratio:32/29; overflow:visible; filter:drop-shadow(0 2px 6px #0617334d); }
.valuation-flow .vf-expert h2 .vf-warning-sign { display:none; }
.valuation-flow .vf-expert.is-special-case h2 { display:flex; align-items:center; gap:10px; }
.valuation-flow .vf-expert.is-special-case h2 .vf-warning-sign { display:block; }
.valuation-flow .vf-special-note { display:flex; align-items:flex-start; gap:12px; margin:16px 0 4px; padding:12px 14px; border:1px solid var(--on-ink-line); border-left:3px solid var(--brick); border-radius:8px; background:#ffffff0b; }
.valuation-flow .vf-special-note[hidden] { display:none; }
.valuation-flow .vf-special-note .vf-warning-sign { width:34px; }
.valuation-flow .vf-special-note p { margin:0; color:var(--ivory); font-size:var(--type-metadata); line-height:var(--line-body); }
/* Step 5 hides the result's other list (.vf-result ul), so these name the step to win. */
.valuation-flow[data-current-step="5"] .vf-special-note ul { display:flex; flex-wrap:wrap; gap:6px 8px; margin:8px 0 0; padding:0; list-style:none; }
.valuation-flow[data-current-step="5"] .vf-special-note ul[hidden] { display:none; }
.valuation-flow .vf-special-note li { padding:3px 8px; border:1px solid var(--on-ink-line); border-radius:5px; color:var(--ivory); font-size:var(--type-caption); line-height:var(--line-caption); }
.valuation-flow .vf-special-case-reasons { display:flex; flex-wrap:wrap; gap:6px 8px; margin:0 0 16px; padding:0; list-style:none; }
.valuation-flow .vf-special-case-reasons[hidden] { display:none; }
.valuation-flow .vf-special-case-reasons li { padding:4px 8px; border:1px solid var(--on-ink-line); border-radius:5px; color:var(--ivory); font-size:var(--type-caption); line-height:var(--line-caption); }
.vf-profile-alert { position:absolute; top:20%; left:70%; z-index:3; display:grid; place-items:center; width:36px; height:36px; border:2px solid var(--ivory); border-radius:50%; background:var(--brick); color:var(--ivory); box-shadow:0 3px 12px #06173355; font:var(--weight-bold) 24px/1 var(--sans); }
/* A compact invitation from Tom; longer results scroll with the page. */
.vf-expert-portrait { display:block; flex:none; width:56px; height:56px; border:1px solid var(--on-ink-line); border-radius:50%; object-fit:cover; object-position:50% 50%; }
.valuation-flow[data-current-step="5"] .vf-progress { margin-bottom:16px; }
.valuation-flow[data-current-step="5"] .vf-estimate-layout { gap:16px; }
.valuation-flow[data-current-step="5"] .vf-expert { padding:16px; container:vf-expert / inline-size; }
.valuation-flow[data-current-step="5"] .vf-expert-header { gap:12px; margin-bottom:14px; }
.valuation-flow[data-current-step="5"] .vf-expert p { margin:5px 0 0; font-size:var(--type-metadata); line-height:var(--line-body); }
.valuation-flow[data-current-step="5"] .vf-special-case-reasons { margin:10px 0 0; gap:4px 6px; }
.valuation-flow[data-current-step="5"] .vf-special-case-reasons li { padding:3px 7px; }
.valuation-flow[data-current-step="5"] .vf-request-fields:not(.is-sent) .vf-request-controls { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; }
.valuation-flow[data-current-step="5"] .vf-request-controls > input { height:44px; min-height:44px; }
.valuation-flow[data-current-step="5"] .vf-expert .btn { grid-area:auto; align-self:stretch; min-height:44px; font-size:var(--type-metadata); padding:10px 12px; }
.valuation-flow[data-current-step="5"] .vf-expert .vf-request-status:not(:empty) { margin-top:8px; font-size:var(--type-caption); }
.valuation-flow[data-current-step="5"] .vf-estimate-info { margin-top:12px; }
.valuation-flow[data-current-step="5"] .vf-result-footer .vf-back { display:inline-flex; align-items:center; min-height:44px; }
@container vf-expert (min-width:560px) {
  .valuation-flow[data-current-step="5"] .vf-request-fields:not(.is-sent) .vf-request-controls { grid-template-columns:minmax(150px,1fr) auto; }
}
@media(max-width:560px) {
  .vf-expert-portrait { width:48px; height:48px; }
}
@media(min-width:981px) {
  .valuation-flow[data-current-step="5"] .vf-main { overflow:visible; }
  .valuation-flow[data-current-step="5"] .vf-progress { flex-shrink:0; }
  .valuation-flow[data-current-step="5"] .vf-form { flex:1 0 auto; }
  .valuation-flow[data-current-step="5"] .vf-estimate-layout { flex:none; }
}

/* Every property uses the same square scene frame, so the shared plot keeps
   one visible size when switching types. Building proportions stay in layers. */
.valuation-flow[data-current-step] .vf-profile[data-profile-family] .vf-profile-art.has-property-sim .property-sim { width:90%; height:auto; max-width:min(560px,calc(var(--profile-art-height) * 1.2)); aspect-ratio:1; transform:translate(-3%,-4%) scale(.83); }
.valuation-flow[data-current-step] .vf-profile[data-profile-family="apartment"] .vf-profile-art.has-property-sim .property-sim:is([data-sim-height="5"],[data-sim-height="8"]) { transform:translate(-3%,5%) scale(.66); }
.vf-calculator-open .valuation-flow[data-current-step] .vf-profile[data-profile-family] .vf-profile-art.has-property-sim,
.valuation-flow[data-current-step] .vf-profile[data-profile-family] .vf-profile-art.has-property-sim { --profile-art-height:clamp(240px,calc(100dvh - 570px),330px); height:var(--profile-art-height); grid-template-rows:minmax(0,1fr); grid-template-columns:minmax(0,1fr); min-height:0; margin-block:12px; }
.vf-calculator-open .valuation-flow[data-current-step="5"] .vf-profile[data-profile-family] .vf-profile-art.has-property-sim { --profile-art-height:clamp(240px,calc(100dvh - 570px),350px); }
@media(max-width:980px) {
  .vf-calculator-open .valuation-flow[data-current-step="5"] .vf-profile[data-profile-family] .vf-profile-art.has-property-sim { --profile-art-height:clamp(260px,75vw,350px); }
}
@media(max-width:760px) {
  .vf-calculator-open .valuation-flow:is([data-current-step="3"],[data-current-step="4"]) .vf-profile[data-profile-family] .vf-profile-art.has-property-sim { width:116px; height:116px; margin:0; }
  .valuation-flow:is([data-current-step="3"],[data-current-step="4"]) .vf-profile[data-profile-family] .vf-profile-art.has-property-sim .property-sim { width:116px; height:116px; max-width:none; transform:translate(-3%,-4%) scale(.83); }
}

/* Scale the complete scene and its layout space together, so Current details
   gains the space rather than inheriting an empty illustration frame. */
@media(min-width:761px) {
  .vf-calculator-open .valuation-flow[data-current-step] .vf-profile[data-profile-family] .vf-profile-art.has-property-sim {
    zoom:.85;
    width:85%;
    align-self:center;
    top:-8px;
    margin-block:0;
  }
}
.vf-calculator-open .valuation-flow[data-current-step="5"] .vf-profile[data-profile-family] .vf-profile-art.has-property-sim {
  zoom:.85;
  width:85%;
  align-self:center;
  top:-8px;
  margin-block:0;
}
/* Leave room above the receding neighbour without resizing the shared scene. */
.valuation-flow[data-current-step="2"] .property-sim:is([data-sim-layout="terraced"],[data-sim-layout="semi-detached"]) { translate:0 5%; }

/* Plot size check: a speech bubble under the plot field while its ares figure looks like
   square metres. It floats over the hint below, so the form never moves. */
.valuation-flow .vf-field:has(> .vf-plot-check) { position:relative; }
.valuation-flow .vf-plot-check { position:absolute; left:0; right:0; z-index:3; margin:0; padding:10px 12px; border:1px solid var(--ink-12); border-radius:var(--r); background:#fff; box-shadow:0 6px 18px rgba(9,35,77,.1); color:var(--ink); font-size:var(--type-caption); line-height:var(--line-metadata); }
.valuation-flow .vf-plot-check[hidden] { display:none; }
.valuation-flow .vf-plot-check::before { content:''; position:absolute; top:-6px; left:18px; width:10px; height:10px; border-top:1px solid var(--ink-12); border-left:1px solid var(--ink-12); background:#fff; transform:rotate(45deg); }
/* Phones: give the figures room to be large; the range breaks after the dash instead. */
@media(max-width:480px) {
  .valuation-flow[data-current-step="5"] .vf-result:not(.is-review) > strong.vf-value-range { --estimate-fit:var(--type-estimate); flex-wrap:wrap; row-gap:0; }
}

/* PDF behind an email: opens under the action row with the estimate caveat. */
.valuation-flow .vf-pdf-gate { margin-top:12px; padding:16px; border:1px solid var(--on-ink-line); border-radius:var(--r); background:#ffffff06; color:var(--ivory); }
.valuation-flow .vf-pdf-gate[hidden] { display:none; }
.valuation-flow .vf-pdf-gate__note { margin:0 0 14px; padding-left:12px; border-left:2px solid var(--brick-on-ink); color:var(--ivory); font-size:var(--type-metadata); line-height:var(--line-metadata); }
.valuation-flow .vf-pdf-gate__link { padding:0; border:0; background:none; color:inherit; font:inherit; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.valuation-flow .vf-pdf-gate label { display:block; margin-bottom:6px; color:var(--ivory); font-size:var(--type-metadata); font-weight:var(--weight-label); line-height:var(--line-metadata); }
.valuation-flow .vf-pdf-gate__controls { display:flex; flex-wrap:wrap; gap:9px; }
.valuation-flow .vf-pdf-gate__controls input { flex:1 1 220px; min-width:0; height:44px; padding:10px 12px; border:1px solid rgba(245,242,232,.34); border-radius:var(--r); background:#ffffff06; color:var(--ivory); font:inherit; font-size:var(--type-body); }
.valuation-flow .vf-pdf-gate__controls input::placeholder { color:var(--on-ink-65); }
.valuation-flow .vf-pdf-gate__controls input[aria-invalid="true"] { border-color:var(--brick-on-ink); }
.valuation-flow .vf-pdf-gate__controls .btn { flex:0 0 auto; min-height:44px; padding:10px 18px; font-size:var(--type-metadata); }
.valuation-flow .vf-pdf-gate__privacy { margin:8px 0 0; color:var(--on-ink-65); font-size:var(--type-caption); line-height:var(--line-caption); }
.valuation-flow .vf-pdf-gate__status { margin:8px 0 0; color:var(--ivory); font-size:var(--type-caption); line-height:var(--line-caption); }
.valuation-flow .vf-pdf-gate__status:empty { display:none; }
.valuation-flow .vf-pdf-gate__status[data-state="error"] { color:var(--brick-on-ink); }
@media(max-width:480px) { .valuation-flow .vf-pdf-gate__controls .btn { flex:1 1 100%; } }

/* A select with a note on what the chosen option means: field left, note right. */
.valuation-flow .vf-group-fields > .vf-field--noted { grid-column:1/-1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:20px; row-gap:6px; align-items:start; }
.valuation-flow .vf-field--noted > :not(.vf-option-note) { grid-column:1; }
.valuation-flow .vf-field--noted > .vf-hint { display:none; }
.valuation-flow .vf-field--noted > .vf-option-note { grid-column:2; grid-row:2 / span 2; align-self:center; margin:0; padding:2px 0 2px 12px; border-left:2px solid var(--ink-12); color:var(--ink-70); font-size:var(--type-metadata); line-height:var(--line-metadata); }
@media (max-width:560px) {
  .valuation-flow .vf-group-fields > .vf-field--noted { grid-template-columns:1fr; }
  .valuation-flow .vf-field--noted > .vf-option-note { grid-column:1; grid-row:auto; }
}

/* Result step, final layout pass. */
/* The expert card's email label lines up with its field (its icon is dark on dark). */
.valuation-flow[data-current-step="5"] .vf-request-fields > label .vf-label-icon { display:none; }
/* Without a price, the headline may wrap instead of running off a narrow phone. */
.valuation-flow[data-current-step="5"] .vf-result.is-review > strong span { white-space:normal; }
/* A focused email box on navy: an ivory ring, so focus does not read as an error. */
.valuation-flow .vf-pdf-gate__controls input:focus-visible,.valuation-flow[data-current-step="5"] .vf-request-controls > input:focus-visible { outline:2px solid var(--ivory); outline-offset:2px; border-color:var(--ivory); }

/* ---------------------------------------------------------------- result step, reduced
   One figure, one line of basis, one note when the land is missing, then actions. Repeated or
   secondary text is hidden on this step; the illustration carries the special case and the
   most useful missing detail. */
.valuation-flow[data-current-step="5"] .vf-result > .vf-refine { display:flex; align-items:center; gap:8px; margin:8px 0 0; text-transform:none; letter-spacing:var(--tracking-body); font-weight:var(--weight-body); padding:0; border:0; background:none; color:var(--ivory); font-size:var(--type-metadata); line-height:var(--line-metadata); }
.valuation-flow[data-current-step="5"] .vf-result > .vf-refine[hidden] { display:none; }
.valuation-flow[data-current-step="5"] .vf-result > .vf-refine::before { content:''; flex:none; width:7px; height:7px; border-radius:50%; background:var(--brick-on-ink); }
.valuation-flow[data-current-step="5"] .vf-estimate-info p { max-width:600px; padding:2px 0 8px 20px; color:var(--on-ink-65); font-size:var(--type-metadata); line-height:var(--line-metadata); }
.valuation-flow[data-current-step="5"] .vf-estimate-info .vf-disclaimer { display:none; }
.valuation-flow[data-current-step="5"] .vf-expert:not(.is-special-case) [data-vf-expert-copy],
.valuation-flow[data-current-step="5"] .vf-expert .vf-special-case-reasons { display:none; }
.valuation-flow[data-current-step="5"] .vf-request-fields > label { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.valuation-flow[data-current-step="5"] .vf-expert-header { margin-bottom:14px; }
/* Profile: place and type on one line, no sales count, no completeness box or note. */
.valuation-flow[data-current-step="5"] .vf-profile-context { display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 10px; }
.valuation-flow[data-current-step="5"] .vf-profile-type { margin:0; }
.valuation-flow[data-current-step="5"] .vf-profile-context small,
.valuation-flow[data-current-step="5"] .vf-profile-note { display:none; }
/* Special case: the "!" with its reasons, in the top corner of the illustration. */
.valuation-flow .vf-profile-alert { position:absolute; top:4px; right:4px; left:auto; z-index:3; display:flex; flex-direction:column; align-items:flex-end; gap:6px; width:auto; max-width:min(60%,260px); height:auto; padding:0; border:0; border-radius:0; background:none; box-shadow:none; font:inherit; }
.valuation-flow .vf-profile-alert[hidden] { display:none; }
.valuation-flow .vf-profile-alert .vf-profile-alert__mark { width:44px; }
.valuation-flow .vf-profile-alert__reasons { display:flex; flex-direction:column; align-items:flex-end; gap:4px; margin:0; padding:0; list-style:none; }
.valuation-flow .vf-profile-alert__reasons li { padding:3px 8px; border:1px solid #ffffff2e; border-radius:5px; background:#0d2550e6; color:var(--ivory); font-size:var(--type-caption); line-height:var(--line-caption); text-align:right; }
/* Missing detail: a sign under the house that opens its question. */
.valuation-flow .vf-art-missing { display:flex; align-items:center; gap:6px; margin:-4px auto 6px; min-height:36px; padding:6px 14px; border:1px dashed var(--on-ink-40); border-radius:999px; background:#ffffff08; color:var(--ivory); font:inherit; font-size:var(--type-metadata); font-weight:var(--weight-label); line-height:var(--line-metadata); cursor:pointer; }
.valuation-flow .vf-art-missing[hidden] { display:none; }
.valuation-flow .vf-art-missing > span:first-child { color:var(--brick-on-ink); font-size:var(--type-body); font-weight:var(--weight-bold); }
.valuation-flow .vf-art-missing:hover { border-style:solid; background:#ffffff12; }
.valuation-flow .vf-art-missing:focus-visible { outline:2px solid var(--ivory); outline-offset:2px; }
@media (max-width:560px) {
  /* Phones: the reasons run along the top of the picture and the house moves down below them. */
  .valuation-flow .vf-profile-alert { left:0; right:0; max-width:none; flex-direction:row; flex-wrap:wrap; justify-content:flex-end; align-items:center; }
  .valuation-flow .vf-profile-alert__reasons { flex-direction:row; flex-wrap:wrap; justify-content:flex-end; order:-1; }
  .valuation-flow[data-current-step="5"] .vf-profile-art.has-property-sim:has(.vf-profile-alert:not([hidden])) { padding-top:62px; box-sizing:content-box; }
}

/* Yes / No / Not sure answers replace the dropdown (it stays as the hidden form value). */
.valuation-flow .vf-field.has-answer-row > .sel,
.valuation-flow .vf-field.has-answer-row > select { display:none; }
.valuation-flow .vf-answer-choices .vf-count-choice { flex:1 1 auto; padding-inline:10px; white-space:nowrap; }

/* The PDF panel opens smoothly: its row grows, then the content fades up. */
@media (prefers-reduced-motion:no-preference) {
  .valuation-flow .vf-pdf-gate:not([hidden]) { animation:vf-pdf-open 420ms var(--ease) both; overflow:hidden; }
  .valuation-flow .vf-pdf-gate:not([hidden]) > * { animation:vf-pdf-content 360ms var(--ease) 120ms both; }
}
@keyframes vf-pdf-open { from { opacity:0; max-height:0; margin-top:0; padding-block:0; border-color:transparent; } to { opacity:1; max-height:320px; } }
@keyframes vf-pdf-content { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

/* Location: the canton is optional and can be cleared; commune suggestions show their canton. */
.valuation-flow .vf-canton-label { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.valuation-flow .vf-canton-clear { padding:0; border:0; background:none; color:var(--brick); font:inherit; font-size:var(--type-metadata); font-weight:var(--weight-label); line-height:var(--line-metadata); cursor:pointer; }
.valuation-flow .vf-canton-clear[hidden] { display:none; }
.valuation-flow .vf-canton-clear:hover { text-decoration:underline; text-underline-offset:3px; }
.commune-picker__group { padding:10px 14px 2px; color:var(--ink-55); font-size:var(--type-caption); font-weight:var(--weight-label); letter-spacing:var(--tracking-eyebrow); line-height:var(--line-eyebrow); text-transform:uppercase; pointer-events:none; }
.commune-picker__hint { margin-left:6px; color:var(--ink-55); font-size:var(--type-caption); line-height:var(--line-caption); }
/* While the server works out the estimate (api/estimate.js): a short wait, shown on the button. */
.valuation-flow.is-calculating [data-vf-next] { cursor:progress; opacity:.7; }
