/* v537: one glass panel; form first, benefits below (4 / 2 / 1 columns).
   Scoped to the start page. No editor, pricing, background or icon changes.
   Reset legacy named grid areas: "usp" otherwise creates implicit columns/rows. */
html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .start-content-layout {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex: 1 1 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 16px 24px !important;
  gap: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-gutter: stable both-edges;
}

html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .start-card {
  display: flex !important;
  flex-direction: column !important;
  flex: 0 0 auto !important;
  grid-area: auto !important;
  grid-template: none !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 1120px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  /* Auto margins center when space permits and collapse on short screens.
     The panel itself never becomes an inner scrolling box. */
  margin: auto 0 !important;
  padding: 24px 26px !important;
  gap: 18px !important;
  overflow: visible !important;
}

html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .start-card-main {
  display: block !important;
  order: 0 !important;
  flex: 0 0 auto !important;
  grid-area: auto !important;
  position: static !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  align-self: stretch !important;
  margin: 0 !important;
  padding: 0 !important;
}

html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .start-copy {
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 12px !important;
}
html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .start-title {
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 4px !important;
  font-size: clamp(22px, 2vw, 30px) !important;
  line-height: 1.12 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}
html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .start-subtitle {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  font-size: 22px !important;
  line-height: 1.15 !important;
}
html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .chooser-block {
  width: 100% !important;
  max-width: none !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
}
html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .chooser-block > h2 {
  margin: 0 0 5px !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
}
html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .choice-grid {
  display: grid !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  grid-template-rows: none !important;
  grid-auto-flow: row !important;
  gap: 8px !important;
}
html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 #assemblyTypeChoices,
html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 #depthChoices {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 #colorChoices {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .choice-card {
  min-width: 0 !important;
  width: 100% !important;
  min-height: 42px !important;
  height: 42px !important;
  max-height: none !important;
  padding: 4px 32px 4px 10px !important;
  gap: 8px !important;
}
html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .choice-label {
  font-size: 14px !important;
  line-height: 1.15 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}
html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 :is(.assembly-swatch, .numeric-swatch) {
  width: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  flex: 0 0 28px !important;
}
html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 #wallInputs {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100% !important;
  max-width: none !important;
  gap: 8px !important;
}
html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 #wallInputs.corner-mode {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .wall-input,
html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .ahp-wall-control {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}
html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .ahp-wall-control,
html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .ahp-wall-control input {
  height: 42px !important;
  min-height: 0 !important;
  max-height: none !important;
}
html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .start-actions {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 12px 0 0 !important;
}
html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .start-action-set:not(.hidden):not([hidden]) {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  gap: 8px !important;
}
html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .start-action-set .btn {
  width: auto !important;
  min-height: 42px !important;
  height: auto !important;
  padding: 9px 16px !important;
}

/* Benefit strip is always the second child, underneath the entire form. */
html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .start-card > .start-usp {
  display: grid !important;
  order: 1 !important;
  flex: 0 0 auto !important;
  grid-area: auto !important;
  grid-template-areas: none !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-template-rows: none !important;
  grid-auto-flow: row !important;
  grid-auto-rows: 1fr !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 14px 0 0 !important;
  border-top: 1px solid rgba(255, 255, 255, .12) !important;
  gap: 10px !important;
  align-items: stretch !important;
  align-content: start !important;
  align-self: stretch !important;
  justify-items: stretch !important;
  overflow: visible !important;
}
html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .start-usp-item {
  grid-area: auto !important;
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) !important;
  grid-template-rows: auto 1fr !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 10px !important;
  column-gap: 9px !important;
  row-gap: 4px !important;
  align-self: stretch !important;
  align-items: start !important;
  border-radius: 12px !important;
}
html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .start-usp-item .start-usp-icon {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  width: 38px !important;
  height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  margin: 0 !important;
  align-self: center !important;
  object-fit: contain !important;
}
html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .start-usp-item h2 {
  grid-column: 2 !important;
  grid-row: 1 !important;
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  color: #fff !important;
}
html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .start-usp-item p {
  grid-column: 2 !important;
  grid-row: 2 !important;
  margin: 0 !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
  color: rgba(255, 255, 255, .86) !important;
}

/* Medium windows: 2 x 2, never three columns. */
@media (max-width: 1023px) {
  html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .start-content-layout {
    padding: 12px 16px !important;
  }
  html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .start-card {
    padding: 20px !important;
    gap: 14px !important;
  }
  html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .start-card > .start-usp {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding-top: 12px !important;
  }
}

/* The legacy mobile color layout uses a column: flex-basis is its height,
   not its width. Reserve 18px for the brush so the color names stay visible. */
@media (max-width: 700px) {
  html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 #colorChoices .choice-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    height: 48px !important;
    min-height: 48px !important;
    gap: 2px !important;
  }
  html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 #colorChoices .color-brush-swatch {
    flex: 0 0 18px !important;
    width: 44px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
  }
  html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 #colorChoices .color-brush-swatch img {
    width: 100% !important;
    height: 16px !important;
    object-fit: contain !important;
  }
}

/* Phone: four stacked benefits with full text; no nested panel scrollbar. */
@media (max-width: 599px) {
  html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .start-content-layout {
    padding: 10px !important;
    scrollbar-gutter: auto !important;
  }
  html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .start-card {
    padding: 12px !important;
    gap: 8px !important;
  }
  html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .start-title {
    font-size: clamp(18px, 5vw, 23px) !important;
  }
  html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .start-subtitle {
    font-size: 18px !important;
  }
  html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .chooser-block { margin-top: 8px !important; }
  html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .chooser-block > h2 { font-size: 14px !important; }
  html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .choice-card {
    padding: 4px 25px 4px 7px !important;
    gap: 6px !important;
  }
  html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .choice-label {
    font-size: 12px !important;
  }
  html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 #colorChoices .choice-card {
    min-height: 48px !important;
    height: 48px !important;
    padding-left: 8px !important;
  }
  html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .start-action-set .btn {
    flex: 1 1 calc(50% - 4px) !important;
    min-width: 0 !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
  }
  html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .start-card > .start-usp {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-rows: auto !important;
    gap: 6px !important;
    padding-top: 8px !important;
  }
  html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .start-usp-item {
    padding: 6px 10px !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    column-gap: 8px !important;
    row-gap: 2px !important;
  }
  html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .start-usp-item .start-usp-icon {
    width: 34px !important;
    height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
  }
}

/* Reduce spacing on shorter desktop screens, not the content or its visibility. */
@media (min-width: 600px) and (max-height: 740px) {
  html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .start-content-layout { padding-block: 8px !important; }
  html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .start-card { padding: 16px 20px !important; gap: 12px !important; }
  html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .start-copy { margin-bottom: 8px !important; }
  html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .start-title { font-size: 24px !important; }
  html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .start-subtitle { font-size: 20px !important; }
  html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .chooser-block { margin-top: 7px !important; }
  html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .choice-card { height: 38px !important; min-height: 38px !important; }
  html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .ahp-wall-control,
  html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .ahp-wall-control input { height: 38px !important; }
  html.ahp-layout-v497 #app #startScreen.start-usp-below-v537 .start-usp-item { padding: 8px !important; }
}
