/* Shared multiple-goal picker: registration, invitations and profiles. */
.client-goal-fields {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  grid-column: 1 / -1;
  container-type: inline-size;
}
.client-goal-fields legend {
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  margin-bottom: var(--rhythm-1);
}
body .client-goal-fields .client-goal-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--rhythm-1);
}
/* Match the registration specificity so every entry point has the same geometry. */
body .client-goal-fields label.client-goal-choice,
body.login-auth-body.auth-onboarding-register .login-card .auth-form .client-goal-fields label.client-goal-choice {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--rhythm-1);
  width: 100%;
  min-width: 0;
  min-height: var(--control-height);
  box-sizing: border-box;
  margin: 0;
  padding: var(--choice-pad);
  border: var(--choice-border-width) solid var(--choice-line);
  border-radius: var(--choice-radius);
  background: var(--control-fill, #fff);
  color: var(--control-ink);
  cursor: pointer;
}
body .client-goal-fields .client-goal-choice > span {
  order: -1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: var(--choice-size);
  font-weight: var(--choice-weight);
  line-height: var(--text-leading);
}
body .client-goal-fields .client-goal-choice input[type="checkbox"] {
  width: var(--choice-mark) !important;
  height: var(--choice-mark) !important;
  min-height: var(--choice-mark) !important;
  flex: 0 0 var(--choice-mark);
  margin: 0;
  padding: 0 !important;
  accent-color: var(--control-focus-line);
  cursor: pointer;
}
body .client-goal-fields label.client-goal-choice:has(input:checked),
body.login-auth-body.auth-onboarding-register .login-card .auth-form .client-goal-fields label.client-goal-choice:has(input:checked) {
  background: var(--choice-fill-checked);
  border-color: var(--control-focus-line);
}
@media (hover: hover) {
  body .client-goal-fields label.client-goal-choice:hover,
  body.login-auth-body.auth-onboarding-register .login-card .auth-form .client-goal-fields label.client-goal-choice:hover {
    background: var(--choice-fill);
    border-color: var(--control-focus-line);
  }
  body .client-goal-fields label.client-goal-choice:has(input:checked):hover,
  body.login-auth-body.auth-onboarding-register .login-card .auth-form .client-goal-fields label.client-goal-choice:has(input:checked):hover {
    background: var(--choice-fill-checked);
  }
}
body .client-goal-fields label.client-goal-choice:has(input:focus-visible) {
  outline: var(--control-focus-width) solid var(--control-focus-line);
  outline-offset: var(--control-focus-offset);
}
@container (max-width: 340px) {
  body .client-goal-fields .client-goal-options { grid-template-columns: minmax(0, 1fr); }
}

/* The full option carries the keyboard focus ring, in the brand color. */
body .client-goal-fields .client-goal-choice input:focus-visible { outline: none; }
