/* Shared selection roles; keep the approved control geometry and glass sheen. */
body.is-logged-in .profile-choice-grid {
  --preference-fill: var(--sp-selection-light-fill);
  --preference-border: var(--sp-selection-light-border);
  --preference-text: var(--sp-selection-light-text);
  --preference-top: var(--sp-selection-light-top);
}
html[data-theme="dark"] body.is-logged-in .profile-choice-grid {
  --preference-fill: var(--sp-selection-dark-fill);
  --preference-border: var(--sp-selection-dark-border);
  --preference-text: var(--sp-selection-dark-text);
  --preference-top: var(--sp-selection-dark-top);
}
html[data-theme] body.is-logged-in .profile-choice-grid button[aria-pressed="true"] {
  color: var(--preference-text) !important;
  border-color: var(--preference-border) !important;
  background: radial-gradient(ellipse at 50% -24%, rgba(255,255,255,.32), transparent 52%),
    linear-gradient(155deg, var(--preference-top), var(--preference-fill) 76%) !important;
}

html[data-theme] body.is-logged-in .profile-choice-grid button {
  min-height: var(--sp-control-min-touch-size);
}

/* Profile switches use the same selected role as Profile choices. */
html[data-theme] body.is-logged-in .profile-setting-row input:checked + .profile-location-toggle {
  background: var(--sp-selection-light-fill);
}
html[data-theme="dark"] body.is-logged-in .profile-setting-row input:checked + .profile-location-toggle {
  background: var(--sp-selection-dark-fill);
}
html[data-theme] body.is-logged-in .profile-setting-row input:focus-visible + .profile-location-toggle {
  outline: 2px solid var(--sp-selection-light-border);
  outline-offset: 3px;
}
