/* WAI LAB — Personalizza, complete editorial treatment.
   Visual-only: questions, order, state and profile/routine logic are unchanged. */

.wl-app-shell .wl-profile-page {
  --wl-profile-ink: #171916;
  --wl-profile-muted: #676b66;
  --wl-profile-rule: rgba(46, 52, 48, .17);
  --wl-profile-paper: #fbf8f2;
  --wl-profile-selected: #202a25;
  background: #fff;
  color: var(--wl-profile-ink);
}

.wl-app-shell .wl-profile-page .wl-profile-form {
  width: min(1080px, calc(100% - 64px));
  max-width: 1080px;
  min-height: 520px;
  padding: 40px 52px 62px;
  border-color: var(--wl-profile-rule);
  background: rgba(255, 255, 255, .985);
  box-shadow: 0 24px 70px rgba(49, 44, 37, .075);
}

.wl-app-shell .wl-profile-page .wl-profile-reset {
  margin: 0 0 20px auto;
  color: #6e716d;
  font-size: 10px;
  letter-spacing: .02em;
  text-decoration: none;
}

.wl-app-shell .wl-profile-page .wl-profile-reset::after {
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 3px;
  background: currentColor;
  opacity: .35;
  content: '';
}

.wl-app-shell .wl-profile-page .wl-profile-progress {
  color: #77746f;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .2em;
}

.wl-app-shell .wl-profile-page .wl-profile-progress b {
  color: #2c332f;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
}

.wl-app-shell .wl-profile-page .wl-profile-progress-track {
  height: 2px;
  margin-top: 16px;
  background: #dedbd5;
}

.wl-app-shell .wl-profile-page .wl-profile-progress-track span {
  background: #26352d;
}

.wl-app-shell .wl-profile-page .wl-profile-section {
  min-height: 290px;
  padding: 48px 0 36px;
}

.wl-app-shell .wl-profile-page .wl-profile-section h2 {
  max-width: 850px;
  margin: 0 0 28px;
  color: var(--wl-profile-ink);
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(38px, 4.1vw, 52px);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1.02;
  text-wrap: balance;
}

.wl-app-shell .wl-profile-page .wl-profile-helper {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--wl-profile-muted);
  font-size: 12.5px;
  line-height: 1.62;
}

.wl-app-shell .wl-profile-page .wl-profile-section h2 + .wl-profile-helper {
  margin: -13px 0 24px;
}

.wl-app-shell .wl-profile-page .wl-profile-name-input {
  width: min(100%, 570px);
  min-height: 62px;
  padding: 13px 18px;
  border: 1px solid var(--wl-profile-rule);
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px transparent;
  color: var(--wl-profile-ink);
  font-size: 16px;
}

.wl-app-shell .wl-profile-page .wl-profile-name-input:focus {
  border-color: #34443b;
  box-shadow: inset 0 0 0 1px #34443b;
  outline: 0;
}

.wl-app-shell .wl-profile-page .wl-choice-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  width: min(100%, 850px);
}

.wl-app-shell .wl-profile-page .wl-choice-row .wl-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 12px 15px;
  border: 1px solid var(--wl-profile-rule);
  border-radius: 12px;
  background: #fbfaf7;
  color: #373c38;
  font-size: 12.5px;
  font-weight: 550;
  line-height: 1.35;
  text-align: left;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, transform .16s ease;
}

.wl-app-shell .wl-profile-page .wl-choice-row .wl-choice:hover {
  border-color: rgba(35, 48, 41, .45);
  background: #f5f2ec;
  transform: translateY(-1px);
}

.wl-app-shell .wl-profile-page .wl-choice-row .wl-choice.is-active {
  border-color: var(--wl-profile-selected);
  background: var(--wl-profile-selected);
  color: #fff;
  font-weight: 600;
}

.wl-app-shell .wl-profile-page .wl-choice-row .wl-choice.is-active svg {
  color: #d7c196;
}

.wl-app-shell .wl-profile-page .wl-choice-row .wl-choice:disabled {
  transform: none;
}

.wl-app-shell .wl-profile-page .wl-profile-goal-group {
  width: min(100%, 850px);
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--wl-profile-rule);
}

.wl-app-shell .wl-profile-page .wl-profile-goal-group:first-of-type {
  margin-top: 20px;
}

.wl-app-shell .wl-profile-page .wl-profile-goal-group h3 {
  margin: 0 0 12px;
  color: #716d66;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.wl-app-shell .wl-profile-page .wl-skin-type-help {
  position: static;
  display: block;
  width: min(100%, 850px);
  margin-top: 18px;
}

.wl-app-shell .wl-profile-page .wl-skin-type-help summary {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border: 1px solid var(--wl-profile-rule);
  border-radius: 12px;
  background: #f8f5ef;
  color: #404741;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
}

.wl-app-shell .wl-profile-page .wl-skin-type-help summary::after {
  margin-left: auto;
  color: #747872;
  font-size: 14px;
  content: '+';
}

.wl-app-shell .wl-profile-page .wl-skin-type-help[open] summary::after {
  content: '−';
}

.wl-app-shell .wl-profile-page .wl-skin-type-help-panel {
  position: static;
  width: 100%;
  margin-top: 8px;
  padding: 20px;
  border: 1px solid var(--wl-profile-rule);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.wl-app-shell .wl-profile-page .wl-skin-type-help-panel dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}

.wl-app-shell .wl-profile-page .wl-skin-type-help-panel dt {
  color: var(--wl-profile-ink);
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 17px;
  font-weight: 400;
}

.wl-app-shell .wl-profile-page .wl-skin-type-help-panel dd {
  font-size: 11.5px;
}

.wl-app-shell .wl-profile-page .wl-profile-navigation {
  gap: 12px;
  padding: 23px 0 0;
  border-top: 1px solid var(--wl-profile-rule);
}

.wl-app-shell .wl-profile-page .wl-profile-navigation .wl-btn {
  min-width: 148px;
  min-height: 46px;
  border-radius: 999px;
  font-size: 12px;
}

.wl-app-shell .wl-profile-page .wl-profile-navigation .wl-btn-secondary {
  border-color: transparent;
  background: transparent;
}

.wl-app-shell .wl-profile-page .wl-profile-navigation .wl-btn-primary {
  border-color: var(--wl-profile-selected);
  background: var(--wl-profile-selected);
  box-shadow: none;
}

.wl-app-shell .wl-profile-page .wl-profile-complete {
  margin-top: 28px;
  padding: 25px 28px;
  border: 1px solid var(--wl-profile-rule);
  border-radius: 16px;
  background: #f6f2eb;
}

.wl-app-shell .wl-profile-page .wl-profile-complete h3 {
  color: var(--wl-profile-ink);
  font-size: 27px;
}

/* Existing products: same editorial controls as the rest of the path. */
.wl-app-shell .wl-profile-page .wl-existing-products {
  width: min(100%, 850px);
  max-width: 850px;
  gap: 12px;
  margin-top: 22px;
}

.wl-app-shell .wl-profile-page .wl-existing-product-search {
  min-height: 58px;
  padding-inline: 16px;
  border-color: var(--wl-profile-rule);
  border-radius: 12px;
  background: #fff;
}

.wl-app-shell .wl-profile-page .wl-existing-product-search:focus-within {
  border-color: #34443b;
  box-shadow: inset 0 0 0 1px #34443b;
}

.wl-app-shell .wl-profile-page .wl-existing-selected-item,
.wl-app-shell .wl-profile-page .wl-existing-results > button,
.wl-app-shell .wl-profile-page .wl-existing-missing-panel {
  border-color: var(--wl-profile-rule);
  border-radius: 12px;
  background: #fbfaf7;
}

.wl-app-shell .wl-profile-page .wl-existing-results > button {
  min-height: 62px;
  padding: 9px 12px;
}

.wl-app-shell .wl-profile-page .wl-existing-result-icon,
.wl-app-shell .wl-profile-page .wl-existing-remove,
.wl-app-shell .wl-profile-page .wl-existing-missing-heading > button {
  border-radius: 50%;
}

.wl-app-shell .wl-profile-page .wl-existing-settings button,
.wl-app-shell .wl-profile-page .wl-existing-settings select {
  border-color: var(--wl-profile-rule);
  background: #fff;
}

.wl-app-shell .wl-profile-page .wl-existing-settings button.is-active {
  border-color: var(--wl-profile-selected);
  background: var(--wl-profile-selected);
  color: #fff;
}

.wl-app-shell .wl-profile-page .wl-existing-missing-fields input {
  border-color: var(--wl-profile-rule);
  border-radius: 10px;
}

/* Skin type and age: compact single rows on desktop only. */
@media (min-width: 821px) {
  .wl-app-shell .wl-profile-page .wl-choice-row:has(+ .wl-skin-type-help) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .wl-app-shell .wl-profile-page .wl-age-choice-row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .wl-app-shell .wl-profile-page .wl-choice-row:has(+ .wl-skin-type-help) .wl-choice,
  .wl-app-shell .wl-profile-page .wl-age-choice-row .wl-choice {
    min-width: 0;
    min-height: 48px;
    padding: 10px 12px;
  }
}

@media (max-width: 820px) {
  .wl-app-shell .wl-profile-page .wl-profile-form {
    width: calc(100% - 36px);
    padding: 34px 30px 52px;
  }

  .wl-app-shell .wl-profile-page .wl-choice-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .wl-app-shell .wl-profile-page .wl-profile-form {
    width: calc(100% - 24px);
    margin-top: -20px;
    padding: 27px 18px 42px;
    border-radius: 18px;
  }

  .wl-app-shell .wl-profile-page .wl-profile-reset {
    margin-bottom: 16px;
    font-size: 9px;
  }

  .wl-app-shell .wl-profile-page .wl-profile-section {
    min-height: 270px;
    padding: 38px 0 30px;
  }

  .wl-app-shell .wl-profile-page .wl-profile-section h2 {
    margin-bottom: 23px;
    font-size: clamp(32px, 9.6vw, 38px);
    line-height: 1.02;
  }

  .wl-app-shell .wl-profile-page .wl-profile-section h2 + .wl-profile-helper {
    margin-top: -10px;
  }

  .wl-app-shell .wl-profile-page .wl-profile-name-input {
    min-height: 56px;
    font-size: 16px;
  }

  .wl-app-shell .wl-profile-page .wl-choice-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .wl-app-shell .wl-profile-page .wl-choice-row .wl-choice {
    min-height: 54px;
    padding: 10px 11px;
    border-radius: 10px;
    font-size: 11.5px;
  }

  .wl-app-shell .wl-profile-page .wl-profile-goal-group {
    margin-top: 22px;
    padding-top: 16px;
  }

  .wl-app-shell .wl-profile-page .wl-skin-type-help summary,
  .wl-app-shell .wl-profile-page .wl-skin-type-help-panel,
  .wl-app-shell .wl-profile-page .wl-existing-product-search,
  .wl-app-shell .wl-profile-page .wl-existing-selected-item,
  .wl-app-shell .wl-profile-page .wl-existing-results > button,
  .wl-app-shell .wl-profile-page .wl-existing-missing-panel {
    border-radius: 10px;
  }

  .wl-app-shell .wl-profile-page .wl-skin-type-help-panel {
    padding: 16px;
  }

  .wl-app-shell .wl-profile-page .wl-skin-type-help-panel dl {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .wl-app-shell .wl-profile-page .wl-profile-navigation {
    gap: 8px;
  }

  .wl-app-shell .wl-profile-page .wl-profile-navigation .wl-btn {
    min-width: 0;
    min-height: 44px;
    flex: 1;
    padding-inline: 12px;
    font-size: 11px;
  }

  .wl-app-shell .wl-profile-page .wl-profile-complete {
    padding: 21px 18px;
  }
}

@media (max-width: 350px) {
  .wl-app-shell .wl-profile-page .wl-choice-row {
    grid-template-columns: 1fr;
  }
}
.wl-existing-confirmation{padding:16px;margin:16px 0;background:#eff3ee;border:1px solid #d7e0d4;border-radius:12px;color:#314c40}
.wl-existing-confirmation>div{display:flex;align-items:flex-start;gap:10px}
.wl-existing-confirmation svg{flex-shrink:0}
.wl-existing-confirmation strong{display:block;font-size:14px;line-height:1.5}
.wl-existing-confirmation small{display:block;font-size:13px;line-height:1.6;margin-top:4px}
.wl-existing-confirmation button{margin-top:12px;max-width:100%;white-space:normal}
