/* Vestra: the property finder and one property's page. Tokens and components from app.css; no colors of its own. */

/* ---------- the finder ---------- */
.pf-find { padding: 22px; }
.pf-find-h { font: 600 20px var(--head); margin: 0 0 12px; letter-spacing: -.01em; }
.pf-find-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pf-input { flex: 1 1 420px; width: auto; min-height: 46px; font-size: 15px; padding: 10px 14px; }
.pf-find-row .btn { min-height: 46px; padding: 0 22px; }
.pf-ex { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 12px; font-size: 13px; }
.pf-recent { grid-template-columns: minmax(120px, 34%) minmax(0, 1fr) auto auto; }
.pf-sources { display: flex; flex-direction: column; }
.pf-source { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 2px; border-top: 1px solid var(--line); }
.pf-source:first-child { border-top: 0; }
.pf-source b { display: block; font-weight: 600; font-size: 13.5px; }
.pf-source small { color: var(--muted); font-size: 12px; }

/* ---------- labels: demo figures and sources ---------- */
.pf-demo { display: inline-flex; align-items: center; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font: 600 10.5px/1.6 var(--sans); letter-spacing: .03em; text-transform: uppercase; color: var(--s2); background: var(--warn-soft); cursor: help; white-space: nowrap; vertical-align: middle; }
.pf-src { font-size: 11.5px; color: var(--muted); background: var(--panel-2); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.rd-h .pf-demo { margin-left: 6px; }

/* ---------- one property ---------- */
.pf-actions { flex-wrap: wrap; gap: 8px; }
.pf-chart { position: relative; height: clamp(260px, 38vh, 400px); }
.pf-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px 18px; }
.pf-facts > div { display: flex; flex-direction: column; gap: 1px; padding: 8px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.pf-facts span { font-size: 12px; color: var(--muted); display: flex; align-items: center; }
.pf-facts b { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.pf-h3 { font: 600 14px var(--head); margin: 16px 0 6px; }
.pf-ev { grid-template-columns: 110px minmax(0, 1fr) 0 auto; }
.pf-warn { margin: 12px 0 0; font-size: 12.5px; color: var(--s2); }
.pf-comp th button:not(.help) { all: unset; cursor: pointer; }
.pf-comp tfoot td { font-weight: 600; background: var(--panel-2); }
.pf-comp tr.pf-subject td { background: color-mix(in srgb, var(--s1) 8%, var(--panel)); }
.pf-sig { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 9px 2px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; }
.pf-sig:first-child { border-top: 0; }
.pf-sig > i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); align-self: center; }
.pf-sig.lv3 > i { background: var(--s2); }
.pf-sig.lv2 > i { background: var(--s1); }
.pf-sig small { color: var(--muted); font-size: 11.5px; white-space: nowrap; display: inline-flex; align-items: center; }
.pf-flood { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 10px; background: var(--panel-2); margin-bottom: 14px; }
.pf-flood b { font: 600 16px var(--head); }
.pf-flood small { color: var(--muted); font-size: 12.5px; }
.pf-flood.hi { background: color-mix(in srgb, var(--down) 10%, var(--panel)); }
.pf-nri-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 13px; margin-bottom: 8px; }
.pf-hz { display: grid; grid-template-columns: minmax(110px, 30%) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 5px 0; font-size: 13px; }
.pf-hz-t { height: 8px; border-radius: 4px; background: var(--panel-2); position: relative; overflow: hidden; }
.pf-hz-t i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--s1); }
.pf-hz-t i.neg { background: var(--down); }
.pf-hz-t i.some { background: var(--s2); }
@media (max-width: 640px) {
  .pf-recent { grid-template-columns: minmax(0, 1fr) auto; }
  .pf-recent .nm, .pf-recent small { display: none; }
  .pf-ev { grid-template-columns: 92px minmax(0, 1fr) auto; }
  .pf-ev > span:empty { display: none; }
  .pf-sig { grid-template-columns: 10px minmax(0, 1fr); }
  .pf-sig small { grid-column: 2; }
}

/* ---------- the overview's finder box and deals list ---------- */
.pm-find-row { display: flex; gap: 8px; }
.pm-find { flex: 1 1 auto; width: auto; min-width: 0; }
.pm-find-hint { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.pm-deal { grid-template-columns: minmax(110px, 36%) minmax(0, 1fr) auto auto; }
.pm-deal b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .pm-deal { grid-template-columns: minmax(0, 1fr) auto auto; } .pm-deal .nm { display: none; } }

/* ---------- design pass (2026-11-25) ---------- */
/* The property chart shares its class name with the old portfolio chart in app.css, which drew a box inside the panel. */
.panel > .pf-chart { border: 0; border-radius: 0; overflow: visible; }
@media (max-width: 640px) { .pf-find { padding: 16px; } .pf-find-row .btn { flex: 1 1 100%; } }
@media (max-width: 900px) { .pf-h3 .ulink { display: inline-block; padding-block: 13px; margin-block: -13px; } }
/* Canadian flood-map links: the map's name, then its site. */
.pf-link { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 0; min-height: 44px; }
.pf-link b { color: var(--accent); font-weight: 600; }
.pf-bench tbody tr.pf-subject td { background: color-mix(in srgb, var(--s1) 7%, transparent); }

/* ---------- this home's value over time, and its outlook (property-chart.js) ---------- */
.pf-vctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0 6px; }
.pf-vctl .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-vchart { position: relative; margin-top: 4px; border-radius: 8px; }
.pf-vchart:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.pf-vchart svg { display: block; width: 100%; height: auto; overflow: visible; }
.pf-ax text { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.pf-grid { stroke: var(--line); stroke-width: 1; }
.pf-future { fill: color-mix(in srgb, var(--chart) 4%, transparent); }
.pf-fan { fill: color-mix(in srgb, var(--chart) 13%, transparent); }
.pf-base, .pf-bull, .pf-bear, .pf-areatrend, .pf-homeline { fill: none; }
.pf-base { stroke: var(--chart); stroke-width: 2; stroke-dasharray: 6 4; }
.pf-bull { stroke: var(--up); stroke-width: 1.4; stroke-dasharray: 3 3; }
.pf-bear { stroke: var(--down); stroke-width: 1.4; stroke-dasharray: 3 3; }
.pf-endlab { font-size: 11.5px; font-weight: 600; paint-order: stroke; stroke: var(--panel); stroke-width: 4px; stroke-linejoin: round; font-variant-numeric: tabular-nums; }
.pf-lab-bull { fill: var(--up); } .pf-lab-base { fill: var(--chart); } .pf-lab-bear { fill: var(--down); }
.pf-today { stroke: var(--muted); stroke-dasharray: 2 3; }
.pf-today-t { fill: var(--muted); font-size: 11px; }
.pf-areatrend { stroke: var(--muted); stroke-width: 1.5; opacity: 0.85; }
.pf-homeline { stroke: var(--chart); stroke-width: 2.4; }
.pf-sale { fill: var(--s2); stroke: var(--panel); stroke-width: 2; }
.pf-sale-t { fill: var(--fg); font-size: 11.5px; font-weight: 600; paint-order: stroke; stroke: var(--panel); stroke-width: 4px; stroke-linejoin: round; }
.pf-guide { stroke: var(--muted); stroke-width: 1; }
.pf-dot-home, .pf-dot-area, .pf-dot-base, .pf-dot-bear, .pf-dot-bull { stroke: var(--panel); stroke-width: 2; }
.pf-dot-home, .pf-dot-base { fill: var(--chart); } .pf-dot-area { fill: var(--muted); } .pf-dot-bear { fill: var(--down); } .pf-dot-bull { fill: var(--up); }
.pf-read { min-height: 20px; margin-top: 8px; font-size: 13px; color: var(--fg); font-variant-numeric: tabular-nums; }
.pf-leg i.k-home { background: var(--chart); } .pf-leg i.k-area { background: var(--muted); }
.pf-leg i.k-sale { background: var(--s2); width: 8px; height: 8px; border-radius: 50%; } .pf-leg i.k-fan { background: color-mix(in srgb, var(--chart) 30%, transparent); height: 8px; }
#pf-history .kpis { margin-top: 12px; }
.pf-scen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.pf-scen-c { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 10px; background: var(--panel-2); border-left: 3px solid var(--s1); }
.pf-scen-c.bear { border-left-color: var(--down); } .pf-scen-c.bull { border-left-color: var(--up); }
.pf-scen-h { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.pf-scen-c b { font: 600 22px var(--head); font-variant-numeric: tabular-nums; }
.pf-scen-c small { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pf-scen-c p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.pf-factors td.up { color: var(--up); } .pf-factors td.down { color: var(--down); }
.pf-factors td .help { margin-left: 4px; }
@media (max-width: 640px) { .pf-scen { grid-template-columns: 1fr; } .pf-scen-c b { font-size: 20px; } }
/* The factor table reads as sentences: text columns left and wrapping, the effect right-aligned. */
table.wl.pf-factors { min-width: 0; }
.pf-factors th, .pf-factors td { text-align: left; white-space: normal; }
.pf-factors td:first-child { min-width: 150px; white-space: nowrap; }
.pf-factors th.num, .pf-factors td.num { text-align: right; white-space: nowrap; }
.pf-factors td:last-child { white-space: nowrap; }
#pf-history .kpis { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
@media (max-width: 640px) { .pf-factors td:nth-child(2) { min-width: 150px; } table.wl.pf-factors { min-width: 560px; } }
@media (max-width: 640px) {
  .pf-vctl .seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; }
  .pf-vctl .seg button { padding-inline: 4px; white-space: nowrap; }
}

/* ---------- pictures in the property tiles (tile-viz.js) ---------- */
.rd .tv { display: block; width: 100%; height: auto; max-height: 46px; margin: 2px 0 0; overflow: visible; }
.rd .rd-key { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 11.5px; color: var(--muted); }
.rd .rd-key i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: -0.5px; }
.rd .rd-key i.k-me { background: var(--s1); } .rd .rd-key i.k-ask { background: var(--s2); border-radius: 1px; } .rd .rd-key i.k-med { width: 2px; height: 10px; border-radius: 0; background: var(--fg); }
.rd .rd-key i.k-cost { background: color-mix(in srgb, var(--muted) 55%, transparent); border-radius: 2px; } .rd .rd-key i.k-debt { background: var(--s1); border-radius: 2px; }
.rd .rd-key i.k-left { background: var(--up); border-radius: 2px; } .rd .rd-key i.k-short { background: var(--down); border-radius: 2px; }
.tv-t { fill: var(--muted); font: 500 10.5px var(--sans); font-variant-numeric: tabular-nums; }
.tv-track { stroke: var(--line); stroke-width: 2; stroke-linecap: round; }
.tv-band { fill: color-mix(in srgb, var(--s1) 22%, transparent); }
.tv-me { fill: var(--s1); stroke: var(--panel); stroke-width: 2; }
.tv-ask { fill: var(--s2); }
.tv-med { stroke: var(--fg); stroke-width: 1.6; opacity: 0.7; }
.tv-dot { fill: var(--muted); opacity: 0.55; }
.tv-seg.neg { fill: color-mix(in srgb, var(--down) 30%, transparent); } .tv-seg.some { fill: color-mix(in srgb, var(--s2) 32%, transparent); } .tv-seg.pos { fill: color-mix(in srgb, var(--up) 32%, transparent); } .tv-seg.none { fill: color-mix(in srgb, var(--muted) 25%, transparent); }
.tv-mark { fill: var(--fg); } .tv-markline { stroke: var(--fg); stroke-width: 2; }
.tv-cost { fill: color-mix(in srgb, var(--muted) 55%, transparent); } .tv-debt { fill: var(--s1); } .tv-left { fill: var(--up); } .tv-short { fill: var(--down); opacity: 0.85; }
.tv-rentline { stroke: var(--fg); stroke-width: 1.6; stroke-dasharray: 2 2; }
.tv-area { fill: color-mix(in srgb, var(--chart) 12%, transparent); } .tv-line { fill: none; stroke: var(--chart); stroke-width: 2; stroke-linejoin: round; }
.tv-zero { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 2; }
.tv-fan { fill: color-mix(in srgb, var(--chart) 18%, transparent); } .tv-bear { fill: var(--down); } .tv-bull { fill: var(--up); }

/* ---------- the property simulator (property-sim.js) ---------- */
.sim { display: grid; grid-template-columns: minmax(270px, 340px) minmax(0, 1fr); gap: 22px; margin-top: 8px; }
@media (max-width: 900px) { .sim { grid-template-columns: 1fr; } }
.sim-in { display: flex; flex-direction: column; gap: 14px; }
.sim-g { border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px 12px; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.sim-g legend { padding: 0 6px; font: 600 12.5px var(--sans); color: var(--muted); }
.sim-f { display: flex; flex-direction: column; gap: 4px; }
.sim-l { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--fg); }
.sim-v { font: 600 13.5px var(--sans); font-variant-numeric: tabular-nums; }
.sim-row { display: flex; align-items: center; gap: 10px; }
.sim-num { width: 92px; flex: none; min-height: 34px; padding: 4px 8px; font-variant-numeric: tabular-nums; }
.sim-range { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 28px; background: transparent; cursor: pointer; --p: 50%; }
.sim-range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--accent) var(--p), color-mix(in srgb, var(--muted) 28%, transparent) var(--p)); }
.sim-range::-moz-range-track { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--muted) 28%, transparent); }
.sim-range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--accent); }
.sim-range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: var(--panel); border: 2px solid var(--accent); box-shadow: var(--shadow); }
.sim-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--panel); border: 2px solid var(--accent); }
.sim-range:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.sim-cases { display: flex; gap: 6px; margin-top: -4px; }
.sim-g .seg { width: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.sim-out { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sim-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.sim-k { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); border-top: 3px solid transparent; }
.sim-k span { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.sim-k b { font: 600 20px var(--head); font-variant-numeric: tabular-nums; }
.sim-k.pos { border-top-color: var(--up); } .sim-k.some { border-top-color: var(--s2); } .sim-k.neg { border-top-color: var(--down); }
.sim-chart { width: 100%; min-width: 0; }
.sim-chart svg { display: block; width: 100%; height: auto; }
.sim-zero { stroke: var(--muted); stroke-width: 1; }
.g-growth { fill: var(--s1); } .g-paid { fill: color-mix(in srgb, var(--s1) 50%, var(--panel)); } .g-flow { fill: var(--up); } .g-costs { fill: color-mix(in srgb, var(--down) 70%, transparent); }
.sim-net { fill: var(--fg); stroke: var(--panel); stroke-width: 1.5; }
i.sim-key { width: 10px; height: 10px; border-radius: 2px; } i.sim-key.g-growth { background: var(--s1); } i.sim-key.g-paid { background: color-mix(in srgb, var(--s1) 50%, var(--panel)); }
i.sim-key.g-flow { background: var(--up); } i.sim-key.g-costs { background: color-mix(in srgb, var(--down) 70%, transparent); } i.sim-key.sim-net-k { background: var(--fg); border-radius: 50%; width: 8px; height: 8px; }
.sim-pair { gap: 18px; margin-top: 6px; }
.sim-bars, .sim-torn { display: flex; flex-direction: column; gap: 8px; }
.sim-bar-r, .sim-torn-r { display: grid; grid-template-columns: 110px minmax(60px, 1fr) 92px; align-items: center; gap: 10px; font-size: 13px; }
.sim-torn-r { grid-template-columns: 168px minmax(60px, 1fr) 128px; }
.sim-bar-l { display: flex; flex-direction: column; } .sim-bar-l small { color: var(--muted); font-size: 11.5px; }
.sim-bar-t { position: relative; height: 14px; border-radius: 3px; background: color-mix(in srgb, var(--muted) 12%, transparent); }
.sim-bar-t i { position: absolute; top: 0; bottom: 0; border-radius: 3px; } .sim-bar-t i.pos { background: var(--up); } .sim-bar-t i.neg { background: var(--down); }
.sim-bar-t em { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1.5px; background: var(--fg); opacity: .5; }
.sim-bar-r.you .sim-bar-t i.pos { background: var(--s1); } .sim-bar-r.you b { color: var(--s1); }
.sim-bar-v { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; } .sim-bar-v small { color: var(--muted); font-size: 11.5px; }
.sim-torn-v { text-align: right; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sim-note { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.sim-month { display: flex; flex-direction: column; gap: 6px; }
.sim-m-r { display: grid; grid-template-columns: 130px minmax(40px, 1fr) 86px; align-items: center; gap: 10px; font-size: 13px; }
.sim-m-r b { text-align: right; font-variant-numeric: tabular-nums; }
.sim-m-r.total { border-top: 1px solid var(--line); padding-top: 6px; font-weight: 600; }
.sim-m-t { height: 10px; border-radius: 2px; position: relative; } .sim-m-t i { display: block; height: 100%; border-radius: 2px; }
.sim-m-t i.in { background: var(--up); } .sim-m-t i.out { background: color-mix(in srgb, var(--muted) 55%, transparent); } .sim-m-t i.debt { background: var(--s1); } .sim-m-t i.pos { background: var(--up); } .sim-m-t i.neg { background: var(--down); }
.sim-m-r b.up { color: var(--up); } .sim-m-r b.down { color: var(--down); }
@media (max-width: 640px) {
  .sim-bar-r { grid-template-columns: 92px minmax(40px, 1fr) 78px; } .sim-torn-r { grid-template-columns: 1fr 96px; } .sim-torn-r .sim-bar-t { grid-column: 1 / -1; order: 3; }
  .sim-m-r { grid-template-columns: 112px minmax(30px, 1fr) 80px; } .sim-num { width: 84px; }
}
/* Property tiles have four rows: title, figure, picture with its key, line. */
.rd-grid > .rd.pf-tile { grid-row: span 4; }
.rd.pf-tile .rd-viz { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rd.pf-tile .rd-viz:empty { display: block; }
.rd.pf-tile .rd-l:empty { display: block; }
@media (max-width: 1100px) { .sim { grid-template-columns: 1fr; } .sim-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 12px; align-items: start; } }
.sim-torn-r { grid-template-columns: minmax(100px, 168px) minmax(60px, 1fr) minmax(92px, 128px); }
.sim-bar-r { grid-template-columns: minmax(84px, 110px) minmax(60px, 1fr) minmax(70px, 92px); }
.sim-torn-v, .sim-bar-l, .sim-torn-r > .sim-bar-l { min-width: 0; overflow-wrap: anywhere; }
#pf-sim > .sim-kpis { margin-top: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
@media (min-width: 1101px) { #pf-sim > .sim-kpis { position: sticky; top: 8px; z-index: 2; padding: 6px 0; background: var(--panel); } }

/* ---------- browsing homes for sale (browse.js) ---------- */
.br-ctl { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin: 8px 0 12px; }
.br-sel { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); min-width: 200px; flex: 1 1 200px; max-width: 340px; }
.br-sel select { width: 100%; }
.br-fws { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.br-lab { font: 600 12.5px var(--sans); color: var(--muted); margin-right: 4px; display: inline-flex; align-items: center; gap: 4px; }
.br-n { margin-left: 6px; padding: 0 6px; border-radius: 8px; background: color-mix(in srgb, var(--muted) 20%, transparent); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .br-n { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.br-sum { margin: 4px 0 8px; font-size: 13.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.br-skip { margin: 0 0 8px; font-size: 12.5px; color: var(--muted); }
.br-tools { display: flex; gap: 8px; margin-bottom: 8px; }
.br-tbl td { vertical-align: middle; }
.br-row { cursor: pointer; }
.br-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.br-home { display: flex; flex-direction: column; gap: 1px; color: inherit; text-decoration: none; min-width: 180px; }
.br-home b { font-weight: 600; } .br-home small { color: var(--muted); font-size: 12px; }
.br-tbl td.up { color: var(--up); } .br-tbl td.down { color: var(--down); }
.br-fits { white-space: normal !important; min-width: 160px; text-align: left !important; }
.br-badge { display: inline-block; margin: 2px 4px 2px 0; padding: 2px 8px; border-radius: 10px; font-size: 11.5px; font-weight: 600; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-ink, var(--fg)); white-space: nowrap; }
.br-filter td { padding: 4px 6px; }
.br-mm { display: flex; gap: 4px; justify-content: flex-end; }
.br-mm .inp { width: 70px; min-height: 30px; padding: 2px 6px; font-size: 12px; }
table.wl.br-tbl { min-width: 1060px; }
@media (max-width: 640px) { .br-sel { max-width: none; } }
.br-more { display: inline-block; margin: 2px 0; padding: 2px 6px; border-radius: 10px; font-size: 11.5px; color: var(--muted); background: color-mix(in srgb, var(--muted) 16%, transparent); }
.br-fits { min-width: 210px; }
.br-sum { display: block; } .br-sum .pf-demo { margin-left: 6px; vertical-align: 1px; }
@media (max-width: 640px) {
  .br-fws { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-right: -16px; padding-right: 16px; }
  .br-fws::-webkit-scrollbar { display: none; }
  .br-fws .chip, .br-lab { flex: none; }
}

/* ---------- the call: Buy / Wait / Hold / Sell (verdict-badge.js) ---------- */
.vc { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 8px; border-radius: 12px; font-size: 12px; line-height: 1.6; white-space: nowrap; border: 1px solid transparent; cursor: default; font-variant-numeric: tabular-nums; }
.vc b { font-weight: 700; letter-spacing: .01em; } .vc span { opacity: .85; font-weight: 600; }
.vc.vc-buy { background: color-mix(in srgb, var(--up) 16%, transparent); color: var(--up); border-color: color-mix(in srgb, var(--up) 35%, transparent); }
.vc.vc-hold { background: color-mix(in srgb, var(--s1) 16%, transparent); color: var(--s1); border-color: color-mix(in srgb, var(--s1) 35%, transparent); }
.vc.vc-wait { background: color-mix(in srgb, var(--s2) 18%, transparent); color: var(--s2); border-color: color-mix(in srgb, var(--s2) 38%, transparent); }
.vc.vc-sell { background: color-mix(in srgb, var(--down) 16%, transparent); color: var(--down); border-color: color-mix(in srgb, var(--down) 35%, transparent); }
.vc.weak { opacity: .7; border-style: dashed; }
.vc:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vc.big { font-size: 22px; padding: 4px 16px 4px 14px; border-radius: 18px; gap: 10px; } .vc.big b { font: 700 24px var(--head); } .vc.big span { font-size: 18px; }
.vc-panel { border-left: 4px solid var(--line); }
.vc-panel.vc-buy { border-left-color: var(--up); } .vc-panel.vc-hold { border-left-color: var(--s1); } .vc-panel.vc-wait { border-left-color: var(--s2); } .vc-panel.vc-sell { border-left-color: var(--down); }
.vc-top { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: 18px; align-items: center; }
.vc-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.vc-kicker { font: 600 12.5px var(--sans); color: var(--muted); display: inline-flex; align-items: center; gap: 4px; text-transform: none; }
.vc-meter { width: 100%; max-width: 220px; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--muted) 22%, transparent); overflow: hidden; }
.vc-meter i { display: block; height: 100%; background: currentColor; border-radius: 3px; }
.vc-panel.vc-buy .vc-meter { color: var(--up); } .vc-panel.vc-hold .vc-meter { color: var(--s1); } .vc-panel.vc-wait .vc-meter { color: var(--s2); } .vc-panel.vc-sell .vc-meter { color: var(--down); }
.vc-why { margin: 0; font-size: 15px; line-height: 1.5; }
.vc-fs { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.vc-f { display: grid; grid-template-columns: 170px minmax(90px, 200px) minmax(0, 1fr); gap: 12px; align-items: center; font-size: 13px; }
.vc-f-l { font-weight: 600; } .vc-f-t { color: var(--muted); }
.vc-f-bar { position: relative; height: 10px; border-radius: 3px; background: color-mix(in srgb, var(--muted) 12%, transparent); }
.vc-f-bar i { position: absolute; top: 0; bottom: 0; border-radius: 3px; } .vc-f.for .vc-f-bar i { background: var(--up); } .vc-f.against .vc-f-bar i { background: var(--down); } .vc-f.even .vc-f-bar i { background: var(--muted); }
.vc-f-bar em { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1.5px; background: var(--fg); opacity: .45; }
.vc-f-h { font-size: 11px; color: var(--muted); } .vc-f-ax { display: flex; justify-content: space-between; }
@media (max-width: 760px) { .vc-top { grid-template-columns: 1fr; gap: 10px; } .vc-f { grid-template-columns: 1fr 110px; } .vc-f-t { grid-column: 1 / -1; margin-top: -4px; } .vc-f-h { display: none; } }
.pp-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; } .pp-call:empty { display: none; }
.dl-call { display: inline-flex; flex-direction: column; gap: 2px; }
.pf-callbox:empty { display: none; } .pf-callbox .vc-panel { margin-bottom: 14px; }
.sim-strat { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); }
.sim-strat .seg { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sim-m-r.wide { grid-template-columns: minmax(150px, 260px) minmax(40px, 1fr) 96px; }
.own-top { border-left: 4px solid var(--accent); }
.own-addr { margin: -2px 0 12px; font-size: 13px; }
.own-status { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; }
.own-status .sel { min-height: 34px; }
/* Dial groups fold: a closed one shows its settings in a line, so the dials stay as short as the results beside them. */
details.sim-g { padding: 0; gap: 0; }
details.sim-g > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 10px 34px 10px 14px; position: relative; border-radius: 10px; min-height: 44px; justify-content: center; }
details.sim-g > summary::-webkit-details-marker { display: none; }
details.sim-g > summary::after { content: ''; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
details.sim-g[open] > summary::after { transform: rotate(-135deg); margin-top: -1px; }
details.sim-g > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sim-gt { font: 600 13px var(--sans); color: var(--fg); }
.sim-sum { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
details.sim-g[open] .sim-sum { display: none; }
.sim-gb { display: flex; flex-direction: column; gap: 10px; padding: 0 14px 12px; }
.sim-in { gap: 10px; }
@media (min-width: 1101px) {
  /* Beside the results, the dials stay in view as the results scroll past. */
  .sim-in { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
}
@media (min-width: 1101px) { .sim-in { top: calc(var(--kpih, 150px) + 24px); max-height: calc(100vh - var(--kpih, 150px) - 36px); } }
details.sim-g { display: block; width: 100%; box-sizing: border-box; }
#pf-sim > .sim-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 1300px) { #pf-sim > .sim-kpis { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (max-width: 640px) { #pf-sim > .sim-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sim-strat { width: 100%; box-sizing: border-box; }

/* ---------- the call panel, redesigned: the call, then what counts for and against, across the full width ---------- */
.vc-grid { display: grid; grid-template-columns: minmax(230px, 280px) minmax(0, 1fr) minmax(0, 1fr); gap: 0; align-items: stretch; }
.vc-grid > * { min-width: 0; }
.vc-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-right: 24px; }
.vc-conf { font-size: 12.5px; color: var(--muted); }
.vc-head .vc-why { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--fg); }
.vc-col { padding: 0 22px; border-left: 1px solid var(--line); }
.vc-col-h { display: flex; align-items: center; gap: 8px; margin: 2px 0 12px; font: 600 13px var(--sans); color: var(--fg); }
.vc-col-h > i { width: 8px; height: 8px; border-radius: 50%; } .vc-col.for .vc-col-h > i { background: var(--up); } .vc-col.against .vc-col-h > i { background: var(--down); }
.vc-n { margin-left: auto; min-width: 22px; padding: 0 7px; border-radius: 9px; text-align: center; font-size: 11.5px; color: var(--muted); background: color-mix(in srgb, var(--muted) 15%, transparent); }
.vc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.vc-i { display: flex; flex-direction: column; gap: 4px; }
.vc-i-h { display: grid; grid-template-columns: minmax(0, 150px) minmax(40px, 1fr); align-items: center; gap: 12px; }
.vc-i-h b { font: 600 13px var(--sans); }
.vc-i-bar { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--muted) 12%, transparent); overflow: hidden; }
.vc-i-bar i { display: block; height: 100%; border-radius: 4px; }
.vc-i.for .vc-i-bar i { background: var(--up); } .vc-i.against .vc-i-bar i { background: var(--down); }
.vc-i-t { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.vc-none { margin: 0; font-size: 13px; color: var(--muted); }
.vc-even { margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.vc-panel .vc-top, .vc-panel .vc-fs { display: none; }
@media (max-width: 1100px) { .vc-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 16px; } .vc-head { grid-column: 1 / -1; padding-right: 0; } .vc-col:first-of-type { border-left: 0; padding-left: 0; } }
@media (max-width: 640px) { .vc-grid { grid-template-columns: 1fr; } .vc-col { border-left: 0; padding: 12px 0 0; border-top: 1px solid var(--line); } }

/* ---------- listing events on the value chart ---------- */
.pf-ev { stroke: var(--panel); stroke-width: 1.5; }
.pf-ev-listed { fill: var(--s1); } .pf-ev-cut { fill: var(--down); } .pf-ev-contract { fill: var(--muted); } .pf-ev-withdrawn { fill: var(--muted); }
.pf-leg i.k-ev { width: 10px; height: 10px; border-radius: 0; }
.pf-leg i.k-ev.pf-ev-listed { background: var(--s1); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.pf-leg i.k-ev.pf-ev-cut { background: var(--down); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.pf-leg i.k-ev.pf-ev-contract { background: var(--muted); border-radius: 50%; width: 8px; height: 8px; }
.pf-leg i.k-ev.pf-ev-withdrawn { background: var(--muted); clip-path: polygon(20% 0, 50% 30%, 80% 0, 100% 20%, 70% 50%, 100% 80%, 80% 100%, 50% 70%, 20% 100%, 0 80%, 30% 50%, 0 20%); }
.pf-evs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.pf-evs:empty { display: none; }
.pf-evs-h { font: 600 12.5px var(--sans); color: var(--muted); margin-right: 4px; }
.pf-evc { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-evc b { color: var(--fg); font-weight: 600; }
.pf-evc i { width: 9px; height: 9px; flex: none; }
.pf-evc.pf-ev-listed i { background: var(--s1); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.pf-evc.pf-ev-cut i { background: var(--down); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.pf-evc.pf-ev-contract i { background: var(--muted); border-radius: 50%; }
.pf-evc.pf-ev-withdrawn i { background: var(--muted); clip-path: polygon(20% 0, 50% 30%, 80% 0, 100% 20%, 70% 50%, 100% 80%, 80% 100%, 50% 70%, 20% 100%, 0 80%, 30% 50%, 0 20%); }
.pf-evc.pf-ev-sold i { background: var(--s2); border-radius: 50%; }

/* ---------- property page layout: full-width panels where a pair would leave one half empty ---------- */
.pf-stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.pf-home-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 8px 40px; align-items: start; }
.pf-home-g > .pf-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pf-hist .pf-h3 { margin-top: 0; }
.pf-hrow { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; }
.pf-hev { display: inline-flex; align-items: center; gap: 8px; }
.pf-evi { display: inline-block; width: 9px; height: 9px; flex: none; }
.pf-evi.pf-ev-listed { background: var(--s1); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.pf-evi.pf-ev-cut { background: var(--down); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.pf-evi.pf-ev-contract { background: var(--muted); border-radius: 50%; }
.pf-evi.pf-ev-withdrawn { background: var(--muted); clip-path: polygon(20% 0, 50% 30%, 80% 0, 100% 20%, 70% 50%, 100% 80%, 80% 100%, 50% 70%, 20% 100%, 0 80%, 30% 50%, 0 20%); }
.pf-evi.pf-ev-sold { background: var(--s2); border-radius: 50%; }
.pf-sigs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); column-gap: 32px; }
.pf-sigs .pf-sig:nth-child(-n+2) { border-top: 0; }
.pf-note { margin: 12px 0 0; font-size: 12.5px; }
@media (max-width: 820px) { .pf-home-g { grid-template-columns: 1fr; } .pf-sigs .pf-sig:nth-child(2) { border-top: 1px solid var(--line); } }
/* The home: its facts in one band across the top, then the full history with each price against the one before. */
.pf-home-g { display: block; }
.pf-home-g > .pf-facts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); margin-bottom: 18px; }
.pf-hrow { grid-template-columns: 130px minmax(0, 1.2fr) minmax(90px, auto) minmax(0, 1fr); }
.pf-hch { font-size: 12.5px; text-align: left !important; } .pf-hch.up { color: var(--up); } .pf-hch.down { color: var(--down); }
@media (max-width: 640px) { .pf-hrow { grid-template-columns: 92px minmax(0, 1fr) auto; } .pf-hch { grid-column: 2 / -1; margin-top: -4px; } }
.pf-home-g > .pf-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 1300px) { .pf-home-g > .pf-facts { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pf-home-g > .pf-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pf-hrow { grid-template-columns: 130px 190px 110px minmax(0, 1fr); }
.pf-hrow > b.num { text-align: right; }
@media (max-width: 640px) { .pf-hrow { grid-template-columns: 92px minmax(0, 1fr) auto; } }
.pf-hrow { grid-template-columns: minmax(100px, 0.9fr) minmax(140px, 1.2fr) minmax(90px, 0.8fr) minmax(0, 1.5fr) minmax(0, 1.3fr); }
.pf-hgap { font-size: 12.5px; text-align: right; }
@media (max-width: 640px) { .pf-hrow { grid-template-columns: 92px minmax(0, 1fr) auto; } .pf-hgap { grid-column: 2 / -1; text-align: left; margin-top: -6px; } }

/* One-sided call: the factors take both columns, two abreast. */
.vc-grid.vc-one { grid-template-columns: minmax(230px, 280px) minmax(0, 1fr); }
.vc-one .vc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.vc-other { font: 500 12px var(--sans); color: var(--muted); padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--line); }
@media (max-width: 1100px) { .vc-grid.vc-one { grid-template-columns: minmax(0, 1fr); } .vc-one .vc-col { border-left: 0; padding-left: 0; } }
@media (max-width: 640px) { .vc-one .vc-list { grid-template-columns: 1fr; } .vc-other { display: none; } }

/* The key figures under a property's address, each a label and its figure, with hairlines between. */
.mk-lead.pf-kfs { gap: 8px 0; align-items: center; }
.pf-kf { display: inline-flex; align-items: baseline; gap: 7px; padding: 0 16px; border-left: 1px solid var(--line); line-height: 1.3; }
.pf-kf:first-child { padding-left: 0; border-left: 0; }
.mk-lead > .pf-kf small { font: 500 12.5px var(--sans); color: var(--muted); }
.mk-lead > .pf-kf b { font: 600 14.5px var(--mono); color: var(--fg); }
.mk-lead > .pf-kf b.up { color: var(--up); } .mk-lead > .pf-kf b.down { color: var(--down); }
.pf-kfs > .pf-demo { margin-left: 4px; }
@media (max-width: 640px) { .pf-kf { padding: 0 12px 0 0; border-left: 0; width: calc(50% - 6px); flex-direction: column; gap: 1px; } .pf-kfs { row-gap: 10px; } }
/* A tile's title and its short demo badge keep to one line beside the reading. */
.rd-h > .rd-t { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.rd-h > .rd-t > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-h .pf-demo.pf-demo-s { margin-left: 0; padding: 0 6px; font-size: 10px; flex: none; }

/* Small tables that fit their panel: no forced scrolling width. */
.wl.tb.pf-bench { min-width: 0; } .wl.tb.pf-bench td:first-child { min-width: 0; }
/* A bold label inside an already bold row stays at the row's weight. */
.pf-comp tfoot b, .pf-comp .pf-subject b, .pf-bench .pf-subject b { font-weight: inherit; }
.row.pf-link small { font-size: 12px; }

/* The factors: one column beside the call, the weightier side first, each side two abreast. */
.vc-body { display: flex; flex-direction: column; gap: 14px; padding-left: 24px; border-left: 1px solid var(--line); min-width: 0; }
.vc-body > .vc-col { padding: 0; border-left: 0; }
.vc-body > .vc-col + .vc-col { padding-top: 14px; border-top: 1px solid var(--line); }
.vc-body .vc-col-h { margin-bottom: 10px; }
@media (max-width: 1100px) { .vc-body { padding-left: 0; border-left: 0; padding-top: 14px; border-top: 1px solid var(--line); } }

/* ---------- the property finder's search bar: country, state or province, city or region, frameworks ---------- */
.pf-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 12px; font: 600 11.5px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pf-or::before, .pf-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.br-bar { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, 1.25fr) minmax(0, 1.25fr) auto; align-items: stretch; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); }
.br-f { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; padding: 8px 16px 9px; border-radius: 10px; cursor: pointer; transition: background .12s; }
.br-f + .br-f::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
.br-f:hover { background: color-mix(in srgb, var(--fg) 5%, transparent); }
.br-f:focus-within { background: var(--panel); box-shadow: inset 0 0 0 1.5px var(--accent); }
.br-f:hover::before, .br-f:hover + .br-f::before, .br-f:focus-within::before, .br-f:focus-within + .br-f::before { opacity: 0; }
.br-fl { display: inline-flex; align-items: center; gap: 4px; font: 600 10.5px var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.br-fl .help { text-transform: none; letter-spacing: 0; }
.br-fs { -webkit-appearance: none; appearance: none; width: 100%; min-width: 0; margin: 0; padding: 0 20px 0 0; border: 0; background: none; color: var(--fg); font: 600 14.5px/1.35 var(--sans); text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br-fs:focus { outline: none; }
.br-fs:disabled { color: var(--muted); cursor: default; }
.br-fs option { background: var(--panel); color: var(--fg); font-weight: 500; }
.br-fsel::after, .br-ff::after { content: ''; position: absolute; right: 16px; bottom: 15px; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.br-fsb > span { display: block; overflow: hidden; text-overflow: ellipsis; }
.br-go { align-self: stretch; margin-left: 6px; padding: 0 22px; border-radius: 10px; font-size: 14px; white-space: nowrap; }
.br-go:disabled { opacity: .55; cursor: default; }
.br-ff .br-pop { top: calc(100% + 8px); left: auto; right: 0; }
.br-fwpop { width: min(560px, calc(100vw - 40px)); max-height: min(72vh, 640px); overflow: auto; }
.br-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 6px; }
.br-opt { align-items: flex-start; }
.br-opt > span:nth-child(2) { flex: 1; min-width: 0; }
.br-opt .br-n { flex: none; margin: 1px 0 0 6px; }
.br-n.none { opacity: .55; }
.br-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.br-tools:empty { display: none; }
.br-ranges .mx-rgrid { grid-template-columns: minmax(140px, 1fr) 110px auto 110px; }
.br-inline .br-bar { display: inline-grid; grid-template-columns: minmax(240px, 340px); margin-bottom: 12px; }
@media (max-width: 980px) {
  .br-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .br-f::before { display: none; }
  .br-f { background: var(--panel); }
  .br-go { grid-column: 1 / -1; margin: 2px 0 0; min-height: 44px; }
}
@media (max-width: 560px) {
  .br-bar { grid-template-columns: minmax(0, 1fr); }
  .br-opts { grid-template-columns: minmax(0, 1fr); }
  .br-fs { font-size: 16px; }
  .br-ranges .mx-rgrid { grid-template-columns: minmax(0, 1fr) 76px auto 76px; }
  .br-inline .br-bar { display: grid; grid-template-columns: minmax(0, 1fr); }
}

/* The homes table fits a laptop screen: tighter cells and headings that wrap; it scrolls sideways only on narrow screens. */
.br-tbl th, .br-tbl td { padding-left: 8px; padding-right: 8px; }
.br-tbl th { white-space: normal; vertical-align: bottom; }
.br-tbl th button { white-space: normal; text-align: inherit; }
table.wl.br-tbl { min-width: 0; }
.br-fits { min-width: 140px; } .br-home { min-width: 150px; }
@media (max-width: 1180px) { table.wl.br-tbl { min-width: 1000px; } }

.br-tbl th.br-th-cash { min-width: 84px; }
.br-badge { color: var(--accent); }
.wl.tb.br-tbl td:first-child { min-width: 0; }

.br-slot { display: contents; }
.br-bar:empty { display: none; }
.br-fwb b { font-weight: 600; }
.br-tools[hidden] { display: none; }

/* ---------- the simulator, reworked: header, strategy cards, one results bar, assumptions, underline tabs ---------- */
#pf-sim { padding: 20px 22px 22px; }
.sim-hd { align-items: flex-start; margin-bottom: 16px; }
.sim-hd-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sim-sub { margin: 0; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sim-hd .pg-side { align-items: center; }

.sim-strats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.sim-st { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); cursor: pointer; transition: border-color .12s, background .12s, box-shadow .12s; min-width: 0; }
.sim-st:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 4%, var(--panel)); }
.sim-st:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sim-st[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.sim-st > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sim-st b { font: 600 14px var(--sans); color: var(--fg); }
.sim-st small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.sim-ic { flex: none; width: 36px; height: 36px; padding: 8px; box-sizing: border-box; border-radius: 10px; background: var(--panel-2); fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sim-st[aria-checked="true"] .sim-ic { background: var(--accent); stroke: var(--accent-ink, #fff); }

#pf-sim > .sim-res { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 18px; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); overflow: hidden; grid-template-columns: none; }
@media (min-width: 1101px) { #pf-sim > .sim-res { top: 8px; padding: 0; box-shadow: 0 6px 14px -10px rgba(0, 0, 0, .45); } }
.sim-res .sim-k { flex: 1 1 108px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 12px 16px; border: 0; border-radius: 0; background: none; box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); }
.sim-res .sim-k.sim-main { flex: 1.6 1 220px; background: var(--panel); }
.sim-kl { display: flex; align-items: center; gap: 6px; font: 500 12px var(--sans); color: var(--muted); white-space: nowrap; }
.sim-res .sim-k b { font: 600 18px var(--head); font-variant-numeric: tabular-nums; color: var(--fg); white-space: nowrap; }
.sim-res .sim-k.sim-main b { font-size: 28px; line-height: 1.1; }
.sim-res .sim-k.sim-main b.up { color: var(--up); } .sim-res .sim-k.sim-main b.down { color: var(--down); }
.sim-res .sim-k small { font-size: 12px; color: var(--muted); }
.sim-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.sim-k.pos .sim-dot { background: var(--up); } .sim-k.some .sim-dot { background: var(--s2); } .sim-k.neg .sim-dot { background: var(--down); }
.sim-res .sim-k.pos, .sim-res .sim-k.some, .sim-res .sim-k.neg { border-top: 0; }

.sim { gap: 28px; margin-top: 0; }
.sim-in { gap: 0; }
.sim-in-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 2px 8px; border-bottom: 1px solid var(--line); }
.sim-in-h > span { font: 600 11.5px var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.sim-in-h small { font-size: 12px; color: var(--muted); }
details.sim-g { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
details.sim-g > summary { padding: 12px 30px 12px 2px; border-radius: 0; min-height: 0; }
details.sim-g > summary::after { right: 6px; }
details.sim-g > summary:hover .sim-gt { color: var(--accent); }
.sim-gt { font: 600 13.5px var(--sans); }
.sim-gb { gap: 16px; padding: 2px 2px 16px; }
.sim-f { gap: 6px; }
.sim-l { gap: 10px; }
.sim-lt { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--fg); min-width: 0; }
.sim-val { flex: none; width: 116px; padding: 3px 8px; margin-right: -8px; border: 1px solid transparent; border-radius: 7px; background: none; color: var(--fg); font: 600 14px var(--sans); font-variant-numeric: tabular-nums; text-align: right; cursor: text; transition: border-color .12s, background .12s; }
.sim-val:hover { border-color: var(--line); background: var(--panel-2); }
.sim-val:focus { outline: none; border-color: var(--accent); background: var(--panel); box-shadow: 0 0 0 3px var(--accent-soft); }
.sim-range { height: 20px; width: 100%; }
.sim-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; }
.sim-range::-moz-range-track { height: 4px; } .sim-range::-moz-range-progress { height: 4px; }
.sim-range::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -6px; border-width: 2px; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .1s; }
.sim-range:active::-webkit-slider-thumb { transform: scale(1.15); }
.sim-range::-moz-range-thumb { width: 14px; height: 14px; }
.sim-f .seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; border-radius: 9px; }
.sim-f .seg button { font: 500 12.5px var(--sans); padding: 6px 0; }
.sim-cases { margin-top: -6px; gap: 6px; } .sim-cases .chip { font-size: 12px; padding: 3px 10px; }

.sim-tabs { margin-bottom: 8px; }
.sim-tabs .seg { display: flex; width: 100%; gap: 2px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; overflow-x: auto; scrollbar-width: none; }
.sim-tabs .seg::-webkit-scrollbar { display: none; }
.sim-tabs .seg button { flex: none; margin-bottom: -1px; padding: 9px 12px 10px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: var(--muted); font: 500 13px var(--sans); white-space: nowrap; }
.sim-tabs .seg button:hover { color: var(--fg); }
.sim-tabs .seg button[aria-pressed="true"] { color: var(--fg); border-bottom-color: var(--accent); background: none; font-weight: 600; box-shadow: none; }
.sim-out .pf-h3 { margin-top: 14px; }
.sim-out > div > .pf-h3:first-child { margin-top: 4px; }

@media (max-width: 1100px) { .sim-strats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sim-in { display: flex; } }
@media (max-width: 640px) {
  #pf-sim { padding: 16px; }
  .sim-st { padding: 10px; gap: 10px; } .sim-st small { display: none; } .sim-ic { width: 30px; height: 30px; padding: 6px; }
  .sim-res .sim-k { flex-basis: 40%; padding: 10px 12px; } .sim-res .sim-k.sim-main { flex-basis: 100%; }
  .sim-val { font-size: 16px; width: 124px; }
}
.sim-in { overflow-x: hidden; } .sim-val { margin-right: 0; }
/* A long source line wraps inside its chip rather than widening the page on a phone. */
.pf-src { max-width: 100%; white-space: normal; line-height: 1.4; border-radius: 10px; }

/* ================= Leases & tenants (leases.js) ================= */
.ls-store { margin: -4px 0 2px; }
.ls-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 16px; }
.ls-kpis .kpi b { font-variant-numeric: tabular-nums; white-space: pre-line; line-height: 1.2; }
.ls-top { align-items: start; margin-bottom: 16px; }
.ls-sub { font-size: 12.5px; }
.ls-q { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ls-qi { display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(120px, .8fr) minmax(200px, 1.6fr) minmax(120px, .8fr) minmax(150px, auto); gap: 6px 18px; align-items: center; padding: 12px 2px; border-top: 1px solid var(--line); }
.ls-qi:first-child { border-top: 0; padding-top: 4px; }
.ls-qi.overdue { background: linear-gradient(90deg, color-mix(in srgb, var(--down) 7%, transparent), transparent 40%); }
.ls-qi > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ls-qi .lbl { font: 600 10.5px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ls-qi b { font: 600 14px var(--sans); font-variant-numeric: tabular-nums; }
.ls-qi small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.ls-q-who b a { color: inherit; text-decoration: none; } .ls-q-who b a:hover { text-decoration: underline; }
.ls-q-offer b { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.ls-arrow { color: var(--muted); font-weight: 400; }
.ls-q-offer .chg { font-size: 12px; }
.ls-qi b.down { color: var(--down); }
.ls-q-act { align-items: flex-end; }
.ls-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.ls-q-act .ev-pill { align-self: flex-end; }
.ls-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; justify-content: flex-end; }
.ls-form label { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--muted); }
.ls-form .inp { width: 130px; padding: 5px 8px; }
.ls-form .ls-n { width: 96px; }
.ls-form-b { display: flex; gap: 6px; }
/* The queue lays itself out by the width of its own panel: one line per lease when wide, two when narrower. */
.ls-renew { container-type: inline-size; }
@container (max-width: 980px) { .ls-qi { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); } .ls-q-notice { grid-column: 3; grid-row: 1; } .ls-q-offer { grid-column: 1 / 3; grid-row: 2; } .ls-q-act { grid-column: 3; grid-row: 2; } }
@container (max-width: 560px) { .ls-qi { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ls-q-who { grid-column: 1 / -1; } .ls-q-notice { grid-column: 2; grid-row: 2; } .ls-q-offer { grid-column: 1 / -1; grid-row: 3; } .ls-q-act { grid-column: 1 / -1; grid-row: 4; } .ls-q-act { align-items: flex-start; } .ls-acts, .ls-form { justify-content: flex-start; } .ls-q-act .ev-pill { align-self: flex-start; } }
.ls-ex { width: 100%; height: auto; display: block; }
.ls-ex-b { fill: var(--s2); } .ls-ex-z { fill: var(--line); }
.ls-ex-n { font: 600 11px var(--sans); fill: var(--fg); } .ls-ex-m { font: 500 10.5px var(--sans); fill: var(--muted); }
.ls-rules { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.ls-rules .lbl { font: 600 10.5px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ls-rules ul { margin: 0; padding-left: 16px; display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.ls-rules b { color: var(--fg); font-weight: 600; }
.ls-roll .panel-h .seg { margin-left: auto; }
.ls-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.ls-tools .sel { max-width: 260px; }
table.wl.ls-tbl { min-width: 900px; }
.ls-tbl th, .ls-tbl td { text-align: left; } .ls-tbl th.num, .ls-tbl td.num { text-align: right; }
.ls-tbl td:first-child { min-width: 0; }
.ls-tbl th, .ls-tbl td { padding-left: 8px; padding-right: 8px; }
.ls-row { cursor: pointer; }
.ls-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ls-unit { display: flex; flex-direction: column; gap: 1px; } .ls-unit b { font-weight: 600; } .ls-unit small, .ls-term small { color: var(--muted); font-size: 12px; }
.ls-term { display: flex; flex-direction: column; gap: 1px; white-space: nowrap; }
.ls-ten { display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.ls-tbl td.down { color: var(--down); } .ls-tbl td.up { color: var(--up); }
.ls-tl-wrap { overflow-x: auto; }
.ls-tl { display: block; }
.ls-tl-grid { stroke: var(--line); stroke-width: 1; } .ls-tl-tick { font: 500 10.5px var(--sans); fill: var(--muted); } .ls-tl-tick.today { fill: var(--accent); font-weight: 600; }
.ls-tl-today { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 3; }
.ls-tl-name { font: 500 12px var(--sans); fill: var(--fg); }
.ls-tl-rent { font: 600 11px var(--sans); fill: var(--accent-ink); pointer-events: none; }
.ls-tl-b { cursor: pointer; fill: var(--accent); }
.ls-tl-b.s-ending { fill: var(--s2); } .ls-tl-b.s-upcoming { fill: var(--s1); } .ls-tl-b.s-ended, .ls-tl-b.s-renewed { fill: color-mix(in srgb, var(--muted) 45%, transparent); }
.ls-tl-b.open { fill: color-mix(in srgb, var(--accent) 55%, transparent); stroke: var(--accent); stroke-dasharray: 4 3; }
.ls-tl-b:hover { filter: brightness(1.1); }
.ls-tl-vac { fill: none; stroke: var(--down); stroke-dasharray: 3 4; opacity: .55; }
.ls-tl-offer { fill: var(--panel); stroke: var(--s2); stroke-width: 2; } .ls-tl-offer.sent { fill: var(--s2); }
.ls-tl-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.ls-tl-key span { display: inline-flex; align-items: center; gap: 6px; }
.ls-tl-key i.k { width: 18px; height: 9px; border-radius: 3px; background: var(--accent); }
.ls-tl-key i.s-ending { background: var(--s2); } .ls-tl-key i.s-upcoming { background: var(--s1); } .ls-tl-key i.s-ended { background: color-mix(in srgb, var(--muted) 45%, transparent); }
.ls-tl-key i.s-holdover { background: color-mix(in srgb, var(--accent) 55%, transparent); outline: 1px dashed var(--accent); }
.ls-tl-key i.offer { width: 9px; height: 9px; border-radius: 1px; background: var(--panel); border: 2px solid var(--s2); transform: rotate(45deg); }
/* the lease dialog */
.ls-dlg { width: min(44rem, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--fg); box-shadow: var(--pop); }
.ls-dlg::backdrop { background: rgba(8, 12, 18, .5); }
.ls-dlg[open] { display: flex; flex-direction: column; }
.ls-dlg-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px 10px; border-bottom: 1px solid var(--line); }
.ls-dlg-h h2 { margin: 0; font: 600 19px var(--head); }
.ls-dlg-b { padding: 14px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.ls-dlg-f { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--panel-2); border-radius: 0 0 14px 14px; }
.ls-grow { flex: 1; }
.ls-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.ls-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ls-f { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.ls-f > span { font-weight: 500; }
.ls-f .inp, .ls-f .sel, .ls-f textarea { width: 100%; color: var(--fg); }
.ls-f small { font-size: 11.5px; }
.ls-row2 { display: flex; gap: 6px; align-items: center; } .ls-row2 > :first-child { flex: 1; min-width: 0; }
.ls-row2 .ls-n { width: 90px; flex: none; }
.ls-fs { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 12px; margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ls-fs legend { padding: 0 6px; font: 600 12.5px var(--sans); color: var(--fg); }
.ls-fs .seg { align-self: flex-start; }
.ls-tens { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ls-tenant { display: grid; grid-template-columns: 1.2fr 1.3fr 1fr 26px; gap: 6px; width: 100%; align-items: center; }
.ls-tenant .inp { width: 100%; }
.ls-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.ls-check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; cursor: pointer; } .ls-check input { accent-color: var(--accent); }
.ls-hint { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); }
.ls-hint:empty { display: none; }
.ls-hint .lbl { font: 600 10.5px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.ls-hint b { font: 600 15px var(--sans); } .ls-hint small { font-size: 12px; color: var(--muted); }
.ls-err { margin: 0; color: var(--down); font-size: 13px; } .ls-err:empty { display: none; }
.ls-confirm { font-size: 13px; font-weight: 600; color: var(--down); }
.btn.ls-del { color: var(--down); }
.btn.danger { background: var(--down); border-color: var(--down); color: #fff; }
@media (max-width: 1100px) { .ls-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .ls-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ls-qi { grid-template-columns: minmax(0, 1fr); }
  .ls-grid, .ls-grid.three { grid-template-columns: minmax(0, 1fr); }
  .ls-tenant { grid-template-columns: minmax(0, 1fr) 26px; } .ls-tenant .inp:not(:first-child) { grid-column: 1; }
  .ls-dlg-b, .ls-dlg-h, .ls-dlg-f { padding-left: 14px; padding-right: 14px; }
  .ls-f .inp, .ls-f .sel { font-size: 16px; }
}

/* The property editor: a unit on a lease shows the lease's rent, edited on Leases & tenants. */
.pp-unit-lease { display: inline-flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.pp-unit-lease b { font-weight: 600; } .pp-unit-lease small { font-size: 12px; }
.pp-unit.on-lease .pp-unit-d { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }

/* ================= Rent (rent.js) ================= */
.rt-bar { display: flex; align-items: center; gap: 8px; margin: 2px 0 14px; }
.rt-bar .rt-m { margin: 0 6px; font: 600 18px var(--head); min-width: 150px; text-align: center; }
.rt-bar .btn.sm { min-width: 32px; }
.rt-rate { display: block; height: 5px; margin-top: 6px; border-radius: 3px; background: var(--panel-2); overflow: hidden; }
.rt-rate i { display: block; height: 100%; border-radius: 3px; background: var(--up); }
.rt-top { align-items: start; margin-bottom: 16px; }
.rt-month { margin-bottom: 16px; }
.rt-side { align-items: start; margin-bottom: 16px; }
.rt-arr { margin-bottom: 16px; border-left: 3px solid var(--down); }
.rt-arr-l { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rt-arr-l li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 8px 18px; align-items: center; padding: 10px 2px; border-top: 1px solid var(--line); }
.rt-arr-l li:first-child { border-top: 0; padding-top: 2px; }
.rt-who, .rt-num { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rt-who b a { color: inherit; text-decoration: none; } .rt-who b a:hover { text-decoration: underline; }
.rt-who small, .rt-num small { font-size: 12px; color: var(--muted); }
.rt-num b { font: 600 15px var(--sans); font-variant-numeric: tabular-nums; } .rt-num b.down { color: var(--down); }
table.wl.rt-tbl { min-width: 760px; }
.rt-tbl td { vertical-align: middle; }
.rt-tbl td.muted { color: var(--muted); }
.rt-due { white-space: nowrap; }
.rt-last { display: flex; flex-direction: column; gap: 1px; white-space: nowrap; } .rt-last small, .rt-note { display: block; font-size: 11.5px; color: var(--muted); }
.rt-arrs { display: block; margin-top: 3px; font-size: 11.5px; color: var(--down); }
.rt-act .ls-acts { justify-content: flex-end; flex-wrap: nowrap; }
.rt-trend { width: 100%; height: auto; display: block; }
.rt-grid { stroke: var(--line); stroke-width: 1; } .rt-ax { font: 500 10.5px var(--sans); fill: var(--muted); } .rt-ax.on { fill: var(--fg); font-weight: 600; }
.rt-bar-us { fill: color-mix(in srgb, var(--s1) 55%, transparent); } .rt-bar-us.on { fill: var(--s1); }
.rt-bar-ca { fill: color-mix(in srgb, var(--s3) 50%, transparent); } .rt-bar-ca.on { fill: var(--s3); }
.ls-tl-key i.rt-k-us { background: var(--s1); } .ls-tl-key i.rt-k-ca { background: var(--s3); }
.rt-online p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
.rt-online .panel-h { align-items: center; }
.rt-rule { margin: 0; font-size: 12.5px; line-height: 1.5; }
.rt-msg { width: 100%; font: 13.5px/1.55 var(--sans); }
.rt-imp { display: flex; flex-direction: column; gap: 8px; }
.rt-imp .sel { max-width: 260px; font-size: 12.5px; }
.rt-receipt { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; background: var(--panel); }
.rt-r-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.rt-r-h h3 { margin: 2px 0 0; font: 600 28px var(--head); font-variant-numeric: tabular-nums; }
.rt-r-h .lbl, .rt-r-no .lbl { font: 600 10.5px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rt-r-no { text-align: right; display: flex; flex-direction: column; gap: 2px; } .rt-r-no b { font: 600 13px ui-monospace, Menlo, Consolas, monospace; }
.rt-r-dl { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px 14px; margin: 0; font-size: 13.5px; }
.rt-r-dl dt { color: var(--muted); } .rt-r-dl dd { margin: 0; font-weight: 500; }
.rt-r-for { margin: 0; padding-left: 16px; } .rt-r-foot { margin: 0; color: var(--muted); font-size: 13px; }
@media (max-width: 640px) { .rt-arr-l li { grid-template-columns: minmax(0, 1fr); } .rt-r-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .rt-r-dl dd { margin-bottom: 8px; } .rt-bar .rt-m { min-width: 0; font-size: 16px; } }
/* printing a receipt: only the receipt */
@media print {
  body.rt-printing > *:not(dialog) { display: none !important; }
  body.rt-printing dialog.rt-dlg { position: static; border: 0; box-shadow: none; width: auto; max-height: none; }
  body.rt-printing dialog.rt-dlg::backdrop { display: none; }
  body.rt-printing .ls-dlg-h, body.rt-printing .ls-dlg-f { display: none !important; }
  body.rt-printing .rt-receipt { border-color: #999; color: #000; background: #fff; }
}

/* ================= Books (#properties/books) ================= */
.bk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 2px 0 14px; }
.bk-bar .sel { width: auto; min-width: 180px; }
.bk-since { font-size: 12.5px; margin-left: auto; }
.bk-charts { margin-bottom: 16px; }
.bk-charts > .panel { display: flex; flex-direction: column; }
.bk-chart { width: 100%; height: auto; display: block; }
.bk-grid { stroke: var(--line); stroke-width: 1; }
.bk-ax { font: 500 10.5px var(--sans); fill: var(--muted); } .bk-ax.off { opacity: .45; }
.bk-in { fill: var(--accent); }
.bk-out { fill: var(--s2); }
.bk-int { fill: color-mix(in srgb, var(--s2) 50%, var(--panel)); }
.bk-est { fill: url(#bk-hatch); }
.bk-hatch-bg { fill: color-mix(in srgb, var(--s2) 18%, var(--panel)); } .bk-hatch-l { stroke: var(--s2); stroke-width: 2; }
.ls-tl-key i.bk-k-in { background: var(--accent); } .ls-tl-key i.bk-k-out { background: var(--s2); }
.ls-tl-key i.bk-k-int { background: color-mix(in srgb, var(--s2) 50%, var(--panel)); }
.ls-tl-key i.bk-k-est { background: repeating-linear-gradient(135deg, var(--s2) 0 2px, color-mix(in srgb, var(--s2) 18%, var(--panel)) 2px 5px); }
.bk-cats { list-style: none; margin: 0 -8px; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.bk-cr { all: unset; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(40px, 1fr) 88px 34px; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border-radius: 8px; font-size: 13px; }
button.bk-cr { cursor: pointer; }
button.bk-cr:hover { background: var(--panel-2); }
button.bk-cr:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.bk-cl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-cb { height: 8px; border-radius: 4px; background: var(--panel-2); overflow: hidden; }
.bk-cb i { display: block; height: 100%; border-radius: 4px; background: var(--s2); }
.bk-cb i.int { background: color-mix(in srgb, var(--s2) 50%, var(--panel)); }
.bk-cb i.est { background: repeating-linear-gradient(135deg, var(--s2) 0 2px, color-mix(in srgb, var(--s2) 18%, var(--panel)) 2px 5px); }
.bk-cr b { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.bk-cr small { color: var(--muted); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.bk-aside { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.bk-cats + .bk-aside { margin-top: 12px; }
.bk-pva, .bk-tax { margin-bottom: 16px; }
.bk-pva-t tr.bk-grp th { text-align: center; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.bk-pva-t tr.bk-grp th:empty { border-bottom: 0; }
.bk-pva-t td .ev-pill { white-space: nowrap; }
.bk-pva-t tfoot td, .bk-total td { font-weight: 600; border-top: 1px solid var(--line); }
.bk-tax-t td.bk-ln { font: 500 12px var(--mono); color: var(--muted); white-space: nowrap; width: 1%; }
.bk-tax-t td .rt-note { display: block; }
.bk-tax-t tr.bk-sub td { font-weight: 600; background: var(--panel-2); }
.bk-tax-t tr.bk-net td { font-weight: 700; background: var(--accent-soft); }
.bk-tax-t th.num, .bk-tax-t td.num { white-space: nowrap; }
.bk-notes { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; display: flex; flex-direction: column; gap: 4px; }
.bk-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 10px; }
.bk-tools .sel { width: auto; }
.bk-tools .inp { width: min(260px, 100%); }
.bk-sum { margin-left: auto; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bk-th { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.bk-th:hover { color: var(--fg); }
.bk-th:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.bk-th i { font-style: normal; font-size: 9.5px; opacity: .45; }
th[aria-sort] .bk-th { color: var(--fg); } th[aria-sort] .bk-th i { opacity: 1; color: var(--accent); }
.bk-led-t td.bk-d, .bk-imp-t td.bk-d { white-space: nowrap; }
.bk-led-t td .rt-note { display: block; }
.bk-led-t td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bk-rc { font-size: 12.5px; }
.bk-more { margin-top: 10px; }
.bk-catnote { font-size: 11.5px; line-height: 1.45; }
.ls-dlg.bk-wide { width: min(64rem, calc(100% - 24px)); }
.bk-imp-t .sel { max-width: 220px; font-size: 12.5px; }
@media (max-width: 640px) {
  .bk-bar .sel { min-width: 0; flex: 1 1 160px; }
  .bk-since { margin-left: 0; flex-basis: 100%; }
  .bk-sum { margin-left: 0; flex-basis: 100%; }
  .bk-tools .inp { width: 100%; }
  .bk-cr { grid-template-columns: minmax(0, 1fr) minmax(36px, .6fr) 80px; gap: 8px; } .bk-cr small { display: none; }
}
@media screen { .bk-sheet { display: none; } }
@media print {
  body.bk-printing > *:not(.bk-sheet) { display: none !important; }
  body.bk-printing .bk-sheet { display: block; color: #000; background: #fff; font: 10.5pt var(--sans); }
  .bk-sheet h1 { font: 600 16pt var(--head); margin: 0 0 4pt; } .bk-sheet > p { margin: 0 0 12pt; color: #444; }
  .bk-sheet .tblwrap { overflow: visible; }
  .bk-sheet table { width: 100%; border-collapse: collapse; }
  .bk-sheet th, .bk-sheet td { border-bottom: 1px solid #ccc; padding: 4pt 6pt; text-align: left; color: #000; background: none !important; }
  .bk-sheet .num { text-align: right; } .bk-sheet .rt-note { display: block; color: #555; font-size: 8.5pt; }
  .bk-sheet tr.bk-sub td, .bk-sheet tr.bk-net td { font-weight: 700; border-top: 1px solid #000; }
  .bk-sheet .bk-notes { color: #333; font-size: 9pt; margin-top: 10pt; }
}
.bk-tax-t.wl.tb td:first-child, .bk-pva-t.wl.tb td:first-child { min-width: 0; }
.bk-pva-t.wl.tb td:first-child { min-width: 150px; }
.bk-tax-t.wl.tb thead th.num { white-space: normal; max-width: 120px; vertical-align: bottom; line-height: 1.3; }
.bk-tax-t.wl.tb td:nth-child(2) { min-width: 200px; }
table.wl.bk-tax-t { min-width: 640px; }
.ls-dlg-b > textarea.inp { width: 100%; min-height: 84px; resize: vertical; }
.rt-imp .wl.tb td:first-child, .rt-imp .wl.tb th:first-child { min-width: 0; width: 1%; padding-right: 4px; }
table.wl.bk-imp-t { min-width: 720px; }
.ls-dlg-b > .seg { align-self: flex-start; }
.bk-led-t.wl.tb td:first-child { min-width: 0; }

/* ================= Streamlined pages (2026-11-25) ================= */
/* Rent: the last six months' collection as small bars inside the Collected figure. */
.rt-spark { display: flex; align-items: flex-end; gap: 3px; height: 26px; margin-top: 8px; }
.rt-spark b { align-self: center; margin-right: 4px; font: 600 10px var(--mono); color: var(--muted); }
.rt-spark i { flex: 1 1 0; max-width: 14px; min-height: 2px; border-radius: 2px 2px 1px 1px; background: color-mix(in srgb, var(--up) 40%, var(--panel-2)); }
.rt-spark i.on { background: var(--up); }
.rt-spark i.none { background: var(--panel-2); }
.rt-spark + .rt-spark { margin-top: 4px; }
/* Rent: where the month's payments are, and the one line on paying online. */
.rt-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; }
.rt-books { color: var(--accent); font-weight: 600; text-decoration: none; }
.rt-books::after { content: " →"; }
.rt-books:hover { text-decoration: underline; text-underline-offset: 3px; }
.rt-hist { margin-top: 16px; }
/* Books: the year-end summary's bottom line, shown while its lines are folded. */
.bk-taxline { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.bk-taxline b { margin-left: 4px; color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.bk-taxline b.down { color: var(--down); }
/* The bank import: money in and money out, each with its own table. */
.bi-out { gap: 14px; }
.bi-sec { display: flex; flex-direction: column; gap: 8px; }
.bi-sec + .bi-sec { padding-top: 12px; border-top: 1px solid var(--line); }
.bi-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.bi-h h3 { margin: 0; font: 600 15px var(--head); }
.bi-h span { font-size: 12.5px; }
/* Leases: the rent-increase limits, folded under the renewals queue. */
.ls-rules-d { gap: 0; }
.ls-rules-d summary { cursor: pointer; font: 600 12.5px var(--sans); color: var(--muted); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.ls-rules-d summary::-webkit-details-marker { display: none; }
.ls-rules-d summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.ls-rules-d[open] summary::before { transform: rotate(45deg); }
.ls-rules-d summary:hover { color: var(--fg); }
.ls-rules-d summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.ls-rules-d ul { margin-top: 8px; }
/* Portfolio: the analyses under one row of tabs. */
.pp-an-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 20px; margin: 8px 0 -4px; }
.pp-an-h .h2 { margin: 0 0 9px; }
.pp-an-tabs { flex: 1 1 auto; justify-content: flex-end; border-bottom: 0; }
.pp-an-tabs .tab { background: none; border: 0; border-bottom: 2px solid transparent; font: 500 14px var(--sans); cursor: pointer; }
.pp-an-tabs .tab[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); }
.pp-an-tabs .tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 6px 6px 0 0; }
@media (max-width: 760px) { .pp-an-tabs { justify-content: flex-start; flex-basis: 100%; } .pp-an-h { margin-bottom: 0; } }
/* Leases: the queue runs the full width now; a fixed action column keeps every row's columns in line. */
@container (min-width: 900px) { .ls-qi { grid-template-columns: minmax(170px, 1.1fr) minmax(130px, .8fr) minmax(220px, 1.7fr) minmax(130px, .8fr) 270px; } .ls-q-act { align-items: flex-end; } }
.view [role="tabpanel"][hidden] { display: none !important; }

/* ================= One page per property (2026-11-25) ================= */
/* Running it: an owned home's day to day, under its figures. */
.own-ops { margin-bottom: 14px; }
.ops-todo { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ops-todo li { position: relative; padding-left: 16px; font-size: 13.5px; line-height: 1.45; }
.ops-todo li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--s2); }
.ops-todo li.bad::before { background: var(--down); }
.ops-todo a { color: var(--fg); text-decoration: none; }
.ops-todo a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ops-ok { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.ops-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 12px; align-items: start; }
.ops-c { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--panel-2); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ops-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ops-h h3 { margin: 0; font: 600 14px var(--head); }
.ops-more { font-size: 12.5px; color: var(--accent); text-decoration: none; font-weight: 600; white-space: nowrap; }
.ops-more::after { content: " →"; }
.ops-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.ops-l { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ops-l li { display: grid; grid-template-columns: minmax(0, 1fr) auto 104px; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.ops-l li:first-child { border-top: 0; padding-top: 2px; }
.ops-l li .ev-pill { justify-self: end; white-space: nowrap; }
.ops-who, .ops-fig { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ops-who b { font-weight: 600; font-size: 13px; }
.ops-who small, .ops-fig small { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-fig { text-align: right; }
.ops-fig b { font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.ops-big b { font: 600 20px var(--head); font-variant-numeric: tabular-nums; }
.ops-big span { font-size: 12.5px; }
.ops-bar { display: block; height: 6px; border-radius: 3px; background: var(--panel); overflow: hidden; }
.ops-bar i { display: block; height: 100%; background: var(--up); border-radius: 3px; }
.ops-warn { margin: 0; font-size: 12.5px; color: var(--down); }
.ops-empty { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.ops-dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.ops-dl > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ops-dl dt { font-size: 11.5px; color: var(--muted); }
.ops-dl dd { margin: 0; display: flex; flex-direction: column; gap: 1px; }
.ops-dl dd b { font: 600 16px var(--head); font-variant-numeric: tabular-nums; }
.ops-dl dd small { font-size: 11.5px; color: var(--muted); }
.ops-dl dd .down { color: var(--down); }
/* A fold: a heading bar that opens to more panels (the owned home's market analysis, the analyzer's deeper tools). */
.pf-fold > summary, .dl-more > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 14px 18px 14px 40px; position: relative; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.pf-fold > summary::-webkit-details-marker, .dl-more > summary::-webkit-details-marker { display: none; }
.pf-fold > summary::before, .dl-more > summary::before { content: ""; position: absolute; left: 19px; top: 21px; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; }
.pf-fold[open] > summary::before, .dl-more[open] > summary::before { transform: rotate(45deg); top: 18px; }
.pf-fold > summary:hover, .dl-more > summary:hover { background: var(--panel-2); }
.pf-fold > summary:focus-visible, .dl-more > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pf-fold-t { font: 600 16px var(--head); color: var(--fg); }
.pf-fold > summary small, .dl-more > summary small { font-size: 12.5px; color: var(--muted); }
.pf-fold-b { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; min-width: 0; }
.dl-more-b { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; min-width: 0; }
.ls-dlg.bk-wide .bi-sec .tblwrap { max-width: 100%; }
@media (max-width: 640px) { .ops-l li { grid-template-columns: minmax(0, 1fr) auto; } .ops-l li .ev-pill { grid-column: 1 / -1; justify-self: start; } }

/* ================= Upkeep (#properties/upkeep) ================= */
.ops-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.up-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .up-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.up-work, .up-two { margin-bottom: 16px; }
.up-two { align-items: start; }
/* Work orders: one row each, in columns that line up. */
.up-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; container-type: inline-size; }
.up-row { display: grid; grid-template-columns: minmax(200px, 2.2fr) minmax(150px, auto) minmax(110px, .9fr) minmax(130px, 1fr) minmax(90px, .7fr) 150px; gap: 6px 16px; align-items: center; padding: 11px 4px; border-top: 1px solid var(--line); }
.up-row:first-child { border-top: 0; }
.up-row.urgent { background: linear-gradient(90deg, color-mix(in srgb, var(--down) 8%, transparent), transparent 45%); }
.up-what, .up-when, .up-who, .up-cost { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.up-what b { font-weight: 600; font-size: 13.5px; }
.up-what small, .up-when small, .up-who small, .up-cost small { font-size: 12px; color: var(--muted); }
.up-when span, .up-who span { font-size: 13px; }
.up-who a { font-size: 12px; color: var(--accent); text-decoration: none; } .up-who a:hover { text-decoration: underline; }
.up-cost { text-align: right; } .up-cost b { font-weight: 600; font-variant-numeric: tabular-nums; }
.up-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.up-row .ls-acts { justify-content: flex-end; }
.up-when .down, .up-what .down { color: var(--down); }
@container (max-width: 860px) { .up-row { grid-template-columns: minmax(0, 1fr) auto; } .up-tags { grid-column: 2; grid-row: 1; justify-content: flex-end; } .up-when, .up-who { grid-column: 1; } .up-cost { grid-column: 2; grid-row: 2; } .up-row .ls-acts { grid-column: 1 / -1; justify-content: flex-start; } }
/* Recurring jobs and inspections: a compact list. */
.up-jobs-l { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.up-jobs-l li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(100px, auto) auto; gap: 6px 14px; align-items: center; padding: 9px 2px; border-top: 1px solid var(--line); }
.up-jobs-l li:first-child { border-top: 0; }
.up-jobs-l li.overdue, .up-jobs-l li.due.due { }
.up-jobs-l li.overdue .up-when span { color: var(--down); font-weight: 600; }
.up-jobs-l li.due .up-when span { color: var(--s2); font-weight: 600; }
.up-jobs-l li .up-when { text-align: right; }
.up-con-t td:first-child { min-width: 0; }
table.wl.up-con-t { min-width: 760px; }
.up-con-t td a { color: var(--accent); text-decoration: none; } .up-con-t td a:hover { text-decoration: underline; }
/* The inspection editor: rooms that fold, an item per row with its rating, note and action. */
.up-tally { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--muted); padding: 8px 12px; border-radius: 10px; background: var(--panel-2); }
.up-tally b { color: var(--fg); }
.up-tally .pos-t { color: var(--up); } .up-tally .some-t { color: var(--s2); } .up-tally .neg-t { color: var(--down); }
.up-room { border: 1px solid var(--line); border-radius: 12px; }
.up-room > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 10px; padding: 11px 14px 11px 34px; position: relative; }
.up-room > summary::-webkit-details-marker { display: none; }
.up-room > summary::before { content: ""; position: absolute; left: 14px; top: 17px; width: 6px; height: 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; }
.up-room[open] > summary::before { transform: rotate(45deg); top: 14px; }
.up-room > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 12px; }
.up-room[open] > summary { border-bottom: 1px solid var(--line); }
.up-items { display: flex; flex-direction: column; }
.up-item { display: grid; grid-template-columns: minmax(150px, 1.1fr) auto minmax(140px, 1.3fr) minmax(170px, auto); gap: 6px 12px; align-items: center; padding: 8px 14px; border-top: 1px solid var(--line); }
.up-item:first-child { border-top: 0; }
.up-iname { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 13px; }
.up-was { font-size: 11.5px; color: var(--muted); }
.up-was.chg { color: var(--s2); background: none; padding: 0; }
.up-rate button { padding: 5px 8px; font-size: 11.5px; }
.up-rate button[aria-pressed="true"]:nth-child(1) { background: var(--up); color: var(--bg); }
.up-rate button[aria-pressed="true"]:nth-child(2) { background: var(--s2); color: var(--bg); }
.up-rate button[aria-pressed="true"]:nth-child(3) { background: var(--down); color: var(--bg); }
.up-note { min-width: 0; font-size: 12.5px; }
.up-act { display: flex; gap: 6px; align-items: center; }
.up-act .sel { font-size: 12.5px; min-width: 0; }
.up-cost-in { width: 86px; font-size: 12.5px; }
.up-cost-in[hidden] { display: none; }
.up-room-a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--panel-2); border-radius: 0 0 12px 12px; }
.up-add-in { width: min(220px, 100%); font-size: 12.5px; }
.up-usual { flex-direction: column; gap: 8px; }
@media (max-width: 760px) { .up-item { grid-template-columns: minmax(0, 1fr); } .up-act { flex-wrap: wrap; } }
/* The printed report and deposit statement. */
.up-report table, .up-dep-t { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 12.5px; }
.up-report th, .up-report td, .up-dep-t th, .up-dep-t td { text-align: left; padding: 5px 6px; border-bottom: 1px solid var(--line); }
.up-report th:first-child { font-weight: 700; }
.up-dep-t .num { text-align: right; }
.up-dep-t tfoot td { font-weight: 700; }
.up-sign { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; margin-top: 26px; }
.up-sign div { display: flex; flex-direction: column; gap: 22px; font-size: 12px; color: var(--muted); }
.up-sign i { display: block; border-bottom: 1px solid currentColor; }

/* ---------- design pass: the property page's tiles everywhere (ui.js vtile, tile-viz.js pictures) ---------- */
.rd.still { cursor: default; }
.rd.still:hover { transform: none; border-color: var(--line); }
.rd .rd-t .help { flex: none; }
.vt-grid { margin: 0 0 14px; }
@media (min-width: 1240px) {
  .vt-grid.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vt-grid.n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .vt-grid.n6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 1240px) and (max-width: 1500px) { .vt-grid.n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .vt-grid.n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.vt-grid.n5 .rd-b b, .vt-grid.n6 .rd-b b { font-size: 23px; }
.tv-area.s2 { fill: color-mix(in srgb, var(--s2) 18%, transparent); } .tv-line.s2 { stroke: var(--s2); } .tv-me.s2 { fill: var(--s2); }
.tv-area.up { fill: color-mix(in srgb, var(--up) 16%, transparent); } .tv-line.up { stroke: var(--up); } .tv-me.up { fill: var(--up); }
.tv-area.down { fill: color-mix(in srgb, var(--down) 14%, transparent); } .tv-line.down { stroke: var(--down); } .tv-me.down { fill: var(--down); }
.tv-up { fill: var(--up); } .tv-down { fill: var(--down); }
.tv-bg { fill: color-mix(in srgb, var(--muted) 16%, transparent); }
.tv-fill.pos { fill: var(--up); } .tv-fill.some { fill: var(--s2); } .tv-fill.neg { fill: var(--down); } .tv-fill.s1 { fill: var(--s1); } .tv-fill.none { fill: var(--muted); }
.tv-part.pos, .tv-unit.pos, .tv-pt.pos { fill: var(--up); }
.tv-part.some, .tv-unit.some, .tv-pt.some { fill: var(--s2); }
.tv-part.neg, .tv-unit.neg, .tv-pt.neg { fill: var(--down); }
.tv-part.none, .tv-unit.none, .tv-pt.none { fill: color-mix(in srgb, var(--muted) 38%, transparent); }
.tv-part.s1, .tv-unit.s1, .tv-pt.s1 { fill: var(--s1); } .tv-part.s2 { fill: var(--s2); } .tv-part.s3, .tv-unit.s3 { fill: var(--s3); }
.tv-part.cost { fill: color-mix(in srgb, var(--muted) 55%, transparent); }
.tv-pt { stroke: var(--panel); stroke-width: 1.5; }
.tv-bar.s1 { fill: color-mix(in srgb, var(--s1) 38%, transparent); } .tv-bar.s1.on { fill: var(--s1); }
.tv-bar.pos { fill: color-mix(in srgb, var(--up) 38%, transparent); } .tv-bar.pos.on { fill: var(--up); }
.tv-bar.s2 { fill: color-mix(in srgb, var(--s2) 40%, transparent); } .tv-bar.s2.on { fill: var(--s2); }
.rd .rd-key i.k-pos { background: var(--up); border-radius: 2px; } .rd .rd-key i.k-some { background: var(--s2); border-radius: 2px; }
.rd .rd-key i.k-neg { background: var(--down); border-radius: 2px; } .rd .rd-key i.k-none { background: color-mix(in srgb, var(--muted) 38%, transparent); border-radius: 2px; }
.rd .rd-key i.k-s1 { background: var(--s1); border-radius: 2px; } .rd .rd-key i.k-s2 { background: var(--s2); border-radius: 2px; } .rd .rd-key i.k-s3 { background: var(--s3); border-radius: 2px; }
.tv-fill.s2 { fill: var(--s2); } .tv-fill.s3 { fill: var(--s3); }

/* Market overview: housing readings carry their tone along the top; city rows a value line. */
.pm-reg { position: relative; overflow: hidden; padding-top: 15px; background: linear-gradient(180deg, color-mix(in srgb, var(--tone, var(--muted)) 9%, var(--panel-2)), var(--panel-2) 70%); }
.pm-reg::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--tone, var(--muted)); }
.pm-reg.pos { --tone: var(--up); } .pm-reg.some { --tone: var(--s2); } .pm-reg.neg { --tone: var(--down); }
.pm-reg-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pm-reg-h b { font-size: 14px; }
.pm-spark { display: inline-flex; align-items: center; gap: 8px; }
.pm-spark svg { width: 72px; height: 22px; }
@media (max-width: 640px) { .pm-spark svg { display: none; } }
/* On a phone a row of summary tiles becomes a strip to swipe through, so the screen's main content stays near the top. */
@media (max-width: 640px) {
  .vt-grid.vt-swipe { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
  .vt-grid.vt-swipe > .rd { scroll-snap-align: start; }
}

/* Deal statuses in the pipeline tile, the same colours as the table's strip (deals.css .dl-strip). */
.tv-part.st-0 { fill: color-mix(in srgb, var(--muted) 35%, transparent); } .tv-part.st-1 { fill: color-mix(in srgb, var(--s1) 50%, transparent); } .tv-part.st-2 { fill: var(--s1); }
.tv-part.st-3 { fill: var(--s2); } .tv-part.st-4 { fill: var(--up); } .tv-part.st-5 { fill: color-mix(in srgb, var(--muted) 18%, transparent); }
.rd .rd-key i.k-st0 { background: color-mix(in srgb, var(--muted) 35%, transparent); } .rd .rd-key i.k-st1 { background: color-mix(in srgb, var(--s1) 50%, transparent); } .rd .rd-key i.k-st2 { background: var(--s1); }
.rd .rd-key i.k-st3 { background: var(--s2); } .rd .rd-key i.k-st4 { background: var(--up); } .rd .rd-key i.k-st5 { background: color-mix(in srgb, var(--muted) 18%, transparent); }
.rd .rd-key i[class^="k-st"] { border-radius: 2px; }

/* Headline tiles holding a figure per currency put each on its own line. */
.vt-grid .rd-b b { white-space: pre-line; font-variant-numeric: tabular-nums; }
.tv-bar.neg { fill: color-mix(in srgb, var(--down) 38%, transparent); } .tv-bar.neg.on { fill: var(--down); }
/* Narrow tiles: the status pill drops under the title rather than running into the next tile. */
.vt-grid .rd-h { flex-wrap: wrap; row-gap: 4px; }
.vt-grid .rd-h > .rd-t { min-width: 0; }
.vt-grid .rd-h > .rd-t > span:first-child { white-space: normal; overflow: visible; }
.rd-h .ev-pill { flex: none; white-space: nowrap; }
.tv-unit.s2 { fill: var(--s2); }
.al-sum { margin-bottom: 16px; }
/* Bringing the tiles in: a short rise as a row appears, and each picture's bars growing into place. Off for anyone who
   asks for less motion, and for the tiles that repaint as you type (the City Finder's and the deal analyzer's). */
@media (prefers-reduced-motion: no-preference) {
  .vt-grid:not(.mx-tiles) > .rd, .rd-grid > .rd.pf-tile, .pp-hero { animation: vt-in .42s cubic-bezier(.2, .7, .2, 1) both; }
  .vt-grid > .rd:nth-child(2), .rd-grid > .rd.pf-tile:nth-child(2) { animation-delay: 40ms; }
  .vt-grid > .rd:nth-child(3), .rd-grid > .rd.pf-tile:nth-child(3) { animation-delay: 80ms; }
  .vt-grid > .rd:nth-child(4), .rd-grid > .rd.pf-tile:nth-child(4) { animation-delay: 120ms; }
  .vt-grid > .rd:nth-child(5), .rd-grid > .rd.pf-tile:nth-child(5) { animation-delay: 160ms; }
  .vt-grid > .rd:nth-child(6), .rd-grid > .rd.pf-tile:nth-child(6) { animation-delay: 200ms; }
  .vt-grid > .rd:nth-child(7), .rd-grid > .rd.pf-tile:nth-child(7) { animation-delay: 240ms; }
  .vt-grid > .rd:nth-child(n+8), .rd-grid > .rd.pf-tile:nth-child(n+8) { animation-delay: 280ms; }
  :is(.vt-grid:not(.mx-tiles), .pp-ht-viz, .rd-grid) :is(.tv-fill, .tv-part, .tv-up, .tv-down) { transform-box: fill-box; transform-origin: left center; animation: vt-grow .7s .15s cubic-bezier(.2, .7, .2, 1) both; }
  :is(.vt-grid:not(.mx-tiles), .pp-ht-viz, .rd-grid) .tv-bar { transform-box: fill-box; transform-origin: center bottom; animation: vt-rise .6s .15s cubic-bezier(.2, .7, .2, 1) both; }
  :is(.vt-grid:not(.mx-tiles), .pp-ht-viz, .rd-grid) :is(.tv-line, .tv-area) { animation: vt-fade .8s .1s ease both; }
}
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes vt-grow { from { transform: scaleX(0); } }
@keyframes vt-rise { from { transform: scaleY(0); } }
@keyframes vt-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) { :is(.vt-grid:not(.mx-tiles), .pp-ht-viz, .rd-grid) .tv-down { transform-origin: right center; } }
@media (max-width: 640px) { .vt-grid.vt-swipe { overflow-y: hidden; } }

/* One page width everywhere (Moe's Vestra row 26): every screen uses the width the tables had, so the margins match
   from the Overview to Deals and Properties on a wide monitor. Pages fill from the menu's edge up to 1760px. */
body .top-in, body .view, body .foot { max-width: 1760px; }

/* The Overview's market call (property-market.js paintCall): the property page's call panel for a whole place, with a
   balance bar from against to in favour in place of the confidence bar. */
.pm-callbox:empty { display: none; }
.mc-panel { background: linear-gradient(120deg, color-mix(in srgb, var(--tone, var(--muted)) 7%, var(--panel)), var(--panel) 55%); }
.mc-panel.vc-buy { --tone: var(--up); } .mc-panel.vc-wait { --tone: var(--s2); } .mc-panel.vc-sell { --tone: var(--down); }
.mc-bal { width: 100%; max-width: 240px; display: flex; flex-direction: column; gap: 4px; }
.mc-bal-t { position: relative; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--down), color-mix(in srgb, var(--s2) 80%, transparent) 50%, var(--up)); opacity: .9; }
.mc-bal-m { position: absolute; top: -4px; width: 4px; height: 16px; margin-left: -2px; border-radius: 2px; background: var(--fg); box-shadow: 0 0 0 2px var(--panel); }
.mc-bal-l { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.vc-even { margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
/* The Canadian rates spread down their panel, so it ends level with the US one beside it. */
@media (min-width: 900px) {
  .pm-ca-rates, .pm-us-rates { display: flex; flex-direction: column; }
  .pm-ca-rates > .mk-rows { flex: 1; justify-content: space-between; }
}

/* ---------- tenant screening (screening.js) and the Leases page's "+" menu ---------- */
.ls-add { position: relative; }
.ls-addb { min-width: 40px; padding-inline: 0; justify-content: center; font: 600 22px/1 var(--sans); }
.ls-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 230px; display: flex; flex-direction: column; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--pop); }
.ls-menu[hidden] { display: none; }
.ls-menu button { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; border-radius: 8px; }
.ls-menu button b { font: 600 14px var(--sans); color: var(--fg); } .ls-menu button small { font-size: 12px; color: var(--muted); }
.ls-menu button:hover, .ls-menu button:focus-visible { background: var(--accent-soft); outline: none; }
.ls-apps .panel-h { flex-wrap: wrap; gap: 10px; }
.ls-apps .panel-h .seg { margin-left: auto; }
.ls-apps .vt-grid { margin: 0; }
.ls-dlg.sc-dlg { width: min(60rem, calc(100% - 24px)); }
.sc-sum { display: grid; grid-template-columns: auto minmax(180px, 1.3fr) minmax(150px, 1fr); gap: 6px 22px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.sc-s { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sc-s .lbl { font-size: 11.5px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.sc-s b { font: 600 15px var(--head); font-variant-numeric: tabular-nums; }
.sc-s .ev-pill { align-self: flex-start; }
.sc-s .tv { display: block; width: 100%; max-width: 260px; height: auto; max-height: 34px; overflow: visible; }
.sc-next { grid-column: 1 / -1; margin: 2px 0 0; font-size: 13px; color: var(--fg); }
.sc-tabs { padding: 12px 20px 0; }
.sc-b { gap: 14px; }
.sc-row { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.sc-row.off { background: var(--panel-2); }
.sc-row-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sc-row-h b { display: inline-flex; align-items: center; gap: 4px; font: 600 14px var(--sans); }
.sc-row-h .ev-pill { margin-left: auto; }
.sc-row .seg { align-self: flex-start; flex-wrap: wrap; }
.sc-block { margin: 0; font-size: 12.5px; }
.sc-note, .sc-rules { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 10px; font-size: 13px; }
.sc-note { background: var(--warn-soft); } .sc-note p { margin: 0; }
.sc-rules { background: var(--accent-soft); } .sc-rules ul { margin: 2px 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.sc-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.sc-col { padding: 0 16px; border-left: 1px solid var(--line); min-width: 0; } .sc-col:first-child { border-left: 0; padding-left: 0; }
.sc-col .vc-col-h > i { width: 8px; height: 8px; border-radius: 50%; } .sc-col.for .vc-col-h > i { background: var(--up); } .sc-col.watch .vc-col-h > i { background: var(--s2); } .sc-col.against .vc-col-h > i { background: var(--down); }
.sc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sc-list li { display: flex; flex-direction: column; gap: 1px; font-size: 12.5px; color: var(--muted); } .sc-list li b { color: var(--fg); font-size: 13px; }
.sc-done { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); }
.sc-letterbox { gap: 8px; } .sc-grow { flex: 1; }
textarea.sc-letter { width: 100%; font: 13px/1.5 var(--sans); resize: vertical; background: var(--panel-2); }
.sc-reasons { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 760px) {
  .sc-sum { grid-template-columns: minmax(0, 1fr); padding: 10px 14px; } .sc-tabs { padding: 10px 14px 0; }
  .sc-cols { grid-template-columns: minmax(0, 1fr); gap: 12px; } .sc-col { border-left: 0; padding: 0; }
  .ls-apps .panel-h .seg { margin-left: 0; }
}
.sc-row > input.inp { width: 100%; }
@media (max-width: 760px) {
  .sc-sum { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 14px; }
  .sc-sum .sc-aff { grid-column: 1 / -1; order: 3; }
  .sc-sum .sc-next { order: 4; }
}

/* The Overview's location control (row 31): lit with the city while it shows where you are, an icon to go back otherwise. */
.pm-locate { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; min-width: 34px; padding: 0 9px; border-radius: 17px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; font: 500 12.5px var(--sans); transition: color .15s, border-color .15s, background .15s; }
.pm-locate svg { width: 18px; height: 18px; flex: none; }
.pm-locate:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.pm-locate.on { color: var(--accent); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); cursor: default; padding-right: 12px; }
.pm-locate:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) { .pm-locate { margin-left: 0; } }

/* The admin panel's banner, shown to everyone until they close it (row 32). */
.app-banner { display: flex; align-items: center; gap: 12px; margin: 12px auto 0; max-width: 1760px; width: calc(100% - 48px); padding: 10px 14px; border-radius: 10px; font-size: 14px; border: 1px solid var(--line); }
.app-banner.info { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.app-banner.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--s2) 35%, var(--line)); }
.app-banner span { flex: 1; min-width: 0; }
@media (max-width: 640px) { .app-banner { width: calc(100% - 24px); margin-top: 8px; } }

/* ---------- the View by bar on every market page (place-bar.js, Moe's Vestra row 35) ---------- */
.vb { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: var(--shadow); }
.vb-lbl { display: inline-flex; align-items: center; gap: 7px; padding: 0 4px 0 8px; font: 600 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vb-gi { width: 17px; height: 17px; color: var(--accent); }
.vb-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--panel-2); }
.vb-c { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 600 13.5px var(--sans); cursor: pointer; transition: background .12s, color .12s; }
.vb-c:hover { color: var(--fg); }
.vb-c[aria-checked="true"] { background: var(--seg-on); color: var(--fg); box-shadow: 0 1px 2px rgba(15, 20, 26, .16), 0 0 0 1px var(--line); }
.vb-cc { font: 700 10px/1 var(--sans); letter-spacing: .05em; padding: 3px 5px; border-radius: 5px; background: color-mix(in srgb, var(--muted) 14%, transparent); color: var(--muted); }
.vb-c[aria-checked="true"] .vb-cc { background: var(--accent-soft); color: var(--accent); }
.vb-fields { display: grid; grid-template-columns: repeat(2, minmax(190px, 270px)); border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.vb-f { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 7px 38px 8px 14px; border: 0; border-radius: 11px; background: transparent; color: var(--fg); text-align: left; cursor: pointer; transition: background .12s, box-shadow .12s; }
.vb-f + .vb-f::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.vb-f:hover:not(:disabled) { background: color-mix(in srgb, var(--fg) 4%, transparent); }
.vb-f.open, .vb-f:focus-visible { outline: none; background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.vb-f.open::before, .vb-f.open + .vb-f::before, .vb-f:focus-visible::before, .vb-f:focus-visible + .vb-f::before { opacity: 0; }
.vb-l { font: 600 10.5px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vb-v { max-width: 100%; font: 600 14.5px/1.35 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vb-f.muted .vb-v { color: var(--muted); font-weight: 500; }
.vb-chev { position: absolute; right: 12px; top: 50%; width: 17px; height: 17px; color: var(--muted); transform: translateY(-50%); transition: transform .15s; }
.vb-f.open .vb-chev { color: var(--accent); transform: translateY(-50%) rotate(180deg); }
.vb-f:disabled { cursor: not-allowed; }
.vb-f:disabled .vb-v { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.vb-here { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px 0 11px; border: 1px solid var(--line); border-radius: 19px; background: var(--panel); color: var(--muted); font: 600 13px var(--sans); cursor: pointer; transition: color .12s, border-color .12s, background .12s; }
.vb-hi { width: 17px; height: 17px; flex: none; }
.vb-here:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.vb-here.on { color: var(--accent); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); cursor: default; }
@media (max-width: 900px) {
  .vb-lbl { display: none; }
  .vb-fields { order: 3; flex: 1 1 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) { .vb-c { padding: 8px 10px; } .vb-ht { display: none; } .vb-here { padding: 0 11px; } .vb-v { font-size: 14px; } }

/* ---------- dropdown menus and the search's suggestions (menu.js, omni.js; rows 34 and 35) ---------- */
@keyframes vx-in { from { opacity: 0; transform: translateY(-4px); } }
.vx-pop { position: fixed; z-index: 90; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: var(--pop); overflow: hidden; animation: vx-in .12s ease-out; }
.vx-find { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border-bottom: 1px solid var(--line); cursor: text; }
.vx-find .vx-i { width: 16px; height: 16px; flex: none; color: var(--muted); }
.vx-in { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fg); font: 500 14px var(--sans); outline: none; }
.vx-in::placeholder { color: var(--muted); }
.vx-list { overflow-y: auto; overscroll-behavior: contain; padding: 6px; }
.vx-sec { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 5px; font: 600 10.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vx-sec:first-child { padding-top: 6px; }
.vx-opt { display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 9px; cursor: pointer; }
.vx-opt[aria-selected="true"] { background: var(--panel-2); }
.vx-opt.all { margin-bottom: 2px; }
.vx-opt.all + .vx-sec { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px; }
.vx-t { display: flex; flex-direction: column; min-width: 0; }
.vx-t b { font: 600 13.5px/1.35 var(--sans); color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vx-t small { font-size: 12px; line-height: 1.35; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vx-opt mark { background: color-mix(in srgb, var(--accent) 17%, transparent); color: inherit; border-radius: 3px; }
.vx-opt.cur .vx-t b { color: var(--accent); }
.vx-fig { display: flex; flex-direction: column; align-items: flex-end; font: 600 13px var(--sans); font-variant-numeric: tabular-nums; color: var(--fg); }
.vx-fig small { font-size: 11.5px; font-weight: 600; }
.vx-tick { width: 16px; height: 16px; color: var(--accent); visibility: hidden; }
.vx-opt.cur .vx-tick { visibility: visible; }
.vx-none { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 14px 16px; color: var(--muted); font-size: 13px; }
.vx-none b { color: var(--fg); font-weight: 600; }
.vx-none[hidden] { display: none; }
/* The search's panel: wider than the sidebar's box, with an icon for each kind and where it goes. */
.vx-drop { display: flex; flex-direction: column; max-height: min(540px, calc(100vh - 110px)); }
.vx-drop[hidden] { display: none; }
.side .vx-drop { width: 440px; }
.pf-qwrap { position: relative; flex: 1 1 420px; min-width: 0; display: flex; }
.pf-qwrap .pf-input { flex: 1; min-width: 0; }
.pf-drop { left: 0; right: 0; top: calc(100% + 6px); z-index: 40; }
.vx-row { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; padding: 7px 10px; }
.vx-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--panel-2); color: var(--muted); }
.vx-ico .vx-i { width: 18px; height: 18px; }
.vx-ico.k-pin, .vx-ico.k-link { background: var(--accent-soft); color: var(--accent); }
.vx-ico.k-city, .vx-ico.k-region { background: color-mix(in srgb, var(--s1) 12%, transparent); color: var(--s1); }
.vx-ico.k-state { background: color-mix(in srgb, var(--s3) 12%, transparent); color: var(--s3); }
.vx-ico.k-zip { background: color-mix(in srgb, var(--s2) 13%, transparent); color: var(--s2); }
.vx-row .vx-t small .up { color: var(--up); }
.vx-row .vx-t small .down { color: var(--down); }
.vx-go { display: inline-flex; align-items: center; gap: 5px; font: 600 12px var(--sans); color: var(--muted); opacity: 0; transition: opacity .1s; white-space: nowrap; }
.vx-go .vx-i { width: 14px; height: 14px; }
.vx-row[aria-selected="true"] .vx-go { opacity: 1; color: var(--accent); }
.vx-busy { display: inline-flex; align-items: center; gap: 6px; font: 500 11.5px var(--sans); letter-spacing: 0; text-transform: none; }
.vx-busy::before { content: ''; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--line); border-top-color: var(--accent); animation: vx-spin .7s linear infinite; }
@keyframes vx-spin { to { transform: rotate(360deg); } }
.vx-clear { border: 0; background: none; padding: 2px 4px; color: var(--muted); font: 600 11.5px var(--sans); letter-spacing: 0; text-transform: none; cursor: pointer; border-radius: 5px; }
.vx-clear:hover { color: var(--fg); background: var(--panel-2); }
.vx-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 14px; border-top: 1px solid var(--line); background: var(--panel-2); font-size: 11.5px; color: var(--muted); }
.vx-foot[hidden] { display: none; }
.vx-foot kbd { display: inline-block; min-width: 16px; margin-right: 3px; padding: 1px 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--panel); color: var(--fg); font: 600 10.5px/1.4 var(--sans); text-align: center; }
.vx-osm { margin-left: auto; color: var(--muted); }
.vx-osm:hover { color: var(--fg); }
@media (hover: none) { .vx-go { display: none; } .vx-row { grid-template-columns: 34px minmax(0, 1fr); } }
.ticker-search .vx-drop { max-height: none; }
.ticker-search .vx-row { min-height: 50px; }

/* The property finder's browse bar keeps where (from View by) and the frameworks. */
.br-bar.br-bar2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) auto; }
.br-where { border: 0; background: none; color: var(--fg); text-align: left; font: inherit; }
.br-where::after { content: ''; position: absolute; right: 16px; bottom: 15px; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.br-wv { display: block; font: 600 14.5px/1.35 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 20px; }
.br-where.muted .br-wv { color: var(--muted); font-weight: 500; }
@media (max-width: 900px) { .br-bar.br-bar2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .br-bar.br-bar2 .br-go { grid-column: 1 / -1; } }
@media (max-width: 560px) { .br-bar.br-bar2 { grid-template-columns: minmax(0, 1fr); } }

/* The City Finder: the city or region chosen in View by, pinned on top. */
.mx-r.mx-pin td { background: color-mix(in srgb, var(--accent) 7%, var(--panel)); }
.mx-r.mx-pin td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.mx-nostar { display: inline-block; width: 19px; }

/* ---------- the property finder's filters (browse-filters.js, Moe's Vestra row 37) ---------- */
.bf { flex: 1 1 100%; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bf-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.bf-pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bf-pw { position: relative; }
.bf-pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--fg); font: 600 13px var(--sans); cursor: pointer; white-space: nowrap; transition: border-color .12s, background .12s; }
.bf-pill:hover { border-color: color-mix(in srgb, var(--fg) 30%, var(--line)); }
.bf-pill.on { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: var(--accent-soft); }
.bf-pill.open { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.bf-pill .sb-chev { font-style: normal; color: var(--muted); font-size: 11px; }
.bf-pv { max-width: 190px; overflow: hidden; text-overflow: ellipsis; color: var(--accent); font-weight: 600; }
.bf-pv:empty { display: none; }
.bf-pv:not(:empty)::before { content: '·'; margin-right: 6px; color: var(--muted); }
.bf-all .sb-badge:empty { display: none; }
.bf-sliders { display: inline-flex; flex-direction: column; gap: 3px; width: 14px; }
.bf-sliders i { display: block; height: 1.6px; border-radius: 1px; background: currentColor; position: relative; }
.bf-sliders i::after { content: ''; position: absolute; top: -2.2px; width: 6px; height: 6px; border-radius: 50%; background: var(--panel); border: 1.6px solid currentColor; box-sizing: border-box; }
.bf-sliders i:nth-child(1)::after { left: 1px; } .bf-sliders i:nth-child(2)::after { left: 7px; } .bf-sliders i:nth-child(3)::after { left: 3px; }
.bf-sortw { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.bf-sort { height: 36px; border-radius: 999px; padding: 0 30px 0 12px; font-weight: 600; }
.bf-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.bf-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bf-chips[hidden] { display: none; }
/* A quick filter's panel. */
.bf-pop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; width: 340px; max-width: calc(100vw - 32px); display: flex; flex-direction: column; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: var(--pop); animation: vx-in .12s ease-out; }
.bf-poph b { font: 600 15px var(--head); }
.bf-popf { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.bf-count { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.bf-hint { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.45; }
/* A range: histogram, two-handled slider, boxes. */
.bf-range { position: relative; display: flex; flex-direction: column; gap: 6px; }
.bf-range[hidden] { display: none; }
.bf-rh { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.bf-rl { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--fg); }
.bf-rv { font-size: 12.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.bf-rv.on { color: var(--accent); }
.bf-tip { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--line); font-size: 10px; color: var(--muted); cursor: help; }
.bf-hist { width: 100%; height: 34px; display: block; }
.bf-hist rect.in { fill: color-mix(in srgb, var(--accent) 55%, transparent); }
.bf-hist rect.out { fill: color-mix(in srgb, var(--muted) 28%, transparent); }
.bf-slider { position: relative; height: 22px; margin-top: -8px; }
.bf-track { position: absolute; left: 9px; right: 9px; top: 9px; height: 4px; border-radius: 2px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.bf-fill { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: var(--accent); }
.bf-slider input[type=range] { position: absolute; inset: 0; width: 100%; height: 22px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.bf-slider input[type=range]::-webkit-slider-runnable-track { background: none; height: 22px; }
.bf-slider input[type=range]::-moz-range-track { background: none; }
.bf-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--panel); border: 2px solid var(--accent); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); cursor: grab; }
.bf-slider input[type=range]::-moz-range-thumb { pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: var(--panel); border: 2px solid var(--accent); cursor: grab; }
.bf-slider input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }
.bf-nums { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: end; }
.bf-nums label { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.bf-num { width: 100%; min-width: 0; box-sizing: border-box; height: 36px; font-variant-numeric: tabular-nums; }
.bf-dash { padding-bottom: 9px; color: var(--muted); }
.bf-reset { position: absolute; top: -2px; right: 0; display: none; }
.bf-range.compact .bf-reset { display: none; }
.bf-range.compact .bf-rl { display: none; }
.bf-range.compact .bf-rh { justify-content: flex-start; }
.bf-range.compact .bf-rv { font-size: 14px; }
.bf-sort { width: auto; max-width: 240px; }
/* Lists with counts, buttons, switches. */
.bf-set { display: flex; flex-direction: column; gap: 2px; max-height: 240px; overflow: auto; }
.bf-set.chips { flex-direction: row; flex-wrap: wrap; gap: 6px; max-height: none; }
.bf-opt { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 8px; font-size: 13.5px; cursor: pointer; }
.bf-opt:hover { background: var(--panel-2); }
.bf-opt input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.bf-opt .bf-on { flex: 1; min-width: 0; }
.bf-opt small { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.bf-opt.none { color: var(--muted); }
.bf-set.chips .bf-opt { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 10px; background: var(--panel); }
.bf-set.chips .bf-opt.on { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: var(--accent-soft); }
.bf-set.chips .bf-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bf-set.chips .bf-opt:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.bf-set.chips .bf-opt.on .bf-on::before { content: '✓ '; color: var(--accent); font-weight: 700; }
.bf-find { width: 100%; box-sizing: border-box; margin-bottom: 6px; height: 34px; }
.bf-minrow { display: flex; flex-direction: column; gap: 7px; }
.bf-seg { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; width: fit-content; max-width: 100%; }
.bf-seg button { border: 0; border-left: 1px solid var(--line); background: var(--panel); color: var(--fg); padding: 8px 13px; font: 600 13px var(--sans); cursor: pointer; min-width: 46px; }
.bf-seg button:first-child { border-left: 0; }
.bf-seg button:hover { background: var(--panel-2); }
.bf-seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.bf-switch { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.bf-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bf-sw { flex: none; position: relative; width: 38px; height: 22px; border-radius: 11px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); transition: background .15s; }
.bf-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--panel); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: transform .15s; }
.bf-switch input:checked + .bf-sw { background: var(--accent); }
.bf-switch input:checked + .bf-sw::after { transform: translateX(16px); }
.bf-switch input:focus-visible + .bf-sw { box-shadow: 0 0 0 2px var(--accent); }
.bf-switch b { display: block; font-size: 13.5px; } .bf-switch small { display: block; color: var(--muted); font-size: 12px; }
/* Every filter, in a sheet from the right. */
.bf-sheet { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(460px, 100vw); max-width: 100vw; height: 100%; max-height: 100%; padding: 0; border: 0; border-left: 1px solid var(--line); background: var(--panel); color: var(--fg); box-shadow: var(--pop); display: none; flex-direction: column; }
.bf-sheet[open] { display: flex; overflow: hidden; height: 100vh; height: 100dvh; max-height: 100dvh; animation: bf-in .18s ease-out; }
.bf-sheet::backdrop { background: rgba(8, 12, 18, .45); }
@keyframes bf-in { from { transform: translateX(24px); opacity: 0; } }
.bf-sh { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.bf-sh b { font: 600 18px var(--head); }
.bf-x { border: 0; background: none; color: var(--muted); font-size: 26px; line-height: 1; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; }
.bf-x:hover { background: var(--panel-2); color: var(--fg); }
.bf-body { flex: 1; min-height: 0; overflow: auto; padding: 4px 20px 20px; overscroll-behavior: contain; }
.bf-sec { border-bottom: 1px solid var(--line); }
.bf-sec summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 16px 0; font: 600 14.5px var(--head); cursor: pointer; }
.bf-sec summary::-webkit-details-marker { display: none; }
.bf-sec summary::after { content: ''; width: 7px; height: 7px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg); transition: transform .15s; margin-right: 4px; }
.bf-sec[open] summary::after { transform: rotate(-135deg); }
.bf-secb { display: flex; flex-direction: column; gap: 22px; padding: 0 0 20px; }
.bf-field { display: flex; flex-direction: column; gap: 8px; }
.bf-sf { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--panel); }
.bf-show { min-width: 170px; }
@media (max-width: 640px) {
  .bf-bar { flex-direction: column; align-items: stretch; }
  .bf-pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -2px; padding: 2px; }
  .bf-pills::-webkit-scrollbar { display: none; }
  .bf-pop { position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); z-index: 70; width: auto; max-height: 65vh; overflow: auto; }
  .bf-sortw { justify-content: flex-start; }
  .bf-picks { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -2px; padding: 2px; }
  .bf-picks::-webkit-scrollbar { display: none; }
  .bf-picks .chip { flex: none; }
  .bf-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .bf-chips > * { flex: none; }
  .bf-sheet { width: 100vw; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .bf-sheet[open], .bf-pop { animation: none; } }

/* ---------- homes sold nearby on the value chart (property-chart.js, Moe's Vestra row 38) ---------- */
.pf-vwrap { position: relative; }
.pf-near { cursor: pointer; outline: none; }
.pf-near path { fill: var(--s3); stroke: var(--panel); stroke-width: 2; transition: transform .12s; }
.pf-near.listed path { fill: var(--panel); stroke: var(--s3); stroke-width: 2.2; }
.pf-near.mixed path { fill: color-mix(in srgb, var(--s3) 55%, var(--panel)); stroke: var(--s3); stroke-width: 1.6; }
.pf-near:hover path, .pf-near:focus-visible path { transform: scale(1.25); }
.pf-near:focus-visible path { stroke: var(--accent); stroke-width: 3; }
.pf-near-n { fill: #fff; font: 700 10px var(--sans); pointer-events: none; }
.pf-near.listed .pf-near-n, .pf-near.mixed .pf-near-n { fill: var(--fg); }
.pf-leg i.k-near { background: var(--s3); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); border-radius: 0; }
.pf-leg i.k-near.listed { background: none; box-shadow: inset 0 0 0 2px var(--s3); }
.pf-evc.pf-near-c i { background: var(--s3); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.pf-pop { position: fixed; z-index: 85; max-height: min(420px, calc(100vh - 24px)); display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: var(--pop); animation: vx-in .12s ease-out; }
.pf-pop[hidden] { display: none; }
.pf-pop-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pf-pop-top b { font: 600 13px var(--sans); color: var(--muted); letter-spacing: .02em; }
.pf-pop-x { border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; }
.pf-pop-x:hover { background: var(--panel-2); color: var(--fg); }
.pf-pop-list { display: flex; flex-direction: column; gap: 10px; max-height: 280px; overflow: auto; overscroll-behavior: contain; }
.pf-pop-c { display: flex; flex-direction: column; gap: 4px; }
.pf-pop-c + .pf-pop-c { border-top: 1px solid var(--line); padding-top: 10px; }
.pf-pop-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pf-pop-h b { font: 600 14px var(--head); }
.pf-pop-h small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.pf-pop-s { font-size: 12px; font-weight: 600; color: var(--s3); }
.pf-pop-s.listed { color: var(--s1); }
.pf-pop-p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 12.5px; color: var(--muted); }
.pf-pop-p b { font: 700 18px var(--head); color: var(--fg); font-variant-numeric: tabular-nums; }
.pf-pop-p .up { color: var(--down); } .pf-pop-p .down { color: var(--up); }
.pf-pop-f { color: var(--muted); font-size: 12px; }
.pf-pop-a { display: flex; gap: 6px; margin-top: 4px; }
.pf-pop-demo { color: var(--s2); font-size: 12px; }
.pf-pop-caret { position: absolute; bottom: -7px; width: 12px; height: 12px; background: var(--panel); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
.pf-pop.below .pf-pop-caret { top: -7px; bottom: auto; border: 0; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .pf-pop { animation: none; } .pf-near path { transition: none; } }

/* The View by bar with a page's own fields and search (Moe's Vestra row 41: the property finder). */
.vb-fields { grid-template-columns: repeat(var(--vb-n, 2), minmax(150px, 250px)); }
.vb.vb-x { gap: 10px 12px; }
.vb-or { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font: 600 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.vb-or::before, .vb-or::after { content: ''; width: 12px; height: 1px; background: var(--line); }
.vb-q { position: relative; flex: 1 1 260px; min-width: 220px; display: flex; }
.vb-q .pf-input { flex: 1; min-width: 0; height: 52px; min-height: 0; padding: 0 14px 0 40px; border-radius: 12px; font-size: 14.5px; }
.vb-qi { position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; z-index: 1; }
.vb-go { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px; border-radius: 12px; font-weight: 700; }
.vb-gi2 { width: 17px; height: 17px; }
.vb-q .pf-drop { top: calc(100% + 8px); }
/* A tick-many menu (menu.js openChecklist). */
.vx-ckh { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 8px; border-bottom: 1px solid var(--line); }
.vx-ckh b { font: 600 14px var(--head); }
.vx-ckh small { color: var(--muted); font-size: 12px; }
.vx-ck { grid-template-columns: 20px minmax(0, 1fr) auto; outline: none; }
.vx-ck:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.vx-ck:hover { background: var(--panel-2); }
.vx-box { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line); background: var(--panel); }
.vx-ck.cur .vx-box { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.vx-bi { width: 13px; height: 13px; stroke-width: 2.6; }
.vx-n { font: 600 12px var(--sans); font-variant-numeric: tabular-nums; color: var(--fg); background: var(--panel-2); border-radius: 999px; padding: 1px 8px; }
.vx-n.none { color: var(--muted); }
.vx-ck.all { border-bottom: 1px solid var(--line); border-radius: 9px 9px 0 0; margin-bottom: 4px; }
.vx-ckf { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--panel-2); }
@media (max-width: 900px) {
  .vb-x .vb-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vb-x .vb-f[data-k="fw"] { grid-column: 1 / -1; }
  .vb-x .vb-f[data-k="fw"]::before { display: none; }
  .vb-or { order: 4; flex: 1 1 100%; justify-content: center; }
  .vb-or::before, .vb-or::after { flex: 1; }
  .vb-q { order: 5; flex: 1 1 100%; }
  .vb-go { order: 6; flex: 1 1 100%; justify-content: center; }
}
.vb.vb-x { display: grid; grid-template-columns: auto auto minmax(220px, 1fr) auto; align-items: center; }
.vb-x .vb-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.vb-x .vb-fields { grid-column: 1; }
.vb-x .vb-or { grid-column: 2; }
.vb-x .vb-q { grid-column: 3; min-width: 0; }
.vb-x .vb-go { grid-column: 4; }
@media (max-width: 1180px) { .vb.vb-x { grid-template-columns: minmax(0, 1fr) auto; } .vb-x .vb-fields { grid-column: 1 / -1; } .vb-x .vb-or { grid-column: 1 / -1; justify-content: center; } .vb-x .vb-or::before, .vb-x .vb-or::after { flex: 1; } .vb-x .vb-q { grid-column: 1; } .vb-x .vb-go { grid-column: 2; } }
@media (max-width: 900px) { .vb-x .vb-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vb-x .vb-q { grid-column: 1 / -1; } .vb-x .vb-go { grid-column: 1 / -1; justify-content: center; } }
/* Row 41: the market screens keep their usual spacing under the View by bar, and the City Finder its cards close to the table. */
.vb { margin-bottom: 0; }
.mx-tiles { margin-bottom: 0 !important; }
.vb-x .vb-fields { grid-template-columns: repeat(var(--vb-n, 3), minmax(128px, 190px)); }
@media (max-width: 900px) { .vb-x .vb-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* The City Finder in the property finder's look (row 42). */
.bf-row2 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.bf-tools2 { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bf-tools2 .sb-popwrap { position: relative; }
.bf-tools2 .btn.bf-pill { height: 36px; border-radius: 999px; }
.bf-find2 { height: 36px; width: 190px; border-radius: 999px; padding: 0 14px; }
.mx-bf { padding: 2px 0 4px; }
@media (max-width: 640px) { .bf-find2 { width: 150px; flex: none; } .bf-row2 { flex-direction: column; align-items: stretch; } .bf-tools2 { overflow-x: auto; flex-wrap: nowrap; } .bf-tools2 > * { flex: none; } }
.bf-find2 { padding-left: 34px; }

/* ---------- dropdowns, app-wide (Moe's Vestra row 40) ---------- */
/* Panels that open above their button when there is more room there, scroll inside, keep Apply in view, and fade in. */
.sb-pop.up, .bf-pop.up { top: auto; bottom: calc(100% + 6px); }
.sb-pop, .bf-pop { overflow-y: auto; overscroll-behavior: contain; }
.sb-pop { animation: vx-in .12s ease-out; }
.sb-pop .sb-popf { position: sticky; bottom: -10px; margin-bottom: -10px; padding-bottom: 10px; background: var(--panel); z-index: 1; }
/* Native select boxes with the app's own chevron instead of the system arrow. */
:root { --sel-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23586373' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sel-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d99ab' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); } }
:root[data-theme="dark"] { --sel-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d99ab' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
select.sel, select.inp, select.dl-sel, select.dl-stsel { -webkit-appearance: none; appearance: none; background-image: var(--sel-chev); background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; padding-right: 32px; cursor: pointer; }
select.sel:disabled, select.inp:disabled { cursor: default; opacity: .6; }
select option { background: var(--panel); color: var(--fg); }

/* ---------- the country switch on the market pages' heading row (Moe's request after row 42) ---------- */
.pg-h.mk-head { align-items: center; flex-wrap: nowrap; }
.pg-h.mk-head > .pg-side { flex: none; }
.vb-segbox { display: flex; }
.vb-segbox .vb-seg { border: 1px solid var(--line); background: var(--panel-2); }
/* The property finder's bar: the label leads, then the fields, "or", the address box and Search. */
.vb.vb-x.vb-so { grid-template-columns: auto auto auto minmax(220px, 1fr) auto; }
.vb-x.vb-so > .vb-lbl { grid-column: 1; }
.vb-x.vb-so .vb-fields { grid-column: 2; }
.vb-x.vb-so .vb-or { grid-column: 3; }
.vb-x.vb-so .vb-q { grid-column: 4; }
.vb-x.vb-so .vb-go { grid-column: 5; }
@media (max-width: 1180px) {
  .vb.vb-x.vb-so { grid-template-columns: minmax(0, 1fr) auto; }
  .vb-x.vb-so > .vb-lbl { display: none; }
  .vb-x.vb-so .vb-fields { grid-column: 1 / -1; }
  .vb-x.vb-so .vb-or { grid-column: 1 / -1; }
  .vb-x.vb-so .vb-q { grid-column: 1; }
  .vb-x.vb-so .vb-go { grid-column: 2; }
}
@media (max-width: 900px) { .vb-x.vb-so .vb-q, .vb-x.vb-so .vb-go { grid-column: 1 / -1; } }
/* On a phone the switch keeps to the heading's line: the names alone, without the two-letter codes. */
@media (max-width: 640px) {
  .pg-h.mk-head { gap: 10px; }
  .pg-h.mk-head .h1 { min-width: 0; }
  .vb-segbox .vb-cc { display: none; }
  .vb-segbox .vb-c { padding: 7px 11px; font-size: 13px; }
}
@media (max-width: 380px) { .vb-segbox .vb-c { padding: 7px 9px; font-size: 12.5px; } }

/* ---------- the property page's top (Moe's Vestra row 43) ---------- */
/* The title's city, state and ZIP code open the homes there; the + adds the home to the deals. */
.pg-h.pp-head { flex-wrap: nowrap; align-items: flex-start; }
.pg-h.pp-head .h1 { min-width: 0; }
.pg-h.pp-head > .pg-side { flex: none; margin-top: 2px; }
.pp-tl { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--fg) 24%, transparent); text-decoration-thickness: 2px; text-underline-offset: 6px; border-radius: 4px; transition: color .12s, text-decoration-color .12s; }
.pp-tl:hover, .pp-tl:focus-visible { color: var(--accent); text-decoration-color: currentColor; outline: none; }
.pp-add { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--accent) 70%, transparent); transition: transform .12s, background .12s; }
.pp-add:hover { transform: translateY(-1px); }
.pp-add:active { transform: none; }
.pp-ai { width: 22px; height: 22px; stroke-width: 2.3; }
.pp-add.on { color: var(--accent); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: none; }
/* The simulator's reset, an icon in the corner. */
.sim-act { align-items: center; }
.sim-reset { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 9px; color: var(--muted); }
.sim-reset:hover { color: var(--fg); }
.sim-reset:active .sim-ri { transform: rotate(-60deg); }
.sim-ri { width: 17px; height: 17px; transition: transform .2s; }
@media (max-width: 640px) { .pp-add { width: 40px; height: 40px; } .pp-ai { width: 20px; height: 20px; } }

/* The buy score's summary on the market overview a size smaller, so the score column is no taller than its neighbours. */
.mc-panel .vc-head .vc-why { font-size: 12.5px; line-height: 1.45; }
.mc-panel .vc-head { gap: 8px; }
.mc-panel .vc-head .vc-why { margin-top: 2px; }

/* The heading row's switch with its location pin (Moe, 2026-11-25): one pill, the pin after a divider. */
.vb-segbox .vb-seg { border: 0; background: none; padding: 0; }
.vb-segx { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.vb-sep { width: 1px; height: 22px; margin: 0 3px; background: var(--line); }
.vb-loc { display: inline-grid; place-items: center; width: 36px; height: 34px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; transition: background .12s, color .12s; }
.vb-loc:hover:not(:disabled) { color: var(--accent); }
.vb-loc.on { color: var(--accent); background: var(--seg-on); box-shadow: 0 1px 2px rgba(15, 20, 26, .16), 0 0 0 1px var(--line); cursor: default; }
.vb-loc:disabled { opacity: .45; cursor: default; }
.vb-loc:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.vb-li { width: 18px; height: 18px; }
@media (max-width: 640px) { .vb-loc { width: 32px; height: 32px; } .vb-sep { margin: 0 2px; } }

/* ---------- phone pass (Moe's Vestra row 45) ---------- */
/* The filter toolbars stack on a phone; stacked, they must not wrap, or the column grows to the widest row of pills and
   the whole page turns wider than the screen (the finder, a city page's homes and the City Finder did). */
@media (max-width: 640px) {
  .bf-bar, .bf-row2 { flex-wrap: nowrap; }
  .bf-bar > *, .bf-row2 > *, .bf-pills, .bf-picks, .bf-tools2, .bf-chips { min-width: 0; max-width: 100%; }
  .pf-evc { white-space: normal; max-width: 100%; }
  .vb-segbox .vb-c { min-height: 34px; }
  .vb-loc { height: 34px; }
}
/* The City Finder's follow star: a finger-sized target around the small glyph. */
@media (pointer: coarse) { .mx-star { position: relative; } .mx-star::before { content: ""; position: absolute; inset: -12px -10px; } }

/* The homes for sale as cards on a phone (row 45): address and call, then price, rent and cash flow, then the home's
   type, size and yield, then the frameworks it fits. Sorting stays in the Sort menu above. */
@media (max-width: 640px) {
  .br .tblwrap { overflow: visible; border: 0; }
  table.wl.br-tbl { display: block; min-width: 0 !important; width: 100%; }
  .br-tbl thead { display: none; }
  .br-tbl tbody { display: grid; gap: 10px; }
  .wl.tb.br-tbl tr.br-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; padding: 14px 14px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); transition: border-color .15s, transform .15s; }
  .wl.tb.br-tbl tr.br-row:active { transform: scale(.99); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
  .wl.tb.br-tbl tr.br-row > td { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 0; border: 0; background: none; text-align: left; white-space: normal; font-variant-numeric: tabular-nums; }
  .br-tbl td[data-l]::before { content: attr(data-l); font: 600 10.5px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .br-tbl td[data-k="home"], .br-tbl td[data-k="call"], .br-tbl td[data-k="fit"] { }
  .br-tbl td[data-k="home"]::before, .br-tbl td[data-k="call"]::before, .br-tbl td[data-k="fit"]::before { content: none; }
  .br-tbl td[data-k="home"] { grid-column: 1 / 3; grid-row: 1; }
  .br-tbl td[data-k="home"] .br-home { min-width: 0; }
  .br-tbl td[data-k="home"] .br-home b { font-size: 15px; line-height: 1.3; }
  .br-tbl td[data-k="call"] { grid-column: 3; grid-row: 1; align-items: flex-end; justify-content: flex-start; }
  .br-tbl td[data-k="price"] { grid-row: 2; grid-column: 1; }
  .br-tbl td[data-k="rent"] { grid-row: 2; grid-column: 2; }
  .br-tbl td[data-k="cash"] { grid-row: 2; grid-column: 3; }
  .br-tbl td[data-k="price"], .br-tbl td[data-k="rent"], .br-tbl td[data-k="cash"] { font: 600 15px/1.25 var(--head); }
  .br-tbl td[data-k="type"] { grid-row: 3; grid-column: 1; }
  .br-tbl td[data-k="beds"] { grid-row: 3; grid-column: 2; }
  .br-tbl td[data-k="yld"] { grid-row: 3; grid-column: 3; }
  .br-tbl td[data-k="type"], .br-tbl td[data-k="beds"], .br-tbl td[data-k="yld"] { font-size: 13px; }
  .br-tbl td[data-k="sqft"], .br-tbl td[data-k="ppsf"], .br-tbl td[data-k="dom"] { display: none !important; }
  .br-tbl td[data-k="fit"] { grid-column: 1 / -1; grid-row: 4; flex-direction: row; flex-wrap: wrap; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); min-width: 0 !important; }
}
@media (max-width: 640px) { .wl.tb.br-tbl tr.br-row > td[data-k="fit"] { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; } .wl.tb.br-tbl tr.br-row > td[data-k="fit"] > * { flex: none; } }

/* ---------- the browser extension's card (#card/…, html.pc-mode) ---------- */
/* One property's call and key figures in a 400px popup: no app around it, the call first, then six figures, the area,
   and two ways into the app. */
html.pc-mode .side, html.pc-mode .top, html.pc-mode #mobile-nav, html.pc-mode .app-banner, html.pc-mode #toasts, html.pc-mode .foot { display: none !important; }
html.pc-mode, html.pc-mode body { background: var(--bg); }
html.pc-mode .main { margin: 0 !important; padding: 0 !important; min-height: 0 !important; }
html.pc-mode .view { padding: 0 !important; margin: 0 !important; max-width: none !important; min-height: 0 !important; }
.pc { display: grid; gap: 14px; max-width: 480px; margin: 0 auto; padding: 14px 16px 18px; }
.pc-top { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.pc-brand { display: inline-flex; align-items: center; gap: 7px; font: 600 15px var(--head); letter-spacing: -.01em; }
.pc-mark { width: 22px; height: 22px; flex: none; }
.pc-mark rect { fill: var(--accent); }
.pc-mark path { fill: none; stroke: var(--accent-ink); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.pc-open { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--accent); text-decoration: none; padding: 5px 8px; border-radius: 8px; }
.pc-open:hover { background: var(--accent-soft); }
.pc-oi { width: 14px; height: 14px; }
.pc-h { display: grid; gap: 3px; }
.pc-h h1 { margin: 0; font: 600 21px/1.2 var(--head); letter-spacing: -.015em; text-wrap: balance; }
.pc-h p { margin: 0; color: var(--muted); font-size: 13.5px; }
.pc-h .pc-home { color: var(--fg); font-size: 13px; }
.pc-call { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--tone, var(--muted)) 9%, var(--panel)), var(--panel) 60%); }
.pc-call.vc-buy { --tone: var(--up); } .pc-call.vc-wait { --tone: var(--s2); } .pc-call.vc-sell { --tone: var(--down); } .pc-call.vc-hold { --tone: var(--s1); }
.pc-call-h { display: flex; align-items: center; gap: 14px; }
.pc-call-h > div { display: grid; gap: 2px; min-width: 0; }
.pc-call-h small { font: 600 10.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pc-call-h p { margin: 0; font-size: 13px; line-height: 1.45; }
.pc-fs { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: grid; gap: 7px; }
.pc-f { display: grid; grid-template-columns: 8px auto 1fr; align-items: baseline; gap: 4px 8px; font-size: 12.5px; }
.pc-f i { width: 8px; height: 8px; border-radius: 50%; align-self: center; }
.pc-f.for i { background: var(--up); } .pc-f.against i { background: var(--down); }
.pc-f b { font-weight: 600; white-space: nowrap; }
.pc-f span { color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pc-fig { display: grid; gap: 2px; align-content: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); min-width: 0; }
.pc-fig small { font: 600 10.5px var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.pc-fig b { font: 600 17px/1.25 var(--head); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.pc-fig b.up { color: var(--up); } .pc-fig b.down { color: var(--down); }
.pc-fig span { font-size: 12px; color: var(--muted); }
.pc-area { display: grid; gap: 0; padding: 4px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.pc-area h2 { margin: 8px 0 4px; font: 600 10.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pc-row { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.pc-area h2 + .pc-row { border-top: 0; }
.pc-row b { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.pc-row b.up { color: var(--up); } .pc-row b.down { color: var(--down); }
.pc-row small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.pc-act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pc-act .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; border-radius: 11px; font-weight: 600; text-decoration: none; }
.pc-ai { width: 17px; height: 17px; stroke-width: 2.3; }
.pc-src { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.pc-wait { display: grid; gap: 12px; }
.pc-wait-t { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.pc .panel { margin: 0; }
.pc-top .pf-demo { margin-left: auto; }
/* The two ways into the app stay at the foot of the popup while the card scrolls. */
.pc-act { position: sticky; bottom: 0; z-index: 2; margin: 0 -16px -18px; padding: 12px 16px 14px; background: linear-gradient(to bottom, transparent, var(--bg) 22%); }
.pc-src { order: 1; } .pc-act { order: 2; }
/* The card's loading blocks: grey, with a slow shimmer. */
.pc .sk { position: relative; overflow: hidden; border-radius: 10px; background: var(--panel-2); }
.pc .sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--fg) 6%, transparent), transparent); animation: pc-shimmer 1.4s infinite; }
@keyframes pc-shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .pc .sk::after { animation: none; } }
html.pc-mode { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }

/* ---------- quiet movements (motion.js, Moe's Vestra row 44) ---------- */
/* A new screen's panels and tiles rise 6 px and fade in, 45 ms apart within a row; anything drawn after its first eight
   seconds stays still. */
@keyframes v-rise { from { opacity: 0; transform: translateY(6px); } }
html.entering .view > .pg-h, html.entering .view .panel, html.entering .view .rd, html.entering .view .kpi, html.entering .view .vb, html.entering .pc > * { animation: v-rise .42s cubic-bezier(.2, .7, .2, 1) backwards; }
html.entering .rd-grid > :nth-child(2), html.entering .kpis > :nth-child(2), html.entering .pc > :nth-child(2) { animation-delay: 45ms; }
html.entering .rd-grid > :nth-child(3), html.entering .kpis > :nth-child(3), html.entering .pc > :nth-child(3) { animation-delay: 90ms; }
html.entering .rd-grid > :nth-child(4), html.entering .kpis > :nth-child(4), html.entering .pc > :nth-child(4) { animation-delay: 135ms; }
html.entering .rd-grid > :nth-child(5), html.entering .kpis > :nth-child(5), html.entering .pc > :nth-child(5) { animation-delay: 180ms; }
html.entering .rd-grid > :nth-child(6), html.entering .kpis > :nth-child(6), html.entering .pc > :nth-child(6) { animation-delay: 225ms; }
html.entering .rd-grid > :nth-child(7), html.entering .rd-grid > :nth-child(8), html.entering .pc > :nth-child(n+7) { animation-delay: 270ms; }
/* Anything that opens something lifts by a pixel with a soft shadow. */
a.rd, button.rd { transition: transform .15s cubic-bezier(.2, .7, .2, 1), box-shadow .15s, border-color .15s; }
@media (hover: hover) { a.rd:hover, button.rd:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -16px rgba(15, 20, 26, .45); } }
/* The tab underline slides to the chosen tab. */
.mk-tabs { position: relative; }
.tab-ink { position: absolute; left: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent); pointer-events: none; transition: transform .28s cubic-bezier(.2, .7, .2, 1), width .28s cubic-bezier(.2, .7, .2, 1); }
.mk-tabs.has-ink .tab[aria-current="page"] { border-bottom-color: transparent; }
/* The country switch's highlight slides between the two countries. */
.vb-seg.has-thumb { position: relative; }
.vb-thumb { position: absolute; left: 0; top: 0; border-radius: 9px; background: var(--seg-on); box-shadow: 0 1px 2px rgba(15, 20, 26, .16), 0 0 0 1px var(--line); pointer-events: none; transition: transform .26s cubic-bezier(.2, .7, .2, 1), width .26s cubic-bezier(.2, .7, .2, 1); }
.vb-seg.has-thumb .vb-c { position: relative; z-index: 1; }
.vb-seg.has-thumb .vb-c[aria-checked="true"] { background: transparent; box-shadow: none; }
/* Add to Deals: the + turns into a tick with a soft ring. */
.pp-add .pp-ai { transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.pp-add.added { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: none; position: relative; }
.pp-add.added .pp-ai { animation: pp-tick .3s cubic-bezier(.2, .7, .2, 1); }
.pp-add.added::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--accent); animation: pp-ring .5s cubic-bezier(.2, .7, .2, 1) both; pointer-events: none; }
@keyframes pp-tick { from { transform: rotate(-90deg) scale(.5); opacity: 0; } }
@keyframes pp-ring { from { opacity: .7; transform: scale(.9); } to { opacity: 0; transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) {
  html.entering .view > .pg-h, html.entering .view .panel, html.entering .view .rd, html.entering .view .kpi, html.entering .view .vb, html.entering .pc > * { animation: none; }
  a.rd, button.rd, .tab-ink, .vb-thumb, .pp-add .pp-ai { transition: none; }
  .pp-add.added .pp-ai, .pp-add.added::after { animation: none; }
}

/* The Properties pages' + menu (ui.js addMenu): a crisp plus, links as items, and a divider before exports. */
.ls-pi { fill: none; stroke: currentColor; stroke-linecap: round; }
.ls-addb[aria-expanded="true"] .ls-pi { transform: rotate(45deg); }
.ls-pi { transition: transform .2s cubic-bezier(.2, .7, .2, 1); }
.ls-menu a { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; border-radius: 8px; }
.ls-menu a b { font: 600 14px var(--sans); color: var(--fg); } .ls-menu a small { font-size: 12px; color: var(--muted); }
.ls-menu a:hover, .ls-menu a:focus-visible { background: var(--accent-soft); outline: none; }
.ls-sep { display: block; height: 1px; margin: 4px 6px; background: var(--line); }
.ls-menu:not([hidden]) { animation: vx-in .12s ease-out; }
@media (prefers-reduced-motion: reduce) { .ls-pi { transition: none; } .ls-menu:not([hidden]) { animation: none; } }

/* Menus and suggestions over what follows (Moe, 2026-11-25): the rise-in lets go of each panel once it ends (fill backwards,
   so no panel stays a layer of its own), and the View by bar sits above the content below it, so its search suggestions
   open over the homes for sale even while they rise in. Under the top bar (20) and the phone tab bar (28). */
.vb { position: relative; z-index: 6; }

/* Every + is the property page's round one (Moe, 2026-11-26): the Properties pages' + menu takes .pp-add and .pp-ai. */
.ls-addb.pp-add { min-width: 0; font: inherit; }
.ls-add { display: inline-flex; }

/* US-only (Moe, 2026-11-28): no country switch; the location pin stands alone on the market pages' heading row. */
.vb-segx.vb-solo { padding: 3px; }
/* US-only overview (2026-11-28): the US borrowing costs panel has the full width, so its four tiles sit in one row. */
.pm-us-rates .mk-idx { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .pm-us-rates .mk-idx { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Icon buttons beside the round + (Moe's Vestra row 47): outlined circles a little smaller than the +, each with a note. */
.btn.ib { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; color: var(--fg); }
.btn.ib .ib-i { width: 18px; height: 18px; }
.btn.ib:hover { background: var(--panel-2); }
@media (max-width: 640px) { .btn.ib { width: 38px; height: 38px; } }

/* One spacing standard (Moe's Vestra row 49): blocks on a page sit 20px apart (14px on a phone) from the column's own gap,
   panels are padded 18px 20px with 10px under their heading. Status lines that are empty take no room, and a tile grid
   adds no margin of its own inside a page column. */
:is(.view, .eng, .pp-body) > :empty:not(input, textarea, select, canvas, svg, img, iframe, video) { display: none; }
:is(.view, .eng, .pp-body) > .vt-grid { margin-bottom: 0; }
#pf-sim.panel { padding: 18px 20px; }
#pf-sim > .panel-h, .pp-attn > .panel-h { margin-bottom: 10px; }

/* Buttons in tables, rows and panel headings (Moe's Vestra row 50): pills, like the property finder's filters and "Show N
   more", in place of the flat 8px boxes. Secondary is outlined on the panel with a hairline shadow; primary is ink with
   the same soft glow as the round +. The phone keeps its 44px touch height (app.css). */
.btn.sm { padding: 6px 13px; border-radius: 999px; font: 600 12.5px/1.2 var(--sans); gap: 6px; color: var(--fg);
  border-color: color-mix(in srgb, var(--fg) 13%, var(--line)); background: var(--panel); box-shadow: 0 1px 2px rgba(15, 20, 26, .06);
  transition: background .14s, border-color .14s, box-shadow .14s, transform .14s; }
.btn.sm:hover { background: var(--panel-2); border-color: color-mix(in srgb, var(--fg) 30%, var(--line)); }
.btn.sm:active { transform: translateY(1px); }
.btn.sm:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.sm.pri { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 12px -6px color-mix(in srgb, var(--accent) 75%, transparent); }
.btn.sm.pri:hover { background: color-mix(in srgb, var(--accent) 86%, var(--bg)); border-color: transparent; transform: translateY(-1px); box-shadow: 0 7px 16px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn.sm.pri:active { transform: translateY(0); }
.btn.sm:disabled, .btn.sm[aria-disabled="true"] { opacity: .5; cursor: default; transform: none; }
@media (min-width: 901px) { .btn.sm { min-height: 32px; } }
/* Table toolbars (Columns, Ranges, Download, compare): the filter-pill shape and height. */
.sb-bar .btn:not(.sm) { border-radius: 999px; padding: 0 14px; font: 600 13px var(--sans); box-shadow: none; }
@media (min-width: 901px) { .sb-bar .btn:not(.sm) { height: 36px; } }
.sb-bar .btn:not(.sm):hover { background: var(--panel); border-color: color-mix(in srgb, var(--fg) 30%, var(--line)); }
@media (prefers-reduced-motion: reduce) { .btn.sm, .btn.sm.pri:hover { transition: none; transform: none; } }
/* Panel-heading actions ("Screen a tenant", "Open the City Finder") take the same pill. */
.panel-h .btn:not(.pp-add):not(.ib):not(.sm) { border-radius: 999px; font-weight: 600; padding-inline: 15px; }
/* On a phone a renewal's buttons share the row in equal halves; three answers stack full width. */
@media (max-width: 640px) {
  .ls-q-act { align-items: stretch; }
  .ls-qi > .ls-q-act { grid-column: 1 / span 2; }
  .ls-q-act .ls-acts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; width: 100%; }
  .ls-q-act .ls-acts > .btn { width: 100%; }
  .ls-q-act .ev-pill { align-self: flex-start; }
}

/* Vestra's website (?embed=1): demo tags are not shown on any screen (2026-11-28). */
html.embed .pf-demo { display: none !important; }

/* An offered renewal (Moe, 2026-11-28): the state on one line ("Offered · Waiting on the tenant"), the tenant's answer as
   two equal outlined pills (neither is the default, so neither is filled), and Withdraw offer or Undo as a quiet link. */
.ls-q-act { gap: 8px; }
.ls-reply { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.ls-reply small { color: var(--muted); font-size: 12px; }
.ls-q-act .ls-reply .ev-pill { align-self: center; }
.ls-ans .ls-ai { width: 15px; height: 15px; flex: none; color: var(--muted); }
.ls-ans.yes .ls-ai { color: var(--up); }
.ls-ans.yes:hover { border-color: color-mix(in srgb, var(--up) 55%, var(--line)); background: color-mix(in srgb, var(--up) 8%, var(--panel)); }
.ls-ans.no:hover { border-color: color-mix(in srgb, var(--fg) 30%, var(--line)); }
.ls-quiet { align-self: flex-end; border: 0; background: none; padding: 2px 2px; color: var(--muted); font: 500 12px var(--sans); cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color .12s, text-decoration-color .12s; }
.ls-quiet:hover { color: var(--fg); text-decoration-color: currentColor; }
.ls-quiet:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 640px) { .ls-reply { justify-content: flex-start; } .ls-quiet { align-self: flex-start; } }

/* Tables fit the screen (Moe, 2026-11-28: "fix the table to the screen so that only the table is scrollable, not the whole
   screen"). On a desktop or tablet each table panel is at most one screen tall: its heading and tools stay in place, the
   rows scroll inside with the header row pinned, and scrolling inside a table never moves the page. Phones keep their
   card layout and scroll as a page. */
@media (min-width: 901px) {
  .panel.sb, .panel.br, .panel.ls-renew, .panel:has(> .tblwrap) { display: flex; flex-direction: column; max-height: calc(100dvh - 40px); }
  :is(.panel.sb, .panel.br, .panel.ls-renew, .panel:has(> .tblwrap)) > * { flex: none; }
  .panel.sb > .sb-scroll, .panel:has(> .tblwrap) > .tblwrap, .panel.ls-renew > .ls-q { flex: 1 1 auto; min-height: 220px; max-height: none; overflow: auto; overscroll-behavior: contain; }
  .panel.br > .br-out { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .panel.br > .br-out > .tblwrap { flex: 1 1 auto; min-height: 220px; overflow: auto; overscroll-behavior: contain; }
  :is(.panel.br > .br-out, .panel:has(> .tblwrap)) > .tblwrap thead th { position: sticky; top: 0; z-index: 3; background: var(--panel); box-shadow: 0 1px 0 var(--line); }
  :is(.panel.br > .br-out, .panel:has(> .tblwrap)) > .tblwrap thead th:first-child { z-index: 4; }
  .panel.ls-renew > .ls-q { margin-inline: -4px; padding-inline: 4px; scrollbar-width: thin; }
}

/* The City Finder's toolbar, as on the property finder (Moe, 2026-11-28): one row with the search, the filter pills and All
   filters, then Sort and the table's tools as icon buttons (Columns, Cash flow assumptions, Compact rows, Download). */
.mx-bf .bf-bar { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.bf-toprow { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bf-toprow .bf-find2 { flex: 1 1 auto; max-width: 380px; min-width: 0; }
.mx-bf .bf-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bf-tools3 { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.bf-tools3 .sb-popwrap { position: relative; display: inline-flex; }
.bf-tools3 .btn.ib .sb-chev { display: none; }
.bf-tools3 .btn.ib[aria-expanded="true"], .bf-tools3 .btn.ib[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.mx .sb-meta .help { margin-left: 4px; vertical-align: -2px; }

/* The finders fill the screen on a desktop (Moe, 2026-11-28): the page is one screen tall, the table panel takes what is
   left, and only its rows scroll. Short windows keep the page scrolling. */
@media (min-width: 901px) and (min-height: 640px) {
  .view.fit-screen { flex: none; height: 100dvh; min-height: 0; padding-bottom: 20px; }
  .view.fit-screen > .eng { flex: 1 1 auto; min-height: 0; }
  .view.fit-screen > .eng > :is(.panel.sb, .panel.br) { flex: 1 1 auto; min-height: 320px; max-height: none; }
}
/* On a laptop-height screen the City Finder's tiles keep only their figures (title, tag, number) so the table has room. */
@media (min-width: 901px) and (min-height: 640px) and (max-height: 1049px) {
  .view.fit-screen .mx-tiles :is(.rd-viz, .rd-l) { display: none; }
  .view.fit-screen .mx-tiles .rd { min-height: 0; }
}

/* Property page export (Moe's Vestra row 51): the export icon sits left of the +, the shared report's button in its place. */
.pg-side .ls-add + .pp-add, .pg-side .ls-add + .pp-cta { margin-left: 2px; }
.pp-exp[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.btn.pp-cta { border-radius: 999px; padding: 10px 18px; font-weight: 600; box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.pp-flash { position: fixed; left: 50%; bottom: calc(24px + var(--mobile-nav-height, 0px) + env(safe-area-inset-bottom, 0px)); z-index: 90; transform: translateX(-50%); padding: 10px 16px; border-radius: 999px; background: var(--fg); color: var(--bg); font: 600 13px var(--sans); box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .45); transition: opacity .3s, transform .3s; }
.pp-flash.out { opacity: 0; transform: translate(-50%, 6px); }
.print-head { display: none; }

/* The printed report (row 51): light colours whatever the screen shows, the page alone without the app around it, no
   buttons, nothing split across pages that can be kept whole, and a heading with the brand, the date and the address. */
@media print {
  @page { margin: 12mm; }
  :root:root, :root:root[data-theme] { --bg: #ffffff; --panel: #ffffff; --panel-2: #f2f2f5; --line: #e3e4e8; --fg: #0b0c0f; --muted: #5b5e67; --accent: #121317; --accent-ink: #ffffff; --accent-soft: #ececef; --chart: #121317; --mark-tile: #121317; --mark-v: #ffffff; --warn-soft: #fbefd9; --up: #0a7a45; --down: #c4292f; --s1: #1f5fbf; --s2: #a15c00; --s3: #b8327f; --seg-on: #ffffff; color-scheme: light; }
  html, body { background: #ffffff !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .side, .mobile-nav, .top, .scrim, .app-banner, .toasts, #toasts, .skip, .pg-side, .pp-flash, .help, button, .btn, .pf-vctl, .note, [data-note-pop] { display: none !important; }
  .main, .view { margin: 0 !important; padding: 0 !important; max-width: none !important; width: auto !important; height: auto !important; gap: 14px !important; }
  .panel, .rd, .pf-tile, .vc-panel, .pf-callbox > *, tr { break-inside: avoid; }
  .panel, .rd { box-shadow: none !important; }
  a { color: inherit !important; text-decoration: none !important; }
  .print-head { display: flex !important; align-items: center; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid #e3e4e8; font: 500 11px var(--sans); color: #5b5e67; }
  .print-brand { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; font: 600 15px var(--head); color: #0b0c0f; }
  .print-brand svg { width: 20px; height: 20px; }
  .print-brand svg rect { fill: #121317; } .print-brand svg path { fill: none; stroke: #ffffff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
}

/* Nvestra (Moe's Vestra Site row 28, 2026-11-29): the wordmark is "nvestra" with ".ai" set back in grey, in Outfit, beside
   the open-door arch on the ink tile. */
/* The app's top-left logo is back to the V and "Vestra" for now (Moe, 2026-11-29: "change the logo on the app to the old one for now", "only on the top left of the app"), so .brand-name keeps its old style. */
.brand-name .brand-tld, .brand-tld { color: var(--muted); font-weight: 600; }

/* A shared report (/…/report, html.report-mode; Moe, 2026-11-29: "the sharable public link should not come with all the
   left side panel"): the report alone, without the app's menu, top bar or phone tab bar, under its own header (the
   printed report's heading, shown on the screen) with the brand linking to Nvestra's website. */
html.report-mode { --mobile-nav-height: 0px; }
html.report-mode .side, html.report-mode .top, html.report-mode #mobile-nav, html.report-mode .scrim, html.report-mode .app-banner { display: none !important; }
html.report-mode .main { margin: 0 !important; }
html.report-mode .view { max-width: 1240px; margin: 0 auto; }
html.report-mode .print-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 2px 0 14px; border-bottom: 1px solid var(--line); font: 500 12px var(--sans); color: var(--muted); }
html.report-mode .print-brand { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; font: 600 18px var(--head); letter-spacing: -0.03em; color: var(--fg); text-decoration: none; border-radius: 10px; }
html.report-mode .print-brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
html.report-mode .print-brand svg { width: 28px; height: 28px; }
html.report-mode .print-url { display: none; }
/* On a phone the report's title takes the full width and its two actions sit on the row below, the button stretching. */
@media (max-width: 760px) {
  html.report-mode .pp-head { flex-wrap: wrap; row-gap: 12px; }
  html.report-mode .pp-head .h1 { flex: 1 1 100%; }
  html.report-mode .pp-head .pg-side { flex: 1 1 100%; justify-content: flex-start; }
  html.report-mode .pp-head .pp-cta { flex: 1; text-align: center; justify-content: center; }
}
