* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #111;
  color: #f6f7f8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a {
  font: inherit;
}

.editor-shell {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 320px;
  grid-template-rows: 90px minmax(0, 1fr);
  background: #202020;
}

.editor-topbar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 170px 300px minmax(0, 1fr) 330px;
  gap: 14px;
  align-items: center;
  background: #252525;
  border-bottom: 1px solid #343434;
  padding: 14px 16px;
}

.project-tab {
  height: 58px;
  border-radius: 10px;
  background: #1b1b1b;
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}

.file-icon {
  width: 17px;
  height: 23px;
  border: 2px solid #cfd0d0;
  border-radius: 2px;
}

.top-tools,
.mode-tools,
.render-tools,
.panel-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-tools button,
.top-tools a,
.mode-tools button,
.render-tools button,
.render-tools a {
  min-height: 42px;
  min-width: 52px;
  border: 0;
  border-radius: 7px;
  background: #313131;
  color: #ededed;
  font-weight: 900;
  text-decoration: none;
  display: grid;
  place-items: center;
  padding: 0 13px;
}

.mode-tools button.active,
.mode-tools button:hover,
.top-tools a:hover,
.render-tools button.active,
.render-tools button:hover,
.render-tools a:hover {
  background: #43bff5;
  color: #071013;
}

.asset-library,
.inspector {
  overflow: auto;
  background: #242424;
  border-right: 1px solid #373737;
  padding: 16px;
}

.inspector {
  border-right: 0;
  border-left: 1px solid #373737;
}

.panel-tabs {
  height: 36px;
  margin-bottom: 14px;
}

.panel-tabs span {
  width: 42px;
  height: 30px;
  border: 3px solid #d6d6d6;
  border-radius: 4px;
  opacity: 0.78;
  transform: skewX(-10deg);
}

.panel-tabs .active {
  border-color: #43bff5;
  box-shadow: inset 0 -4px 0 #43bff5;
}

.search-row,
.select-row {
  min-height: 52px;
  border-radius: 7px;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 900;
}

.search-row b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 3px solid #d8d8d8;
  border-radius: 50%;
  color: #d8d8d8;
  font-size: 24px;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 24px;
}

.asset-card {
  border: 0;
  background: transparent;
  color: #f2f2f2;
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 112px;
  padding: 6px;
  border-radius: 8px;
}

.asset-card:hover,
.asset-card.active {
  background: rgba(67, 191, 245, 0.12);
}

.asset-card span {
  width: 74px;
  height: 54px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 44%, rgba(255, 255, 255, 0.9) 45% 48%, transparent 49%),
    linear-gradient(135deg, var(--asset-card-accent, #f19a13) 0 42%, #fff5d6 43% 64%, #7bdcff 65%);
  box-shadow: inset -8px -7px 0 rgba(0, 0, 0, 0.18), 0 8px 16px rgba(0, 0, 0, 0.25);
  transform: perspective(140px) rotateX(18deg) rotateZ(-5deg);
}

.asset-card strong {
  font-size: 13px;
  line-height: 1.15;
  max-width: 82px;
}

.asset-card small {
  color: #8fffe0;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.asset-card.office span {
  background:
    linear-gradient(90deg, transparent 25%, rgba(255, 255, 255, 0.78) 25% 31%, transparent 31% 48%, rgba(255, 255, 255, 0.72) 48% 54%, transparent 54%),
    linear-gradient(135deg, var(--asset-card-accent, #4585c7) 0 40%, #27323a 40% 70%, #8bdcff 70%);
}

.viewport-wrap {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background:
    linear-gradient(#8ec9ff 0 42%, #edf5f5 42% 60%, #4d8d3d 60% 100%);
}

#real3dCanvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

#real3dCanvas:active {
  cursor: grabbing;
}

.no-webgl-scene {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(126, 191, 241, 0.95) 0 46%, rgba(226, 224, 211, 0.96) 46% 68%, rgba(88, 136, 74, 0.96) 68%),
    #83bee9;
  perspective: 900px;
}

.fallback-house {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 520px;
  height: 430px;
  transform: translate(-50%, -50%) rotateX(54deg) rotateZ(-2deg);
  transform-style: preserve-3d;
  filter: drop-shadow(0 32px 28px rgba(0, 0, 0, 0.36));
  animation: fallbackOrbit 8s ease-in-out infinite;
}

.pause-preview .fallback-house {
  animation-play-state: paused;
}

.fallback-house span {
  position: absolute;
  transform-style: preserve-3d;
}

.fallback-drive {
  left: 20px;
  bottom: -32px;
  width: 162px;
  height: 290px;
  background: linear-gradient(135deg, #4a4a42, #202426);
  transform: translateZ(4px) rotateZ(14deg);
  opacity: 0;
}

.fallback-wall {
  background: linear-gradient(135deg, #f7f2e6, #cfc9b5);
  border: 3px solid rgba(45, 45, 45, 0.34);
  box-shadow: inset -18px -18px 0 rgba(75, 72, 62, 0.08);
}

.fallback-wall.one {
  left: 132px;
  bottom: 96px;
  width: 210px;
  height: 230px;
}

.fallback-wall.two {
  left: 284px;
  bottom: 92px;
  width: 136px;
  height: 190px;
}

.fallback-roof {
  left: 170px;
  top: 42px;
  width: 260px;
  height: 58px;
  background: repeating-linear-gradient(90deg, #ff9b13 0 16px, #a45c10 16px 21px);
  border: 4px solid #8f4e0c;
  transform: translateZ(70px);
  box-shadow: 0 28px 0 rgba(0, 0, 0, 0.12);
}

.fallback-glass {
  width: 62px;
  height: 126px;
  background: linear-gradient(135deg, #dff8ff, #49aee0 72%, #123140);
  border: 5px solid #3e5b61;
  box-shadow: inset 18px 0 0 rgba(255, 255, 255, 0.34);
}

.fallback-glass.a {
  left: 170px;
  bottom: 136px;
}

.fallback-glass.b {
  left: 316px;
  bottom: 128px;
}

.fallback-patio {
  left: 84px;
  bottom: 34px;
  width: 360px;
  height: 76px;
  background: repeating-linear-gradient(90deg, var(--asset-accent, #f99c12) 0 14px, #9e5b13 14px 22px);
  border: 4px solid #8a4c0d;
  transform: translateZ(42px);
}

.fallback-swing {
  left: 104px;
  bottom: 128px;
  width: 300px;
  height: 172px;
  border: 9px solid rgba(255, 255, 255, 0.78);
  background:
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(133, 93, 41, 0.72) 42px 48px),
    linear-gradient(180deg, transparent 0 66%, rgba(220, 198, 146, 0.76) 66%);
  transform: translateZ(96px);
}

.fallback-pool {
  left: 56px;
  bottom: -20px;
  width: 360px;
  height: 94px;
  border: 8px solid rgba(255, 255, 255, 0.9);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.3) 0 3px, transparent 3px 18px),
    linear-gradient(135deg, #2ac1f3, #087bc3);
  transform: translateZ(18px) rotateX(0deg);
  opacity: 0;
}

.fallback-sofa {
  left: 156px;
  bottom: 118px;
  width: 160px;
  height: 78px;
  border-radius: 24px 24px 10px 10px;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,0.65), transparent 25%),
    linear-gradient(135deg, #fff9e9, #c8b393);
  transform: translateZ(100px);
  opacity: 0;
}

.fallback-table {
  left: 218px;
  bottom: 80px;
  width: 92px;
  height: 48px;
  background: linear-gradient(135deg, #9b6435, #5d3518);
  border: 3px solid rgba(44, 24, 10, 0.42);
  transform: translateZ(88px);
  opacity: 0;
}

.fallback-office {
  left: 132px;
  bottom: 112px;
  width: 230px;
  height: 92px;
  background:
    linear-gradient(90deg, transparent 0 36%, rgba(255,255,255,0.36) 36% 38%, transparent 38%),
    linear-gradient(135deg, #8a633f, #3a2417);
  border: 4px solid rgba(22, 14, 8, 0.5);
  transform: translateZ(96px);
  opacity: 0;
}

.fallback-lobby {
  left: 122px;
  bottom: 92px;
  width: 270px;
  height: 110px;
  background:
    linear-gradient(90deg, transparent 0 30%, rgba(130, 220, 255, 0.36) 30% 34%, transparent 34% 62%, rgba(130, 220, 255, 0.32) 62% 66%, transparent 66%),
    linear-gradient(135deg, #42525a, #171d20);
  border: 4px solid rgba(130, 220, 255, 0.24);
  transform: translateZ(96px);
  opacity: 0;
}

.fallback-utility {
  left: 230px;
  bottom: 116px;
  width: 104px;
  height: 136px;
  background: linear-gradient(135deg, #aeb5af, #5e6967);
  border: 5px solid rgba(30, 36, 37, 0.58);
  transform: translateZ(120px);
  opacity: 0;
}

.fallback-pipe {
  width: 16px;
  height: 210px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d9782a, #f2b169, #9d4d16);
  transform: translateZ(112px);
  opacity: 0;
}

.fallback-pipe.p1 {
  left: 122px;
  bottom: 82px;
}

.fallback-pipe.p2 {
  left: 376px;
  bottom: 86px;
}

.no-webgl-scene[data-view="exterior"] .fallback-drive,
.no-webgl-scene[data-view="pool"] .fallback-pool,
.no-webgl-scene[data-view="interiors"] .fallback-sofa,
.no-webgl-scene[data-view="interiors"] .fallback-table,
.no-webgl-scene[data-view="meeting"] .fallback-office,
.no-webgl-scene[data-view="lobby"] .fallback-lobby,
.no-webgl-scene[data-view="utilities"] .fallback-utility,
.no-webgl-scene[data-view="utilities"] .fallback-pipe {
  opacity: 1;
}

.no-webgl-scene[data-view="pool"] .fallback-patio {
  bottom: 88px;
}

.no-webgl-scene[data-view="interiors"],
.no-webgl-scene[data-view="meeting"],
.no-webgl-scene[data-view="lobby"],
.no-webgl-scene[data-view="utilities"] {
  background:
    linear-gradient(180deg, #6c8890 0 28%, #46595c 28% 78%, #746956 78%),
    #46595c;
}

.no-webgl-scene[data-view="interiors"] .fallback-house,
.no-webgl-scene[data-view="meeting"] .fallback-house,
.no-webgl-scene[data-view="lobby"] .fallback-house,
.no-webgl-scene[data-view="utilities"] .fallback-house {
  transform: translate(-50%, -48%) rotateX(48deg) rotateZ(0deg) scale(1.05);
}

.no-webgl-scene[data-asset-kind="office"] .fallback-roof,
.no-webgl-scene[data-asset-kind="office"] .fallback-patio {
  background: repeating-linear-gradient(90deg, var(--asset-accent, #4585c7) 0 18px, #1d3445 18px 25px);
}

.no-webgl-scene strong,
.no-webgl-scene small {
  position: relative;
  z-index: 2;
  max-width: 580px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(16, 16, 16, 0.76);
  backdrop-filter: blur(14px);
}

.no-webgl-scene strong {
  margin-top: 390px;
}

.no-webgl-scene small {
  margin-top: 460px;
  color: #d8e2e4;
}

@keyframes fallbackOrbit {
  0%, 100% {
    transform: translate(-50%, -50%) rotateX(54deg) rotateZ(-2deg);
  }
  50% {
    transform: translate(-50%, -51%) rotateX(58deg) rotateZ(2deg);
  }
}

.fallback-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1080px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.28), transparent 26%),
    linear-gradient(180deg, #90c7f2 0 45%, #eef0e4 45% 67%, #5d934d 67%);
}

.fallback-stage > span,
.fallback-stage > div {
  position: absolute;
  transform-style: preserve-3d;
}

.fallback-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 49.6%, rgba(255, 255, 255, 0.15) 49.8% 50.2%, transparent 50.4%),
    radial-gradient(ellipse at 50% 100%, rgba(4, 12, 14, 0.22), transparent 52%);
}

.stage-sky {
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.8) 0 2%, transparent 5%),
    linear-gradient(180deg, #91cafa 0 42%, #edf1ea 42% 66%, #6aa45c 66%);
}

.human-lens {
  inset: 8% 7% 7%;
  z-index: 7;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0 0 90px rgba(255, 255, 255, 0.12),
    inset 0 -50px 110px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.exterior-stage {
  animation: exteriorSceneDrift 9s linear infinite;
}

.exterior-stage .driveway {
  left: 16%;
  bottom: -11%;
  width: 25%;
  height: 56%;
  background: linear-gradient(145deg, #4f5048, #22282a);
  transform: skewX(-14deg) rotateX(58deg);
  opacity: 0.88;
}

.full-house {
  background: linear-gradient(135deg, #fff9ea, #cfc6ad);
  border: 3px solid rgba(28, 28, 24, 0.34);
  box-shadow: inset -22px -20px 0 rgba(65, 58, 42, 0.1), 0 28px 40px rgba(0, 0, 0, 0.18);
}

.full-house.body {
  left: 34%;
  top: 30%;
  width: 31%;
  height: 32%;
  transform: perspective(680px) rotateY(-11deg) rotateX(1deg);
}

.full-house.side {
  left: 56%;
  top: 36%;
  width: 20%;
  height: 27%;
  transform: perspective(680px) rotateY(-19deg);
}

.full-house.upper {
  left: 39%;
  top: 17%;
  width: 29%;
  height: 23%;
  transform: perspective(680px) rotateY(-9deg);
}

.hero-roof,
.pergola-roof {
  background: repeating-linear-gradient(90deg, var(--asset-accent, #f99c12) 0 15px, #9d5410 15px 21px);
  border: 4px solid #8a4b0f;
  box-shadow: 0 20px 0 rgba(0, 0, 0, 0.16);
}

.hero-roof {
  left: 37%;
  top: 13%;
  width: 35%;
  height: 8%;
  transform: perspective(580px) rotateX(52deg) rotateZ(-1deg);
}

.window,
.room-window {
  background: linear-gradient(145deg, #dff9ff, #4db7e5 72%, #153443);
  border: 4px solid #41575b;
  box-shadow: inset 14px 0 0 rgba(255, 255, 255, 0.32);
}

.window.w1 { left: 39%; top: 39%; width: 7%; height: 17%; }
.window.w2 { left: 51%; top: 38%; width: 7%; height: 18%; }
.window.w3 { left: 64%; top: 43%; width: 7%; height: 16%; }

.front-door {
  left: 47%;
  top: 49%;
  width: 6%;
  height: 22%;
  background: linear-gradient(90deg, #1a2429, #33484f);
  border-left: 4px solid var(--asset-accent, #f99c12);
}

.balcony,
.porch {
  background: repeating-linear-gradient(90deg, var(--asset-accent, #f99c12) 0 11px, #8d5115 11px 18px);
  border: 3px solid #8d5115;
}

.balcony { left: 35%; top: 57%; width: 42%; height: 8%; }
.porch {
  left: 31%;
  top: 70%;
  width: 43%;
  height: 11%;
  transform: perspective(600px) rotateX(58deg);
}

.car {
  left: 14%;
  top: 66%;
  width: 17%;
  height: 8%;
  border-radius: 14px 14px 4px 4px;
  background: linear-gradient(180deg, #20282d, #070b0c);
  box-shadow: inset 22px 0 0 #273b44, 0 18px 18px rgba(0, 0, 0, 0.3);
}

.back-house {
  left: 31%;
  top: 16%;
  width: 44%;
  height: 30%;
  background:
    linear-gradient(90deg, transparent 0 38%, rgba(70, 130, 145, 0.34) 38% 44%, transparent 44%),
    linear-gradient(135deg, #faf6e7, #cfc7b2);
  border: 3px solid rgba(24, 28, 28, 0.25);
  box-shadow: 0 30px 36px rgba(0, 0, 0, 0.14);
}

.glass-wall {
  top: 31%;
  width: 15%;
  height: 33%;
  background: linear-gradient(135deg, rgba(220, 249, 255, 0.72), rgba(31, 120, 154, 0.45));
  border: 4px solid rgba(42, 64, 69, 0.62);
}

.glass-wall.left { left: 28%; }
.glass-wall.right { right: 20%; }

.patio-stage {
  background: linear-gradient(180deg, #95cdf8 0 36%, #f0eee1 36% 54%, #d7d2bf 54%);
}

.patio-stage .pergola-roof {
  left: 35%;
  top: 20%;
  width: 32%;
  height: 9%;
  transform: perspective(600px) rotateX(56deg);
}

.pergola-beam {
  top: 28%;
  width: 3%;
  height: 42%;
  background: linear-gradient(#8a4f17, #d88324 45%, #6b3d12);
  box-shadow: 0 18px 18px rgba(0, 0, 0, 0.18);
}

.pergola-beam.b1 { left: 37%; }
.pergola-beam.b2 { left: 62%; }

.patio-floor {
  left: 17%;
  top: 61%;
  width: 68%;
  height: 29%;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.16) 0 2px, transparent 2px 32px),
    linear-gradient(145deg, #e9e0cb, #a99675);
  transform: perspective(900px) rotateX(64deg);
}

.patio-sofa,
.sofa-main,
.lobby-sofa {
  border-radius: 24px 24px 8px 8px;
  background:
    radial-gradient(circle at 34% 22%, rgba(255,255,255,0.7), transparent 23%),
    linear-gradient(135deg, #fff9e6, #c2ad8a);
  box-shadow: 0 20px 22px rgba(0, 0, 0, 0.22);
}

.patio-sofa { left: 28%; top: 57%; width: 22%; height: 12%; }

.patio-chair,
.lounge,
.meeting-chair {
  background: linear-gradient(135deg, #ead9b8, #85603b);
  box-shadow: 0 16px 18px rgba(0, 0, 0, 0.22);
}

.patio-chair { top: 58%; width: 10%; height: 10%; }
.patio-chair.c1 { left: 54%; transform: rotate(-10deg); }
.patio-chair.c2 { left: 66%; transform: rotate(12deg); }

.patio-table,
.coffee-table {
  background: linear-gradient(135deg, #a66c35, #513018);
  box-shadow: 0 17px 18px rgba(0, 0, 0, 0.24);
}

.patio-table {
  left: 49%;
  top: 68%;
  width: 17%;
  height: 7%;
  transform: perspective(620px) rotateX(58deg);
}

.string-lights {
  left: 34%;
  top: 30%;
  width: 36%;
  height: 5%;
  background: radial-gradient(circle, #ffe77a 0 18%, transparent 22%) 0 0 / 40px 28px repeat-x;
  filter: drop-shadow(0 0 10px #ffe27a);
  animation: lightsBlink 1.8s ease-in-out infinite;
}

.pool-stage {
  background: linear-gradient(180deg, #91cafa 0 38%, #f3efe2 38% 60%, #9ec07f 60%);
}

.pool-water,
.pool-rim {
  left: 18%;
  top: 58%;
  width: 66%;
  height: 28%;
  transform: perspective(900px) rotateX(62deg);
}

.pool-rim {
  background: #f6f3e7;
  box-shadow: 0 24px 22px rgba(0,0,0,0.18);
}

.pool-water {
  left: 22%;
  top: 61%;
  width: 58%;
  height: 21%;
  z-index: 2;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.42) 0 4px, transparent 4px 24px),
    linear-gradient(135deg, #41d3ff, #087bc4);
  animation: poolMove 1.6s linear infinite;
}

.deck-line {
  left: 11%;
  width: 76%;
  height: 2px;
  background: rgba(114, 91, 60, 0.32);
}

.deck-line.d1 { top: 54%; }
.deck-line.d2 { top: 88%; }

.umbrella {
  left: 67%;
  top: 41%;
  width: 14%;
  height: 11%;
  background: conic-gradient(from 45deg, var(--asset-accent, #f99c12), #fff6de, var(--asset-accent, #f99c12));
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.lounge { top: 49%; width: 15%; height: 7%; }
.lounge.l1 { left: 18%; }
.lounge.l2 { left: 37%; }

.room-depth {
  inset: 9% 8% 7%;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.08), transparent 18% 82%, rgba(0,0,0,0.12)),
    linear-gradient(180deg, #ccd7d0 0 18%, #8ea3a0 18% 70%, #786f5d 70%);
  clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.22), inset 0 -80px 100px rgba(0,0,0,0.22);
}

.room-depth.dark {
  background:
    linear-gradient(180deg, #5c6260 0 18%, #303838 18% 70%, #45413a 70%);
}

.room-depth.office {
  background:
    linear-gradient(180deg, #c5d4da 0 17%, #71858c 17% 70%, #6f6758 70%);
}

.room-window {
  top: 31%;
  width: 18%;
  height: 27%;
}

.room-window.w1 { left: 23%; }
.room-window.w2 { left: 58%; }

.sofa-main { left: 27%; top: 62%; width: 31%; height: 13%; }

.sofa-back {
  left: 28%;
  top: 55%;
  width: 30%;
  height: 9%;
  border-radius: 18px 18px 5px 5px;
  background: linear-gradient(135deg, #fffbed, #c9b08d);
}

.coffee-table {
  left: 49%;
  top: 75%;
  width: 23%;
  height: 8%;
  transform: perspective(640px) rotateX(58deg);
}

.tv-panel {
  left: 65%;
  top: 35%;
  width: 16%;
  height: 30%;
  background: linear-gradient(135deg, #10181c, #020405);
  border: 4px solid rgba(100, 215, 255, 0.18);
}

.rug {
  left: 24%;
  top: 76%;
  width: 48%;
  height: 15%;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.18) 0 2px, transparent 2px 18px),
    linear-gradient(135deg, #a99d85, #675c4e);
  transform: perspective(720px) rotateX(64deg);
}

.lamp {
  left: 73%;
  top: 52%;
  width: 3%;
  height: 24%;
  background: linear-gradient(#3d3023, #18120d);
}

.lamp::before {
  content: "";
  position: absolute;
  left: -230%;
  top: -22%;
  width: 560%;
  height: 27%;
  background: #f7df9d;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.utility-tank {
  left: 42%;
  top: 30%;
  width: 20%;
  height: 43%;
  border-radius: 14px;
  background: linear-gradient(135deg, #c7cbc6, #6f7875);
  border: 5px solid rgba(14, 20, 20, 0.55);
  box-shadow: 0 24px 24px rgba(0, 0, 0, 0.28);
}

.utility-screen {
  left: 47%;
  top: 47%;
  width: 10%;
  height: 9%;
  background: radial-gradient(circle at 50%, #5bf7ff, #081315 58%);
  border: 3px solid #111;
}

.pipe {
  border-radius: 999px;
  background: linear-gradient(90deg, #a64d16, #f0a764, #7a350e);
  box-shadow: 0 0 0 2px rgba(55, 25, 9, 0.26);
}

.pipe.vertical { top: 18%; width: 2.1%; height: 65%; }
.pipe.p1 { left: 18%; }
.pipe.p2 { left: 25%; }
.pipe.p3 { right: 19%; }
.pipe.horizontal { left: 17%; width: 67%; height: 2.2%; }
.pipe.h1 { top: 28%; }
.pipe.h2 { top: 71%; }

.valve {
  width: 6%;
  height: 6%;
  border-radius: 50%;
  border: 4px solid #95f4b5;
  background: rgba(23, 70, 42, 0.7);
}

.valve.v1 { left: 24%; top: 51%; }
.valve.v2 { right: 17%; top: 62%; }

.office-screen {
  left: 33%;
  top: 24%;
  width: 34%;
  height: 18%;
  background: linear-gradient(135deg, #d8f8ff, #438ed5);
  border: 4px solid rgba(17, 34, 44, 0.55);
}

.meeting-table {
  left: 25%;
  top: 60%;
  width: 50%;
  height: 13%;
  background: linear-gradient(135deg, #9d6130, #432513);
  transform: perspective(720px) rotateX(58deg);
}

.meeting-chair {
  width: 10%;
  height: 12%;
  border-radius: 6px;
}

.meeting-chair.c1 { left: 24%; top: 51%; }
.meeting-chair.c2 { left: 43%; top: 49%; }
.meeting-chair.c3 { left: 62%; top: 51%; }
.meeting-chair.c4 { left: 43%; top: 73%; }

.lobby-desk {
  left: 43%;
  top: 55%;
  width: 32%;
  height: 18%;
  background: linear-gradient(135deg, #8a5a32, #2a1a10);
  box-shadow: 0 24px 24px rgba(0, 0, 0, 0.28);
}

.lobby-sign {
  left: 42%;
  top: 33%;
  width: 35%;
  height: 8%;
  background: linear-gradient(90deg, var(--asset-accent, #43bff5), rgba(255, 255, 255, 0.82));
  box-shadow: 0 0 30px rgba(67, 191, 245, 0.34);
}

.lobby-sofa { left: 20%; top: 66%; width: 26%; height: 12%; }

.lobby-glass {
  left: 13%;
  top: 22%;
  width: 22%;
  height: 36%;
  background: linear-gradient(135deg, rgba(225, 251, 255, 0.62), rgba(31, 127, 160, 0.32));
  border: 4px solid rgba(56, 80, 86, 0.6);
}

.plant {
  width: 10%;
  height: 13%;
  background:
    radial-gradient(ellipse at 50% 20%, #4f9d55 0 28%, transparent 30%),
    radial-gradient(ellipse at 35% 55%, #3f7e44 0 31%, transparent 33%),
    radial-gradient(ellipse at 67% 58%, #316e39 0 28%, transparent 30%);
  filter: drop-shadow(0 12px 8px rgba(0,0,0,0.18));
}

.plant.p1 { left: 15%; top: 61%; }
.plant.p2 { right: 13%; top: 58%; }

.shadow-person {
  width: 3.5%;
  height: 20%;
  z-index: 6;
  border-radius: 999px 999px 20px 20px;
  background:
    radial-gradient(circle at 50% 10%, rgba(2, 5, 7, 0.82) 0 15%, transparent 16%),
    linear-gradient(180deg, rgba(4, 7, 9, 0.58), rgba(1, 2, 3, 0.22));
  filter: blur(0.4px) drop-shadow(-18px 0 14px rgba(0, 0, 0, 0.18));
  opacity: 0.72;
}

.shadow-person.walker {
  left: 47%;
  top: 50%;
  animation: humanWalk 5.5s ease-in-out infinite;
}

.shadow-person.swimmer {
  left: 50%;
  top: 61%;
  width: 10%;
  height: 8%;
  transform: rotate(8deg);
  animation: swimFloat 3s ease-in-out infinite;
}

.shadow-person.technician {
  left: 66%;
  top: 53%;
  animation: humanLean 4s ease-in-out infinite;
}

.shadow-person.presenter { left: 33%; top: 44%; }
.shadow-person.guest.g1 { left: 55%; top: 47%; }
.shadow-person.guest.g2 { left: 63%; top: 54%; }

.no-webgl-scene > strong,
.no-webgl-scene > small {
  position: absolute;
  z-index: 10;
  left: 50%;
  max-width: min(680px, 82%);
  margin: 0;
  transform: translateX(-50%);
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(16, 16, 16, 0.74);
  backdrop-filter: blur(14px);
}

.no-webgl-scene > strong {
  bottom: 66px;
}

.no-webgl-scene > small {
  bottom: 18px;
  color: #d8e2e4;
}

.no-webgl-scene > .gpu-diagnostic {
  max-width: min(820px, 88%);
  border: 1px solid rgba(67, 191, 245, 0.35);
  color: #e6fbff;
  line-height: 1.35;
}

.gpu-diagnostic b,
.gpu-diagnostic code {
  color: #8fffe0;
}

.no-webgl-scene .driveway,
.no-webgl-scene .car,
.no-webgl-scene .back-house,
.no-webgl-scene .glass-wall,
.no-webgl-scene .full-house,
.no-webgl-scene .hero-roof,
.no-webgl-scene .window,
.no-webgl-scene .front-door,
.no-webgl-scene .balcony,
.no-webgl-scene .porch,
.no-webgl-scene .pergola-roof,
.no-webgl-scene .pergola-beam,
.no-webgl-scene .pool-rim,
.no-webgl-scene .pool-water,
.no-webgl-scene .deck-line,
.no-webgl-scene .umbrella,
.no-webgl-scene .lounge,
.no-webgl-scene .patio-floor,
.no-webgl-scene .patio-sofa,
.no-webgl-scene .patio-chair,
.no-webgl-scene .patio-table,
.no-webgl-scene .string-lights,
.no-webgl-scene .room-depth,
.no-webgl-scene .room-window,
.no-webgl-scene .sofa-main,
.no-webgl-scene .sofa-back,
.no-webgl-scene .coffee-table,
.no-webgl-scene .rug,
.no-webgl-scene .lamp,
.no-webgl-scene .tv-panel,
.no-webgl-scene .utility-tank,
.no-webgl-scene .utility-screen,
.no-webgl-scene .pipe,
.no-webgl-scene .valve,
.no-webgl-scene .office-screen,
.no-webgl-scene .meeting-table,
.no-webgl-scene .meeting-chair,
.no-webgl-scene .lobby-desk,
.no-webgl-scene .lobby-sign,
.no-webgl-scene .lobby-glass,
.no-webgl-scene .lobby-sofa,
.no-webgl-scene .vault-door,
.no-webgl-scene .vault-wheel,
.no-webgl-scene .server-rack,
.no-webgl-scene .plant,
.no-webgl-scene .shadow-person {
  opacity: 0;
}

.no-webgl-scene[data-view="exterior"] .driveway,
.no-webgl-scene[data-view="exterior"] .car,
.no-webgl-scene[data-view="exterior"] .back-house,
.no-webgl-scene[data-view="exterior"] .glass-wall,
.no-webgl-scene[data-view="exterior"] .full-house,
.no-webgl-scene[data-view="exterior"] .hero-roof,
.no-webgl-scene[data-view="exterior"] .window,
.no-webgl-scene[data-view="exterior"] .front-door,
.no-webgl-scene[data-view="exterior"] .balcony,
.no-webgl-scene[data-view="exterior"] .porch,
.no-webgl-scene[data-view="exterior"] .plant,
.no-webgl-scene[data-view="exterior"] .shadow-person.walker {
  opacity: 1;
}

.no-webgl-scene[data-view="patio"] .back-house,
.no-webgl-scene[data-view="patio"] .full-house,
.no-webgl-scene[data-view="patio"] .hero-roof,
.no-webgl-scene[data-view="patio"] .window,
.no-webgl-scene[data-view="patio"] .front-door,
.no-webgl-scene[data-view="patio"] .pergola-roof,
.no-webgl-scene[data-view="patio"] .pergola-beam,
.no-webgl-scene[data-view="patio"] .patio-floor,
.no-webgl-scene[data-view="patio"] .patio-sofa,
.no-webgl-scene[data-view="patio"] .patio-chair,
.no-webgl-scene[data-view="patio"] .patio-table,
.no-webgl-scene[data-view="patio"] .string-lights,
.no-webgl-scene[data-view="patio"] .plant,
.no-webgl-scene[data-view="patio"] .shadow-person.walker {
  opacity: 1;
}

.no-webgl-scene[data-view="pool"] .back-house,
.no-webgl-scene[data-view="pool"] .full-house,
.no-webgl-scene[data-view="pool"] .hero-roof,
.no-webgl-scene[data-view="pool"] .window,
.no-webgl-scene[data-view="pool"] .pergola-roof,
.no-webgl-scene[data-view="pool"] .pergola-beam,
.no-webgl-scene[data-view="pool"] .patio-floor,
.no-webgl-scene[data-view="pool"] .pool-rim,
.no-webgl-scene[data-view="pool"] .pool-water,
.no-webgl-scene[data-view="pool"] .deck-line,
.no-webgl-scene[data-view="pool"] .umbrella,
.no-webgl-scene[data-view="pool"] .lounge,
.no-webgl-scene[data-view="pool"] .plant,
.no-webgl-scene[data-view="pool"] .shadow-person.swimmer,
.no-webgl-scene[data-view="pool"] .shadow-person.walker {
  opacity: 1;
}

.no-webgl-scene[data-view="interiors"] .room-depth,
.no-webgl-scene[data-view="interiors"] .room-window,
.no-webgl-scene[data-view="interiors"] .sofa-main,
.no-webgl-scene[data-view="interiors"] .sofa-back,
.no-webgl-scene[data-view="interiors"] .coffee-table,
.no-webgl-scene[data-view="interiors"] .rug,
.no-webgl-scene[data-view="interiors"] .lamp,
.no-webgl-scene[data-view="interiors"] .tv-panel,
.no-webgl-scene[data-view="interiors"] .plant,
.no-webgl-scene[data-view="interiors"] .shadow-person.walker {
  opacity: 1;
}

.no-webgl-scene[data-view="utilities"] .room-depth,
.no-webgl-scene[data-view="utilities"] .utility-tank,
.no-webgl-scene[data-view="utilities"] .utility-screen,
.no-webgl-scene[data-view="utilities"] .pipe,
.no-webgl-scene[data-view="utilities"] .valve,
.no-webgl-scene[data-view="utilities"] .shadow-person.technician {
  opacity: 1;
}

.no-webgl-scene[data-view="meeting"] .room-depth,
.no-webgl-scene[data-view="meeting"] .office-screen,
.no-webgl-scene[data-view="meeting"] .meeting-table,
.no-webgl-scene[data-view="meeting"] .meeting-chair,
.no-webgl-scene[data-view="meeting"] .shadow-person.presenter,
.no-webgl-scene[data-view="meeting"] .shadow-person.guest {
  opacity: 1;
}

.no-webgl-scene[data-view="lobby"] .room-depth,
.no-webgl-scene[data-view="lobby"] .lobby-desk,
.no-webgl-scene[data-view="lobby"] .lobby-sign,
.no-webgl-scene[data-view="lobby"] .lobby-glass,
.no-webgl-scene[data-view="lobby"] .lobby-sofa,
.no-webgl-scene[data-view="lobby"] .plant,
.no-webgl-scene[data-view="lobby"] .shadow-person.walker,
.no-webgl-scene[data-view="lobby"] .shadow-person.guest {
  opacity: 1;
}

.vault-door {
  left: 34%;
  top: 26%;
  width: 32%;
  height: 46%;
  background:
    radial-gradient(circle at 50% 50%, rgba(103, 220, 255, 0.25) 0 9%, transparent 10%),
    linear-gradient(135deg, #1b2227, #05090b);
  border: 6px solid rgba(100, 120, 125, 0.7);
  box-shadow: inset 0 0 34px rgba(67, 191, 245, 0.12), 0 26px 30px rgba(0, 0, 0, 0.32);
}

.vault-wheel {
  left: 45%;
  top: 43%;
  width: 11%;
  height: 11%;
  border-radius: 50%;
  border: 5px solid var(--asset-accent, #43bff5);
  background: radial-gradient(circle, #e8fbff 0 12%, #182a30 13% 100%);
  box-shadow: 0 0 24px rgba(67, 191, 245, 0.34);
  animation: slowSpin 7s linear infinite;
}

.server-rack {
  top: 33%;
  width: 16%;
  height: 39%;
  background:
    repeating-linear-gradient(180deg, #11181c 0 12px, #26333a 12px 15px),
    #0b1115;
  border: 4px solid rgba(87, 107, 112, 0.54);
  box-shadow: inset 0 0 20px rgba(67, 191, 245, 0.1);
}

.server-rack.left { left: 13%; }
.server-rack.right { right: 13%; }

.no-webgl-scene[data-view="safe"] .room-depth,
.no-webgl-scene[data-view="safe"] .vault-door,
.no-webgl-scene[data-view="safe"] .vault-wheel,
.no-webgl-scene[data-view="safe"] .server-rack,
.no-webgl-scene[data-view="safe"] .shadow-person.technician {
  opacity: 1;
}

@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes exteriorSceneDrift {
  0% { transform: translateX(0) scale(1); filter: saturate(1.02); }
  50% { transform: translateX(-1.5%) scale(1.025); filter: saturate(1.12); }
  100% { transform: translateX(0) scale(1); filter: saturate(1.02); }
}

@keyframes lightsBlink {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}

@keyframes poolMove {
  from { background-position: 0 0; }
  to { background-position: 54px 0; }
}

@keyframes humanWalk {
  0%, 100% { transform: translate3d(-90px, 26px, 0) scale(0.82); opacity: 0.35; }
  46% { transform: translate3d(36px, -15px, 0) scale(1.12); opacity: 0.76; }
  70% { transform: translate3d(96px, -6px, 0) scale(0.96); opacity: 0.58; }
}

@keyframes swimFloat {
  0%, 100% { transform: translateX(-32px) rotate(8deg); }
  50% { transform: translateX(38px) rotate(-5deg); }
}

@keyframes humanLean {
  0%, 100% { transform: rotate(-2deg) translateX(0); }
  50% { transform: rotate(7deg) translateX(-16px); }
}

.viewport-badge {
  position: absolute;
  left: 18px;
  top: 16px;
  padding: 10px 14px;
  border-radius: 9px;
  background: rgba(29, 29, 29, 0.76);
  color: #fff;
  display: grid;
  gap: 4px;
  backdrop-filter: blur(8px);
}

.viewport-badge strong {
  font-size: 15px;
}

.viewport-badge span {
  color: #d8f7ff;
  font-size: 12px;
  font-weight: 800;
}

.compass {
  position: absolute;
  left: 24px;
  top: 110px;
  width: 138px;
  height: 138px;
  border-radius: 50%;
  border: 9px solid rgba(255, 255, 255, 0.72);
  background: rgba(12, 12, 12, 0.35);
  display: grid;
  place-items: center;
  font-size: 23px;
  font-weight: 900;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.chair-preview {
  height: 178px;
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.chair-cube {
  width: 112px;
  height: 98px;
  background: linear-gradient(135deg, #55c4ff, #1d77c8);
  clip-path: polygon(18% 16%, 76% 6%, 88% 70%, 32% 92%);
  box-shadow: 0 22px 34px rgba(0, 0, 0, 0.35);
}

.chair-preview span {
  position: absolute;
  color: #d7efff;
  font-weight: 900;
}

.chair-preview span:nth-child(2) {
  top: 18px;
  left: 90px;
}

.chair-preview span:nth-child(3) {
  top: 10px;
  right: 78px;
}

.chair-preview span:nth-child(4) {
  right: 34px;
  top: 82px;
}

dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

dl div {
  display: grid;
  grid-template-columns: 1fr 112px;
  align-items: center;
  gap: 12px;
}

dt {
  color: #e3e3e3;
  font-weight: 700;
  text-align: right;
}

dd {
  margin: 0;
  min-height: 38px;
  border-radius: 6px;
  background: #333;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  font-weight: 800;
}

input[type="checkbox"] {
  accent-color: #43bff5;
  width: 22px;
  height: 22px;
}

.wide-action {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: #3b3b3b;
  color: #f4f4f4;
  font-weight: 800;
  margin-bottom: 10px;
}

.active-asset-panel {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(67, 191, 245, 0.34);
  border-radius: 10px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--asset-accent, #43bff5) 24%, transparent), transparent 58%),
    #1d272b;
}

.active-asset-panel span {
  color: #75e8ff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.active-asset-panel strong {
  font-size: 21px;
  line-height: 1.1;
}

.active-asset-panel small {
  color: #cdd7d9;
  font-weight: 700;
}

.active-asset-panel a {
  min-height: 38px;
  border-radius: 7px;
  background: #43bff5;
  color: #071013;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-weight: 900;
}

@media (max-width: 1100px) {
  .editor-shell {
    grid-template-columns: 150px minmax(360px, 1fr) 170px;
  }

  .editor-topbar {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .mode-tools {
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .mode-tools button {
    flex: 0 0 auto;
    min-width: max-content;
  }

  .top-tools,
  .render-tools {
    display: none;
  }

  .asset-grid {
    grid-template-columns: 1fr;
  }

  .asset-card {
    min-height: 76px;
  }

  .asset-card strong {
    font-size: 11px;
  }
}
