/* Nobu Residences · demo chọn căn
   Tinh thần 111 West 57th: nửa trái là tòa nhà, nửa phải khung trắng trượt ra.
   Một màu nhấn nâu đá, chữ có chân nét mảnh cho con số, chữ không chân viết hoa giãn rộng cho nhãn.
   Thế giới hình ảnh riêng của sản phẩm nên chỉ có một giao diện (sáng), mọi màu đặt rõ. */
:root {
  --taupe: #7c7262;
  --taupe-2: #a69c8a;
  --ink: #212121;
  --ink-2: #6d675f;
  --paper: #ffffff;
  --mist: #f4f4f4;
  --bone: #f0eeea;
  --line: #e6e2db;
  --glow: #f2d3a6;
  --stage-bg: #9a98ab;
  --free: #5f8f7c; --hold: #c39a52; --dep: #b5714c; --sold: #a8a196; --lock: #55524b;
  --serif: "Noto Serif Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --panel-w: clamp(420px, 34vw, 700px);   /* tòa 2/3, danh sách 1/3 (user chốt 18/11/2026) */
  --pp: 32px;                              /* lề trong khung phải */
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
h1, h2, .u-sub { text-wrap: balance; }
body { margin: 0; background: var(--stage-bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html.locked, html.locked body { overflow: hidden; }   /* mở khung căn / trang căn / 360°: khoá cuộn brochure */
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--taupe); outline-offset: 3px; }
.app { position: relative; }   /* các lớp con tự cố định; trang cuộn được để xem brochure bên dưới */

/* chữ nhãn: viết hoa giãn rộng */
.eyebrow, .panel-title, .label, .btn, .menu-btn span, .back, .drag-hint, .count, .chip, .floor-tag, .hour-name {
  text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; font-weight: 500;
}

/* nút viền mảnh có mũi tên, như "EXPLORE →" */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-width: 190px; padding: 11px 14px 11px 16px; border: 1px solid currentColor; text-decoration: none; transition: background .3s, color .3s; }
.btn i { font-style: normal; transition: transform .3s; }
.btn:hover i { transform: translateX(4px); }
.btn.light { color: #fff; border-color: rgba(255,255,255,.8); }
.btn.light:hover { background: #fff; color: var(--ink); }
.btn.ghost { color: #fff; border-color: rgba(255,255,255,.75); background: rgba(20,20,20,.08); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn.ghost:hover { background: #fff; color: var(--ink); }
.btn.dark { color: var(--ink); border-color: var(--ink); }
.btn.dark:hover { background: var(--ink); color: #fff; }
.btn.fill { background: var(--taupe); color: #fff; border-color: var(--taupe); }
.btn.fill:hover { background: var(--ink); border-color: var(--ink); }

/* ===== màn chờ ===== */
/* ===== màn chào =====
   Nền đen ấm có hạt, chữ NOBU trồi lên từng chữ, dòng phụ giãn chữ, hai bên "Biển — Trời". Đếm tải 00→100 thật.
   Tải xong: chữ bay lên mờ đi, một sợi chỉ vàng kéo ngang giữa màn rồi hai nửa màn tách lên/xuống từ sợi chỉ (mở rèm),
   tòa phía sau lùi nhẹ về đúng cỡ và sáng dần, chữ trang chủ lần lượt hiện (class .intro-done trên .app, js/app.js) */
html { scrollbar-width: thin; scrollbar-color: rgba(138,128,111,.55) transparent; }   /* thanh cuộn mảnh, không lộ trên màn chào tối */
.intro { --gold: #cbb68e; position: fixed; inset: 0; z-index: 50; color: #f3eee5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 max(24px, env(safe-area-inset-left, 0px)); pointer-events: auto; }
.intro.out { visibility: hidden; pointer-events: none; }
.intro-curtain { position: absolute; left: 0; right: 0; height: 50.2%; background: #14120e; transition: transform 1.25s cubic-bezier(.76, 0, .24, 1) .55s; }
.intro-curtain.t { top: 0; background: radial-gradient(120% 90% at 50% 100%, #2a251d 0%, #14120e 62%); }
.intro-curtain.b { bottom: 0; background: radial-gradient(120% 90% at 50% 0%, #2a251d 0%, #14120e 62%); }
.intro-curtain::after { content: ""; position: absolute; inset: 0; opacity: .07; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.intro.leave .intro-curtain.t { transform: translateY(-100%); }
.intro.leave .intro-curtain.b { transform: translateY(100%); }
.intro-seam { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--gold); transform: scaleX(0); opacity: 0; z-index: 1; }
.intro.leave .intro-seam { animation: nb-seam 1.5s cubic-bezier(.65, 0, .35, 1) both; }
@keyframes nb-seam { 0% { transform: scaleX(0); opacity: 1; } 45% { transform: scaleX(1); opacity: 1; } 70% { opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.intro-side, .intro-mark { position: relative; z-index: 2; transition: opacity .55s, translate .7s cubic-bezier(.5, 0, .75, 0); }
.intro.leave .intro-side, .intro.leave .intro-mark { opacity: 0; translate: 0 -18px; }
.intro-side { justify-self: center; display: flex; align-items: center; gap: 18px; text-transform: uppercase; letter-spacing: .42em; font-size: 12.5px; font-weight: 500; color: rgba(243,238,229,.78);
  animation: nb-fade 1.6s cubic-bezier(.16, 1, .3, 1) .7s backwards; }
.intro-side::after, .intro-side.r::before { content: ""; width: 48px; height: 1px; background: rgba(203,182,142,.6); }
.intro-side.r::after { display: none; }
.intro-side.l { animation-name: nb-in-l; }
.intro-side.r { animation-name: nb-in-r; }
.intro-mark { text-align: center; display: grid; justify-items: center; gap: 0; }
.intro-word { display: flex; font-family: var(--serif); font-weight: 300; font-size: clamp(72px, 11vw, 168px); line-height: 1.02; letter-spacing: .04em; overflow: hidden; padding: 0 .02em .06em; }
.intro-word b { font-weight: inherit; display: inline-block; animation: nb-letter 1.3s cubic-bezier(.16, 1, .3, 1) backwards; }
.intro-word b:nth-child(1) { animation-delay: .15s; } .intro-word b:nth-child(2) { animation-delay: .24s; }
.intro-word b:nth-child(3) { animation-delay: .33s; } .intro-word b:nth-child(4) { animation-delay: .42s; }
.intro-rule { display: block; width: min(320px, 46vw); height: 1px; margin: 18px 0 16px; background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
  animation: nb-rule 1.4s cubic-bezier(.65, 0, .35, 1) .55s backwards; }
.intro-mark small { text-transform: uppercase; letter-spacing: .5em; margin-right: -.5em; font-size: 12.5px; font-weight: 500; color: rgba(243,238,229,.86);
  animation: nb-track 2s cubic-bezier(.16, 1, .3, 1) .8s backwards; }
.intro-load { position: absolute; left: 50%; bottom: calc(44px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; display: grid; justify-items: center; gap: 12px;
  z-index: 2; transition: opacity .45s, translate .6s cubic-bezier(.5, 0, .75, 0); animation: nb-fade 1.2s ease 1s backwards; }
.intro.leave .intro-load { opacity: 0; translate: -50% 18px; }
.intro-count { font-family: var(--serif); font-weight: 300; font-size: 15px; letter-spacing: .2em; color: var(--gold); font-variant-numeric: tabular-nums; min-width: 3.4ch; text-align: center; }
.intro-bar { width: 180px; height: 1px; background: rgba(243,238,229,.18); overflow: hidden; }
.intro-bar i { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }
@keyframes nb-letter { from { transform: translateY(105%); opacity: 0; } 30% { opacity: 1; } to { transform: none; } }
@keyframes nb-rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes nb-track { from { opacity: 0; letter-spacing: .9em; margin-right: -.9em; filter: blur(4px); } to { opacity: 1; filter: none; } }
@keyframes nb-fade { from { opacity: 0; } }
@keyframes nb-in-l { from { opacity: 0; translate: -36px 0; } }
@keyframes nb-in-r { from { opacity: 0; translate: 36px 0; } }
/* sau màn chào: tòa lùi về đúng cỡ và sáng dần, chữ trang chủ hiện lần lượt (chỉ chạy một lần, xong trả lại kiểu gốc) */
@keyframes nb-settle { from { scale: 1.12; filter: brightness(.55) saturate(.9); } to { scale: 1; filter: none; } }
@keyframes nb-rise { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
@keyframes nb-drop { from { opacity: 0; translate: 0 -16px; } to { opacity: 1; translate: 0 0; } }
.app.intro-done .stage canvas { animation: nb-settle 2.8s cubic-bezier(.16, 1, .3, 1) backwards; }
.app.intro-done .hero > * { animation: nb-rise 1.3s cubic-bezier(.16, 1, .3, 1) backwards; }
.app.intro-done .hero > :nth-child(1) { animation-delay: .75s; } .app.intro-done .hero > :nth-child(2) { animation-delay: .87s; }
.app.intro-done .hero > :nth-child(3) { animation-delay: 1s; } .app.intro-done .hero > :nth-child(4) { animation-delay: 1.12s; }
.app.intro-done .top { animation: nb-drop 1.2s cubic-bezier(.16, 1, .3, 1) .9s backwards; }
.app.intro-done .spin, .app.intro-done .daybar, .app.intro-done .lens, .app.intro-done .scroll-cue { animation: nb-fade 1.2s ease 1.3s backwards; }

/* ===== sân khấu ===== */
/* Sân khấu luôn phủ cả màn. Khung căn trượt ĐÈ lên, không bóp sân khấu: bóp thì canvas đổi cỡ từng khung hình, ảnh co giật.
   app.js đo phần bị che (--vr phải, --vb dưới) rồi lướt ảnh sang giữa phần còn thấy, các nút dời theo */
.stage { position: fixed; inset: 0; overflow: hidden; touch-action: pan-y; cursor: grab; }
/* brochure đã cuộn lên che kín sân khấu (app.js onStageScroll): ẩn hẳn, khỏi dựng lại canvas toàn màn hình và các nút nền mờ kính bên dưới các chương */
.app.stage-off .stage { visibility: hidden; }
.stage.dragging { cursor: grabbing; }
/* canvas cao bằng khung nhìn LỚN NHẤT (100lvh; máy cũ: 100vh), không theo .stage: trên điện thoại thanh địa chỉ ẩn / hiện lúc cuộn làm
   .stage (fixed, inset 0) đổi chiều cao liên tục, canvas đổi cỡ theo thì ảnh tòa bị tính lại tỉ lệ, co giãn và nhảy vị trí
   (user 21/11/2026: "bị nháy nhảy… ko ở cố định vị trí của toà tháp"). Phần dưới thừa ra bị .stage cắt (overflow hidden). Máy tính: như cũ */
.stage canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; display: block; }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(10,12,20,.28) 0%, rgba(10,12,20,0) 22%, rgba(10,12,20,0) 55%, rgba(10,12,20,.55) 100%); }
.hero { position: absolute; z-index: 2; left: max(40px, env(safe-area-inset-left, 0px)); bottom: calc(48px + env(safe-area-inset-bottom, 0px)); color: #fff; max-width: 460px; display: grid; gap: 14px; transition: opacity .6s, transform .8s var(--ease); }
/* lớp tối mờ dần sau khối chữ (user chọn kiểu A, 19/11/2026): ảnh render nhiều chi tiết làm chữ khó đọc; không dùng blur (nhìn như ống kính bẩn) */
.hero::before { content: ""; position: absolute; z-index: -1; left: -140px; right: -260px; top: -180px; bottom: -140px; pointer-events: none;
  background: radial-gradient(ellipse 60% 62% at 32% 62%, rgba(8,10,16,.62) 0%, rgba(8,10,16,.4) 45%, rgba(8,10,16,0) 100%); }
.hero .eyebrow { opacity: .9; }
.hero h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.08; margin: 0; }
.hero-sub { margin: 0; font-size: 16.5px; color: rgba(255,255,255,.88); }
.hero-sub b { font-weight: 600; color: #fff; }
.hero .btn { justify-self: start; margin-top: 6px; }
.spin { position: absolute; z-index: 2; right: calc(max(40px, env(safe-area-inset-right, 0px)) + var(--vr, 0px)); bottom: calc(46px + env(safe-area-inset-bottom, 0px) + var(--vb, 0px)); display: flex; align-items: center; gap: 14px; color: #fff; transition: opacity .6s; }
.spin-btn { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.7); color: #fff; font-size: 22px; line-height: 1; display: grid; place-items: center; background: rgba(20,20,24,.12); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .3s, color .3s; }
.spin-btn:hover { background: #fff; color: var(--ink); }
.spin-btn[hidden] { display: none; }
.spin-btn.zoom-out { font-size: 14px; letter-spacing: .04em; }
.stage.zoomed { cursor: move; }
.stage.tgrade #stageGl { filter: var(--grade, none); }   /* ngày & đêm: đang xoay giữa hai mặt, phủ màu theo giờ (app.js gradeOf) */
.stage.zoomed .hero { opacity: 0; pointer-events: none; }   /* đang phóng xem chi tiết: dọn chữ khỏi ảnh */
/* thanh giờ ngày & đêm: góc phải, ngay trên nút xoay. Dải màu = màu trời đo trong chính ảnh render từng giờ (5h xanh sớm → 17h nhạt →
   18h xám → 19h đêm lên đèn), núm là mặt trời. Kéo là vào chế độ xem theo giờ; "Xoay 3D" về vòng xoay */
.daybar { position: absolute; z-index: 3; right: calc(max(40px, env(safe-area-inset-right, 0px)) + var(--vr, 0px)); bottom: calc(108px + env(safe-area-inset-bottom, 0px) + var(--vb, 0px));
  display: flex; align-items: center; gap: 16px; color: #fff; padding: 10px 18px; white-space: nowrap;
  background: rgba(16,16,22,.26); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.3);
  transition: opacity .5s; }
.day-time { font-family: var(--serif); font-size: 22px; font-weight: 300; font-variant-numeric: tabular-nums; min-width: 62px; }
.day-name { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; min-width: 96px; }
.daybar input[type=range] { -webkit-appearance: none; appearance: none; width: clamp(180px, 22vw, 320px); height: 24px; margin: 0; background: transparent; cursor: pointer; }
.daybar input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, #ecd3a2 0%, #b9cde6 33%, #6fa2df 58.6%, #a9c4ec 68.3%, #d8b9c6 81.4%, #a596c4 86.9%, #3a4878 100%); }   /* 5:30 kem vàng sớm → 14h xanh → 18h tím hồng → 20h xanh đêm (thanh 5:30–20h) */
.daybar input[type=range]::-moz-range-track { height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, #ecd3a2 0%, #b9cde6 33%, #6fa2df 58.6%, #a9c4ec 68.3%, #d8b9c6 81.4%, #a596c4 86.9%, #3a4878 100%); }   /* 5:30 kem vàng sớm → 14h xanh → 18h tím hồng → 20h xanh đêm (thanh 5:30–20h) */
.daybar input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 4px rgba(255,238,205,.32), 0 0 18px rgba(255,226,170,.95); }
.daybar input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 4px rgba(255,238,205,.32), 0 0 18px rgba(255,226,170,.95); }
.daybar input[type=range]:focus-visible { outline: 1px solid rgba(255,255,255,.8); outline-offset: 4px; }
.day-back { font: inherit; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: #fff; background: transparent;
  border: 1px solid rgba(255,255,255,.7); padding: 7px 12px; cursor: pointer; }
.day-back:hover { background: #fff; color: var(--ink); }
.app.unit-open .daybar, .app.pano-open .daybar, .stage.zoomed .daybar { opacity: 0; pointer-events: none; }
/* la bàn nắng trong thanh giờ: vạch trên cùng = hướng đang nhìn, chữ B = hướng Bắc, chấm vàng = mặt trời (càng cao càng vào tâm) */
.sun-comp { flex: none; width: 44px; height: 44px; margin: -6px 0 -6px -6px; }
.sun-comp svg { display: block; width: 100%; height: 100%; overflow: visible; }
.sc-ring { fill: rgba(255,255,255,.06); stroke: rgba(255,255,255,.55); stroke-width: 1; }
.sc-tick { stroke: rgba(255,255,255,.75); stroke-width: 1; fill: none; }
.sc-view { stroke: #fff; stroke-width: 1.6; }
.sc-n { fill: #fff; font: 600 9px var(--sans); }
.sc-sun { fill: #ffd66e; stroke: rgba(255,255,255,.9); stroke-width: 1; filter: drop-shadow(0 0 4px rgba(255,214,110,.9)); transition: opacity .4s; }
.sc-sun.off { opacity: .28; filter: none; }
/* tô màu căn theo tiêu chí + dòng nắng: ngay trên thanh giờ, canh phải */
.lens { position: absolute; z-index: 3; right: calc(max(40px, env(safe-area-inset-right, 0px)) + var(--vr, 0px)); bottom: calc(176px + env(safe-area-inset-bottom, 0px) + var(--vb, 0px));
  display: grid; justify-items: end; gap: 8px; color: #fff; transition: opacity .5s; }
.lens-chips { display: flex; align-items: center; gap: 8px; }
.lens-k { font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; margin-right: 6px; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.lchip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; font: inherit; font-size: 14.5px; color: #fff; white-space: nowrap; cursor: pointer;
  background: rgba(16,16,22,.3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.34); transition: background .3s, border-color .3s, color .3s; }
.lchip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.lchip:hover { border-color: #fff; }
.lchip[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.lens-info, .sun-line { margin: 0; font-size: 14px; text-shadow: 0 1px 10px rgba(0,0,0,.75), 0 0 2px rgba(0,0,0,.5); }
.sun-line { display: flex; align-items: center; gap: 14px; }
.sun-line b { font-weight: 500; }
.sun-m { display: inline-flex; align-items: center; gap: 4px; opacity: .92; }
.sun-m button { width: 26px; height: 26px; font: inherit; font-size: 17px; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; opacity: .8; }
.sun-m button:hover { opacity: 1; }
.app.unit-open .lens, .app.pano-open .lens, .stage.zoomed .lens { opacity: 0; pointer-events: none; }
.drag-hint { opacity: .92; }
.floor-tag { position: absolute; z-index: 2; color: var(--ink); background: rgba(255,255,255,.94); padding: 6px 12px; pointer-events: none; transform: translateY(-50%); white-space: nowrap; }
.hour { position: absolute; z-index: 3; left: calc((100% - var(--vr, 0px)) / 2); bottom: calc(32px + env(safe-area-inset-bottom, 0px) + var(--vb, 0px)); transform: translateX(-50%); width: min(460px, calc(100% - 48px)); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; color: #fff; padding: 12px 20px; background: rgba(20,20,24,.36); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.22); }
.hour-now { font-family: var(--serif); font-size: 22px; font-weight: 300; font-variant-numeric: tabular-nums; min-width: 62px; }
.hour input { width: 100%; accent-color: #fff; height: 28px; cursor: pointer; }
.hour-name { min-width: 92px; text-align: right; }

/* ===== thanh trên =====
   Kiểu Aman / Bulgari / 111W57: chữ ký thương hiệu ở giữa (chữ có chân giãn rộng trên dòng phụ nhỏ kẹp giữa hai gạch mảnh),
   Menu bên trái, nút hẹn bên phải. Trời render sáng nên có lớp tối mờ phía trên để chữ trắng luôn đọc được (user chê thanh trên
   19/11: chữ chìm vào trời, MENU và dòng phụ cùng đậm, logo dồn sát nút). Mở danh sách thì thanh co lại vừa phần ảnh, logo
   vẫn ở giữa tòa. */
.top { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: calc(16px + env(safe-area-inset-top, 0px)) max(36px, env(safe-area-inset-right, 0px)) 0 max(36px, env(safe-area-inset-left, 0px));
  pointer-events: none; transition: right 1s var(--ease); }
.top::before { content: ""; position: absolute; inset: 0 0 -64px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(12,14,22,.36) 0%, rgba(12,14,22,.16) 55%, rgba(12,14,22,0) 100%); }
.top > * { pointer-events: auto; }
.app.panel-open .top { right: var(--panel-w); }
/* user 20/11/2026: "Phía chữ Nobu thì lại dính toà tháp… để bên phải thì cũng ko được đẹp", góc phải "thiếu thiếu".
   Tòa nằm giữa khung và đỉnh sát mép trên của ảnh render nên chữ ở giữa luôn đè đỉnh tòa. Máy bàn: Menu | NOBU bên trái,
   ba lối tắt (Chọn căn · Dạo 360° · Phim) bên phải. Điện thoại giữ chữ ở giữa (đỉnh tòa nằm dưới thanh trên). */
.top-nav { display: none; }
@media (min-width: 861px) {
  .top { grid-template-columns: auto 1fr auto; column-gap: clamp(22px, 2.4vw, 40px); }
  .top .wordmark { justify-self: start; justify-items: start; padding-left: clamp(22px, 2.4vw, 40px); border-left: 1px solid rgba(255,255,255,.4); }
  .top .wm-sub::before { display: none; }
  .app.scrolled .top .wordmark { border-left-color: var(--line); }
  .top-nav { display: flex; align-items: center; gap: clamp(22px, 2.6vw, 44px); transition: opacity .5s; }
  .top-nav a, .top-nav button { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 10px 0; font: inherit; font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; font-weight: 400;
    color: #fff; text-decoration: none; background: none; border: 0; cursor: pointer; text-shadow: 0 1px 14px rgba(0,0,0,.45); }
  .top-nav a::after, .top-nav button::after { content: ""; position: absolute; left: 0; right: .26em; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease); }
  .top-nav a:hover::after, .top-nav button:hover::after, .top-nav a:focus-visible::after, .top-nav button:focus-visible::after { transform: scaleX(1); }
  .top-nav button i { width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
  .app.panel-open .top-nav { opacity: 0; pointer-events: none; }
  .app.scrolled .top-nav a, .app.scrolled .top-nav button { color: var(--ink); text-shadow: none; }
}
.menu-btn { justify-self: start; display: flex; align-items: center; gap: 14px; color: #fff; padding: 10px 0; }
.menu-btn i { position: relative; width: 28px; height: 8px; display: block; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; height: 1px; background: currentColor; transition: width .45s var(--ease); }
.menu-btn i::before { top: 0; width: 28px; }
.menu-btn i::after { bottom: 0; width: 17px; }
.menu-btn:hover i::after, .menu-btn:focus-visible i::after { width: 28px; }
.menu-btn span { font-size: 11.5px; letter-spacing: .26em; font-weight: 400; }
.wordmark { justify-self: center; color: #fff; text-decoration: none; display: grid; justify-items: center; gap: 6px; text-shadow: 0 1px 16px rgba(0,0,0,.2); transition: opacity .5s; }
.wm-name { font-family: var(--serif); font-weight: 300; font-size: 20px;   /* nhỏ lại cho đỡ đè đỉnh tòa (user 19/11/2026) */ line-height: 1; letter-spacing: .4em; margin-right: -.4em; text-transform: uppercase; }
.wm-sub { display: flex; align-items: center; gap: 10px; font-size: 8.5px; line-height: 1; letter-spacing: .44em; margin-right: -.44em; text-transform: uppercase; font-weight: 400; opacity: .92; }
.wm-sub::before, .wm-sub::after { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .55; }
.wm-sub::after { margin-left: -.44em; }
.top-cta { justify-self: end; transition: opacity .5s; }
.app.panel-open .top-cta { opacity: 0; pointer-events: none; }
/* menu: ngăn trượt toàn chiều cao, nền nâu đá */
.menu-scrim { position: fixed; inset: 0; z-index: 29; background: rgba(16,16,20,.42); opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; }
.menu { position: fixed; z-index: 30; top: 0; left: 0; bottom: 0; width: min(460px, 88vw); background: var(--taupe); color: #fff; display: grid; grid-template-rows: auto 1fr auto; padding: calc(26px + env(safe-area-inset-top, 0px)) 44px calc(30px + env(safe-area-inset-bottom, 0px)) max(44px, env(safe-area-inset-left, 0px)); transform: translateX(-100%); visibility: hidden; transition: transform .8s var(--ease), visibility .8s; box-shadow: 30px 0 60px rgba(0,0,0,.18); }
.app.menu-open .menu { transform: none; visibility: visible; }
.app.menu-open .menu-scrim { opacity: 1; visibility: visible; }
.menu-head { display: flex; align-items: center; justify-content: space-between; }
.menu-mark { font-family: var(--serif); font-weight: 300; font-size: 28px; display: flex; align-items: baseline; gap: 12px; }
.menu-mark small { font-family: var(--sans); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; font-weight: 500; opacity: .85; }
.menu-close { color: #fff; font-size: 34px; font-weight: 200; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.5); line-height: 1; transition: background .3s, color .3s; }
.menu-close:hover { background: #fff; color: var(--taupe); }
.menu-list { list-style: none; margin: 0; padding: 0; align-self: center; display: grid; gap: 6px; max-height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.menu-list::-webkit-scrollbar { display: none; }
/* lối tới các chương brochure: hai cột chữ nhỏ dưới bốn mục chính */
.menu-ch { padding-top: 26px; }
.menu-k { margin: 0 0 10px; font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; font-weight: 500; color: rgba(255,255,255,.7); }
.menu-ch ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.menu-list .menu-ch a, .menu-ch button { display: flex; align-items: baseline; gap: 12px; width: 100%; padding: 9px 0; border: 0; border-bottom: 0; background: none; font: inherit; font-size: 16.5px; line-height: 1.3; color: #fff; text-align: left; text-decoration: none; cursor: pointer; transition: transform .4s var(--ease); }
.menu-ch b { flex: none; width: 22px; font-weight: 400; font-size: 12px; letter-spacing: .08em; color: rgba(255,255,255,.62); font-variant-numeric: tabular-nums; }
.menu-list .menu-ch a:hover, .menu-ch button:hover { transform: translateX(6px); }
@media (max-height: 800px) { .menu-list a span { font-size: clamp(26px, 2.6vw, 34px); } .menu-list a { padding: 11px 0; } .menu-ch { padding-top: 18px; } .menu-list .menu-ch a, .menu-ch button { padding: 7px 0; font-size: 16px; } }
.menu-list a { display: grid; gap: 4px; padding: 16px 0; text-decoration: none; color: #fff; border-bottom: 1px solid rgba(255,255,255,.22); }
.menu-list a span { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 3.2vw, 44px); line-height: 1.1; transition: transform .4s var(--ease); }
.menu-list a small { font-size: 14.5px; color: rgba(255,255,255,.78); }
.menu-list a small b { color: #fff; font-weight: 600; }
.menu-list a:hover span { transform: translateX(10px); }
.menu-foot { display: grid; gap: 4px; font-size: 13.5px; color: rgba(255,255,255,.78); }
.menu-foot p { margin: 0; }
.stage.on-floor { cursor: pointer; }
.chip.floor-chip { background: var(--ink); border-color: var(--ink); color: #fff; display: inline-flex; gap: 8px; align-items: center; }
.chip.floor-chip i { font-style: normal; font-size: 14px; line-height: 1; }

/* ===== khung phải ===== */
.panel { position: fixed; z-index: 15; top: 0; right: 0; bottom: 0; width: var(--panel-w); background: var(--paper); transform: translateX(100%); transition: transform 1s var(--ease); display: grid; grid-template-rows: auto minmax(0, 1fr); box-shadow: -30px 0 60px rgba(0,0,0,.08); }
.app.panel-open .panel { transform: none; }
.app.panel-open .hero { opacity: 0; pointer-events: none; }
.app.unit-open .spin { opacity: 0; pointer-events: none; }
.panel-head { display: flex; align-items: center; gap: 20px; height: calc(74px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) max(var(--pp), env(safe-area-inset-right, 0px)) 0 var(--pp); border-bottom: 1px solid var(--line); }
.panel-title { color: var(--ink); flex: 1; }
.back { color: var(--taupe); display: inline-flex; gap: 10px; align-items: center; }
.back i { font-style: normal; }
.close { font-size: 30px; font-weight: 200; line-height: 1; color: var(--ink); width: 36px; height: 36px; display: grid; place-items: center; }
.panel-body { container: panel / inline-size; overflow-y: auto; overscroll-behavior: contain; padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 22px var(--pp) 4px; }
.chip { padding: 8px 14px; border: 1px solid var(--line); color: var(--ink-2); font-size: 12px; transition: border-color .2s, color .2s, background .2s; }
.chip:hover { border-color: var(--taupe); color: var(--taupe); }
.chip[aria-pressed="true"] { background: var(--taupe); border-color: var(--taupe); color: #fff; }
.count { color: var(--ink-2); padding: 14px var(--pp) 6px; margin: 0; }
.count b { color: var(--ink); font-weight: 600; }

/* Dòng căn kiểu bảng hàng 111W57: số căn lớn, giữa là diện tích · hướng và view, phải là giá và "Xem căn", ảnh nhỏ vị trí căn.
   Khung rộng: một hàng 4 cột. Khung vừa và điện thoại: cột giữa xếp chồng (thông tin trên, giá + Xem căn dưới). */
.row { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto 76px; grid-template-areas: "id meta price thumb"; gap: 0 32px; align-items: center; padding: 18px var(--pp); border-bottom: 1px solid var(--line); cursor: pointer; transition: background .3s; }
.row:hover { background: #fbfaf8; }
.row-id { grid-area: id; }
.row .label { color: var(--ink-2); display: block; }
.num { font-family: var(--serif); font-weight: 300; color: var(--taupe); font-size: clamp(48px, 4.6vw, 72px); line-height: .95; margin-top: 4px; font-variant-numeric: lining-nums; letter-spacing: -.01em; }
.row .num { font-size: clamp(44px, 3.4vw, 58px); }
.num small { font-size: .5em; letter-spacing: 0; }
.row-meta { grid-area: meta; min-width: 0; }
.meta-a { margin: 0; font-size: 16px; color: var(--ink); }
.meta-a i { font-style: normal; color: var(--taupe-2); margin: 0 .55em; }
.meta-b { margin: 3px 0 0; font-size: 15px; color: var(--ink-2); line-height: 1.4; }
.row-price { grid-area: price; display: grid; justify-items: end; gap: 8px; white-space: nowrap; }
.price { font-family: var(--serif); font-size: 27px; line-height: 1; color: var(--ink); font-variant-numeric: lining-nums; }
.price small { font-size: .6em; color: var(--ink-2); }
.go { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--taupe); text-decoration: none; }
.go i { font-style: normal; transition: transform .3s; }
.row:hover .go i, .row:focus-visible .go i { transform: translateX(4px); }
.thumb-c { grid-area: thumb; display: block; width: 100%; aspect-ratio: 3 / 4; background: var(--mist); }
.row:hover .thumb-c { box-shadow: 0 0 0 1px var(--taupe); }
.slide-c { display: block; width: 100%; height: 100%; }
.slide-img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* mặt bằng 3D căn mẫu (nền đã tách, img/mat-bang/): hiện trọn, không cắt. Đặt tuyệt đối vì .slide là lưới hàng "auto": height 100% không ăn,
   mặt bằng dọc (3PN, sky villa) bị tràn ra ngoài khung */
.slide-img.plan { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 5% 6% 9%; box-sizing: border-box; }
@container panel (max-width: 820px) {
  .row { grid-template-columns: 118px minmax(0, 1fr) 76px; grid-template-areas: "id meta thumb" "id price thumb"; gap: 10px 26px; }
  .row-id { align-self: center; }
  .row-meta { align-self: end; }
  .row-price { align-self: start; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
}
.thumb { aspect-ratio: 4 / 3; background-color: var(--mist); background-repeat: no-repeat; position: relative; overflow: hidden; }
.thumb::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: var(--band, 7%); transform: translateY(-50%); background: rgba(242,211,166,.45); box-shadow: 0 0 14px rgba(242,211,166,.9); border-top: 1px solid var(--glow); border-bottom: 1px solid var(--glow); }

@container panel (max-width: 520px) {
  .row { grid-template-columns: 96px minmax(0, 1fr) 60px; gap: 8px 18px; padding: 16px 24px; }
  .row .num { font-size: 40px; }
  .row .label { font-size: 11px; }
  .price { font-size: 24px; }
  .meta-a { font-size: 15px; } .meta-b { font-size: 14px; }
}

/* trang căn */
.unit-view { padding: 34px var(--pp) 0; display: grid; gap: 22px; }
.u-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; }
.u-head .num { font-size: clamp(64px, 6vw, 96px); }
.u-sub { font-family: var(--serif); text-transform: uppercase; letter-spacing: .06em; color: var(--taupe); font-size: clamp(18px, 1.7vw, 24px); font-weight: 400; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--free); }
.status.giu_cho::before { background: var(--hold); } .status.dat_coc::before { background: var(--dep); }
.status.da_ban::before { background: var(--sold); } .status.khoa::before { background: var(--lock); }
.slides { position: relative; aspect-ratio: 16 / 10; background: var(--mist); overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s; display: grid; }
.slide.on { opacity: 1; }
.slide .thumb { aspect-ratio: auto; height: 100%; }
.slide svg { width: 100%; height: 100%; background: var(--bone); }
.slide-cap { position: absolute; left: 14px; bottom: 12px; background: rgba(255,255,255,.92); padding: 4px 10px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.slide-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; background: rgba(255,255,255,.9); display: grid; place-items: center; font-size: 15px; z-index: 2; }
.slide-nav.prev { left: 12px; } .slide-nav.next { right: 12px; }
.slide-count { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(18,20,26,.6); color: #fff; padding: 3px 9px; font-size: 12.5px; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.u-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.u-actions .btn { min-width: 0; }
@container panel (max-width: 560px) { .u-actions { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
.u-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.u-facts div { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.u-facts div:nth-child(odd) { padding-right: 18px; }
.u-facts .label { color: var(--ink-2); font-size: 11.5px; }
.u-facts span:not(.label) { font-size: 16px; }
.u-facts span.price { font-family: var(--serif); font-size: 30px; font-weight: 300; color: var(--taupe); line-height: 1.2; }
.u-desc { color: var(--ink-2); font-size: 16px; line-height: 1.7; margin: 0; max-width: 62ch; }
.u-note { font-size: 13.5px; color: var(--ink-2); margin: 0 0 8px; border-left: 2px solid var(--line); padding-left: 12px; }

/* đặt lịch */
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(20,20,24,.45); display: grid; place-items: center; padding: 20px; }
.modal-card { position: relative; background: var(--paper); width: min(460px, 100%); max-height: calc(100% - 8px); overflow-y: auto; padding: 36px 34px 30px; display: grid; gap: 8px; }
.modal-card .close { position: absolute; top: 12px; right: 12px; }
.eyebrow.dark { color: var(--ink-2); margin: 0; }
.modal-card h2 { font-family: var(--serif); font-weight: 300; font-size: 34px; margin: 0 0 4px; color: var(--taupe); }
.modal-unit { margin: 0 0 8px; color: var(--ink-2); }
/* ô nhập: khung viền rõ, nền ngà nhẹ, chữ gợi ý nhạt hẳn (trước chỉ có gạch chân nhạt, chữ gợi ý đậm như chữ đã điền) */
.f-label { display: block; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin: 14px 0 0; padding: 0; }
.field { font: inherit; font-size: 17px; color: var(--ink); width: 100%; height: 52px; padding: 0 16px; background: #faf8f5; border: 1px solid #cdc5b8; border-radius: 0; outline: none; transition: border-color .2s, background .2s, box-shadow .2s; }
.field::placeholder { color: #b2aa9d; opacity: 1; }
.field:hover { border-color: var(--taupe-2); }
.field:focus { border-color: var(--taupe); background: #fff; box-shadow: 0 0 0 3px rgba(124,114,98,.16); }
.field.bad { border-color: #a8553a; background: #fdf7f4; }
.field.bad:focus { box-shadow: 0 0 0 3px rgba(168,85,58,.16); }
.f-err { margin: 2px 0 0; font-size: 15px; line-height: 1.4; color: #a8553a; }
.pick { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.pick legend { margin-bottom: 8px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); }
.seg label { position: relative; cursor: pointer; }
.seg label + label { margin-left: -1px; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; height: 46px; padding: 0 8px; border: 1px solid #cdc5b8; background: #faf8f5; font-size: 15.5px; color: var(--ink); text-align: center; transition: background .2s, color .2s, border-color .2s; }
.seg label:hover span { border-color: var(--taupe-2); }
@media (max-width: 480px) { .seg span { font-size: 14px; padding: 0 4px; white-space: nowrap; } }
.seg input:checked + span { position: relative; z-index: 1; background: var(--taupe); border-color: var(--taupe); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--taupe); outline-offset: 2px; }
.btn.solid { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.solid:hover { background: var(--taupe); border-color: var(--taupe); }
.modal-card .btn { margin-top: 22px; width: 100%; padding-top: 15px; padding-bottom: 15px; }
.modal-note { font-size: 13px; color: var(--ink-2); margin: 6px 0 0; }

.toast { position: fixed; z-index: 45; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; font-size: 14.5px; max-width: calc(100% - 32px); }

/* ===== điện thoại: khung phải thành tấm trượt từ dưới ===== */
@media (max-width: 860px) {
  :root { --panel-w: 100vw; }
  .panel { top: auto; height: 86%; width: 100%; transform: translateY(100%); box-shadow: 0 -20px 50px rgba(0,0,0,.18); }
  .app.unit-open .panel { height: 50%; }
  .app.panel-open .hour { bottom: calc(14px + var(--vb, 0px)); padding: 8px 14px; gap: 10px; }
  .panel-head { height: 60px; padding: 0 16px; }
  .filters, .count { padding-left: 16px; padding-right: 16px; }
  .row { grid-template-columns: minmax(0, 1fr) 60px; grid-template-areas: "id thumb" "meta thumb" "price thumb"; gap: 6px 16px; padding: 18px 16px; }
  .row-id { display: flex; align-items: baseline; gap: 12px; }
  .row-id .label { order: 2; }
  .row .num { font-size: 40px; margin-top: 0; }
  .row-meta { align-self: start; }
  .meta-a { font-size: 15.5px; }
  .meta-b { font-size: 14.5px; }
  .row-price { margin-top: 4px; }
  .price { font-size: 24px; }
  .unit-view { padding: 22px 16px 0; }
  .hero { left: 20px; right: 20px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); gap: 10px; }
  .hero h1 { font-size: 26px; }
  .hero-sub { display: none; }
  .hero::before { left: -60px; right: -60px; top: -120px; bottom: -110px;
    background: radial-gradient(ellipse 72% 58% at 42% 58%, rgba(8,10,16,.6) 0%, rgba(8,10,16,.38) 48%, rgba(8,10,16,0) 100%); }
  .stage::after { background: linear-gradient(180deg, rgba(10,12,20,.3) 0%, rgba(10,12,20,0) 16%, rgba(10,12,20,0) 72%, rgba(10,12,20,.6) 100%); }
  .spin { right: calc(20px + var(--vr, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px) + var(--vb, 0px)); gap: 10px; }
  .spin-btn { width: 38px; height: 38px; }
  .app.panel-open .spin { opacity: 0; pointer-events: none; }   /* dải tòa phía trên tấm danh sách quá thấp, nút xoay đè lên chữ NOBU */
  .app.panel-open .top { right: 0; }
  /* điện thoại: thanh giờ xuống hàng dưới cùng, bên trái hai nút xoay (trước nằm trên cùng, đè lên đỉnh tòa); chữ "Kéo để xoay tòa" nhường chỗ */
  .daybar { left: 20px; right: calc(20px + 38px * 2 + 10px + 12px + var(--vr, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px) + var(--vb, 0px)); height: 38px; gap: 10px; padding: 0 12px; }
  .day-name { display: none; }
  .day-time { font-size: 18px; min-width: 50px; }
  .daybar input[type=range] { flex: 1; width: auto; min-width: 0; }
  .drag-hint { display: none; }
  .sun-comp { width: 30px; height: 30px; margin: 0 -2px 0 -4px; }
  /* tiêu chí tô màu: một hàng cuộn ngang ngay trên hàng nút dưới cùng; chữ trang chủ nhích lên nhường chỗ */
  .lens { left: 20px; right: calc(20px + var(--vr, 0px)); bottom: calc(72px + env(safe-area-inset-bottom, 0px) + var(--vb, 0px)); justify-items: start; gap: 6px; }
  .lens-chips { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .lens-chips::-webkit-scrollbar { display: none; }
  .lens-k, .sun-m { display: none; }
  .lchip { height: 34px; padding: 0 12px; font-size: 14px; }
  .lens-info, .sun-line { font-size: 13px; }
  .lens-info:not([hidden]) + .sun-line { display: none; }
  .hero { bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
  .app.panel-open .lens { opacity: 0; pointer-events: none; }
  .app.panel-open .daybar { opacity: 0; pointer-events: none; }
  .wm-name { font-size: 18px; }
  .wm-sub { font-size: 7.5px; letter-spacing: .34em; margin-right: -.34em; gap: 9px; }
  .wm-sub::before, .wm-sub::after { width: 14px; }
  .menu-btn span { display: none; }
  .menu { padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: 28px; }
  .menu-mark small { display: none; }
    .top { padding-left: 20px; padding-right: 20px; }
  .top-cta { display: none; }
  .intro { grid-template-columns: 1fr; grid-template-rows: 1fr auto 1fr; justify-items: center; }
  .intro-side { align-self: end; margin-bottom: 40px; } .intro-side.r { align-self: start; margin: 40px 0 0; }
  .u-actions { grid-template-columns: minmax(0, 1fr); }
}

/* ===== 360°: ảnh toàn cảnh ===== */
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-cta .btn { min-width: 0; background: rgba(20,20,24,.24); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }   /* cả hai nút nền mờ kính (user 19/11) */
.hero-cta .btn:hover { background: #fff; color: var(--ink); }
.pano { position: fixed; inset: 0; z-index: 18; background: #0d0e12; }
.pano-host { position: absolute; inset: 0; }
.pano-note { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(520px, calc(100% - 32px)); background: var(--paper); color: var(--ink); padding: 28px 30px; display: grid; gap: 10px; }
.pano-note p { margin: 0; font-size: 16px; }
.pano-note .eyebrow { color: var(--taupe); }
.pano-spots { position: absolute; inset: 0; pointer-events: none; }
/* vòng dẹt trên nền: viền mảnh, lõi gần như trong suốt; trang tự tính cỡ theo phối cảnh. Không bắt chuột (pointer-events: none),
   trang dò chuột lại gần để sáng vòng lên (.near) */
.pano-spot { position: absolute; transform: translate(-50%, -50%); pointer-events: none; padding: 0; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.72); background: radial-gradient(closest-side, rgba(255,255,255,.14), rgba(255,255,255,0)); box-shadow: 0 0 5px rgba(0,0,0,.22); transition: opacity .3s, border-color .2s, background .2s; }
.pano-spot i { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); font-style: normal; font-size: 12.5px; font-weight: 500; letter-spacing: .1em; color: #fff; background: rgba(18,20,26,.55); padding: 3px 9px; white-space: nowrap; opacity: 0; transition: opacity .2s; pointer-events: none; }
.pano-spot.near, .pano-spot:focus-visible { border: 2px solid var(--glow); background: radial-gradient(closest-side, rgba(242,211,166,.5), rgba(242,211,166,.08)); outline: none; }
.pano-spot.near i, .pano-spot:focus-visible i { opacity: 1; }
.pano.dragging .pano-spot { opacity: .25; }
.pano-host.can-go canvas { cursor: pointer; }
.pano-top { position: absolute; left: 0; right: 0; top: calc(78px + env(safe-area-inset-top, 0px)); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 0 max(32px, env(safe-area-inset-right, 0px)) 0 max(32px, env(safe-area-inset-left, 0px)); pointer-events: none; }
.pano-top > * { pointer-events: auto; }
.pano-back { color: #fff; display: inline-flex; gap: 10px; align-items: center; padding: 10px 16px; border: 1px solid rgba(255,255,255,.6); background: rgba(20,20,24,.3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; font-weight: 500; }
.pano-back i { font-style: normal; }
.pano-back:hover { background: #fff; color: var(--ink); }
.pano-levels { display: flex; gap: 6px; }
.pano-levels .chip { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(20,20,24,.3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pano-levels .chip[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.pano-map { position: absolute; right: max(32px, env(safe-area-inset-right, 0px)); bottom: calc(32px + env(safe-area-inset-bottom, 0px)); width: 168px; height: 168px; background: rgba(20,20,24,.42); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.22); }
.pano-map circle { cursor: pointer; }
.pano-hint { position: absolute; left: max(32px, env(safe-area-inset-left, 0px)); bottom: calc(36px + env(safe-area-inset-bottom, 0px)); margin: 0; color: #fff; text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; font-weight: 500; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.app.pano-open .stage, .app.pano-open .panel { visibility: hidden; }
@media (max-width: 860px) {
  .pano-top { top: calc(64px + env(safe-area-inset-top, 0px)); padding: 0 16px; }
  .pano-map { width: 120px; height: 120px; right: 16px; bottom: 16px; }
  .pano-hint { left: 16px; bottom: 20px; max-width: 58%; font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .panel, .stage, .intro, .hero, .slide { transition: none; }
  .intro *, .intro *::before, .intro *::after, .app.intro-done * { animation: none !important; transition: none !important; }
}

/* ===== brochure (js/story.js) =====
   Cuộn xuống từ màn tòa: các chương trượt lên phủ sân khấu như kéo rèm. Nền đá sáng, chữ có chân lớn mảnh, nhãn chương
   viết hoa giãn rộng, ảnh / video tràn lề. Hai chương nền tối (một ngày, chân trang) để ánh đèn đêm nổi. */
.scroll-cue { position: absolute; z-index: 2; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: grid; justify-items: center; gap: 8px; color: #fff; text-decoration: none; font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; font-weight: 500;
  text-shadow: 0 1px 10px rgba(0,0,0,.35); transition: opacity .5s; }
.scroll-cue i { width: 1px; height: 34px; background: linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,0)); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.app.panel-open .scroll-cue, .stage.zoomed .scroll-cue, .stage.timemode .scroll-cue { opacity: 0; pointer-events: none; }

.story { position: relative; z-index: 10; margin-top: 100vh; margin-top: 100svh; background: var(--bone); color: var(--ink);
  box-shadow: 0 -30px 60px rgba(10,12,20,.18); }
.app.pano-open .story { display: none; }
.ch { position: relative; padding-block: clamp(80px, 11vw, 150px) 0; }
.ch-inner { max-width: 1240px; margin: 0 auto; padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); }
.ch-label { margin: 0 0 18px; font-size: 12.5px; letter-spacing: .26em; text-transform: uppercase; font-weight: 500; color: var(--taupe); }
.display { display: block; margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5.2vw, 78px); line-height: 1.04; letter-spacing: -.01em; text-wrap: balance; }
.lede { margin: 0; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.65; color: var(--ink-2); max-width: 46ch; }
.fine { margin: 14px 0 0; font-size: 14px; color: var(--ink-2); }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.media { margin: 0; position: relative; overflow: hidden; background: #1a1c22; }
.media video, .media canvas { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }   /* khung dẹt hơn ảnh: cắt phía dưới nhiều hơn, giữ đỉnh tòa */

/* mở đầu */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.facts { margin: 40px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 32px; }
.facts div { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 4px; }
.facts dt { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 3vw, 46px); line-height: 1; font-variant-numeric: tabular-nums; }
.facts dd { margin: 0; font-size: 15px; color: var(--ink-2); }
.media.wide { margin: clamp(56px, 7vw, 100px) auto 0; width: calc(100% - 2 * max(28px, env(safe-area-inset-left, 0px))); max-width: 1500px; aspect-ratio: 16 / 9; }   /* đúng tỉ lệ render: thấy trọn đỉnh tòa (21:9 cắt cụt) */

/* vị trí */
.media.bleed { width: 100%; height: min(86vh, 56.25vw); min-height: 420px; }
.media.bleed.tall { height: min(92vh, 62vw); }
.media .over { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(28px, 5vw, 64px) max(28px, env(safe-area-inset-left, 0px)) clamp(32px, 5vw, 64px);
  color: #fff; display: grid; gap: 10px; background: linear-gradient(180deg, rgba(8,10,16,0) 0%, rgba(8,10,16,.55) 100%); }
.media .over .ch-label { color: rgba(255,255,255,.85); margin: 0; }
.loc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(56px, 7vw, 100px) 0; }
.loc-map img { width: 100%; height: auto; display: block; aspect-ratio: 1; object-fit: cover; filter: saturate(.92); }
.dist { list-style: none; margin: 30px 0 0; padding: 0; }
.dist li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 17px; }
.dist li:last-child { border-bottom: 1px solid var(--line); }
.dist b { font-weight: 500; }
.dist span { color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* một ngày (nền tối) */
.ch-day { background: #121318; color: #f3efe9; margin-top: clamp(80px, 11vw, 150px); padding-block: clamp(70px, 9vw, 130px); }
.ch-day .ch-label { color: #c9b9a0; }
.ch-day .lede { color: rgba(243,239,233,.72); }
.day-copy .display { font-size: clamp(36px, 3.4vw, 54px); }
.day-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.day-copy { display: grid; gap: 22px; justify-items: start; }
.day-frame { aspect-ratio: 16 / 10; }
.day-frame video { position: absolute; inset: 0; transition: opacity .8s; }
.day-frame video:not([src]) { opacity: 0; }   /* không dùng display:none: video bị ẩn hẳn thì IntersectionObserver không bao giờ thấy để tải */
.day-frame video.off { opacity: 0; pointer-events: none; }
.sday { display: flex; align-items: center; gap: 16px; width: 100%; max-width: 460px; }
.sd-time { font-family: var(--serif); font-size: 30px; font-weight: 300; font-variant-numeric: tabular-nums; min-width: 82px; }
.sd-name { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; min-width: 96px; color: #c9b9a0; }
.sday input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 26px; margin: 0; background: transparent; cursor: pointer; }
.sday input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, #3f75ba 0%, #5f98da 20%, #6fa2df 53%, #b1ccf4 73%, #cdddf2 80%, #afb8c7 86.7%, #1d2236 93.3%, #2a2f4c 100%); }
.sday input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, #3f75ba 0%, #5f98da 20%, #6fa2df 53%, #b1ccf4 73%, #cdddf2 80%, #afb8c7 86.7%, #1d2236 93.3%, #2a2f4c 100%); }
.sday input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255,238,205,.25), 0 0 22px rgba(255,226,170,.9); }
.sday input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255,238,205,.25), 0 0 22px rgba(255,226,170,.9); }
.sday input[type=range]:focus-visible { outline: 1px solid rgba(255,255,255,.7); outline-offset: 4px; }

/* căn hộ */
.homes-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 18px 60px; align-items: end; }
.homes-head .ch-label { grid-column: 1 / -1; margin: 0; }
.types { margin-top: clamp(40px, 5vw, 70px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.type { font: inherit; text-align: left; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; display: grid; gap: 6px; }
.type-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); margin-bottom: 10px; }
.type-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.type:hover .type-img img, .type:focus-visible .type-img img { transform: scale(1.04); }
.type-name { font-family: var(--serif); font-weight: 300; font-size: 30px; line-height: 1.1; }
.type-meta { font-size: 15.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.type-free { margin-top: 6px; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; }
.type-free i { font-style: normal; transition: transform .4s var(--ease); }
.type:hover .type-free i { transform: translateX(6px); }
.type:focus-visible { outline: 1px solid var(--ink); outline-offset: 8px; }
.gallery { margin-top: clamp(70px, 9vw, 130px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.gallery figure { margin: 0; position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #1a1c22; }
.gallery video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; color: #fff; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
  background: linear-gradient(180deg, rgba(8,10,16,0), rgba(8,10,16,.6)); }

/* tiện ích */
.ch-lobby { padding-top: 6px; }
.amen { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15.5px; color: rgba(255,255,255,.88); }
.amen li::before { content: ""; display: inline-block; width: 18px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 10px; opacity: .7; }

/* trải nghiệm + chân trang */
.acts { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.acts > * { font: inherit; color: inherit; text-align: left; background: none; border: 0; border-right: 1px solid var(--line); padding: 26px 24px 28px 0; margin-right: 24px;
  display: grid; gap: 8px; align-content: start; text-decoration: none; cursor: pointer; }
.acts > *:last-child { border-right: 0; margin-right: 0; }
.acts b { font-family: var(--serif); font-weight: 300; font-size: 28px; line-height: 1.1; }
.acts span { font-size: 15.5px; color: var(--ink-2); }
.acts > *:hover b, .acts > *:focus-visible b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.btn.book { margin-top: clamp(40px, 5vw, 64px); min-width: 280px; padding: 18px 20px 18px 24px; }
.story-foot { margin-top: clamp(80px, 10vw, 140px); background: #121318; color: #f3efe9; padding: 54px max(28px, env(safe-area-inset-left, 0px)) calc(48px + env(safe-area-inset-bottom, 0px));
  display: grid; justify-items: center; gap: 8px; text-align: center; }
.story-foot .wm { font-family: var(--serif); font-weight: 300; font-size: 30px; letter-spacing: .4em; margin-right: -.4em; text-transform: uppercase; }
.story-foot span:not(.wm) { font-size: 10.5px; letter-spacing: .42em; text-transform: uppercase; opacity: .85; }
.story-foot small { margin-top: 16px; font-size: 13px; color: rgba(243,239,233,.55); }

/* thanh trên khi đã cuộn qua màn tòa: nền đá mờ, chữ tối */
.top { transition: right 1s var(--ease), background .5s, color .5s, padding .5s; }
.top::before { transition: opacity .5s; }
.app.scrolled .top { background: rgba(240,238,234,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.app.scrolled .top::before { opacity: 0; }
.app.scrolled .menu-btn, .app.scrolled .wordmark { color: var(--ink); text-shadow: none; }
.app.scrolled .top-cta { color: var(--ink); border-color: var(--ink); background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.app.scrolled .top-cta:hover { background: var(--ink); color: #fff; }

@media (max-width: 960px) {
  .intro-grid, .loc-grid, .day-grid, .homes-head { grid-template-columns: minmax(0, 1fr); }
  .types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acts > *:nth-child(2) { border-right: 0; margin-right: 0; }
  .acts > *:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .ch-inner { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
  .types { grid-template-columns: minmax(0, 1fr); }
  .media.wide { aspect-ratio: 4 / 3; width: calc(100% - 40px); }
  .media.bleed, .media.bleed.tall { height: 72vh; min-height: 0; }
  .acts { grid-template-columns: minmax(0, 1fr); }
  .acts > * { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); }
  .sday { gap: 10px; }
  .sd-name { display: none; }
  .btn.book { width: 100%; }
  .scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .scroll-cue i { animation: none; } }

/* ===== danh sách căn, bố cục 20/11/2026: số căn một cột thẳng hàng · loại căn + diện tích + hướng + tầm nhìn · ảnh vị trí · mũi tên.
   Nền xen kẽ rất nhạt (lớp .alt do renderList gắn theo các dòng đang hiện, vì lọc làm nth-child lệch). Viết .rows .row để đè các luật cũ ===== */
.rows .row { grid-template-columns: 104px minmax(0, 1fr) 60px 16px; grid-template-areas: "id meta thumb go"; gap: 0 20px; align-items: center; padding: 14px var(--pp); border-bottom: 0; background: transparent; }
.rows .row.alt { background: #f7f5f0; }
.rows .row:hover, .rows .row:focus-visible { background: #efeae2; }
.rows .row-id { display: block; align-self: center; }
.rows .row .num { font-size: 44px; margin-top: 0; }
.rows .row-meta { align-self: center; }
.meta-t { margin: 0 0 4px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; color: var(--taupe); }
.rows .meta-a { font-size: 15.5px; }
.rows .meta-b { font-size: 14.5px; margin-top: 1px; }
.rows .thumb-c { align-self: center; }
.row-go { grid-area: go; align-self: center; font-style: normal; font-size: 15px; color: var(--taupe); opacity: .4; transform: translateX(-4px); transition: opacity .3s, transform .3s; }
.rows .row:hover .row-go, .rows .row:focus-visible .row-go { opacity: 1; transform: none; }
@container panel (max-width: 520px) { .rows .row { grid-template-columns: 92px minmax(0, 1fr) 56px 14px; gap: 0 16px; padding: 13px 24px; } .rows .row .num { font-size: 40px; } }
@media (max-width: 860px) { .rows .row { grid-template-columns: 76px minmax(0, 1fr) 54px; grid-template-areas: "id meta thumb"; gap: 0 14px; padding: 13px 16px; } .rows .row .num { font-size: 36px; }
  .rows .meta-a { font-size: 14.5px; white-space: nowrap; } .rows .meta-a i { margin: 0 .35em; } .rows .meta-b { font-size: 14px; } .row-go { display: none; } }

/* màn đầu điện thoại, gom nút (user 20/11/2026: "giao diện dọc mobile màn hình đầu tiên vừa mới vào nút lộn xộn quá").
   Trước: 2 nút lệch cỡ xếp chồng + hàng 4 thẻ lọc bị cắt + dòng mặt trời + thanh giờ + 2 nút xoay. Nay còn 2 hàng đều nhau:
   [Chọn căn][Dạo 360°] và [thanh giờ][Tìm căn]. Bỏ 2 nút xoay (đã kéo tay được); 4 thẻ lọc chỉ mở khi bấm "Tìm căn", lúc đó chữ trang chủ lui đi. */
.t-s, .lens-tog { display: none; }
@keyframes nb-hint { 0%, 100% { opacity: 0; } 14%, 72% { opacity: .92; } }
@media (max-width: 860px) {
  .t-l { display: none; } .t-s { display: inline; }
  .hero { bottom: calc(24px + 38px + 20px + env(safe-area-inset-bottom, 0px)); gap: 10px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 8px; }
  .hero .hero-cta .btn { min-width: 0; justify-self: stretch; margin-top: 0; padding: 12px 12px 12px 14px; gap: 8px; }   /* type.css đặt min-width 176px cho .hero .btn */
  #spinL, #spinR { display: none; }
  .drag-hint { display: block; position: absolute; right: calc(50vw - 20px); bottom: 40vh; transform: translateX(50%); white-space: nowrap; pointer-events: none;
    text-shadow: 0 1px 10px rgba(0,0,0,.7); opacity: 0; }
  .app.intro-done .drag-hint { animation: nb-hint 5.5s ease 2.4s both; }
  .daybar { right: calc(20px + 112px + 10px + var(--vr, 0px)); }
  .lens-tog { display: inline-flex; align-items: center; justify-content: center; gap: 9px; position: absolute; z-index: 3; width: 112px; height: 38px; padding: 0;
    right: calc(20px + var(--vr, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px) + var(--vb, 0px));
    font: inherit; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: #fff; cursor: pointer;
    background: rgba(16,16,22,.26); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.3);
    transition: opacity .5s, background .3s, color .3s, border-color .3s; }
  .lens-tog[aria-expanded="true"] { background: #fff; color: var(--ink); border-color: #fff; }
  .lt-dots { display: inline-flex; gap: 3px; }
  .lt-dots i { width: 7px; height: 7px; border-radius: 50%; background: #78d6e8; }
  .lt-dots i:nth-child(2) { background: #ffb096; } .lt-dots i:nth-child(3) { background: #ffd66e; }
  .app.intro-done .lens-tog { animation: nb-fade 1.2s ease 1.3s backwards; }
  .lens { justify-items: stretch; gap: 8px; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px);
    transition: opacity .35s, transform .45s cubic-bezier(.16, 1, .3, 1), visibility 0s .35s; }
  .stage.lens-open:not(.zoomed) .lens { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
  .lens-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: none; overflow: visible; }
  .lchip { justify-content: flex-start; background: rgba(16,16,22,.34); }
  .lchip[aria-pressed="true"] { background: #fff; }
  .lens-info, .sun-line { min-height: 20px; }
  .stage.lens-open .hero { opacity: 0; pointer-events: none; }
  .app.panel-open .stage .lens, .app.unit-open .stage .lens, .app.pano-open .stage .lens { opacity: 0; pointer-events: none; }
  .app.panel-open .lens-tog, .app.unit-open .lens-tog, .app.pano-open .lens-tog, .stage.zoomed .lens-tog { opacity: 0; pointer-events: none; }
}
