.profile-screen {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 20px;
  background: #f2f4f7;
  color: var(--ink);
  display: flex;
  flex-direction: column;
}
.profile-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 22px 24px 48px;
  background: #dbe8f6;
}
.profile-hero::before,
.profile-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: #ffffff40;
  pointer-events: none;
}
.profile-hero::before {
  width: 330px;
  height: 330px;
  top: -190px;
  right: -110px;
}
.profile-hero::after {
  width: 220px;
  height: 220px;
  bottom: -145px;
  left: -100px;
}
.profile-hero .standalone-heading {
  margin-bottom: 0;
}
.profile-identity {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 24px 0 12px;
  text-align: center;
}
.profile-photo {
  margin: 0;
}
.profile-avatar {
  display: block;
  width: 80px;
  height: 80px;
  border: 4px solid #ffffffb3;
  border-radius: 50%;
  object-fit: cover;
  background: white;
}
.profile-avatar-default {
  display: grid;
  place-items: center;
  color: var(--navy);
}
.profile-avatar-default > .icon {
  width: 54px;
  height: 54px;
  stroke-width: 1.8;
}
.profile-identity h2 {
  max-width: 100%;
  color: var(--navy);
  font-size: 22px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.4px;
  overflow-wrap: anywhere;
}
.profile-content {
  position: relative;
  display: grid;
  gap: 22px;
  margin-top: -22px;
  border-radius: 22px 22px 0 0;
  padding: 28px 20px 24px;
  background: #f2f4f7;
  flex: 1;
  align-content: start;
}
.profile-settings-group {
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: white;
}
.profile-setting-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 16px 18px;
  border: 0;
  background: white;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 180ms ease;
}
.profile-setting-row + .profile-setting-row {
  position: relative;
}
.profile-setting-row + .profile-setting-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  background: #edf0f5;
}
.profile-row-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 28px;
  flex: none;
  color: #345574;
  transition: color 180ms ease;
}
.profile-row-icon .icon {
  width: 23px;
  height: 23px;
  stroke-width: 1.8;
}
.profile-row-copy {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}
.profile-row-copy strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
}
.profile-row-chevron {
  display: flex;
  flex: none;
  color: #78879b;
  transition:
    color 160ms ease,
    transform 160ms ease;
}
.profile-row-chevron .icon {
  width: 17px;
  height: 17px;
}
.profile-screen .profile-logout {
  justify-self: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color 160ms ease;
}
.profile-screen .standalone-back {
  cursor: pointer;
  transition: background-color 160ms ease;
}
.profile-screen :is(button, a):focus-visible {
  outline: 2px solid #4169e1;
  outline-offset: -4px;
}
.profile-setting-row:focus-visible {
  background: #f1f5fd;
}
.profile-setting-row:focus-visible .profile-row-chevron {
  color: var(--navy);
  transform: translateX(2px);
}
@media (hover: hover) {
  .profile-setting-row:hover {
    background: #f5f8fd;
  }
  .profile-setting-row:hover .profile-row-icon {
    color: var(--navy);
  }
  .profile-setting-row:hover .profile-row-chevron {
    color: var(--navy);
    transform: translateX(3px);
  }
  .profile-screen .profile-logout:hover {
    background: transparent;
    color: #345574;
  }
}
.profile-setting-row:active {
  background: #eaf0fa;
}
.profile-setting-row:active .profile-row-chevron {
  color: var(--navy);
  transform: translateX(1px);
}
.profile-screen .profile-logout:active {
  background: transparent;
  color: #345574;
}
.profile-dialog-intro {
  margin: 0 0 16px;
  color: #53657d;
  font-size: 14px;
  line-height: 1.6;
}
.profile-metadata {
  margin: 0;
}
.profile-metadata > div {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.profile-metadata > div:first-child {
  padding-top: 0;
}
.profile-metadata > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.profile-metadata dt {
  margin-bottom: 4px;
  color: #53657d;
  font-size: 12px;
}
.profile-metadata dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .app-shell:has(.profile-screen) .content {
    padding: 0;
  }
  .app-shell .profile-screen {
    max-width: none;
    border-radius: 0;
  }
}
@media (max-width: 600px) {
  .profile-hero {
    padding: 18px 16px 40px;
  }
  .profile-identity {
    padding-top: 22px;
  }
  .profile-identity h2 {
    font-size: 20px;
  }
  .profile-content {
    padding: 26px 16px 24px;
    gap: 20px;
  }
  .profile-setting-row {
    padding: 16px;
    min-height: 62px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .profile-screen
    :is(
      .profile-setting-row,
      .profile-row-icon,
      .profile-row-chevron,
      .profile-logout,
      .standalone-back
    ) {
    transition: none;
  }
  .profile-setting-row:is(:hover, :focus-visible, :active)
    .profile-row-chevron {
    transform: none;
  }
}
