/* My Hair > Settings (11-04 redesign): the account and the website first,
   the profile in one small card, and Edit profile in its own window (a sheet
   on phones). Tokens come from ui/customer-refresh.css (--rf-*). app.js
   renderMeSettings / renderMeProfileEditor draw it; ui/settings-page.js runs
   the index, Escape, focus and the sheet's drag. */

.st-layout {
  container: st / inline-size;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px 32px;
  color: var(--rf-text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.st-layout :is(h2, h3, p, ul) { margin: 0; }
.st-layout ul { padding: 0; list-style: none; }
.st-layout .icon, .st-modal-layer .icon { width: 18px; height: 18px; flex: none; }
.st-column { flex: 999 1 560px; display: flex; flex-direction: column; gap: 40px; min-width: 0; }
html body.me-workspace-mode .me-page-header.st-page-header > div > span { display: block; max-width: 640px; margin-top: 10px; color: var(--rf-muted); font-size: 16px; line-height: 1.55; }
.st-desktop-only { display: inline-flex; }
.st-phone-only { display: none !important; }

/* ---- The profile, one small card ---------------------------------------- */
.st-profile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 22px;
  padding: 24px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--rf-shadow);
}
.st-avatar {
  display: grid;
  flex: none;
  width: 76px;
  height: 76px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--rf-violet-soft);
  color: var(--rf-violet-ink);
  font-size: 24px;
  font-weight: 750;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--rf-violet-soft-2), 0 12px 24px -14px rgba(82, 54, 179, 0.55);
}
.st-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-profile-copy { flex: 1 1 300px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.st-profile-copy > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.st-profile h2 { color: var(--rf-ink); font-size: 22px; font-weight: 750; line-height: 1.2; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.st-profile p { color: var(--rf-muted); font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.st-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.st-summary li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--rf-violet-soft);
  color: var(--rf-violet-ink);
  font-size: 13px;
  font-weight: 700;
}
.st-summary li > span:first-child:not([class]) { color: var(--rf-muted); font-weight: 600; }
.st-summary li.is-verified { background: #e8f7f0; color: #1f7a5c; }
.st-summary li .icon { width: 13px; height: 13px; stroke-width: 2.6; }
.st-edit,
.st-outline,
.st-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--rf-violet-line);
  border-radius: 999px;
  background: #fff;
  color: var(--rf-violet-ink);
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 200ms ease, transform 120ms ease;
}
.st-edit { flex: none; min-height: 44px; padding: 0 20px; font-size: 15px; box-shadow: 0 6px 16px -12px rgba(82, 54, 179, 0.45); }
.st-edit .icon, .st-outline .icon, .st-pill .icon { width: 16px; height: 16px; }
.st-edit:hover, .st-outline:hover:not(:disabled) { border-color: #c5b3f4; background: var(--rf-violet-soft); box-shadow: 0 10px 22px -16px rgba(82, 54, 179, 0.6); }
.st-edit:active, .st-outline:active:not(:disabled) { transform: scale(0.97); }
.st-outline.is-danger { border-color: #f1d3da; color: #b0364f; }
.st-outline.is-danger:hover:not(:disabled) { border-color: #e7b3bf; background: #fdf2f4; }
.st-outline:disabled { opacity: 0.6; cursor: default; }

/* ---- Groups: a heading outside a white card of rows --------------------- */
.st-group { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 24px; }
.st-profile, .st-delete { scroll-margin-top: 24px; }
.st-group-head { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; }
.st-group-head h2 { color: var(--rf-ink); font-size: 20px; font-weight: 750; line-height: 1.2; letter-spacing: -0.02em; }
.st-group-head p { color: var(--rf-muted); font-size: 14.5px; line-height: 1.5; }
.st-card { padding: 4px 0 !important; border-radius: 22px; background: #fff; box-shadow: var(--rf-shadow); }
.st-card > li { margin: 0 18px; }
.st-card > li + li { border-top: 1px solid var(--rf-line-soft); }
.st-row {
  display: flex;
  align-items: center;
  gap: 12px 16px;
  width: 100%;
  min-height: 0;
  padding: 16px 0;
  color: inherit;
  font: inherit;
  text-align: left;
}
button.st-row {
  width: calc(100% + 20px);
  margin: 0 -10px;
  padding: 16px 10px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  transition: background-color 180ms ease, transform 120ms ease;
}
button.st-row:hover { background: var(--rf-ground); }
button.st-row:active { transform: scale(0.99); }
button.st-row:focus-visible { outline: 0; box-shadow: 0 0 0 2px #8a6fe6; }
.st-icon {
  display: grid;
  flex: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: var(--rf-violet-soft);
  color: var(--rf-violet);
}
.st-icon .icon { width: 18px; height: 18px; }
.st-icon.is-danger { background: #fdf2f4; color: #b0364f; }
.st-copy { flex: 1 1 240px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.st-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--rf-ink); font-size: 15.5px; font-weight: 650; line-height: 1.35; }
.st-detail { color: var(--rf-muted); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.st-detail.is-value { color: var(--rf-soft-text); }
.st-badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; background: #e8f7f0; color: #1f7a5c; font-size: 11.5px; font-weight: 750; }
.st-badge .icon { width: 12px; height: 12px; stroke-width: 2.8; }
.st-note { display: inline-flex; flex: none; align-items: center; gap: 6px; min-height: 44px; color: var(--rf-muted); font-size: 13px; font-weight: 650; }
.st-note .icon { width: 14px; height: 14px; }
.st-pill { flex: none; pointer-events: none; }
button.st-row:hover .st-pill { border-color: #c5b3f4; background: var(--rf-violet-soft); }
.st-row.is-danger .st-pill { border-color: #f1d3da; color: #b0364f; }
button.st-row.is-danger:hover .st-pill { border-color: #e7b3bf; background: #fdf2f4; }
.st-value { flex: none; color: var(--rf-muted); font-size: 14px; font-weight: 650; }
.st-chevron { display: grid; flex: none; place-items: center; color: #a49cb3; transition: transform 200ms var(--rf-ease), color 180ms ease; }
.st-chevron .icon { width: 16px; height: 16px; }
button.st-row:hover .st-chevron { color: var(--rf-violet); transform: translateX(2px); }
.st-row.has-pill .st-chevron,
.st-row.has-pill .st-value { display: none; }
.st-text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; color: var(--rf-violet-ink); font-size: 14.5px; font-weight: 700; text-decoration: none; }
.st-text-link .icon { width: 13px; height: 13px; transition: transform 200ms var(--rf-ease); }
.st-text-link:hover { color: var(--rf-violet); }
.st-text-link:hover .icon { transform: translate(2px, -2px); }

/* A switch: the knob springs across; it saves the moment it flips. */
.st-switch {
  display: grid;
  flex: none;
  width: 60px;
  height: 44px;
  min-width: 0;
  min-height: 0 !important;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.st-switch-track {
  position: relative;
  display: block;
  width: 52px;
  height: 32px;
  border-radius: 999px;
  background: #cbc1db;
  box-shadow: inset 0 0 0 1px #b8acd0;
  transition: background-color 200ms ease, box-shadow 200ms ease;
}
.st-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(29, 26, 36, 0.22), 0 0 0 0.5px rgba(29, 26, 36, 0.06);
  transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.st-switch[aria-checked="true"] .st-switch-track { background: var(--rf-violet); box-shadow: inset 0 0 0 1px rgba(82, 54, 179, 0.25); }
.st-switch[aria-checked="true"] .st-switch-knob { transform: translateX(20px); }
.st-switch:hover:not(:disabled) .st-switch-knob { box-shadow: 0 3px 9px rgba(29, 26, 36, 0.26), 0 0 0 0.5px rgba(29, 26, 36, 0.06); }
.st-switch:focus-visible { outline: 0; }
.st-switch:focus-visible .st-switch-track { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #8a6fe6; }
.st-switch[aria-busy="true"] .st-switch-knob { animation: st-knob-wait 1s ease-in-out infinite; }
.st-switch:disabled { cursor: default; opacity: 0.55; }
.st-switch:disabled[aria-busy="true"] { opacity: 0.75; }
@keyframes st-knob-wait { 50% { box-shadow: 0 0 0 4px rgba(145, 107, 232, 0.2), 0 2px 6px rgba(29, 26, 36, 0.22); } }

/* App language: four pills on one track. */
.st-segment {
  flex: none;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(235, 231, 243, 0.7);
  box-shadow: inset 0 1px 2px rgba(29, 26, 36, 0.05);
}
.st-segment button {
  min-height: 40px !important;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5d5767;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.st-segment button:hover { color: var(--rf-ink); }
.st-segment button[aria-pressed="true"] { background: #fff; color: var(--rf-ink); font-weight: 750; box-shadow: 0 1px 2px rgba(29, 26, 36, 0.08), 0 6px 14px -8px rgba(82, 54, 179, 0.45); }
.st-row.is-language { flex-wrap: wrap; }
.st-select { position: relative; align-items: center; gap: 4px; color: var(--rf-muted); }
.st-select select { min-height: 44px; padding: 0 22px 0 6px; border: 0 !important; background: transparent !important; color: var(--rf-muted); font: inherit; font-size: 14px; font-weight: 650; text-align: right; -webkit-appearance: none; appearance: none; box-shadow: none !important; }
.st-select .icon { position: absolute; right: 0; width: 16px; height: 16px; pointer-events: none; color: #a49cb3; }

/* Delete account, its own card with a soft danger edge. */
.st-delete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 16px;
  padding: 22px 24px 22px 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 0 0 1px #f6dfe4, 0 12px 32px -20px rgba(176, 54, 79, 0.22);
}
.st-delete-copy { flex: 1 1 300px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.st-delete h2 { color: var(--rf-ink); font-size: 15.5px; font-weight: 700; line-height: 1.35; }
.st-delete p { color: var(--rf-muted); font-size: 14px; line-height: 1.5; }
.st-delete.is-pending h2 { color: #b0364f; }
.st-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; padding: 0 4px; }
.st-legal a { display: flex; align-items: center; min-height: 44px; color: var(--rf-muted); font-size: 14px; font-weight: 650; text-decoration: none; }
.st-legal a:hover { color: var(--rf-violet-ink); }

/* ---- On this page ------------------------------------------------------- */
.st-index { position: sticky; top: 24px; flex: 1 1 232px; display: flex; flex-direction: column; gap: 14px; max-width: 264px; min-width: 0; }
.st-index-card {
  position: relative;
  isolation: isolate;
  padding: 18px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 2px rgba(29, 26, 36, 0.05), 0 28px 60px -34px rgba(82, 54, 179, 0.4);
}
.st-index-card > p { margin: 0 0 8px; padding: 0 12px; color: var(--rf-violet-ink); font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.st-index-card ul { display: flex; flex-direction: column; gap: 2px; }
.st-index-card li.is-danger { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--rf-line-soft); }
.st-index-card button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px !important;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #5d5767;
  font: inherit;
  font-size: 14.5px;
  font-weight: 620;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease;
}
.st-index-card button i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: #e2dcec; transition: background 200ms ease; }
.st-index-card button:hover { color: var(--rf-ink); }
.st-index-card button[aria-current="true"] { color: var(--rf-violet-ink); font-weight: 700; }
.st-index-card button[aria-current="true"] i { background: linear-gradient(135deg, #4fcfa9, #6a48d0); }
.st-index-card li.is-danger button { color: #b0364f; }
.st-index-card li.is-danger button i { background: #f1d3da; }
.st-index-glider {
  position: absolute;
  top: 0;
  left: 10px;
  right: 10px;
  z-index: -1;
  height: var(--st-glide-h, 44px);
  border-radius: 12px;
  background: var(--rf-violet-soft);
  transform: translateY(var(--st-glide-y, 44px));
}
.st-index-card.is-placed .st-index-glider { transition: transform 200ms var(--rf-ease), height 200ms var(--rf-ease); }
.st-index-note { display: flex; gap: 10px; padding: 14px 16px; border-radius: 18px; background: rgba(244, 240, 253, 0.7); color: var(--rf-soft-text); font-size: 13.5px; line-height: 1.5; }
.st-index-note .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--rf-violet); stroke-width: 2.4; }
.st-index-note p { margin: 0; }
.st-index-note strong { color: var(--rf-ink); font-weight: 700; }
@container st (max-width: 900px) {
  .st-index { display: none; }
}

/* The page rises in once; the groups follow a beat apart. */
.customer-surface-enter .st-column > * { animation: st-rise 200ms var(--rf-ease) both; }
.customer-surface-enter .st-column > :nth-child(2) { animation-delay: 40ms; }
.customer-surface-enter .st-column > :nth-child(3) { animation-delay: 80ms; }
.customer-surface-enter .st-column > :nth-child(4) { animation-delay: 120ms; }
.customer-surface-enter .st-column > :nth-child(n + 5) { animation-delay: 160ms; }
@keyframes st-rise { from { opacity: 0; transform: translateY(8px); } }

/* ---- Edit profile: a window over the page ------------------------------- */
html.st-modal-open,
html.st-modal-open body { overflow: hidden; }
.st-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: 24px;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.st-modal-layer :is(h2, h3, p, fieldset, legend) { margin: 0; }
.st-modal-backdrop {
  position: absolute;
  inset: 0;
  min-height: 0 !important;
  border: 0;
  background: rgba(29, 26, 36, 0.36);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: st-fade-in 240ms ease both;
}
.st-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  max-height: min(1000px, calc(100dvh - 48px));
  overflow: hidden;
  border-radius: 26px;
  outline: 0;
  background: #fff;
  color: var(--rf-text);
  box-shadow: 0 1px 2px rgba(29, 26, 36, 0.06), 0 40px 90px -30px rgba(29, 26, 36, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.6);
  animation: st-modal-in 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.st-modal-layer.is-closing .st-modal { animation: st-modal-out 200ms ease-in forwards; }
.st-modal-layer.is-closing .st-modal-backdrop { animation: st-fade-out 200ms ease-in forwards; }
@keyframes st-modal-in { from { opacity: 0; transform: scale(0.96) translateY(8px); } }
@keyframes st-modal-out { to { opacity: 0; transform: scale(0.97) translateY(6px); } }
@keyframes st-fade-in { from { opacity: 0; } }
@keyframes st-fade-out { to { opacity: 0; } }
.st-grabber { display: none; }
.st-modal-head { display: flex; flex: none; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 26px 24px 16px 32px; }
.st-modal-head > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.st-modal-head h2 { color: var(--rf-ink); font-size: 26px; font-weight: 750; line-height: 1.15; letter-spacing: -0.025em; }
.st-modal-head p { color: var(--rf-muted); font-size: 14.5px; line-height: 1.5; }
.st-close {
  display: grid;
  flex: none;
  width: 44px;
  height: 44px;
  min-height: 0 !important;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--rf-band);
  color: var(--rf-soft-text);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 120ms ease;
}
.st-close:hover { background: var(--rf-violet-soft); color: var(--rf-violet-ink); }
.st-close:active { transform: scale(0.94); }
.st-modal-body { display: flex; flex: 1; flex-direction: column; gap: 22px; min-height: 0; padding: 6px 32px 24px; overflow-y: auto; overscroll-behavior: contain; }
.st-photo { display: flex; align-items: center; gap: 20px; }
.st-photo-pick { position: relative; display: grid; flex: none; width: 80px; height: 80px; place-items: center; border-radius: 50%; background: var(--rf-violet-soft); color: var(--rf-violet-ink); font-size: 24px; font-weight: 750; cursor: pointer; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--rf-violet-soft-2), 0 12px 24px -14px rgba(82, 54, 179, 0.55); }
.st-photo-pick img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.st-photo-pick b { position: absolute; right: -2px; bottom: -2px; display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--rf-gradient); color: #fff; box-shadow: 0 0 0 3px #fff; transition: transform 200ms var(--rf-ease); }
.st-photo-pick:hover b { transform: scale(1.08); }
.st-photo-pick b .icon { width: 15px; height: 15px; }
.st-photo-pick.uploading { opacity: 0.6; }
.st-photo :is(.st-photo-pick, .st-photo-button) input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.st-photo-copy { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.st-photo-copy strong { color: var(--rf-ink); font-size: 15.5px; font-weight: 650; }
.st-photo-copy span { color: var(--rf-muted); font-size: 14px; line-height: 1.5; }
.st-photo-button { position: relative; flex: none; }
.st-fieldset { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 0; border: 0; }
.st-fieldset legend { margin-bottom: 14px; padding: 0; color: var(--rf-ink); font-size: 16px; font-weight: 750; letter-spacing: -0.01em; }
.st-fieldset-note { display: flex; align-items: center; gap: 6px; margin-top: -10px !important; color: var(--rf-muted); font-size: 14px; line-height: 1.5; }
.st-fieldset-note .icon { width: 15px; height: 15px; color: var(--rf-violet); }
.st-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.st-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; color: #3b3446; font-size: 13.5px; font-weight: 650; }
.st-field small { color: var(--rf-muted); font-size: inherit; font-weight: 550; }
.st-modal-layer {
  --text-entry-border: #e2dcec;
  --text-entry-focus-surface: #fff;
  --text-entry-focus-accent: var(--rf-violet);
}
.st-field :is(input, select, textarea):not(#st) {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #e2dcec;
  border-radius: 12px;
  background: #fff;
  color: var(--rf-ink);
  font: inherit;
  font-size: 15.5px;
  font-weight: 500;
  box-shadow: none;
  transition: border-color 180ms ease, box-shadow 200ms ease;
}
.st-field textarea:not(#st) { min-height: 104px; padding: 12px 14px; font-size: 15px; line-height: 1.55; resize: vertical; }
.st-field :is(input, select, textarea):not(#st):hover { border-color: #cfc3e6; }
.st-field :is(input, select, textarea):not(#st):focus { border-color: #a58ef0 !important; box-shadow: 0 0 0 4px rgba(145, 107, 232, 0.14) !important; outline: 0; }
.st-field-lock, .st-field-select { position: relative; display: block; }
.st-field.is-derived input:not(#st) { padding-right: 40px; border-color: transparent; background: var(--rf-band); color: var(--rf-soft-text); }
.st-field-lock .icon, .st-field-select .icon { position: absolute; top: 50%; right: 14px; width: 16px; height: 16px; color: #a49cb3; pointer-events: none; transform: translateY(-50%); }
.st-field-select .icon { transform: translateY(-50%) rotate(90deg); }
.st-field-select select:not(#st) { padding-right: 40px; -webkit-appearance: none; appearance: none; }
.st-choice { display: flex; flex-direction: column; gap: 9px; }
.st-choice > span { color: #3b3446; font-size: 13.5px; font-weight: 650; }
.st-choice > div { display: flex; flex-wrap: wrap; gap: 8px; }
.st-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #e2dcec;
  border-radius: 999px;
  background: #fff;
  color: #3b3446;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 120ms ease;
}
.st-chip .icon { display: none; width: 14px; height: 14px; stroke-width: 2.6; }
.st-chip:hover { border-color: #cfc3e6; }
.st-chip:active { transform: scale(0.97); }
.st-chip[aria-checked="true"] { border-color: #a58ef0; background: var(--rf-violet-soft); color: var(--rf-violet-ink); font-weight: 700; box-shadow: 0 6px 16px -12px rgba(82, 54, 179, 0.6); }
.st-chip[aria-checked="true"] .icon { display: block; animation: st-check-in 220ms cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes st-check-in { from { opacity: 0; transform: scale(0.4); } }
.st-divider { height: 1px; flex: none; background: var(--rf-line-soft); }
.st-modal-foot {
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
  padding: 14px 24px 14px 32px;
  border-top: 1px solid var(--rf-line-soft);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.st-unsaved { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; color: var(--rf-violet-ink); font-size: 13.5px; font-weight: 650; opacity: 0; transform: translateY(4px); transition: opacity 200ms ease, transform 260ms var(--rf-ease); }
.st-unsaved i { width: 7px; height: 7px; border-radius: 50%; background: var(--rf-violet); box-shadow: 0 0 0 4px rgba(106, 72, 208, 0.14); }
.st-modal-foot.is-dirty .st-unsaved { opacity: 1; transform: none; }
.st-cancel { min-height: 48px; padding: 0 22px; font-size: 15px; }
.st-save-slot { display: flex; justify-content: flex-end; min-width: 172px; height: 48px; }
.st-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 172px;
  height: 48px;
  min-height: 0 !important;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--rf-gradient);
  background-size: 140% 100%;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-shadow: 0 1px 1px rgba(40, 24, 96, 0.25);
  box-shadow: 0 12px 26px -14px rgba(106, 72, 208, 0.7);
  cursor: pointer;
  transition: background-position 600ms var(--rf-ease), box-shadow 220ms ease, transform 120ms ease;
}
.st-save .icon { width: 17px; height: 17px; stroke-width: 2.4; }
.st-save:hover:not(:disabled) { background-position: 100% 50%; box-shadow: 0 16px 28px -14px rgba(106, 72, 208, 0.75); }
.st-save:active:not(:disabled) { transform: scale(0.97); }
.st-save:disabled { opacity: 0.6; cursor: default; }
.st-save-ring, .st-save-done { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; animation: st-pop 260ms cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.st-save-ring { background: #fff; box-shadow: inset 0 0 0 1px var(--rf-violet-soft-2), 0 10px 22px -14px rgba(106, 72, 208, 0.6); }
.st-save-ring i { width: 26px; height: 26px; box-sizing: border-box; border: 3px solid var(--rf-violet-soft-2); border-top-color: var(--rf-violet); border-right-color: #7a52dd; border-radius: 50%; animation: st-spin 700ms linear infinite; }
.st-save-done { background: var(--rf-gradient); color: #fff; box-shadow: 0 12px 26px -14px rgba(106, 72, 208, 0.7); }
.st-save-done .icon { width: 22px; height: 22px; stroke-width: 2.8; stroke-dasharray: 24; animation: st-draw 320ms ease-out 80ms both; }
@keyframes st-spin { to { transform: rotate(360deg); } }
@keyframes st-pop { from { opacity: 0; transform: scale(0.7); } }
@keyframes st-draw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }

/* Save your changes? over the window. */
.st-guard {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(251, 249, 255, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: st-fade-in 180ms ease both;
}
.st-guard-card { display: flex; flex-direction: column; gap: 10px; width: min(420px, 100%); padding: 24px; border-radius: 22px; background: #fff; box-shadow: 0 1px 2px rgba(29, 26, 36, 0.06), 0 30px 70px -30px rgba(29, 26, 36, 0.5); animation: st-modal-in 260ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.st-guard-card h3 { color: var(--rf-ink); font-size: 20px; font-weight: 750; letter-spacing: -0.02em; }
.st-guard-card p { color: var(--rf-muted); font-size: 14.5px; line-height: 1.5; }
.st-guard-card > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.st-guard-card .st-save { min-width: 0; height: 44px; padding: 0 18px; font-size: 14.5px; }
.st-ghost { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--rf-soft-text); font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.st-ghost:hover { background: var(--rf-band); color: var(--rf-ink); }

/* ---- Phones: grouped lists and a sheet ---------------------------------- */
@media (max-width: 760px) {
  .st-desktop-only { display: none !important; }
  .st-phone-only { display: inline-flex !important; }
  .st-layout { gap: 22px; }
  .st-column { gap: 22px; }
  .st-profile { padding: 16px; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "photo name edit" "chips chips chips"; align-items: center; gap: 12px 14px; }
  .st-avatar { grid-area: photo; width: 56px; height: 56px; font-size: 18px; }
  .st-profile-copy { display: contents; }
  .st-profile-copy > div { grid-area: name; gap: 2px; }
  .st-profile h2 { font-size: 18px; letter-spacing: -0.015em; }
  .st-profile p { overflow: hidden; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
  .st-summary { grid-area: chips; gap: 6px; }
  .st-summary li { height: 28px; padding: 0 10px; font-size: 12.5px; }
  .st-edit { grid-area: edit; padding: 0 16px; font-size: 14.5px; }
  .st-group { gap: 8px; }
  .st-group-head { padding: 0 6px; }
  .st-group-head h2 { color: var(--rf-violet-ink); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
  .st-group-head p { display: none; }
  .st-card { border-radius: 20px; }
  .st-card > li { margin: 0 14px; }
  .st-row { gap: 12px; min-height: 56px; padding: 9px 0; }
  button.st-row { width: calc(100% + 16px); margin: 0 -8px; padding: 9px 8px; }
  .st-icon { width: 34px; height: 34px; border-radius: 10px; }
  .st-icon .icon { width: 16px; height: 16px; }
  .st-copy { flex: 1 1 auto; gap: 1px; }
  .st-detail { font-size: 13px; }
  .st-detail.is-value { font-size: 13.5px; }
  button.st-row .st-detail:not(.is-value) { display: none; }
  .st-row.has-pill .st-pill { display: none; }
  .st-row.has-pill .st-chevron, .st-row.has-pill .st-value { display: grid; }
  .st-row.is-danger .st-title { color: #b0364f; }
  .st-row.is-danger .st-chevron { display: none !important; }
  .st-note { min-height: 0; }
  .st-note > :not(.icon) { display: none; }
  .st-row.is-language { flex-wrap: nowrap; }
  .st-row.is-language .st-detail { display: none; }
  .st-delete { gap: 12px; padding: 16px; }
  .st-delete-copy { flex: 1 1 200px; }
  .st-delete .st-outline { width: 100%; }
  .st-legal { justify-content: center; }

  .st-modal-layer { align-items: end; padding: 44px 0 0; }
  .st-modal { width: 100%; height: 100%; max-height: none; border-radius: 24px 24px 0 0; animation: st-sheet-in 300ms cubic-bezier(0.22, 1, 0.36, 1) both; }
  .st-modal-layer.is-closing .st-modal { animation: st-sheet-out 240ms ease-in forwards; }
  .st-grabber { position: absolute; top: 8px; left: 50%; z-index: 2; display: block; width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: #d9d3e3; }
  .st-modal-head { padding: 22px 12px 10px 20px; touch-action: none; }
  .st-modal-head h2 { font-size: 22px; }
  .st-modal-head p { display: none; }
  .st-modal-body { gap: 14px; padding: 8px 20px 24px; }
  .st-photo { gap: 16px; }
  .st-photo-pick { width: 64px; height: 64px; }
  .st-photo-pick b { width: 26px; height: 26px; }
  .st-photo-copy { display: none; }
  .st-fields { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 12px; }
  .st-fields > :first-child, .st-fields > :last-child { grid-column: 1 / -1; }
  .st-fields > :nth-child(4), .st-fields > :nth-child(5) { grid-column: span 1; }
  .st-modal-foot { gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .st-unsaved { display: none; }
  .st-cancel { flex: 1; }
  .st-save-slot { flex: 1.4; min-width: 0; }
  .st-save { width: 100%; min-width: 0; }
}
@keyframes st-sheet-in { from { transform: translateY(100%); } }
@keyframes st-sheet-out { to { transform: translateY(100%); } }

@media (prefers-reduced-motion: reduce) {
  .st-layout *, .st-modal-layer, .st-modal-layer * { animation: none !important; transition: none !important; }
}

/* My Hair's own heading and paragraph rules (customer-refresh.css) are
   broader; these keep Settings' smaller group headings and muted leads. */
.st-layout .st-group-head h2:not(#st) { color: var(--rf-ink); font-size: 20px; letter-spacing: -0.02em; }
.st-layout .st-group-head p:not(#st),
.st-layout .st-profile p:not(#st),
.st-layout .st-delete p:not(#st) { color: var(--rf-muted); }
.st-layout .st-profile h2:not(#st) { font-size: 22px; letter-spacing: -0.02em; }
.st-layout .st-delete h2:not(#st) { font-size: 15.5px; font-weight: 700; letter-spacing: normal; }
.st-layout .st-delete.is-pending h2:not(#st) { color: #b0364f; }
.st-layout .st-index-note p:not(#st) { color: var(--rf-soft-text); }
@media (max-width: 760px) {
  .st-layout .st-group-head h2:not(#st) { color: var(--rf-violet-ink); font-size: 12px; letter-spacing: 0.08em; }
  .st-layout .st-profile h2:not(#st) { font-size: 18px; letter-spacing: -0.015em; }
}
