@font-face {
  font-family: "Noto Sans SC Local";
  src: url("fonts/NotoSansSC-VF.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: var(--program-dark, #060806);
  --panel: color-mix(in srgb, var(--program-panel, #0a0d0a) 72%, transparent);
  --panel-strong: color-mix(in srgb, var(--program-panel, #080b08) 86%, transparent);
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: var(--program-text, #f2f5ef);
  --muted: color-mix(in srgb, var(--program-text, #f2f5ef) 64%, transparent);
  --dim: color-mix(in srgb, var(--program-text, #f2f5ef) 45%, transparent);
  --accent: var(--program-accent, #9bd67f);
  --accent-strong: var(--program-accent-gold, #c7ff9c);
  --danger: var(--program-danger, #ffb199);
  --radius: 6px;
  --ui-scale: 1;
  /* Derived adaptive tokens: profiles override --ui-scale / --panel-width; text and buttons follow. */
  --font-scale: var(--ui-scale);
  --button-scale: var(--ui-scale);
  --hotspot-scale: var(--ui-scale);
  --panel-width: min(360px, calc(100vw - 48px));
  --readable-size: calc(14px * var(--font-scale));
  --reveal-offset: 0px;
  font-family: "Noto Sans SC Local", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei UI", sans-serif;
  font-size: var(--readable-size);
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--bg);
  color: var(--text);
}

body {
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
input,
textarea {
  font: inherit;
}

button {
  min-height: calc(46px * var(--ui-scale));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 12, 9, 0.72);
  color: var(--text);
  cursor: pointer;
  touch-action: manipulation;
}

button:active {
  transform: translateY(1px);
}

button.active,
button:hover {
  border-color: rgba(155, 214, 127, 0.78);
  color: var(--accent-strong);
}

.app-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background: #000;
}

body.force-landscape-canvas {
  overflow: hidden;
}

body.force-landscape-canvas .app-stage {
  width: 100dvh;
  height: 100vw;
  transform: rotate(90deg) translateY(-100%);
  transform-origin: top left;
}

body.force-landscape-canvas #viewer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}

body.force-landscape-canvas #viewer:active {
  cursor: grabbing;
}

#viewer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  background: #000;
}

.pnlm-container {
  background: #000;
  font-family: inherit;
}

.pnlm-title-box,
.pnlm-author-box,
.pnlm-compass {
  display: none !important;
}

.pnlm-controls-container {
  left: 22px !important;
  bottom: 138px !important;
}

/* .pnlm-dragfix is Pannellum's drag input surface — it must keep pointer events,
   otherwise mouse drag/rotate dies on every scene. Hotspots render above it and
   still receive their own clicks. */
.pnlm-dragfix {
  z-index: 0 !important;
  pointer-events: auto;
}

/* Aerial child views: pure VR look — facility categories / contact shortcuts are irrelevant there. */
body.aerial-child-view .category-dock,
body.aerial-child-view .contact-dock {
  display: none;
}

.topbar {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: 50%;
  right: auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.north-arrow {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  left: max(22px, env(safe-area-inset-left));
  z-index: 22;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04) 45%, rgba(255, 255, 255, 0.11) 46%, rgba(255, 255, 255, 0.02) 62%),
    rgba(230, 242, 248, 0.08);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.92);
  transform-origin: 50% 50%;
  transform: rotate(0deg);
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.north-arrow::before {
  content: "北";
  position: absolute;
  left: 50%;
  top: -15px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 720;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.42);
}

.north-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 9px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 19px solid rgba(255, 255, 255, 0.88);
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.3));
  transform: translateX(-50%);
}

body.show-locked .north-arrow {
  opacity: 0.74;
}

.brand,
.tool-dock,
.category-dock,
.contact-dock,
.angle-strip,
.module-strip,
.panel,
.point-panel,
.sales-panel,
.module-panel,
.scene-card,
.badge,
.device-status,
.loader-card,
.gate-panel,
.share-card {
  backdrop-filter: blur(16px) saturate(138%);
  -webkit-backdrop-filter: blur(16px) saturate(138%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 54px rgba(0, 0, 0, 0.32);
}

.brand {
  min-width: 0;
  max-width: min(210px, calc(100vw - 40px));
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 0.9;
  transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.brand img {
  display: block;
  width: min(188px, 23vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 5px 14px rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

.brand span {
  display: none;
}

.brand strong {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.brand em {
  display: none;
}

.show-lock {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: 20px;
  z-index: 96;
  width: 88px;
  min-height: 34px;
  padding: 0 10px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(5, 8, 6, 0.42);
  color: rgba(242, 245, 239, 0.62);
  font-size: 11px;
  font-weight: 620;
  opacity: 0.72;
  transform: translateY(0);
  transition: opacity 0.42s ease, transform 0.42s ease, background 0.22s ease, border-color 0.22s ease;
}

.show-lock:hover,
.show-lock.active {
  border-color: rgba(155, 214, 127, 0.7);
  background: rgba(6, 10, 7, 0.82);
  color: var(--accent-strong);
}

.tool-dock {
  position: fixed;
  top: 50%;
  right: 20px;
  z-index: 92;
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  width: calc(96px * var(--ui-scale));
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 8px;
  transform: translateY(-50%);
  opacity: 0.16;
  translate: calc(100% - 34px) 0;
  transition: opacity 0.24s ease, translate 0.24s ease;
}

.tool-dock::-webkit-scrollbar {
  width: 4px;
}

.tool-dock::-webkit-scrollbar-thumb {
  background: rgba(199, 255, 156, 0.34);
  border-radius: 999px;
}

.tool-dock:has(.tool-group.open) {
  overflow: visible;
}

.tool-dock::before,
.scene-rail::before {
  content: "";
  position: absolute;
  inset: -22px;
  pointer-events: none;
}

.tool-dock:hover,
.tool-dock:focus-within,
body:not(.show-locked) .tool-dock,
body:not(.show-locked) .tool-dock.edge-reveal {
  opacity: 1;
  translate: 0 0;
}

.tool-dock button {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: calc(38px * var(--ui-scale));
  padding: 0 7px;
  font-size: calc(11px * var(--ui-scale));
  font-weight: 650;
  letter-spacing: 0;
  background: rgba(5, 8, 6, 0.58);
}

.tool-dock button span {
  display: block;
  white-space: nowrap;
}

.tool-group {
  position: relative;
  display: grid;
  gap: 6px;
  pointer-events: auto;
}

.tool-menu {
  display: none;
  gap: 6px;
  pointer-events: auto;
}

.tool-group.open .tool-menu {
  position: absolute;
  top: 50%;
  right: calc(100% + 8px);
  z-index: 28;
  display: inline-flex;
  width: max-content;
  max-width: calc(100vw - 130px);
  padding: 5px;
  border: 1px solid rgba(225, 242, 229, 0.12);
  border-radius: 7px;
  background: rgba(4, 12, 10, 0.72);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px) saturate(116%);
  -webkit-backdrop-filter: blur(14px) saturate(116%);
  transform: translateY(-50%);
}

.tool-group.open .tool-menu button {
  width: auto;
  min-width: 58px;
  padding-inline: 10px;
}

.tool-menu-trigger::after {
  content: "";
  position: absolute;
  right: 7px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  opacity: 0.7;
  transform: translateY(-62%) rotate(45deg);
}

.tool-group.open > .tool-menu-trigger::after {
  transform: translateY(-35%) rotate(225deg);
}

.category-dock,
.contact-dock {
  position: fixed;
  z-index: 91;
  display: grid;
  gap: 7px;
  padding: 7px;
  opacity: 0.14;
  transition: opacity 0.24s ease, translate 0.24s ease;
}

.category-dock {
  left: 20px;
  top: 50%;
  width: calc(64px * var(--ui-scale));
  transform: translateY(-50%);
  translate: calc(-100% + 26px) 0;
}

.contact-dock {
  right: calc(126px * var(--ui-scale));
  top: 50%;
  width: calc(66px * var(--ui-scale));
  transform: translateY(-50%);
  translate: calc(100% - 26px) 0;
}

.category-dock:hover,
.category-dock:focus-within,
.contact-dock:hover,
.contact-dock:focus-within,
body:not(.show-locked) .category-dock,
body:not(.show-locked) .contact-dock {
  opacity: 1;
  translate: 0 0;
}

.category-dock button,
.contact-dock button {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: calc(42px * var(--ui-scale));
  padding: 5px 4px;
  background: rgba(5, 8, 6, 0.6);
}

.category-dock button.active {
  border-color: rgba(199, 255, 156, 0.74);
  background: rgba(25, 72, 54, 0.78);
  color: var(--accent-strong);
}

.category-dock b,
.contact-dock b {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(199, 255, 156, 0.14);
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 820;
  line-height: 1;
}

.category-dock span,
.contact-dock span {
  color: rgba(242, 245, 239, 0.82);
  font-size: calc(9px * var(--ui-scale));
  font-weight: 680;
  line-height: 1.1;
  white-space: nowrap;
}

.angle-strip,
.module-strip {
  position: fixed;
  left: 50%;
  z-index: 89;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: max-content;
  max-width: calc(100vw - 210px);
  padding: 6px;
  opacity: 0.14;
  translate: -50% 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.angle-strip {
  bottom: max(64px, calc(env(safe-area-inset-bottom) + 64px));
}

.module-strip {
  bottom: max(16px, calc(env(safe-area-inset-bottom) + 16px));
}

.angle-strip:hover,
.angle-strip:focus-within,
.module-strip:hover,
.module-strip:focus-within,
body:not(.show-locked) .angle-strip,
body:not(.show-locked) .module-strip {
  opacity: 1;
}

.angle-strip button,
.module-strip button {
  min-height: 30px;
  padding: 0 15px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(5, 8, 6, 0.56);
  color: rgba(242, 245, 239, 0.78);
  font-size: calc(11px * var(--ui-scale));
  font-weight: 720;
  white-space: nowrap;
}

.angle-strip button.active,
.module-strip button.active {
  border-color: rgba(155, 214, 127, 0.72);
  background: rgba(36, 65, 34, 0.68);
  color: var(--accent-strong);
}

.module-panel {
  position: fixed;
  left: 50%;
  bottom: max(112px, calc(env(safe-area-inset-bottom) + 108px));
  z-index: 95;
  width: min(520px, calc(100vw - 190px));
  max-height: min(390px, calc(100dvh - 184px));
  overflow: auto;
  padding: 14px 15px 15px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.module-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.module-panel > button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 31px;
  min-width: 31px;
  height: 31px;
  min-height: 31px;
  padding: 0;
  color: var(--muted);
  font-size: 18px;
}

.module-panel > span {
  display: block;
  max-width: calc(100% - 38px);
  color: var(--accent);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.module-panel h2 {
  margin: 4px 34px 7px 0;
  font-size: 18px;
  line-height: 1.18;
  font-weight: 780;
}

.module-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.module-visual {
  position: relative;
  margin: 10px 0 11px;
  overflow: hidden;
  border: 1px solid rgba(126, 160, 90, 0.3);
  border-radius: 8px;
  /* Dark-green glass plate: contained plan images stay fully readable on a premium backdrop. */
  background: linear-gradient(160deg, rgba(12, 30, 20, 0.9), rgba(6, 14, 9, 0.86));
  backdrop-filter: blur(7px) saturate(1.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 10px 10px 26px;
}

.module-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 44px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(4, 8, 5, 0.78));
}

.module-visual img {
  display: block;
  width: 100%;
  max-height: min(340px, 40vh);
  object-fit: contain;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
}

.module-visual span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  z-index: 1;
  color: rgba(242, 245, 239, 0.9);
  font-size: 10px;
  font-weight: 680;
  line-height: 1.25;
}

.module-panel dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 10px;
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.module-panel dt {
  color: var(--dim);
}

.module-panel dd {
  margin: 0;
  color: var(--text);
}

.module-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.module-links a {
  display: inline-grid;
  place-items: center;
  min-height: 27px;
  padding: 0 10px;
  border: 1px solid rgba(155, 214, 127, 0.28);
  border-radius: 999px;
  background: rgba(155, 214, 127, 0.08);
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.gate,
.loader,
.earth-intro,
.share {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.62);
}

.gate.hidden,
.loader.hidden,
.earth-intro.hidden,
.share.hidden {
  display: none;
}

.earth-intro {
  z-index: 320;
  overflow: hidden;
  background: #0d1b2d url("media/ui/gyyy_intro_landscape.png") center / cover no-repeat;
  opacity: 1;
  cursor: pointer;
  transition: opacity 1.05s cubic-bezier(0.16, 1, 0.3, 1), filter 1.05s cubic-bezier(0.16, 1, 0.3, 1), visibility 1.05s cubic-bezier(0.16, 1, 0.3, 1);
}

.earth-intro.done {
  opacity: 0;
  filter: blur(10px) brightness(1.04);
  visibility: hidden;
  pointer-events: none;
}

.earth-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.04), transparent 42%),
    linear-gradient(180deg, rgba(2, 8, 18, 0.06), rgba(2, 8, 18, 0.16));
  mix-blend-mode: normal;
}

.earth-intro canvas {
  display: none;
}

.earth-copy {
  position: absolute;
  left: max(20px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 2;
  width: min(220px, calc(100vw - 42px));
  margin: 0;
  padding: 7px 9px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(4, 15, 18, 0.1);
  backdrop-filter: blur(6px) saturate(118%);
  -webkit-backdrop-filter: blur(6px) saturate(118%);
  box-shadow: 0 12px 26px rgba(0, 76, 110, 0.08);
  opacity: 0.62;
  transform: translateY(0);
  animation: earthCopyIn 0.8s ease both;
}

.earth-copy span,
.earth-copy strong,
.earth-copy em,
.earth-copy p {
  display: block;
}

.earth-copy span {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(8px, 0.72vw, 10px);
  font-weight: 760;
  letter-spacing: 0.08em;
}

.earth-copy strong {
  margin-top: 5px;
  font-size: clamp(10px, 0.85vw, 13px);
  line-height: 1.1;
  font-weight: 820;
}

.earth-copy em {
  margin-top: 2px;
  color: var(--accent-strong);
  font-size: clamp(14px, 1.25vw, 20px);
  line-height: 1;
  font-style: normal;
  font-weight: 860;
}

.earth-copy p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(8px, 0.72vw, 10px);
  line-height: 1.55;
}

.earth-progress {
  height: 3px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.earth-progress i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 20px rgba(199, 255, 156, 0.42);
  transition: width 0.16s linear;
}

.earth-skip {
  position: absolute;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 3;
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(5, 10, 8, 0.34);
  color: rgba(242, 245, 239, 0.76);
  font-size: 11px;
}

@media (orientation: portrait) {
  .earth-intro {
    background-image: url("media/ui/gyyy_intro_portrait.png");
  }
}

.earth-intro:not(.hidden) ~ .topbar,
.earth-intro:not(.hidden) ~ .show-lock,
.earth-intro:not(.hidden) ~ .tool-dock,
.earth-intro:not(.hidden) ~ .category-dock,
.earth-intro:not(.hidden) ~ .contact-dock,
.earth-intro:not(.hidden) ~ .angle-strip,
.earth-intro:not(.hidden) ~ .module-strip,
.earth-intro:not(.hidden) ~ .module-panel,
.earth-intro:not(.hidden) ~ .scene-rail,
.earth-intro:not(.hidden) ~ .badge,
.earth-intro:not(.hidden) ~ .device-status,
.earth-intro:not(.hidden) ~ .north-arrow {
  opacity: 0 !important;
  pointer-events: none !important;
}

@keyframes earthCopyIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.orientation-hint {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 24px;
  border: 0;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.68);
  color: var(--text);
  text-align: center;
  cursor: pointer;
}

.orientation-hint.show {
  display: none;
}

.orientation-hint span {
  display: block;
  width: 68px;
  height: 42px;
  margin: 0 auto 16px;
  border: 2px solid rgba(242, 245, 239, 0.76);
  border-radius: 8px;
  box-shadow: inset 0 0 0 6px rgba(155, 214, 127, 0.1), 0 18px 60px rgba(0, 0, 0, 0.36);
}

.orientation-hint strong,
.orientation-hint em,
.orientation-hint b {
  display: block;
  max-width: 340px;
}

.orientation-hint strong {
  font-size: 22px;
  line-height: 1.2;
}

.orientation-hint em {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
}

.orientation-hint b {
  margin-top: 16px;
  color: var(--accent-strong);
  font-size: 13px;
}

.gate-panel {
  width: min(520px, calc(100vw - 40px));
  padding: 31px;
  background: var(--panel-strong);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.12em;
}

.gate h1 {
  margin: 0;
  font-size: clamp(38px, 4.5vw, 62px);
  line-height: 1;
  font-weight: 790;
  letter-spacing: 0;
}

.gate-copy {
  margin: 13px 0 22px;
  color: var(--muted);
  font-size: 16px;
}

.gate input,
.share input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 0 15px;
  outline: none;
}

.gate input:focus,
.share input:focus {
  border-color: var(--accent);
}

.gate button,
.share-card button:last-of-type {
  width: 100%;
  margin-top: 12px;
  background: var(--accent);
  color: #071005;
  border-color: transparent;
  font-size: 17px;
  font-weight: 850;
}

.hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.error {
  min-height: 22px;
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 12px;
}

.loader {
  z-index: 45;
  background: rgba(0, 0, 0, 0.24);
}

.loader-card {
  width: min(500px, calc(100vw - 40px));
  padding: 21px;
  background: var(--panel-strong);
}

.loader-card strong,
.loader-card span {
  display: block;
}

.loader-card strong {
  font-size: 19px;
  font-weight: 760;
}

.loader-card span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.bar {
  height: 6px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.bar i {
  display: block;
  width: 26%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.35s ease;
}

.process-log {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.process-log li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  color: rgba(241, 245, 237, 0.58);
  font-size: 11px;
  line-height: 1.4;
}

.process-log li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
}

.process-log li.done {
  color: rgba(241, 245, 237, 0.78);
}

.process-log li.done::before {
  background: var(--accent);
}

.process-log li.active {
  color: var(--text);
}

.process-log li.active::before {
  background: var(--accent-strong);
  box-shadow: 0 0 0 5px rgba(155, 214, 127, 0.16);
}

.process-log strong {
  display: block;
  font-size: 11px;
  font-weight: 760;
}

.process-log em {
  display: block;
  margin-top: 2px;
  color: inherit;
  font-style: normal;
  opacity: 0.74;
}

.panel {
  position: fixed;
  top: 106px;
  right: calc(116px * var(--ui-scale) + 34px);
  z-index: 90;
  width: min(405px, calc(100vw - 48px));
  max-height: calc(100dvh - 250px);
  overflow: auto;
  padding: 19px;
  transform: translateX(calc(100% + 150px));
  transition: transform 0.28s ease;
}

.point-panel {
  position: fixed;
  right: calc(116px * var(--ui-scale) + 34px);
  bottom: max(114px, calc(env(safe-area-inset-bottom) + 108px));
  z-index: 94;
  width: var(--panel-width);
  /* Keep the card fully inside the viewport on small screens. */
  max-height: calc(100dvh - 140px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 15px 15px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.point-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sales-panel {
  position: fixed;
  right: calc(116px * var(--ui-scale) + 34px);
  top: 106px;
  z-index: 94;
  width: min(390px, calc(100vw - 48px));
  max-height: calc(100dvh - 220px);
  overflow: auto;
  padding: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(12px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.sales-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.object-vr,
.video360-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 5, 4, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.object-vr.hidden,
.video360-modal.hidden {
  display: none;
}

.object-vr-shell,
.video360-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1480px, calc(100vw - 36px));
  height: min(860px, calc(100dvh - 36px));
  overflow: hidden;
  border: 1px solid rgba(242, 245, 239, 0.14);
  border-radius: 8px;
  background: #07100c;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.44);
}

.object-vr-head,
.object-vr-controls,
.video360-head,
.video360-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 54px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(242, 245, 239, 0.1);
  background: rgba(7, 13, 9, 0.82);
}

.object-vr-head div,
.video360-head div {
  display: grid;
  gap: 2px;
}

.object-vr-head span,
.video360-head span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.object-vr-head h2,
.video360-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 820;
}

.object-vr-head p,
.video360-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.object-vr-head button,
.video360-head button {
  width: 36px;
  height: 36px;
  min-width: 36px;
  font-size: 22px;
}

.object-vr-stage,
.video360-stage {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(126, 160, 90, 0.16), transparent 34%),
    #040706;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.object-vr-stage:active,
.video360-stage:active {
  cursor: grabbing;
}

.object-vr-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  transition: transform 0.12s ease;
  pointer-events: none;
}

.object-vr-loading,
.video360-loading {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 8px 12px;
  border: 1px solid rgba(242, 245, 239, 0.16);
  border-radius: 6px;
  background: rgba(4, 8, 5, 0.72);
  color: var(--muted);
  font-size: 12px;
}

.object-vr-loading.hidden,
.video360-loading.hidden {
  display: none;
}

.object-vr-hotspots,
.video360-hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.object-vr-spot,
.video360-spot {
  position: absolute;
  width: 18px;
  height: 18px;
  min-width: 18px;
  padding: 0;
  border: 1px solid rgba(213, 238, 156, 0.92);
  border-radius: 999px;
  background: rgba(6, 13, 7, 0.72);
  box-shadow: 0 0 0 4px rgba(155, 214, 127, 0.14), 0 12px 28px rgba(0, 0, 0, 0.42);
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.object-vr-spot::before,
.video360-spot::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background: var(--accent-strong);
}

.object-vr-spot span,
.video360-spot span {
  position: absolute;
  left: 24px;
  top: 50%;
  min-width: max-content;
  max-width: 150px;
  padding: 5px 7px;
  border: 1px solid rgba(242, 245, 239, 0.14);
  border-radius: 4px;
  background: rgba(4, 8, 5, 0.76);
  color: var(--text);
  font-size: 11px;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(-50%) translateX(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  pointer-events: none;
}

.object-vr-spot:hover span,
.object-vr-spot:focus span,
.video360-spot:hover span,
.video360-spot:focus span {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.object-vr-controls,
.video360-controls {
  flex-wrap: nowrap;
  border-top: 1px solid rgba(242, 245, 239, 0.1);
  border-bottom: 0;
}

.object-vr-controls select {
  min-width: 190px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  padding: 0 9px;
}

.object-vr-controls button,
.video360-controls button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.object-vr-controls span,
.video360-controls span {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.video360-modal {
  z-index: 141;
}

body.object-vr-open .show-lock,
body.object-vr-open .tool-dock,
body.object-vr-open .category-dock,
body.object-vr-open .contact-dock,
body.object-vr-open .angle-strip,
body.object-vr-open .module-strip,
body.object-vr-open .scene-rail,
body.video360-open .show-lock,
body.video360-open .tool-dock,
body.video360-open .category-dock,
body.video360-open .contact-dock,
body.video360-open .angle-strip,
body.video360-open .module-strip,
body.video360-open .scene-rail {
  opacity: 0 !important;
  pointer-events: none !important;
}

.video360-stage {
  touch-action: none;
}

.video360-viewer,
.video360-viewer canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.video360-poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(3, 8, 6, 0.18), rgba(3, 8, 6, 0.72)),
    var(--video360-poster, url("media/dji_panos/dji_only_birdseye_ff_0029_4096x2048.jpg")) center / cover no-repeat;
  color: var(--text);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.24s ease;
}

.video360-poster.hidden {
  opacity: 0;
}

.video360-poster strong {
  font-size: 20px;
  font-weight: 820;
}

.video360-poster span {
  max-width: 420px;
  color: rgba(242, 245, 239, 0.76);
  font-size: 12px;
  line-height: 1.6;
}

.video360-animation {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.video360-bird {
  position: absolute;
  width: 22px;
  height: 8px;
  opacity: 0.48;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));
  animation: video360Bird 9s linear infinite;
}

.video360-bird::before,
.video360-bird::after {
  content: "";
  position: absolute;
  top: 3px;
  width: 12px;
  height: 1px;
  background: rgba(242, 245, 239, 0.78);
}

.video360-bird::before {
  right: 50%;
  transform: rotate(16deg);
}

.video360-bird::after {
  left: 50%;
  transform: rotate(-16deg);
}

@keyframes video360Bird {
  from {
    transform: translate3d(-12vw, 0, 0) scale(0.9);
  }
  to {
    transform: translate3d(112vw, -5vh, 0) scale(1.08);
  }
}

.sales-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.sales-head span {
  display: block;
  color: var(--accent);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.1em;
}

.sales-head h2 {
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.15;
}

.sales-head button {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  color: var(--muted);
  font-size: 18px;
}

.sales-panel p {
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.customer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.customer-tabs button {
  min-height: 30px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 680;
}

.sales-flow {
  display: grid;
  gap: 9px;
}

.sales-profile {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.sales-profile strong,
.flow-step strong {
  display: block;
  font-size: 13px;
  line-height: 1.35;
}

.sales-profile span,
.flow-step p,
.flow-step li {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.58;
}

.flow-step {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.flow-step ul {
  margin: 8px 0 0;
  padding-left: 16px;
}

.flow-scenes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.script-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 9px;
}

.mini-scene-button {
  min-height: 28px;
  padding: 0 9px;
  font-size: 11px;
  color: var(--accent-strong);
}

.point-panel > button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  color: var(--muted);
  font-size: 18px;
}

.point-panel > span {
  display: block;
  max-width: calc(100% - 38px);
  color: var(--accent);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.point-panel h2 {
  margin: 4px 34px 7px 0;
  font-size: 18px;
  line-height: 1.18;
  font-weight: 780;
}

.point-panel.facility-detail {
  border-color: color-mix(in srgb, var(--panel-accent, var(--accent)) 34%, var(--line));
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.38), 0 0 0 1px color-mix(in srgb, var(--panel-accent, var(--accent)) 18%, transparent);
}

.point-panel.building-detail {
  width: min(760px, calc(100vw - 164px));
  max-height: min(690px, calc(100dvh - 118px));
}

.point-visual {
  position: relative;
  margin: 8px 0 10px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--visual-accent, var(--accent)) 24%, var(--line));
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
}

.point-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(4, 7, 5, 0.82));
}

.point-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.point-panel.building-detail .point-visual {
  display: grid;
  place-items: center;
  padding: 8px;
  background: rgba(248, 250, 245, 0.94);
}

.point-panel.building-detail .point-visual::after {
  display: none;
}

.point-panel.building-detail .point-visual img {
  width: 100%;
  height: clamp(320px, 52vh, 520px);
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 4px;
  background: rgba(248, 250, 245, 0.96);
}

.point-panel.building-detail .point-visual span {
  position: static;
  justify-self: start;
  width: 100%;
  margin-top: 7px;
  color: rgba(19, 31, 24, 0.78);
  text-shadow: none;
}

.point-visual span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  z-index: 1;
  color: rgba(242, 245, 239, 0.9);
  font-size: 10px;
  font-weight: 680;
  line-height: 1.25;
}

.point-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.point-panel dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 10px;
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.point-panel dt {
  color: var(--dim);
}

.point-panel dd {
  margin: 0;
  color: var(--text);
}

.vr-hotspot {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(155, 214, 127, 0.9);
  border-radius: 50%;
  background: rgba(7, 12, 7, 0.72);
  box-shadow: 0 0 0 4px rgba(155, 214, 127, 0.13), 0 8px 20px rgba(0, 0, 0, 0.38);
  cursor: pointer;
}

.vr-hotspot::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: var(--accent);
}

.vr-hotspot span {
  position: absolute;
  left: 22px;
  top: 50%;
  min-width: max-content;
  max-width: 170px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(7, 10, 7, 0.78);
  color: var(--text);
  font-size: 11px;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(-50%) translateX(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  pointer-events: none;
  white-space: normal;
}

.vr-hotspot:hover span,
.vr-hotspot:focus span {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

div.pnlm-tooltip.building-hotspot span,
div.pnlm-tooltip.facility-hotspot span {
  visibility: visible;
  position: static;
  width: auto;
  margin: 0;
  cursor: pointer;
  box-sizing: border-box;
}

div.pnlm-tooltip.building-hotspot span {
  max-width: none;
}

div.pnlm-tooltip.facility-hotspot span {
  max-width: 250px;
}

div.pnlm-tooltip.building-hotspot:hover span::after,
div.pnlm-tooltip.facility-hotspot:hover span::after {
  display: none;
}

.building-hotspot {
  width: calc(34px * var(--hotspot-scale));
  min-width: calc(34px * var(--hotspot-scale));
  height: calc(34px * var(--hotspot-scale));
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
  outline: none;
  overflow: visible;
}

.building-hotspot:hover,
.building-hotspot:focus {
  filter: none;
  box-shadow: none;
}

.building-hotspot::before {
  display: none;
}

.building-hotspot::after {
  display: none;
}

@keyframes buildingPointerPulse {
  0%,
  100% {
    opacity: 0.4;
    transform: translateX(-50%) translateY(-2px);
  }
  45% {
    opacity: 0.96;
    transform: translateX(-50%) translateY(2px);
  }
}

@keyframes buildingGlowPulse {
  0%,
  100% {
    opacity: 0.28;
    transform: translateX(-50%) scale(0.72);
  }
  45% {
    opacity: 0.72;
    transform: translateX(-50%) scale(1.03);
  }
}

.building-hotspot span {
  position: absolute;
  inset: 1px;
  display: grid;
  place-items: center;
  min-width: 0;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(145deg, #396be8, #1f468d);
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: calc(10.5px * var(--hotspot-scale));
  font-weight: 820;
  line-height: 1;
  opacity: 1;
  transform: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  white-space: nowrap;
}

.building-hotspot:hover span,
.building-hotspot:focus span {
  transform: scale(1.12);
  filter: brightness(1.08);
  box-shadow: 0 13px 26px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

/* Unified blue building labels regardless of sale status; status text lives in the popup. */
.building-hotspot.status-onSale,
.building-hotspot.status-forSale,
.building-hotspot.status-soldOut,
.building-hotspot.status-notYet {
  background: transparent;
}

.facility-hotspot {
  --hotspot-color: #2f8f6b;
  width: auto;
  min-width: 122px;
  height: 36px;
  border: 0;
  border-radius: 5px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--hotspot-color) 86%, #11271f), #0b3329);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px) saturate(1.2);
  isolation: isolate;
}

.project-hotspot {
  --hotspot-color: #28c49b;
  width: clamp(126px, calc(168px * var(--hotspot-scale)), 196px);
  min-width: 0;
  height: clamp(52px, calc(72px * var(--hotspot-scale)), 82px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
  overflow: visible;
  transform-origin: 50% 50%;
  transition: filter 0.18s ease;
}

.project-hotspot:hover,
.project-hotspot:focus {
  filter: brightness(1.04);
}

.project-hotspot::before {
  display: none;
}

.project-hotspot::after {
  display: none;
}

.project-hotspot span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: none;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  opacity: 1;
  transform: none;
  white-space: nowrap;
  pointer-events: none;
}

.project-hotspot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: clamp(44px, calc(64px * var(--hotspot-scale)), 74px);
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.38));
}

.project-hotspot b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 10px;
  font-weight: 780;
  font-style: normal;
}

.project-hotspot em {
  display: grid;
  gap: 1px;
  font-style: normal;
}

.project-hotspot strong {
  font-size: 13px;
  line-height: 34px;
  font-weight: 820;
}

.project-hotspot small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 9px;
  line-height: 1.05;
}

.facility-hotspot::before {
  inset: auto;
  left: 34px;
  bottom: -8px;
  z-index: -1;
  width: 14px;
  height: 14px;
  border-radius: 1px;
  background: inherit;
  transform: rotate(45deg);
}

.facility-hotspot::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: var(--hotspot-color);
  box-shadow: 0 0 18px color-mix(in srgb, var(--hotspot-color) 50%, transparent);
}

.facility-hotspot span {
  display: grid;
  position: static;
  grid-template-columns: 21px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-width: 0;
  max-width: 250px;
  height: 100%;
  padding: 0 9px 0 8px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: #fff;
  opacity: 1;
  transform: none;
  white-space: nowrap;
}

.facility-hotspot span b,
.facility-hotspot span em {
  display: block;
  font-style: normal;
}

.facility-hotspot span b {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--hotspot-color) 32%, rgba(255, 255, 255, 0.14));
  color: #fff;
  font-size: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.facility-hotspot span em {
  display: grid;
  gap: 2px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.96);
  line-height: 1.05;
}

.facility-hotspot span strong,
.facility-hotspot span small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.facility-hotspot span strong {
  color: #fff;
  font-size: 11px;
  font-weight: 830;
}

.facility-hotspot span small {
  color: rgba(232, 249, 238, 0.72);
  font-size: 9px;
  font-weight: 650;
}

.facility-hotspot span b::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 2px;
  background: currentColor;
  clip-path: polygon(12% 40%, 50% 12%, 88% 40%, 78% 40%, 78% 86%, 22% 86%, 22% 40%);
}

.facility-hotspot:hover span,
.facility-hotspot:focus span {
  transform: none;
}

.panel.open {
  transform: translateX(0);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.panel-head span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.11em;
}

.panel-head h2 {
  margin: 4px 0 0;
  font-size: 23px;
  font-weight: 760;
}

.panel-head button,
.share-card > button:first-child {
  min-width: 46px;
  width: 46px;
  height: 46px;
  font-size: 24px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 18px 0;
}

.metrics div {
  min-height: 70px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.metrics b,
.metrics span {
  display: block;
}

.metrics b {
  font-size: 19px;
  font-weight: 760;
}

.metrics span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.panel p,
.panel li {
  color: var(--muted);
  line-height: 1.72;
  font-size: 12px;
}

.panel ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.scene-rail {
  position: fixed;
  left: 220px;
  right: 220px;
  bottom: max(110px, calc(env(safe-area-inset-bottom) + 108px));
  z-index: 88;
  display: flex;
  gap: 7px;
  max-height: 54px;
  overflow-x: auto;
  overflow-y: hidden;
  opacity: 0.08;
  translate: 0 calc(100% - 12px);
  transition: opacity 0.24s ease, translate 0.24s ease;
}

.scene-rail:hover,
.scene-rail:focus-within,
body:not(.show-locked) .scene-rail,
body:not(.show-locked) .scene-rail.edge-reveal {
  opacity: 1;
  translate: 0 0;
}

.scene-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: calc(48px * var(--ui-scale)) 1fr;
  align-items: center;
  flex: 0 0 136px;
  gap: 7px;
  min-height: calc(46px * var(--ui-scale));
  padding: 5px;
  text-align: left;
}

.scene-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(155, 214, 127, 0.32), 0 16px 54px rgba(0, 0, 0, 0.34);
}

.scene-card img {
  width: calc(48px * var(--ui-scale));
  height: calc(32px * var(--ui-scale));
  object-fit: cover;
  border-radius: 4px;
}

.scene-card strong,
.scene-card span {
  display: block;
}

.scene-card strong {
  max-width: 100%;
  overflow: hidden;
  font-size: calc(10px * var(--ui-scale));
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scene-card span {
  margin-top: 2px;
  color: var(--muted);
  font-size: calc(9px * var(--ui-scale));
}

.share {
  z-index: 55;
}

.share-card {
  position: relative;
  width: min(420px, calc(100vw - 40px));
  padding: 24px;
  background: var(--panel-strong);
}

.share-card > button:first-child {
  position: absolute;
  top: 12px;
  right: 12px;
}

.share h2 {
  margin: 0 0 16px;
  font-size: 23px;
  font-weight: 760;
}

.qr {
  display: grid;
  place-items: center;
  min-height: 210px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: #fff;
}

.qr canvas,
.qr img {
  width: 184px !important;
  height: 184px !important;
}

.badge,
.device-status {
  position: fixed;
  z-index: 20;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 11px;
}

.badge {
  right: 20px;
  bottom: 118px;
}

.device-status {
  left: 20px;
  bottom: 118px;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.device-status.show {
  opacity: 0.78;
  transform: translateY(0);
}

.coord-picker,
.coord-picker-marker {
  position: fixed;
  z-index: 46;
}

.coord-picker {
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: min(720px, calc(100vw - 32px));
  padding: 10px 12px;
  color: var(--text);
  border: 1px solid rgba(150, 205, 135, 0.42);
  border-radius: 12px;
  background: rgba(7, 14, 10, 0.82);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transform: translateX(-50%);
}

.coord-picker.hidden,
.coord-picker-marker.hidden {
  display: none;
}

.coord-picker span {
  display: block;
  margin-bottom: 2px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.coord-picker strong {
  display: block;
  overflow: hidden;
  color: rgba(246, 249, 241, 0.92);
  font-size: calc(12px * var(--ui-scale));
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coord-picker-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
}

.coord-picker-actions button {
  border: 1px solid rgba(151, 211, 122, 0.34);
  border-radius: 8px;
  background: rgba(16, 28, 22, 0.94);
  color: var(--text);
  cursor: pointer;
  font-size: calc(11px * var(--ui-scale));
  font-weight: 800;
  min-height: 32px;
  padding: 0 10px;
  white-space: nowrap;
}

.coord-picker-actions button:hover {
  border-color: rgba(191, 231, 111, 0.86);
  color: #dfffa4;
}

.coord-picker.locked {
  border-color: rgba(213, 187, 115, 0.56);
}

.coord-picker.locked #coordPickerLock {
  border-color: rgba(213, 187, 115, 0.86);
  color: #f5d888;
}

.coord-picker-marker {
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
}

.coord-picker-marker::before,
.coord-picker-marker::after,
.coord-picker-marker i {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.coord-picker-marker::before {
  border: 2px solid rgba(216, 255, 151, 0.98);
  box-shadow: 0 0 0 6px rgba(8, 15, 12, 0.32), 0 0 26px rgba(180, 255, 122, 0.5);
}

.coord-picker-marker::after {
  inset: 18px;
  background: #d8ff97;
  box-shadow: 0 0 0 2px rgba(6, 16, 10, 0.72);
}

.coord-picker-marker i {
  inset: -8px;
  border: 1px dashed rgba(216, 255, 151, 0.46);
  animation: coordPulse 1.4s ease-in-out infinite;
}

@keyframes coordPulse {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.08);
  }
}

body.show-locked .tool-dock,
body.show-locked .category-dock,
body.show-locked .contact-dock,
body.show-locked .angle-strip,
body.show-locked .module-strip,
body.show-locked .scene-rail {
  pointer-events: none;
  opacity: 0;
}

body.show-locked .point-panel:not(.open),
body.show-locked .module-panel:not(.open),
body.show-locked .panel,
body.show-locked .sales-panel {
  opacity: 0;
  pointer-events: none;
}

body.show-locked .point-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

body.show-locked .module-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

body.show-locked .brand {
  opacity: 0;
  transform: translateY(-10px);
}

body.show-locked .topbar {
  opacity: 0;
  transform: translateX(-50%) translateY(-12px);
}

body.show-locked .badge {
  opacity: 0.28;
}

body.show-locked .show-lock {
  pointer-events: auto;
  opacity: 0.82;
  transform: translateY(0);
  border-color: rgba(155, 214, 127, 0.28);
  background: rgba(5, 8, 6, 0.54);
  color: rgba(242, 245, 239, 0.78);
}

body.show-locked .show-lock.lock-peek,
body.show-locked .show-lock:focus-visible {
  opacity: 0.58;
  transform: translateY(0);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(5, 8, 6, 0.42);
  color: rgba(242, 245, 239, 0.62);
}

body.show-locked .show-lock.lock-peek:hover {
  opacity: 0.88;
  border-color: rgba(155, 214, 127, 0.7);
  background: rgba(6, 10, 7, 0.82);
  color: var(--accent-strong);
}

html[data-profile="tv85"] {
  --ui-scale: 1.04;
  --panel-width: min(430px, calc(100vw - 64px));
}

html[data-profile="desktop"] {
  --ui-scale: 1;
}

html[data-profile="tablet"] {
  --ui-scale: 0.96;
}

html[data-profile="mobile"] {
  --ui-scale: 0.92;
  --panel-width: min(320px, calc(100vw - 32px));
}

html[data-profile="mobile"][data-orientation="landscape"],
html[data-profile="tablet"][data-orientation="landscape"] {
  --ui-scale: 0.78;
}

@media (max-width: 900px) {
  .earth-copy {
    width: min(260px, calc(100vw - 28px));
    margin: 0;
    left: max(12px, env(safe-area-inset-left));
    bottom: max(12px, env(safe-area-inset-bottom));
  }
}

body.force-landscape-canvas .earth-copy {
  left: max(8px, env(safe-area-inset-left));
  bottom: max(8px, env(safe-area-inset-bottom));
  width: min(250px, calc(100dvh - 26px));
  margin: 0;
  padding: 8px 10px 10px;
}

body.force-landscape-canvas .earth-copy em {
  font-size: clamp(17px, 4.2vw, 28px);
}

body.force-landscape-canvas .earth-skip {
  min-height: 26px;
  font-size: 10px;
}

@media (max-width: 1200px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .tool-dock {
    top: auto;
    left: 12px;
    right: 12px;
    bottom: calc(18px + 205px);
    grid-template-columns: repeat(6, 1fr);
    width: auto;
    transform: none;
    translate: 0 0;
    opacity: 0.9;
  }

  .tool-dock button {
    width: auto;
    min-width: 0;
  }

  .scene-rail {
    left: 12px;
    right: 12px;
    bottom: 118px;
    display: flex;
  }

  .panel {
    top: 220px;
    right: 20px;
  }

  .point-panel {
    right: 20px;
    bottom: 124px;
  }

  .sales-panel {
    top: 184px;
    right: 20px;
  }

  .category-dock {
    left: 12px;
  }

  .contact-dock {
    right: 94px;
  }

  .angle-strip,
  .module-strip {
    max-width: calc(100vw - 36px);
  }

  .module-panel {
    width: min(460px, calc(100vw - 40px));
  }
}

@media (max-width: 720px) {
  .topbar,
  .scene-rail {
    left: 10px;
    right: 10px;
  }

  .brand,
  .tool-dock {
    width: 100%;
  }

  .tool-dock {
    bottom: 42vh;
    grid-template-columns: repeat(3, 1fr);
    max-height: 28vh;
    overflow: auto;
    translate: 0 0;
    opacity: 0.9;
  }

  .scene-rail {
    max-height: 44px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .scene-card {
    flex-basis: 112px;
    min-height: 40px;
  }

  .category-dock,
  .contact-dock {
    display: none;
  }

  .angle-strip,
  .module-strip {
    gap: 4px;
    padding: 4px;
  }

  .angle-strip button,
  .module-strip button {
    min-height: 27px;
    padding: 0 9px;
    font-size: 10px;
  }

  .module-panel {
    left: 10px;
    right: 10px;
    bottom: 100px;
    width: auto;
    transform: translateY(12px);
  }

  .module-panel.open {
    transform: translateY(0);
  }

  .panel {
    top: 240px;
    right: 10px;
    width: calc(100vw - 20px);
  }

  .point-panel {
    right: 10px;
    bottom: 118px;
    width: calc(100vw - 20px);
  }

  .sales-panel {
    top: 170px;
    right: 10px;
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 250px);
  }

  .badge,
  .device-status {
    display: none;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .topbar {
    top: max(8px, env(safe-area-inset-top));
    left: max(8px, env(safe-area-inset-left));
    right: 92px;
    align-items: flex-start;
    flex-direction: row;
  }

  .brand {
    width: auto;
    min-width: 0;
    max-width: min(260px, calc(100vw - 118px));
    padding: 6px 8px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand em {
    display: none;
  }

  .north-arrow {
    top: max(8px, env(safe-area-inset-top));
    border-left-width: 6px;
    border-right-width: 6px;
    border-bottom-width: 22px;
  }

  .show-lock {
    top: max(8px, env(safe-area-inset-top));
    right: max(8px, env(safe-area-inset-right));
    width: 82px;
    min-height: 30px;
    font-size: 10px;
  }

  .tool-dock {
    top: 50%;
    left: auto;
    right: max(8px, env(safe-area-inset-right));
    bottom: auto;
    grid-template-columns: 1fr;
    gap: 5px;
    width: 76px;
    max-height: calc(100dvh - 86px);
    padding: 6px;
    overflow: auto;
    transform: translateY(-50%);
    translate: calc(100% - 24px) 0;
    opacity: 0.16;
  }

  .tool-dock button {
    min-height: 28px;
    padding: 0 5px;
    font-size: 9px;
  }

  .scene-rail {
    left: max(8px, env(safe-area-inset-left));
    right: calc(max(8px, env(safe-area-inset-right)) + 86px);
    bottom: max(8px, env(safe-area-inset-bottom));
    display: flex;
    grid-template-columns: none;
    gap: 7px;
    max-height: 66px;
    overflow-x: auto;
    overflow-y: hidden;
    translate: 0 calc(100% - 14px);
  }

  .scene-card {
    grid-template-columns: 48px 1fr;
    flex: 0 0 132px;
    min-height: 56px;
    padding: 5px;
    gap: 7px;
  }

  .scene-card img {
    width: 48px;
    height: 34px;
  }

  .scene-card strong {
    font-size: 10px;
  }

  .scene-card span {
    font-size: 9px;
  }

  .panel,
  .point-panel,
  .sales-panel {
    top: 52px;
    right: calc(max(8px, env(safe-area-inset-right)) + 86px);
    bottom: 72px;
    width: min(340px, calc(100vw - 116px));
    max-height: calc(100dvh - 124px);
    overflow: auto;
  }

  .point-panel {
    bottom: 72px;
  }

  .category-dock {
    left: max(8px, env(safe-area-inset-left));
    width: 54px;
    gap: 4px;
    padding: 5px;
  }

  .contact-dock {
    right: calc(max(8px, env(safe-area-inset-right)) + 82px);
    width: 54px;
    gap: 4px;
    padding: 5px;
  }

  .category-dock button,
  .contact-dock button {
    min-height: 29px;
  }

  .category-dock span,
  .contact-dock span {
    font-size: 8px;
  }

  .angle-strip {
    bottom: 44px;
  }

  .module-strip {
    bottom: max(6px, env(safe-area-inset-bottom));
  }

  .angle-strip button,
  .module-strip button {
    min-height: 25px;
    padding: 0 9px;
    font-size: 9px;
  }

  .module-panel {
    bottom: 76px;
    width: min(390px, calc(100vw - 132px));
    max-height: calc(100dvh - 120px);
  }

  .badge,
  .device-status {
    bottom: 78px;
  }
}

/* Forced landscape is a rotated canvas on portrait phones. Keep the UI close to the 85-inch desktop layout. */
body.force-landscape-canvas {
  --ui-scale: 0.74;
}

body.force-landscape-canvas .topbar {
  top: max(8px, env(safe-area-inset-top));
  left: max(8px, env(safe-area-inset-left));
  right: calc(max(8px, env(safe-area-inset-right)) + 92px);
  align-items: flex-start;
  flex-direction: row;
}

body.force-landscape-canvas .brand {
  width: auto;
  max-width: min(300px, calc(100vw - 122px));
  padding: 6px 8px;
}

body.force-landscape-canvas .brand strong {
  font-size: 13px;
}

body.force-landscape-canvas .brand em {
  display: none;
}

body.force-landscape-canvas .show-lock {
  top: max(8px, env(safe-area-inset-top));
  right: max(8px, env(safe-area-inset-right));
  width: 74px;
  min-height: 29px;
  font-size: 10px;
}

body.force-landscape-canvas .tool-dock {
  top: 50%;
  left: auto;
  right: max(8px, env(safe-area-inset-right));
  bottom: auto;
  width: 72px;
  max-height: calc(100vw - 82px);
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 5px;
  overflow: auto;
  transform: translateY(-50%);
  translate: calc(100% - 22px) 0;
}

body.force-landscape-canvas:not(.show-locked) .tool-dock,
body.force-landscape-canvas .tool-dock:hover,
body.force-landscape-canvas .tool-dock:focus-within {
  opacity: 1;
  translate: 0 0;
}

body.force-landscape-canvas .tool-dock button {
  min-height: 25px;
  padding: 0 4px;
  font-size: 9px;
}

body.force-landscape-canvas .category-dock {
  display: grid;
  left: max(7px, env(safe-area-inset-left));
  width: 48px;
  gap: 3px;
  padding: 4px;
}

body.force-landscape-canvas .contact-dock {
  display: grid;
  right: calc(max(7px, env(safe-area-inset-right)) + 78px);
  width: 48px;
  gap: 3px;
  padding: 4px;
}

body.force-landscape-canvas .category-dock button,
body.force-landscape-canvas .contact-dock button {
  min-height: 25px;
  padding: 3px 2px;
}

body.force-landscape-canvas .category-dock b,
body.force-landscape-canvas .contact-dock b {
  width: 15px;
  height: 15px;
  font-size: 8px;
}

body.force-landscape-canvas .category-dock span,
body.force-landscape-canvas .contact-dock span {
  font-size: 7px;
}

body.force-landscape-canvas .scene-rail {
  display: none;
  left: max(8px, env(safe-area-inset-left));
  right: calc(max(8px, env(safe-area-inset-right)) + 82px);
  bottom: 78px;
  flex-wrap: nowrap;
  grid-template-columns: none;
  gap: 4px;
  max-height: 38px;
  padding: 4px;
  overflow-x: hidden;
  overflow-y: hidden;
  translate: 0 calc(100% - 10px);
}

body.force-landscape-canvas .angle-strip {
  bottom: 43px;
}

body.force-landscape-canvas .module-strip {
  bottom: max(6px, env(safe-area-inset-bottom));
}

body.force-landscape-canvas .angle-strip,
body.force-landscape-canvas .module-strip {
  gap: 3px;
  padding: 4px;
  max-width: calc(100vw - 126px);
}

body.force-landscape-canvas .angle-strip button,
body.force-landscape-canvas .module-strip button {
  min-height: 24px;
  padding: 0 7px;
  font-size: 8px;
}

body.force-landscape-canvas:not(.show-locked) .scene-rail,
body.force-landscape-canvas .scene-rail:hover,
body.force-landscape-canvas .scene-rail:focus-within {
  opacity: 1;
  translate: 0 0;
}

body.force-landscape-canvas .scene-card {
  flex: 1 1 0;
  min-width: 42px;
  min-height: 29px;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 4px 4px;
  text-align: center;
}

body.force-landscape-canvas .scene-card.active {
  box-shadow: 0 0 0 1px rgba(155, 214, 127, 0.36);
}

body.force-landscape-canvas .scene-card img {
  display: none;
}

body.force-landscape-canvas .scene-card > span {
  min-width: 0;
  margin: 0;
}

body.force-landscape-canvas .scene-card strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: rgba(242, 245, 239, 0.9);
  font-size: 8px;
  font-weight: 760;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.force-landscape-canvas .scene-card > span > span {
  display: none;
}

body.force-landscape-canvas .point-panel {
  top: auto;
  right: calc(max(8px, env(safe-area-inset-right)) + 82px);
  bottom: 49px;
  width: min(300px, calc(100vw - 104px));
  max-height: calc(100vw - 100px);
  overflow: auto;
  padding: 11px 12px 12px;
}

body.force-landscape-canvas .module-panel {
  bottom: 74px;
  width: min(340px, calc(100vw - 132px));
  max-height: calc(100vw - 126px);
  padding: 11px 12px 12px;
}

body.force-landscape-canvas .point-visual img {
  aspect-ratio: 16 / 6.2;
}

body.force-landscape-canvas .point-panel.building-detail {
  right: calc(max(8px, env(safe-area-inset-right)) + 88px);
  bottom: max(54px, env(safe-area-inset-bottom));
  width: min(620px, calc(100vw - 116px));
  max-height: calc(100vw - 72px);
}

body.force-landscape-canvas .point-panel.building-detail .point-visual {
  padding: 6px;
}

body.force-landscape-canvas .point-panel.building-detail .point-visual img {
  height: clamp(240px, 50vw, 420px);
  aspect-ratio: auto;
  object-fit: contain;
}

/* Opening sequence: cinematic image, only a soft white progress line remains. */
.earth-intro .earth-copy {
  display: block !important;
  left: 50% !important;
  right: auto !important;
  bottom: max(26px, env(safe-area-inset-bottom)) !important;
  width: min(360px, 44vw) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 1 !important;
  transform: translateX(-50%) !important;
  pointer-events: none !important;
}

.earth-intro .earth-copy span,
.earth-intro .earth-copy strong,
.earth-intro .earth-copy em,
.earth-intro .earth-copy p,
.earth-intro .earth-skip {
  display: none !important;
}

.earth-intro .earth-progress {
  display: block !important;
  width: 100%;
  height: 2px;
  margin: 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.earth-intro .earth-progress i {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.38));
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.32);
}

.earth-intro {
  cursor: pointer;
}

.earth-intro::after {
  background:
    radial-gradient(circle at 50% 48%, transparent 0 16%, rgba(255, 255, 255, 0.14) 30%, transparent 48%),
    radial-gradient(circle at 24% 52%, rgba(255, 255, 255, 0.46), transparent 35%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.38), transparent 42%, rgba(255, 255, 255, 0.04));
}

@media (max-width: 900px) {
  .earth-intro .earth-copy {
    width: min(280px, 70vw) !important;
    bottom: max(22px, env(safe-area-inset-bottom)) !important;
  }
}

/* Stitch refinement: sales-screen controls should feel like a product UI, not a debug panel. */
.brand,
.tool-dock,
.category-dock,
.contact-dock,
.scene-rail,
.angle-strip,
.module-strip,
.scene-card,
.show-lock,
.vr-hotspot .hotspot-label,
.point-panel,
.module-panel {
  border-color: rgba(225, 242, 229, 0.11);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.22);
}

.tool-dock {
  width: calc(82px * var(--ui-scale));
  gap: 6px;
  padding: 7px;
  background: rgba(4, 12, 10, 0.48);
  backdrop-filter: blur(14px) saturate(116%);
  -webkit-backdrop-filter: blur(14px) saturate(116%);
}

.tool-dock button {
  min-height: calc(34px * var(--ui-scale));
  border-radius: 5px;
  background: rgba(4, 12, 10, 0.68);
  color: rgba(243, 248, 241, 0.88);
  font-size: calc(10px * var(--ui-scale));
}

.tool-dock button:hover,
.tool-dock button.active,
.tool-dock button[aria-pressed="true"] {
  background: rgba(28, 65, 50, 0.82);
  box-shadow: inset 3px 0 0 rgba(166, 217, 126, 0.72);
}

.category-dock,
.contact-dock {
  gap: 6px;
  padding: 6px;
  background: rgba(4, 12, 10, 0.44);
  backdrop-filter: blur(14px) saturate(112%);
  -webkit-backdrop-filter: blur(14px) saturate(112%);
}

.category-dock button,
.contact-dock button {
  min-height: calc(38px * var(--ui-scale));
  border-radius: 5px;
  background: rgba(4, 12, 10, 0.68);
}

.category-dock button.active {
  background: rgba(26, 92, 68, 0.78);
  box-shadow: inset 3px 0 0 rgba(166, 217, 126, 0.78);
}

.scene-rail {
  gap: 6px;
  max-height: 50px;
  padding: 5px 6px;
  border: 1px solid rgba(225, 242, 229, 0.1);
  border-radius: 7px;
  background: rgba(4, 12, 10, 0.46);
  backdrop-filter: blur(16px) saturate(112%);
  -webkit-backdrop-filter: blur(16px) saturate(112%);
}

.scene-card {
  grid-template-columns: calc(44px * var(--ui-scale)) 1fr;
  flex-basis: 126px;
  min-height: calc(40px * var(--ui-scale));
  padding: 4px;
  border-radius: 5px;
  background: rgba(10, 17, 14, 0.72);
}

.scene-card.active {
  border-color: rgba(166, 217, 126, 0.62);
  box-shadow: inset 3px 0 0 rgba(166, 217, 126, 0.76), 0 12px 30px rgba(0, 0, 0, 0.24);
}

.scene-card img {
  width: calc(44px * var(--ui-scale));
  height: calc(28px * var(--ui-scale));
  border-radius: 4px;
}

.scene-card strong {
  font-size: calc(9px * var(--ui-scale));
  letter-spacing: 0;
}

.scene-card span {
  font-size: calc(8px * var(--ui-scale));
}

.vr-hotspot .hotspot-label {
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(32, 142, 98, 0.94), rgba(16, 91, 70, 0.92));
  color: rgba(250, 255, 247, 0.96);
  font-size: 12px;
  letter-spacing: 0;
}

body.force-landscape-canvas .tool-dock {
  width: 76px;
  gap: 5px;
  padding: 6px;
}

body.force-landscape-canvas .tool-dock button {
  min-height: 30px;
  font-size: 9px;
}

body.force-landscape-canvas .scene-rail {
  max-height: 43px;
  padding: 4px 5px;
}

body.force-landscape-canvas .scene-card {
  min-height: 28px;
  padding: 4px;
}

/* Keep operational UI above the panorama drag layer. */
.show-lock,
.module-panel,
.point-panel,
.sales-panel,
.share {
  z-index: 260 !important;
  pointer-events: auto;
}

.tool-dock,
.category-dock,
.contact-dock,
.angle-strip,
.module-strip,
.scene-rail {
  z-index: 260 !important;
  pointer-events: none;
}

.scene-card,
.tool-dock button,
.tool-group,
.tool-menu,
.category-dock button,
.contact-dock button,
.angle-strip button,
.module-strip button,
.angle-submenu {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.angle-submenu {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 2px;
}

.angle-submenu button {
  min-width: 48px;
  padding-inline: 10px;
  border-color: rgba(166, 217, 126, 0.22);
  background: rgba(9, 18, 14, 0.86);
}

.angle-menu-trigger[aria-expanded="true"] {
  border-color: rgba(166, 217, 126, 0.72);
  color: #d7f5a8;
  box-shadow: inset 0 0 0 1px rgba(166, 217, 126, 0.16);
}

/* Final showroom overrides: clean centered logo, no thumbnail guide rail. */
.topbar,
body.force-landscape-canvas .topbar {
  top: max(14px, env(safe-area-inset-top)) !important;
  left: 50% !important;
  right: auto !important;
  align-items: center !important;
  justify-content: center !important;
  transform: translateX(-50%) !important;
}

.brand,
body.force-landscape-canvas .brand {
  width: auto !important;
  min-width: 0 !important;
  max-width: min(220px, 36vw) !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.brand img,
body.force-landscape-canvas .brand img {
  width: clamp(126px, 13vw, 188px) !important;
  height: auto !important;
  filter: drop-shadow(0 5px 14px rgba(0, 0, 0, 0.28));
}

.north-arrow::before {
  content: "\5317";
}

.scene-rail {
  display: none !important;
}

body.show-locked .topbar,
body.force-landscape-canvas.show-locked .topbar {
  opacity: 1 !important;
  transform: translateX(-50%) !important;
}

body.show-locked .brand,
body.force-landscape-canvas.show-locked .brand {
  opacity: 0.9 !important;
  transform: none !important;
}

/* Latest sales-demo fixes: reliable building taps and uncropped module images. */
.module-panel {
  width: min(680px, calc(100vw - 190px)) !important;
  max-height: min(540px, calc(100dvh - 156px)) !important;
}

.module-visual {
  background: rgba(1, 5, 4, 0.5) !important;
}

.module-visual img {
  width: 100% !important;
  height: clamp(210px, 38vh, 380px) !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
}

body.force-landscape-canvas .module-panel {
  width: min(520px, calc(100vw - 126px)) !important;
  max-height: calc(100vw - 100px) !important;
}

body.force-landscape-canvas .module-visual img {
  height: clamp(150px, 34vw, 270px) !important;
}

.module-panel[data-module="unit"] {
  width: min(860px, calc(100vw - 168px)) !important;
  max-height: min(680px, calc(100dvh - 132px)) !important;
}

.module-panel[data-module="unit"] .module-visual {
  margin-bottom: 9px !important;
  padding: 9px 9px 24px !important;
}

.module-panel[data-module="unit"] .module-visual img {
  height: clamp(260px, 46vh, 470px) !important;
  background: rgba(248, 249, 245, 0.96) !important;
}

.unit-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) 31px;
  align-items: center;
  gap: 7px;
  margin: 7px 0 12px;
  padding: 6px;
  border: 1px solid rgba(155, 214, 127, 0.16);
  border-radius: 10px;
  background: rgba(4, 9, 6, 0.52);
}

.unit-carousel[hidden] {
  display: none !important;
}

.unit-carousel-arrow {
  min-width: 31px;
  min-height: 74px;
  padding: 0;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(1, 5, 4, 0.56);
  color: rgba(242, 245, 239, 0.86);
  font-size: 24px;
  font-weight: 760;
}

.unit-carousel-track {
  display: flex;
  gap: 9px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 1px 7px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.unit-card {
  position: relative;
  flex: 0 0 clamp(132px, 18vw, 188px);
  display: grid;
  grid-template-rows: 92px auto;
  gap: 5px;
  min-height: 124px;
  padding: 6px;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: rgba(15, 23, 18, 0.78);
  color: rgba(242, 245, 239, 0.86);
  text-align: left;
  scroll-snap-align: start;
}

.unit-card.active {
  border-color: rgba(155, 214, 127, 0.82);
  background: rgba(31, 55, 29, 0.72);
  color: var(--accent-strong);
}

.unit-card:hover {
  transform: translateY(-1px);
}

.unit-card img {
  width: 100%;
  height: 92px;
  object-fit: contain;
  border-radius: 5px;
  background: rgba(248, 249, 245, 0.96);
}

.unit-card strong {
  min-width: 0;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unit-card-status {
  position: absolute;
  left: 7px;
  top: 7px;
  z-index: 1;
  padding: 2px 5px;
  border-radius: 3px;
  background: #3c68d6;
  color: #fff;
  font-size: 10px;
  font-weight: 820;
  line-height: 1.15;
}

body.force-landscape-canvas .module-panel[data-module="unit"] {
  width: min(740px, calc(100vw - 118px)) !important;
  max-height: calc(100vw - 72px) !important;
}

body.force-landscape-canvas .module-panel[data-module="unit"] .module-visual img {
  height: clamp(178px, 39vw, 330px) !important;
}

body.force-landscape-canvas .unit-carousel {
  grid-template-columns: 27px minmax(0, 1fr) 27px;
  gap: 5px;
  margin-top: 5px;
}

body.force-landscape-canvas .unit-carousel-arrow {
  min-width: 27px;
  min-height: 58px;
  font-size: 20px;
}

body.force-landscape-canvas .unit-card {
  flex-basis: clamp(108px, 18vw, 150px);
  grid-template-rows: 67px auto;
  min-height: 97px;
  padding: 5px;
}

body.force-landscape-canvas .unit-card img {
  height: 67px;
}

body.force-landscape-canvas .unit-card strong,
body.force-landscape-canvas .unit-card-status {
  font-size: 9px;
}

div.pnlm-tooltip.building-hotspot {
  pointer-events: auto !important;
  cursor: pointer !important;
  touch-action: manipulation;
  z-index: 42 !important;
}

div.pnlm-tooltip.building-hotspot::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: calc(-10px * var(--hotspot-scale));
  border-radius: 999px;
  background: transparent;
  pointer-events: auto;
}

div.pnlm-tooltip.building-hotspot span {
  pointer-events: none;
}

div.pnlm-tooltip.building-hotspot:hover span,
div.pnlm-tooltip.building-hotspot:focus span {
  transform: scale(1.08);
}

div.pnlm-tooltip.building-hotspot span {
  position: absolute !important;
  inset: 1px !important;
  display: grid !important;
  place-items: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(145deg, #396be8, #1f468d) !important;
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
  font-size: calc(10.5px * var(--hotspot-scale)) !important;
  font-weight: 820 !important;
  line-height: 1 !important;
  opacity: 1 !important;
  white-space: nowrap !important;
}

div.pnlm-tooltip.project-hotspot .project-logo-label,
div.pnlm-tooltip.project-hotspot .project-logo-label:hover,
div.pnlm-tooltip.project-hotspot .project-logo-label:focus {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: none !important;
  opacity: 1 !important;
  pointer-events: none !important;
}

div.pnlm-tooltip.project-hotspot .project-logo-label img {
  display: block !important;
  width: clamp(116px, calc(162px * var(--hotspot-scale)), 204px) !important;
  max-width: 100% !important;
  height: auto !important;
  opacity: 0.92 !important;
  filter: drop-shadow(0 7px 14px rgba(0, 0, 0, 0.28)) !important;
  transform: none !important;
}

div.pnlm-tooltip.project-hotspot,
div.pnlm-tooltip.project-hotspot:hover,
div.pnlm-tooltip.project-hotspot:focus {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.aerial-child-view .category-dock,
body.aerial-child-view .contact-dock {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-50%) translateX(-8px) !important;
}

/* VR-0 minimal backup edition: single birdseye scene, clean front desk UI. */
.loader,
.earth-intro,
.category-dock,
.contact-dock,
.angle-strip,
.module-strip,
.scene-rail,
.badge {
  display: none !important;
  pointer-events: none !important;
}

.tool-dock {
  width: calc(76px * var(--ui-scale)) !important;
  max-height: none !important;
  overflow: visible !important;
}

.tool-dock > button {
  display: flex !important;
}

.tool-dock [hidden],
.tool-dock .tool-group[hidden] {
  display: none !important;
}

div.pnlm-tooltip.building-hotspot {
  pointer-events: auto !important;
  cursor: default !important;
}

div.pnlm-tooltip.building-hotspot span {
  position: static !important;
  inset: auto !important;
  display: grid !important;
  place-items: center !important;
  width: calc(30px * var(--hotspot-scale)) !important;
  height: calc(30px * var(--hotspot-scale)) !important;
  min-width: calc(30px * var(--hotspot-scale)) !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #3b78dc, #1f57b8) !important;
  color: #fff !important;
  font-size: calc(11px * var(--hotspot-scale)) !important;
  font-weight: 840 !important;
  line-height: 1 !important;
  text-align: center !important;
  letter-spacing: 0 !important;
  box-shadow: 0 4px 13px rgba(11, 31, 72, 0.32) !important;
  transform-origin: 50% 50% !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease !important;
}

div.pnlm-tooltip.building-hotspot span::before,
div.pnlm-tooltip.building-hotspot span::after,
div.pnlm-tooltip.building-hotspot::before,
div.pnlm-tooltip.building-hotspot::after {
  display: none !important;
  content: none !important;
}

div.pnlm-tooltip.building-hotspot:hover span,
div.pnlm-tooltip.building-hotspot:focus span {
  transform: scale(1.16) !important;
  box-shadow: 0 6px 17px rgba(11, 31, 72, 0.44) !important;
}

body.force-landscape-canvas .tool-dock {
  width: 72px !important;
}

body.force-landscape-canvas .tool-dock button {
  min-height: 32px !important;
  font-size: 9px !important;
}

#viewer,
#viewer .pnlm-container {
  touch-action: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.topbar,
.brand,
.north-arrow,
.device-status,
.coord-picker-marker,
.badge {
  pointer-events: none !important;
}

.tool-dock,
.tool-dock *,
.show-lock,
.share,
.share *,
.panel.open,
.panel.open *,
.point-panel.open,
.point-panel.open *,
.module-panel.open,
.module-panel.open *,
.sales-panel.open,
.sales-panel.open *,
.vr-hotspot,
.vr-hotspot * {
  pointer-events: auto !important;
}

.pnlm-container,
.pnlm-render-container,
.pnlm-dragfix {
  will-change: transform;
}
