/* add-on: home unit view (Phase 7b · Liquid Glass). The plan modes float on the white plan sheet (light tokens); the rooms card, facts and the walkthrough are light-on-dark glass. */
.plus-acts { padding-top: .2rem; }

/* plan modes: the Plan / Sunlight / Rooms control (positioned in css/ux/tower-home.css) */
.pm-seg button { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.pm-seg svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.sun-ov { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; mix-blend-mode: multiply; overflow: hidden; border-radius: inherit; container-type: size; }
/* the light is painted once and turned by js/plus/home.js paintSun (rotate and opacity). Each layer is a square as wide as the plan's width plus height,
   so it covers the plan at any angle; the stops sit where the old per-frame gradient's fell on the plan */
.sun-ov i { position: absolute; inset: -100%; }
@supports (width: 1cqw) { .sun-ov i { inset: auto; left: 50%; top: 50%; width: calc(100cqw + 100cqh); height: calc(100cqw + 100cqh); translate: -50% -50%; } }
.sun-glow { background: linear-gradient(0deg, rgba(255, 190, 90, .58) 18%, rgba(255, 214, 140, .26) 42%, rgba(255, 214, 140, 0) 68%); }
.sun-shade { background: linear-gradient(0deg, rgba(40, 44, 90, .1) 18%, rgba(40, 44, 90, 0) 54%); }
.u-plan[data-pm="sun"] .sun-ov i { will-change: transform, opacity; }
.sun-bar { position: absolute; left: 1rem; right: 5rem; bottom: 1rem; z-index: 3; display: none; align-items: center; gap: 1rem; padding: .5rem .8rem .5rem .7rem; border-radius: var(--r-pill); background: rgba(22, 22, 27, .06); box-shadow: inset 0 0 0 1px rgba(22, 22, 27, .1); max-width: 38rem; color: #16161b; }
.u-plan[data-pm="sun"] .sun-bar { display: flex; }
.compass { width: 3.2rem; height: 3.2rem; flex: none; overflow: visible; }
.c-ring { fill: #fff; stroke: rgba(22, 22, 27, .2); stroke-width: 1.5; }
.c-arrow { fill: #16161b; }
.c-t { font: 600 12px var(--sans); fill: #16161b; }
.c-sun { fill: #fff; stroke: #16161b; stroke-width: 1.5; }
.sun-t { display: grid; min-width: 9.5rem; }
.sun-time { font: 300 1.5rem/1.1 var(--num); }
.sun-sub { font: 500 max(.72rem, 12px)/1.3 var(--sans); color: rgba(22, 22, 27, .65); }   /* (B10) 12px at least: .72rem was 9.4px on a Pad Go (13px root) */
.sun-range { flex: 1; min-width: 5rem; accent-color: #16161b; height: 44px; cursor: pointer; }
.sun-play { width: 44px; height: 44px; border-radius: 50%; background: #16161b; color: #fff; display: grid; place-items: center; flex: none; }
.sun-play svg { width: 1rem; height: 1rem; fill: currentColor; }

/* rooms */
.rm-box { display: none; gap: .9rem; }
.u-spec.pm-rooms .rm-box { display: grid; }
.u-spec.pm-rooms .rooms, .u-spec.pm-rooms .acts, .u-spec.pm-rooms .kv { display: none; }
.rm-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.rm-chip { min-height: 44px; padding: 0 1rem; border-radius: var(--r-pill); background: var(--lg-field); font: 600 max(12px, .92rem)/1 var(--sans); box-shadow: inset 0 0 0 1px rgba(20, 22, 40, 0.062); transition: background-color var(--dur-quick); }
.rm-chip.on { background: var(--lg-sel); box-shadow: inset 0 0 0 1px rgba(20, 22, 40, 0.217); }
.rm-card { display: grid; gap: .25rem; padding: 1.2rem 1.4rem; border-radius: var(--cx-r); background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px rgba(20, 22, 40, 0.087); }
.rm-big { font: 300 clamp(2.2rem, 3.2vw, 3.4rem)/1.05 var(--num); color: var(--lg-fg3); }
.rm-card.has .rm-big { color: var(--lg-fg); }
.rm-m { font: 600 1.05rem/1.3 var(--sans); } .rm-a { font: 500 .95rem/1.3 var(--sans); color: var(--lg-fg2); }
.rm-note { font: 500 max(12px, .76rem)/1.3 var(--sans); color: var(--lg-fg3); }
.hm-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hm { position: absolute; width: 0; height: 0; }
.hm b { position: absolute; left: -.55rem; top: -.55rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #16161b; border: 3px solid #fff; box-shadow: 0 .2rem .8rem rgba(0, 0, 0, .4); }
.hm i { position: absolute; left: -1.6rem; top: -1.6rem; width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 2px solid #16161b; opacity: 0; animation: hmPulse 2.2s cubic-bezier(.22, 1, .36, 1) infinite; }
.hm i + i { animation-delay: .88s; }
@keyframes hmPulse { 0% { transform: scale(.25); opacity: .9; } 100% { transform: scale(1.3); opacity: 0; } }

/* rooms: the tape (js/plus/home.js tape, UX round 3). The chosen row grows a second line: two tapes with a tick every foot, the size counting up beside them */
body #lv-home .u-spec.hm2 ul.rooms li.vz-rm.rm-measured { border-radius: 18px; padding-bottom: .6rem; }
body #lv-home .u-spec.hm2 ul.rooms li.vz-rm > .rm-tape { grid-column: 2 / -1; display: grid; gap: .35rem; margin: 0; }
.rm-tape .rt { display: grid; grid-template-columns: minmax(0, 1fr) 4.4rem; align-items: center; gap: .7rem; margin: 0; }
.rm-tape .rt-t { position: relative; height: .7rem; border-radius: 2px; background: var(--vz-line, rgba(22, 22, 27, .12)); }
.rm-tape .rt-t i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .75) 0 1px, transparent 1px var(--ft)) 0 100% / 100% 55% no-repeat, var(--vz-acc, #16161b); }
.rm-tape .rt-t i::after { content: ""; position: absolute; right: 0; top: -2px; bottom: -2px; width: 2px; border-radius: 1px; background: var(--vz-acc, #16161b); }   /* the tape's hook */
.rm-tape .rt-v { text-align: right; font: 500 max(12px, .86rem)/1 var(--num, var(--sans)); font-variant-numeric: tabular-nums; color: var(--vz-ink, #16161b); white-space: nowrap; }
.rm-tape .rt-v em { font-style: normal; margin-right: .3rem; color: var(--vz-ink2, rgba(22, 22, 27, .66)); }

/* facts card */
.hf-sheet .sh-panel { padding: 0; overflow: auto; }
.hf { padding: clamp(1.4rem, 2.4vw, 2.4rem) clamp(1.6rem, 4vw, 4rem) 2rem; display: grid; gap: .8rem; max-width: 78rem; margin: 0 auto; }
.hf-h h2 { font: 300 clamp(2rem, 3vw, 3rem)/1.1 var(--sans); margin-top: .3rem; }
.hf-s { margin-top: .3rem; display: flex; gap: .8rem; align-items: center; }
.hf-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.hf-t { display: grid; align-content: start; gap: .2rem; padding: .85rem 1.2rem; border-radius: 14px; background: var(--lg-field); box-shadow: inset 0 0 0 1px rgba(20, 22, 40, 0.062); }
.hf-t span { font: 600 max(12px, .7rem)/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--lg-fg3); }
.hf-t b { font: 300 clamp(1.3rem, 2vw, 1.9rem)/1.15 var(--num); }
.hf-t small { font: 500 max(12px, .8rem)/1.35 var(--sans); color: var(--lg-fg2); }
.hf-c .hf-big { grid-column: 1 / -1; background: rgba(20, 22, 40, 0.074); }
.hf-c .hf-big b { font-size: clamp(2.2rem, 3.4vw, 3.2rem); }
.hf-c .hf-t:not(.hf-big) b { font: 600 1rem/1.35 var(--sans); }
.hf-c { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* walkthrough */
.wt { position: absolute; inset: 0; background: #0f0d14; overflow: hidden; color: #fff; }
.wt-stage { position: absolute; inset: 0; overflow: hidden; }
.wt-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; will-change: transform, opacity; }
.wt-shade { z-index: 3; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 6, 12, .5) 0%, rgba(8, 6, 12, 0) 25%, rgba(8, 6, 12, 0) 50%, rgba(8, 6, 12, .78) 100%); pointer-events: none; }
.wt-top { z-index: 4; position: absolute; top: 1.8rem; left: 2.4rem; display: flex; align-items: center; gap: 1rem; }
.wt-for { font-size: max(12px, .9rem); font-weight: 600; color: rgba(255, 255, 255, .85); }
.wt-cap { z-index: 4; position: absolute; left: 2.4rem; bottom: 6.6rem; max-width: min(44rem, 70%); display: grid; gap: .4rem; }
.wt-k { color: var(--gold-2); }
.wt-title { font-family: var(--sans); font-weight: 400; font-size: clamp(2.6rem, 5vw, 5rem); line-height: 1.02; }
.wt-sub { color: rgba(255, 255, 255, .85); font-size: 1.1rem; }
.wt-ctl { z-index: 5; position: absolute; left: 2.4rem; right: 2.4rem; bottom: 2rem; display: flex; align-items: center; gap: 1.5rem; }
.wt-dots { display: flex; gap: .5rem; flex: 1; min-width: 0; }
.wt-dots button { flex: 1; height: 3rem; display: grid; align-items: center; }
.wt-dots button i { display: block; height: 3px; border-radius: 3px; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 0 20rem rgba(255, 255, 255, 0) inset; position: relative; }
.wt-dots button::before { content: ""; grid-area: 1/1; height: 3px; border-radius: 3px; background: rgba(20, 22, 40, 0.174); }
.wt-dots button i { grid-area: 1/1; }
.wt-btns { display: flex; gap: .6rem; }
.wt-btns button { width: 3.4rem; height: 3.4rem; border-radius: 50%; background: rgba(20, 22, 40, 0.099); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; display: grid; place-items: center; border: 1px solid rgba(20, 22, 40, 0.155); }
.wt-btns svg { width: 1.2rem; height: 1.2rem; fill: currentColor; stroke: none; }
.wt-btns .wt-b-prev svg, .wt-btns .wt-b-next svg { fill: none; stroke: currentColor; stroke-width: 2; }
.wt-note { z-index: 4; position: absolute; left: 2.4rem; bottom: .7rem; font-size: max(12px, .7rem); color: rgba(255, 255, 255, .55); font-weight: 600; margin: 0; }
.wt-video { z-index: 6; position: absolute; right: 2.4rem; top: 5rem; width: min(24rem, 30vw); border-radius: var(--r); }

@media (max-width: 1100px) {
  .hf-g, .hf-c { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sun-bar { right: 1rem; bottom: 1rem; flex-wrap: wrap; border-radius: var(--r-pill); }
  .sun-t { min-width: 7rem; }
  .pm-seg button { padding: 0 .8rem; font-size: max(12px, .82rem); }
  .wt-cap { bottom: 7rem; }
}

