.nexus-member-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid rgba(103, 164, 255, .38);
  border-radius: 999px;
  background: rgba(65, 126, 216, .13);
  color: #a9ccff;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .035em;
  white-space: nowrap;
  vertical-align: middle;
}
.nexus-member-badge.is-expired {
  border-color: rgba(158, 174, 195, .34);
  background: rgba(116, 133, 154, .12);
  color: #b8c5d4;
}
.nexus-member-core, .nexus-member-pro, .nexus-member-elite { color: #a9ccff; }
.cm .nexus-member-badge, .mcard .nexus-member-badge,
.community-account-heading .nexus-member-badge,
.who .nexus-member-badge { margin-inline-start: 6px; }
header [data-nexus-membership-host],
header .user { min-width: 0; }
header .user > .nexus-member-badge,
header [data-nexus-membership-host] > .nexus-member-badge { flex-shrink: 0; }
/* Native account controls have tight width limits. Keep tier names readable;
   the accessible label and profile carry the full membership status. */
header .user > .nexus-member-badge {
  order: 2;
  flex-shrink: 0;
  min-width: 0;
  max-width: 48px;
  padding-inline: 4px;
  white-space: nowrap;
  font-size: 9px;
  text-align: center;
}
@media (max-width: 520px) {
  header .nexus-member-badge { padding: 3px 6px; font-size: 9px; }
  header .user > .nexus-member-badge {
    padding-inline: 4px;
  }
}
