.profile-screen { width: min(100%, 35rem); margin: 0 auto; padding: .5rem 0 1.5rem; }
.profile-screen header { margin-bottom: 1.15rem; }
.profile-screen header h1 { margin: 0; color: var(--ink); font-size: 1.85rem; line-height: 1.25; }
.profile-screen header p { margin: .45rem 0 0; color: var(--ink-soft); }
.profile-form, .profile-section { display: grid; gap: 1rem; }
.test-login { display: grid; gap: .25rem; padding: .8rem 1rem; margin-bottom: 1rem; border-left: 3px solid var(--herb); background: var(--paper-soft); }
.test-login code { user-select: all; }
.profile-section {
  padding: clamp(1rem, 4vw, 1.5rem); border: 1px solid var(--line);
  border-radius: 1rem; background: var(--paper-strong);
}
.profile-section h2 { margin: 0; font-size: 1.1rem; }
.profile-section label { min-width: 0; }
.profile-section input { min-width: 0; min-height: 2.8rem; font-size: 1rem; }
.profile-sex { margin: 0; padding: 0; border: 0; min-width: 0; }
.profile-sex legend { margin-bottom: .45rem; font-size: .9rem; }
.sex-choices, .measurements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.sex-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sex-choices label { position: relative; }
.sex-choices input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.sex-choices span {
  display: grid; place-items: center; min-height: 2.8rem;
  border: 1px solid var(--line); border-radius: .6rem; background: var(--paper);
}
.sex-choices input:focus-visible + span { outline: 2px solid var(--herb); }
.sex-choices input:checked + span { border-color: var(--herb); color: var(--herb-dark); font-weight: 700; box-shadow: inset 0 0 0 1px var(--herb); }
.profile-back { text-align: center; }
.profile-form > button { min-height: 3rem; }
.profile-form button:active, .sex-choices label:active { transform: scale(.98); }
@media (prefers-reduced-motion: reduce) {
  .profile-form button:active, .sex-choices label:active { transform: none; }
}
