/* NOMI / Friends — scoped styles, compact responsive layout. */
#nomiFriendsPanel {
  width: 100%;
  color: #f7edff;
}
#nomiFriendsPanel .nomi-friends-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 18px 20px;
  background: linear-gradient(125deg, #2e174e 0%, #24133e 60%, #32204e 100%);
  border: 1px solid #68458e;
  border-radius: 18px;
}
#nomiFriendsPanel .nomi-friends-top h2 {
  font-size: clamp(20px, 3.8vw, 28px);
  margin: 0 0 7px;
  color: #fff;
  letter-spacing: -.02em;
}
#nomiFriendsPanel .nomi-friends-top p {
  margin: 0;
  color: #d7c3ea;
  font-size: 14px;
  line-height: 1.45;
}
#nomiFriendsPanel button, #nomiFriendsPanel a {
  -webkit-tap-highlight-color: transparent;
}
#nomiFriendsPanel button:focus-visible, #nomiFriendsPanel a:focus-visible {
  outline: 2px solid #e0b4ff;
  outline-offset: 2px;
}
#nomiFriendsPanel .nomi-friends-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 14px;
}
#nomiFriendsPanel .nomi-friends-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 47px;
  padding: 11px 9px;
  background: #2b1b43;
  color: #e8d7fa;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid #634681;
  border-radius: 13px;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
#nomiFriendsPanel .nomi-friends-tab.is-active {
  background: linear-gradient(115deg, #7d3dc1, #a747b3);
  border-color: #cf95f1;
  color: #fff;
}
#nomiFriendsPanel .nomi-friends-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  padding: 1px 6px;
  border-radius: 20px;
  background: #ffffff22;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
#nomiFriendsPanel .nomi-friends-list {
  display: grid;
  gap: 10px;
}
#nomiFriendsPanel .nomi-friends-person {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
  padding: 12px 15px;
  border: 1px solid #60427f;
  border-radius: 15px;
  background: linear-gradient(110deg, #29193f, #211533);
}
#nomiFriendsPanel .nomi-friends-person-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
  flex: 1 1 215px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
#nomiFriendsPanel .nomi-friends-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 49px;
  width: 49px;
  height: 49px;
  overflow: hidden;
  border: 2px solid #a46ad0;
  border-radius: 50%;
  background: #4b3265;
  font-size: 21px;
}
#nomiFriendsPanel .nomi-friends-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#nomiFriendsPanel .nomi-friends-person-identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
#nomiFriendsPanel .nomi-friends-person-identity strong {
  color: #fff;
  font-size: 15px;
  overflow-wrap: anywhere;
}
#nomiFriendsPanel .nomi-friends-person-identity small {
  color: #bba2d2;
  overflow-wrap: anywhere;
}
#nomiFriendsPanel .nomi-friends-person-meta:empty {display:none;}
#nomiFriendsPanel .nomi-friends-person-meta {
  display: flex;
  flex: 1 1 150px;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  color: #b9a6ca;
  font-size: 12px;
}
#nomiFriendsPanel .nomi-friends-status-tag {
  color: #ead0ff;
  font-weight: 650;
}
#nomiFriendsPanel .nomi-friends-person-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-left: auto;
}
#nomiFriendsPanel .nomi-friends-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid #8763a9;
  border-radius: 10px;
  color: #f9efff;
  background: #423058;
  text-align: center;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
#nomiFriendsPanel .nomi-friends-primary {
  border-color: #ae6edf;
  color: #fff;
  background: linear-gradient(115deg, #8541c8, #b346af);
}
#nomiFriendsPanel .nomi-friends-button:hover:not(:disabled) {
  filter: brightness(1.17);
}
#nomiFriendsPanel .nomi-friends-button:disabled {
  cursor: wait;
  opacity: .55;
}
#nomiFriendsPanel .nomi-friends-status {
  min-height: 18px;
  margin: 8px 2px 4px;
  font-size: 13px;
  color: #c5efcb;
}
#nomiFriendsPanel .nomi-friends-status.is-error {
  color: #ffb9c2;
}
#nomiFriendsPanel .nomi-friends-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-height: 150px;
  padding: 29px 15px;
  border: 1px dashed #6c4b8d;
  border-radius: 16px;
  background: #291a3e;
  text-align: center;
}
#nomiFriendsPanel .nomi-friends-empty p {
  margin: 0;
  color: #e6d8f1;
}
#nomiFriendsPanel .nomi-friends-empty-icon {
  font-size: 27px;
}
#nomiFriendsPanel .nomi-friends-loading {
  margin: 15px 0;
  color: #dfccec;
  text-align: center;
}
@media (max-width: 600px) {
  #nomiFriendsPanel .nomi-friends-top {padding: 14px;}
  #nomiFriendsPanel .nomi-friends-tabs {gap: 5px;}
  #nomiFriendsPanel .nomi-friends-tab {
    flex-direction: column;
    gap: 5px;
    padding: 9px 4px;
    font-size: 12px;
    min-height: 62px;
  }
  #nomiFriendsPanel .nomi-friends-person {padding: 12px;}
  #nomiFriendsPanel .nomi-friends-person-meta {flex-basis: 100%;margin-left: 60px;}
  #nomiFriendsPanel .nomi-friends-person-actions {width: 100%;margin: 0;}
  #nomiFriendsPanel .nomi-friends-person-actions > button {flex: 1 1 auto;}
}


/* Full friend/follower cards inside public profiles — NOMI 2026-10-20. */
.nomi-v2-pane .nomi-v5-people-grid{display:grid;grid-template-columns:1fr;gap:12px;max-width:780px}
.nomi-v2-pane .nomi-v5-person-card{min-width:0;padding:13px 15px;border:1px solid #725294;border-radius:16px;background:linear-gradient(118deg,#38214f,#231735);box-shadow:0 5px 18px #09031023}
.nomi-v2-pane .nomi-v5-person-header{display:flex;align-items:center;gap:13px;width:100%;min-width:0;background:transparent;border:0;padding:0;color:#fff;text-align:left;cursor:pointer;font:inherit}
.nomi-v2-pane .nomi-v5-person-avatar{width:62px;height:62px;flex:0 0 62px;display:grid;place-items:center;border-radius:50%;overflow:hidden;background:#4f346b;border:2px solid #b368e9;box-shadow:0 0 0 3px #b368e920}
.nomi-v2-pane .nomi-v5-person-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.nomi-v2-pane .nomi-v5-avatar-empty{font-size:28px}
.nomi-v2-pane .nomi-v5-person-name{display:flex;min-width:0;flex-direction:column;gap:4px;overflow-wrap:anywhere}
.nomi-v2-pane .nomi-v5-person-name strong{font-size:16px;line-height:1.3;color:#fff}
.nomi-v2-pane .nomi-v5-person-name small{font-size:13px;color:#d8bce9}
.nomi-v2-pane .nomi-v5-person-actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:12px}
.nomi-v2-pane .nomi-v5-person-action,.nomi-v2-pane .nomi-v5-person-more>summary{display:inline-flex;align-items:center;justify-content:center;min-height:37px;padding:8px 12px;border:1px solid #8965aa;border-radius:10px;background:#51336b;color:#f7eafa;font:inherit;font-size:12px;font-weight:700;line-height:1.3;cursor:pointer;text-align:center}
.nomi-v2-pane .nomi-v5-person-action.is-primary{background:linear-gradient(110deg,#8542c3,#ad43b4);border-color:#c786e7;color:#fff}
.nomi-v2-pane .nomi-v5-person-action:disabled{opacity:.5;cursor:not-allowed}
.nomi-v2-pane .nomi-v5-person-action:hover:not(:disabled),.nomi-v2-pane .nomi-v5-person-more>summary:hover{filter:brightness(1.13)}
.nomi-v2-pane .nomi-v5-person-header:focus-visible,.nomi-v2-pane .nomi-v5-person-action:focus-visible,.nomi-v2-pane .nomi-v5-person-more>summary:focus-visible{outline:2px solid #efd3ff;outline-offset:3px}
.nomi-v2-pane .nomi-v5-person-more{position:relative}
.nomi-v2-pane .nomi-v5-person-more>summary{list-style:none}
.nomi-v2-pane .nomi-v5-person-more>summary::-webkit-details-marker{display:none}
.nomi-v2-pane .nomi-v5-person-extra{display:flex;flex-wrap:wrap;gap:7px;padding:8px 0 1px}
.nomi-v2-pane .nomi-v5-person-self{display:inline-block;margin-top:8px;color:#cfb5e1;font-size:13px}
@media(max-width:600px){.nomi-v2-pane .nomi-v5-person-card{padding:12px}.nomi-v2-pane .nomi-v5-person-avatar{width:54px;height:54px;flex-basis:54px}.nomi-v2-pane .nomi-v5-person-actions{gap:6px}.nomi-v2-pane .nomi-v5-person-action,.nomi-v2-pane .nomi-v5-person-more>summary{min-height:38px;padding:8px 10px;font-size:12px}}

/* NOMI shared presence in friends, incoming and sent requests. */
.nomi-friends-person-identity .nomi-presence{display:block;margin-top:3px;max-width:100%;font-size:11px;color:#cbb5db}
.nomi-friends-person-identity .nomi-presence.is-online{color:#69e49b;font-weight:700}
