:root {
  color-scheme: light;
  --logo-blue: #176fb7;
  --blue-900: #063560;
  --blue-800: #0a477d;
  --blue-100: #e7f3ff;
  --court-green: #22a56f;
  --bg: #f6f9fc;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-solid: #ffffff;
  --line: rgba(10, 71, 125, .16);
  --text: #0a1624;
  --muted: #5e6c7b;
  --accent: #176fb7;
  --accent-2: #063560;
  --accent-dark: #063560;
  --shadow: 0 24px 70px rgba(6, 53, 96, .16);
  --font-body: "Inter", "Avenir Next", "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --font-heading: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --font-ui: "Avenir Next", "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body {
  font-family: var(--font-body);
  background:
    linear-gradient(rgba(23,111,183,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,111,183,.09) 1px, transparent 1px),
    radial-gradient(circle at 12% 4%, rgba(23,111,183,.20), transparent 32%),
    radial-gradient(circle at 88% 0%, rgba(34,165,111,.12), transparent 28%),
    var(--bg);
  background-size: 54px 54px, 54px 54px, auto, auto, auto;
  color: var(--text);
  font-size: 16px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  width: calc(100% - 32px);
  margin: 0 auto;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding: clamp(8px, 1.4vh, 16px) 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-shrink: 0;
  margin-bottom: clamp(8px, 1vh, 12px);
  padding: 7px 10px 7px 14px;
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 8px;
  background: rgba(246,249,252,.84);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.hero-copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 14px;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: clamp(112px, 10vw, 148px);
  height: auto;
  margin: 0;
}

.brand-home {
  display: inline-block;
  grid-column: 1;
  grid-row: 1 / 3;
}

.config-home-link {
  justify-self: start;
  border-radius: 6px;
  background: var(--blue-100);
  color: var(--blue-900);
  padding: 10px 13px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.eyebrow {
  grid-column: 2;
  letter-spacing: .01em;
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--logo-blue);
  margin: 0 0 1px;
  font-weight: 650;
}

h1 { font-family: var(--font-heading); font-size: clamp(20px, min(2vw, 3.5vh), 28px); line-height: 1.2; margin: 0; font-weight: 600; letter-spacing: 0; }
.hero-copy h1 { grid-column: 2; }
.hero p:last-child { color: var(--muted); max-width: 760px; font-size: 16px; line-height: 1.7; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.btn, .option, .contact-link {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 18px;
  font-family: var(--font-ui);
  font-weight: 650;
  color: var(--text);
  background: rgba(255,255,255,0.86);
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover, .option:hover, .contact-link:hover { transform: translateY(-1px); border-color: rgba(23,111,183,.34); }
.btn.primary { background: var(--blue-900); color: #fff; }
.btn.ghost { -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); color: var(--blue-900); }
.language-switch { position: relative; z-index: 30; }
.lang-toggle {
  min-width: 96px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 13px;
  font-weight: 650;
  color: var(--text);
  background: rgba(255,255,255,0.86);
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(18px);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.lang-toggle:hover { transform: translateY(-1px); border-color: rgba(0,208,132,0.42); }
.lang-globe {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--blue-100);
  color: var(--blue-900);
  font-size: 13px;
  line-height: 1;
}
.config-icon {
  display: block;
  flex: none;
  width: 1em;
  height: 1em;
  background: currentColor;
  -webkit-mask: var(--icon-url) center / contain no-repeat;
  mask: var(--icon-url) center / contain no-repeat;
}
.config-icon-globe {
  width: 16px;
  height: 16px;
}
.config-icon-chevron {
  width: 14px;
  height: 14px;
}
.chev {
  display: grid;
  place-items: center;
  line-height: 0;
}
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 260px;
  max-height: min(430px, calc(100vh - 110px));
  overflow: auto;
  display: none;
  gap: 6px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(15,23,42,0.10);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.lang-menu.open { display: grid; animation: langDrop .22s ease; }
@keyframes langDrop {
  from { opacity: 0; transform: translateY(-6px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.lang-option:hover { background: rgba(17,24,39,0.06); }
.lang-option.active {
  background: var(--blue-100);
  color: var(--blue-900);
  box-shadow: inset 0 0 0 1px rgba(23,111,183,.18);
}
.lang-native { font-size: 14px; font-weight: 650; }
.lang-option small { font-size: 12px; color: var(--muted); font-weight: 650; }
.is-rtl .lang-menu { right: auto; left: 0; direction: rtl; }
.is-rtl .lang-option { text-align: right; }

.configurator-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 72fr) minmax(0, 28fr);
  width: 100%;
  flex: 1;
  min-height: 0;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.78);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.viewport-wrap {
  position: relative;
  min-height: 0;
  background:
    linear-gradient(rgba(23,111,183,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,111,183,.07) 1px, transparent 1px),
    #fff;
  background-size: 54px 54px;
}

.viewport-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #d8dde2;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}

.viewport-wrap.is-contrast-preview::before { opacity: 1; }

.viewport-wrap {
  justify-self: stretch;
  width: 100%;
}

#application-canvas { position: relative; width: 100%; height: 100%; display: block; background: transparent; }
.mobile-tip { display: none; }

.camera-zoom-control {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: grid;
  width: 50px;
  justify-items: center;
  gap: 7px;
  padding: 10px 7px 9px;
  border: 1px solid rgba(23, 111, 183, .24);
  border-radius: 25px;
  color: var(--blue-900);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 14px 34px rgba(6, 53, 96, .18);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
  backdrop-filter: blur(14px) saturate(1.12);
  opacity: .72;
  transform: scale(1);
  transform-origin: top right;
  transition:
    opacity .24s ease,
    transform .34s cubic-bezier(.16, 1, .3, 1);
  user-select: none;
}

.camera-zoom-control:active,
.camera-zoom-control:has(:focus-visible) {
  opacity: 1;
  transform: scale(1.2);
}

@media (hover: hover) and (pointer: fine) {
  .camera-zoom-control:hover {
    opacity: 1;
    transform: scale(1.2);
  }
}

.camera-zoom-value {
  color: rgba(6, 53, 96, .72);
  font-family: var(--font-ui);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  letter-spacing: .02em;
  line-height: 1;
}

.camera-zoom-step {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(23, 111, 183, .12);
  border-radius: 50%;
  place-items: center;
  color: var(--blue-900);
  background: rgba(231, 243, 255, .76);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 19px;
  font-weight: 520;
  line-height: 1;
  transition: color .2s ease, background .2s ease, transform .28s cubic-bezier(.16, 1, .3, 1);
}

.camera-zoom-step:hover {
  color: var(--logo-blue);
  background: #fff;
}

.camera-zoom-step:active {
  transform: scale(.9);
}

.camera-zoom-step:focus-visible,
.camera-zoom-slider:focus-visible {
  outline: 3px solid rgba(23, 111, 183, .3);
  outline-offset: 2px;
}

.camera-zoom-slider {
  position: relative;
  width: 34px;
  height: 96px;
  cursor: grab;
  touch-action: none;
}

.camera-zoom-slider:active {
  cursor: grabbing;
}

.camera-zoom-track {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 50%;
  width: 6px;
  border-radius: 999px;
  background: rgba(6, 53, 96, .18);
  transform: translateX(-50%);
  transition: width .24s cubic-bezier(.16, 1, .3, 1);
}

.camera-zoom-control:active .camera-zoom-track,
.camera-zoom-control:has(:focus-visible) .camera-zoom-track,
.camera-zoom-slider.is-dragging .camera-zoom-track {
  width: 12px;
}

@media (hover: hover) and (pointer: fine) {
  .camera-zoom-control:hover .camera-zoom-track {
    width: 12px;
  }
}

.camera-zoom-range {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--camera-zoom-progress, 46.784%);
  border-radius: inherit;
  background: linear-gradient(180deg, #65baf4, var(--logo-blue));
}

.camera-zoom-thumb {
  position: absolute;
  bottom: var(--camera-zoom-progress, 46.784%);
  left: 50%;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--logo-blue);
  box-shadow: 0 2px 10px rgba(6, 53, 96, .28);
  transform: translate(-50%, 50%);
  transition: width .24s cubic-bezier(.16, 1, .3, 1), height .24s cubic-bezier(.16, 1, .3, 1);
}

.camera-zoom-slider.is-dragging .camera-zoom-thumb {
  width: 17px;
  height: 17px;
}

.camera-zoom-control button:disabled {
  cursor: default;
  opacity: .48;
}

.dark-mode-notice {
  position: absolute;
  top: clamp(12px, 2vw, 20px);
  left: 50%;
  z-index: 5;
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(680px, calc(100% - 32px));
  min-height: 54px;
  padding: 9px 10px 9px 9px;
  color: #0b2135;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(148,163,184,.4);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -22px);
  transition:
    transform .42s cubic-bezier(.16,1,.3,1),
    opacity .3s ease,
    visibility 0s linear .42s;
}

.dark-mode-notice.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.dark-mode-notice.is-exiting {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transform: translate(-50%, -22px);
}

.dark-mode-notice-mark {
  align-self: stretch;
  min-height: 34px;
  border-radius: 999px;
  background: var(--logo-blue);
}

.dark-mode-notice p {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  text-wrap: balance;
}

.dark-mode-notice-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 7px 6px 12px;
  color: #31516d;
  background: #eef5fa;
  border: 1px solid rgba(23,111,183,.18);
  border-radius: 9px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.dark-mode-notice-close:hover {
  color: var(--blue-900);
  background: #e2eff8;
  border-color: rgba(23,111,183,.32);
}

.dark-mode-notice-close:focus-visible {
  outline: 3px solid rgba(23,111,183,.28);
  outline-offset: 2px;
}

.dark-mode-notice-close > span:first-child {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  transform: translateY(1px);
}

.dark-mode-notice-countdown {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #fff;
  background: var(--blue-900);
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.viewport-watermark {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("../../assets/img/enoch-logo-watermark-bw.png");
  background-position: 34px 34px;
  background-repeat: repeat;
  background-size: clamp(190px, 22vw, 340px) auto;
  opacity: .07;
  pointer-events: none;
  mix-blend-mode: multiply;
  transition: opacity .4s ease, filter .4s ease;
}

.viewport-wrap.is-contrast-preview .viewport-watermark {
  opacity: .055;
  filter: none;
  mix-blend-mode: multiply;
}

@media (prefers-reduced-motion: reduce) {
  .camera-zoom-control,
  .viewport-wrap::before,
  .viewport-watermark,
  .dark-mode-notice { transition: none; }
}

.loading-panel {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 12px;
  text-align: center;
  background: rgba(255,255,255,0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  z-index: 3;
}
.loading-panel.hidden { opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.loading-panel span { color: var(--muted); }
.model-loading-progress {
  width: min(280px, 64vw);
  height: 8px;
  margin: 2px auto 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, .12);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .08);
}
.model-loading-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--logo-blue), #4f8ef7);
  transition: width .18s ease-out;
}
.model-loading-progress-text {
  min-height: 20px;
  font-variant-numeric: tabular-nums;
}
.model-loading-hint {
  width: min(360px, 76vw);
  min-height: 22px;
  margin: -4px auto 0;
  font-size: 13px;
  line-height: 1.55;
  transition: color .2s ease;
}
.model-loading-hint.is-delayed {
  color: #9a5b0a;
  font-weight: 600;
}
.export-loading {
  z-index: 4;
  padding: 20px;
  background: rgba(241, 245, 249, .76);
}
.export-stepper-card {
  width: min(510px, calc(100vw - 48px));
  padding: 25px 28px 27px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .16), 0 2px 8px rgba(15, 23, 42, .06);
  text-align: left;
}
.export-stepper-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.export-stepper-count {
  color: var(--logo-blue);
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
}
.export-stepper-track {
  display: flex;
  width: 100%;
  align-items: center;
}
.export-step-indicator {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 999px;
  background: #e8edf4;
  color: #7c8798;
  font-size: 13px;
  font-weight: 750;
  transition: color .3s ease, background-color .3s ease, transform .3s ease;
}
.export-step-indicator.is-active {
  background: var(--logo-blue);
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 0 0 6px rgba(15, 107, 204, .12);
}
.export-step-indicator.is-active::after {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
  animation: export-step-pulse 1.4s ease-in-out infinite;
}
.export-step-indicator.is-active .export-step-number { display: none; }
.export-step-indicator.is-complete {
  background: var(--logo-blue);
  color: #fff;
}
.export-stepper-card.is-success .export-step-indicator.is-complete {
  background: var(--court-green);
}
.config-icon-step-check {
  width: 18px;
  height: 18px;
}
.export-step-connector {
  position: relative;
  height: 3px;
  flex: 1;
  margin: 0 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}
.export-step-connector::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--logo-blue);
  transform: scaleX(0);
  transform-origin: left center;
}
.export-step-connector.is-complete::after {
  animation: export-step-fill .42s ease-out forwards;
}
.export-stepper-card.is-success .export-step-connector::after {
  background: var(--court-green);
}
.export-stepper-content {
  min-height: 68px;
  padding-top: 24px;
  animation: export-step-enter .36s cubic-bezier(.22, 1, .36, 1) both;
}
.export-stepper-content strong {
  display: block;
  color: #0f172a;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.2;
  letter-spacing: -.025em;
}
.export-stepper-description {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
}
.export-model-progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 17px;
}
.export-model-progress {
  height: 7px;
  flex: 1;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .08);
}
.export-model-progress-bar {
  display: block;
  height: 100%;
  margin: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--logo-blue), #4f8ef7);
  transition: width .18s ease-out;
}
.export-model-progress-value {
  display: block;
  min-width: 38px;
  margin: 0;
  color: var(--logo-blue);
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
@keyframes export-step-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes export-step-enter {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes export-step-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .62; transform: scale(.72); }
}
@media (max-width: 520px) {
  .export-loading { padding: 14px; }
  .export-stepper-card {
    width: min(100%, 340px);
    padding: 22px 20px 24px;
    border-radius: 20px;
  }
  .export-stepper-meta { margin-bottom: 20px; }
  .export-step-connector { margin: 0 7px; }
  .export-stepper-content { padding-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .export-step-indicator,
  .export-stepper-content,
  .export-model-progress-bar { transition: none; animation: none; }
  .export-step-indicator.is-active::after { animation: none; }
  .export-step-connector.is-complete::after { animation: none; transform: scaleX(1); }
}
.spinner {
  width: 44px; height: 44px; margin: 0 auto;
  border-radius: 999px;
  border: 3px solid rgba(15,23,42,.14);
  border-top-color: var(--logo-blue);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.viewport-footer {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  z-index: 2;
}
.viewport-footer span {
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.panel {
  border-left: 1px solid var(--line);
  background: var(--panel);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
  min-height: 0;
  padding: clamp(16px, 2vh, 26px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.panel-section { padding: 0 0 clamp(14px, 1.8vh, 24px); margin-bottom: clamp(14px, 1.8vh, 24px); border-bottom: 1px solid var(--line); }
.panel-section:last-child { border-bottom: 0; }
.section-label {
  display: block;
  color: var(--logo-blue);
  font-size: 12px;
  text-transform: none;
  letter-spacing: .01em;
  font-weight: 650;
  margin-bottom: 14px;
}
.option-grid { display: grid; gap: 10px; }
.option-grid.two { grid-template-columns: 1fr 1fr; }
.option { border-radius: 6px; padding: 13px 12px; font-size: 14px; }
.model-options .option {
  min-height: 48px;
  line-height: 1.25;
  white-space: normal;
}
.variant-options .option {
  min-height: 42px;
  line-height: 1.2;
  white-space: normal;
}
.quality-options .option {
  min-height: 42px;
  line-height: 1.2;
  white-space: normal;
}
.quality-options .option:disabled {
  cursor: not-allowed;
  border-color: rgba(15,23,42,.10);
  background: #f4f6f8;
  color: #8290a0;
  box-shadow: none;
  opacity: 1;
}
.quality-options .option small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 500;
}
[hidden] { display: none !important; }
.option.active { background: var(--blue-100); border-color: rgba(23,111,183,.36); color: var(--blue-900); box-shadow: inset 0 0 0 1px rgba(23,111,183,.10); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch {
  width: 42px; height: 42px;
  border-radius: 8px;
  border: 2px solid rgba(15,23,42,0.14);
  background: var(--swatch);
  cursor: pointer;
  box-shadow: none;
}
.swatch.active { outline: 3px solid rgba(23,111,183,.34); outline-offset: 3px; box-shadow: 0 0 0 2px #fff, 0 0 22px rgba(23,111,183,.16); }
.custom-color {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 12px 0 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,0.78);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.custom-color input {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}
.custom-color input::-webkit-color-swatch-wrapper { padding: 0; }
.custom-color input::-webkit-color-swatch {
  border: 2px solid rgba(15,23,42,0.14);
  border-radius: 6px;
}
.custom-color input::-moz-color-swatch {
  border: 2px solid rgba(15,23,42,0.14);
  border-radius: 6px;
}
.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  padding: 10px 0;
  cursor: pointer;
}
.toggle input { accent-color: var(--logo-blue); width: 18px; height: 18px; }
.summary dl { margin: 0; display: grid; gap: 10px; }
.summary div { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.summary dt { font-weight: 700; color: var(--text); }
.summary dd { margin: 0; text-align: right; }
.contact-link { display: block; width: 100%; text-align: center; background: var(--blue-900); color: #fff; border-color: transparent; box-shadow: 0 14px 30px rgba(6,53,96,.16); font: inherit; }

.is-embed-preview,
.is-embed-preview body {
  background: #fff;
  overflow: hidden;
}

.is-embed-preview .page-shell {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: 0;
}

.is-embed-preview .hero,
.is-embed-preview .panel,
.is-embed-preview .loading-panel,
.is-embed-preview .camera-zoom-control,
.is-embed-preview .viewport-footer {
  display: none;
}

.is-embed-preview .configurator-card {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}

.is-embed-preview .viewport-wrap,
.is-embed-preview #application-canvas {
  width: 100%;
  height: 100%;
}

@media (max-width: 1080px) {
  .hero { align-items: center; flex-direction: row; }
  .config-home-link { display: none; }
  .eyebrow { display: none; }
  .brand-home { grid-row: 1; }
  .hero-copy h1 { grid-row: 1; }
  .configurator-card {
    grid-template-columns: 1fr;
    width: 100%;
    margin: 0 auto;
  }
  .viewport-wrap { width: 100%; }
  .panel { border-left: 0; border-top: 1px solid var(--line); }
  .viewport-wrap { flex: 0 0 58%; min-height: 0; }
}

@media (max-height: 760px) and (min-width: 768px) {
  .page-shell { padding: 10px 0; }
  .eyebrow { display: none; }
  .btn { padding: 9px 13px; font-size: 13px; }
  .option { padding: 10px 11px; }
  .swatch { width: 34px; height: 34px; }
  .custom-color { height: 36px; }
  .custom-color input { width: 26px; height: 26px; }
}

@media (max-height: 620px) and (min-width: 1081px) {
  .section-label { margin-bottom: 10px; }
  .viewport-footer { bottom: 12px; }
  .viewport-footer span { padding: 6px 10px; font-size: 12px; }
}

@media (max-width: 767px) {
  /* Lock the whole page inside the iframe with no internal scroll.
     Only the options panel scrolls — the 3D viewport stays pinned at top. */
  html, body { height: 100%; overflow: hidden; }

  .page-shell {
    width: 100%;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* Compact header strip */
  .hero {
    flex-shrink: 0;
    flex-direction: row;
    align-items: center;
    padding: 6px 10px;
    margin-bottom: 0;
    gap: 8px;
  }
  .hero-copy {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
  }
  .brand-logo {
    width: clamp(82px, 23vw, 100px);
    margin: 0;
  }
  .brand-home { min-width: 0; }
  .config-home-link { display: none; }
  .eyebrow { display: none; }
  .hero-copy h1 { display: none; }
  .hero-actions { flex-shrink: 0; flex-direction: row; justify-content: flex-end; gap: 6px; }
  .btn { min-height: 44px; padding: 8px 11px; font-size: 12px; }
  .lang-toggle { min-width: 76px; height: 44px; gap: 6px; padding: 0 9px; font-size: 12px; }
  .lang-toggle .chev { display: none; }
  .lang-globe { display: none; }
  .lang-menu { right: 0; width: min(280px, calc(100vw - 18px)); max-height: calc(100vh - 74px); }

  /* Card fills remaining height as a flex column */
  .configurator-card {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    margin: 0 0 8px;
    overflow: hidden;
    /* override the 1080px grid */
    grid-template-columns: unset;
  }

  /* Viewport takes the top 46 % — always visible */
  .viewport-wrap {
    flex: 0 0 46%;
    min-height: 0;
    touch-action: none;
  }

  #application-canvas { touch-action: none; }

  /* Panel scrolls internally so the model stays on screen */
  .panel {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .option-grid.two { grid-template-columns: 1fr 1fr; }

  .option,
  .contact-link,
  .custom-color,
  .toggle {
    min-height: 44px;
  }

  .swatch {
    width: 44px;
    height: 44px;
  }

  .summary div {
    align-items: start;
    overflow-wrap: anywhere;
  }

  .viewport-footer { left: 10px; right: 10px; bottom: 10px; gap: 5px; }
  .viewport-footer span { padding: 5px 8px; font-size: 11px; }
  .camera-zoom-control {
    top: 50%;
    right: 8px;
    width: 46px;
    padding-right: 5px;
    padding-left: 5px;
    opacity: .56;
    transform: translateY(-50%) scale(.76);
    transform-origin: center right;
  }
  .camera-zoom-control.is-touch-active,
  .camera-zoom-control:active,
  .camera-zoom-control:has(:focus-visible) {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  .dark-mode-notice {
    top: 10px;
    grid-template-columns: 3px minmax(0, 1fr) auto;
    gap: 8px;
    width: calc(100% - 20px);
    padding: 8px;
    border-radius: 10px;
  }
  .dark-mode-notice p {
    font-size: 12px;
    line-height: 1.4;
  }
  .dark-mode-notice-close {
    min-height: 34px;
    padding: 5px;
  }
  .dark-mode-notice-close > span:first-child { display: none; }
  .viewport-watermark {
    background-position: 18px 18px;
    background-size: 180px auto;
    opacity: .06;
  }
  .desktop-tip { display: none; }
  .mobile-tip { display: inline-flex; }
}

@media (max-width: 767px) and (hover: hover) and (pointer: fine) {
  .camera-zoom-control:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}
