.profile-page > .secondary-header, .profile-editor > .secondary-header, .profile-settings > .secondary-header {
  grid-template-columns: 44px 1fr auto;
}
.profile-page > .secondary-header h1, .profile-editor > .secondary-header h1, .profile-settings > .secondary-header h1 {
  text-align: start;
}
.profile-page {
  --profile-toolbar-height: 48px;
  isolation: isolate;
  background: var(--background);
}
.profile-page::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  width: min(100%, 390px);
  aspect-ratio: 414 / 350;
  margin-inline: auto;
  background: url('/icons/profile-ornament.svg') top center / 100% auto no-repeat;
  opacity: calc(1 - var(--profile-collapse-progress, 0));
  pointer-events: none;
  content: '';
}
.profile-scroll {
  --profile-tab-line-height: 56px;
  margin-block-start: var(--profile-toolbar-height);
  padding: 0 14px var(--tab-space);
}
.profile-hero { display: flow-root; }
.profile-identity-space { block-size: 190px; margin-block-end: 18px; }
.profile-toolbar {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  height: var(--profile-toolbar-height);
}
.profile-toolbar::before {
  position: absolute;
  inset: 0;
  background: var(--background);
  opacity: var(--profile-collapse-progress, 0);
  content: '';
}
.profile-actions {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  inset: 0 8px 0 auto;
}
.profile-action {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
}
.profile-action-face {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 28px;
  padding-inline: 12px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 .5px #ffffff4d;
  background: #0000004d;
  color: #fff;
  font: 400 12px/20px Manrope, system-ui, sans-serif;
  white-space: nowrap;
}
.profile-action:active .profile-action-face { background: #ffffff14; }
.profile-action-settings { width: 44px; }
.profile-action-settings .profile-action-face { width: 28px; padding: 0; }
.profile-identity { position: absolute; z-index: 3; inset: 0 0 auto; pointer-events: none; }
.profile-portrait, .profile-expanded-name, .profile-compact-name, .profile-uid { position: absolute; inset: 0 auto auto 0; }
.profile-portrait, .profile-expanded-name, .profile-compact-name { transform-origin: top left; }
.profile-portrait {
  width: 96px;
  height: 96px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  pointer-events: auto;
}
.profile-portrait .picture {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--background);
}
.profile-portrait::after {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 var(--profile-avatar-outline, 1px) #fff;
  content: '';
}
.profile-avatar-crown {
  position: absolute;
  z-index: 1;
  inset: 0 auto auto 0;
  width: 47.344px;
  height: 34.577px;
  transform-origin: top left;
  transform: translate(21.787px, -30.242px) rotate(145.06deg) scaleY(-1);
}
.profile-avatar-edit { position: absolute; z-index: 1; inset: auto 4px 4px auto; width: 20px; height: 20px; }
.profile-avatar-status {
  position: absolute;
  z-index: 4;
  inset: 56px 16px auto;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin-inline: auto;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--panel);
}
.profile-avatar-status:empty { display: none; }
.profile-expanded-name, .profile-compact-name {
  overflow: hidden;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 0;
  color: #fff;
  font: 600 italic 24px/30px var(--heading);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-compact-name { font-size: 20px; opacity: 0; }
.profile-uid {
  inset-inline-start: 50%;
  min-height: 36px;
  padding: 0;
  color: #5e6061;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: auto;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/playfair_display_italic.ttf') format('truetype');
  font-style: italic;
  font-weight: 600;
  font-display: swap;
}
.profile-wallet {
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 10px;
}
.profile-wallet-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 88px;
  padding: 13px 7.5px;
  border: .5px solid #747b83;
  border-radius: 12px;
  background: linear-gradient(175.88deg, #17191a 6.63%, #292c2f 27.34%, #26282b 48.05%, #292c2f 68.75%, #17191a 89.46%);
  text-align: start;
  color: #fff;
}
.profile-wallet-premium {
  border-color: transparent;
  background: linear-gradient(173deg, #292319, #33312d, #30291d, #322f2b, #29241a) padding-box,
    linear-gradient(173deg, #cbae7d, #fef5e2, #eecc91, #f8ecd8, #ceb284) border-box;
}
.profile-wallet-art {
  position: relative;
  flex: none;
  width: clamp(24px, calc((100cqw - 12px) / 2 - 122px), 60px);
  aspect-ratio: 1;
}
.profile-wallet-art img { position: absolute; inset: 0; margin: auto; width: 100%; height: 100%; object-fit: contain; }
.profile-wallet-art .profile-wallet-gem-icon { width: 58.333%; height: 58.333%; }
.profile-wallet-premium .profile-wallet-art img { width: 91.667%; height: 91.667%; }
.profile-wallet-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; justify-content: center; }
.profile-wallet-copy :is(strong, small) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-wallet-copy strong { font: italic 600 16px/22px 'Playfair Display', var(--heading); }
.profile-wallet-copy small { margin-block-start: 4px; color: #999b9c; font-size: 12px; line-height: 20px; }
.profile-wallet-gem .profile-wallet-copy small { margin-block-start: 8px; color: #fff; font-size: 14px; }
.profile-wallet-premium .profile-wallet-copy small { white-space: normal; overflow-wrap: anywhere; }
.profile-wallet-action { flex: none; }
.profile-wallet-corners { position: absolute; inset: 4px; pointer-events: none; }
.profile-wallet-corners img { position: absolute; }
.profile-wallet-corners img:nth-child(1) { top: 0; left: 0; }
.profile-wallet-corners img:nth-child(2) { top: 0; right: 0; transform: rotate(90deg); }
.profile-wallet-corners img:nth-child(3) { bottom: 0; right: 0; transform: rotate(180deg); }
.profile-wallet-corners img:nth-child(4) { bottom: 0; left: 0; transform: rotate(270deg); }
.profile-check-in-slot:empty { display: none; }
.profile-check-in {
  position: relative;
  margin-inline: 2px;
  padding: 12px 16px;
  border: .5px solid #fff3;
  border-radius: 12px;
  background: #231c2a;
}
.profile-check-in h2 { margin: 0 0 12px; font: 600 italic .875rem/1.125rem var(--heading); color: #fff; }
.profile-tab-line {
  position: sticky;
  z-index: 1;
  inset-block-start: 0;
  min-block-size: var(--profile-tab-line-height);
  margin-inline: -14px;
  padding-block: 6px;
  background: var(--background);
}
.profile-tab-panel {
  min-block-size: max(0px, calc(var(--app-height, var(--viewport-height)) - var(--safe-top) - var(--profile-toolbar-height) - var(--profile-tab-line-height) - var(--tab-space)));
}
.profile-tabs { display: flex; }
.profile-tabs .icon-button { flex: 1; min-width: 44px; background: transparent; }
.profile-tab-sel, .profile-tabs [aria-selected='true'] .profile-tab-def { display: none; }
.profile-tabs [aria-selected='true'] .profile-tab-sel { display: block; }
.profile-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 215px; color: var(--muted); text-align: center; }
.profile-empty img { object-fit: contain; }
.profile-empty p { margin: 0; }
.profile-create { display: block; margin: 8px auto; padding-inline: 18px; border-radius: 999px; color: #211b23; background: #f5f3f5; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.profile-grid-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.profile-grid-roles { grid-template-columns: 1fr; gap: 16px; margin-block-start: 16px; }
#profile-panel-roles { padding: 20px 2px 0; }
.profile-owned-card { position: relative; min-width: 0; }
.profile-character-card, .profile-photo { position: relative; display: block; overflow: hidden; border-radius: 12px; padding: 0; aspect-ratio: 3 / 4; color: white; background: var(--background); }
.profile-character-card .picture, .profile-photo .picture { height: 100%; }
.profile-character-card > span:last-child { position: absolute; inset: auto 0 0; padding: 28px 10px 10px; background: linear-gradient(transparent, #000c); font: 600 italic 1.25rem/1.2 var(--heading); }
.profile-edit-character { position: absolute; inset: 4px 4px auto auto; background: #100e12b0; }
.profile-add-role {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 1px dashed #fff3;
  border-radius: 40px;
  background: transparent;
  color: #818385;
  font-size: 12px;
  line-height: 18px;
}
.profile-role-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
  min-height: 96px;
  padding: 15px;
  border: 1px solid #57445f4d;
  border-radius: 16px;
  background: var(--panel);
}
.profile-role-avatar {
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 50%;
  background: url('/icons/profile-role-avatar-placeholder.svg') center / cover no-repeat;
}
.profile-role-avatar .picture { width: 100%; height: 100%; background: transparent; }
.profile-role-copy { display: grid; gap: 4px; min-width: 0; }
.profile-role-title { display: flex; gap: 8px; align-items: center; min-width: 0; }
.profile-role-title strong {
  overflow: hidden;
  color: #fff;
  font: 600 italic 24px/30px var(--heading);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-role-title small {
  flex: none;
  padding: 2px 8px;
  border-radius: 20px;
  background: linear-gradient(90deg, #ecb34326, #f5cd8026);
  color: #eecc91;
  font: 400 12px/18px Manrope, sans-serif;
}
.profile-role-copy p {
  overflow: hidden;
  margin: 0;
  color: #818385;
  font: 400 12px/18px Manrope, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-role-more { margin-inline-end: -8px; justify-self: end; }
.profile-role-more > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #fff3;
  border-radius: 50%;
}
.sheet.profile-role-popup {
  inset: 0 auto auto 0;
  width: max-content;
  max-width: calc(100% - 16px);
  max-height: calc(var(--viewport-height) - 16px);
  margin: 0;
  border: 0;
  border-radius: 16px;
  background: #302932ed;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.sheet.profile-role-popup[open] { animation: none; }
.profile-role-popup::backdrop { background: transparent; }
.profile-role-menu { display: grid; gap: 4px; padding: 8px; }
.profile-role-menu-action {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font: 400 12px/18px Manrope, sans-serif;
  text-align: start;
}
.profile-role-menu-action:is(:hover, :active) { background: #ffffff14; }
.profile-more { display: block; margin: 14px auto; }
.profile-placeholder-identity { display: flex; flex-direction: column; align-items: center; padding-block-start: 16px; }
.profile-placeholder-portrait { width: 96px; height: 96px; border-radius: 50%; }
.profile-placeholder-name { width: min(40%, 156px); height: 15px; margin-block-start: 19px; border-radius: 4px; }
.profile-placeholder-uid { width: min(28%, 112px); height: 9px; margin-block-start: 13px; border-radius: 4px; }
.profile-placeholder-wallet { height: 88px; border-radius: 12px; }
.profile-placeholder-edit { width: 88px; height: 28px; border-radius: 999px; margin-inline-end: 8px; }
.profile-placeholder-settings { width: 28px; height: 28px; border-radius: 50%; margin-inline-end: 8px; }
.profile-placeholder-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  place-items: center;
}
.profile-placeholder-tab { width: 24px; height: 24px; border-radius: 6px; }
.profile-placeholder-tile { position: relative; min-width: 0; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; }
.profile-placeholder-card-title { position: absolute; inset: auto 12px 12px; width: 60%; height: 12px; }
.profile-placeholder-role { display: grid; align-items: center; grid-template-columns: 64px minmax(0, 1fr) 28px; gap: 12px; min-height: 96px; padding-inline: 12px; }
.profile-placeholder-role-avatar { width: 64px; height: 64px; border-radius: 50%; }
.profile-placeholder-role-badge { width: 28px; height: 28px; border-radius: 50%; }
.profile-placeholder-role .skeleton-lines { max-width: 144px; }
.profile-placeholder-add-role { width: 100%; height: 48px; border-radius: 40px; }
.profile-editor-content { padding: 16px; }
.sheet.profile-info-sheet {
  inset-block-end: max(0px, calc(var(--viewport-height) - var(--app-height, var(--viewport-height))));
  width: calc(min(100%, var(--app-max-width)) - var(--safe-left) - var(--safe-right));
  max-height: calc(var(--app-height, var(--viewport-height)) - var(--safe-top));
  border: 0;
  border-radius: 20px 20px 0 0;
  background: #28212e;
}
.profile-info-sheet::backdrop { background: #000c; }
.profile-info-panel { position: relative; padding: 12px var(--sheet-content-padding) calc(24px + var(--safe-bottom)); }
:root[data-keyboard-open] .profile-info-panel { padding-block-end: 24px; }
.profile-info-panel:focus { outline: none; }
.profile-info-panel > .icon-button { position: absolute; inset-block-start: 12px; inset-inline-end: var(--sheet-content-padding); }
.profile-info-panel h2 { margin: 16px 0 var(--sheet-title-gap); padding-inline-end: 56px; font: 600 italic 24px/30px var(--heading); }
.profile-info-panel form { display: grid; gap: 16px; }
.profile-info-panel form > .button { min-height: 48px; margin: 4px 0 0; }
.profile-info-panel .onboarding-fields, .profile-info-options { display: grid; gap: 16px; }
.profile-info-name { display: grid; gap: 6px; }
.profile-info-name input { width: 100%; }
.profile-info-panel .form-status:empty { display: none; }
.profile-info-panel .text-button { justify-self: start; }
.profile-form-fields { display: grid; min-width: 0; gap: 14px; border: 0; margin: 0; padding: 0 0 24px; }
.profile-form-fields > .picture { width: 64px; height: 64px; border-radius: 50%; }
.profile-form-fields > label { display: grid; min-width: 0; gap: 6px; }
.profile-form-fields :is(input:not([type=checkbox]), textarea, select), .sheet select { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--body); font: inherit; font-size: 16px; }
.profile-form-fields textarea { min-height: 92px; resize: vertical; }
.editor-tags { display: flex; flex-wrap: wrap; gap: 8px; border: 1px solid var(--line); border-radius: 12px; }
.editor-tags label { padding: 6px; }
.form-status { margin: 0; color: var(--muted); }
.form-status:empty { display: none; }
.profile-check-in, .check-in-card { container: check-in / inline-size; }
.check-in-progress {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  row-gap: 12px;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: center;
}
.check-in-progress li { display: grid; min-width: 0; color: #999b9c; }
.check-in-progress small { font-size: .6875rem; line-height: 1rem; overflow-wrap: anywhere; }
.check-in-progress .check-in-earned { color: #bd81cf; }
.check-in-marker { display: grid; position: relative; place-items: center; block-size: 36px; }
.check-in-marker::before {
  position: absolute;
  inset-inline: 0;
  block-size: .5px;
  background: currentColor;
  opacity: .4;
  content: '';
}
.check-in-marker img { position: relative; display: block; background: #231c2a; }
.check-in-progress li:first-child .check-in-marker::before { inset-inline-start: 50%; }
.check-in-progress li:last-child .check-in-marker::before { inset-inline-end: 50%; }
@container check-in (width < 16.25rem) {
  .check-in-progress { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .check-in-progress li:nth-child(4n + 1) .check-in-marker::before { inset-inline-start: 50%; }
  .check-in-progress li:nth-child(4n) .check-in-marker::before { inset-inline-end: 50%; }
}

.check-in-corners { position: absolute; inset: 4px; pointer-events: none; }
.check-in-corners img { position: absolute; }
.check-in-corners img:nth-child(1) { top: 0; left: 0; }
.check-in-corners img:nth-child(2) { top: 0; right: 0; }
.check-in-corners img:nth-child(3) { bottom: 0; right: 0; transform: rotate(180deg); }
.check-in-corners img:nth-child(4) { bottom: 0; left: 0; }
.profile-check-in .check-in-corners img:nth-child(odd) { width: 28px; height: 26px; }
.profile-check-in .check-in-corners img:nth-child(even) { width: 16px; height: 20px; }
.profile-check-in .check-in-corners img:nth-child(2) { transform: rotate(180deg); }

.sheet.check-in-sheet {
  inset: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
  width: min(calc(100% - 48px - var(--safe-left) - var(--safe-right)), 334px);
  max-height: calc(var(--app-height, var(--viewport-height)) - 32px - var(--safe-top) - var(--safe-bottom));
  margin: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #57445f4d;
  border-radius: 20px;
  background: #231c2a;
}
.sheet.check-in-sheet::backdrop {
  background: #0009;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.check-in-card {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 20px 20px 24px;
  background: url('/icons/check-in-ornament.svg') center top 3px / 97px 14px no-repeat,
    url('/icons/check-in-ornament.svg') center bottom 3px / 97px 14px no-repeat;
  text-align: center;
  color: #fff;
}
.check-in-card:focus { outline: none; }
.check-in-card :is(h2, p) { margin: 0; }
.check-in-card h2 { line-height: 1.625rem; }
.check-in-card > img { margin-block: 14px 8px; }
.check-in-caption { font-size: .75rem; line-height: 1rem; }
.check-in-card > strong { margin-block: 8px 14px; font-size: 1.5rem; line-height: 2rem; font-weight: 500; color: #e99eff; }
.check-in-card .check-in-corners img { width: 42px; height: 40px; }
.check-in-card .check-in-corners img:nth-child(2) { transform: rotate(90deg); }
.check-in-card .check-in-corners img:nth-child(4) { transform: rotate(270deg); }
.check-in-done {
  width: 100%;
  min-height: 48px;
  margin-block-start: 24px;
  padding: 3px;
  border: 1px solid #e99eff;
  border-radius: 40px;
  background: #312135;
  color: #fff;
  font: 700 italic 1rem/1.25 var(--heading);
}
.check-in-done > span {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 40px;
  padding: 6px 42px;
  border: .5px solid #f7deff;
  border-radius: inherit;
}
.check-in-done > span::before, .check-in-done > span::after {
  position: absolute;
  inset-block-start: 50%;
  width: 37px;
  height: 16px;
  background: url('/icons/check-in-button-ornament.svg') center / contain no-repeat;
  transform: translateY(-50%);
  content: '';
}
.check-in-done > span::before { inset-inline-start: 0; }
.check-in-done > span::after { inset-inline-end: 0; transform: translateY(-50%) scaleX(-1); }
.check-in-card .form-status:not(:empty) { margin-block-start: 12px; }

.onboarding-page { justify-content: end; background: #100e12; }
.onboarding-page .onboarding-body { flex: 0 1 auto; width: min(100%, 440px); max-height: 100%; margin-inline: auto; padding: 12px 16px 24px; border-radius: 20px 20px 0 0; background: #28212e; }
.onboarding-handle { width: 40px; height: 4px; margin: 0 auto 16px; border-radius: 999px; background: #746a7b; }
.onboarding-body h1 { margin: 0 0 20px; }
.onboarding-fields { gap: 14px; }
.onboarding-fields input { font-size: 16px; }
.check-in-notice { position: fixed; z-index: 5; inset: auto 16px calc(86px + env(safe-area-inset-bottom)) 16px; width: fit-content; margin-inline: auto; padding: 10px 16px; border-radius: 14px; background: #3a2e40; color: #fff; text-align: center; }

.character-photo-field { display: grid; align-content: center; justify-items: center; position: relative; isolation: isolate; min-height: 260px; }
.character-photo-field::before { position: absolute; z-index: -1; inset: -14px -16px 0; background: url('/icons/character-header.jpg') center / cover no-repeat; opacity: .3; content: ''; }
.character-photo-control { display: grid; position: relative; align-content: center; justify-items: center; gap: 8px; width: 124px; aspect-ratio: 132 / 203; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; color: var(--muted); background: var(--panel); font-size: .75rem; }
.character-photo-control img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.character-photo-control input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.character-photo-control:focus-within { outline: 2px solid #efc7df; outline-offset: 2px; }
.character-gender { min-width: 0; margin: 0; padding: 0; border: 0; }
.character-gender legend { margin-bottom: 8px; }
.character-gender label { position: relative; }
.character-gender input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.character-gender .choice { display: inline-flex; align-items: center; }
.character-gender input:checked + .choice { background: #523c58; box-shadow: inset 0 0 0 1px #e5b8d7; }
.character-gender input:focus-visible + .choice { outline: 2px solid #e5b8d7; }
.character-advanced { padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.character-advanced label { display: grid; gap: 8px; margin-top: 12px; }


.profile-settings > .secondary-header,
.profile-settings-layout > .secondary-header,
.profile-settings-content {
  width: min(100%, 560px);
  margin-inline: auto;
}
.profile-settings > .secondary-header,
.profile-settings-layout > .secondary-header {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  min-height: 48px;
  gap: 0;
  padding: 0 16px 0 0;
}
.profile-settings-layout > .secondary-header h1 { text-align: start; }
.profile-settings .settings-row { min-height: 72px; }
.profile-settings .settings-muted { color: #ffffff4d; }
.profile-settings .settings-muted img { opacity: .4; }

.sheet.profile-settings-detail {
  inset: 0;
  width: min(100%, var(--app-max-width));
  height: var(--app-height, var(--viewport-height));
  max-height: none;
  border: 0;
  border-radius: 0;
  background: var(--background);
}
.sheet.profile-settings-detail::backdrop { background: transparent; }
.profile-settings-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
  outline: none;
}
.profile-settings-content {
  flex: 1;
  min-height: 0;
  padding: 16px 16px 24px;
}
.settings-choices {
  min-inline-size: 0;
  display: grid;
  gap: 12px;
  margin: 0;
  border: 0;
  padding: 0;
}
.settings-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 16px;
  border: 1px solid #57445f4d;
  border-radius: 16px;
  text-align: start;
  background: var(--panel);
  font-size: .875rem;
}
.settings-choice[aria-pressed='true'], .settings-choice:has(input:checked) {
  border-color: #cdb6d5cc;
  background: #392b40;
}
.settings-status { margin: 12px 0 0; color: var(--muted); font-size: .8125rem; }
.settings-status:empty { display: none; }

.settings-feedback-content { width: 100%; }
.settings-feedback-dialog .icon-button { position: absolute; inset-block-start: 12px; inset-inline-end: var(--sheet-content-padding); }
.settings-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #ffffff1a;
  text-align: start;
  font-size: .875rem;
  overflow-wrap: anywhere;
}
.settings-copy-icon { position: relative; width: 13px; height: 13px; flex: none; }
.settings-copy-icon::before, .settings-copy-icon::after {
  position: absolute;
  width: 9px;
  height: 10px;
  border: 1px solid currentColor;
  border-radius: 2px;
  content: '';
}
.settings-copy-icon::before { inset: 0 auto auto 0; }
.settings-copy-icon::after { inset: auto 0 0 auto; background: #39333f; }

.settings-about { display: flex; flex-direction: column; text-align: center; padding-block-end: 0; }
.settings-about::before { content: ''; flex: .35 0 12px; }
.settings-about-brand { display: grid; justify-items: center; gap: 8px; }
.settings-about-brand img { display: block; border-radius: 18px; margin-bottom: 12px; }
.settings-about-brand :is(h2, p) { margin: 0; }
.settings-about-brand h2 { font-size: 1rem; font-weight: 500; }
.settings-about-brand p { color: var(--muted); font-size: .75rem; }
.settings-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 20px;
  align-items: end;
  flex: .65 0 72px;
  color: var(--muted);
}
.settings-legal-links :is(a, button) {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0;
  font-size: .75rem;
  text-decoration: underline;
}

.profile-deletion-form { padding-top: 8px; }
.profile-deletion-form h2 { margin: 0; font: 600 italic 1.5rem/1.2 var(--heading); }
.profile-deletion-form > p:not(.settings-status) { margin: 4px 0 26px; color: var(--muted); font-size: .875rem; }
.profile-deletion-form .settings-choices { gap: 16px; }
.profile-deletion-form .settings-choice { min-height: 52px; cursor: pointer; }
.profile-deletion-form input[type='radio'] {
  flex: none;
  order: 1;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #efd1ea;
}
.settings-delete-next { display: block; width: 100%; min-height: 52px; margin-top: 20px; }
