/* (FINAL-FIX2 perf) 1 selector list in this file whose last compound was a bare :is(...) are written out one selector per alternative, so Blink buckets each by its own class / id / tag instead of testing every element on every style recalc. Each alternative is padded with :not(#zz-) / :not(.zz-) / :not(zz-) so its specificity is what the :is() gave (the most specific alternative); one that cannot be padded down is a class / type more specific only where no rule anywhere could tell the difference (checked against every stylesheet and the DOM), otherwise it stays in a :is() with a never-matching alternative of the full specificity. Same elements, same cascade. */
/* Tower, View, Floor and Home (Phase 4 · UX-AUDIT P7 to P9).
   Tower and View are scenes: Night Glass. Floor and Home are light-on-dark glass over the close scene, with the plans on frosted white sheets (Phase 7b). */

body #lv-tower {
  --orb-clear: calc(var(--pad) + var(--safe-b) + 1rem + 5.6rem + 1.2rem);
  background: var(--sky, #2d4f78);
}
body #lv-tower .tw { padding-bottom: var(--orb-clear); }
/* the elevation is fitted clear of the altimeter and the dial and stands on the ground; its top edge melts into the sky it was sampled from.
   (16 October, measured on a OnePlus Pad Go) The melt is a fade in the level's own --sky laid over the top edge, which looks the same as the mask it replaces.
   The mask, together with the outlines sharing the photograph's layer, made every repaint on arrival (the floors lighting up, the availability bands fading in)
   redraw the 2560px elevation through an offscreen pass: the tablet's GPU fell over a second behind and the building blinked out several times.
   The frame and the outlines now hold layers of their own, so the outlines repaint alone and the photograph is drawn once */
body #lv-tower.fitted .tw-frame::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 16%; z-index: 4; pointer-events: none;
  background: linear-gradient(180deg, var(--sky, #2d4f78), transparent);
}
body #lv-tower .tw-frame, body #lv-tower .tw-frame > svg { will-change: transform; }
body #lv-tower .tw-frame polygon.on {
  fill: rgba(255, 255, 255, .34);
  stroke: rgba(255, 255, 255, .92);
  stroke-width: 1.5px;
  vector-effect: non-scaling-stroke;
}

/* ---------- the lift: the dial on top, two CTAs beneath ---------- */
body #lv-tower .lift,
body #lv-tower.viewing .lift {
  position: absolute;
  right: calc(var(--pad) + var(--safe-r) + .6rem);
  top: calc(var(--pad) + var(--safe-t) + 5.2rem);
  bottom: var(--orb-clear);
  left: auto;
  width: auto;
  height: auto;
  max-height: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  gap: .8rem;
  overflow: visible;
  grid-template-columns: none;
  grid-template-rows: none;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  z-index: 3;
}
body #lv-tower .lift-read { display: none; }

/* the dial: a hairline rail with a tick and a small numeral per floor; the capsule is the current floor */
body #lv-tower .lift-dial {
  position: relative;
  flex: 0 1 auto;
  min-height: 0;
  width: 3.4rem;
  align-self: flex-end;
}
body #lv-tower .lift-dial::before {
  content: "";
  position: absolute;
  inset: -.5rem -.35rem;
  border-radius: var(--r-pill);
  background: rgba(22, 18, 30, .5);
  border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  pointer-events: none;
}
body #lv-tower .lift-line {
  position: absolute;
  left: .7rem;
  top: .3rem;
  bottom: .3rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .55) 12%, rgba(255, 255, 255, .55) 88%, rgba(255, 255, 255, 0));
  pointer-events: none;
}
body #lv-tower .lift-dial .lift-scale {
  position: relative;
  height: auto;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  touch-action: none;
}
body #lv-tower .lift-dial .lift-scale::-webkit-scrollbar { display: none; }
body #lv-tower .lift-dial .lift-scale button {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  max-height: none;
  margin: 0;
  padding: 0 0 0 .55rem;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(245, 245, 247, .78);
  font: 600 max(.72rem, 12px)/1 var(--sans);
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .7);
  transition: color var(--dur-quick) var(--ease-out);
}
body #lv-tower .lift-dial .lift-scale button::before {
  content: "";
  position: absolute;
  left: calc(.7rem - 4px);
  top: 50%;
  width: 9px;
  height: 1px;
  background: rgba(255, 255, 255, .75);
}
body #lv-tower .lift-dial .lift-scale button::after { inset: 0 -4px; }
body #lv-tower .lift-dial .lift-scale button.on { background: transparent; color: transparent; text-shadow: none; }
body #lv-tower .lift-thumb {
  position: absolute;
  left: -.5rem;
  top: 0;
  z-index: 2;
  width: 4.4rem;
  height: 4.6rem;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: .05rem;
  border-radius: var(--r-pill);
  background: var(--champagne);
  color: #101014;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 14px 30px -10px rgba(0, 0, 0, .75), 0 0 0 4px rgba(255, 255, 255, .2);
  pointer-events: none;
  will-change: transform;
}
body #lv-tower .lift-thumb small { font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; opacity: .7; padding-left: .22em; }
body #lv-tower .lt-roll { display: block; height: 2.6rem; overflow: hidden; }
body #lv-tower .lt-roll b { display: block; height: 2.6rem; line-height: 2.6rem; min-width: 2.2rem; text-align: center; font: 400 2.5rem/2.6rem var(--sans); font-variant-numeric: lining-nums; }
body #lv-tower .lt-roll u { display: block; text-decoration: none; }

/* the CTAs: one champagne primary and one round glass secondary */
body #lv-tower .lift-acts {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: .6rem;
  align-self: flex-end;
  flex: none;
  justify-items: unset;
  grid-column: auto;
  grid-row: auto;
}
body #lv-tower .lift .vbtn, body #lv-tower .lift .step {
  width: auto;
  min-width: 44px;
  min-height: var(--ctl-h-lg);
  height: var(--ctl-h-lg);
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--r-pill);
  font: 600 var(--t-label-fs)/1 var(--sans);
  white-space: nowrap;
}
body #lv-tower .lift .step {
  flex-direction: row-reverse;
  padding: 0 14px 0 16px;
  background: #fff;
  color: #101014;
  border: 0;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .55);
}
body #lv-tower .lift .step::after { content: ""; position: absolute; inset: var(--ctl-hit-y-lg) -2px; border-radius: inherit; }   /* a 44px target (17 October: the pill is 40px to the eye) */
body #lv-tower .lift .step svg { width: var(--ico-sm); height: var(--ico-sm); stroke-width: 2.2; }
body #lv-tower .lift .vbtn,
body #lv-tower.viewing .lift .vbtn {
  width: var(--ctl-h-lg);
  padding: 0;
  background: rgba(22, 18, 30, .78);
  color: var(--text-hi);
  border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;   /* one live blur per screen (17 October): a denser tint instead */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), var(--e1);
}
body #lv-tower .lift .vbtn svg { width: var(--ico); height: var(--ico); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* the label is for assistive tech and the tooltip; the round button shows the icon only */
body #lv-tower .lift .vbtn span {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
/* View open: the secondary becomes a labelled pill that goes back to the building */
body #lv-tower .lift .vbtn.is-back,
body #lv-tower.viewing .lift .vbtn.is-back { width: auto; padding: 0 1.2rem 0 1rem; color: var(--gold-2); border-color: rgba(255, 255, 255, .55); }
body #lv-tower .lift .vbtn.is-back span { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }

/* ---------- the floor band's chip ---------- */
body #lv-tower .band-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  max-width: calc(100% - 1rem);
  padding: 0 .85rem;
  height: 2.2rem;
  translate: 0 -50%;
  border-radius: var(--r-pill);
  background: rgba(22, 18, 30, .72);
  color: var(--text-hi);
  border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 22px -12px rgba(0, 0, 0, .8);
  font: 600 max(.78rem, 13px)/1 var(--sans);
  white-space: nowrap;
  pointer-events: none;
}
body #lv-tower .band-chip b { font-weight: 600; }
body #lv-tower .band-chip .bc-a { color: var(--ok); }
body #lv-tower .band-chip u { text-decoration: none; opacity: .5; }
body #lv-tower .band-chip s { width: 1px; height: 1rem; background: rgba(255, 255, 255, .24); text-decoration: none; }
body #lv-tower .band-chip .bc-t { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--text-mid); }
body #lv-tower .band-chip .bc-t i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(255, 255, 255, .12); }
body #lv-tower .band-chip .sample { margin-left: .1rem; padding: .12rem .45rem; font: 600 12px/1 var(--sans); letter-spacing: .08em; border-radius: var(--r-pill); color: var(--gold-2); border: 1px solid rgba(255, 255, 255, .4); background: transparent; text-transform: uppercase; }

/* ---------- balcony open: the elevation leaves the panorama; the dial and CTAs stay on the right ----------
   .vw-out (js/ux/tower-home.js viewIn) holds the fold off for the building's .8s fade, which this fold used to hide on the first frame */
body #lv-tower.viewing .tw {
  display: block;
  grid-template-rows: none;
  pointer-events: none;
}
body #lv-tower.viewing:not(.vw-out) .tw-stage,
body #lv-tower.viewing:not(.vw-out) .tw-frame {
  position: absolute !important;
  inset: auto !important;
  left: 0 !important;
  top: 0 !important;
  width: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
body #lv-tower.viewing .lift { pointer-events: auto; }
body #lv-tower.viewing .lift-read span { display: none; }

/* ---------- View from floor ---------- */
body #lv-tower .bv-band {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  display: grid;
  gap: .6rem;
  padding: 3.4rem calc(var(--pad) + 9.5rem + var(--safe-r)) calc(var(--pad) * .6 + var(--safe-b) + 1.5rem) var(--chrome-left);
  background: linear-gradient(0deg, rgba(10, 8, 14, .8), rgba(10, 8, 14, .5) 55%, rgba(10, 8, 14, 0));
  pointer-events: none;
}
body #lv-tower .bv-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; pointer-events: auto; }
body #lv-tower .bv-band .seg {
  position: relative;
  flex-wrap: nowrap;
  gap: .1rem;
  padding: .25rem;
  background: rgba(22, 18, 30, .66);
  border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), var(--e1);
}
body #lv-tower .bv-band .seg button {
  min-height: 44px;
  min-width: 44px;
  padding: 0 1rem;
  color: var(--text-mid);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font: 600 max(.85rem, 13px)/1 var(--sans);
}
body #lv-tower .bv-band .seg button svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
body #lv-tower .bv-band .seg[data-glide] button.on { background: transparent; box-shadow: none; color: #101014; }
body #lv-tower .bv-facing {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: 0 1rem 0 .75rem; height: 44px; border-radius: var(--r-pill);
  background: rgba(22, 18, 30, .5); border: 1px solid rgba(255, 255, 255, .12); color: var(--text-hi);
}
body #lv-tower .bv-facing svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: var(--gold-2); stroke-width: 1.7; }
body #lv-tower .bv-facing span { display: grid; gap: .1rem; }
body #lv-tower .bv-facing small { font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-lo); }
body #lv-tower .bv-facing b { font: 600 max(.85rem, 13px)/1 var(--sans); }
/* the disclaimer: one subtle line at the very bottom */
body #lv-tower .bv-band .bv-note {
  position: static;
  max-width: none;
  margin: 0;
  text-align: left;
  font: 600 max(.7rem, 11.5px)/1.35 var(--sans);
  color: rgba(245, 245, 247, .6);
  text-shadow: none;
  white-space: normal;
}

/* the glide highlight (shared: View, Plan modes, Home tabs) */
.seg[data-glide] { isolation: isolate; }
.seg[data-glide] > button { position: relative; z-index: 1; }
.seg-glow.gl {
  position: absolute; left: 0; top: 0; z-index: 0; border-radius: var(--r-pill); pointer-events: none;
  background-color: var(--glow-bg, var(--lg-sel)); background-image: var(--lg-sheen); box-shadow: var(--glow-sh, var(--lg-sel-sh));
  transition: transform var(--dur-quick) var(--ease-out), width var(--dur-quick) var(--ease-out), height var(--dur-quick) var(--ease-out), opacity var(--dur-quick);
}

/* the floor band becomes the plan's sheet: laid out once at the plan card's rectangle and flown in from the band's by one transform (js/ux/tower-home.js flipBand).
   It starts as the band's half-clear glass and turns into the card's paper; transform and opacity only */
.fp-flip {
  position: fixed; z-index: 25; pointer-events: none; box-sizing: border-box; transform-origin: 0 0; opacity: .5;
  background: #fcfcfe; border-radius: var(--cx-r); box-shadow: inset 0 0 0 1px rgba(22, 22, 27, .12); will-change: transform, opacity;
  overflow: hidden;   /* (FINAL-FIX4 F7) the sheet is a window over the drawing it carries (.fp-flip-d, js/ux/tower-home.js flipDraw) */
}

@media (orientation: portrait), (max-width: 760px) {
  body #lv-tower .bv-band { padding-right: calc(var(--pad) + var(--safe-r)); padding-bottom: calc(var(--orb-clear) - .4rem); }
}

/* =====================================================================
   Floor plan (Phase 7b · Liquid Glass): the plan sits on a frosted white sheet, everything else is light-on-dark glass over the scene (css/ux/close2.css)
   ===================================================================== */
body[data-level="home"] #ui::before,
:root body #lv-home::before { content: none; display: none; height: 0; opacity: 0; background: none; }
:root body #lv-home .floor-v {
  padding-top: calc(var(--pad) + var(--safe-t) + 5.2rem);
  padding-left: var(--cx-left);   /* (21 October) the cream pages' shared edge, clear of the level slider (css/ux/close2.css); --chrome-left ran into its labels */
  padding-right: calc(var(--pad) + var(--safe-r));
  padding-bottom: calc(var(--pad) + var(--safe-b) + 7.4rem);
}
:root body #lv-home .fp, :root body #lv-home .u-plan { border-radius: var(--cx-r); background: #fcfcfe; box-shadow: inset 0 0 0 1px rgba(22, 22, 27, .12), 0 0 0 1px rgba(20, 22, 40, 0.124); }
/* header row: Back is the chrome pill; then the breadcrumb and the floor stepper, on the same line */
:root body #lv-home .fl-head {
  top: calc(var(--pad) + var(--safe-t)); left: calc(var(--pad) + var(--safe-l) + 7.8rem); right: calc(var(--pad) + var(--safe-r) + var(--guest-w, 12.5rem) + .6rem + var(--tally-w, 12.8rem) + 1.2rem);
  height: var(--ch-h, 2.8rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; pointer-events: none;
}
:root body #lv-home .fl-crumb { display: flex; align-items: baseline; gap: .65rem; min-width: 0; white-space: nowrap; }
:root body #lv-home .fl-crumb .fc-t { font: 600 max(.72rem, 12px)/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--lg-fg2); }
:root body #lv-home .fl-crumb i { font-style: normal; color: var(--lg-fg3); }
:root body #lv-home .fl-crumb h2 { font: 300 clamp(1.75rem, 2.3vw, 2.2rem)/1 var(--sans); letter-spacing: var(--ls-title); font-variant-numeric: lining-nums; color: var(--lg-fg); text-shadow: var(--lg-halo); }
:root body #lv-home .fl-step {
  display: inline-flex; align-items: center; gap: .1rem; height: var(--ch-h, 2.8rem); padding: 0 .2rem; border-radius: var(--r-pill);
  background-color: #fff; background-image: none; box-shadow: inset 0 0 0 1px rgba(22, 22, 27, .12); pointer-events: auto; flex: none;
}
:root body #lv-home .fl-step button {
  display: inline-flex; align-items: center; justify-content: center; gap: .15rem; min-width: 44px; height: 44px; padding: 0 .55rem; border-radius: var(--r-pill);
  color: var(--lg-fg); font: 600 max(.9rem, 14px)/1 var(--sans); font-variant-numeric: tabular-nums;
}
:root body #lv-home .fl-step button:disabled { opacity: .3; }
:root body #lv-home .fl-step button svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2; }
:root body #lv-home .fl-step .fs-cur {
  display: grid; place-items: center; min-width: 2.8rem; height: 2.2rem; padding: 0 .8rem; border-radius: var(--r-pill);
  background: #fff; color: #16161b; font: 500 1.25rem/1 var(--sans); font-variant-numeric: lining-nums;
}

/* One colour per home type, the same --uc as the chip dot. Status is a word, not a second fill.
   Sold is that colour at a lower opacity. On hold keeps the colour and adds the words. Available is unmarked. */
:root body #lv-home .fp polygon[data-unit] {
  fill: color-mix(in srgb, var(--uc) 58%, transparent);
  stroke: var(--uc); stroke-width: 4; stroke-linejoin: round; stroke-dasharray: none; cursor: pointer;
  transition: fill var(--dur-quick) var(--ease-out), stroke var(--dur-quick) var(--ease-out);   /* opacity is the entrance's (GSAP rise / WAAPI unitsIn): with a CSS transition too, homes arrived soft and late (17 October) */
}
:root body #lv-home .fp polygon.u-so {
  fill: color-mix(in srgb, var(--uc) 22%, transparent);
  stroke: color-mix(in srgb, var(--uc) 48%, transparent);
}
:root body #lv-home .fp .u-veil,
:root body #lv-home .fp .cl-tags,
:root body #lv-home .fp .u-tag rect { display: none; }
:root body #lv-home .fp polygon.match { stroke-width: 5.5; }
/* tap a unit: the others dim, the unit stays in place with a thicker edge */
:root body #lv-home .fp svg.has-sel polygon.u-dim { fill: rgba(255, 255, 255, .66); stroke: rgba(22, 22, 27, .16); }
/* a config chip: other homes drop to a light grey outline so the chosen type stays in its colour */
:root body #lv-home .fp svg.has-filter polygon.u-quiet {
  fill: transparent;
  stroke: rgba(22, 22, 27, .22);
  stroke-width: 2.5;
  opacity: 1;
}
:root body #lv-home .fp svg.has-filter .u-tag.u-quiet { opacity: 0; }
:root body #lv-home .fp polygon.u-sel { stroke-width: 6; stroke: #16161b; }
:root body #lv-home .fp .u-tag text {
  fill: #16161b; font-weight: 600; letter-spacing: .01em; text-anchor: middle; dominant-baseline: central;
  font-family: -apple-system, "SF Pro Text", Manrope, sans-serif;
  paint-order: stroke fill; stroke: rgba(252, 252, 254, .94); stroke-width: 3.5; stroke-linejoin: round;
}
:root body #lv-home .zbtns button { width: 40px; height: 40px; border-radius: var(--r-pill); background: rgba(22, 22, 27, .07); color: #16161b; box-shadow: inset 0 0 0 1px rgba(22, 22, 27, .1); font-size: 1.2rem; }   /* (23 October) 40px, the page's control height (was 44; the touch area stays 44, js/ux/a11y.js) */
:root body #lv-home .zbtns { gap: .3rem; }
:root body #lv-home .zhint { color: rgba(22, 22, 27, .6); }
:root body #lv-home .fp .fp-z > svg:not(.iso-lay) { padding-bottom: 2.6rem; }   /* (B9) the plate stops above the hint line ("Pinch or double-tap to zoom…" ran over units No. 4 and 5 on a Pad Go) */

/* the flyout beside the chosen unit: flat dark glass */
:root body #lv-home .fp-fly {
  position: absolute; z-index: 5; width: 17.5rem; padding: 14px 14px 12px; border-radius: var(--cx-r);
  background-color: #fff; background-image: none; color: var(--lg-fg); box-shadow: inset 0 0 0 1px rgba(22, 22, 27, .12), 0 14px 34px -16px rgba(10, 10, 20, .6);
  display: grid; gap: 6px; pointer-events: none;   /* (18 October, F4) the card lets taps through to the homes it covers (portrait: the next home's tap landed on it); its two buttons take theirs (below) */
}
:root body #lv-home .fp-fly .k { padding-right: 2.2rem; color: var(--lg-fg3); font: var(--t-kicker); letter-spacing: .08em; }
:root body #lv-home .fp-fly h3 { font: 300 20px/1.15 var(--sans); padding-right: 1.2rem; letter-spacing: var(--ls-title); }
:root body #lv-home .ff-x { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font-size: 1.2rem; color: var(--lg-fg2); }
:root body #lv-home .ff-x::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; }   /* a 44px target */
:root body #lv-home .ff-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; font: 500 12.5px/1.3 var(--sans); color: var(--lg-fg2); }
:root body #lv-home .ff-meta .sample { margin-left: .25rem; }
/* (17 October) the status word in its colour, with a 6px dot: available and held for you green, on hold amber, sold grey (it was one grey for all four) */
:root body #lv-home .ff-s { display: inline-flex; align-items: center; gap: 5px; padding: 0; border-radius: 0; background: none; font: 600 12px/1.3 var(--sans); letter-spacing: .01em; text-transform: none; color: var(--sold-ink); }
:root body #lv-home .ff-s::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sold); flex: none; }
:root body #lv-home .ff-s:is(.u-available, .u-av, .u-mine) { color: var(--ok-ink); } :root body #lv-home .ff-s:is(.u-available, .u-av, .u-mine)::before { background: var(--ok); }
:root body #lv-home .ff-s.u-hold { color: var(--hold-ink); } :root body #lv-home .ff-s.u-hold::before { background: var(--hold); }
/* Open home: the dark primary, like Price & plan (it was the light --lg-prom gradient on the white card: white on white) */
:root body #lv-home .ff-open {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--ctl-h-lg); margin-top: 4px; border-radius: var(--r-pill);
  background: #1c1c22; color: #fff; font: 600 13px/1 var(--sans); box-shadow: none;
}
:root body #lv-home .ff-open::after { content: ""; position: absolute; inset: var(--ctl-hit-y-lg) 0; border-radius: inherit; }
:root body #lv-home .ff-open svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; }
:root body #lv-home .fp-fly:not(.ff-in) .ff-x, :root body #lv-home .fp-fly:not(.ff-in) .ff-open { pointer-events: auto; }   /* not while it opens (.ff-in, js/ux/tower-home.js select): a quick tap on the next home is that home's */

/* the chips strip carries the legend: the colour key, then one flat tile per home; it fades at the edge that has more */
:root body #lv-home .fp-legend { padding: .2rem 3rem .2rem .1rem; scroll-padding-inline: 3rem; align-items: center; }
:root body #lv-home .fp-legend button {
  flex: none; display: flex; align-items: center; gap: .55rem; min-height: 44px; padding: 0 .9rem; border-radius: var(--r-pill); font: 600 max(.84rem, 13px)/1 var(--sans); color: var(--lg-fg);
  background-color: #fff; background-image: none; box-shadow: inset 0 0 0 1px rgba(22, 22, 27, .12);
}
:root body #lv-home .fp-legend i { width: .7rem; height: .7rem; border-radius: 50%; background: var(--uc); box-shadow: none; flex: none; }
:root body #lv-home .fp-legend small { color: var(--lg-fg3); font-weight: 500; }
:root body #lv-home .fp-legend .lg-st {
  margin-left: .2rem; padding: 0; border-radius: 0; background: none; color: rgba(22, 22, 27, .5);
  font: 600 max(12px, .68rem)/1 var(--sans); font-style: normal; letter-spacing: .01em; text-transform: none;
}
:root body #lv-home .fp-legend > button.is-on { background: #fff; box-shadow: inset 0 0 0 2px var(--uc); }
:root body #lv-home .fp-legend button.u-sel { box-shadow: var(--lg-hi), inset 0 0 0 1.5px rgba(255, 255, 255, .85); }
:root body #lv-home .fp-legend button.u-so,
:root body #lv-home .fp-legend button.cl-sold { opacity: 1; }
:root body #lv-home .fp-legend button.u-quiet { opacity: .38; }

:root body #lv-home .unit-v { padding-top: 0; background: none; }
:root body #lv-home .u-plan {
  margin-top: calc(var(--pad) + var(--safe-t) + 5.2rem); margin-left: var(--cx-left); margin-right: 0; margin-bottom: calc(var(--pad) + 1rem);   /* (21 October) the shared edge, as .floor-v */
}
/* (24 October) side by side, the plan and the home's card end on one line: the card's own bottom (it stops above the orb, css/ux/motion-home.css .u-spec.hm2).
   The plan ran ~86px further down, so the two cards read as two sizes */
@media (orientation: landscape) { :root body #lv-home .u-plan { margin-bottom: calc(var(--pad) + var(--safe-b) + 7.6rem); } }

/* =====================================================================
   Home · the right panel sits directly on the scene: head, figures, actions, tabs, tiles, hold. Everything stays above the fold.
   ===================================================================== */
:root body #lv-home .u-spec {
  -webkit-mask-image: none; mask-image: none; color: var(--lg-fg);
  padding: calc(var(--pad) + var(--safe-t) + 5.2rem) calc(var(--pad) + var(--safe-r) + .6rem) calc(var(--pad) + var(--safe-b) + 8.4rem) 2.2rem;
}
:root body #lv-home .u-spec.hm2 { display: flex; flex-direction: column; align-content: stretch; gap: .8rem; overflow: hidden; min-height: 0; }
html:root #lv-home .hm2 > * { flex: none; min-width: 0; }   /* was body[data-level="home"]: same specificity, #lv-home is only shown on Home, and a page change no longer restyles every element */
:root body #lv-home .hm2 .hm-head { display: grid; gap: .3rem; }
:root body #lv-home .hm2 .hm-head .k { margin: 0; color: var(--lg-fg3); }
:root body #lv-home .hm2 h2 { font: 300 clamp(2.1rem, 2.7vw, 2.9rem)/1.05 var(--sans); letter-spacing: var(--ls-title); text-shadow: var(--lg-halo); }
:root body #lv-home .hm2 .cl-ustatus { margin: .15rem 0 0; }
:root body #lv-home .hm2 .kv { display: flex; flex-wrap: wrap; gap: .4rem 2rem; }
:root body #lv-home .hm2 .kv b { font: 300 clamp(1.9rem, 2.4vw, 2.6rem)/1 var(--num); font-variant-numeric: tabular-nums lining-nums; }
:root body #lv-home .hm2 .kv span { color: var(--lg-fg3); font: 600 max(12px, .7rem)/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
:root body #lv-home .hm2 > .seg:not(.hm-tabs) { align-self: flex-start; }
/* the Rooms mode of the plan no longer swaps the panel: the tab does that, in place */
:root body #lv-home .u-spec.hm2.pm-rooms .kv { display: flex; }
:root body #lv-home .u-spec.hm2 .rm-box, :root body #lv-home .u-spec.hm2.pm-rooms .rm-box { display: none; }
:root body #lv-home .u-spec.hm2.pm-rooms .rooms { display: block; }

/* actions: two icon toggles and the one white primary */
:root body #lv-home .hm-act { display: flex; align-items: center; gap: .6rem; }
:root body #lv-home .ico-btn {
  position: relative; flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r-pill);
  background: var(--lg-field-hi); color: var(--lg-fg); box-shadow: inset 0 0 0 1px rgba(20, 22, 40, 0.087);
  transition: background-color var(--dur-quick) var(--ease-out), color var(--dur-quick) var(--ease-out), transform var(--dur-press) var(--ease-out);
}
:root body #lv-home .ico-btn:active { transform: scale(.94); }
:root body #lv-home .ico-btn svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:root body #lv-home .ico-btn span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:root body #lv-home .ico-btn.on { background: #1c1c22; color: #fff; box-shadow: none; }
:root body #lv-home .ico-btn.on[data-fav] svg { fill: currentColor; }
:root body #lv-home .ico-btn.cl-off { opacity: .45; }
:root body #lv-home .hm-primary {
  flex: 1 1 auto; min-height: 48px; padding: 0 1.4rem; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  border-radius: var(--r-pill); border: 0; font: 600 1rem/1 var(--sans);
}
:root body #lv-home .hm-primary svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2.2; }

/* tabs: a flat segmented control with the glide blob */
:root body #lv-home .hm-tabs, :root body #lv-home .pm-seg { --glow-bg: #fff; --glow-sh: 0 1px 3px rgba(20, 22, 40, .25), 0 0 0 .5px rgba(20, 22, 40, .1); }
:root body #lv-home .hm-tabs { position: relative; display: flex; flex-wrap: nowrap; gap: 0; width: 100%; padding: 3px; background: var(--lg-field); border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px rgba(20, 22, 40, 0.056); }
:root body #lv-home .hm-tabs button { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 .4rem; border-radius: var(--r-pill); font: 600 max(.88rem, 14px)/1 var(--sans); color: var(--lg-fg2); }
:root body #lv-home .hm-tabs .seg-glow.gl, :root body #lv-home .pm-seg .seg-glow.gl { border-radius: var(--r-pill); background-image: none; }
:root body #lv-home .seg[data-glide] button.on { background: transparent; box-shadow: none; color: var(--lg-fg); }
/* the Plan / Sunlight / Rooms control floats on the white plan sheet: light glass, dark ink */
:root body #lv-home .pm-seg { position: absolute; left: 1rem; top: 1rem; z-index: 3; display: inline-flex; flex-wrap: nowrap; gap: 0; padding: 3px; border-radius: var(--r-pill); background: rgba(22, 22, 27, .06); box-shadow: inset 0 0 0 1px rgba(22, 22, 27, .1); --glow-bg: #fff; --glow-sh: 0 0 0 1px rgba(22, 22, 27, .16), 0 1px 3px rgba(22, 22, 27, .2); }
:root body #lv-home .pm-seg button { min-height: 40px; padding: 0 .9rem; border-radius: var(--r-pill); color: rgba(22, 22, 27, .72); font: 600 max(.86rem, 13.5px)/1 var(--sans); }
:root body #lv-home .pm-seg[data-glide] button.on { color: #16161b; }

/* panes: content switches in place; a long list scrolls inside, the page never grows */
:root body #lv-home .hm-panes { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; margin-inline: -.1rem; padding: .1rem .1rem .3rem; }
:root body #lv-home .hm-panes.more-b { padding-bottom: 1.3rem; -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 1.3rem), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 1.3rem), transparent); }
:root body #lv-home .hm-panes::-webkit-scrollbar { display: none; }
:root body #lv-home .hm-pane[hidden] { display: none; }
:root body #lv-home .hm-intro { display: grid; gap: .22rem; margin: 0 0 .85rem; }
:root body #lv-home .hm-name { margin: 0; font: 400 clamp(1.35rem, 1.6vw, 1.65rem)/1.15 var(--sans); letter-spacing: var(--ls-title); color: var(--lg-fg); }
:root body #lv-home .hm-sub { display: flex; flex-wrap: wrap; align-items: center; gap: .28rem .5rem; margin: 0; font: 500 max(.86rem, 13.5px)/1.35 var(--sans); color: var(--lg-fg2); }
:root body #lv-home .hm-dot { font-style: normal; color: var(--lg-fg3); }
:root body #lv-home .hm-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; align-items: stretch; }
:root body #lv-home .hm-tile {
  position: relative; display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; min-height: 0; padding: 0; overflow: hidden; border-radius: var(--cx-r); text-align: left;
  background: rgba(28, 28, 40, .88) center / cover; color: #fff; border: 0; box-shadow: 0 1px 2px rgba(40, 32, 24, .06), 0 0 0 1px rgba(40, 32, 24, .08);
}
:root body #lv-home .hm-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
:root body #lv-home .hm-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 8, 14, 0) 46%, rgba(10, 8, 14, .5)); pointer-events: none; }
:root body #lv-home .hm-tile .ht-t { position: absolute; z-index: 1; left: .9rem; right: .9rem; bottom: .7rem; display: flex; flex-direction: column; justify-content: flex-end; gap: .12rem; min-height: 2.35rem; }
:root body #lv-home .hm-tile .ht-t small { font: 500 12px/1.25 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .68); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root body #lv-home .hm-tile .ht-t b { font: 400 1.08rem/1.15 var(--sans); letter-spacing: -.015em; text-shadow: 0 1px 8px rgba(0, 0, 0, .28); }
:root body #lv-home .hm-tile .ht-go { position: absolute; z-index: 1; right: .6rem; top: .6rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; background: rgba(22, 18, 30, .55); box-shadow: inset 0 0 0 1px rgba(20, 22, 40, 0.174); }
:root body #lv-home .hm-tile .ht-go svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: #fff; stroke-width: 1.8; }
:root body #lv-home .hm-tile-walk .ht-go svg { fill: #fff; stroke: none; }
:root body #lv-home .hm-hint { margin: 0 0 .5rem; font: 500 max(.82rem, 13px)/1.35 var(--sans); color: var(--lg-fg3); }

/* rooms: tappable rows */
:root body #lv-home .hm-pane .rooms { margin: 0; padding: 0; list-style: none; border: 0; }
:root body #lv-home .hm-pane .rooms li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1.25rem; min-height: 3.15rem; padding: .72rem .1rem; margin: 0; border-radius: 0; cursor: pointer;
  border: 0; border-top: 1px solid rgba(40, 32, 24, .08); font: 500 max(.94rem, 14.5px)/1.25 var(--sans); color: var(--lg-fg); transition: background-color var(--dur-quick) var(--ease-out);
}
:root body #lv-home .hm-pane .rooms li:first-child { border-top: 0; }
:root body #lv-home .hm-pane .rooms li b { font-weight: 500; color: var(--lg-fg2); font-variant-numeric: tabular-nums; white-space: nowrap; }
:root body #lv-home .hm-pane .rooms li.on { background: rgba(255, 252, 248, .8); color: var(--lg-fg); border-radius: 10px; padding-inline: .55rem; border-top-color: transparent; }
:root body #lv-home .hm-pane .rooms li.on + li { border-top-color: transparent; }
/* the dots on the plan */
.hm-d { position: absolute; width: 0; height: 0; }
.hm-d::before { content: ""; position: absolute; left: -.4rem; top: -.4rem; width: .8rem; height: .8rem; border-radius: 50%; background: #16161b; border: 2px solid #fff; box-shadow: 0 .1rem .4rem rgba(0, 0, 0, .3); }

/* finishes + facts, inline */
:root body #lv-home .hm-fin { display: grid; gap: 1.65rem; }
:root body #lv-home .hm-fg h4 { margin: 0 0 .55rem; font: 600 max(.7rem, 11px)/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--lg-fg3); }
:root body #lv-home .hm-fg p { margin: 0; font: 500 max(.88rem, 14px)/1.4 var(--sans); color: var(--lg-fg2); }
:root body #lv-home .hm-pane .hf-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
:root body #lv-home .hm-pane .hf-t {
  padding: .85rem .95rem .78rem; gap: .16rem; border-radius: 14px;
  background: #fffdfb; box-shadow: 0 1px 2px rgba(40, 32, 24, .04), 0 0 0 1px rgba(40, 32, 24, .08);
}
:root body #lv-home .hm-pane .hf-t span { font: 600 max(.62rem, 10.5px)/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: rgba(28, 28, 34, .5); }
:root body #lv-home .hm-pane .hf-t b { font: 500 1.22rem/1.15 var(--num); color: var(--lg-fg); letter-spacing: -.02em; }
:root body #lv-home .hm-pane .hf-t small { font: 500 max(.74rem, 12px)/1.3 var(--sans); color: var(--lg-fg3); }
:root body #lv-home .hm-pane .hf-inline { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .15rem .8rem; margin-top: .75rem; padding: .9rem 1rem; background: #fffdfb; box-shadow: 0 1px 2px rgba(40, 32, 24, .04), 0 0 0 1px rgba(40, 32, 24, .08); }
:root body #lv-home .hm-pane .hf-inline b { font-size: 1.6rem; }
:root body #lv-home .hm-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: .5rem; padding: 0; color: var(--lg-fg); font: 600 max(12px, .9rem)/1 var(--sans); text-decoration: underline; text-decoration-color: rgba(20, 22, 40, 0.248); text-underline-offset: .25em; background: none; border: 0; }
:root body #lv-home .hm-link svg { display: none; }

/* Request hold: a quiet flat button; press and hold 600ms fills the ring */
:root body #lv-home .hm-hold-btn {
  display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 3.5rem; padding: .35rem 1.2rem .35rem .5rem; text-align: left;
  border-radius: var(--r-pill); background: var(--lg-field); color: var(--lg-fg); box-shadow: inset 0 0 0 1px rgba(20, 22, 40, 0.112);
  touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  transition: background-color var(--dur-quick) var(--ease-out);
}
:root body #lv-home .hh-ring { position: relative; flex: none; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; color: var(--lg-fg); }
:root body #lv-home .hh-ring > svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; }
:root body #lv-home .hh-ring circle { fill: none; stroke-width: 2.6; }
:root body #lv-home .hh-ring .r0 { stroke: rgba(20, 22, 40, 0.124); }
:root body #lv-home .hh-ring .r1 { stroke: #fff; stroke-linecap: round; stroke-dasharray: 94.25; stroke-dashoffset: 94.25; }
:root body #lv-home .hh-ring > svg:last-child { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
:root body #lv-home .hh-t { display: grid; gap: .2rem; min-width: 0; }
:root body #lv-home .hh-t b { font: 600 max(.98rem, 15px)/1.1 var(--sans); }
:root body #lv-home .hh-t small { font: 500 max(.76rem, 12px)/1.2 var(--sans); color: var(--lg-fg3); }
:root body #lv-home .hm-hold-btn.holding { background: var(--lg-field-hi); }
:root body #lv-home .hm-hold-btn.on { background: rgba(124, 203, 140, .14); box-shadow: inset 0 0 0 1px rgba(124, 203, 140, .45); }
:root body #lv-home .hm-hold-btn.on .r1 { stroke-dashoffset: 0; stroke: var(--done); }
:root body #lv-home .hm-hold-btn:disabled { opacity: .5; }

/* portrait / narrow: the spec starts to the right of the open Home label on the altimeter */
@media (orientation: portrait), (max-width: 800px) {
  :root body #lv-home .u-plan { margin-right: calc(var(--pad) + var(--safe-r)); }
  :root body #lv-home .u-spec {
    padding-top: 1.2rem; padding-left: calc(var(--pad) + var(--safe-l) + var(--tap) * .95 + 6.6rem); padding-right: calc(var(--pad) + var(--safe-r)); padding-bottom: calc(var(--pad) + var(--safe-b) + 8rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  :root body #lv-home .fp polygon[data-unit], .seg-glow.gl, :root body #lv-home .hm-tile img, :root body #lv-home .ico-btn { transition: none; }
}

/* =====================================================================
   The floor dial (17 October, Phase 3), in the level slider's language: a fixed lens holds the current floor at the dial's middle; the strip of floors slides behind it
   (transform only, js/ux/tower-home.js paintStrip). Two floors each way stay readable, dimmed with distance; one light plate, no backdrop-filter.
   ===================================================================== */
/* the window: 5 rows centred on the screen's middle (.lift starts at pad + 5.2rem), never lower than 12px above Step on a short screen */
body #lv-tower .lift-dial { --dial-p: 44px; position: absolute; right: 0; top: clamp(0px, calc(50dvh - var(--pad) - var(--safe-t) - 5.2rem - var(--dial-p) * 2.5), calc(100% - var(--ctl-h-lg) - 12px - var(--dial-p) * 5));
  width: 64px; height: calc(var(--dial-p) * 5); flex: none; min-height: 0; align-self: auto; transform: none; transition: none; touch-action: none; }
body #lv-tower .lift-dial::before { content: ""; position: absolute; z-index: -1; inset: -6px -10px -6px -14px; border: 0; border-radius: 22px; background: var(--sl-plate); box-shadow: none; opacity: 1; pointer-events: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; transition: background-color 160ms var(--ease-out);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); }
body #lv-tower .lift-dial.exp::before { background-color: rgba(14, 12, 20, .46); }
body #lv-tower .lift-dial::before, body #lv-tower .lift-dial::after { content: none; }   /* (21 October) no plate (the square around the floor slider), at rest or while dragged */
/* the strip: all the floors, top floor first; only the rows near the lens take touches (the strip itself never does: off the window it would sit over Step) */
/* (18 October) the strip's offset is not inherited: every write restyled the strip's ~30 rows with it, each frame of a drag (twice the control's restyle time) */
@property --dshift { syntax: "<length>"; inherits: false; initial-value: 0px; }
body #lv-tower .lift-dial .lift-scale { position: absolute; left: 0; right: 0; top: 0; max-height: none; overflow: visible; pointer-events: none; transform: translateY(var(--dshift, 0px)); transition: transform var(--sl-move) var(--ease-out); }
body #lv-tower .lift-dial:is(.drag, .glide, .ride) .lift-scale { transition: none; }
body #lv-tower .lift-line { display: none; }
body #lv-tower .lift-dial .lift-scale button { display: flex; align-items: center; justify-content: flex-end; height: var(--dial-p); min-height: var(--dial-p); padding: 0 16px 0 0; font: 500 13px/1 var(--sans); letter-spacing: 0;
  color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); font-variant-numeric: tabular-nums; opacity: 0; pointer-events: none; transition: opacity 160ms var(--ease-out), color var(--dur-quick) var(--ease-out); }
body #lv-tower .lift-dial .lift-scale button[data-d="1"] { opacity: .62; pointer-events: auto; }
body #lv-tower .lift-dial .lift-scale button[data-d="2"] { opacity: .34; pointer-events: auto; font-size: 12px; }
body #lv-tower .lift-dial .lift-scale button.on { opacity: 1; color: transparent; text-shadow: none; pointer-events: auto; }
body #lv-tower .lift-dial .lift-scale button::before { left: auto; right: 6px; top: 50%; width: 6px; height: 1px; background: rgba(255, 255, 255, .55); box-shadow: none; }
body #lv-tower .lift-dial .lift-scale button.on::before { opacity: 0; }
/* the lens: the current floor */
body #lv-tower .lift-thumb { position: absolute; right: 4px; left: auto; top: calc(var(--dial-p) * 2 + (var(--dial-p) - 40px) / 2); z-index: 2; width: 54px; height: 40px; display: grid; align-content: center; justify-items: center; gap: 1px;
  border-radius: 14px; background: var(--act-bg); color: #fff; box-shadow: var(--act-line); pointer-events: none; transform: none; will-change: auto; }
body #lv-tower .lift-thumb small { font: 600 var(--t-meta-fs)/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .72); padding-left: .06em; }
body #lv-tower .lt-roll { display: block; height: 22px; overflow: hidden; }
body #lv-tower .lt-roll b { display: block; height: 22px; min-width: 54px; line-height: 22px; text-align: center; font: 600 19px/22px var(--sans); letter-spacing: -.01em; font-variant-numeric: tabular-nums lining-nums; }
/* a short landscape screen (a phone on its side): one floor each way, so the window stays clear of Step. The strip moves up a row, so js's "middle row" maths still holds */
@media (orientation: landscape) and (max-height: 560px) {
  body #lv-tower .lift-dial { top: clamp(0px, calc(50dvh - var(--pad) - var(--safe-t) - 5.2rem - var(--dial-p) * 1.5), calc(100% - var(--ctl-h-lg) - 12px - var(--dial-p) * 3)); height: calc(var(--dial-p) * 3); }
  body #lv-tower .lift-dial .lift-scale { top: calc(var(--dial-p) * -1); }
  body #lv-tower .lift-thumb { top: calc(var(--dial-p) + (var(--dial-p) - 40px) / 2); }
  body #lv-tower .lift-dial .lift-scale button[data-d="2"] { opacity: 0; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) { body #lv-tower .lift-dial .lift-scale, body #lv-tower .lift-dial::before { transition: none; } }
/* the lit floor band's chip: a solid-enough dark capsule (no blur), readable over a bright facade: "8 homes · 7 available | View from balcony ›" and a tiny Sample tag at the end */
body #lv-tower .tw-frame polygon.on { fill: rgba(255, 255, 255, .16); stroke: rgba(255, 255, 255, .55); stroke-width: .001; }
body #lv-tower .band-chip { height: var(--ctl-h); gap: 6px; padding: 0 4px 0 12px; max-width: calc(100% - 1rem); -webkit-backdrop-filter: none; backdrop-filter: none; border: 0;
  background: rgba(14, 12, 20, .62); color: #fff; white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 4px 12px -6px rgba(0, 0, 0, .6); font: 600 var(--t-label-fs)/1 var(--sans); text-shadow: 0 1px 2px rgba(0, 0, 0, .5); pointer-events: none; }   /* (17 October) the chip system: 32px, one flat layer */
body #lv-tower .band-chip b { font-weight: 600; color: #fff; }
body #lv-tower .band-chip u { text-decoration: none; opacity: .55; }
body #lv-tower .band-chip .bc-a { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: rgba(255, 255, 255, .85); }
body #lv-tower .band-chip .bc-a i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
body #lv-tower .band-chip s { width: 1px; height: 16px; background: rgba(255, 255, 255, .28); text-decoration: none; }
body #lv-tower .band-chip .bc-t { display: none; }
body #lv-tower .band-chip .bc-view { position: relative; pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; height: var(--ctl-h); margin: 0 0 0 2px; padding: 0 10px 0 8px; color: #fff; font: 600 var(--t-label-fs)/1 var(--sans); cursor: pointer; text-shadow: inherit; }
body #lv-tower .band-chip .bc-view::after { content: ""; position: absolute; inset: var(--ctl-hit-y) -4px; }   /* a 44px target */
body #lv-tower .band-chip .bc-view::before { content: ""; position: absolute; inset: 4px 0; border-radius: 999px; background: rgba(255, 255, 255, .18); opacity: 0; transition: opacity 120ms var(--ease-out); }
body #lv-tower .band-chip .bc-view:active::before, body #lv-tower .band-chip .bc-view:hover::before { opacity: 1; }
body #lv-tower .band-chip .bc-view svg { position: relative; width: 14px; height: 14px; flex: none; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }
body #lv-tower .band-chip .bc-view > span, body #lv-tower .band-chip .bc-view b { position: relative; }
body #lv-tower .band-chip .bc-view b { font-size: 14px; font-weight: 600; margin-top: -1px; }
body #lv-tower .band-chip .bcv-m { display: none; }
body #lv-tower .band-chip.sm .bcv-l { display: none; } body #lv-tower .band-chip.sm .bcv-m { display: inline; }
body #lv-tower .band-chip.xs .bcv-m, body #lv-tower .band-chip.xs .bc-view b { display: none; }
body #lv-tower .band-chip .sample { margin: 0 8px 0 2px; padding: 3px 6px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .18); font: 600 12px/1 var(--sans); letter-spacing: .08em; color: rgba(255, 255, 255, .75); text-transform: uppercase; text-shadow: none; }   /* was 9px */
/* the view lives in the chip now: the round eye button next to the primary goes (it returns as "Back to the building" while the view is open) */
body #lv-tower:not(.viewing) .lift .vbtn { display: none; }

/* =====================================================================
   Home panel, reorganised: a compact header (~28%), sticky tabs, and a content area that takes all the rest
   ===================================================================== */
:root body #lv-home .u-spec.hm2 { gap: .6rem; }
:root body #lv-home .hm2 .hm-head { gap: .2rem; }
:root body #lv-home .hm2 .hm-tr { display: flex; align-items: center; flex-wrap: wrap; gap: .2rem .8rem; }
:root body #lv-home .hm2 h2 { font-size: clamp(1.6rem, 2vw, 2rem); line-height: 1.1; }
:root body #lv-home .hm2 .cl-ustatus { margin: 0; }
:root body #lv-home .hm2 .cl-ustatus > span { display: none; }
:root body #lv-home .hm2 .kv { display: flex; flex-wrap: wrap; gap: .1rem 1.4rem; overflow: hidden; max-height: 3rem; transition: max-height var(--dur-quick) var(--ease-out), opacity var(--dur-quick) var(--ease-out); }
:root body #lv-home .hm2 .kv > div { display: flex; align-items: baseline; gap: .4rem; }
:root body #lv-home .hm2 .kv b { font-size: 1.4rem; line-height: 1.2; }
:root body #lv-home .hm2 .kv span { font-size: max(12px, .68rem); }
:root body #lv-home .u-spec.hm-compact .kv { max-height: 0; opacity: 0; }
:root body #lv-home .hm-act { gap: .5rem; }
:root body #lv-home .ico-btn { width: 36px; height: 36px; border-radius: var(--r-pill); }
:root body #lv-home .ico-btn::after { content: ""; position: absolute; inset: -4px; }
:root body #lv-home .ico-btn svg { width: 1.15rem; height: 1.15rem; }
:root body #lv-home .hm-primary { min-height: 44px; font-size: .95rem; }
:root body #lv-home .hm-hold { flex: none; }
:root body #lv-home .hm-hold-btn { width: auto; min-height: 44px; padding: .2rem .9rem .2rem .35rem; gap: .5rem; border-radius: var(--r-pill); }
:root body #lv-home .hh-ring { width: 2rem; height: 2rem; }
:root body #lv-home .hh-t b { font-size: max(12px, .86rem); white-space: nowrap; }
:root body #lv-home .hh-t small { font-size: max(12px, .66rem); white-space: nowrap; }
:root body #lv-home .hm-tabs { flex: none; }
:root body #lv-home .hm-panes { flex: 1 1 0; min-height: 0; padding-bottom: .6rem; }
/* (the panes' CSS fade, hm-in, is gone: js/ux/tower-home.js showTab slides the new pane in by itself, and the panel's entrance brings the first one) */
:root body #lv-home .hm-sum { list-style: none; display: grid; gap: 0; margin: .95rem 0 0; padding: 0; border-top: 1px solid rgba(40, 32, 24, .08); }
:root body #lv-home .hm-sum li { position: relative; padding: .68rem 0; border-bottom: 1px solid rgba(40, 32, 24, .08); font: 500 max(.92rem, 14px)/1.4 var(--sans); color: var(--lg-fg2); }
:root body #lv-home .hm-sum li::before { content: none; }
:root body #lv-home .hm-sum b { font-weight: 600; color: var(--lg-fg); font-variant-numeric: tabular-nums; }
:root body #lv-home .hm-pane .rooms li.tot { cursor: default; font-weight: 600; color: var(--lg-fg); border-top: 1px solid rgba(40, 32, 24, .08); }
:root body #lv-home .hm-pane .rooms li.tot b { color: var(--lg-fg); font-weight: 600; }
:root body #lv-home .hm-fg p { display: flex; flex-wrap: wrap; gap: .42rem .45rem; }
:root body #lv-home .hm-ch { padding: .38rem .78rem; border-radius: var(--r-pill); background: rgba(255, 252, 248, .55); box-shadow: inset 0 0 0 1px rgba(40, 32, 24, .12); font: 500 max(.82rem, 13px)/1.25 var(--sans); color: var(--lg-fg2); }
@media (prefers-reduced-motion: reduce) { :root body #lv-home .hm2 .kv { transition: none; } }

/* ---- the plan names its homes: "No. 3" on each unit, a status word under it when sold or held; the dock only lists the home types ---- */
:root body #lv-home .fp .u-tag text.un { font-weight: 600; font-size-adjust: none; letter-spacing: .02em; }
:root body #lv-home .fp .u-tag text.us { font-weight: 600; fill: rgba(22, 22, 27, .72); letter-spacing: .04em; text-transform: uppercase; }
:root body #lv-home .fp svg.has-filter .u-tag:not(.u-quiet) text.un { stroke-width: 5; }
:root body #lv-home .fp-legend small { font-variant-numeric: tabular-nums; }
:root body #lv-home .fp-legend .lg-st { color: rgba(22, 22, 27, .55); }

/* ---- isometric view: the homes rise off the plan as stacked slices (JS: levels.home.isoSync). Pure CSS 3D; taps still go to the flat plan underneath. ---- */
:root body #lv-home .zbtns .iso-btn { display: grid; place-items: center; }
:root body #lv-home .zbtns .iso-btn svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:root body #lv-home .zbtns .iso-btn.on { background: #16161b; color: #fff; box-shadow: none; }
#lv-home .fp .iso-lay { display: none; }
#lv-home .fp.iso .fp-z { perspective: 2600px; perspective-origin: 50% 40%; transform-style: preserve-3d; }
/* --iso-z: the turn (js/ux/tower-home.js, UX round 3), -36deg at rest; --iso-sh turns the shadow's offset back so it falls the same way at every corner view */
#lv-home .fp.iso .fp-z > svg:not(.iso-lay) { transform: rotateX(54deg) rotateZ(var(--iso-z, -36deg)) scale(var(--iso-s, 1.12)); transform-style: preserve-3d; transition: transform .72s cubic-bezier(.22, 1, .36, 1); filter: drop-shadow(0 30px 28px rgba(14, 12, 24, .22)); overflow: visible; }
#lv-home .fp.iso .fp-z > .iso-lay { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible;
  transform: rotateX(54deg) rotateZ(var(--iso-z, -36deg)) scale(var(--iso-s, 1.12)) translateZ(calc(var(--k) * 1.7px)); }   /* 14 fine slices (was 8 coarse ones): no visible banding */
#lv-home .fp.iso .iso-lay polygon { fill: color-mix(in srgb, var(--uc) 9%, transparent); stroke: color-mix(in srgb, var(--uc) 80%, #16161b 20%); stroke-width: 2; stroke-linejoin: round; }
#lv-home .fp.iso .iso-lay polygon.u-so { fill: color-mix(in srgb, var(--uc) 30%, transparent); }
#lv-home .fp.iso .iso-lay.top polygon { fill: color-mix(in srgb, var(--uc) 22%, transparent); stroke-width: 3.5; stroke: var(--uc); }
#lv-home .fp.iso .iso-lay.top polygon.u-so { fill: color-mix(in srgb, var(--uc) 10%, transparent); }
/* where CSS trigonometry is there: turned a quarter, the long side runs into depth, so the plan is a little smaller and stays on the card; the shadow falls the same way at every corner */
@supports (width: calc(1px * sin(1deg))) {
  #lv-home .fp.iso { --iso-s: calc(1.12 - .2 * sin(var(--iso-z, -36deg) + 36deg) * sin(var(--iso-z, -36deg) + 36deg)); }
  #lv-home .fp.iso .fp-z > svg:not(.iso-lay) { filter: drop-shadow(calc(-30px * sin(var(--iso-sh, 0deg))) calc(30px * cos(var(--iso-sh, 0deg))) 28px rgba(14, 12, 24, .22)); }
}
#lv-home .fp.iso .fp-z > svg:not(.iso-lay) > .u-marks { display: none; }
#lv-home .fp.iso .iso-lay .u-tag text { fill: #16161b; font-weight: 600; text-anchor: middle; dominant-baseline: central; paint-order: stroke fill; stroke: rgba(252, 252, 254, .94); stroke-width: 4; stroke-linejoin: round; font-family: -apple-system, "SF Pro Text", Manrope, sans-serif; }
#lv-home .fp.iso .iso-lay .u-tag text.us { fill: rgba(22, 22, 27, .72); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
#lv-home .fp.iso .iso-lay .u-tag.u-quiet { opacity: 0; }
@media (prefers-reduced-motion: reduce) { #lv-home .fp.iso .fp-z > svg:not(.iso-lay) { transition: none; } }

/* ---- the home panel, spaced evenly: every block sits one rhythm apart (1rem), the tab content is as tall as it is (no inner clip, no empty band below it) and the whole panel scrolls if the screen is short ---- */
:root body #lv-home .u-spec.hm2 { gap: 1rem; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding-bottom: 2rem; }
:root body #lv-home .u-spec.hm2::-webkit-scrollbar { display: none; }
:root body #lv-home .hm2 .hm-head { gap: .35rem; }
:root body #lv-home .hm2 .kv { max-height: none; overflow: visible; }
:root body #lv-home .hm2 .hm-act { margin-top: .1rem; }
:root body #lv-home .hm2 .hm-tabs { margin-top: .2rem; margin-bottom: .2rem; }
:root body #lv-home .hm-panes, :root body #lv-home .hm-panes.more-b { flex: 0 0 auto; overflow: visible; padding: .5rem .1rem .2rem; -webkit-mask-image: none; mask-image: none; }
:root body #lv-home .hm-intro { margin: 0 0 1rem; }
:root body #lv-home .hm-tiles { margin: 0; }
:root body #lv-home .vz-ov { margin-top: 1rem; gap: .75rem; }
:root body #lv-home .vz-fin { gap: 1.1rem; }
:root body #lv-home .vz-facts { gap: .65rem; }
:root body #lv-home .vz-cost { margin-top: .75rem; }
:root body #lv-home .hm-hold { margin-top: .2rem; }

/* =====================================================================
   UX round 3 (js/ux/tower-home.js): the lift display, the built floors, the status key as a filter, the isometric turn
   ===================================================================== */
/* the lift display: an arrow the way the car goes (left of the numeral), a light that glows once on arrival (right of it); both rest unseen */
body #lv-tower .lift-thumb .lt-dir { position: absolute; left: 6px; top: calc(50% - 3px); width: 0; height: 0; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; border-bottom: 5px solid rgba(255, 255, 255, .85); opacity: 0; pointer-events: none; }
body #lv-tower .lift-thumb .lt-dir.dn { rotate: 180deg; }
body #lv-tower .lift-thumb .lt-ding { position: absolute; right: 6px; top: calc(50% - 3px); width: 6px; height: 6px; pointer-events: none; }
body #lv-tower .lift-thumb .lt-ding i { position: absolute; inset: 0; border-radius: 50%; background: #f3a531; box-shadow: none; opacity: 0; }   /* (17 October) on the glass lens: a white arrow, the amber lamp without its glow */
/* on a ride the ruler follows the car frame by frame: its own glide steps aside */
body #lv-tower .lift-dial.ride { transition: none; }

/* the built floors: a bright line on the latest slab with its label (Construction progress) */
body #lv-tower .tw-built { position: absolute; top: 0; height: 0; z-index: 2; pointer-events: none; will-change: transform; }
body #lv-tower .tw-built .tb-line { position: absolute; left: -1.5%; right: -1.5%; top: -1px; height: 2px; border-radius: 2px; background: #ffd27a; box-shadow: 0 0 10px 1px rgba(255, 210, 122, .55); }
body #lv-tower .tw-built .tb-line i { position: absolute; inset: -3px 0; border-radius: 4px; background: rgba(255, 226, 160, .9); box-shadow: 0 0 22px 6px rgba(255, 210, 122, .8); opacity: 0; }
body #lv-tower .tw-built .tb-lab { position: absolute; right: 0; bottom: 8px; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; white-space: nowrap;
  background: linear-gradient(rgba(255, 255, 255, .06), rgba(255, 255, 255, .06)), rgba(0, 0, 0, .6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 0 0 1px rgba(255, 210, 122, .45), 0 6px 16px -6px rgba(0, 0, 0, .7);
  color: #fff; font: 600 13px/1 var(--sans); text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
body #lv-tower .tw-built .tb-lab b { font-weight: 600; color: #ffe3ad; }
body #lv-tower .tw-built .tb-lab > span { color: rgba(255, 255, 255, .85); }
body #lv-tower .tw-built .tb-lab u { text-decoration: none; display: inline-block; min-width: 1.15em; text-align: right; font-variant-numeric: tabular-nums; }

/* the status key is a filter: tap a status to find those homes (the others fade to .22); a second tap shows all */
:root body #lv-home .fp-key { gap: .2rem; }
:root body #lv-home .fp-key button { position: relative; display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; padding: 0 .65rem 0 .5rem; border: 0; border-radius: var(--r-pill);
  background-color: transparent; color: inherit; font: inherit; cursor: pointer; transition: background-color 240ms var(--ease-out), color 240ms var(--ease-out); }
:root body #lv-home .fp-key button::after { content: ""; position: absolute; inset: -4px 0; }   /* a 44px target */
:root body #lv-home .fp-key button[aria-pressed="true"] { background-color: #16161b; color: #fff; }
:root body #lv-home .fp-key button[aria-pressed="true"] i { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
:root body #lv-home .fp-key .k-mine i { background: color-mix(in srgb, var(--ok) 60%, #fff); }
:root body #lv-home .fp polygon[data-unit] { transform-box: fill-box; transform-origin: 50% 50%; }   /* a found home pops from its own centre */
:root body #lv-home .fp svg.has-stf polygon.u-stq { opacity: .22; }
:root body #lv-home .fp .u-tag { transition: opacity 240ms var(--ease-out); }
:root body #lv-home .fp svg.has-stf .u-tag.u-stq, #lv-home .fp.iso .iso-lay .u-stq { opacity: .22; }
/* a hold's one pulse: a copy of its outline that grows and fades (js: pulse) */
#lv-home .fp .u-pulse { fill: none; stroke: var(--hold); stroke-width: 9; stroke-linejoin: round; opacity: 0; pointer-events: none; transform-box: fill-box; transform-origin: 50% 50%; }
#lv-home .fp .u-pulse.is-mine { stroke: var(--ok); }

/* ---------- (18 October) the TV (html.tv): the floor dial, the band chip and the floor flyout read from the sofa ----------
   The fixed px type of 17 October takes the TV scale of the compact tokens (css/tokens.css :root.tv): 11px reads as --t-meta-fs, 12.5px as --t-label-fs, 13px
   as --t-body-fs, a title as --t-card-title-fs, and the sizes between in proportion. Font sizes only (the shorthands' numerals stay). The dial keeps its 44px
   rows (DIAL_P, js/ux/tower-home.js): the numerals grow inside them, and the lens grows to hold its larger numeral */
html.tv body #lv-tower .lift-dial .lift-scale button { font-size: var(--t-body-fs); }
html.tv body #lv-tower .lift-dial .lift-scale button[data-d="2"] { font-size: calc(var(--t-body-fs) * .92); }
html.tv body #lv-tower .lift-thumb { right: 1px; width: 62px; height: 48px; top: calc(var(--dial-p) * 2 + (var(--dial-p) - 48px) / 2); }
html.tv body #lv-tower .lt-roll { height: 30px; }
html.tv body #lv-tower .lt-roll b { height: 30px; min-width: 62px; font-size: calc(var(--t-body-fs) * 1.46); line-height: 30px; }
html.tv body #lv-tower .band-chip .bc-view b { font-size: calc(var(--t-label-fs) * 1.12); }
html.tv body #lv-tower .band-chip .sample { font-size: var(--t-meta-fs); }
html.tv body #lv-home .fp-fly h3 { font-size: calc(var(--t-card-title-fs) * 1.14); }
html.tv body #lv-home .ff-meta { font-size: var(--t-label-fs); }
html.tv body #lv-home .ff-s { font-size: var(--t-meta-fs); }
html.tv body #lv-home .ff-open { font-size: var(--t-body-fs); }
html.tv body #lv-home .ff-open svg { width: var(--ico); height: var(--ico); }

/* (1 November, FINAL-FIX1 F4, S-024) "View from balcony" and "Step onto floor" are 44px tall and wide on their own (the visible capsule, not only the ::after hit box): measured 44 / 44 (1280, 1180), 44 / 48 (1366), 48 / 59 (TV, --ui-scale 1.7 keeps them above 44). css/ux/apple.css §2 sets the same floor through .tw-frame / .lift-acts selectors; this one does not depend on where the controls sit. */
body #lv-tower .band-chip .bc-view, body #lv-tower .lift .step { min-height: 44px; min-width: 44px; box-sizing: border-box; }
