/* Showfront viewer — light palette, no build step. */
:root {
  color-scheme: light;
  --bg: #FAF8F5;
  --card: #ffffff;
  --ink: #1c1a17;
  --muted: #6b655c;
  --line: #e5ded2;
  --accent: #C8A55C;
  --accent-ink: #5c4718;
  --good-bg: #d9f2df;
  --good-ink: #14622f;
  --bad-bg: #fbdcdc;
  --bad-ink: #8f1d1d;
}
* { box-sizing: border-box; }
body {
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  margin: 0 auto;
  max-width: 1200px;
  padding: 24px 20px 64px;
}
header.hero { margin-bottom  : 8px; }
header.hero h1 { font-size: 1.6rem; margin: 0 0 4px; letter-spacing: -0.01em; }
header.hero h1 .gold { color: var(--accent); }
.sub { color: var(--muted); margin-bottom: 8px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 14px 0;
}
.card h2 { font-size: 1.05rem; margin: 0 0 8px; }
.card h2 .tag {
  font-size: 0.72rem; font-weight: 600; vertical-align: middle;
  background: var(--bg); border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 1px 9px; margin-left: 8px;
}
.stage {
  width: 100%; aspect-ratio: 16 / 9; border-radius: 8px;
  background: #141318; display: block; cursor: grab; touch-action: none;
  position: relative; overflow: hidden;
}
.stage:active { cursor: grabbing; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
button, .btn {
  font: inherit; font-weight: 600; cursor: pointer;
  background: var(--accent); color: #fff; border: 0; border-radius: 8px;
  padding: 7px 14px;
}
button.ghost {
  background: transparent; color: var(--accent-ink);
  border: 1px solid var(--accent);
}
.hint { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }
video.commercial { width: 100%; border-radius: 8px; background: #000; }
.listing-price { font-size: 1.35rem; font-weight: 700; color: var(--accent-ink); }
.pill {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 0.8rem; background: #eee; font-weight: 600;
}
.pill.done { background: var(--good-bg); color: var(--good-ink); }
.pill.failed { background: var(--bad-bg); color: var(--bad-ink); }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
code, .mono { font-family: ui-monospace, Consolas, monospace; font-size: 0.82rem; }
.models li { margin: 2px 0; }
#drop {
  border: 2px dashed var(--accent); border-radius: 10px; padding: 18px;
  text-align: center; color: var(--muted); background: #fff; cursor: pointer;
}
.err { color: var(--bad-ink); font-weight: 600; }
.empty {
  border: 1px dashed var(--line); border-radius: 8px; padding: 22px;
  text-align: center; color: var(--muted); background: var(--bg);
}
footer { color: var(--muted); font-size: 0.82rem; margin-top: 24px; }

/* ---------- showroom: the 360 hero ---------- */
.showroom { margin: 18px 0 8px; }
.stage-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin: 0 2px 10px;
}
.stage-head h2 { font-size: 1.15rem; margin: 0; letter-spacing: -0.01em; }
.stage-head h2 .tag {
  font-size: 0.72rem; font-weight: 600; vertical-align: middle;
  background: #fff; border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 1px 9px; margin-left: 8px;
}
.counter {
  font-variant-numeric: tabular-nums; font-size: 0.9rem; font-weight: 600;
  color: var(--accent-ink); white-space: nowrap;
}
.stage-wrap {
  position: relative; border-radius: 16px; overflow: hidden;
  background: #141318; border: 1px solid #2a2830;
  box-shadow: 0 24px 60px -24px rgba(20, 19, 24, 0.45);
}
.stage-wrap:fullscreen { border-radius: 0; border: 0; }
.stage-wrap:fullscreen #spin-canvas { aspect-ratio: auto; height: 100vh; }
#spin-canvas {
  width: 100%; aspect-ratio: 16 / 9; display: block;
  cursor: grab; touch-action: none; opacity: 0;
  transition: opacity 0.45s ease;
}
#spin-canvas.ready { opacity: 1; }
#spin-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
}
#spin-canvas[hidden] { display: none; }
#mesh-stage {
  width: 100%; aspect-ratio: 16 / 9; display: block;
  background: #141318; cursor: grab; touch-action: none;
}
#mesh-stage[hidden] { display: none; }
.stage-vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse 105% 90% at 50% 42%,
    rgba(0,0,0,0) 55%, rgba(8,7,12,0.28) 82%, rgba(8,7,12,0.55) 100%);
}
.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .media-grid { grid-template-columns: 1fr; } }
.media-grid h3 { margin: 2px 0 8px; font-size: 15px; }
.media-row { display: flex; gap: 10px; align-items: center; margin: 8px 0; flex-wrap: wrap; }
.throttle { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; }
.throttle input[type="range"] { width: 150px; accent-color: #c8a55c; }
.throttle select { font: inherit; padding: 4px 8px; border-radius: 8px; }
.filebtn { cursor: pointer; }
#ing-strip img { max-height: 64px; }
#walk-portal { position: absolute; inset: 0; z-index: 5; background: #0e0d12; }
#walk-portal[hidden] { display: none; }
#portal-stage { position: absolute; inset: 0; background: radial-gradient(120% 95% at 50% 42%, #262230 0%, #16141c 55%, #0a090d 100%); }
#portal-exit {
  position: absolute; left: 12px; bottom: 12px; z-index: 6;
  background: rgba(20,19,24,0.82); color: #e8e2d6;
  border: 1px solid #c8a55c; border-radius: 8px; padding: 8px 14px;
}
#portal-label {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  color: #b9b2a4; font-size: 13px; z-index: 6; pointer-events: none;
}
.tag.gold { background: rgba(200,165,92,0.16); border-color: #c8a55c; color: #e5c988; }
.tag[hidden] { display: none; }
#mesh-stage:active { cursor: grabbing; }
#spin-canvas:active { cursor: grabbing; }
#spin-canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.stage-loader {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  background: #141318; color: #b9b2a6; font-size: 0.9rem;
}
.stage-wrap:has(#spin-poster:not([hidden])) .stage-loader {
  background: rgba(20, 19, 24, 0.45); /* hero poster shows through */
}
.stage-loader[hidden] { display: none; }
.stage-loader .load-title { font-weight: 600; color: #e8e2d6; letter-spacing: 0.01em; }
.stage-loader .bar {
  width: min(320px, 60%); height: 3px; border-radius: 3px;
  background: #2c2a33; overflow: hidden;
}
.stage-loader .bar i {
  display: block; height: 100%; width: 0%;
  background: var(--accent); border-radius: 3px;
  transition: width 0.2s ease;
}
.stage-toolbar {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  background: rgba(18, 17, 22, 0.78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px; padding: 6px 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.stage-toolbar button {
  font: inherit; font-weight: 600; font-size: 0.85rem; cursor: pointer;
  background: var(--accent); color: #1c1a17; border: 0; border-radius: 999px;
  padding: 6px 14px; line-height: 1.2;
}
.stage-toolbar button.ghost {
  background: transparent; color: #e8e2d6;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 5px 11px;
}
.stage-toolbar button.seg.on {
  background: var(--accent); color: #1c1a17; border-color: transparent;
}
#int-eyes { display: inline-flex; gap: 6px; margin-left: 8px; }
.eye-chip {
  border: 1px solid var(--border); background: #fff; color: #444;
  border-radius: 999px; padding: 2px 12px; font-size: 12px; cursor: pointer;
}
.eye-chip.on { background: var(--accent); border-color: transparent; color: #1c1a17; }
.pano-dots { position: absolute; inset: 0; pointer-events: none; }
.pano-dot {
  position: absolute; transform: translate(-50%, -50%);
  pointer-events: auto; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 6px; padding: 4px;
}
.pano-dot i {
  width: 14px; height: 14px; border-radius: 50%; flex: none;
  background: var(--accent); border: 2px solid #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
.pano-dot span {
  font-size: 11.5px; color: #f5efe2; background: rgba(20, 19, 24, 0.78);
  padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
#int-lightbox {
  position: fixed; inset: 0; z-index: 50; display: flex;
  align-items: center; justify-content: center; flex-direction: column;
  background: rgba(14, 13, 17, 0.92); gap: 10px;
}
#int-lightbox[hidden] { display: none; }
#int-lightbox img { max-width: min(1100px, 92vw); max-height: 82vh; border-radius: 8px; }
#int-lbcap { color: #e8e2d6; font-size: 14px; }
#int-lbclose {
  position: absolute; top: 14px; right: 18px; font-size: 30px; line-height: 1;
  background: none; border: none; color: #fff; cursor: pointer;
}
.stage-toolbar button:hover { filter: brightness(1.08); }
.stage-toolbar button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.stage-toolbar .sep { width: 1px; height: 18px; background: rgba(255, 255, 255, 0.16); }
.filmstrip {
  display: flex; gap: 8px; overflow-x: auto; margin-top: 12px;
  padding: 2px 2px 8px; scrollbar-width: thin;
}
.filmstrip .thumb {
  flex: 0 0 auto; width: 104px; aspect-ratio: 16 / 9; padding: 0;
  border: 2px solid transparent; border-radius: 8px; overflow: hidden;
  background: #141318; cursor: pointer;
}
.filmstrip .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.filmstrip .thumb.active { border-color: var(--accent); }
.filmstrip .thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 640px) {
  .stage-toolbar { bottom: 8px; padding: 5px 8px; gap: 4px; }
  .stage-toolbar button { font-size: 0.78rem; padding: 5px 10px; }
  .filmstrip .thumb { width: 84px; }
}
@media (max-width: 640px) {
  body { padding: 16px 12px 48px; }
  header.hero h1 { font-size: 1.3rem; }
}

/* Spin hotspots (Aisha fix, 2026-11-04): part anchors over the photo spin. */
#spin-hotspots { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hs-dot {
  position: absolute; transform: translate(-50%, -50%);
  pointer-events: auto; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 6px; padding: 4px;
}
.hs-dot i {
  width: 15px; height: 15px; border-radius: 50%; flex: none;
  background: var(--accent); border: 2px solid #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  animation: hs-pulse 2.4s ease-in-out infinite;
}
@keyframes hs-pulse {
  0%, 100% { box-shadow: 0 1px 6px rgba(0,0,0,.5), 0 0 0 0 rgba(212, 175, 55, .45); }
  50% { box-shadow: 0 1px 6px rgba(0,0,0,.5), 0 0 0 7px rgba(212, 175, 55, 0); }
}
.hs-dot span {
  font-size: 11.5px; color: #f5efe2; background: rgba(20, 19, 24, 0.78);
  padding: 2px 8px; border-radius: 999px; white-space: nowrap;
  opacity: 0; transition: opacity .15s ease;
}
.hs-dot:hover span, .hs-dot:focus-visible span { opacity: 1; }
@media (hover: none) { .hs-dot span { opacity: 1; } }

/* Interior edge falloff: the partial pano melts into the studio dark. */
.pano-fade {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(115% 100% at 50% 50%,
    rgba(5,4,8,0) 56%, rgba(5,4,8,0.38) 82%, rgba(5,4,8,0.74) 100%);
}
.pano-dots { z-index: 3; }
