:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  background: #101820;
  color: #f6f8f9;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body:not(.product-body):not(.analytics-body):not(.operator-body) {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 198, 41, 0.14), transparent 30%),
    linear-gradient(145deg, #101820 0%, #142d33 48%, #091315 100%);
}

body.model-studio-body:not(.product-body):not(.analytics-body):not(.operator-body) {
  overflow: auto;
  background: #eef2ee;
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0 22px;
  font: inherit;
  font-weight: 700;
  color: #101820;
  background: #ffc629;
  cursor: pointer;
}

.ar-stage {
  position: relative;
  width: 100vw;
  height: 100dvh;
  min-height: 520px;
  overflow: hidden;
  background: #101820;
}

.camera-feed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #101820;
}

.scan-canvas {
  display: none;
}

.permission-panel {
  position: absolute;
  left: max(18px, env(safe-area-inset-left));
  right: max(18px, env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 16px;
  max-width: 440px;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid rgba(246, 248, 249, 0.16);
  border-radius: 8px;
  background: rgba(16, 24, 32, 0.88);
  backdrop-filter: blur(16px);
  text-align: center;
}

.permission-panel[hidden] {
  display: none;
}

.eyebrow,
.hint {
  margin: 0;
  color: #ffc629;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hint {
  color: rgba(246, 248, 249, 0.68);
  text-transform: none;
  font-weight: 400;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 9vw, 2.55rem);
  line-height: 1.05;
}

p {
  margin: 0;
  color: rgba(246, 248, 249, 0.82);
  line-height: 1.55;
}

.overlay-layer {
  position: absolute;
  inset: 0;
  display: block;
  padding: 24px;
  pointer-events: none;
}

.overlay-layer[hidden] {
  display: none;
}

.media-anchor {
  --marker-scale: 1;
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(88vw, 640px);
  filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.44));
  transform: translate(-50%, -50%);
  animation: floatIn 800ms ease-out both;
  transition:
    left 120ms linear,
    top 120ms linear,
    width 120ms linear,
    opacity 160ms ease;
  will-change: left, top, width;
}

.media-anchor.tracking {
  animation: none;
}

.avatar-card {
  display: grid;
  grid-template-columns: minmax(128px, 0.72fr) minmax(160px, 1fr);
  align-items: center;
  gap: clamp(12px, 4vw, 24px);
  padding: clamp(10px, calc(var(--marker-scale) * 18px), 24px);
  border: 2px solid rgba(255, 198, 41, 0.86);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(246, 248, 249, 0.88)),
    linear-gradient(145deg, #ffffff, #f6f8f9);
  pointer-events: auto;
}

.avatar {
  position: relative;
  width: clamp(96px, calc(var(--marker-scale) * 168px), 222px);
  min-width: 0;
  aspect-ratio: 0.72;
  justify-self: center;
}

.hair-back {
  position: absolute;
  left: 8%;
  top: 3%;
  width: 84%;
  height: 70%;
  border-radius: 48% 48% 42% 42%;
  background: #342018;
  box-shadow: inset -12px -16px 0 rgba(0, 0, 0, 0.14);
}

.neck {
  position: absolute;
  left: 38%;
  top: 58%;
  width: 24%;
  height: 18%;
  border-radius: 0 0 42% 42%;
  background: #f1c2a9;
}

.shoulders {
  position: absolute;
  left: 3%;
  right: 3%;
  bottom: 0;
  height: 30%;
  border-radius: 48% 48% 8px 8px;
  background:
    linear-gradient(90deg, transparent 0 33%, #ffc629 33% 36%, transparent 36% 64%, #ffc629 64% 67%, transparent 67%),
    #f7f7f2;
  box-shadow: inset 0 14px 0 rgba(255, 255, 255, 0.56);
}

.face {
  position: absolute;
  left: 18%;
  top: 12%;
  width: 64%;
  height: 54%;
  border-radius: 48% 48% 46% 46%;
  background: #ffd7c1;
  box-shadow: inset -8px -10px 0 rgba(176, 96, 73, 0.08);
}

.fringe-left,
.fringe-right {
  position: absolute;
  top: -5%;
  height: 28%;
  background: #342018;
}

.fringe-left {
  left: -2%;
  width: 56%;
  border-radius: 80% 22% 80% 18%;
  transform: rotate(-12deg);
}

.fringe-right {
  right: -3%;
  width: 48%;
  border-radius: 26% 80% 18% 72%;
  transform: rotate(16deg);
}

.brow,
.eye,
.cheek,
.nose,
.mouth {
  position: absolute;
}

.brow {
  top: 37%;
  width: 17%;
  height: 3%;
  border-radius: 999px;
  background: #342018;
}

.brow-left {
  left: 23%;
  transform: rotate(-5deg);
}

.brow-right {
  right: 23%;
  transform: rotate(5deg);
}

.eye {
  top: 44%;
  width: 10%;
  height: 8%;
  border-radius: 50%;
  background: #172124;
  box-shadow: 2px -1px 0 #ffffff inset;
  animation: blink 5.6s infinite;
}

.eye-left {
  left: 28%;
}

.eye-right {
  right: 28%;
}

.nose {
  left: 48%;
  top: 48%;
  width: 5%;
  height: 13%;
  border-radius: 999px;
  background: rgba(195, 116, 92, 0.24);
}

.cheek {
  top: 59%;
  width: 13%;
  height: 6%;
  border-radius: 50%;
  background: rgba(232, 101, 112, 0.18);
}

.cheek-left {
  left: 18%;
}

.cheek-right {
  right: 18%;
}

.mouth {
  left: 42%;
  top: 68%;
  width: 16%;
  height: 5%;
  border-radius: 0 0 999px 999px;
  background: #9b3144;
  transform-origin: center top;
}

.avatar.speaking .mouth {
  animation: talk 180ms infinite alternate ease-in-out;
}

.speech-panel {
  display: grid;
  gap: clamp(8px, calc(var(--marker-scale) * 14px), 16px);
  align-content: center;
  min-width: 0;
  padding: clamp(10px, calc(var(--marker-scale) * 18px), 24px);
  border-radius: 8px;
  background: #ffffff;
  color: #101820;
}

.speech-panel p {
  color: #103b40;
  font-size: clamp(0.82rem, calc(var(--marker-scale) * 1.72rem), 2.45rem);
  font-weight: 800;
  line-height: 1.16;
}

.voice-button {
  justify-self: start;
  min-height: clamp(34px, calc(var(--marker-scale) * 42px), 48px);
  border: 1px solid rgba(16, 24, 32, 0.16);
  padding: 0 clamp(12px, calc(var(--marker-scale) * 18px), 22px);
  background: #101820;
  color: #f6f8f9;
  font-size: clamp(0.78rem, calc(var(--marker-scale) * 0.94rem), 1rem);
}

.status-bar {
  position: absolute;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(16, 24, 32, 0.72);
  color: rgba(246, 248, 249, 0.9);
  font-size: 0.88rem;
  text-align: center;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translate(-50%, -42%) scale(0.92);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes talk {
  from {
    height: 4%;
    transform: scaleX(1.08);
  }

  to {
    height: 13%;
    transform: scaleX(0.82);
  }
}

@keyframes blink {
  0%,
  94%,
  100% {
    transform: scaleY(1);
  }

  96% {
    transform: scaleY(0.1);
  }
}

@media (max-width: 520px) {
  .avatar-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .avatar {
    width: clamp(96px, calc(var(--marker-scale) * 150px), 188px);
  }

  .voice-button {
    justify-self: center;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .permission-panel {
    top: 46%;
    max-width: 520px;
    padding: 18px;
    gap: 10px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .media-anchor {
    width: min(68vw, 560px);
  }

  .avatar-card {
    grid-template-columns: minmax(100px, 0.54fr) minmax(220px, 1fr);
    padding: 12px;
  }

  .avatar {
    width: clamp(88px, calc(var(--marker-scale) * 126px), 150px);
  }

  .speech-panel p {
    font-size: clamp(0.78rem, calc(var(--marker-scale) * 1.28rem), 1.42rem);
  }
}

.product-body {
  overflow: auto;
  min-height: 100%;
  background: #f7f2e8;
  color: #182126;
}

.product-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  background: #f7f2e8;
}

.viewer-panel {
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #d9e7e2;
}

.viewer-toolbar {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}

.back-link,
.locale-switch a {
  color: #182126;
  font-weight: 800;
  text-decoration: none;
}

.locale-switch {
  display: flex;
  gap: 10px;
}

model-viewer {
  width: 100%;
  min-height: 460px;
  height: calc(100dvh - 64px);
  background: #d9e7e2;
}

.ar-button {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  min-width: 190px;
  box-shadow: 0 14px 28px rgba(24, 33, 38, 0.22);
}

.viewer-state,
.viewer-alert {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(24, 33, 38, 0.86);
  color: #fff;
  text-align: center;
}

.viewer-alert.muted {
  left: clamp(20px, 4vw, 42px);
  right: auto;
  top: 86px;
  max-width: min(520px, calc(100% - 40px));
  min-height: 38px;
  justify-content: flex-start;
  bottom: auto;
  background: rgba(247, 250, 247, 0.9);
  color: #314846;
  font-size: 0.92rem;
  box-shadow: 0 14px 34px rgba(4, 13, 15, 0.16);
}

.viewer-state[hidden],
.viewer-alert[hidden] {
  display: none !important;
}

.product-panel {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(24px, 5vw, 56px);
  background: #f7f2e8;
}

.product-panel h1 {
  color: #182126;
  font-size: clamp(2rem, 5vw, 4.1rem);
  line-height: 1;
}

.product-panel p {
  color: #425257;
}

.promo-strip {
  padding: 12px 14px;
  border-left: 4px solid #ffc629;
  background: #ffffff;
}

.lead-form {
  display: grid;
  gap: 12px;
}

.lead-form label {
  display: grid;
  gap: 6px;
  color: #425257;
  font-weight: 700;
}

.lead-form input {
  min-height: 46px;
  width: 100%;
  border: 1px solid #c7d2cf;
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  background: #fff;
  color: #182126;
}

.form-status {
  min-height: 24px;
  font-size: 0.9rem;
}

.analytics-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.analytics-strip div {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 10px;
  border: 1px solid #d5ddd9;
  border-radius: 8px;
  background: #fff;
}

.analytics-strip span {
  color: #182126;
  font-size: 1.35rem;
  font-weight: 800;
}

.analytics-strip small {
  color: #68787c;
}

.analytics-link {
  color: #182126;
  font-weight: 800;
  text-decoration: underline;
}

.analytics-body {
  color-scheme: light;
  min-height: 100%;
  overflow: auto;
  background: #f7f2e8;
  color: #182126;
}

.analytics-page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.analytics-header,
.event-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.analytics-header h1 {
  margin: 0;
  color: #182126;
  font-size: clamp(2rem, 5vw, 4rem);
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 12px;
}

.analytics-grid article,
.rate-strip article,
.event-panel {
  border: 1px solid #d5ddd9;
  border-radius: 8px;
  background: #ffffff;
}

.analytics-grid article {
  min-height: 116px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px;
}

.analytics-grid span {
  color: #182126;
  font-size: 2.4rem;
  font-weight: 900;
}

.analytics-grid small {
  color: #68787c;
}

.rate-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 28px;
}

.rate-strip article {
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 16px 18px;
}

.rate-strip span {
  color: #182126;
  font-size: 1.6rem;
  font-weight: 900;
}

.rate-strip small,
.recent-panel small {
  color: #68787c;
}

.event-panel {
  padding: 20px;
}

.event-panel h2 {
  margin: 0;
  color: #182126;
}

.event-bars {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.event-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(140px, 2fr) 44px;
  align-items: center;
  gap: 12px;
}

.event-row span,
.event-row strong {
  color: #182126;
}

.event-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4ebe7;
}

.event-track div {
  height: 100%;
  border-radius: inherit;
  background: #ffc629;
}

.recent-panel {
  margin-top: 16px;
}

.recent-events {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.recent-events article {
  display: grid;
  grid-template-columns: minmax(84px, 0.4fr) minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #f7f2e8;
}

.recent-events strong,
.recent-events span,
.recent-events p {
  color: #182126;
}

.recent-events span {
  overflow-wrap: anywhere;
}

@media (max-width: 860px) {
  .product-shell {
    grid-template-columns: 1fr;
  }

  .viewer-panel {
    min-height: 58dvh;
  }

  model-viewer {
    min-height: 420px;
    height: 58dvh;
  }

  .product-panel {
    align-content: start;
  }

  .analytics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rate-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .analytics-header,
  .event-panel-header,
  .event-row,
  .recent-events article {
    align-items: stretch;
    grid-template-columns: 1fr;
  }
}

/* Second World commercial demo refresh */
.product-body {
  background: #f3f5f2;
  color: #14191b;
}

.product-shell {
  min-height: 100dvh;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  background: #f3f5f2;
}

.viewer-panel {
  isolation: isolate;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(88, 198, 175, 0.24), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(235, 178, 76, 0.18), transparent 24%),
    linear-gradient(145deg, #101416 0%, #1b2b2b 48%, #dfe6df 49%, #eef1eb 100%);
}

.viewer-panel::before {
  content: "";
  position: absolute;
  inset: 78px 7% 12%;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 34px 90px rgba(4, 13, 15, 0.32);
}

.viewer-toolbar {
  padding: 22px clamp(20px, 4vw, 42px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #f7faf7;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #f2bd55;
}

.locale-switch a,
.viewer-toolbar .back-link {
  min-width: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #f7faf7;
  background: rgba(15, 20, 23, 0.36);
  backdrop-filter: blur(14px);
}

model-viewer {
  min-height: 620px;
  height: calc(100dvh - 86px);
  background: transparent;
  --poster-color: transparent;
}

.ar-button {
  bottom: 34px;
  min-width: 230px;
  min-height: 54px;
  border-radius: 8px;
  color: #101416;
  background: linear-gradient(135deg, #f6d77d, #f0a938);
  box-shadow: 0 18px 38px rgba(6, 14, 17, 0.28);
}

.viewer-caption {
  position: absolute;
  left: clamp(20px, 4vw, 42px);
  bottom: 34px;
  display: grid;
  gap: 4px;
  max-width: 240px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(15, 20, 23, 0.54);
  backdrop-filter: blur(18px);
}

.viewer-caption span {
  color: rgba(247, 250, 247, 0.72);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.viewer-caption strong {
  color: #f7faf7;
}

.product-panel {
  align-content: start;
  gap: 22px;
  min-height: 100dvh;
  padding: clamp(28px, 5vw, 64px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(243, 245, 242, 0.96)),
    #f3f5f2;
}

.demo-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #d9dfda;
  border-radius: 8px;
  background: #ffffff;
}

.demo-status span {
  color: #51706d;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.demo-status strong {
  color: #9b4f17;
  font-size: 0.9rem;
}

.product-copy {
  display: grid;
  gap: 14px;
}

.product-panel .eyebrow {
  color: #24786f;
}

.product-panel h1 {
  max-width: 10ch;
  color: #121819;
  font-size: 5.1rem;
  line-height: 0.96;
}

.product-panel p {
  max-width: 680px;
  color: #475857;
}

.product-panel #productTagline {
  color: #1f2b2c;
  font-size: clamp(1.1rem, 2.1vw, 1.42rem);
  font-weight: 700;
  line-height: 1.42;
}

.promo-strip {
  border: 1px solid #dfe5de;
  border-left: 4px solid #24786f;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(38, 52, 49, 0.07);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.proof-grid article {
  min-height: 118px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dce3dd;
  border-radius: 8px;
  background: #ffffff;
}

.proof-grid span {
  color: #24786f;
  font-size: 0.78rem;
  font-weight: 900;
}

.proof-grid strong {
  color: #14191b;
  font-size: 1.05rem;
}

.proof-grid small {
  color: #647370;
  line-height: 1.4;
}

.service-console {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid #d8e0da;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(24, 35, 34, 0.08);
}

.console-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.console-header h2 {
  margin: 4px 0 0;
  color: #14191b;
  font-size: 1.32rem;
}

.console-header > span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 12px;
  color: #1d5f59;
  background: #e7f4ef;
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.control-grid fieldset {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid #dfe6e0;
  border-radius: 8px;
}

.control-grid legend {
  padding: 0 6px;
  color: #4c615f;
  font-size: 0.82rem;
  font-weight: 900;
}

.swatch-row,
.segmented-control,
.package-control {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.swatch,
.segmented-control button,
.package-control button {
  min-height: 40px;
  border: 1px solid #d3ddd6;
  border-radius: 8px;
  padding: 0 12px;
  color: #273230;
  background: #f8faf7;
  font-size: 0.9rem;
}

.swatch {
  gap: 8px;
  display: inline-flex;
  align-items: center;
}

.swatch span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.package-control {
  display: grid;
  grid-template-columns: 1fr;
}

.package-control button {
  height: auto;
  min-height: 58px;
  display: grid;
  justify-items: start;
  gap: 3px;
  padding: 10px 12px;
  text-align: left;
}

.package-control small {
  color: #62716f;
}

.swatch.is-active,
.segmented-control button.is-active,
.package-control button.is-active {
  border-color: #24786f;
  color: #ffffff;
  background: #24786f;
}

.package-control button.is-active small {
  color: rgba(255, 255, 255, 0.78);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.workflow-grid article {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 10px;
  border-radius: 8px;
  background: #f5f7f4;
}

.workflow-grid span {
  color: #24786f;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.workflow-grid strong {
  color: #182221;
  font-size: 0.92rem;
}

.package-summary {
  padding: 12px 14px;
  border-radius: 8px;
  color: #263331;
  background: #eef4ef;
  font-weight: 700;
}

.lead-form {
  gap: 14px;
  padding: 18px;
  border: 1px solid #dce3dd;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(26, 39, 37, 0.08);
}

.lead-form h2 {
  margin: 0 0 4px;
  color: #14191b;
  font-size: 1.24rem;
}

.lead-form div p {
  font-size: 0.92rem;
}

.lead-form input {
  border-color: #cfd9d3;
  background: #f8faf7;
}

.lead-form input:focus {
  outline: 3px solid rgba(36, 120, 111, 0.18);
  border-color: #24786f;
}

.lead-form button {
  color: #f7faf7;
  background: #101416;
}

.analytics-strip {
  margin-top: 0;
}

.analytics-strip div {
  border-color: #dce3dd;
  background: #ffffff;
}

.analytics-strip span {
  color: #14191b;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.analytics-link,
.secondary-link,
.analytics-header .back-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 900;
  text-decoration: none;
}

.analytics-link {
  color: #f7faf7;
  background: #24786f;
}

.secondary-link,
.analytics-header .back-link {
  border: 1px solid #cfd9d3;
  color: #14191b;
  background: #ffffff;
}

.analytics-body {
  background:
    linear-gradient(180deg, #111719 0 280px, #eef2ee 280px 100%);
  color: #14191b;
}

.analytics-page {
  width: min(1180px, calc(100% - 36px));
  padding: 34px 0 48px;
}

.analytics-header {
  align-items: flex-start;
  color: #f7faf7;
}

.analytics-header h1 {
  color: #f7faf7;
  font-size: 4.3rem;
  line-height: 0.98;
}

.analytics-header p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 12px;
  color: rgba(247, 250, 247, 0.74);
}

.insight-banner {
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1fr);
  gap: 18px;
  margin: 30px 0 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, #1d3735, #22333d);
  box-shadow: 0 22px 56px rgba(10, 16, 18, 0.18);
}

.insight-banner span {
  color: #f2bd55;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.insight-banner strong {
  display: block;
  margin-top: 6px;
  color: #f7faf7;
}

.insight-banner p {
  color: rgba(247, 250, 247, 0.78);
}

.analytics-grid {
  margin-top: 18px;
}

.analytics-grid article,
.rate-strip article,
.event-panel {
  border-color: #dde5de;
  box-shadow: 0 12px 32px rgba(24, 34, 34, 0.06);
}

.analytics-grid span,
.rate-strip span {
  color: #111719;
}

.event-track div {
  background: linear-gradient(90deg, #24786f, #f0a938);
}

.recent-events article {
  background: #f5f7f4;
}

@media (max-width: 960px) {
  .product-shell {
    grid-template-columns: 1fr;
  }

  .viewer-panel {
    min-height: 62dvh;
  }

  model-viewer {
    min-height: 460px;
    height: 62dvh;
  }

  .product-panel {
    min-height: auto;
  }

  .product-panel h1 {
    font-size: 4.1rem;
  }

  .analytics-header h1 {
    font-size: 3.4rem;
  }
}

@media (max-width: 680px) {
  .viewer-toolbar,
  .product-actions,
  .demo-status {
    align-items: stretch;
  }

  .brand-mark strong {
    display: none;
  }

  .viewer-caption {
    display: none;
  }

  .proof-grid,
  .analytics-strip,
  .insight-banner,
  .control-grid,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .console-header {
    display: grid;
  }

  .product-panel h1 {
    max-width: 11ch;
    font-size: 2.65rem;
  }

  .analytics-header h1 {
    font-size: 2.55rem;
  }

  .analytics-header {
    display: grid;
  }
}

.analytics-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.operator-body {
  min-height: 100dvh;
  overflow-x: hidden;
  background: #f3f1ea;
  color: #182221;
}

.operator-page {
  width: 100%;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.operator-sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  padding: 22px;
  border-right: 1px solid #d8ded8;
  background: #17201f;
  color: #f7faf7;
}

.operator-brand {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.operator-brand span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e3b357;
  color: #17201f;
  font-weight: 900;
}

.operator-sidebar nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.operator-sidebar nav a {
  min-height: 42px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 12px;
  color: rgba(247, 250, 247, 0.76);
  text-decoration: none;
  font-weight: 800;
}

.operator-sidebar nav a.is-active,
.operator-sidebar nav a:hover {
  color: #17201f;
  background: #f7faf7;
}

/* Model Studio */
.model-studio-body {
  min-height: 100dvh;
  overflow-x: hidden;
  color: #101416;
  background: #eef2ee;
}

.model-studio-page {
  width: 100%;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.model-studio-workspace {
  width: min(1320px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.model-studio-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: end;
}

.model-studio-header h1 {
  margin: 0;
  color: #101416;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.model-studio-header p:not(.eyebrow) {
  max-width: 780px;
  margin: 12px 0 0;
  color: #52645f;
  font-size: clamp(0.98rem, 1.3vw, 1.12rem);
  line-height: 1.52;
}

.studio-verdict-card,
.studio-status-grid article,
.studio-panel {
  border: 1px solid #ccd8d0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(26, 39, 36, 0.08);
}

.studio-verdict-card {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
}

.studio-verdict-card span,
.studio-status-grid small,
.studio-panel label > span,
.source-check small,
.reference-preview small {
  color: #63746f;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.studio-verdict-card strong {
  color: #17443f;
  font-size: 1.35rem;
  line-height: 1.15;
}

.studio-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.studio-status-grid article {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
}

.studio-status-grid span {
  color: #101416;
  font-size: 1.8rem;
  font-weight: 900;
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 14px;
  margin-top: 14px;
}

.studio-grid-wide {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.studio-panel {
  min-width: 0;
  padding: 16px;
}

.studio-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.studio-panel-head h2 {
  margin: 4px 0 0;
  color: #101416;
  font-size: 1.15rem;
  line-height: 1.2;
}

.studio-panel-head button,
.studio-actions button {
  min-height: 42px;
  border: 1px solid #c9d5cf;
  color: #17201f;
  background: #f8faf8;
}

.studio-badge {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b9cbc3;
  border-radius: 999px;
  padding: 6px 10px;
  color: #17443f;
  background: #edf6f1;
  font-size: 0.78rem;
  font-weight: 900;
}

.studio-intake-panel {
  display: grid;
  gap: 12px;
}

.studio-panel label {
  display: grid;
  gap: 7px;
}

.studio-panel input,
.studio-panel select,
.studio-panel textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #c9d5cf;
  border-radius: 8px;
  padding: 0 12px;
  color: #101416;
  background: #ffffff;
  font: inherit;
}

.studio-panel input[type="file"] {
  min-height: auto;
  padding: 12px;
}

.studio-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.reference-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 44px;
}

.reference-preview > span {
  display: grid;
  gap: 3px;
  max-width: 240px;
  border: 1px solid #d4ddd8;
  border-radius: 8px;
  padding: 8px 10px;
  overflow: hidden;
  color: #24312f;
  background: #f8faf8;
  text-overflow: ellipsis;
}

.source-checklist,
.workflow-board,
.qa-gate-list {
  display: grid;
  gap: 10px;
}

.source-check {
  min-height: 64px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid #d4ddd8;
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfb;
}

.source-check.is-checked {
  border-color: #72a891;
  background: #edf7f2;
}

.source-check input {
  width: 20px;
  min-height: 20px;
}

.source-check strong,
.workflow-board strong,
.qa-gate-list strong {
  display: block;
  color: #101416;
  line-height: 1.22;
}

.workflow-board {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workflow-board article,
.qa-gate-list article {
  border: 1px solid #d4ddd8;
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfb;
}

.workflow-board article.is-active,
.qa-gate-list article.is-enabled {
  border-color: #88b99f;
  background: #edf7f2;
}

.workflow-board span,
.qa-gate-list span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 8px;
  margin-bottom: 9px;
  color: #17443f;
  background: #d9eee4;
  font-size: 0.75rem;
  font-weight: 900;
}

.workflow-board p,
.qa-gate-list p {
  margin: 8px 0 0;
  color: #52645f;
  font-size: 0.88rem;
  line-height: 1.42;
}

.studio-output-panel {
  margin-top: 14px;
}

.studio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#briefOutput {
  min-height: 320px;
  padding: 14px;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.5;
  resize: vertical;
}

@media (max-width: 1100px) {
  .model-studio-page {
    grid-template-columns: 1fr;
  }

  .model-studio-header,
  .studio-grid,
  .studio-grid-wide {
    grid-template-columns: 1fr;
  }

  .workflow-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .model-studio-workspace {
    width: min(100% - 24px, 1320px);
    padding-top: 18px;
  }

  .model-studio-header,
  .studio-panel-head {
    display: grid;
  }

  .studio-status-grid,
  .studio-two-col,
  .workflow-board {
    grid-template-columns: 1fr;
  }

  .studio-actions,
  .studio-panel-head button,
  .studio-actions button {
    width: 100%;
  }

  .model-studio-header h1 {
    font-size: 2.35rem;
  }
}

.operator-note {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(247, 250, 247, 0.12);
  border-radius: 8px;
  background: rgba(247, 250, 247, 0.08);
}

.operator-note span {
  color: #e3b357;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.operator-note p {
  color: rgba(247, 250, 247, 0.72);
  font-size: 0.86rem;
}

.operator-workspace {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: 30px 0 46px;
}

.operator-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.operator-header h1 {
  color: #101416;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.98;
}

.operator-header p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 12px;
  color: #51615d;
}

.operator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.operator-actions button,
.operator-panel-header button {
  min-height: 44px;
  color: #f7faf7;
  background: #24786f;
}

.operator-actions button + button,
.operator-panel-header button {
  border: 1px solid #cfd8d1;
  color: #182221;
  background: #ffffff;
}

.operator-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.operator-kpis article {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 16px;
  border: 1px solid #dce3dd;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(24, 34, 34, 0.05);
}

.operator-kpis span {
  color: #101416;
  font-size: 2rem;
  font-weight: 900;
}

.operator-kpis small {
  color: #61736e;
  font-weight: 800;
  text-transform: uppercase;
}

.operator-controls {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.8fr;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #dce3dd;
  border-radius: 8px;
  background: #ffffff;
}

.operator-controls label {
  display: grid;
  gap: 7px;
}

.operator-controls span {
  color: #667772;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.operator-controls select {
  min-height: 46px;
  width: 100%;
  border: 1px solid #cad5ce;
  border-radius: 8px;
  padding: 0 12px;
  color: #182221;
  background: #f8faf7;
  font: inherit;
  font-weight: 800;
}

.company-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, #213c39, #25313a);
  color: #f7faf7;
}

.company-overview h2 {
  margin: 4px 0 0;
  color: #f7faf7;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.company-overview p:not(.eyebrow) {
  margin-top: 8px;
  color: rgba(247, 250, 247, 0.72);
}

.health-meter {
  display: grid;
  gap: 10px;
}

.health-meter span {
  color: #e3b357;
  font-size: 2rem;
  font-weight: 900;
  text-align: right;
}

.health-meter div {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(247, 250, 247, 0.18);
}

.health-meter i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e3b357, #7cc1b9);
}

.operator-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #dce3dd;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(24, 34, 34, 0.06);
}

.operator-panel[hidden] {
  display: none;
}

.operator-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.operator-panel-header h2 {
  margin: 4px 0 0;
  color: #101416;
  font-size: 1.45rem;
}

.access-readout {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 12px;
  color: #174e49;
  background: #e8f3ef;
  font-weight: 900;
}

.product-table {
  display: grid;
  gap: 8px;
}

.product-table-head,
.product-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.35fr) minmax(130px, 0.95fr) minmax(110px, 0.8fr) minmax(120px, 0.8fr) minmax(150px, 1fr) minmax(108px, 0.6fr);
  gap: 10px;
  align-items: center;
}

.product-table-head {
  min-height: 36px;
  color: #697a75;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-row,
.permission-row {
  min-height: 76px;
  padding: 12px;
  border: 1px solid #e3e8e4;
  border-radius: 8px;
  background: #f8faf7;
}

.product-row strong,
.permission-row strong {
  display: block;
  color: #101416;
}

.product-row small,
.permission-row small {
  color: #6c7a76;
}

.status-pill {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.status-pill.good {
  color: #174e49;
  background: #dff2ec;
}

.status-pill.warn {
  color: #745113;
  background: #fbefcf;
}

.status-pill.neutral {
  color: #485854;
  background: #e8ece9;
}

.signal-stack {
  display: grid;
  gap: 2px;
  color: #3f504c;
  font-size: 0.84rem;
  font-weight: 800;
}

.demo-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 10px;
  color: #f7faf7;
  background: #24786f;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.permission-list {
  display: grid;
  gap: 10px;
}

.permission-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(110px, 160px) minmax(0, 1.4fr);
  gap: 12px;
  align-items: center;
}

.permission-row p {
  color: #4b5d59;
  font-size: 0.9rem;
}

.model-stage-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 14px;
}

.model-stage-strip span {
  min-height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  padding: 0 8px;
  color: #5a6a66;
  background: #eef2ef;
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}

.model-stage-strip span.is-current {
  color: #174e49;
  background: #dff2ec;
}

.model-production-list {
  display: grid;
  gap: 10px;
}

.model-production-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(220px, 1.2fr) minmax(180px, 1fr) minmax(104px, 0.45fr);
  gap: 12px;
  align-items: center;
  min-height: 96px;
  padding: 12px;
  border: 1px solid #e3e8e4;
  border-radius: 8px;
  background: #f8faf7;
}

.model-production-card strong {
  display: block;
  color: #101416;
}

.model-production-card small,
.model-production-card p {
  color: #5b6d68;
}

.model-production-card p {
  font-size: 0.88rem;
}

.model-production-decisions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

@media (max-width: 1100px) {
  .operator-page {
    grid-template-columns: 1fr;
  }

  .operator-sidebar {
    position: relative;
    height: auto;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .operator-sidebar nav {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  }

  .operator-note {
    grid-column: 1 / -1;
  }

  .product-table-head {
    display: none;
  }

  .product-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .model-stage-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .model-production-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .operator-workspace {
    width: min(100% - 24px, 1240px);
    padding-top: 18px;
  }

  .operator-sidebar {
    padding: 16px;
  }

  .operator-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operator-header,
  .operator-panel-header,
  .analytics-nav {
    display: grid;
    justify-content: stretch;
  }

  .operator-actions {
    justify-content: stretch;
  }

  .operator-actions button,
  .operator-panel-header button,
  .analytics-nav a {
    width: 100%;
  }

  .operator-kpis,
  .operator-controls,
  .company-overview,
  .product-row,
  .permission-row,
  .model-stage-strip,
  .model-production-card {
    grid-template-columns: 1fr;
  }

  .operator-header h1 {
    font-size: 2.45rem;
  }

  .health-meter span {
    text-align: left;
  }
}
/* img2threejs sofa test */
.sofa-demo-page {
  margin: 0;
  min-height: 100vh;
  background: #ece8df;
  color: #171717;
}

.sofa-demo-shell {
  width: min(1440px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0;
}

.sofa-demo-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.sofa-demo-header .eyebrow {
  margin: 0 0 6px;
  color: #6b6258;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.sofa-demo-header h1 {
  margin: 0;
  font-size: clamp(1.6rem, 2.2vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.sofa-demo-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: #38332d;
  font-size: 0.88rem;
}

.sofa-demo-status span,
.sofa-panel-head span,
.sofa-panel-head a {
  border: 1px solid rgba(23, 23, 23, 0.16);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.48);
  color: inherit;
  text-decoration: none;
}

.sofa-demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 16px;
}

.sofa-demo-panel {
  min-width: 0;
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  overflow: hidden;
}

.sofa-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(23, 23, 23, 0.1);
}

.sofa-panel-head h2 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.sofa-reference {
  display: block;
  width: 100%;
  aspect-ratio: 1.86;
  object-fit: contain;
  background: #050505;
}

.sofa-render-panel model-viewer {
  display: block;
  width: 100%;
  height: clamp(360px, 52vw, 620px);
  aspect-ratio: 1.86;
  background: #f4f1eb;
}

.sofa-demo-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.sofa-demo-notes div {
  border: 1px solid rgba(23, 23, 23, 0.12);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.58);
}

.sofa-demo-notes strong,
.sofa-demo-notes span {
  display: block;
}

.sofa-demo-notes strong {
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.sofa-demo-notes span {
  color: #4f463d;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .sofa-demo-shell {
    width: min(100vw - 20px, 720px);
    padding: 14px 0;
  }

  .sofa-demo-header {
    display: block;
  }

  .sofa-demo-status {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .sofa-demo-grid,
  .sofa-demo-notes {
    grid-template-columns: 1fr;
  }
}

body.sofa-demo-page {
  color-scheme: light;
  background: #ece8df;
  color: #171717;
}

body.sofa-demo-page:not(.product-body):not(.analytics-body):not(.operator-body) {
  overflow: auto;
  background: #ece8df;
}

body.sofa-demo-page::before {
  content: none;
}

body.sofa-demo-page .sofa-demo-header h1 {
  color: #171717;
}

body.sofa-demo-page .sofa-demo-header .eyebrow,
body.sofa-demo-page .sofa-demo-notes span {
  color: #5d544a;
}

/* Aurora necklace 6969 model draft */
.necklace-demo-page {
  color-scheme: light;
  margin: 0;
  min-height: 100vh;
  background: #f7f3eb;
  color: #17120b;
}

.necklace-demo-page:not(.product-body):not(.analytics-body):not(.operator-body) {
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(255, 246, 224, 0.88), rgba(247, 243, 235, 1)),
    #f7f3eb;
}

.necklace-demo-shell {
  width: min(1440px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0;
}

.necklace-demo-header,
.necklace-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.necklace-demo-header {
  margin-bottom: 18px;
}

.necklace-demo-header .eyebrow {
  margin: 0 0 6px;
  color: #7c5a19;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.necklace-demo-header h1 {
  margin: 0;
  color: #17120b;
  font-size: clamp(1.45rem, 2.05vw, 2.35rem);
  line-height: 1.14;
  letter-spacing: 0;
}

.necklace-demo-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.necklace-demo-status span,
.necklace-panel-head span,
.necklace-panel-head a {
  border: 1px solid rgba(149, 104, 23, 0.25);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.68);
  color: #4e3b18;
  text-decoration: none;
}

.necklace-demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 16px;
}

.necklace-demo-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(149, 104, 23, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.necklace-panel-head {
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(149, 104, 23, 0.14);
}

.necklace-panel-head h2 {
  margin: 0;
  color: #17120b;
  font-size: 0.98rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.necklace-demo-panel img,
.necklace-demo-panel model-viewer {
  display: block;
  width: 100%;
  height: clamp(520px, 58vw, 760px);
  object-fit: contain;
  background: #fbfaf7;
}

.necklace-demo-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.necklace-demo-notes div {
  border: 1px solid rgba(149, 104, 23, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.necklace-demo-notes strong,
.necklace-demo-notes span {
  display: block;
}

.necklace-demo-notes strong {
  margin-bottom: 6px;
  color: #17120b;
  font-size: 0.92rem;
}

.necklace-demo-notes span {
  color: #5a4a2b;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .necklace-demo-shell {
    width: min(100vw - 20px, 720px);
    padding: 14px 0;
  }

  .necklace-demo-header {
    display: block;
  }

  .necklace-demo-status {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .necklace-demo-grid,
  .necklace-demo-notes {
    grid-template-columns: 1fr;
  }

  .necklace-demo-panel img,
  .necklace-demo-panel model-viewer {
    height: 560px;
  }
}
