/* A stationary preview and one independently scrollable options panel. */
@media (max-width: 950px) {
  html:not(.veraluw-embed):not(:has(body.quote-preview-mode)) {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }
  html:not(.veraluw-embed) body:not(.quote-preview-mode) {
    height: 100vh;
    height: var(--app-height, 100dvh);
    min-height: 0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overscroll-behavior: none;
  }
  html:not(.veraluw-embed) body:not(.quote-preview-mode) .configurator-header {
    flex: 0 0 auto;
  }
  html:not(.veraluw-embed) body:not(.quote-preview-mode) main.wrap {
    flex: 1 1 0%;
    display: flex;
    min-height: 0;
    height: 0;
    width: 100%;
    margin: 0;
    padding: 6px max(8px, env(safe-area-inset-right, 0px)) max(8px, env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
    overflow: hidden;
  }
  html:not(.veraluw-embed) body:not(.quote-preview-mode) .layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1 1 0%;
    min-height: 0;
    gap: 8px;
    overflow: hidden;
  }
  html:not(.veraluw-embed) body:not(.quote-preview-mode) .live {
    position: relative;
    top: auto;
    order: 0;
    display: block;
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
  }
  html:not(.veraluw-embed) body:not(.quote-preview-mode) .live .stage {
    height: clamp(145px, calc(var(--app-height, 100dvh) * .33), 300px);
    min-height: 0;
    margin: 0;
    aspect-ratio: auto;
  }
  html:not(.veraluw-embed) body:not(.quote-preview-mode) .controls {
    order: 1;
    flex: 1 1 0%;
    width: 100%;
    height: 0;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scroll-padding-block: 16px;
    padding: 18px 14px max(26px, env(safe-area-inset-bottom, 0px));
    scrollbar-width: thin;
  }
  html:not(.veraluw-embed) body.keyboard-open:not(.quote-preview-mode) .live .stage {
    height: min(110px, calc(var(--app-height, 100dvh) * .27));
  }
  .controls .measure .range {
    height: 58px;
    min-height: 58px;
    margin: 0;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  .controls .measure .range::-webkit-slider-runnable-track {
    height: 6px;
  }
  .controls .measure .range::-webkit-slider-thumb {
    width: 34px;
    height: 34px;
    margin-top: -14px;
    border-width: 5px;
  }
  .controls .measure .range::-moz-range-track { height: 6px; }
  .controls .measure .range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-width: 5px;
  }
  .controls .measure-stepper {
    height: 48px;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }
  .controls .wall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .controls select { min-width: 0; max-width: 100%; font-size: 16px; }
  .controls .screen-checks label { min-height: 44px; font-size: 14px; }
  .controls .spec-details summary { min-height: 44px; padding-block: 10px; }
  .mobile-quote-link { min-height: 32px; align-content: center; padding-inline: 8px; }
}
@media (max-width: 430px) {
  .controls .wall-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 950px) and (max-height: 500px) {
  html:not(.veraluw-embed) body:not(.quote-preview-mode) .live .stage {
    height: clamp(100px, calc(var(--app-height, 100dvh) * .3), 140px);
  }
}
