/* v539: consistent start-choice states and the wall-input status/stepper order.
   Keep v538 sizing, typography, glass panel, USP layout and animation unchanged.
   The group IDs intentionally match the old colour-card base rule specificity. */
html.ahp-layout-v497 #app #startScreen.start-usp-below-v537.start-refined-v538 :is(#assemblyTypeChoices, #colorChoices, #depthChoices) .choice-card {
  border-color: rgba(255,255,255,.17) !important;
  background: linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.025)) !important;
  color: #fff !important;
  box-shadow: none !important;
  transform: none !important;
  transition: background .16s ease, border-color .16s ease, color .16s ease !important;
}
html.ahp-layout-v497 #app #startScreen.start-usp-below-v537.start-refined-v538 :is(#assemblyTypeChoices, #colorChoices, #depthChoices) .choice-card:hover,
html.ahp-layout-v497 #app #startScreen.start-usp-below-v537.start-refined-v538 :is(#assemblyTypeChoices, #colorChoices, #depthChoices) .choice-card:active {
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.27) !important;
  box-shadow: none !important;
}
html.ahp-layout-v497 #app #startScreen.start-usp-below-v537.start-refined-v538 :is(#assemblyTypeChoices, #colorChoices, #depthChoices) .choice-card.active,
html.ahp-layout-v497 #app #startScreen.start-usp-below-v537.start-refined-v538 :is(#assemblyTypeChoices, #colorChoices, #depthChoices) .choice-card.active:hover,
html.ahp-layout-v497 #app #startScreen.start-usp-below-v537.start-refined-v538 :is(#assemblyTypeChoices, #colorChoices, #depthChoices) .choice-card.active:focus-visible {
  background: rgba(40,184,100,.07) !important;
  border-color: rgba(45,184,103,.85) !important;
  box-shadow: none !important;
}
html.ahp-layout-v497 #app #startScreen.start-usp-below-v537.start-refined-v538 :is(#assemblyTypeChoices, #colorChoices, #depthChoices) .choice-card .choice-label {
  color: #fff !important;
}
html.ahp-layout-v497 #app #startScreen.start-usp-below-v537.start-refined-v538 :is(#assemblyTypeChoices, #colorChoices, #depthChoices) .choice-card:focus-visible {
  outline: 2px solid rgba(255,255,255,.78) !important;
  outline-offset: 3px !important;
}

/* Text -> green validity mark -> up/down buttons at the right edge.
   The reserved input padding prevents all five digits (20000) hitting either icon. */
html.ahp-layout-v497 #app #startScreen.start-usp-below-v537.start-refined-v538 .ahp-wall-control input {
  padding-right: 66px !important;
}
html.ahp-layout-v497 #app #startScreen.start-usp-below-v537.start-refined-v538 .ahp-wall-control .ahp-wall-valid-mark {
  right: 40px !important;
}
html.ahp-layout-v497 #app #startScreen.start-usp-below-v537.start-refined-v538 .ahp-wall-control .ahp-number-stepper {
  right: 10px !important;
}

/* Mobile colour cards already have a swatch row above the label in v538.
   Keep the check in that row, not in the text's horizontal space. */
@media (max-width: 599px) {
  html.ahp-layout-v497 #app #startScreen.start-usp-below-v537.start-refined-v538 #colorChoices .choice-card {
    padding-right: 10px !important;
  }
  html.ahp-layout-v497 #app #startScreen.start-usp-below-v537.start-refined-v538 #colorChoices .choice-card.active::after {
    top: 10px !important;
    right: 8px !important;
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.ahp-layout-v497 #app #startScreen.start-usp-below-v537.start-refined-v538 :is(#assemblyTypeChoices, #colorChoices, #depthChoices) .choice-card {
    transition: none !important;
  }
}
