@font-face {
  font-family: ProfileIcons;
  src: url('/fonts/checkout-ui.ttf') format('truetype');
}
.identity-page { color: #fafafa; font-family: Manrope, sans-serif; overflow-wrap: anywhere; }
.identity-icon { font: 20px/1 ProfileIcons; color: #cab1ff; }
.identity-page[data-identity=owner] {
  max-width: 42rem; margin: auto; padding: 12px 20px 36px;
  display: grid; grid-template-columns: minmax(0,1fr);
  grid-template-areas: 'heading' 'identity' 'rows' 'links' 'status';
}
.identity-header { grid-area: heading; position: relative; display: grid; place-items: center; min-height: 48px; font-weight: 750; }
.identity-back { position: absolute; inset-inline-start: 0; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; }
.identity-name { grid-area: identity; position: relative; display: grid; justify-items: center; gap: 12px; padding: 4px 0 24px; }
.identity-name h1 { font-size: 1.3rem; text-align: center; }
.identity-avatar { display: grid; place-items: center; height: 96px; width: 96px; border-radius: 50%; background: #30273c; color: #e1c5ff; font-size: 2.3rem; font-weight: 700; }
.identity-page [data-avatar-widget] { grid-area: identity; z-index: 1; align-self: start; justify-self: center; padding-top: 4px; pointer-events: none; }
.identity-page:has([data-avatar-widget] span) .identity-avatar { width: 144px; height: 144px; }
.identity-edit-photo {
  position: absolute; z-index: 2; inset-block-start: 66px; inset-inline-start: calc(50% + 20px);
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid #a185c8; border-radius: 50%; background: #352749;
}
.identity-page:has([data-avatar-widget] span) .identity-edit-photo { inset-block-start: 110px; inset-inline-start: calc(50% + 40px); }
.identity-rows { grid-area: rows; border-radius: 17px; background: #221e29; overflow: hidden; }
.identity-page .identity-row { width: 100%; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px; border: 0; border-radius: 0; background: transparent; color: inherit; text-align: left; }
.identity-row + .identity-row { border-top: 1px solid #ffffff17; }
.identity-values { flex: 1; min-width: 0; }
.identity-values h3 { font-size: .96rem; margin: 0; }
.identity-values span,.identity-note,.identity-lead { color: #c8c1d0; font-size: .875rem; }
.identity-row > .identity-icon:last-child { font-size: 18px; }
.identity-page[data-identity=owner] > .related { grid-area: links; }
.identity-status { grid-area: status; font-size: .875rem; }
.identity-page:not([data-identity=owner]) { max-width: 30rem; margin: auto; padding: 36px 20px 16px; }
.identity-page:not([data-identity=owner]) h1 { padding-right: 35px; font-size: 22px; line-height: 31px; letter-spacing: -.1px; }
.identity-page .model-form { margin: 16px 0 8px; }
.identity-page .model-form input { width: 100%; min-width: 0; font-size: 1rem; }
.identity-page .actions { display: grid; gap: 8px; }
.identity-page .actions .button { min-height: 56px; border-radius: 999px; background: #eeeaf3; color: #211e25; }
.identity-page .actions .secondary { min-height: 44px; background: transparent; color: #d3baff; }
.identity-page .actions button:disabled { opacity: .47; }
.identity-page .related { gap: 4px 16px; display: flex; flex-wrap: wrap; margin: 12px 0 0; }
.identity-page .related-link { min-height: 44px; display: inline-flex; align-items: center; background: transparent; padding: 0 4px; color: #d3baff; }
.identity-page :is(a,button,input):focus-visible,.identity-security :is(a,button):focus-visible { outline: 2px solid #e4cbff; outline-offset: -2px; }
.identity-code { position: relative; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; }
.identity-code input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.identity-digit {
  display: grid; place-items: center; height: 60px; border-radius: 16px;
  border: 1px solid #ffffff20; background: #282330; color: #fff;
  font-size: 24px; font-weight: 700; line-height: 1; pointer-events: none;
}
.identity-code:focus-within [data-cursor] { border-color: #c29aff; }
.identity-code:focus-within [data-cursor]:empty::after { content: ''; width: 2px; height: 24px; background: #c29aff; }

.identity-security { max-width: 42rem; padding: 20px 20px 36px; color: #fafafa; }
.identity-security .hero { display: flex; align-items: center; gap: 12px; min-height: 0; margin: 0 0 24px; padding: 0; border: 0; background: none; }
.identity-security .identity-back { position: static; flex: 0 0 44px; }
.identity-security .hero h1 { font-size: 1.5rem; }
.identity-security h2 { font-size: 1rem; }
.identity-sessions { list-style: none; margin: 0; padding: 0; }
.identity-session { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 14px 0; border-block-end: 1px solid #ffffff26; }
.identity-session-copy { flex: 1 1 160px; min-width: 0; }
.identity-session-copy p { margin: 4px 0 0; }
.identity-device-badge { display: inline-block; margin-inline-start: 8px; padding: 2px 7px; border-radius: 5px; background: #382848; color: #e8d5ff; font-size: .75rem; }
.identity-security .model-form, .identity-security .controls, .identity-security .actions { margin: 0; padding: 0; border: 0; background: none; }
.identity-security .actions .button { min-height: 44px; padding: 0 12px; background: #33243e; color: #f0d6ff; }
