/* MOVE15 profile: personal avatar, readable controls and account status. */

.profile-page {
  min-width: 0;
  padding-bottom: 8px;
}

.profile-intro {
  margin: 12px 0 27px;
}

.profile-intro .eyebrow {
  color: #6070bb;
  font-size: .875rem;
  letter-spacing: .085em;
}

.profile-intro h1 {
  margin: 11px 0 12px;
  font-size: clamp(2.1rem, 4vw, 2.85rem);
  line-height: 1.09;
  letter-spacing: -.05em;
}

.profile-intro > p {
  max-width: 650px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.avatar-preview-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 23px;
  border: 1px solid #dfe6f2;
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 70% 52%, rgba(215, 225, 250, .63), transparent 62%),
    linear-gradient(145deg, #fff 8%, #f1f5fd 100%);
  box-shadow: 0 12px 36px rgba(50, 67, 110, .055), inset 0 1px 0 #fff;
}

.avatar-preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.avatar-preview-heading h2,
.avatar-preview-heading h3 {
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1.4;
  letter-spacing: -.02em;
}

.avatar-preview-heading .eyebrow {
  color: #64749b;
  font-size: .875rem;
  letter-spacing: .075em;
}

.avatar-preview-heading > span,
.avatar-preview-heading small {
  color: #63728b;
  font-size: .875rem;
  line-height: 1.4;
}

.avatar-preview.trainer-host {
  position: relative;
  width: 100%;
  height: 320px;
  margin: 7px 0 4px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 19px;
}

.avatar-preview canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
}

.avatar-preview .trainer-loading,
.avatar-preview .trainer-fallback {
  display: grid;
  align-content: center;
  width: 100%;
  height: 100%;
  min-height: 240px;
  padding: 25px;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.65;
  text-align: center;
}

.avatar-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 15px;
  padding-top: 16px;
  border-top: 1px solid rgba(207, 218, 237, .8);
  color: #64738c;
  font-size: .875rem;
  line-height: 1.5;
}

.avatar-preview-footer strong {
  display: block;
  color: #354860;
  font-size: 1rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.avatar-preview-footer p {
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.6;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 23px;
  min-width: 0;
  margin: 0;
  padding: 27px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .9);
}

.profile-section {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.profile-form > .profile-section + .profile-section {
  padding-top: 23px;
  border-top: 1px solid #e7ecf4;
}

.profile-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px 12px;
  width: 100%;
  margin: 0 0 13px;
  padding: 0;
  color: #34435b;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.45;
}

.profile-section-heading h2,
.profile-section-heading h3 {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.profile-section-heading small,
.profile-section-heading > span:not(:first-child) {
  color: var(--muted);
  font-size: .875rem;
  font-weight: 400;
}

.profile-section-heading > p {
  flex: 1 0 100%;
  margin: 0;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.6;
}

.avatar-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.avatar-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 89px;
  padding: 13px;
  border: 1px solid #dfe5ef;
  border-radius: 17px;
  background: #f8faff;
  color: var(--ink);
  text-align: left;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.avatar-option:hover {
  border-color: #b6c3e5;
  background: #f4f7ff;
}

.avatar-option[aria-pressed="true"],
.avatar-option.selected {
  border-color: #91a1e1;
  background: #f0f3ff;
  box-shadow: inset 0 0 0 1px rgba(118, 140, 220, .18), 0 3px 9px rgba(72, 93, 167, .035);
}

.avatar-option-visual {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 58px;
  overflow: hidden;
  border-radius: 13px;
  color: #6778c5;
  background: linear-gradient(145deg, #e9eefb, #e2e8f6);
}

.avatar-option-visual img,
.avatar-option-visual canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.avatar-option-visual > svg {
  display: block;
  width: 33px;
  height: 40px;
}

.avatar-option-visual .icon {
  width: 29px;
  height: 29px;
}

.avatar-option-label {
  display: block;
  min-width: 0;
  color: #3a4964;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.4;
}

.avatar-option-label strong {
  font-size: inherit;
  font-weight: inherit;
}

.avatar-option-label small,
.avatar-option-label > span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 400;
}

.option-check {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  opacity: 0;
}

.option-check .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.8;
}

.avatar-option[aria-pressed="true"] .option-check,
.avatar-option.selected .option-check {
  opacity: 1;
}

.profile-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.profile-field > label,
label.profile-field > span,
.profile-field > .field-label {
  color: #42526b;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.45;
}

.profile-section > .profile-field + .profile-field,
.profile-section > .profile-field + .profile-metrics,
.profile-section > .avatar-options + .profile-field {
  margin-top: 16px;
}

.profile-section > .profile-field + .body-size-control {
  margin-top: 21px;
}

.profile-input-wrap {
  position: relative;
  min-width: 0;
}

.profile-field input:not([type="range"]),
.profile-input-wrap input:not([type="range"]) {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid #dbe3ef;
  border-radius: 13px;
  outline: 0;
  background: #fbfcff;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  box-shadow: inset 0 1px 2px rgba(36, 48, 72, .018);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.profile-input-wrap input:not([type="range"]) {
  padding-right: 52px;
}

.profile-input-wrap input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.profile-input-wrap input[type="number"]::-webkit-inner-spin-button,
.profile-input-wrap input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.profile-field input::placeholder {
  color: #78869d;
  font-weight: 400;
}

.profile-field input:focus,
.profile-input-wrap input:focus {
  border-color: #8c9fe3;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(115, 139, 219, .13);
}

.profile-field input[aria-invalid="true"] {
  border-color: #ca8a8b;
  background: #fffafb;
}

.input-unit {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  color: #6b7a92;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1;
  pointer-events: none;
}

.profile-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.skin-tone-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 4px 3px;
}

.skin-tone {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 4px solid rgba(255, 255, 255, .88);
  border-radius: 50%;
  background: var(--tone, #d5a381);
  color: #fff;
  box-shadow: 0 0 0 1px #dfe5ee, inset 0 -2px 4px rgba(0, 0, 0, .035);
  transition: box-shadow .16s ease, transform .16s ease;
}

.skin-tone:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px #c2cde5;
}

.skin-tone[aria-pressed="true"],
.skin-tone.selected {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #687ed1;
}

.skin-tone .icon {
  width: 18px;
  height: 18px;
  stroke-width: 3;
  filter: drop-shadow(0 1px 1px rgba(63, 43, 34, .65));
}

.skin-tone:focus-visible {
  outline: 3px solid #334a9e;
  outline-offset: 6px;
}

.body-size-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px 12px;
  min-width: 0;
}

.body-size-control > label {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #42526b;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.45;
}

.body-size-control > .profile-section-heading {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.body-size-control output {
  min-width: 39px;
  padding: 5px 9px;
  border-radius: 9px;
  color: #5b6cba;
  background: #edf1fc;
  font-size: .875rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  text-align: center;
}

.body-size-control input[type="range"] {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  appearance: none;
  -webkit-appearance: none;
  accent-color: #687cda;
  background: transparent;
  cursor: pointer;
}

.body-size-control input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 10px;
  background: #e4eaf5;
}

.body-size-control input[type="range"]::-webkit-slider-thumb {
  width: 25px;
  height: 25px;
  margin-top: -9.5px;
  border: 3px solid #fff;
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  background: #687cda;
  box-shadow: 0 0 0 1px #bcc9eb, 0 3px 8px rgba(66, 87, 165, .18);
}

.body-size-control input[type="range"]::-moz-range-track {
  height: 6px;
  border: 0;
  border-radius: 10px;
  background: #e4eaf5;
}

.body-size-control input[type="range"]::-moz-range-thumb {
  width: 19px;
  height: 19px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #687cda;
  box-shadow: 0 0 0 1px #bcc9eb, 0 3px 8px rgba(66, 87, 165, .18);
}

.body-size-control input[type="range"]:focus-visible {
  outline: 3px solid #a6b6eb;
  outline-offset: 3px;
}

.range-labels {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -4px;
  color: #6c7a91;
  font-size: .875rem;
  line-height: 1.4;
}

.profile-note {
  color: var(--muted);
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.6;
}

.body-size-control > .profile-note {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.body-size-control > .text-button {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 44px;
  padding: 9px 0;
  color: var(--brand);
  font-size: .875rem;
  font-weight: 600;
}

.profile-section > .profile-note {
  margin-top: 11px;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 21px;
  border-top: 1px solid #e7ecf4;
}

.profile-actions > .primary {
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.4;
}

.profile-actions > .profile-note {
  text-align: center;
}

.profile-error {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 13px 15px;
  border: 1px solid #edd0d1;
  border-radius: 12px;
  color: #9c5056;
  background: #fff5f5;
  font-size: .875rem;
  line-height: 1.6;
}

.profile-account {
  min-width: 0;
  margin-top: 23px;
  padding: 25px 27px;
  border-radius: 25px;
  background: rgba(255, 255, 255, .86);
}

.account-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.account-heading h2,
.account-heading h3 {
  font-size: 1.125rem;
  line-height: 1.4;
  letter-spacing: -.015em;
}

.account-details {
  margin-top: 13px;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.account-details strong {
  color: #3d4d67;
  font-weight: 600;
}

.account-details p + p {
  margin-top: 7px;
}

.account-actions,
.backup-actions,
.migration-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 13px;
  margin-top: 17px;
}

.account-actions > button,
.backup-actions > button,
.migration-actions > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #dce4f0;
  border-radius: 12px;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.4;
}

.account-actions > button:not(.primary),
.backup-actions > button:not(.primary),
.migration-actions > button:not(.primary) {
  color: #53658b;
  background: #f3f6fc;
}

.account-actions > a,
.backup-actions > a,
.migration-actions > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 4px;
  border-radius: 8px;
  color: #5c6a86;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: #bdc8dd;
  text-underline-offset: 4px;
}

.account-actions > a.primary,
.backup-actions > a.primary,
.migration-actions > a.primary {
  padding: 11px 16px;
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.profile-page > .profile-note:last-child {
  margin-top: 18px;
}

.account-actions .icon,
.backup-actions .icon,
.migration-actions .icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.profile-backup-card,
.profile-migration-card,
.migration-prompt {
  min-width: 0;
  margin-top: 18px;
  padding: 20px 22px;
  border: 1px solid #e2e5ec;
  border-radius: 20px;
  background: #f5f7fc;
  color: #5c6982;
}

.profile-migration-card,
.migration-prompt {
  border-color: #e8dfca;
  background: #fbf8f1;
}

.profile-backup-card h2,
.profile-backup-card h3,
.profile-migration-card h2,
.profile-migration-card h3,
.migration-prompt h2,
.migration-prompt h3 {
  color: #43516a;
  font-size: 1rem;
  line-height: 1.45;
}

.profile-backup-card p,
.profile-migration-card p,
.migration-prompt p {
  margin-top: 7px;
  font-size: .875rem;
  line-height: 1.65;
}

.migration-status,
.backup-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 11px;
  color: #5f718b;
  font-size: .875rem;
  line-height: 1.5;
}

.account-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.site-header > .account-status {
  margin-left: auto;
}

button.account-status,
.account-status > button,
.account-status > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #dde5f0;
  border-radius: 12px;
  color: #53658b;
  background: rgba(255, 255, 255, .83);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.4;
}

button.account-status {
  flex-wrap: nowrap;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

button.account-status > span {
  min-width: 0;
  white-space: nowrap;
}

button.account-status:hover,
.account-status > button:hover,
.account-status > a:hover {
  border-color: #b9c7e2;
  background: #fff;
}

.account-status .icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.sync-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  min-height: 31px;
  padding: 6px 10px;
  border: 1px solid #dfe5ed;
  border-radius: 11px;
  color: #62718a;
  background: #f0f3f8;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.3;
}

.sync-dot {
  display: inline-block;
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.sync-chip[data-state="synced"],
button.account-status[data-state="synced"] {
  border-color: #cfe4d9;
  color: #35775e;
  background: #edf7f1;
}

.sync-chip[data-state="saving"],
button.account-status[data-state="saving"] {
  border-color: #d6def5;
  color: #5a6dbe;
  background: #eef2ff;
}

.sync-chip[data-state="saving"] .sync-dot {
  animation: profile-sync-pulse 1.5s ease-in-out infinite;
}

.sync-chip[data-state="offline"],
button.account-status[data-state="offline"] {
  border-color: #e9dfc6;
  color: #886c35;
  background: #fcf7eb;
}

.sync-chip[data-state="error"],
button.account-status[data-state="error"] {
  border-color: #ebced1;
  color: #9c5259;
  background: #fcf0f1;
}

.sync-chip[data-state="signed-out"],
button.account-status[data-state="signed-out"] {
  border-color: #dfe5ed;
  color: #62718a;
  background: #f0f3f8;
}

.sync-chip .icon {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}

@keyframes profile-sync-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.profile-page [hidden],
.account-status [hidden],
.sync-chip[hidden] {
  display: none;
}

@media (min-width: 800px) {
  .profile-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
    gap: 24px;
  }

  .avatar-preview-card {
    position: sticky;
    top: 22px;
  }

  .avatar-preview.trainer-host {
    height: clamp(340px, 38vw, 440px);
    margin-top: 14px;
  }
}

@media (max-width: 960px) {
  .site-header {
    flex-wrap: wrap;
    column-gap: 18px;
    row-gap: 10px;
  }

  .site-header .header-caption {
    display: none;
  }

  .profile-form {
    padding: 23px;
  }

  .avatar-option {
    gap: 9px;
    padding: 12px 10px;
  }

  .avatar-option-visual {
    flex-basis: 43px;
    width: 43px;
    height: 54px;
  }
}

@media (max-width: 680px) {
  .site-header {
    column-gap: 10px;
    row-gap: 8px;
    padding-bottom: 16px;
  }

  .site-header > .account-status {
    flex: 1 0 100%;
    justify-content: flex-end;
    gap: 9px;
    margin-left: 0;
  }

  .site-header > button.account-status {
    flex: 0 1 auto;
    justify-content: center;
    max-width: 100%;
    margin-left: auto;
  }

  button.account-status,
  .account-status > button,
  .account-status > a {
    min-height: 44px;
    padding: 9px 11px;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 4px;
    padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
  }

  .main-nav a {
    min-width: 0;
    min-height: 56px;
    padding: 7px 4px 5px;
    gap: 4px;
    border-radius: 12px;
    font-size: .875rem;
    line-height: 1.3;
  }

  .main-nav .icon {
    width: 20px;
    height: 20px;
  }

  .profile-intro {
    margin: 6px 0 20px;
  }

  .profile-intro .eyebrow {
    font-size: .875rem;
    letter-spacing: .065em;
  }

  .profile-intro h1 {
    margin: 10px 0 11px;
    font-size: 2.1rem;
  }

  .profile-intro > p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .profile-layout {
    gap: 17px;
  }

  .avatar-preview-card {
    padding: 19px 18px;
    border-radius: 25px;
  }

  .avatar-preview-heading h2,
  .avatar-preview-heading h3 {
    font-size: 1rem;
  }

  .avatar-preview.trainer-host {
    height: 300px;
    margin: 3px 0;
    border-radius: 16px;
  }

  .avatar-preview-footer {
    padding-top: 13px;
    gap: 5px 10px;
  }

  .profile-form {
    gap: 21px;
    padding: 22px 19px;
    border-radius: 25px;
  }

  .profile-form > .profile-section + .profile-section {
    padding-top: 21px;
  }

  .avatar-options {
    gap: 10px;
  }

  .avatar-option {
    min-height: 84px;
    gap: 9px;
    padding: 12px 10px;
    border-radius: 15px;
  }

  .avatar-option-visual {
    flex-basis: 41px;
    width: 41px;
    height: 53px;
    border-radius: 11px;
  }

  .avatar-option-label {
    font-size: .9375rem;
  }

  .profile-metrics {
    gap: 11px;
  }

  .profile-field input:not([type="range"]) {
    min-height: 51px;
    padding-left: 13px;
  }

  .profile-input-wrap input:not([type="range"]) {
    padding-right: 43px;
  }

  .input-unit {
    right: 13px;
  }

  .skin-tone-options {
    gap: 16px;
  }

  .profile-actions {
    gap: 11px;
    padding-top: 20px;
  }

  .profile-account {
    margin-top: 19px;
    padding: 21px 20px;
    border-radius: 23px;
  }

  .account-heading {
    gap: 10px 12px;
  }

  .account-heading h2,
  .account-heading h3 {
    font-size: 1rem;
  }

  .account-details {
    font-size: .875rem;
  }

  .account-actions,
  .backup-actions,
  .migration-actions {
    gap: 9px 12px;
    margin-top: 15px;
  }

  .profile-backup-card,
  .profile-migration-card,
  .migration-prompt {
    margin-top: 15px;
    padding: 17px;
    border-radius: 17px;
  }
}

@media (max-width: 365px) {
  .profile-intro h1 {
    font-size: 1.95rem;
  }

  .avatar-preview-card {
    padding: 17px 15px;
  }

  .avatar-preview.trainer-host {
    height: 280px;
  }

  .profile-form {
    padding: 20px 16px;
  }

  .avatar-option {
    gap: 7px;
    padding: 12px 8px;
  }

  .avatar-option-visual {
    flex-basis: 35px;
    width: 35px;
    height: 48px;
  }

  .avatar-option-label {
    font-size: .875rem;
  }

  .skin-tone-options {
    gap: 13px;
  }

  .main-nav {
    padding-inline: 8px;
    gap: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .avatar-option,
  .skin-tone,
  .profile-field input,
  .profile-input-wrap input {
    transition: none;
  }

  .skin-tone:hover {
    transform: none;
  }

  .sync-chip[data-state="saving"] .sync-dot {
    animation: none;
  }
}

.mission-copy .quest-pick {
  display: inline-block;
  min-height: 32px;
  margin-top: 2px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #384c94;
  font: inherit;
  font-size: .84rem;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.quest-pick:hover { text-decoration: underline; }
.quest-pick:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.quest-saved { margin-top: 14px; }
