.real-members {
  display: grid;
  min-width: 0;
  gap: 13px;
  padding: clamp(13px, 3vw, 20px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.real-members h2 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
}

.real-members-filters {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 7px 9px;
}

.real-members-filters label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
}

.real-members-filters .field,
.real-members .button {
  min-height: 42px;
}

.real-members-filters .field {
  width: 100%;
}

.real-members-status,
.real-members-empty {
  color: var(--muted);
}

.real-members-status:empty,
.real-members-list:empty {
  display: none;
}

.real-members-status[data-state="success"] {
  color: #335c38;
}

.real-members-status[data-state="error"] {
  color: #8c281b;
}

.real-members-setup {
  width: fit-content;
  color: #715717;
  font-weight: 700;
  text-underline-offset: 2px;
}

.real-members-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.real-members-record {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 13px;
  padding: 11px 12px;
  border: 1px solid #ebe7dd;
  border-radius: 9px;
  background: #faf9f5;
}

.real-members-identity {
  min-width: 0;
}

.real-members-identity h3 {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 1.42rem;
  overflow-wrap: anywhere;
}

.real-members-meta,
.real-members-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.real-members-meta {
  color: var(--muted);
  font-size: 12px;
}

.real-members-badge {
  padding: 2px 7px;
  border-radius: 99px;
  background: #efeee9;
  color: #5c594e;
  font-size: 11px;
  font-weight: 700;
}

.real-members-badge[data-state="active"] {
  background: #e9f1e7;
  color: #3f623c;
}

.real-members-badge[data-state="suspended"] {
  background: #f8efd2;
  color: #664e11;
}

.real-members-more {
  justify-self: start;
}

.real-members-dialog {
  width: min(440px, calc(100% - 28px));
}

.real-members-confirm {
  display: grid;
  gap: 11px;
  padding: 18px 20px;
}

.real-members-confirm h3 {
  font-size: 1.65rem;
  overflow-wrap: anywhere;
}

.real-members-confirm p {
  color: #514b40;
}

.real-members-confirm .real-members-actions {
  justify-content: end;
}

@media (max-width: 620px) {
  .real-members-filters {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  }

  .real-members-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 440px) {
  .real-members-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .real-members-filters > .button {
    grid-column: 1 / -1;
  }

  .real-members-filters .field {
    font-size: 16px;
  }

  .real-members-actions {
    gap: 6px;
  }
}
