/* Friends UI and the shared full-profile coin showcase. */
#view-friends > .section-heading {
  margin-top: 8px;
  margin-bottom: 24px;
}
#view-friends > .section-heading h1 {
  margin-top: 0;
}
#view-friends .friends-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 24px;
}
#view-friends .friends-layout > aside {
  display: block;
  min-width: 0;
}
#view-friends .friends-layout .profile-card {
  width: 100%;
  min-width: 0;
}
.friend-panel-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}
.friend-tabs {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--website-line-69-80-57-1, #455039);
  width: 100%;
  padding-bottom: 8px;
}
.friend-tabs > button {
  background: transparent;
  color: var(--website-ink-173-186-161-1, #adbaa1);
  padding: 10px 9px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
}
.friend-tabs > button[aria-selected='true'] {
  color: var(--website-ink-226-247-190-1, #e2f7be);
  background: var(--website-surface-204-229-156-0_043137254901960784, #cce59c0b);
  border-color: var(--website-line-137-159-90-0_3333333333333333, #899f5a55);
}
.friend-tabs span {
  display: inline-flex;
  justify-content: center;
  min-width: 20px;
  padding: 2px 5px;
  margin-left: 4px;
  border-radius: 5px;
  background: var(--website-surface-208-239-171-0_054901960784313725, #d0efab0e);
  font-size: 11px;
  color: var(--website-ink-200-216-180-1, #c8d8b4);
}
.friend-tabs button:focus-visible,
.profile-friend-actions button:focus-visible {
  outline: 2px solid var(--website-line-199-234-147-1, #c7ea93);
  outline-offset: 3px;
}
#view-friends .friend-list-card {
  margin-top: 0;
  margin-bottom: 20px;
}
#view-friends .friend-list-card .text-link {
  font-size: 11px;
  margin: 0;
}
#view-friends .member-row {
  gap: 16px;
  flex-wrap: wrap;
  min-width: 0;
  padding: 16px 0;
}
#view-friends .member-identity {
  flex: 1;
  min-width: 150px;
  min-height: 64px;
  gap: 12px;
}
#view-friends .member-identity > span:last-child {
  min-width: 0;
}
#view-friends .member-identity .styled-name {
  max-width: 100%;
  flex-wrap: wrap;
}
#view-friends .member-identity .nickname {
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
}
#view-friends .member-identity .avatar-frame.frame-collection {
  --collection-size: 64px;
  flex-shrink: 0;
}
#view-friends .member-identity small {
  font-size: 11px;
  line-height: 1.5;
  color: var(--website-ink-174-188-158-1, #aebc9e);
  display: block;
  margin-top: 5px;
}
.profile-friend-actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 9px;
  margin: 15px 0;
}
.profile-friend-actions > button {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  margin: 0;
  font-size: 12px;
  line-height: 1.2;
  padding: 10px 15px;
  border-radius: 7px;
  white-space: nowrap;
  transform: none;
}
#view-friends .member-row .profile-friend-actions {
  min-width: 140px;
}
#view-friends .member-row .profile-friend-actions:has(> button:nth-child(2)) {
  width: 190px;
}
#view-friends .member-row .profile-friend-actions {
  margin: 0;
}
.friend-row-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.friend-request-demo {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--website-ink-143-156-129-1, #8f9c81);
  font-size: 9px;
  padding: 7px 10px;
  border-left: 2px solid var(--website-line-108-125-74-1, #6c7d4a);
  background: var(--website-surface-204-229-156-0_0196078431372549, #cce59c05);
}
.friend-request-demo button {
  background: transparent;
  color: var(--website-ink-190-216-149-1, #bed895);
  font-size: 11px;
  min-height: 32px;
  text-align: left;
}
.friend-demo-tools {
  border-top: 1px solid var(--website-line-63-74-52-1, #3f4a34);
  padding-top: 13px;
  margin-top: 16px;
}
.friend-demo-tools summary {
  color: var(--website-ink-163-177-146-1, #a3b192);
  font-size: 11px;
  cursor: pointer;
}
.friend-demo-tools p,
.friend-local-note {
  color: var(--website-ink-157-170-144-1, #9daa90);
  font-size: 11px;
  line-height: 1.6;
}
.friend-demo-tools .outline-button {
  margin-top: 9px;
}
/* Reserve the full native wing canvas; copy never shares the ornament footprint. */
.profile-coin-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 7px;
  padding: 18px 15px;
  min-height: 0;
  overflow: visible;
}
.profile-coin-showcase > div:first-child {
  text-align: center;
  max-width: 100%;
  width: 100%;
}
.profile-coin-showcase h3 {
  font-size: 22px;
  margin: 7px 0;
}
.profile-coin-showcase p {
  max-width: none;
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}
.profile-showcase-coin {
  margin: 14px 0 10px;
}
.profile-showcase-coin.coin-frame-equipped {
  margin: 52px 0 30px;
}
.profile-card .profile-friend-actions {
  position: relative;
  z-index: 5;
}
@media (max-width: 1150px) {
  #view-friends .friends-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  #view-friends .friends-layout > aside {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
  }
}
@media (max-width: 700px) {
  #view-friends > .section-heading h1 {
    font-size: 32px;
  }
  #view-friends .friend-search-card,
  #view-friends .friend-list-card {
    padding: 18px 14px;
  }
  #view-friends .member-row {
    gap: 10px;
  }
  #view-friends .member-identity {
    min-width: 0;
    flex-basis: 100%;
  }
  #view-friends .member-row > .profile-friend-actions,
  #view-friends .friend-row-actions {
    width: 100%;
    padding-left: 4px;
  }
  .friend-row-actions > .profile-friend-actions {
    flex: 1;
  }
  .friend-row-actions > .quiet-button {
    min-height: 42px;
  }
  .friend-tabs {
    gap: 1px;
  }
  .friend-tabs > button {
    padding: 9px 5px;
    font-size: 12px;
  }
  .friend-tabs span {
    margin-left: 2px;
    font-size: 10px;
    padding: 2px 4px;
    min-width: 16px;
  }
  .profile-showcase-coin.coin-frame-equipped {
    margin: 46px 0 26px;
  }
  .profile-coin-showcase {
    padding: 16px 13px;
  }
  .friend-request-demo {
    flex-wrap: wrap;
    gap: 4px;
  }
}

#view-friends .friends-layout > aside {
  overflow-anchor: none;
}
