.account-layout {
  display: grid;
  grid-template-columns: minmax(300px, 400px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.account-layout .account-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.account-layout .account-services {
  grid-column: 1 / -1;
}
.discord-profile {
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  background: color-mix(in srgb, var(--profile-accent) 13%, white);
}
.profile-banner {
  height: 148px;
  background: var(--profile-accent);
}
.profile-banner > img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
}
.profile-body {
  padding: 0 24px 24px;
}
.profile-portrait {
  margin-top: -54px;
  margin-bottom: 16px;
  width: 112px;
}
.profile-avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: #eee3e7;
  vertical-align: middle;
  isolation: isolate;
}
.profile-portrait .profile-avatar {
  box-shadow: 0 0 0 7px #fff;
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--profile-accent) 13%, white);
}
.profile-avatar-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #765762;
}
.profile-avatar-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.profile-avatar-decoration {
  position: absolute;
  z-index: 2;
  inset: -10%;
  width: 120%;
  height: 120%;
  pointer-events: none;
}
.profile-avatar.compact {
  width: 100%;
  height: 100%;
}
.profile-avatar.compact .profile-avatar-placeholder {
  font-size: 1rem;
}
#sidebar-avatar.avatar {
  background: transparent;
  padding: 0;
  border-radius: 50%;
}
.profile-display-name {
  font-family: inherit;
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 0 0 7px;
  overflow-wrap: anywhere;
}
.profile-handle {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}
.profile-guild {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 7px;
  background: rgb(255 255 255 / 60%);
  padding: 0.2rem 0.45rem;
  font-size: 0.875rem;
}
.profile-guild img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 14px;
}
.profile-badges span {
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgb(80 60 70 / 15%);
  border-radius: 8px;
  background: rgb(255 255 255 / 50%);
}
.profile-details {
  margin-top: 26px;
  display: grid;
  gap: 22px;
  border-top: 1px solid rgb(80 60 70 / 15%);
  padding-top: 22px;
}
.profile-details h3 {
  font-size: 0.875rem;
  font-weight: 650;
  margin: 0 0 6px;
}
.profile-details p {
  margin: 0;
  font-size: 1rem;
}
.profile-id {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.profile-id code {
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}
.profile-source-note {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 24px 0 16px;
}
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.profile-avatar img[hidden],
.profile-banner img[hidden],
.profile-guild img[hidden] {
  display: none;
}
@media (max-width: 1080px) {
  .account-layout {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  }
  .account-layout .account-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .account-layout {
    grid-template-columns: 1fr;
  }
  .discord-profile {
    width: 100%;
    max-width: 440px;
    justify-self: center;
  }
}
