/* The building model (explorer). Glass tiers, .grain and the key-light pointer come from site.css / site.js;
   this file only adds layout. Backgrounds below are zero-specificity fallbacks so the shared .glass classes win. */
.page-explore .site-header:not(.is-solid) { background: linear-gradient(180deg, rgba(17, 21, 28, .82), rgba(17, 21, 28, 0)); }
.xp { position: relative; height: 100vh; height: 100svh; min-height: 560px; background-color: var(--midnight); color: #fff; overflow: hidden; overflow: clip; isolation: isolate; }
/* overflow: clip (not hidden) so focus()/scrollIntoView inside the sheet can never scroll the stage itself sideways */
.xp-gl { position: absolute; inset: 0; z-index: 0; }
.xp-gl canvas { width: 100% !important; height: 100% !important; display: block; }
.xp-room[hidden] { display: none; }
/* key light on the stage edges: a CSS overlay, not a shader pass */
.xp-vignette { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(900px 600px at var(--lx, 70%) var(--ly, 20%), rgba(201, 146, 86, .08), rgba(127, 208, 234, .03) 40%, transparent 70%), radial-gradient(120% 90% at 50% 45%, transparent 62%, rgba(17, 21, 28, .35) 100%); }
.xp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.xp-fallback { position: absolute; z-index: 1; inset: 18% 6% 18% 400px; display: none; text-align: center; color: var(--on-dark-2, rgba(255, 255, 255, .76)); }
html[dir="rtl"] .xp-fallback { inset: 18% 400px 18% 6%; }
.xp.no-gl .xp-fallback { display: grid; gap: 16px; place-items: center; }
.xp-fallback svg { width: min(100%, 560px); height: auto; }
.xp-loading { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; color: rgba(255, 255, 255, .76); font-size: 14px; pointer-events: none; transition: opacity .5s; }
.xp-loading span { width: 44px; height: 44px; border: 1.5px solid rgba(255, 255, 255, .15); border-top-color: var(--copper-lite); border-radius: 50%; animation: xp-spin 1s linear infinite; }
.xp.ready .xp-loading, .xp.no-gl .xp-loading { opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s linear .5s; }
@keyframes xp-spin { to { transform: rotate(360deg); } }

/* panel: heavy glass */
.xp-panel { position: absolute; z-index: 6; top: calc(var(--header-h) + 16px); bottom: 16px; inset-inline-start: 16px; width: 360px; display: flex; flex-direction: column; border-radius: var(--r-lg, 6px); overflow: hidden; }
:where(.xp-panel) { background: var(--midnight-2); border: 1px solid var(--midnight-3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.xp-panel-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.xp-grab { display: none; }
.xp-head { padding: 22px 22px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.xp-head h1 { font-size: 1.5rem; margin: 8px 0 6px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
html[lang="ar"] .xp-head h1 { letter-spacing: 0; line-height: 1.35; }
.xp-sub { font-size: .875rem; line-height: 1.5; color: var(--on-dark-3, rgba(255, 255, 255, .62)); }
.xp-mode { margin: 12px 16px; }
.xp-roompane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.xp-roompane[hidden] { display: none; }
.xp.room-mode .xp-tabs, .xp.room-mode .xp-tabbody { display: none; }
.room-tip { width: 300px; }
.room-tip .rt-row { padding: 8px 0 0; margin-top: 8px; border-top: 1px solid rgba(255, 255, 255, .12); transition: opacity .3s; }
.room-tip .rt-row small { font: 600 .8125rem/1.4 var(--f-body); color: var(--copper-lite); }
.room-tip .rt-row:first-of-type small { color: rgba(255, 255, 255, .62); }
.room-tip .rt-row p { margin-top: 2px; }
.room-tip .rt-row.dim { opacity: .45; }
.xp-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.xp-tabs button { min-height: 46px; font-size: .875rem; font-weight: 600; color: var(--on-dark-3, rgba(255, 255, 255, .62)); border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.xp-tabs button:hover { color: #fff; }
.xp-tabs button[aria-selected="true"] { color: #fff; border-color: var(--copper-lite); }
.xp-body { flex: 1; overflow-y: auto; padding: 6px 22px 22px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
.xp-h { font: 600 .8125rem/1.4 var(--f-body); color: var(--on-dark-3, rgba(255, 255, 255, .62)); margin: 20px 0 10px; }

/* presets: a list, active row marked on the inline-start edge */
.xp-presets { display: grid; gap: 2px; }
.xp-presets button { min-height: 40px; padding: 8px 12px; border-radius: var(--r-xs, 2px); font-size: .875rem; font-weight: 500; color: rgba(255, 255, 255, .82); text-align: start; border-inline-start: 2px solid transparent; transition: background-color .15s, color .15s; }
.xp-presets button:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.xp-presets button[aria-pressed="true"] { color: #fff; background: rgba(255, 255, 255, .06); border-inline-start-color: var(--copper-lite); }

/* segmented controls: inset bevelled track, raised stone thumb */
.xp-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; border-radius: var(--r-lg, 6px); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .10); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); }
.xp-seg--3 { grid-template-columns: repeat(3, 1fr); }
.xp-seg button { min-height: 40px; padding: 6px 8px; border-radius: var(--r, 4px); font-size: .875rem; font-weight: 600; color: rgba(255, 255, 255, .78); text-align: center; transition: background-color .15s, color .15s; }
.xp-seg button:hover { color: #fff; }
.xp-seg button[aria-pressed="true"] { background: var(--stone); color: #11151c; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 1px 2px rgba(0, 0, 0, .35); }
.xp-seg button:active, .xp-presets button:active, .xp-actions button:active, .xp-tourbtn:active, .xp-cap-nav button:active { transform: translateY(1px); transition-duration: 80ms; }

.xp-tourbtn { width: 100%; min-height: 44px; padding: 0 16px; border-radius: var(--r-xs, 2px); font-weight: 600; font-size: .9375rem; color: #fff; box-shadow: inset 0 0 0 1px var(--copper-lite), inset 0 1px 0 rgba(255, 255, 255, .06); transition: background-color .15s; }
.xp-tourbtn:hover, .xp-tourbtn[aria-pressed="true"] { background: rgba(201, 146, 86, .14); }
.xp-note { font-size: .8125rem; color: var(--on-dark-3, rgba(255, 255, 255, .62)); margin-top: 10px; line-height: 1.5; }

/* equipment key: '01 Chillers' */
.xp-eq { display: grid; gap: 2px; list-style: none; padding: 0; margin: 0; }
.xp-eq button { width: 100%; min-height: 44px; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 12px; padding: 6px 10px; border-radius: var(--r-xs, 2px); text-align: start; font-size: .875rem; color: rgba(255, 255, 255, .86); transition: background-color .15s; }
.xp-eq button:hover, .xp-eq button[aria-current="true"] { background: rgba(255, 255, 255, .06); }
.xp-eq i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--c); background: #11151c; font: 500 11px/1 var(--f-mono); font-style: normal; color: #fff; }
.xp-eq i:empty { width: 10px; height: 10px; border: 0; background: var(--c); justify-self: center; }
.xp-eq small { font-size: .8125rem; color: var(--on-dark-3, rgba(255, 255, 255, .62)); }

/* switches */
.sw { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); cursor: pointer; position: relative; min-height: 44px; }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw i { width: 38px; height: 22px; border-radius: 11px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), inset 0 1px 2px rgba(0, 0, 0, .35); position: relative; transition: background-color .15s; }
.sw i::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .35); transition: transform .15s var(--ease); }
.sw input:checked + i { background: var(--c, var(--stone)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.sw input:checked + i::after { transform: translateX(16px); background: #11151c; }
html[dir="rtl"] .sw input:checked + i::after { transform: translateX(-16px); }
.sw input:focus-visible + i { outline: 2px solid var(--copper-lite); outline-offset: 3px; }
.sw b { display: block; font-size: .875rem; font-weight: 600; }
.sw small { display: block; font-size: .8125rem; color: var(--on-dark-3, rgba(255, 255, 255, .62)); }
.sw--plain { border-bottom: 0; }

.xp-range, .xp-select { display: grid; gap: 8px; margin: 18px 0 4px; }
.xp-range > span, .xp-select > span { display: flex; justify-content: space-between; font-size: .875rem; font-weight: 500; }
.xp-range output { font: 500 .8125rem/1.4 var(--f-mono); color: var(--copper-lite); }
html[lang="ar"] .xp-range output { font-family: var(--f-ar); }
.xp-range input { width: 100%; height: 32px; accent-color: var(--copper-lite); }
.xp-select select { font: inherit; font-size: 16px; min-height: 44px; padding: 0 12px; border-radius: var(--r, 4px); background: rgba(255, 255, 255, .05); color: #fff; border: 1px solid rgba(255, 255, 255, .5); }
.xp-select option { color: var(--ink); background: #fff; }

/* action rail: light glass */
.xp-actions { position: absolute; z-index: 6; top: calc(var(--header-h) + 16px); inset-inline-end: 16px; display: grid; gap: 2px; padding: 4px; border-radius: var(--r-lg, 6px); }
:where(.xp-actions) { background: var(--midnight-2); border: 1px solid var(--midnight-3); }
.xp-actions button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r, 4px); color: rgba(255, 255, 255, .86); transition: background-color .15s; }
.xp-actions button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.xp-actions button[hidden] { display: none; }
.xp-actions svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
html[dir="rtl"] #rotL svg, html[dir="rtl"] #rotR svg { transform: scaleX(-1); }

/* walkthrough stepper: glass */
.xp-caption { position: absolute; z-index: 7; bottom: 24px; left: calc(50% + 190px); transform: translateX(-50%); width: min(560px, calc(100vw - 460px)); padding: 14px 18px 14px; border-radius: var(--r-lg, 6px); font-size: .9375rem; line-height: 1.5; color: var(--on-dark-2, rgba(255, 255, 255, .76)); }
html[dir="rtl"] .xp-caption { left: calc(50% - 190px); }
:where(.xp-caption) { background: var(--midnight-2); border: 1px solid var(--midnight-3); }
.xp-caption[hidden] { display: none; }
.xp-caption b { display: block; font-family: var(--f-display); font-size: 1.0625rem; font-weight: 600; color: #fff; margin-bottom: 2px; }
html[lang="ar"] .xp-caption b { font-family: var(--f-ar); }
.xp-cap-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.xp-cap-n { font: 500 .8125rem/1 var(--f-mono); color: var(--copper-lite); }
.xp-cap-x { min-height: 44px; padding: 0 4px; font-size: .8125rem; font-weight: 600; color: var(--on-dark-3, rgba(255, 255, 255, .62)); text-decoration: underline; text-underline-offset: 3px; }
.xp-cap-x:hover { color: #fff; }
.xp-cap-nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.xp-cap-nav button { min-height: 44px; min-width: 96px; padding: 0 16px; border-radius: var(--r-xs, 2px); font-weight: 600; font-size: .875rem; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.xp-cap-nav button.is-primary { box-shadow: inset 0 0 0 1px var(--copper-lite), inset 0 1px 0 rgba(255, 255, 255, .06); }
.xp-cap-nav button:disabled { opacity: .45; cursor: default; }

/* 'Before upgrade' badge: light glass */
.xp-badge { position: absolute; z-index: 5; top: calc(var(--header-h) + 18px); left: calc(50% + 190px); transform: translateX(-50%); padding: 8px 14px; border-radius: var(--r, 4px); color: var(--copper-lite); border: 1px solid rgba(201, 146, 86, .55); font: 600 .8125rem/1.4 var(--f-body); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; pointer-events: none; white-space: nowrap; }
:where(.xp-badge) { background: #11151c; }
html[dir="rtl"] .xp-badge { left: calc(50% - 190px); }
.xp-badge.on { opacity: 1; visibility: visible; }
.xp-hint { position: absolute; z-index: 4; bottom: 14px; inset-inline-end: 16px; font-size: .8125rem; color: rgba(255, 255, 255, .86); background: rgba(17, 21, 28, .78); padding: 4px 10px; border-radius: var(--r-xs, 2px); }
.xp.touring .xp-hint { display: none; }
.xp-lead { font-family: var(--f-display); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); line-height: 1.3; font-weight: 500; letter-spacing: -0.012em; max-width: 34ch; text-wrap: balance; }
html[lang="ar"] .xp-lead { font-family: var(--f-ar); letter-spacing: 0; line-height: 1.7; }
.xp-links { display: flex; flex-wrap: wrap; gap: 16px 28px; }
.xp-links .arrow-link { min-height: 44px; }
.xp:fullscreen .xp-panel, .xp:fullscreen .xp-actions { top: 16px; }

/* sheet title follows the mode */
.xp-gt-r { display: none; } .xp.room-mode .xp-gt-b { display: none; } .xp.room-mode .xp-gt-r { display: inline; }
.xp-note--key b { color: #fff; font-weight: 600; }

/* "Talk to us" pinned at the foot of the panel */
.xp-cta { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; font-weight: 600; font-size: .9375rem; color: #fff; border-top: 1px solid rgba(255, 255, 255, .08); box-shadow: inset 0 1px 0 rgba(0, 0, 0, .3); transition: background-color .15s; }
.xp-cta:hover { background: rgba(201, 146, 86, .12); }
.xp-cta svg { width: 16px; height: 16px; color: var(--copper-lite); }
html[dir="rtl"] .xp-cta svg { transform: scaleX(-1); }

/* floors tab: quick views with icons */
.xp-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.xp-quick button { min-height: 52px; display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 8px; padding: 6px 10px; border-radius: var(--r, 4px); font-size: .8125rem; font-weight: 600; line-height: 1.25; color: rgba(255, 255, 255, .86); text-align: start; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: background-color .15s, box-shadow .15s; }
.xp-quick button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.xp-quick button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--copper-lite); background: rgba(201, 146, 86, .12); color: #fff; }
.xp-quick svg { width: 24px; height: 24px; fill: none; stroke: var(--copper-lite); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* level picker: an elevation strip (tower narrower than podium and basements) beside the level card */
.xp-levels { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: start; }
.xp-elev { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; max-height: 360px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; border-radius: var(--r, 4px); background: rgba(0, 0, 0, .18); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); }
.xp-lv { flex: none; width: 60px; min-height: 44px; display: grid; place-items: center; border-radius: 2px; font: 500 .8125rem/1 var(--f-mono); color: rgba(255, 255, 255, .82); background: rgba(127, 208, 234, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); transition: background-color .15s, color .15s; }
html[lang="ar"] .xp-lv { font-family: var(--f-ar); font-size: .75rem; }
.xp-lv.is-roof { width: 52px; background: rgba(255, 255, 255, .05); }
.xp-lv.is-podium, .xp-lv.is-basement { width: 76px; background: rgba(255, 255, 255, .05); }
.xp-lv:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.xp-lv[aria-pressed="true"] { background: var(--stone); color: #11151c; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 1px 2px rgba(0, 0, 0, .35); }
.xp-ground { flex: none; width: 80px; height: 0; margin: 4px 0; border-top: 2px solid rgba(201, 146, 86, .7); }
.xp-lvside { display: grid; gap: 10px; min-width: 0; }
.xp-plan[hidden] { display: none; }
.xp-lvcard { font-size: .8125rem; line-height: 1.5; color: var(--on-dark-2, rgba(255, 255, 255, .76)); }
.xp-lvcard-h { font-family: var(--f-display); font-size: 1.0625rem; font-weight: 600; color: #fff; margin-bottom: 4px; }
html[lang="ar"] .xp-lvcard-h { font-family: var(--f-ar); }
.xp-lvcard-h small { font: 500 .75rem var(--f-body); color: var(--copper-lite); margin-inline-start: 6px; }
.xp-lvcard dl { display: grid; gap: 2px; margin: 0; }
.xp-lvcard dt { font-weight: 600; color: #fff; margin-top: 6px; }
.xp-lvcard dd { margin: 0; }
.xp-lvcard ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; }
.xp-lvcard li i { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--copper-lite); font: 500 10px/1 var(--f-mono); font-style: normal; margin-inline-end: 4px; }
.xp-lvcard-tip { margin-top: 8px; color: var(--copper-lite); font-weight: 600; }
.xp-lvcard-note { margin-top: 8px; font-size: .75rem; color: var(--on-dark-3, rgba(255, 255, 255, .62)); }
.xp-ticks { display: flex; justify-content: space-between; gap: 8px; margin-top: -4px; font-size: .75rem; color: var(--on-dark-3, rgba(255, 255, 255, .62)); }
.xp-ticks i { font-style: normal; }

/* tap a room on the plan */
.xp-roompop { position: absolute; z-index: 7; left: 50%; top: 50%; display: grid; gap: 10px; padding: 12px 14px; border-radius: var(--r-lg, 6px); color: #fff; font-weight: 600; font-size: .9375rem; min-width: 220px; }
:where(.xp-roompop) { background: var(--midnight-2); border: 1px solid var(--midnight-3); }
.xp-roompop[hidden] { display: none; }
.xp-roompop-a { display: flex; gap: 8px; }
.xp-roompop-a button { min-height: 44px; padding: 0 14px; border-radius: var(--r-xs, 2px); font-weight: 600; font-size: .875rem; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.xp-roompop-a .is-primary { flex: 1; box-shadow: inset 0 0 0 1px var(--copper-lite); background: rgba(201, 146, 86, .14); }
#roomPopX { min-width: 44px; padding: 0; font-size: 20px; }

/* action rail: every icon says what it does on hover and keyboard focus */
.xp-actions button { position: relative; }
.xp-actions button::after { content: attr(aria-label); position: absolute; top: 50%; inset-inline-end: calc(100% + 8px); transform: translateY(-50%); padding: 5px 8px; border-radius: 2px; background: rgba(17, 21, 28, .92); color: #fff; font-size: .8125rem; font-weight: 500; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s; }
.xp-actions button:hover::after, .xp-actions button:focus-visible::after { opacity: 1; }
.xp-act-t { display: none; }

/* room mode on phones: a floating Before | Compare | After control over the canvas */
.xp-roomseg { display: none; }
.xp-range[hidden] { display: none; }

/* tablets: a narrower panel */
@media (min-width: 701px) and (max-width: 1000px) {
  .xp-panel { width: 300px; }
  .xp-caption { left: calc(50% + 160px); width: min(480px, calc(100vw - 380px)); }
  html[dir="rtl"] .xp-caption { left: calc(50% - 160px); }
  .xp-badge { left: calc(50% + 160px); } html[dir="rtl"] .xp-badge { left: calc(50% - 160px); }
  .xp-fallback { inset-inline-start: 330px; }
}
/* phones and short landscape: the panel becomes a peeking bottom sheet with a grab bar */
@media (max-width: 700px), (max-height: 540px) and (orientation: landscape) {
  .xp { height: 100vh; height: 100svh; min-height: 480px; } /* the fixed header overlays it: the explorer fills the screen exactly */
  /* the rail shares the panel's layer: on short phones it sat over the open sheet (the stray icon over "Show only") */
  .xp.sheet-open .xp-actions { display: none; }
  .xp-actions button::after { display: none; }
  .xp-act-text { width: auto !important; padding: 0 10px; grid-auto-flow: column; gap: 6px; }
  .xp-act-t { display: inline; font-size: .8125rem; font-weight: 600; }
  .xp-roompop { left: 12px !important; right: 12px; top: auto !important; bottom: 76px; min-width: 0; }
  .xp-elev { max-height: 300px; }
  .xp-panel { top: auto; bottom: 0; inset-inline: 0; width: auto; max-height: 72%; border-radius: 12px 12px 0 0; transform: translateY(calc(100% - 64px)); transition: transform .3s var(--ease); }
  .xp.sheet-open .xp-panel { transform: none; }
  .xp-grab { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; position: relative; min-height: 64px; padding: 14px 16px 8px; text-align: start; color: #fff; touch-action: none; cursor: grab; }
  .xp-grab-bar { position: absolute; top: 6px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: rgba(255, 255, 255, .45); }
  .xp-grab-title { font-weight: 600; font-size: .9375rem; }
  .xp-grab-label { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: var(--r-xs, 2px); font-size: .875rem; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
  .xp-panel-body { overflow-y: auto; }
  .xp-head { display: none; }
  .xp-caption, html[dir="rtl"] .xp-caption { left: 12px; right: 12px; transform: none; width: auto; bottom: 76px; }
  .xp-badge, html[dir="rtl"] .xp-badge { left: 50%; transform: translateX(-50%); top: calc(var(--header-h) + 10px); }
  .xp.sheet-open .xp-caption { display: none; }
  .xp-hint { display: none; }
  .xp-actions { top: calc(var(--header-h) + 10px); inset-inline-end: 10px; }
  .xp-hide-sm { display: none !important; }
  .xp-fallback, html[dir="rtl"] .xp-fallback { inset: 16% 6% 90px; }
  .h3d-tip { bottom: 76px !important; }
  .xp.room-mode .xp-roomseg { display: inline-flex; flex-wrap: nowrap; position: absolute; z-index: 6; top: calc(var(--header-h) + 10px); inset-inline-start: 12px; max-width: calc(100% - 84px); }
  .xp.room-mode.sheet-open .xp-roomseg { display: none; }
  .xp-roomseg > button { min-height: 44px; padding: 0 12px; }
}
@media (max-height: 540px) and (orientation: landscape) {
  .xp { height: 100svh; }
  .xp-panel { max-height: 86%; inset-inline-start: auto; width: min(420px, 60vw); }
}
@media (prefers-reduced-motion: reduce) { .xp-loading span { animation: none; } .xp-panel { transition: none; } }
