.account-page .account-identity {
  align-items: center;
  background: linear-gradient(135deg, #0d2117 0%, #112c1e 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 15px;
  box-shadow: 0 14px 30px rgba(5, 36, 20, .18);
  display: grid;
  gap: 13px;
  grid-template-columns: 64px minmax(0, 1fr);
  min-width: 340px;
  padding: 14px 17px;
}

.account-page .profile-photo.large {
  align-items: center;
  background: #f4faf6;
  border: 2px solid rgba(255,255,255,.18);
  border-radius: 14px;
  color: #0f7a43;
  display: flex;
  font-size: 20px;
  font-weight: 900;
  height: 64px;
  justify-content: center;
  overflow: hidden;
  width: 64px;
}

.account-page .profile-photo.large img {
  background: #fff;
  display: block;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 5px;
  width: 100%;
}

/* Smaller fallback when the user has not uploaded a photo. */
.account-page .account-identity:has(.profile-photo.large:not(:has(img))) {
  grid-template-columns: 44px minmax(0, 1fr);
}

.account-page .profile-photo.large:not(:has(img)) {
  border-radius: 50%;
  font-size: 14px;
  height: 44px;
  letter-spacing: 0;
  line-height: 1;
  width: 44px;
}

.account-page .account-identity > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.account-page .account-identity strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-page .account-identity > div > span {
  align-items: center;
  color: #dce9e1;
  display: inline-flex;
  font-size: 10px;
  font-weight: 700;
  gap: 6px;
  width: fit-content;
}

.account-page .account-identity > div > span::before {
  background: #35c975;
  border-radius: 50%;
  content: "";
  height: 6px;
  width: 6px;
}

.account-page .account-identity small {
  align-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  color: #d8e6dd;
  display: inline-flex;
  font-size: 9px;
  line-height: 1;
  margin-top: 2px;
  padding: 6px 9px;
  width: fit-content;
}

@media (max-width: 680px) {
  .account-page .account-identity {
    grid-template-columns: 54px minmax(0, 1fr);
    min-width: 0;
    padding: 12px 13px;
  }

  .account-page .profile-photo.large {
    border-radius: 12px;
    height: 54px;
    width: 54px;
  }

  .account-page .account-identity:has(.profile-photo.large:not(:has(img))) {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .account-page .profile-photo.large:not(:has(img)) {
    border-radius: 50%;
    font-size: 13px;
    height: 40px;
    width: 40px;
  }
}
