/* Public Void identity, shared by Settings and the first-run account step. */
.void-profile { color: var(--fg); }
.void-profile * { box-sizing: border-box; }
.void-profile .vp-avatar-action { font: inherit; }
.void-profile .vp-avatar-action { cursor: pointer; }
.void-profile .vp-avatar-action:disabled { cursor: default; opacity: .5; }
.void-profile .vp-avatar-action:focus-visible {
  outline: var(--ring-w, 2px) solid var(--ring-focus, #fff);
  outline-offset: .17rem;
}
.void-avatar {
  position: relative;
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  overflow: hidden;
  --photo-edge: 1px;
  border: 0;
  border-radius: 0;
  -webkit-mask: var(--profile-picture-mask);
  mask: var(--profile-picture-mask);
  background: rgba(255,255,255,.28);
  box-shadow: inset 0 1px rgba(255,255,255,.13), 0 .5rem 1.3rem rgba(0,0,0,.25);
}
.void-avatar--small { width: 2.5rem; height: 2.5rem; }
.void-avatar--large { width: 4rem; height: 4rem; }
.void-avatar-image {
  position: absolute;
  inset: var(--photo-edge);
  display: block;
  width: calc(100% - 2 * var(--photo-edge));
  height: calc(100% - 2 * var(--photo-edge));
  -webkit-mask: var(--profile-picture-mask);
  mask: var(--profile-picture-mask);
  object-fit: cover;
  background: var(--elev, #24242a);
}
.vp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.vp-overline { display: block; color: var(--dim); font-size: .59rem; font-weight: 780; letter-spacing: .16em; }
.vp-loading { min-height: 8rem; display: flex; align-items: center; border: 1px solid var(--line-hi); border-radius: var(--r-l); padding: 1.2rem; color: var(--dim); font-size: .78rem; }
.vp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; align-items: start; }
.vp-grid-guest { grid-template-columns: minmax(0, 1fr); max-width: 48rem; }
.vp-card {
  min-width: 0;
  border: 1px solid var(--line-hi);
  border-radius: var(--r-l);
  padding: clamp(1.1rem, 2.2vw, 1.6rem);
  background: linear-gradient(140deg, rgba(255,255,255,.065), rgba(255,255,255,.012) 70%);
}
.vp-create { display: flex; flex-direction: column; align-items: flex-start; }
.vp-card-top, .vp-identity-hero { display: flex; align-items: center; gap: .95rem; }
.vp-card-top { margin-bottom: 1.35rem; }
.vp-identity-copy { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.vp-identity-hero strong { overflow: hidden; color: #fff; font-size: 1.55rem; font-weight: 740; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.vp-identity-copy > span { color: var(--dim); font-size: .7rem; }
.vp-photo-stage {
  min-width: 0;
  border-radius: var(--r-m);
  transition: background .22s var(--ease);
}
.vp-photo-stage.is-dragover {
  outline: 2px dashed var(--fg);
  outline-offset: .55rem;
  background: rgba(255,255,255,.06);
}
.vp-identity-hero .void-avatar {
  width: clamp(5.2rem, 9vw, 6.5rem);
  height: clamp(5.2rem, 9vw, 6.5rem);
  --photo-edge: 2px;
  background: rgba(255,255,255,.55);
  box-shadow: 0 0 0 .35rem rgba(255,255,255,.045), 0 .7rem 1.7rem rgba(0,0,0,.26);
}
.vp-identity-hero strong { overflow-wrap: anywhere; white-space: normal; }
.vp-identity-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; }
.vp-identity-hero.vp-identity-hero--no-photo { grid-template-columns: minmax(0, 1fr) auto; }
.vp-add-photo { margin-top: .9rem; }
.vp-identity-end { display: flex; align-items: center; align-self: start; gap: .4rem; }
.vp-edit-profile { flex: none; }
.vp-avatar-action { position: relative; display: block; width: fit-content; border: 0; border-radius: var(--profile-picture-radius); padding: 0; background: transparent; }
.vp-avatar-action .void-avatar { display: grid; }
.vp-avatar-action:hover .void-avatar { background: var(--fg); }
.vp-avatar-camera { position: absolute; right: -.2rem; bottom: -.25rem; display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--line-hi); border-radius: 50%; background: var(--elev2); color: var(--fg); box-shadow: 0 .2rem .6rem rgba(0,0,0,.4); }
.vp-avatar-camera svg { width: 1rem; height: 1rem; }
.vp-photo-progress { margin: .65rem 0 0; color: #fff; font-size: .7rem; }
.vp-fields { width: 100%; }
.vp-label { display: flex; justify-content: space-between; gap: .6rem; margin: .8rem 0 .4rem; }
.vp-label span { color: var(--dim); font-weight: 550; }
.vp-input { width: 100%; }
.vp-create > .action-btn { width: 100%; margin-top: 1.25rem; }
.vp-card h3 { margin: .35rem 0 .55rem; color: #fff; font-size: 1.35rem; font-weight: 720; letter-spacing: -.04em; }
.vp-card-top h3 { margin: 0; }
.vp-guest-return { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1rem; width: 100%; margin-top: 1.25rem; border-top: 1px solid var(--line-hi); padding-top: 1rem; color: var(--dim); font-size: .75rem; }
.vp-guest-return .action-btn { flex: none; }
.vp-identity .vp-fields { margin-top: 1rem; }
.vp-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.25rem; }
.vp-sync { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .65rem; margin-top: .8rem; }
.vp-sync-chip { display: inline-flex; align-items: center; gap: .45rem; min-height: 2rem; border: 1px solid var(--line-hi); border-radius: 99px; padding: .25rem .7rem; background: rgba(255,255,255,.035); color: var(--dim); font-size: .7rem; font-weight: 720; }
.vp-sync-chip::before { content: ''; width: .45rem; height: .45rem; flex: none; border-radius: 50%; background: currentColor; }
.vp-sync-chip[data-state="pending"] { border-color: rgba(216,170,98,.38); background: rgba(216,170,98,.08); color: #e8c992; }
.vp-sync-chip[data-state="unavailable"] { border-color: rgba(224,104,95,.38); background: rgba(224,104,95,.08); color: #e8a6a1; }
.vp-sync-retry { padding-inline: .7rem; }
.vp-security-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; }
.vp-security-head h3 { margin: 0; }
.vp-add-passkey { padding-inline: .8rem; }
.vp-passkeys { width: 100%; margin: .85rem 0 0; }
.vp-passkeys-empty { margin: 0; color: var(--dim); font-size: .7rem; }
.vp-passkey { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; align-items: center; gap: .75rem; min-height: 3.7rem; border-top: 1px solid var(--line-hi); padding: .75rem 0 0; }
.vp-passkey + .vp-passkey { margin-top: .75rem; }
.vp-passkey-icon { flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 1px solid var(--line-hi); border-radius: .7rem; background: rgba(255,255,255,.045); color: var(--fg); }
.vp-passkey-icon svg { width: 1.15rem; height: 1.15rem; }
.vp-passkey > div { display: flex; flex-direction: column; min-width: 0; }
.vp-passkey-title { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .5rem; min-width: 0; }
.vp-passkey strong { overflow: hidden; color: #fff; font-size: .73rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.vp-passkey small { color: var(--dim); font-size: .64rem; }
.vp-passkey-meta { display: flex; flex-wrap: wrap; gap: .15rem .55rem; }
.vp-passkey-meta > span { white-space: nowrap; }
.vp-passkey-edit { gap: .35rem; }
.vp-passkey-edit label { color: #fff; }
.vp-passkey-edit .vp-input { min-height: max(var(--field-control), 3rem); }
.vp-passkey-actions { display: flex; align-items: center; gap: .15rem; }
.vp-passkey-actions > .action-btn { padding-inline: .6rem; }
.vp-only-key { display: inline-flex; align-items: center; min-height: 1.5rem; border: 1px solid var(--line-hi); border-radius: 99px; padding: .15rem .45rem; background: rgba(255,255,255,.04); color: var(--dim); font-size: .59rem; font-weight: 700; white-space: nowrap; }
.vp-confirm { display: flex; gap: .25rem; }
.vp-account-management { width: 100%; margin-top: 1.2rem; border-top: 1px solid var(--line); padding-top: .85rem; }
.vp-account-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .5rem; }
.vp-account-actions .action-btn { padding-inline: .85rem; }
.vp-signout-confirm { max-width: 38rem; border: 1px solid var(--line-hi); border-radius: var(--r-m); padding: 1.1rem; background: rgba(255,255,255,.045); }
.vp-signout-confirm strong { display: block; color: #fff; font-size: .87rem; }
.vp-signout-confirm p { margin: .4rem 0 0; color: var(--dim); font-size: .72rem; line-height: 1.5; }
.vp-signout-confirm .vp-actions { margin-top: .85rem; }
.vp-feedback { min-height: 1.2rem; margin: .85rem 0 0; }
.vp-feedback:empty { display: none; }

@media (max-width: 840px) {
  .vp-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .vp-identity-hero { grid-template-columns: auto minmax(0, 1fr) auto; gap: .7rem; }
  .vp-identity-hero .void-avatar { width: 4.5rem; height: 4.5rem; }
  .vp-identity-hero strong { font-size: 1.2rem; }
  .vp-account-actions { justify-content: space-between; }
  .vp-guest-return { align-items: stretch; flex-direction: column; }
  .vp-guest-return .action-btn { align-self: stretch; }
}
@media (max-width: 420px) {
  .vp-passkey { grid-template-columns: 2.25rem minmax(0, 1fr); }
  .vp-passkey-actions { grid-column: 2; justify-content: flex-start; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .vp-photo-stage { transition-duration: .01ms !important; }
}
@media (prefers-contrast: more), (prefers-reduced-transparency: reduce) {
  .vp-card, .vp-photo-stage { background: #111; }
}
@media (forced-colors: active) {
  .void-avatar, .vp-card, .vp-photo-stage, .vp-avatar-camera { border: 1px solid CanvasText; }
}
