:root {
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: rgba(255, 255, 255, 0.98);
  --line: rgba(20, 24, 28, 0.12);
  --ink: #15191c;
  --ink-dim: #5f666c;
  --ink-soft: #7b848b;
  --accent: #87ad4c;
  --accent-deep: #617f34;
  --shadow: 0 20px 60px rgba(25, 30, 34, 0.12);
  --radius-lg: 22px;
  --radius-md: 16px;
  --font-sans: "Plus Jakarta Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-sans);
  overflow: hidden;
}

button, input { font: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.viewer-shell {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
}

.studio-background {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 12%, rgba(0, 0, 0, 0.06), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
}

.viewer-topbar,
.viewer-badges,
.control-dock {
  position: absolute;
  z-index: 4;
}

.viewer-topbar {
  top: 20px;
  left: 20px;
  right: 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 16px;
}

.brand-chip,
.control-card,
.summary-card,
.badge-pill {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.brand-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 18px;
}

.brand-chip img {
  width: 82px;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
}

.brand-chip strong,
.brand-chip span {
  display: block;
}

.brand-kicker,
.eyebrow,
.summary-card p {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.brand-chip strong {
  margin-top: 6px;
  font-size: 17px;
  letter-spacing: -0.04em;
}

.headline-block {
  padding-top: 4px;
}

.headline-block h1 {
  margin: 8px 0 0;
  font-size: clamp(38px, 4vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.ghost-link {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-weight: 700;
  padding-top: 18px;
}

.viewer-badges {
  top: 126px;
  left: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge-pill {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.viewer-stage {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.three-stage {
  position: absolute;
  inset: 0;
}

.three-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.three-stage .pergola-dimension-overlay-v327 {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none !important;
}

.pergola-dimension-overlay-v327 line {
  stroke: #43534e;
  stroke-width: 1;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.pergola-dimension-overlay-v327 rect {
  fill: rgba(250, 252, 251, 0.94);
  stroke: rgba(67, 83, 78, 0.18);
}

.pergola-dimension-overlay-v327 .dimension-extension { stroke-opacity: 0.4; }

.pergola-dimension-overlay-v327 text {
  fill: #263d35;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  text-anchor: middle;
  dominant-baseline: middle;
  letter-spacing: 0;
}

.three-hint {
  position: absolute;
  left: 24px;
  bottom: 24px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.control-dock {
  top: 24px;
  right: 24px;
  bottom: 24px;
  width: min(390px, calc(100vw - 48px));
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
}

.control-card,
.summary-card {
  border-radius: 26px;
  padding: 18px;
}

.control-card {
  overflow: auto;
}

.dock-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.dock-progress span {
  display: block;
  color: var(--ink-soft);
  font-size: 12px;
}

.dock-progress strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  letter-spacing: -0.05em;
}

.step-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.step-tab {
  border: 1px solid var(--line);
  background: rgba(20, 24, 28, 0.03);
  color: var(--ink-dim);
  border-radius: 14px;
  min-height: 44px;
  padding: 8px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.step-tab.is-active {
  border-color: rgba(135, 173, 76, 0.52);
  background: rgba(135, 173, 76, 0.1);
  color: var(--ink);
}

.step-panel {
  display: none;
}

.step-panel.is-active {
  display: block;
}

.summary-card strong {
  display: block;
  margin-top: 10px;
  font-size: 24px;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.choice-grid,
.scene-grid,
.swatch-row,
.inline-options,
.toggle-stack,
.slider-stack {
  display: grid;
  gap: 12px;
}

.choice-grid,
.scene-grid,
.swatch-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pivot-state-grid {
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 12px;
}

.motion-button {
  display: block;
  width: 100%;
  margin-top: 10px;
}

.choice-card,
.scene-card,
.swatch,
.radio-pill span,
.toggle-row,
.nav-btn {
  border: 1px solid var(--line);
  background: rgba(20, 24, 28, 0.03);
  color: var(--ink);
  border-radius: 18px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.choice-card,
.scene-card,
.swatch {
  padding: 16px 14px;
  cursor: pointer;
  font-weight: 700;
}

.choice-card:hover,
.scene-card:hover,
.swatch:hover {
  transform: translateY(-1px);
  border-color: rgba(135, 173, 76, 0.36);
}

.choice-card.is-active,
.scene-card.is-active,
.swatch.is-active {
  border-color: rgba(135, 173, 76, 0.52);
  box-shadow: inset 0 0 0 1px rgba(135, 173, 76, 0.22);
  background: rgba(135, 173, 76, 0.08);
}

.section-label {
  margin: 18px 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.swatch {
  display: flex;
  align-items: center;
  gap: 10px;
}

.swatch > span:first-child {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(20, 24, 28, 0.14);
  background: var(--swatch-color, #ddd);
  flex: 0 0 auto;
}

.swatch-copy {
  display: grid;
  gap: 2px;
  text-align: left;
}

.swatch-copy small {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.swatch[data-frame-color="anthracite-grey"] > span:first-child,
.swatch[data-louver-color="anthracite-grey"] > span:first-child { --swatch-color: #383e42; }
.swatch[data-frame-color="white"] > span:first-child,
.swatch[data-louver-color="white"] > span:first-child { --swatch-color: #f3f4ef; }
.swatch[data-frame-color="wood-grain"] > span:first-child,
.swatch[data-louver-color="wood-grain"] > span:first-child { --swatch-color: #9b6c3f; }
.swatch[data-frame-color="brown"] > span:first-child,
.swatch[data-louver-color="brown"] > span:first-child { --swatch-color: #5b3a29; }
.swatch[data-frame-color="custom"] > span:first-child,
.swatch[data-louver-color="custom"] > span:first-child { --swatch-color: #7d878d; }

/* Site boundary configurator v225 */
.site-context-panel-v225 {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #dce4de;
  border-radius: 14px;
  background: #f7faf5;
}

.site-context-panel-v225 > header,
.site-context-panel-v225 > header > div,
.site-context-panel-v225 > header strong,
.site-context-panel-v225 > header span {
  display: flex;
}

.site-context-panel-v225 > header {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-context-panel-v225 > header > div {
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.site-context-panel-v225 > header strong {
  color: #26332f;
  font-size: 12px;
}

.site-context-panel-v225 > header > div span {
  color: #78827e;
  font-size: 9px;
}

.site-toggle-v225 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid #d5dfd7;
  border-radius: 9px;
  background: #fff;
  color: #53605b;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.site-toggle-v225 input {
  width: 14px;
  height: 14px;
  accent-color: #6f9145;
}

.site-boundary-editor-v225 {
  display: grid;
  gap: 10px;
  padding-top: 11px;
  border-top: 1px solid #e0e6e1;
}

.site-boundary-editor-v225[hidden] {
  display: none;
}

.site-segment-tabs-v225 {
  display: flex;
  gap: 6px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}

.site-segment-tabs-v225 button,
.site-segment-actions-v225 button,
.site-ground-options-v225 button {
  min-height: 32px;
  border: 1px solid #d6dfd8;
  border-radius: 9px;
  background: #fff;
  color: #53605b;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.site-segment-tabs-v225 button {
  padding: 0 10px;
}

.site-segment-tabs-v225 button.is-active,
.site-ground-options-v225 button.is-active {
  border-color: #76994c;
  background: #e8f1dd;
  color: #405a29;
  box-shadow: inset 0 0 0 1px rgba(118, 153, 76, 0.15);
}

.site-field-grid-v225 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.site-field-grid-v225 label,
.site-ground-margin-v225 {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #5a6762;
  font-size: 9px;
  font-weight: 800;
}

.site-field-grid-v225 input,
.site-field-grid-v225 select {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid #d8e0da;
  border-radius: 9px;
  background: #fff;
  color: #26332f;
  font: 750 11px/1 system-ui, sans-serif;
}

.site-segment-actions-v225,
.site-ground-options-v225 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.site-segment-actions-v225 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-segment-actions-v225 button:first-child {
  border-color: #6f9145;
  background: #6f9145;
  color: #fff;
}

.site-segment-actions-v225 button:last-child {
  color: #9a4a3c;
}

.site-segment-actions-v225 button:nth-child(2) {
  border-color: #cbd8c3;
  background: #f4f8f0;
  color: #506b38;
}

.site-boundary-anchor-note-v231 {
  margin: -1px 0 0;
  padding: 7px 9px;
  border-radius: 8px;
  background: #edf4e7;
  color: #5e7052;
  font-size: 8px;
  line-height: 1.45;
}

.site-segment-actions-v225 button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.site-ground-v225 {
  display: grid;
  gap: 9px;
  padding-top: 11px;
  border-top: 1px solid #e0e6e1;
}

.site-ground-options-v225 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-ground-margin-v225 strong {
  float: right;
  color: #45632a;
}

.site-ground-margin-v225 input {
  width: 100%;
  accent-color: #6f9145;
}

.site-context-panel-v225 button:active {
  transform: translateY(1px);
}

/* Pergola base v326 */
.pergola-base-v326 {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #cddbc4;
  border-radius: 12px;
  background: linear-gradient(145deg, #f5f9f1, #eef5e8);
}

.pergola-base-v326 > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pergola-base-v326 > header > div,
.pergola-base-v326 > header strong,
.pergola-base-v326 > header span {
  display: block;
}

.pergola-base-v326 > header strong { color: #2e3b29; font-size: 11px; }
.pergola-base-v326 > header > div span { margin-top: 3px; color: #71806a; font-size: 8px; line-height: 1.4; }
.pergola-base-v326 > header label {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 29px;
  padding: 0 9px;
  border: 1px solid #cad8c0;
  border-radius: 999px;
  background: #fff;
  color: #4b623b;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
.pergola-base-v326 > header input { accent-color: #6f9145; }
.pergola-base-editor-v326 { display: grid; gap: 9px; }
.pergola-base-editor-v326[hidden] { display: none; }
.pergola-base-finishes-v326,
.pergola-base-fields-v326 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pergola-base-finishes-v326 button {
  min-height: 34px;
  border: 1px solid #d0dcc9;
  border-radius: 9px;
  background: #fff;
  color: #52634b;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
.pergola-base-finishes-v326 button.is-active { border-color: #71964a; color: #3f5c27; background: #dfecd2; }
.pergola-base-fields-v326 label { display: grid; gap: 5px; color: #596653; font-size: 9px; font-weight: 750; }
.pergola-base-fields-v326 input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid #d3ddcc;
  border-radius: 9px;
  outline: none;
  background: #fff;
  color: #283522;
  font: 750 11px/1 system-ui, sans-serif;
}
.pergola-base-fields-v326 input:focus { border-color: #749a4d; box-shadow: 0 0 0 3px rgba(116,154,77,.12); }

.radio-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.inline-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.radio-pill span,
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
}

.radio-pill input:checked + span {
  border-color: rgba(135, 173, 76, 0.52);
  box-shadow: inset 0 0 0 1px rgba(135, 173, 76, 0.22);
  background: rgba(135, 173, 76, 0.08);
}

.toggle-row {
  justify-content: space-between;
}

.toggle-row input {
  width: 46px;
  height: 26px;
  appearance: none;
  border-radius: 999px;
  background: rgba(20, 24, 28, 0.14);
  position: relative;
}

.toggle-row input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(20, 24, 28, 0.18);
  transition: transform 0.2s ease;
}

.toggle-row input:checked {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}

.toggle-row input:checked::after {
  transform: translateX(20px);
}

.slider-stack label,
.size-inputs label {
  display: grid;
  gap: 10px;
}

.slider-stack span,
.size-inputs span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
}

.slider-stack input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.size-inputs {
  display: grid;
  gap: 14px;
}

.size-inputs input[type="number"] {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-weight: 700;
}

.size-inputs input[type="number"]:disabled {
  background: rgba(244, 246, 240, 0.96);
  color: var(--ink-soft);
}

.size-edit-scope-v273 {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 3px 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(123, 157, 80, 0.28);
  border-radius: 12px;
  background: rgba(237, 246, 226, 0.72);
}

.size-edit-scope-v273 span {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.size-edit-scope-v273 strong {
  color: #55752d;
  font-size: 12px;
  text-align: right;
}

.size-edit-scope-v273 small {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.45;
}

.custom-entry {
  width: 100%;
  margin-top: 14px;
}

.helper-note {
  margin: 10px 2px 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.dock-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.nav-btn {
  min-height: 52px;
  flex: 1 1 0;
  cursor: pointer;
  font-weight: 700;
}

.nav-btn-primary {
  background: rgba(135, 173, 76, 0.14);
  border-color: rgba(135, 173, 76, 0.42);
}

.spec-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.spec-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
}

.spec-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #c9df8f);
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  body { overflow: auto; }
  .viewer-topbar { grid-template-columns: 1fr; }
  .control-dock {
    position: static;
    width: auto;
    margin: 140px 16px 16px;
  }
  .viewer-stage {
    position: fixed;
    inset: 0;
  }
  .viewer-badges {
    top: 170px;
    right: 16px;
    left: 16px;
  }
  .step-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* === one page mobile v3 start === */
html,
body,
.viewer-shell {
  max-width: 100%;
  overflow-x: hidden;
}

button,
.choice-card,
.scene-card,
.swatch,
.toggle-row,
.nav-btn,
.step-tab {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (max-width: 980px) {
  html,
  body {
    width: 100%;
    height: 100%;
    overflow: hidden !important;
    background: #f4f5f1;
  }

  body {
    overscroll-behavior: none;
  }

  .viewer-shell {
    width: 100%;
    height: 100svh;
    min-height: 100svh;
    display: grid;
    grid-template-rows: 58px minmax(230px, 42svh) minmax(0, 1fr);
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f7f8f4 55%, #f4f5f1 100%);
  }

  .studio-background {
    position: fixed;
    inset: 0;
    pointer-events: none;
  }

  .headline-block,
  .viewer-badges,
  .summary-card,
  .dock-header .eyebrow,
  .helper-note {
    display: none !important;
  }

  /* 顶部按钮不覆盖模型，单独占一行 */
  .viewer-topbar {
    position: relative;
    inset: auto;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: max(8px, env(safe-area-inset-top)) 12px 6px;
    min-width: 0;
  }

  .brand-chip {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    height: 44px;
    padding: 6px 10px;
    gap: 9px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(20, 24, 28, 0.08);
  }

  .brand-chip img {
    width: 46px;
    height: auto;
    padding: 2px;
  }

  .brand-kicker {
    display: none !important;
  }

  .brand-chip strong {
    margin: 0;
    font-size: 13px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ghost-link {
    flex: 0 0 auto;
    height: 44px;
    min-width: 72px;
    padding: 0 14px;
    border-radius: 15px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    box-shadow: 0 10px 24px rgba(20, 24, 28, 0.08);
    font-size: 13px;
    font-weight: 800;
  }

  /* 3D 模型区域 */
  .viewer-stage {
    position: relative;
    inset: auto;
    z-index: 3;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border-radius: 0 0 24px 24px;
    background:
      radial-gradient(circle at 50% 16%, rgba(0, 0, 0, 0.055), transparent 34%),
      linear-gradient(180deg, #ffffff 0%, #f7f8f4 100%);
    box-shadow: 0 14px 32px rgba(20, 24, 28, 0.09);
  }

  .three-stage {
    position: absolute;
    inset: 0;
  }

  .three-stage canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    touch-action: none;
  }

  .three-hint {
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    padding: 7px 11px;
    font-size: 9px;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 8px 18px rgba(20, 24, 28, 0.07);
  }

  /* 配置区域固定在下方，不产生页面滚动 */
  .control-dock {
    position: relative;
    inset: auto;
    z-index: 4;
    width: 100%;
    min-width: 0;
    height: 100%;
    display: block;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    overflow: hidden;
  }

  .control-card {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 8px;
    overflow: hidden;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 12px 30px rgba(20, 24, 28, 0.09);
  }

  .dock-header {
    margin: 0;
    min-height: 26px;
  }

  .dock-progress {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .dock-progress span {
    font-size: 12px;
    color: var(--ink-soft);
  }

  .dock-progress strong {
    margin: 0;
    font-size: 18px;
    line-height: 1.1;
    letter-spacing: -0.04em;
  }

  .step-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin: 0;
    overflow: hidden;
  }

  .step-tab {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 7px 5px;
    border-radius: 13px;
    font-size: 10px;
    line-height: 1.12;
    font-weight: 800;
    white-space: normal;
    overflow: hidden;
  }

  .step-panel {
    min-height: 0;
    overflow: hidden;
  }

  .step-panel.is-active {
    display: grid;
    align-content: center;
    gap: 9px;
  }

  .choice-grid,
  .scene-grid,
  .inline-options,
  .size-grid,
  .mount-grid,
  .state-grid,
  .swatch-row,
  .toggle-stack,
  .size-inputs {
    min-width: 0;
    display: grid;
    gap: 8px;
  }

  .choice-grid,
  .scene-grid,
  .inline-options,
  .size-grid,
  .mount-grid,
  .state-grid,
  .color-compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toggle-stack {
    grid-template-columns: 1fr;
  }

  .size-inputs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .size-inputs label:nth-child(3) {
    display: none;
  }

  .section-label {
    margin: 0;
    font-size: 10px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0.12em;
  }

  .choice-card,
  .scene-card,
  .swatch {
    min-width: 0;
    min-height: 42px;
    padding: 9px 9px;
    border-radius: 14px;
    font-size: 12px;
    line-height: 1.15;
    font-weight: 800;
  }

  .swatch {
    gap: 8px;
  }

  .swatch > span:first-child {
    width: 16px;
    height: 16px;
  }

  .swatch-copy {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .radio-pill span,
  .toggle-row {
    min-height: 42px;
    padding: 9px 10px;
    border-radius: 14px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
  }

  .toggle-row {
    justify-content: space-between;
    gap: 10px;
  }

  .toggle-row span {
    min-width: 0;
  }

  .toggle-row input {
    flex: 0 0 auto;
    width: 44px;
    height: 24px;
  }

  .toggle-row input::after {
    width: 18px;
    height: 18px;
  }

  .toggle-row input:checked::after {
    transform: translateX(20px);
  }

  .size-inputs label {
    gap: 5px;
  }

  .size-inputs span {
    display: grid;
    gap: 2px;
    font-size: 11px;
    line-height: 1.2;
  }

  .size-inputs input[type="number"] {
    min-height: 40px;
    padding: 0 10px;
    border-radius: 13px;
    font-size: 13px;
  }

  .custom-entry {
    display: none;
  }

  .motion-button {
    margin: 0;
    width: 100%;
  }

  .scene-light-toggle {
    margin-top: 0;
  }

  .dock-actions {
    display: flex;
    gap: 9px;
    margin: 0;
    padding: 0;
    position: static;
    background: transparent;
  }

  .nav-btn {
    min-height: 44px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 900;
  }
}

@media (max-height: 720px) and (max-width: 980px) {
  .viewer-shell {
    grid-template-rows: 54px minmax(200px, 36svh) minmax(0, 1fr);
  }

  .brand-chip,
  .ghost-link {
    height: 40px;
  }

  .brand-chip img {
    width: 42px;
  }

  .step-tab {
    min-height: 34px;
    font-size: 9px;
  }

  .choice-card,
  .scene-card,
  .swatch,
  .radio-pill span,
  .toggle-row {
    min-height: 38px;
    padding: 8px;
  }

  .nav-btn {
    min-height: 40px;
  }
}

@media (max-width: 380px) {
  .viewer-shell {
    grid-template-rows: 54px minmax(195px, 35svh) minmax(0, 1fr);
  }

  .control-dock {
    padding-left: 9px;
    padding-right: 9px;
  }

  .control-card {
    padding: 10px;
  }

  .step-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .step-tab {
    font-size: 8.5px;
    padding-left: 3px;
    padding-right: 3px;
  }
}
/* === one page mobile v3 end === */


/* === mobile compact spacing v4 start === */
@media (max-width: 980px) {
  /* 整体更紧凑：顶部栏 + 3D + 操作面板紧贴 */
  .viewer-shell {
    grid-template-rows: 52px minmax(210px, 38svh) minmax(0, 1fr) !important;
    gap: 0 !important;
  }

  .viewer-topbar {
    padding: max(6px, env(safe-area-inset-top)) 10px 4px !important;
  }

  .brand-chip,
  .ghost-link {
    height: 40px !important;
  }

  .brand-chip {
    padding: 5px 9px !important;
    border-radius: 13px !important;
  }

  .brand-chip img {
    width: 42px !important;
  }

  .brand-chip strong {
    font-size: 12px !important;
  }

  .ghost-link {
    min-width: 66px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
    border-radius: 13px !important;
  }

  /* 3D卡片底部不要留太多空 */
  .viewer-stage {
    border-radius: 0 0 18px 18px !important;
    box-shadow: 0 8px 20px rgba(20, 24, 28, 0.07) !important;
  }

  .three-hint {
    bottom: 6px !important;
    padding: 5px 9px !important;
    font-size: 8px !important;
  }

  /* 操作面板上移，贴近3D */
  .control-dock {
    padding: 4px 10px calc(8px + env(safe-area-inset-bottom)) !important;
    margin-top: -2px !important;
  }

  .control-card {
    padding: 9px !important;
    border-radius: 18px !important;
    gap: 6px !important;
  }

  .dock-header {
    min-height: 22px !important;
  }

  .dock-progress span {
    font-size: 10px !important;
  }

  .dock-progress strong {
    font-size: 15px !important;
  }

  /* 步骤按钮更小，一页放得下 */
  .step-nav {
    gap: 5px !important;
  }

  .step-tab {
    min-height: 30px !important;
    padding: 5px 3px !important;
    border-radius: 10px !important;
    font-size: 8.5px !important;
    line-height: 1.05 !important;
    font-weight: 800 !important;
  }

  .step-panel.is-active {
    gap: 6px !important;
    align-content: center !important;
  }

  .section-label {
    font-size: 8.5px !important;
    margin: 0 !important;
    line-height: 1 !important;
  }

  .choice-grid,
  .scene-grid,
  .inline-options,
  .size-grid,
  .mount-grid,
  .state-grid,
  .swatch-row,
  .toggle-stack,
  .size-inputs {
    gap: 6px !important;
  }

  .choice-card,
  .scene-card,
  .swatch {
    min-height: 34px !important;
    padding: 6px 7px !important;
    border-radius: 11px !important;
    font-size: 10.5px !important;
    line-height: 1.08 !important;
  }

  .radio-pill span,
  .toggle-row {
    min-height: 34px !important;
    padding: 6px 8px !important;
    border-radius: 11px !important;
    font-size: 10.5px !important;
    line-height: 1.1 !important;
  }

  .swatch > span:first-child {
    width: 13px !important;
    height: 13px !important;
  }

  .swatch-copy {
    font-size: 10.5px !important;
  }

  .toggle-row input {
    width: 38px !important;
    height: 21px !important;
  }

  .toggle-row input::after {
    width: 15px !important;
    height: 15px !important;
  }

  .toggle-row input:checked::after {
    transform: translateX(17px) !important;
  }

  .size-inputs span {
    font-size: 9.5px !important;
  }

  .size-inputs input[type="number"] {
    min-height: 34px !important;
    padding: 0 8px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
  }

  .motion-button {
    min-height: 36px !important;
  }

  .dock-actions {
    gap: 7px !important;
  }

  .nav-btn {
    min-height: 38px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
  }
}

/* 矮屏手机再压缩一点 */
@media (max-width: 980px) and (max-height: 720px) {
  .viewer-shell {
    grid-template-rows: 48px minmax(185px, 34svh) minmax(0, 1fr) !important;
  }

  .control-dock {
    padding-top: 2px !important;
  }

  .control-card {
    padding: 8px !important;
    gap: 5px !important;
  }

  .step-tab {
    min-height: 28px !important;
    font-size: 8px !important;
  }

  .choice-card,
  .scene-card,
  .swatch,
  .radio-pill span,
  .toggle-row {
    min-height: 31px !important;
    font-size: 10px !important;
    padding: 5px 6px !important;
  }

  .nav-btn {
    min-height: 35px !important;
  }
}

@media (max-width: 380px) {
  .viewer-shell {
    grid-template-rows: 48px minmax(175px, 32svh) minmax(0, 1fr) !important;
  }

  .step-tab {
    font-size: 7.5px !important;
  }

  .brand-chip strong {
    font-size: 11px !important;
  }
}
/* === mobile compact spacing v4 end === */


/* === layout premium ui v7 start === */
html,
body,
.viewer-shell {
  max-width: 100%;
  overflow-x: hidden;
}

button,
.choice-card,
.scene-card,
.swatch,
.toggle-row,
.nav-btn,
.step-tab {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.layout-panel.is-active {
  display: grid;
  gap: 14px;
}

.layout-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.layout-title-row strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  letter-spacing: -0.05em;
}

.layout-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.layout-card {
  display: grid;
  gap: 8px;
  align-content: start;
  text-align: left;
  min-height: 118px;
}

.layout-card strong {
  font-size: 15px;
}

.layout-card small {
  color: var(--ink-soft);
  line-height: 1.35;
}

.layout-icon {
  width: 46px;
  height: 34px;
  display: block;
  border-radius: 10px;
  border: 2px solid rgba(20, 24, 28, 0.28);
  background: rgba(135, 173, 76, 0.1);
}

.layout-l {
  clip-path: polygon(0 0, 55% 0, 55% 45%, 100% 45%, 100% 100%, 0 100%);
}

.layout-custom {
  border-style: dashed;
}

.layout-preview-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(135,173,76,0.09), rgba(255,255,255,0.88));
  border: 1px solid rgba(20, 24, 28, 0.1);
}

.layout-mini-canvas {
  position: relative;
  height: 96px;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(rgba(20,24,28,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,24,28,.055) 1px, transparent 1px),
    rgba(255,255,255,0.86);
  background-size: 16px 16px;
}

.layout-zone {
  position: absolute;
  border: 2px solid rgba(97, 127, 52, 0.9);
  background: rgba(135, 173, 76, 0.18);
  border-radius: 8px;
}

.zone-a {
  left: 24px;
  top: 22px;
  width: 86px;
  height: 52px;
}

.zone-b {
  display: none;
}

.layout-mini-canvas[data-mode="l-shape"] .zone-a {
  left: 20px;
  top: 16px;
  width: 76px;
  height: 48px;
}

.layout-mini-canvas[data-mode="l-shape"] .zone-b {
  display: block;
  left: 58px;
  top: 48px;
  width: 58px;
  height: 34px;
}

.layout-mini-canvas[data-mode="custom"] .zone-a {
  left: 22px;
  top: 20px;
  width: 88px;
  height: 54px;
  border-style: dashed;
}

.layout-preview-copy strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.layout-preview-copy span {
  color: var(--ink-soft);
  line-height: 1.45;
}

@media (max-width: 980px) {
  html,
  body {
    width: 100%;
    height: 100%;
    overflow: hidden !important;
    background: #f4f5f1;
  }

  body {
    overscroll-behavior: none;
  }

  .viewer-shell {
    width: 100%;
    height: 100svh;
    min-height: 100svh;
    display: grid !important;
    grid-template-rows: 50px minmax(180px, 34svh) minmax(0, 1fr) !important;
    gap: 0 !important;
    overflow: hidden !important;
    background: linear-gradient(180deg, #ffffff 0%, #f7f8f4 54%, #f4f5f1 100%);
  }

  .studio-background {
    position: fixed;
    inset: 0;
    pointer-events: none;
  }

  .headline-block,
  .viewer-badges,
  .summary-card,
  .dock-header .eyebrow,
  .helper-note {
    display: none !important;
  }

  .viewer-topbar {
    position: relative !important;
    inset: auto !important;
    z-index: 8;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: max(6px, env(safe-area-inset-top)) 10px 4px !important;
    min-width: 0;
  }

  .brand-chip {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px !important;
    padding: 5px 9px !important;
    gap: 8px;
    border-radius: 14px !important;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 8px 20px rgba(20,24,28,0.08);
  }

  .brand-chip img {
    width: 42px !important;
    height: auto;
    padding: 2px;
  }

  .brand-kicker {
    display: none !important;
  }

  .brand-chip strong {
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.15;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ghost-link {
    flex: 0 0 auto;
    height: 40px !important;
    min-width: 66px !important;
    padding: 0 12px !important;
    border-radius: 14px !important;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.96);
    color: var(--ink);
    box-shadow: 0 8px 20px rgba(20,24,28,0.08);
    font-size: 12px !important;
    font-weight: 800;
  }

  .viewer-stage {
    position: relative !important;
    inset: auto !important;
    z-index: 3;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border-radius: 0 0 18px 18px !important;
    background:
      radial-gradient(circle at 50% 18%, rgba(0,0,0,0.055), transparent 34%),
      linear-gradient(180deg, #ffffff 0%, #f7f8f4 100%);
    box-shadow: 0 8px 20px rgba(20,24,28,0.07) !important;
  }

  .three-stage {
    position: absolute;
    inset: 0;
  }

  .three-stage canvas {
    width: 100% !important;
    height: 100% !important;
    touch-action: none;
  }

  .three-hint {
    left: 50% !important;
    bottom: 6px !important;
    transform: translateX(-50%);
    padding: 5px 9px !important;
    font-size: 8px !important;
    white-space: nowrap;
    background: rgba(255,255,255,0.82);
  }

  .control-dock {
    position: relative !important;
    inset: auto !important;
    z-index: 4;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    padding: 4px 10px calc(8px + env(safe-area-inset-bottom)) !important;
    overflow: hidden !important;
  }

  .control-card {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid !important;
    grid-template-rows: auto auto minmax(0, 1fr) auto !important;
    gap: 6px !important;
    overflow: hidden !important;
    padding: 9px !important;
    border-radius: 18px !important;
    background: rgba(255,255,255,0.97);
    box-shadow: 0 10px 24px rgba(20,24,28,0.08);
  }

  .dock-header {
    margin: 0 !important;
    min-height: 22px !important;
  }

  .dock-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .dock-progress span {
    font-size: 10px !important;
  }

  .dock-progress strong {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.1;
  }

  .step-nav {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  .step-tab {
    min-width: 0 !important;
    min-height: 28px !important;
    padding: 4px 3px !important;
    border-radius: 9px !important;
    font-size: 8px !important;
    line-height: 1.05 !important;
    font-weight: 900 !important;
    white-space: normal !important;
  }

  .step-panel {
    min-height: 0;
    overflow: hidden;
  }

  .step-panel.is-active {
    display: grid !important;
    align-content: center;
    gap: 6px !important;
  }

  .layout-title-row {
    display: none;
  }

  .layout-mode-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .layout-card {
    min-height: 76px !important;
    padding: 7px 6px !important;
    gap: 4px;
    text-align: center;
    align-content: center;
  }

  .layout-card strong {
    font-size: 10.5px;
  }

  .layout-card small {
    font-size: 8.5px;
    line-height: 1.15;
  }

  .layout-icon {
    width: 34px;
    height: 24px;
    margin: 0 auto;
    border-radius: 7px;
  }

  .layout-preview-card {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
    border-radius: 13px;
  }

  .layout-mini-canvas {
    height: 58px;
    border-radius: 10px;
    background-size: 12px 12px;
  }

  .zone-a {
    left: 18px;
    top: 16px;
    width: 56px;
    height: 30px;
    border-radius: 6px;
  }

  .layout-mini-canvas[data-mode="l-shape"] .zone-a {
    left: 14px;
    top: 12px;
    width: 48px;
    height: 28px;
  }

  .layout-mini-canvas[data-mode="l-shape"] .zone-b {
    left: 38px;
    top: 31px;
    width: 38px;
    height: 20px;
    border-radius: 6px;
  }

  .layout-preview-copy strong {
    font-size: 12px;
    margin-bottom: 2px;
  }

  .layout-preview-copy span {
    font-size: 9px;
    line-height: 1.25;
  }

  .choice-grid,
  .scene-grid,
  .inline-options,
  .size-grid,
  .mount-grid,
  .state-grid,
  .color-compact-grid,
  .toggle-stack,
  .size-inputs {
    display: grid !important;
    gap: 6px !important;
  }

  .choice-grid,
  .scene-grid,
  .inline-options,
  .size-grid,
  .mount-grid,
  .state-grid,
  .color-compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .toggle-stack {
    grid-template-columns: 1fr !important;
  }

  .size-inputs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .size-inputs label:nth-child(3) {
    display: none;
  }

  .section-label {
    margin: 0 !important;
    font-size: 8.5px !important;
    line-height: 1 !important;
  }

  .choice-card,
  .scene-card,
  .swatch,
  .radio-pill span,
  .toggle-row {
    min-height: 34px !important;
    padding: 6px 7px !important;
    border-radius: 11px !important;
    font-size: 10.5px !important;
    line-height: 1.08 !important;
    font-weight: 800 !important;
  }

  .swatch {
    gap: 7px !important;
  }

  .swatch > span:first-child {
    width: 13px !important;
    height: 13px !important;
  }

  .swatch-copy {
    font-size: 10px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .toggle-row {
    justify-content: space-between;
    gap: 8px;
  }

  .toggle-row input {
    width: 38px !important;
    height: 21px !important;
    flex: 0 0 auto;
  }

  .toggle-row input::after {
    width: 15px !important;
    height: 15px !important;
  }

  .toggle-row input:checked::after {
    transform: translateX(17px) !important;
  }

  .size-inputs label {
    gap: 5px !important;
  }

  .size-inputs span {
    display: grid !important;
    gap: 2px;
    font-size: 9.5px !important;
    line-height: 1.15;
  }

  .size-inputs input[type="number"] {
    min-height: 34px !important;
    padding: 0 8px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
  }

  .custom-entry {
    display: none !important;
  }

  .motion-button {
    margin: 0 !important;
  }

  .dock-actions {
    display: flex !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    background: transparent !important;
  }

  .nav-btn {
    min-height: 36px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
  }
}

@media (max-width: 380px), (max-height: 700px) {
  .viewer-shell {
    grid-template-rows: 46px minmax(160px, 31svh) minmax(0, 1fr) !important;
  }

  .brand-chip,
  .ghost-link {
    height: 37px !important;
  }

  .brand-chip img {
    width: 38px !important;
  }

  .brand-chip strong {
    font-size: 11px !important;
  }

  .step-tab {
    min-height: 25px !important;
    font-size: 7.4px !important;
  }

  .layout-card {
    min-height: 66px !important;
  }

  .layout-preview-card {
    display: none;
  }

  .choice-card,
  .scene-card,
  .swatch,
  .radio-pill span,
  .toggle-row {
    min-height: 30px !important;
    font-size: 9.8px !important;
    padding: 5px 6px !important;
  }

  .nav-btn {
    min-height: 33px !important;
  }
}
/* === layout premium ui v7 end === */



/* === lshape size controls v15 start === */
.lshape-controls[hidden] {
  display: none !important;
}

.lshape-controls {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(20, 24, 28, 0.1);
  background: linear-gradient(135deg, rgba(135, 173, 76, 0.08), rgba(255, 255, 255, 0.92));
}

.lshape-size-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.lshape-size-grid label {
  display: grid;
  gap: 7px;
}

.lshape-size-grid span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
}

.lshape-size-grid input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 980px) {
  .lshape-controls {
    gap: 5px !important;
    padding: 7px !important;
    border-radius: 12px !important;
  }

  .lshape-size-grid {
    gap: 6px !important;
  }

  .lshape-size-grid span {
    display: grid !important;
    gap: 2px;
    font-size: 9px !important;
    line-height: 1.1;
  }

  .lshape-size-grid input {
    min-height: 31px !important;
    padding: 0 7px !important;
    border-radius: 10px !important;
    font-size: 10.5px !important;
  }
}

@media (max-height: 700px), (max-width: 380px) {
  .lshape-controls {
    padding: 5px !important;
  }

  .lshape-size-grid input {
    min-height: 28px !important;
  }
}
/* === lshape size controls v15 end === */


/* === number input fix v16 start === */
input[type="number"] {
  pointer-events: auto !important;
  user-select: text !important;
  -webkit-user-select: text !important;
  touch-action: manipulation !important;
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  opacity: 1;
}

@media (max-width: 980px) {
  .lshape-size-grid input,
  .size-inputs input[type="number"] {
    font-size: 16px !important;
    line-height: 1 !important;
  }
}
/* === number input fix v16 end === */

/* === staggered L module controls v230 === */
.lshape-position-controls-v230 {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(64, 91, 37, 0.14);
}

.lshape-position-grid-v230 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, 0.72fr);
  gap: 9px;
}

.lshape-position-grid-v230 label {
  display: grid;
  gap: 6px;
}

.lshape-position-grid-v230 label > span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 850;
}

.lshape-position-grid-v230 input {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
}

.lshape-connection-status-v230 {
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 7px 9px;
  border: 1px solid rgba(111, 145, 69, 0.2);
  border-radius: 12px;
  background: rgba(111, 145, 69, 0.09);
}

.lshape-connection-status-v230 span,
.lshape-connection-status-v230 small {
  color: #6f796a;
  font-size: 8px;
}

.lshape-connection-status-v230 strong {
  color: #405b25;
  font-size: 12px;
}

.lshape-offset-actions-v230 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.lshape-offset-actions-v230 button {
  min-height: 32px;
  padding: 0 6px;
  border: 1px solid #d7e0d2;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.85);
  color: #4d5c46;
  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
}

.lshape-offset-actions-v230 button:nth-child(2) {
  border-color: #75974f;
  background: #edf4e5;
  color: #405b25;
}

.lshape-position-controls-v230 > p {
  margin: 0;
  color: #737d70;
  font-size: 8px;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .lshape-position-controls-v230 { gap: 5px; padding-top: 6px; }
  .lshape-position-grid-v230 { grid-template-columns: 1fr 0.72fr; gap: 5px; }
  .lshape-position-grid-v230 input { min-height: 31px; padding: 0 7px; font-size: 16px; }
  .lshape-offset-actions-v230 button { min-height: 29px; font-size: 8px; }
  .lshape-position-controls-v230 > p { font-size: 7px; }
}



/* === locked 3d mobile v17 start === */
@media (max-width: 980px) {
  :root {
    --mobile-topbar-height: 50px;
    --mobile-3d-height: 34lvh;
    --mobile-panel-top: calc(var(--mobile-topbar-height) + var(--mobile-3d-height));
  }

  html,
  body {
    width: 100%;
    height: 100%;
    max-width: 100%;
    overflow: hidden !important;
    position: fixed !important;
    inset: 0 !important;
    overscroll-behavior: none !important;
    touch-action: manipulation;
    background: #f4f5f1;
  }

  body {
    -webkit-overflow-scrolling: auto !important;
  }

  .viewer-shell {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100lvh !important;
    min-height: 100lvh !important;
    max-height: 100lvh !important;
    display: block !important;
    overflow: hidden !important;
    background: linear-gradient(180deg, #ffffff 0%, #f7f8f4 54%, #f4f5f1 100%);
  }

  .studio-background {
    position: fixed !important;
    inset: 0 !important;
    pointer-events: none;
  }

  /* 顶部栏固定，不参与页面流 */
  .viewer-topbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: var(--mobile-topbar-height) !important;
    z-index: 30 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: max(6px, env(safe-area-inset-top)) 10px 4px !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.82)) !important;
    backdrop-filter: blur(10px);
  }

  .brand-chip,
  .ghost-link {
    height: 40px !important;
  }

  .brand-chip {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .ghost-link {
    flex: 0 0 auto !important;
  }

  /* 3D区域固定：不会被下拉、输入框、键盘推走 */
  .viewer-stage {
    position: fixed !important;
    top: var(--mobile-topbar-height) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: var(--mobile-3d-height) !important;
    min-height: 180px !important;
    max-height: none !important;
    z-index: 20 !important;
    overflow: hidden !important;
    border-radius: 0 0 18px 18px !important;
    transform: translateZ(0);
    will-change: transform;
    background:
      radial-gradient(circle at 50% 18%, rgba(0,0,0,0.055), transparent 34%),
      linear-gradient(180deg, #ffffff 0%, #f7f8f4 100%) !important;
    box-shadow: 0 8px 20px rgba(20,24,28,0.07) !important;
  }

  .three-stage {
    position: absolute !important;
    inset: 0 !important;
  }

  .three-stage canvas {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    touch-action: none !important;
  }

  .three-hint {
    position: absolute !important;
    left: 50% !important;
    bottom: 6px !important;
    transform: translateX(-50%) !important;
    z-index: 2 !important;
    pointer-events: none !important;
  }

  /* 下方控制面板固定在3D下面，只让面板内部滚动 */
  .control-dock {
    position: fixed !important;
    top: var(--mobile-panel-top) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: auto !important;
    z-index: 25 !important;
    padding: 4px 10px calc(8px + env(safe-area-inset-bottom)) !important;
    overflow: hidden !important;
    display: block !important;
    background: #f4f5f1 !important;
  }

  .control-card {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
    display: grid !important;
    grid-template-rows: auto auto minmax(0, 1fr) auto !important;
  }

  .step-panel {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 2px;
  }

  .step-panel.is-active {
    align-content: start !important;
  }

  .dock-actions {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 5 !important;
    padding-top: 6px !important;
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.96) 35%, rgba(255,255,255,1)) !important;
  }

  .headline-block,
  .viewer-badges,
  .summary-card {
    display: none !important;
  }
}

@media (max-width: 980px) and (max-height: 720px) {
  :root {
    --mobile-topbar-height: 46px;
    --mobile-3d-height: 31lvh;
  }

  .brand-chip,
  .ghost-link {
    height: 37px !important;
  }

  .viewer-stage {
    min-height: 155px !important;
  }
}

@media (max-width: 380px) {
  :root {
    --mobile-topbar-height: 46px;
    --mobile-3d-height: 30lvh;
  }
}
/* === locked 3d mobile v17 end === */



/* === layout plan view v18 start === */
.layout-plan-panel {
  display: grid;
  gap: 10px;
  padding: 13px;
  border-radius: 20px;
  border: 1px solid rgba(20, 24, 28, 0.1);
  background:
    linear-gradient(135deg, rgba(135, 173, 76, 0.08), rgba(255, 255, 255, 0.95));
}

.layout-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.layout-plan-head strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
  letter-spacing: -0.04em;
}

.layout-plan-head em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.layout-plan-canvas {
  height: 190px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(20, 24, 28, 0.08);
}

.layout-plan-canvas svg {
  width: 100%;
  height: 100%;
  display: block;
}

.plan-grid line {
  stroke: rgba(20, 24, 28, 0.055);
  stroke-width: 1;
}

.plan-zone {
  fill: rgba(135, 173, 76, 0.18);
  stroke: rgba(97, 127, 52, 0.92);
  stroke-width: 2.4;
}

.plan-zone-2 {
  fill: rgba(95, 102, 105, 0.12);
  stroke: rgba(95, 102, 105, 0.78);
}

.plan-zone-label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  fill: var(--ink);
}

.plan-dim-text {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  fill: var(--ink-soft);
}

.layout-plan-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.layout-plan-specs span {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(20, 24, 28, 0.08);
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.25;
}

.layout-plan-specs strong {
  color: var(--ink);
  font-size: 12px;
}

@media (max-width: 980px) {
  .layout-plan-panel {
    gap: 6px !important;
    padding: 7px !important;
    border-radius: 13px !important;
  }

  .layout-plan-head strong {
    font-size: 12px !important;
    margin-top: 2px !important;
  }

  .layout-plan-head em {
    font-size: 8px !important;
  }

  .layout-plan-canvas {
    height: 88px !important;
    border-radius: 10px !important;
  }

  .layout-plan-specs {
    gap: 5px !important;
  }

  .layout-plan-specs span {
    padding: 5px 6px !important;
    border-radius: 9px !important;
    font-size: 8.5px !important;
  }

  .layout-plan-specs strong {
    font-size: 8.5px !important;
  }

  .plan-zone-label {
    font-size: 11px !important;
  }

  .plan-dim-text {
    font-size: 8px !important;
  }
}

@media (max-height: 700px), (max-width: 380px) {
  .layout-plan-canvas {
    height: 70px !important;
  }

  .layout-plan-specs {
    display: none !important;
  }
}
/* === layout plan view v18 end === */



/* === custom canvas v19 start === */
.custom-canvas-panel[hidden] {
  display: none !important;
}

.custom-canvas-panel {
  display: grid;
  gap: 10px;
  padding: 13px;
  border-radius: 20px;
  border: 1px solid rgba(20, 24, 28, 0.1);
  background:
    linear-gradient(135deg, rgba(135, 173, 76, 0.08), rgba(255, 255, 255, 0.96));
}

.custom-canvas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.custom-canvas-head strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
  letter-spacing: -0.04em;
}

.custom-mini-btn {
  border: 1px solid rgba(135, 173, 76, 0.42);
  background: rgba(135, 173, 76, 0.12);
  color: var(--ink);
  border-radius: 999px;
  min-height: 34px;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.custom-mini-btn.danger {
  border-color: rgba(180, 70, 70, 0.28);
  background: rgba(180, 70, 70, 0.08);
}

.custom-canvas-wrap {
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(20, 24, 28, 0.08);
}

.custom-canvas-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: crosshair;
}

.custom-grid line {
  stroke: rgba(20, 24, 28, 0.055);
  stroke-width: 1;
}

.custom-zone {
  fill: rgba(135, 173, 76, 0.18);
  stroke: rgba(97, 127, 52, 0.9);
  stroke-width: 2.2;
  cursor: grab;
}

.custom-zone.is-selected {
  fill: rgba(135, 173, 76, 0.28);
  stroke: rgba(97, 127, 52, 1);
  stroke-width: 3;
}

.custom-zone-label {
  pointer-events: none;
  font-size: 12px;
  font-weight: 900;
  fill: var(--ink);
}

.custom-zone-dim {
  pointer-events: none;
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 700;
  fill: var(--ink-soft);
}

.custom-zone-editor {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: end;
}

.custom-zone-editor label {
  display: grid;
  gap: 6px;
}

.custom-zone-editor span {
  font-size: 11px;
  font-weight: 900;
  color: var(--ink-soft);
}

.custom-zone-editor input {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  font-weight: 900;
}

.custom-canvas-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .custom-canvas-panel {
    gap: 6px !important;
    padding: 7px !important;
    border-radius: 13px !important;
  }

  .custom-canvas-head strong {
    font-size: 12px !important;
    margin-top: 2px !important;
  }

  .custom-mini-btn {
    min-height: 28px !important;
    padding: 0 9px !important;
    font-size: 9px !important;
  }

  .custom-canvas-wrap {
    height: 102px !important;
    border-radius: 10px !important;
  }

  .custom-zone-editor {
    grid-template-columns: 1fr 1fr auto;
    gap: 5px !important;
  }

  .custom-zone-editor span {
    font-size: 8px !important;
  }

  .custom-zone-editor input {
    min-height: 28px !important;
    padding: 0 6px !important;
    border-radius: 9px !important;
    font-size: 13px !important;
  }

  .custom-canvas-note {
    font-size: 8px !important;
  }

  .custom-zone-label {
    font-size: 10px !important;
  }

  .custom-zone-dim {
    font-size: 7px !important;
  }
}

@media (max-height: 700px), (max-width: 380px) {
  .custom-canvas-wrap {
    height: 82px !important;
  }

  .custom-canvas-note {
    display: none !important;
  }
}
/* === custom canvas v19 end === */


/* === polygon v36 main cleanup start === */
#click-capture-layer,
#draw,
#pcanvas,
[data-line-draw-page],
[data-force-big-canvas],
[data-big-canvas-page],
[data-custom-canvas-panel] {
  display: none !important;
}

.three-stage canvas,
canvas {
  pointer-events: auto !important;
}
/* === polygon v36 main cleanup end === */


/* === polygon v36 cleanup start === */
#click-capture-layer,
#draw,
#pcanvas,
[data-line-draw-page],
[data-force-big-canvas],
[data-big-canvas-page],
[data-custom-canvas-panel] {
  display: none !important;
}

.three-stage canvas,
canvas {
  pointer-events: auto !important;
}
/* === polygon v36 cleanup end === */

.layout-plan-panel,
.layout-preview-card {
  display: none !important;
}


/* === scene card compact v118 start === */

/* Scene modal overall */
.jy-scene-modal-panel-v72,
.jy-scene-dialog-v72,
.scene-modal-panel-v63 {
  max-width: 720px !important;
}

/* Scene grid tighter */
.jy-scene-grid-v72,
.scene-modal-grid-v63 {
  gap: 10px !important;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)) !important;
}

/* Each scene card smaller */
.jy-scene-card-v72,
.scene-modal-option-v63 {
  min-height: 78px !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
}

/* Title */
.jy-scene-card-v72 strong,
.scene-modal-option-v63 strong {
  font-size: 13px !important;
  line-height: 1.15 !important;
  margin-bottom: 4px !important;
}

/* Description */
.jy-scene-card-v72 span,
.scene-modal-option-v63 span {
  font-size: 11px !important;
  line-height: 1.25 !important;
}

/* Pill */
.jy-scene-card-v72 .jy-scene-pill-v72,
.scene-modal-option-v63 .scene-pill-v63,
.jy-scene-pill-v72 {
  font-size: 10px !important;
  line-height: 1 !important;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  margin-top: 6px !important;
}

/* Mobile even smaller */
@media (max-width: 768px) {
  .jy-scene-modal-panel-v72,
  .jy-scene-dialog-v72,
  .scene-modal-panel-v63 {
    max-width: calc(100vw - 24px) !important;
  }

  .jy-scene-grid-v72,
  .scene-modal-grid-v63 {
    gap: 8px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .jy-scene-card-v72,
  .scene-modal-option-v63 {
    min-height: 72px !important;
    padding: 9px 10px !important;
  }

  .jy-scene-card-v72 strong,
  .scene-modal-option-v63 strong {
    font-size: 12px !important;
  }

  .jy-scene-card-v72 span,
  .scene-modal-option-v63 span {
    font-size: 10px !important;
  }

  .jy-scene-card-v72 .jy-scene-pill-v72,
  .scene-modal-option-v63 .scene-pill-v63,
  .jy-scene-pill-v72 {
    font-size: 9px !important;
    padding: 3px 7px !important;
  }
}
/* === scene card compact v118 end === */


/* === topbar bg remove v119 start === */
.viewer-topbar {
  pointer-events: none !important;
}

.viewer-topbar .topbar-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
}

.viewer-topbar .topbar-main,
.viewer-topbar .brand-chip,
.viewer-topbar .topbar-actions-v82,
.viewer-topbar .ghost-link,
.viewer-topbar #jy-scene-fab-v72 {
  pointer-events: auto !important;
}

/* 状态小标签如果显示，也不要出现大白底 */
.viewer-topbar .topbar-status {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
/* === topbar bg remove v119 end === */


/* === no lock skip autofit v132 css start === */
.viewer-stage,
.three-stage,
[data-three-stage],
[data-three-stage] canvas,
canvas {
  transition: none !important;
  animation: none !important;
  filter: none !important;
}
/* === no lock skip autofit v132 css end === */


/* === rebuild wall mounted v122 v133 css start === */
.wall-mounted-options-v133 {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(20, 24, 28, 0.04);
  border: 1px solid rgba(20, 24, 28, 0.08);
}

.wall-mounted-options-v133[hidden] {
  display: none !important;
}

.wall-side-grid-v133 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.wall-shape-grid-v220 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.wall-scenario-grid-v226 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.wall-scenario-grid-v226 .choice-card {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 3px;
  min-height: 54px !important;
  padding: 8px 10px !important;
  text-align: left;
}

.wall-scenario-grid-v226 .choice-card:last-child {
  grid-column: 1 / -1;
}

.wall-scenario-grid-v226 strong,
.wall-scenario-grid-v226 small {
  display: block;
}

.wall-scenario-grid-v226 strong {
  color: inherit;
  font-size: 10px;
}

.wall-scenario-grid-v226 small {
  color: rgba(35, 48, 44, 0.56);
  font-size: 8px;
  font-weight: 700;
}

.wall-scenario-grid-v226 .is-active small {
  color: rgba(55, 82, 35, 0.68);
}

.wall-direction-grid-v226 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.wall-direction-grid-v226 .choice-card {
  min-height: 42px !important;
  padding: 8px !important;
  font-size: 9px !important;
}

[data-wall-corner-block-v226][hidden],
[data-wall-opposite-block-v226][hidden],
[data-wall-opening-block-v226][hidden],
[data-wall-custom-block-v226][hidden] {
  display: none !important;
}

.wall-shape-grid-v220 .choice-card {
  min-height: 46px !important;
  padding: 8px 9px !important;
  border-radius: 13px !important;
  font-size: 11px !important;
}

[data-wall-side-block-v220][hidden],
[data-wall-shape-v220][hidden] {
  display: none !important;
}

.wall-clearance-v222 {
  display: grid;
  gap: 7px;
  padding: 10px 11px;
  border: 1px solid rgba(20, 24, 28, 0.08);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
}

.wall-clearance-v222 > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #303735;
  font-size: 11px;
  font-weight: 800;
}

.wall-clearance-v222 strong {
  color: #5f7e39;
  font-size: 11px;
}

.wall-clearance-v222 input {
  width: 100%;
  accent-color: #719446;
}

.wall-clearance-v222 small {
  color: rgba(20, 24, 28, 0.54);
  font-size: 9px;
  line-height: 1.4;
}

.wall-house-dimensions-v305 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 11px;
  border: 1px solid rgba(20, 24, 28, 0.08);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
}

.wall-house-dimensions-v305 label > span {
  display: block;
  margin: 0 0 5px 2px;
  color: #4f5853;
  font-size: 10px;
  font-weight: 800;
}

.wall-house-dimensions-v305 input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #d6ddd1;
  border-radius: 10px;
  outline: none;
  color: #263225;
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}

.wall-house-dimensions-v305 input:focus {
  border-color: #789c51;
  box-shadow: 0 0 0 3px rgba(120, 156, 81, .13);
}

.wall-house-dimensions-v305 small {
  grid-column: 1 / -1;
  color: rgba(20, 24, 28, 0.56);
  font-size: 9px;
  line-height: 1.4;
}

.wall-side-grid-v133 .choice-card {
  min-height: 42px !important;
  padding: 8px 7px !important;
  border-radius: 13px !important;
  font-size: 11px !important;
}

.wall-post-toggle-v133 {
  min-height: 42px !important;
  padding: 9px 12px !important;
  border-radius: 13px !important;
}

.wall-mounted-note-v133 {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(20, 24, 28, 0.58);
}

body.jy-wall-mounted-v133 [data-structure-badge] {
  background: rgba(135, 173, 76, 0.12) !important;
  color: #415221 !important;
}
/* === rebuild wall mounted v122 v133 css end === */


/* === boot camera stable v145 css start === */
html.jy-boot-3d-stabilizing-v145 .viewer-stage,
html.jy-boot-3d-stabilizing-v145 [data-three-stage],
html.jy-boot-3d-stabilizing-v145 .three-stage,
html.jy-boot-3d-stabilizing-v145 canvas {
  opacity: 0 !important;
  visibility: hidden !important;
}

.viewer-stage,
[data-three-stage],
.three-stage,
.viewer-stage canvas,
[data-three-stage] canvas,
.three-stage canvas {
  transition: opacity .18s ease !important;
}
/* === boot camera stable v145 css end === */
















/* === european style match step font v193 start === */
[data-european-style-section-v177] .european-style-grid-v177{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:12px !important;
}

[data-european-style-section-v177] .european-style-grid-v177 .choice-card,
[data-european-style-section-v177] .european-style-grid-v177 button{
  min-height:48px !important;
  padding:8px 8px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
}

[data-european-style-section-v177] .european-style-grid-v177 small{
  display:none !important;
}

[data-european-style-section-v177] .european-style-grid-v177 .choice-card span,
[data-european-style-section-v177] .european-style-grid-v177 button span{
  line-height:1.15 !important;
  letter-spacing:0 !important;
  margin:0 !important;
}
/* === european style match step font v193 end === */


/* === wall light side select ui v196 start === */
.wall-light-side-panel-v196{
  margin:12px 0 18px;
}

.wall-light-side-title-v196{
  font-size:12px;
  line-height:1;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#7d858b;
  font-weight:800;
  margin:0 0 10px;
}

.wall-light-side-grid-v196{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}

.wall-light-side-grid-v196 .choice-card{
  min-height:44px !important;
  padding:8px 6px !important;
  font-size:13px !important;
  font-weight:700 !important;
  line-height:1.1 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
}

@media (max-width:640px){
  .wall-light-side-grid-v196{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:8px;
  }

  .wall-light-side-grid-v196 .choice-card{
    min-height:40px !important;
    font-size:12px !important;
  }
}
/* === wall light side select ui v196 end === */


/* === bifold control one row v200 start === */
@media (max-width: 980px) {
  body.configurator-page .step-panel[data-step-panel="4"] .bifold-control-grid[data-bifold-options] {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 6px !important;
    max-width: none !important;
    width: 100% !important;
    margin-bottom: 14px !important;
  }

  body.configurator-page .step-panel[data-step-panel="4"] .bifold-control-grid[data-bifold-options] .choice-card[data-bifold-scope] {
    min-width: 0 !important;
    min-height: 38px !important;
    padding: 6px 3px !important;
    border-radius: 12px !important;
    font-size: 9.5px !important;
    line-height: 1.05 !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 480px) {
  body.configurator-page .step-panel[data-step-panel="4"] .bifold-control-grid[data-bifold-options] {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  body.configurator-page .step-panel[data-step-panel="4"] .bifold-control-grid[data-bifold-options] .choice-card[data-bifold-scope] {
    min-height: 34px !important;
    padding: 5px 2px !important;
    border-radius: 10px !important;
    font-size: 8.5px !important;
  }
}
/* === bifold control one row v200 end === */



/* === inquiry modal v201 start === */
html.inquiry-open-v201,
body.inquiry-open-v201 {
  overflow: hidden !important;
}

.inquiry-modal-v201[hidden] {
  display: none !important;
}

.inquiry-modal-v201 {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 22px;
  font-family: var(--font-sans, "Plus Jakarta Sans", sans-serif);
}

.inquiry-backdrop-v201 {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 28, 0.38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.inquiry-dialog-v201 {
  position: relative;
  width: min(920px, calc(100vw - 34px));
  max-height: calc(100dvh - 44px);
  overflow: auto;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,249,246,0.98) 100%);
  border: 1px solid rgba(20, 24, 28, 0.1);
  box-shadow: 0 30px 90px rgba(20, 24, 28, 0.22);
  padding: 22px;
}

.inquiry-head-v201 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.inquiry-head-v201 h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.055em;
  color: #111517;
}

.inquiry-head-v201 p {
  margin: 8px 0 0;
  color: #656d72;
  font-size: 14px;
  line-height: 1.45;
}

.inquiry-close-v201 {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 24, 28, 0.04);
  color: #111517;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.inquiry-body-v201 {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.inquiry-preview-card-v201,
.inquiry-form-v201,
.inquiry-overview-v201 {
  border-radius: 20px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(20, 24, 28, 0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.inquiry-preview-card-v201 {
  padding: 14px;
}

.inquiry-section-title-v201 {
  font-size: 13px;
  font-weight: 800;
  color: #111517;
  margin-bottom: 10px;
}

.inquiry-preview-frame-v201 {
  position: relative;
  min-height: 310px;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(20,24,28,.08), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #eef1ef 100%);
}

.inquiry-preview-frame-v201 img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
}

.inquiry-preview-empty-v201 {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #7d858b;
  font-weight: 700;
  font-size: 13px;
}

.inquiry-note-v201 {
  margin: 10px 2px 0;
  color: #687075;
  font-size: 12px;
}

.inquiry-form-v201 {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.inquiry-form-v201 label {
  display: grid;
  gap: 7px;
}

.inquiry-form-v201 label span {
  font-size: 12px;
  font-weight: 800;
  color: #202529;
}

.inquiry-form-v201 em {
  color: #b64b3d;
  font-style: normal;
}

.inquiry-form-v201 input {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(20, 24, 28, 0.12);
  background: rgba(255,255,255,0.96);
  padding: 0 13px;
  font-size: 13px;
  outline: none;
}

.inquiry-form-v201 input:focus {
  border-color: rgba(135, 173, 76, 0.68);
  box-shadow: 0 0 0 3px rgba(135, 173, 76, 0.12);
}

.inquiry-overview-v201 {
  margin-top: 18px;
  padding: 0;
  overflow: hidden;
}

.inquiry-overview-toggle-v201 {
  width: 100%;
  min-height: 52px;
  border: 0;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  cursor: pointer;
}

.inquiry-overview-toggle-v201 span {
  font-weight: 900;
  color: #15191c;
}

.inquiry-overview-toggle-v201 strong {
  color: #5d684f;
  font-size: 12px;
}

.inquiry-overview-grid-v201 {
  border-top: 1px solid rgba(20, 24, 28, 0.08);
  padding: 14px 16px 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 18px;
}

.inquiry-overview-item-v201 {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.inquiry-overview-item-v201 span {
  color: #697177;
  font-size: 11px;
  font-weight: 800;
}

.inquiry-overview-item-v201 strong {
  color: #171b1e;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 800;
}

.inquiry-footer-v201 {
  margin-top: 16px;
}

.inquiry-whatsapp-btn-v201 {
  width: 100%;
  min-height: 64px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #6ea644 0%, #4f842c 100%);
  color: #fff;
  display: grid;
  place-items: center;
  gap: 3px;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(79, 132, 44, 0.22);
}

.inquiry-whatsapp-btn-v201 span {
  font-size: 16px;
  font-weight: 900;
}

.inquiry-whatsapp-btn-v201 small {
  font-size: 12px;
  opacity: 0.86;
}

@media (max-width: 760px) {
  .inquiry-modal-v201 {
    padding: 10px;
    align-items: end;
  }

  .inquiry-dialog-v201 {
    width: 100%;
    max-height: calc(100dvh - 20px);
    border-radius: 24px;
    padding: 16px;
  }

  .inquiry-head-v201 h2 {
    font-size: 22px;
  }

  .inquiry-head-v201 p {
    font-size: 12px;
  }

  .inquiry-body-v201 {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .inquiry-preview-frame-v201 {
    min-height: 220px;
  }

  .inquiry-preview-frame-v201 img {
    min-height: 220px;
  }

  .inquiry-form-v201 {
    padding: 14px;
  }

  .inquiry-overview-grid-v201 {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .inquiry-whatsapp-btn-v201 {
    min-height: 58px;
  }
}
/* === inquiry modal v201 end === */




/* === email button green compact v205 start === */
.inquiry-email-btn-v204 {
  min-height: 64px !important;
  background: linear-gradient(180deg, #eef7e5 0%, #dcefcf 100%) !important;
  color: #26351f !important;
  border: 1px solid rgba(135, 173, 76, 0.38) !important;
  box-shadow: 0 12px 24px rgba(135, 173, 76, 0.12) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  text-align: center !important;
  padding: 8px 12px !important;
}

.inquiry-email-btn-v204 span {
  display: block !important;
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  color: #24351e !important;
  text-align: center !important;
}

.inquiry-email-btn-v204 small {
  display: block !important;
  margin: 0 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  color: rgba(36, 53, 30, 0.72) !important;
  opacity: 1 !important;
  text-align: center !important;
}

.inquiry-email-btn-v204:hover {
  background: linear-gradient(180deg, #f3faec 0%, #e2f2d7 100%) !important;
  border-color: rgba(135, 173, 76, 0.52) !important;
}

.inquiry-email-btn-v204:disabled {
  opacity: 0.72 !important;
  cursor: wait !important;
}

@media (max-width: 760px) {
  .inquiry-email-btn-v204 {
    min-height: 58px !important;
    padding: 7px 10px !important;
    gap: 2px !important;
  }

  .inquiry-email-btn-v204 span {
    font-size: 14px !important;
  }

  .inquiry-email-btn-v204 small {
    font-size: 10.5px !important;
  }
}
/* === email button green compact v205 end === */


/* === email success popup v206 start === */
.inquiry-footer-two-actions-v206 {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.inquiry-email-btn-v206 {
  min-height: 64px !important;
  background: linear-gradient(180deg, #eef7e5 0%, #dcefcf 100%) !important;
  color: #26351f !important;
  border: 1px solid rgba(135, 173, 76, 0.38) !important;
  box-shadow: 0 12px 24px rgba(135, 173, 76, 0.12) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  text-align: center !important;
  padding: 8px 12px !important;
  border-radius: 16px !important;
}

.inquiry-email-btn-v206 span {
  display: block !important;
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  color: #24351e !important;
  text-align: center !important;
}

.inquiry-email-btn-v206 small {
  display: block !important;
  margin: 0 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  color: rgba(36, 53, 30, 0.72) !important;
  opacity: 1 !important;
  text-align: center !important;
}

.inquiry-email-btn-v206:disabled {
  opacity: 0.72 !important;
  cursor: wait !important;
}

.email-success-popup-v206[hidden] {
  display: none !important;
}

.email-success-popup-v206 {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 20px;
}

.email-success-backdrop-v206 {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 28, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.email-success-card-v206 {
  position: relative;
  width: min(380px, calc(100vw - 40px));
  padding: 28px 24px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(20, 24, 28, 0.08);
  box-shadow: 0 26px 70px rgba(20, 24, 28, 0.22);
  text-align: center;
}

.email-success-close-v206 {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 24, 28, 0.05);
  color: #15191c;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.email-success-icon-v206 {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #eef7e5 0%, #dcefcf 100%);
  border: 1px solid rgba(135, 173, 76, 0.42);
  color: #4f842c;
  font-size: 28px;
  font-weight: 900;
}

.email-success-card-v206 strong {
  display: block;
  margin: 0;
  color: #15191c;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.email-success-card-v206 p {
  margin: 10px 0 0;
  color: #5f666c;
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .inquiry-footer-two-actions-v206 {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .inquiry-email-btn-v206 {
    min-height: 58px !important;
  }

  .email-success-card-v206 {
    width: min(340px, calc(100vw - 34px));
    border-radius: 22px;
    padding: 26px 20px 22px;
  }
}
/* === email success popup v206 end === */


/* === whatsapp button compact v207 start === */
.inquiry-footer-two-actions-v206 .inquiry-email-btn-v206,
.inquiry-footer-two-actions-v206 .inquiry-whatsapp-btn-v201 {
  min-height: 64px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  text-align: center !important;
  padding: 8px 12px !important;
}

.inquiry-footer-two-actions-v206 .inquiry-whatsapp-btn-v201 span,
.inquiry-footer-two-actions-v206 .inquiry-email-btn-v206 span {
  display: block !important;
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  text-align: center !important;
}

.inquiry-footer-two-actions-v206 .inquiry-whatsapp-btn-v201 small,
.inquiry-footer-two-actions-v206 .inquiry-email-btn-v206 small {
  display: block !important;
  margin: 0 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  opacity: 0.9 !important;
  text-align: center !important;
}

.inquiry-footer-two-actions-v206 .inquiry-whatsapp-btn-v201 {
  background: linear-gradient(180deg, #6ea644 0%, #4f842c 100%) !important;
  color: #ffffff !important;
}

.inquiry-footer-two-actions-v206 .inquiry-whatsapp-btn-v201 span,
.inquiry-footer-two-actions-v206 .inquiry-whatsapp-btn-v201 small {
  color: #ffffff !important;
}

@media (max-width: 760px) {
  .inquiry-footer-two-actions-v206 .inquiry-email-btn-v206,
  .inquiry-footer-two-actions-v206 .inquiry-whatsapp-btn-v201 {
    min-height: 58px !important;
    padding: 7px 10px !important;
    gap: 2px !important;
  }

  .inquiry-footer-two-actions-v206 .inquiry-whatsapp-btn-v201 span,
  .inquiry-footer-two-actions-v206 .inquiry-email-btn-v206 span {
    font-size: 14px !important;
  }

  .inquiry-footer-two-actions-v206 .inquiry-whatsapp-btn-v201 small,
  .inquiry-footer-two-actions-v206 .inquiry-email-btn-v206 small {
    font-size: 10.5px !important;
  }
}
/* === whatsapp button compact v207 end === */








/* === six shots safe manual v214 start === */
.inquiry-dialog-v201.inquiry-six-active-v214 .inquiry-preview-card-v201 {
  display: none !important;
}

.inquiry-dialog-v201.inquiry-six-active-v214 .inquiry-body-v201 {
  grid-template-columns: 1fr !important;
}

.inquiry-six-block-v214 {
  margin: 4px 0 16px !important;
}

.inquiry-six-toolbar-v214 {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 10px !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(20, 24, 28, 0.08) !important;
  border-radius: 16px !important;
  background: #f8f9f5 !important;
}

.inquiry-six-toolbar-v214 strong {
  display: block !important;
  font-size: 14px !important;
  line-height: 1.1 !important;
  color: #15191c !important;
  font-weight: 900 !important;
}

.inquiry-six-toolbar-v214 span {
  display: block !important;
  margin-top: 3px !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
  color: #7b848b !important;
  font-weight: 700 !important;
}

.inquiry-six-toolbar-v214 button {
  min-height: 38px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #15191c !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

.inquiry-six-grid-v214 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.inquiry-six-card-v214 {
  border: 1px solid rgba(20, 24, 28, 0.08) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: #f8f9f5 !important;
}

.inquiry-six-imgbox-v214 {
  aspect-ratio: 4 / 3 !important;
  width: 100% !important;
  background:
    radial-gradient(circle at 50% 15%, rgba(20,24,28,0.08), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #eef1ed 100%) !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  cursor: pointer !important;
}

.inquiry-six-imgbox-v214 img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.inquiry-six-loading-v214 {
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #7b848b !important;
  text-align: center !important;
  padding: 6px !important;
}

.inquiry-six-label-v214 {
  min-height: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 7px 8px !important;
  border-top: 1px solid rgba(20, 24, 28, 0.06) !important;
  background: rgba(255,255,255,0.92) !important;
  color: #15191c !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
  font-weight: 900 !important;
  text-align: center !important;
}

@media (max-width: 760px) {
  .inquiry-six-toolbar-v214 {
    align-items: stretch !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 10px 12px !important;
  }

  .inquiry-six-toolbar-v214 button {
    width: 100% !important;
  }

  .inquiry-six-grid-v214 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .inquiry-six-card-v214 {
    border-radius: 12px !important;
  }

  .inquiry-six-label-v214 {
    min-height: 28px !important;
    padding: 5px 4px !important;
    font-size: 10px !important;
  }

  .inquiry-six-loading-v214 {
    font-size: 10px !important;
  }
}
/* === six shots safe manual v214 end === */


/* === six shot lightbox v215 start === */
[data-inquiry-six-grid-v214] .inquiry-six-imgbox-v214,
[data-inquiry-six-grid-v211] .inquiry-six-imgbox-v211 {
  cursor: zoom-in !important;
}

[data-inquiry-six-grid-v214] .inquiry-six-imgbox-v214 img,
[data-inquiry-six-grid-v211] .inquiry-six-imgbox-v211 img {
  transition: transform 0.2s ease, filter 0.2s ease !important;
}

[data-inquiry-six-grid-v214] .inquiry-six-imgbox-v214:hover img,
[data-inquiry-six-grid-v211] .inquiry-six-imgbox-v211:hover img {
  transform: scale(1.035) !important;
  filter: brightness(1.02) contrast(1.02) !important;
}

body.six-shot-lightbox-open-v215 {
  overflow: hidden !important;
}

.six-shot-lightbox-v215[hidden] {
  display: none !important;
}

.six-shot-lightbox-v215 {
  position: fixed !important;
  inset: 0 !important;
  z-index: 120000 !important;
  display: grid !important;
  place-items: center !important;
  padding: 20px !important;
}

.six-shot-lightbox-backdrop-v215 {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(15, 18, 20, 0.58) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.six-shot-lightbox-card-v215 {
  position: relative !important;
  width: min(980px, calc(100vw - 32px)) !important;
  max-height: calc(100dvh - 40px) !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  background: rgba(255,255,255,0.98) !important;
  border: 1px solid rgba(255,255,255,0.28) !important;
  box-shadow: 0 30px 90px rgba(0,0,0,0.35) !important;
}

.six-shot-lightbox-image-wrap-v215 {
  min-height: 0 !important;
  background: #f4f5f1 !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
}

.six-shot-lightbox-image-wrap-v215 img {
  width: 100% !important;
  height: 100% !important;
  max-height: calc(100dvh - 116px) !important;
  object-fit: contain !important;
  display: block !important;
}

.six-shot-lightbox-caption-v215 {
  min-height: 52px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px 56px !important;
  background: #ffffff !important;
  color: #15191c !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
  font-weight: 900 !important;
  text-align: center !important;
}

.six-shot-lightbox-close-v215 {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 3 !important;
  width: 38px !important;
  height: 38px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.92) !important;
  color: #15191c !important;
  font-size: 28px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  box-shadow: 0 8px 22px rgba(0,0,0,0.12) !important;
}

.six-shot-lightbox-nav-v215 {
  position: absolute !important;
  top: 50% !important;
  z-index: 3 !important;
  transform: translateY(-50%) !important;
  width: 44px !important;
  height: 54px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.88) !important;
  color: #15191c !important;
  font-size: 40px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  box-shadow: 0 8px 22px rgba(0,0,0,0.12) !important;
}

.six-shot-lightbox-nav-v215.is-prev {
  left: 14px !important;
}

.six-shot-lightbox-nav-v215.is-next {
  right: 14px !important;
}

@media (max-width: 760px) {
  .six-shot-lightbox-v215 {
    padding: 10px !important;
  }

  .six-shot-lightbox-card-v215 {
    width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
    border-radius: 20px !important;
  }

  .six-shot-lightbox-image-wrap-v215 img {
    max-height: calc(100dvh - 106px) !important;
  }

  .six-shot-lightbox-caption-v215 {
    min-height: 48px !important;
    padding: 10px 46px !important;
    font-size: 12px !important;
  }

  .six-shot-lightbox-close-v215 {
    width: 34px !important;
    height: 34px !important;
    font-size: 24px !important;
  }

  .six-shot-lightbox-nav-v215 {
    width: 36px !important;
    height: 46px !important;
    font-size: 34px !important;
  }

  .six-shot-lightbox-nav-v215.is-prev {
    left: 8px !important;
  }

  .six-shot-lightbox-nav-v215.is-next {
    right: 8px !important;
  }
}
/* === six shot lightbox v215 end === */

/* === dimension units v247 === */
.dimension-unit-row-v247 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 11px;
  border: 1px solid rgba(97, 127, 52, .24);
  border-radius: 12px;
  background: #f3f8ec;
}
.dimension-unit-row-v247 > div { min-width: 0; }
.dimension-unit-row-v247 strong,
.dimension-unit-row-v247 span { display: block; }
.dimension-unit-row-v247 strong { color: #263221; font-size: 11px; }
.dimension-unit-row-v247 span { margin-top: 2px; color: #697263; font-size: 9px; line-height: 1.35; }
.dimension-unit-switch-v247 select {
  min-width: 100px;
  height: 34px;
  padding: 0 28px 0 10px;
  border: 1px solid rgba(97, 127, 52, .38);
  border-radius: 9px;
  color: #31401f;
  background: #fff;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}
.dimension-unit-switch-compact-v247 {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.dimension-unit-switch-compact-v247 > span {
  color: #66706a;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dimension-unit-switch-compact-v247 select { min-width: 58px; height: 30px; padding-left: 8px; }
@media (max-width: 980px) {
  .dimension-unit-switch-compact-v247 { display: none; }
  .dimension-unit-row-v247 { padding: 8px 9px; }
  .dimension-unit-switch-v247 select { min-width: 92px; height: 32px; }
}
/* === dimension units v247 end === */

/* === per-module louver direction v250 === */
.zone-louver-panel-v250 {
  margin: 14px 0 16px;
  padding: 11px;
  border: 1px solid rgba(105, 139, 59, .26);
  border-radius: 15px;
  background: linear-gradient(145deg, #f7faf3, #eef5e7);
}
.zone-louver-panel-v250 > header,
.zone-louver-card-v250 > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.zone-louver-panel-v250 > header > div,
.zone-louver-card-v250 > header > div { min-width: 0; }
.zone-louver-panel-v250 > header strong,
.zone-louver-panel-v250 > header span,
.zone-louver-card-v250 > header strong,
.zone-louver-card-v250 > header span { display: block; }
.zone-louver-panel-v250 > header strong { color: #263221; font-size: 11px; }
.zone-louver-panel-v250 > header div > span { margin-top: 2px; color: #6e7867; font-size: 8px; }
.zone-louver-panel-tag-v250 {
  flex: 0 0 auto;
  padding: 5px 7px;
  border-radius: 999px;
  color: #597332 !important;
  background: #dceacb;
  font-size: 7px !important;
  font-weight: 900;
  letter-spacing: .08em;
}
.zone-louver-list-v250 { display: grid; gap: 8px; margin-top: 9px; }
.zone-louver-card-v250 {
  padding: 10px;
  border: 1px solid rgba(73, 91, 62, .17);
  border-radius: 12px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 4px 12px rgba(45, 62, 35, .04);
}
.zone-louver-card-v250 > header { margin-bottom: 8px; }
.zone-louver-card-v250 > header strong { color: #20291d; font-size: 10px; }
.zone-louver-card-v250 > header span { margin-top: 1px; color: #727a6f; font-size: 8px; }
.zone-louver-card-v250 > header b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  color: #fff;
  background: #739943;
  font-size: 9px;
}
.zone-louver-label-v250 {
  margin: 8px 0 5px;
  color: #69745f;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .04em;
}
.zone-louver-options-v250 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.zone-louver-options-v250 button {
  min-width: 0;
  min-height: 38px;
  padding: 7px 8px;
  border: 1px solid #d8dfd3;
  border-radius: 9px;
  color: #3e493a;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.zone-louver-options-v250 button strong,
.zone-louver-options-v250 button span { display: block; }
.zone-louver-options-v250 button strong { font-size: 9px; }
.zone-louver-options-v250 button span { margin-top: 2px; color: #7a8375; font-size: 8px; }
.zone-louver-options-v250 button.is-active {
  border-color: #779d45;
  color: #30421f;
  background: #e4efd7;
  box-shadow: inset 0 0 0 1px rgba(119, 157, 69, .12);
}
.zone-louver-options-v250.is-direction button { min-height: 32px; font-size: 9px; font-weight: 800; }
.zone-louver-retract-v250 p {
  margin: 0;
  padding: 7px 8px;
  border-radius: 8px;
  color: #747d70;
  background: #f2f4ef;
  font-size: 8px;
  line-height: 1.45;
}
@media (max-width: 760px) {
  .zone-louver-panel-v250 { margin: 10px 0 12px; padding: 9px; }
}
/* === per-module louver direction v250 end === */

/* === selected module template composer v252 === */
#zone-template-panel-v252 {
  position: fixed;
  left: 24px;
  bottom: 108px;
  z-index: 121;
  width: min(330px, calc(100vw - 48px));
  padding: 12px;
  border: 1px solid rgba(74, 92, 65, .22);
  border-radius: 16px;
  background: rgba(250, 252, 248, .97);
  box-shadow: 0 18px 45px rgba(24, 31, 22, .18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  max-height: min(78vh, 760px);
  overflow-y: auto;
}
#zone-template-panel-v252[hidden] { display: none !important; }
#zone-template-panel-v252 .fixed-roof-controls{padding:12px;margin:10px 0;border:1px solid #cdddc2;border-radius:14px;background:#fff;color:#304326;font-size:11px;line-height:1.45}
.fixed-roof-controls>strong{display:block;font-size:12px}.fixed-roof-controls p{margin:4px 0 10px;color:#73806d;font-size:10px}
.fixed-roof-directions,.fixed-roof-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.fixed-roof-controls button{min-height:40px;border:1px solid #cbdcbb;border-radius:11px;background:#e7f0dc;color:#365027;font:inherit;font-size:11px;font-weight:650;padding:9px 7px;cursor:pointer}
.fixed-roof-controls button:hover{background:#dcebcf;border-color:#759b47}.fixed-roof-controls button:focus-visible,.fixed-roof-controls input:focus-visible,.fixed-roof-controls select:focus-visible,.fixed-roof-controls textarea:focus-visible{outline:2px solid #759b47;outline-offset:2px}
.fixed-roof-controls hr{border:0;border-top:1px solid #e0e7dc;margin:14px 0}.fixed-roof-controls label{display:block;min-width:0;color:#67745f;font-size:10px;font-weight:600}.fixed-roof-controls select,.fixed-roof-controls input,.fixed-roof-controls textarea{display:block;box-sizing:border-box;width:100%;min-width:0;min-height:40px;margin:5px 0 0;padding:9px 10px;border:1px solid #d3ddcc;border-radius:10px;background:#fff;color:#263321;font:inherit;font-size:12px;line-height:1.4}
.fixed-roof-controls textarea{min-height:85px;resize:vertical;font-weight:400}.fixed-roof-controls [data-opening]{margin-top:14px}.fixed-roof-fields{margin-top:10px}.fixed-roof-custom{margin-top:10px}.fixed-roof-controls [data-apply]{width:100%;margin-top:12px;background:#719846;border-color:#719846;color:#fff}.fixed-roof-controls [data-error]{margin:7px 0 0;color:#a33;min-height:0}.fixed-roof-controls [data-error]:empty{display:none}.fixed-roof-controls [hidden]{display:none!important}
#zone-template-panel-v252 > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
#zone-template-panel-v252 > header strong,
#zone-template-panel-v252 > header span { display: block; }
#zone-template-panel-v252 > header strong { color: #23301e; font-size: 12px; }
#zone-template-panel-v252 > header span { margin-top: 2px; color: #70796c; font-size: 8px; }
#zone-template-panel-v252 > header button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid #d9dfd4;
  border-radius: 50%;
  color: #35402f;
  background: #fff;
  font-size: 17px;
  cursor: pointer;
}
.zone-template-size-grid-v252 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.zone-template-size-grid-v252[hidden] { display: none !important; }
.zone-template-size-grid-v252 label span {
  display: block;
  margin: 0 0 4px 2px;
  color: #687261;
  font-size: 8px;
  font-weight: 850;
}
.zone-template-size-grid-v252 input {
  width: 100%;
  height: 35px;
  padding: 0 8px;
  border: 1px solid #d6ddd1;
  border-radius: 9px;
  color: #25301f;
  background: #fff;
  font-size: 10px;
  font-weight: 850;
}
.zone-template-triangle-size-v298 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 9px;
  border: 1px solid #bfd3aa;
  border-radius: 11px;
  background: #f2f8ec;
}
.zone-template-triangle-size-v298[hidden] { display: none !important; }
.zone-template-triangle-size-v298 label span {
  display: block;
  margin: 0 0 4px 2px;
  color: #5d7052;
  font-size: 8px;
  font-weight: 850;
}
.zone-template-triangle-size-v298 input {
  width: 100%;
  height: 35px;
  padding: 0 8px;
  border: 1px solid #cbd9c1;
  border-radius: 9px;
  color: #25301f;
  background: #fff;
  font-size: 10px;
  font-weight: 850;
}
.zone-template-triangle-size-v298 p {
  grid-column: 1 / -1;
  margin: 2px 1px 0;
  color: #55733b;
  font-size: 8px;
  line-height: 1.45;
}
.zone-template-triangle-size-v298 p.is-error { color: #a04738; }
.zone-template-triangle-mode-v299 {
  grid-column: 1 / -1;
  margin-top: 2px;
}
.zone-template-triangle-mode-v299 > span {
  display: block;
  margin: 0 0 5px 2px;
  color: #5d7052;
  font-size: 8px;
  font-weight: 850;
}
.zone-template-triangle-mode-v299 > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}
.zone-template-triangle-mode-v299 button {
  min-height: 30px;
  border: 1px solid #cad8bf;
  border-radius: 8px;
  color: #526448;
  background: #fff;
  font-size: 8px;
  font-weight: 850;
  cursor: pointer;
}
.zone-template-triangle-mode-v299 button.is-active {
  border-color: #739b48;
  color: #26391b;
  background: #dceccd;
}
.zone-template-triangle-drag-hint-v299 {
  border-top: 1px dashed #c7d6bc;
  padding-top: 6px !important;
}
.zone-template-offset-v267 {
  display: block;
  margin-top: 8px;
}
.zone-template-offset-v267 > span {
  display: block;
  margin: 0 0 4px 2px;
  color: #687261;
  font-size: 8px;
  font-weight: 850;
}
.zone-template-offset-v267 input {
  width: 100%;
  height: 35px;
  padding: 0 9px;
  border: 1px solid #b9caab;
  border-radius: 9px;
  color: #25301f;
  background: #fff;
  font-size: 10px;
  font-weight: 850;
}
.zone-template-offset-v267 input:disabled {
  color: #8a9286;
  border-color: #dce2d8;
  background: #f2f4f0;
}
.zone-template-offset-help-v267 {
  margin: 4px 2px 0;
  color: #6d7c63;
  font-size: 8px;
  line-height: 1.4;
}
.zone-template-align-v268 {
  margin-top: 8px;
}
.zone-template-align-v268 > span {
  display: block;
  margin: 0 0 4px 2px;
  color: #687261;
  font-size: 8px;
  font-weight: 850;
}
.zone-template-align-v268 > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}
.zone-template-align-v268 button {
  min-height: 31px;
  border: 1px solid #d4ddcd;
  border-radius: 8px;
  color: #53604b;
  background: #fff;
  font-size: 8px;
  font-weight: 850;
  cursor: pointer;
}
.zone-template-align-v268 button.is-active {
  border-color: #789d4d;
  color: #26351d;
  background: #dcebcf;
}
.zone-template-slot-status-v268 {
  min-height: 0;
  margin: 5px 2px 0;
  color: #5b743f;
  font-size: 8px;
  line-height: 1.4;
}
.zone-template-slot-status-v268:empty { display: none; }
.zone-template-slot-status-v268.is-error { color: #a04738; }
.zone-template-note-v252 {
  margin: 7px 0;
  color: #7a8375;
  font-size: 8px;
  line-height: 1.4;
}
.zone-template-connections-v285 {
  margin: 8px 0;
  padding: 9px;
  border: 1px solid #d7e0d0;
  border-radius: 11px;
  background: #f5f8f1;
}
.zone-template-connections-v285[hidden] { display: none !important; }
.zone-template-connections-v285 > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #34432c;
  font-size: 9px;
}
.zone-template-connections-v285 > div:first-child span {
  color: #718064;
  font-size: 8px;
}
.zone-template-connections-v285 > p {
  margin: 4px 0 7px;
  color: #6c7864;
  font-size: 8px;
  line-height: 1.45;
}
[data-zone-template-connection-list-v285] {
  display: grid;
  gap: 5px;
}
[data-zone-template-connection-list-v285] label {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 7px;
  border: 1px solid #d7ded2;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}
[data-zone-template-connection-list-v285] label.is-removed {
  border-color: #85a65f;
  background: #e5f0da;
}
[data-zone-template-connection-list-v285] input {
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  accent-color: #6f9443;
}
[data-zone-template-connection-list-v285] label span {
  min-width: 0;
  color: #4f5b48;
  font-size: 8px;
  line-height: 1.4;
}
[data-zone-template-connection-list-v285] label strong,
[data-zone-template-connection-list-v285] label em {
  display: block;
  font-style: normal;
}
[data-zone-template-connection-list-v285] label strong { color: #2f4027; font-size: 9px; }
[data-zone-template-connection-list-v285] label em { margin-top: 2px; color: #75816e; }
.zone-template-connection-empty-v285 { color: #818a7c; font-size: 8px; }
.zone-template-direction-grid-v252 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.zone-template-direction-grid-v252 button,
.zone-template-delete-v252 {
  min-height: 34px;
  border: 1px solid #cbd7bf;
  border-radius: 9px;
  color: #324323;
  background: #e6f0dc;
  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
}
.zone-template-direction-grid-v252 button:hover { border-color: #759b47; background: #dcebcf; }
.zone-template-triangle-add-v298 {
  margin-top: 8px;
  padding: 9px;
  border: 1px solid #d6dfce;
  border-radius: 11px;
  background: #fff;
}
.zone-template-triangle-add-v298 > strong,
.zone-template-triangle-add-v298 > span { display: block; }
.zone-template-triangle-add-v298 > strong { color: #304326; font-size: 9px; }
.zone-template-triangle-add-v298 > span { margin-top: 2px; color: #73806d; font-size: 8px; line-height: 1.4; }
.zone-template-triangle-add-v298 > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin-top: 7px;
}
.zone-template-triangle-add-v298 button {
  min-height: 32px;
  border: 1px solid #9dbb7c;
  border-radius: 8px;
  color: #334b25;
  background: #edf6e5;
  font-size: 8px;
  font-weight: 850;
  cursor: pointer;
}
.zone-template-triangle-add-v298 button:hover { border-color: #719846; background: #deedcf; }
.zone-template-direction-grid-v252 button:disabled,
.zone-template-triangle-add-v298 button:disabled { opacity: .45; cursor: not-allowed; }
.zone-louver-triangle-note-v298 {
  margin: 7px 0 0;
  padding: 7px 8px;
  border-radius: 8px;
  color: #5d704f;
  background: #f0f6ea;
  font-size: 8px;
  line-height: 1.45;
}
.zone-template-delete-v252 {
  width: 100%;
  margin-top: 7px;
  border-color: #e3d5d2;
  color: #7a3e35;
  background: #fff8f6;
}
.zone-template-delete-v252:disabled {
  color: #92988e;
  background: #f1f3ef;
  cursor: not-allowed;
}
#zone-scope-chip-v84 [data-zone-template-open-v252] {
  color: #fff !important;
  background: #739943 !important;
}
@media (max-width: 980px) {
  #zone-template-panel-v252 {
    left: 14px;
    bottom: auto;
    top: calc(var(--mobile-stage-top, 8px) + 48px);
    width: min(310px, calc(100vw - 28px));
  }
  .zone-template-size-grid-v252 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* === selected module template composer v252 end === */

/* === comfort accessories v253 === */
.zone-accessory-panel-v253 {
  margin-top: 15px;
  padding: 11px;
  border: 1px solid rgba(100, 132, 58, .27);
  border-radius: 15px;
  background: linear-gradient(145deg, #f7faf3, #edf5e6);
}
.zone-accessory-panel-v253 > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.zone-accessory-panel-v253 > header strong,
.zone-accessory-panel-v253 > header span { display: block; }
.zone-accessory-panel-v253 > header strong { color: #263221; font-size: 11px; }
.zone-accessory-panel-v253 > header span { margin-top: 2px; color: #697362; font-size: 8px; line-height: 1.35; }
.zone-accessory-panel-v253 > header b {
  padding: 5px 7px;
  border-radius: 999px;
  color: #587331;
  background: #dceacb;
  font-size: 7px;
  letter-spacing: .08em;
}
.zone-accessory-modules-v255 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 8px;
}
.zone-accessory-modules-v255[hidden] { display: none; }
.zone-accessory-modules-v255 button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 36px;
  padding: 6px 9px;
  border: 1px solid rgba(75, 94, 62, .19);
  border-radius: 10px;
  background: rgba(255,255,255,.78);
  color: #52604b;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.zone-accessory-modules-v255 button b {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  border-radius: 7px;
  background: #e5ecdc;
  color: #66883c;
  font-size: 8px;
}
.zone-accessory-modules-v255 button span { overflow: hidden; font-size: 9px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.zone-accessory-modules-v255 button:hover { border-color: #86a95f; background: #f8fbf4; }
.zone-accessory-modules-v255 button.is-active {
  border-color: #749c45;
  background: #dcebc9;
  color: #26331f;
  box-shadow: inset 0 0 0 1px rgba(116,156,69,.14);
}
.zone-accessory-modules-v255 button.is-active b { background: #739747; color: #fff; }
.zone-accessory-card-v253 {
  padding: 9px;
  border: 1px solid rgba(71, 88, 62, .16);
  border-radius: 11px;
  background: rgba(255,255,255,.91);
}
.zone-accessory-card-v253 + .zone-accessory-card-v253 { margin-top: 7px; }
.zone-accessory-toggle-v253 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.zone-accessory-toggle-v253 > span { min-width: 0; }
.zone-accessory-toggle-v253 strong,
.zone-accessory-toggle-v253 small { display: block; }
.zone-accessory-toggle-v253 strong { color: #273221; font-size: 10px; }
.zone-accessory-toggle-v253 small { margin-top: 2px; color: #727a6e; font-size: 8px; line-height: 1.35; }
.zone-accessory-toggle-v253 input,
.zone-fan-light-v253 input { accent-color: #739943; }
.zone-accessory-grid-v253 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.zone-accessory-grid-v253 label[hidden] { display: none !important; }
.zone-accessory-grid-v253 label > span {
  display: block;
  margin: 0 0 4px 2px;
  color: #687260;
  font-size: 8px;
  font-weight: 850;
}
.zone-accessory-grid-v253 select,
.zone-accessory-grid-v253 input {
  width: 100%;
  height: 34px;
  padding: 0 8px;
  border: 1px solid #d6ddd1;
  border-radius: 9px;
  color: #293522;
  background: #fff;
  font-size: 9px;
  font-weight: 800;
}
.zone-accessory-grid-v253 select:disabled,
.zone-accessory-grid-v253 input:disabled { color: #8a9186; background: #f1f3ef; }
.zone-fan-light-v253 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: #4d5946;
  font-size: 8px;
  font-weight: 800;
}
.zone-fan-light-v253[hidden] { display: none !important; }
.zone-projector-status-v340 {
  margin: 8px 0 0;
  padding: 7px 8px;
  border-left: 3px solid #98a18f;
  color: #626b5d;
  background: #f2f4f0;
  font-size: 8px;
  font-weight: 750;
  line-height: 1.45;
}
.auto-module-panel-v346 { margin: 14px 0; padding: 12px 0; border-top: 1px solid #d5ddd5; border-bottom: 1px solid #d5ddd5; }
.auto-module-panel-v346 header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-bottom: 10px; font-size: 12px; }
.auto-module-panel-v346 header span { color: #607068; }
[data-auto-plans-v346] { display: grid; gap: 8px; }
.auto-plan-v346 { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; text-align: left; border: 1px solid #d3dcd4; border-radius: 6px; background: #fff; color: #27392c; cursor: pointer; }
.auto-plan-v346.is-active { border-color: #789a48; background: #edf4e6; }
.auto-plan-v346 strong, .auto-plan-v346 small { display: block; font-size: 12px; line-height: 1.6; }
.auto-plan-v346 small { font-size: 11px; color: #66736b; }
.auto-plan-grid-v346 { display: grid; flex: 0 0 64px; height: 48px; gap: 2px; }
.auto-plan-grid-v346 i { display: block; border: 1px solid #405349; background: repeating-linear-gradient(0deg,#74857b 0 2px,#c9d3cb 2px 4px); }
.auto-plan-grid-v346 i.depth { background: repeating-linear-gradient(90deg,#74857b 0 2px,#c9d3cb 2px 4px); }
.auto-plan-undo-v346 { margin-top: 8px; border: 0; padding: 6px 0; background: none; color: #586b61; cursor: pointer; }
.zone-projector-status-v340.is-ready {
  border-left-color: #719547;
  color: #385126;
  background: #edf6e4;
}
.zone-projector-status-v340.is-warning {
  border-left-color: #c88b32;
  color: #76521e;
  background: #fff7e8;
}
@media (max-width: 760px) {
  .zone-accessory-panel-v253 { margin-top: 10px; padding: 9px; }
}
/* === comfort accessories v253 end === */
/* Per-module privacy dimensions v256 */
.privacy-size-panel-v256 {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #d8e2d1;
  border-radius: 18px;
  background: linear-gradient(145deg, #f8fbf5, #f1f6ec);
}

.privacy-system-grid [data-privacy-system="louver-panel"] {
  grid-column: 1 / -1;
}

[data-louver-toggle][data-zone-louver-scope-v258] {
  position: relative;
  border-color: #9dbb78;
  background: linear-gradient(180deg, #edf5e3, #dcebc9);
  color: #26351f;
}

[data-louver-toggle][data-zone-louver-scope-v258="unselected"] {
  border-color: #d6dcd1;
  background: #f4f5f2;
  color: #687064;
}

/* === global louver control v324 === */
.global-louver-control-v324 {
  margin: 12px 0;
  padding: 11px;
  border: 1px solid #b8ce9e;
  border-radius: 13px;
  background: linear-gradient(145deg, #f4f9ed, #eaf3df);
  box-shadow: 0 5px 16px rgba(72, 103, 42, .07);
}
.global-louver-control-v324 > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 9px;
}
.global-louver-control-v324 > header strong,
.global-louver-control-v324 > header span { display: block; }
.global-louver-control-v324 > header strong { color: #24311f; font-size: 11px; }
.global-louver-control-v324 > header span { margin-top: 2px; color: #6d7866; font-size: 8px; line-height: 1.35; }
.global-louver-control-v324 > header b {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  color: #45632f;
  background: rgba(255, 255, 255, .82);
  font-size: 8px;
  white-space: nowrap;
}
.global-louver-control-v324 > header b.is-mixed { color: #8b5c19; background: #fff4d9; }
.global-louver-actions-v324 { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.global-louver-actions-v324 button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 37px;
  padding: 7px 8px;
  border: 1px solid #cbd9be;
  border-radius: 9px;
  color: #43513b;
  background: #fff;
  font: inherit;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
.global-louver-actions-v324 button span { color: #7b9165; font-size: 13px; }
.global-louver-actions-v324 button:hover { border-color: #7ba24f; }
.global-louver-actions-v324 button.is-active {
  border-color: #6e9a3c;
  color: #26361d;
  background: #dcebc9;
  box-shadow: inset 0 0 0 1px rgba(110, 154, 60, .12);
}
.global-louver-control-v324.is-working { opacity: .75; pointer-events: none; }
/* === global louver control v324 end === */

.zone-louver-toast-v258 {
  position: fixed;
  left: 50%;
  bottom: 88px;
  z-index: 2147483600;
  transform: translate(-50%, 10px);
  max-width: min(420px, calc(100vw - 32px));
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  color: #fff;
  background: rgba(30, 39, 28, .92);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .22);
  font-size: 12px;
  font-weight: 650;
  transition: opacity .18s ease, transform .18s ease;
}

.zone-louver-toast-v258.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.privacy-size-head-v256 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.privacy-size-head-v256 strong,
.privacy-size-head-v256 span {
  display: block;
}

.privacy-size-head-v256 strong {
  color: #263225;
  font-size: 14px;
}

.privacy-size-head-v256 span {
  margin-top: 3px;
  color: #6d786a;
  font-size: 11px;
}

.privacy-size-head-v256 button {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid #b9caa8;
  border-radius: 999px;
  color: #4f6d36;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.privacy-size-module-row-v256,
.privacy-size-grid-v256 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.privacy-size-grid-v256 {
  margin-top: 10px;
}

.privacy-louver-options-v257,
.privacy-glass-options-v279 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #cbd8c2;
}

.privacy-louver-options-v257[hidden],
.privacy-glass-options-v279[hidden] {
  display: none !important;
}

.privacy-size-panel-v256 label > span {
  display: block;
  margin: 0 0 5px 2px;
  color: #5b6558;
  font-size: 11px;
  font-weight: 650;
}

.privacy-size-panel-v256 label em {
  font-style: normal;
  font-weight: 500;
}

.privacy-size-panel-v256 input,
.privacy-size-panel-v256 select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 11px;
  border: 1px solid #d6ddd1;
  border-radius: 12px;
  outline: none;
  color: #263225;
  background: #fff;
  font: inherit;
  font-size: 13px;
}

.privacy-size-panel-v256 input:focus,
.privacy-size-panel-v256 select:focus {
  border-color: #789c51;
  box-shadow: 0 0 0 3px rgba(120, 156, 81, .13);
}

.privacy-size-panel-v256.is-disabled-v256 .privacy-size-grid-v256,
.privacy-size-panel-v256.is-disabled-v256 .privacy-size-head-v256 button {
  opacity: .52;
}

.privacy-size-help-v256 {
  display: block;
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  color: #63705f;
  background: rgba(118, 153, 78, .09);
  font-size: 11px;
  line-height: 1.45;
}

@media (max-width: 720px) {
  .privacy-size-module-row-v256,
  .privacy-size-grid-v256,
  .privacy-louver-options-v257,
  .privacy-glass-options-v279 {
    grid-template-columns: 1fr;
  }
}

/* v331: engineering profile system selector */
.profile-system-panel-v331 {
  margin: 14px 0;
  padding: 13px;
  border: 1px solid #d9e2d2;
  border-radius: 8px;
  background: #f8faf6;
}

.profile-system-head-v331 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.profile-system-head-v331 strong,
.profile-system-head-v331 span {
  display: block;
}

.profile-system-head-v331 strong {
  color: #243022;
  font-size: 13px;
}

.profile-system-head-v331 span {
  margin-top: 2px;
  color: #71806b;
  font-size: 10px;
  line-height: 1.4;
}

.profile-system-head-v331 b {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 4px;
  color: #48682f;
  background: #e5efd9;
  font-size: 10px;
}

.profile-system-grid-v331 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.profile-system-grid-v331 button {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  min-width: 0;
  min-height: 54px;
  padding: 8px 9px;
  border: 1px solid #d6ddd1;
  border-radius: 6px;
  color: #374134;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.profile-system-grid-v331 button:hover {
  border-color: #91ad73;
}

.profile-system-grid-v331 button.is-active {
  border-color: #769b50;
  box-shadow: inset 3px 0 0 #769b50;
  background: #eef5e6;
}

.profile-system-grid-v331 button strong {
  grid-row: 1 / 3;
  margin-right: 9px;
  color: #172016;
  font-size: 14px;
}

.profile-system-grid-v331 button span,
.profile-system-grid-v331 button small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-system-grid-v331 button span {
  font-size: 10px;
  font-weight: 700;
}

.profile-system-grid-v331 button small {
  color: #788174;
  font-size: 9px;
}

.profile-specs-v331 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 9px;
}

.profile-specs-v331 span {
  min-width: 0;
  padding: 7px;
  border: 1px solid #e1e6dd;
  border-radius: 5px;
  color: #667061;
  background: #fff;
  font-size: 9px;
  line-height: 1.25;
}

.profile-specs-v331 strong {
  display: block;
  margin-top: 2px;
  color: #253022;
  font-size: 11px;
}

.profile-size-status-v331 {
  margin-top: 9px;
  padding: 9px 10px;
  border-left: 3px solid #789c51;
  border-radius: 4px;
  color: #42513d;
  background: #f0f6e9;
  font-size: 10px;
  line-height: 1.45;
}

.profile-size-status-v331.is-warning {
  border-left-color: #c17a2e;
  color: #69461f;
  background: #fff6e8;
}

.profile-size-status-v331.is-pending {
  border-left-color: #78828a;
  color: #4f5a61;
  background: #f2f4f5;
}

.size-grid [data-size-preset]:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.radio-pill.is-profile-locked-v331 {
  opacity: .42;
}

.profile-roof-lock-v331 {
  margin: 7px 0 0;
  color: #73806e;
  font-size: 10px;
}
.zip-segments{margin:16px 0;padding:16px;border:1px solid #d5dfc9;border-radius:16px;background:#f7faf3}
.zip-segments summary{cursor:pointer;font-weight:700;color:#35452b}
.zip-segments p{font-size:12px;line-height:1.6;color:#697660}
.zip-segments-module{display:grid;gap:6px;font-size:12px;color:#59634f}
.zip-segments select{box-sizing:border-box;width:100%;min-width:0;padding:10px;border:1px solid #d5dfc9;border-radius:10px;background:#fff;color:#283321;font:inherit}
[data-zip-segment-sides]{display:grid;gap:8px;margin-top:12px}
[data-zip-segment-sides] label{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 12px;border:1px solid #d5dfc9;border-radius:10px;background:#fff;color:#35452b;font-size:13px;cursor:pointer}
[data-zip-segment-sides] label:has(input:checked){background:#e8f0dd;border-color:#a6bf83}
[data-zip-segment-sides] input{appearance:auto;flex:0 0 18px;width:18px;height:18px;margin:0;accent-color:#51743a}
.zip-segments input:focus-visible,.zip-segments select:focus-visible{outline:2px solid #51743a;outline-offset:3px}
[data-extra-posts]{margin:16px 0;padding:16px;border:1px solid #d5dfc9;border-radius:16px;background:#f7faf3}[data-extra-posts] summary{cursor:pointer;font-weight:700;color:#35452b}[data-extra-posts] .extra-post-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}[data-extra-posts] label{display:grid;gap:6px;font-size:12px;color:#59634f}[data-extra-posts] input,[data-extra-posts] select{width:100%;min-width:0;box-sizing:border-box;padding:10px;border:1px solid #d5dfc9;border-radius:10px;background:#fff;color:#283321;font:inherit}[data-extra-posts] p{font-size:12px;line-height:1.5;color:#697660}[data-extra-posts] button{border:1px solid #a6bf83;border-radius:10px;padding:10px;background:#e8f0dd;color:#35452b;cursor:pointer}
.fixed-roof-controls input[data-fixed-led]{display:inline-block;width:16px;height:16px;min-height:16px;margin:0 6px 0 0;padding:0;vertical-align:middle;accent-color:#759b47}

/* Roof layout follows the existing sage selection controls. */
.roof-layout-options { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.roof-layout-options legend { padding: 0; margin-bottom: 12px; font-size: 13px; font-weight: 700; color: #56615c; }
.roof-layout-options__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.roof-layout-option { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 16px 12px; border: 1px solid #d7ded6; border-radius: 14px; background: #fff; color: #25352b; cursor: pointer; }
.roof-layout-option:has(input:checked) { border-color: #88aa5d; background: #e7efd9; box-shadow: inset 0 0 0 1px #88aa5d; }
.roof-layout-option:hover { border-color: #88aa5d; }
.roof-layout-option:has(input:focus-visible) { outline: 2px solid #547537; outline-offset: 3px; }
.roof-layout-option input { flex: 0 0 auto; width: 16px; height: 16px; margin: 3px 0 0; accent-color: #668b40; }
.roof-layout-option strong { display: block; font-size: 14px; line-height: 1.5; }
.roof-layout-option small { display: block; margin-top: 5px; color: #74806d; font-size: 11px; line-height: 1.6; }
