.headerIdentityAvatar {
  position: relative;
  padding: 2px;
}

.headerIdentityAvatar__image,
.headerIdentityAvatar__initial {
  display: grid;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  place-items: center;
}

.headerIdentityAvatar__image {
  object-fit: cover;
}

.headerIdentityAvatar__initial {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.38), transparent 36%),
    linear-gradient(145deg, #f0c768, #d99516);
  color: #16130b;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
}

.userPanel__hero--identity {
  color: inherit;
  text-decoration: none;
}

.userPanel__hero--identity:hover .userPanel__title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.userPanel__avatar {
  flex: 0 0 auto;
  overflow: hidden;
}

.userPanel__avatar img,
.userPanel__avatar > span {
  display: grid;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  place-items: center;
  font-weight: 950;
}

.userPanel__identityText {
  min-width: 0;
}

.userPanel__identityText .userPanel__title,
.userPanel__identityText .userPanel__sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.networkShell {
  align-items: flex-start;
  display: flex;
  gap: 22px;
}

.networkMain {
  display: grid;
  gap: 16px;
  min-width: 0;
  width: 100%;
}

.networkHero {
  align-items: end;
  background:
    radial-gradient(circle at 94% 5%, rgba(77,93,251,.22), transparent 36%),
    radial-gradient(circle at 68% 110%, rgba(235,178,72,.15), transparent 40%);
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
}

.networkHero h1 {
  margin-bottom: 8px;
}

.networkHero p {
  max-width: 760px;
}

.networkStats {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  overflow: hidden;
  border: 1px solid rgba(139,155,205,.2);
  border-radius: 18px;
  background: rgba(6,13,31,.46);
}

.networkStats > div {
  display: grid;
  gap: 3px;
  min-width: 96px;
  padding: 14px 16px;
  text-align: center;
}

.networkStats > div + div {
  border-inline-start: 1px solid rgba(139,155,205,.2);
}

.networkStats strong {
  color: #f4d47f;
  font-size: 21px;
}

.networkStats span {
  color: #aab6d3;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.networkSearchCard,
.networkSection {
  padding: 22px;
}

.networkSectionHead {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.networkSectionHead h2 {
  margin: 2px 0 0;
}

.networkSectionHead p {
  color: #98a6c8;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  max-width: 380px;
  text-align: end;
}

.networkSectionHead__eyebrow {
  color: #e8be5f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.networkCount {
  align-items: center;
  background: rgba(86,107,163,.17);
  border: 1px solid rgba(139,155,205,.2);
  border-radius: 999px;
  color: #c7d2ee;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: center;
  min-width: 30px;
  padding: 6px 10px;
}

.friendsSearch {
  display: flex;
  gap: 10px;
}

.friendsSearch input {
  background: rgba(7,14,32,.5);
  border: 1px solid rgba(139,155,205,.25);
  border-radius: 14px;
  color: inherit;
  flex: 1;
  min-width: 0;
  outline: none;
  padding: 13px 15px;
}

.friendsSearch input:focus {
  border-color: #6f91ff;
  box-shadow: 0 0 0 3px rgba(79,139,255,.14);
}

.networkResults,
.networkPeople {
  display: grid;
  gap: 10px;
}

.networkResults {
  border-top: 1px solid rgba(139,155,205,.16);
  margin-top: 18px;
  padding-top: 18px;
}

.networkPerson {
  align-items: center;
  background: rgba(8,16,37,.38);
  border: 1px solid rgba(139,155,205,.17);
  border-radius: 18px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 15px;
  transition: border-color .16s ease, transform .16s ease, background .16s ease;
}

.networkPerson:hover {
  background: rgba(14,26,55,.55);
  border-color: rgba(108,142,255,.42);
  transform: translateY(-1px);
}

.networkPerson__identity {
  align-items: flex-start;
  display: flex;
  gap: 13px;
  min-width: 0;
}

.networkAvatar {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.35), transparent 35%),
    linear-gradient(145deg, #527bf0, #19a3a0);
  border: 2px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  color: #fff;
  flex: 0 0 52px;
  height: 52px;
  overflow: hidden;
}

.networkAvatar img,
.networkAvatar span {
  display: grid;
  height: 100%;
  object-fit: cover;
  place-items: center;
  width: 100%;
}

.networkAvatar span {
  font-size: 18px;
  font-weight: 950;
}

.networkAvatar--organization {
  border-radius: 15px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.35), transparent 35%),
    linear-gradient(145deg, #527bf0, #b35ed2);
}

.networkPerson__content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.networkPerson__headline {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.networkPerson__headline strong {
  color: #f7f9ff;
  font-size: 15px;
}

.networkPerson__handle,
.networkPerson__location {
  align-items: center;
  color: #9eacd0;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 6px;
}

.networkPerson__organization {
  color: #d3dcf5;
  font-size: 13px;
  font-weight: 800;
}

.networkPerson__email {
  color: #88b9ff;
  font-size: 12px;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.networkPerson__email:hover,
.networkPerson__email:focus-visible {
  color: #b9d5ff;
  text-decoration: underline;
}

.networkPerson__bio {
  color: #b7c2df;
  display: -webkit-box;
  font-size: 12px;
  line-height: 1.45;
  margin: 3px 0 0;
  max-width: 680px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.networkTrust {
  align-items: center;
  border: 1px solid rgba(93,145,255,.32);
  border-radius: 999px;
  color: #98bcff;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  gap: 3px;
  padding: 3px 7px;
  text-transform: uppercase;
}

.networkTrust--business {
  border-color: rgba(232,190,95,.38);
  color: #f2ce78;
}

.networkPerson__actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.networkPerson__actions form {
  margin: 0;
}

.networkAction {
  text-decoration: none;
}

.networkStatus {
  background: rgba(86,107,163,.15);
  border: 1px solid rgba(139,155,205,.2);
  border-radius: 999px;
  color: #aab6d3;
  font-size: 11px;
  font-weight: 900;
  padding: 8px 11px;
}

.networkStatus--connected {
  background: rgba(31,184,121,.11);
  border-color: rgba(49,203,139,.28);
  color: #6be1ad;
}

.networkSection--requests {
  border-color: rgba(232,190,95,.3);
}

.friendsEmpty {
  background: rgba(86,107,163,.09);
  border: 1px dashed rgba(139,155,205,.24);
  border-radius: 16px;
  color: #aab6d3;
  display: grid;
  gap: 5px;
  padding: 18px;
}

.friendsEmpty strong {
  color: #e8edfb;
}

.networkBlocked {
  overflow: hidden;
}

.networkBlocked > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-weight: 850;
  justify-content: space-between;
  list-style: none;
  padding: 18px 22px;
}

.networkBlocked > summary::-webkit-details-marker {
  display: none;
}

.networkBlocked[open] > summary {
  border-bottom: 1px solid rgba(139,155,205,.16);
}

.networkBlocked > .networkPeople {
  padding: 16px 22px 22px;
}

.btn--danger {
  background: rgba(232,75,101,.12);
  border-color: rgba(232,75,101,.28);
  color: #ff8ba0;
}

[data-theme="light"] .networkHero {
  background:
    radial-gradient(circle at 94% 5%, rgba(77,93,251,.14), transparent 36%),
    radial-gradient(circle at 68% 110%, rgba(235,178,72,.12), transparent 40%),
    #fff;
}

[data-theme="light"] .networkStats,
[data-theme="light"] .friendsSearch input,
[data-theme="light"] .networkPerson {
  background: rgba(242,245,252,.82);
}

[data-theme="light"] .networkPerson:hover {
  background: #f7f9ff;
}

[data-theme="light"] .networkPerson__headline strong,
[data-theme="light"] .friendsEmpty strong {
  color: #17213b;
}

[data-theme="light"] .networkPerson__organization {
  color: #34415f;
}

[data-theme="light"] .networkPerson__bio,
[data-theme="light"] .networkPerson__handle,
[data-theme="light"] .networkPerson__location,
[data-theme="light"] .networkSectionHead p,
[data-theme="light"] .friendsEmpty {
  color: #5c6885;
}

@media (max-width: 1050px) {
  .networkHero {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .networkStats {
    width: min(100%, 430px);
  }
}

@media (max-width: 900px) {
  .networkShell {
    display: block;
  }

  .networkMain {
    margin-top: 16px;
  }
}

@media (max-width: 720px) {
  .networkSearchCard,
  .networkSection {
    padding: 16px;
  }

  .networkSectionHead,
  .networkPerson {
    align-items: stretch;
    display: grid;
  }

  .networkSectionHead p {
    max-width: none;
    text-align: start;
  }

  .networkPerson__actions {
    justify-content: flex-start;
    padding-inline-start: 65px;
  }

  .friendsSearch {
    display: grid;
  }
}

@media (max-width: 480px) {
  .networkStats {
    grid-template-columns: 1fr;
  }

  .networkStats > div + div {
    border-inline-start: 0;
    border-top: 1px solid rgba(139,155,205,.2);
  }

  .networkPerson__actions {
    display: grid;
    padding-inline-start: 0;
  }

  .networkPerson__actions > *,
  .networkPerson__actions form,
  .networkPerson__actions .btn {
    justify-content: center;
    width: 100%;
  }
}
