.members-page {
  min-width: 0;
}
.member-explainer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.member-explainer > div {
  display: grid;
  grid-template-columns: 24px 1fr;
  column-gap: 12px;
  padding: 22px;
  border: 1px solid #ffffff0d;
  border-radius: 14px;
  background: #151321;
}
.member-explainer .icon {
  width: 20px;
  color: #ad8bcf;
  grid-row: span 2;
}
.member-explainer strong {
  font-size: 13px;
  line-height: 1.6;
}
.member-explainer span {
  font-size: 11px;
  line-height: 1.7;
  color: #9986ad;
  margin-top: 4px;
}
.members-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0;
}
.members-toolbar p {
  font-size: 12px;
  color: #a28db5;
  line-height: 1.8;
  margin: 0;
}
.members-toolbar .text-link {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
  min-height: 44px;
}
.members-toolbar .icon {
  width: 15px;
}
.member-list {
  display: grid;
  gap: 16px;
}
.member-card {
  padding: 24px;
  border: 1px solid #ffffff0e;
  border-radius: 16px;
  background: #151321;
}
.member-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.member-card-heading strong {
  display: block;
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.member-card-heading small {
  display: block;
  font-size: 11px;
  line-height: 1.7;
  color: #9983ac;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.member-status {
  padding: 7px 10px;
  border: 1px solid #ffffff12;
  border-radius: 8px;
  color: #b49ec6;
  font-size: 10px;
  white-space: nowrap;
}
.member-status.waiting {
  background: #ac83dc0f;
  border-color: #ae8dd53d;
  color: #c8a9e7;
}
.member-note {
  background: #ffffff03;
  border-left: 2px solid #ad89d45c;
  border-radius: 0 8px 8px 0;
  padding: 12px 15px;
  margin: 18px 0;
  color: #baa4ce;
  line-height: 1.8;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.member-card-meta {
  display: flex;
  gap: 12px 24px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 11px;
  color: #9780ad;
  line-height: 1.8;
}
.member-card-actions,
.member-inline-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 20px;
}
.member-card-actions .text-link {
  min-height: 44px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.member-card-actions .icon {
  width: 14px;
  height: 14px;
}
.member-person {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.member-person > div {
  min-width: 0;
}
.member-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  background: #6f4b9229;
  color: #c29ee5;
  border-radius: 12px;
  font: 600 20px var(--heading);
}
.member-facts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-block: 16px;
  margin-top: 14px;
  border-block: 1px solid #ffffff08;
  font-size: 11px;
  color: #a78dbb;
}
.member-facts > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.member-facts .icon {
  width: 13px;
  height: 13px;
  color: #ac8bc5;
}
.member-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.member-loading {
  padding: 40px;
  text-align: center;
  color: #aa91c0;
  font-size: 12px;
}
.member-delivery {
  padding: 12px;
  border: 1px solid #ae83d72b;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.8;
  color: #c4a7db;
}
.member-delivery.failed {
  border-color: #cf879138;
  color: #d9a1aa;
}
.auth-field textarea {
  width: 100%;
  resize: vertical;
  min-height: 94px;
  padding: 12px 14px;
  background: #10111d;
  border: 1px solid #ffffff18;
  border-radius: 10px;
  color: #dfd0eb;
  font: inherit;
  font-size: 13px;
}
.auth-field textarea:focus {
  outline: 2px solid #a782c34d;
  outline-offset: 2px;
}
.auth-field small {
  font-size: 10px;
  color: #987eae;
}
.membership-gate {
  width: min(560px, calc(100vw - 32px));
  margin: 8vh auto;
  padding: 34px;
  border: 1px solid #ffffff13;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at top, #62477d20, transparent 60%), #14121f;
  box-shadow: 0 20px 90px #0004;
  text-align: center;
}
.membership-gate h1 {
  font: 600 32px/1.2 var(--heading);
  color: #f0e7fa;
  margin: 18px 0;
}
.membership-gate p {
  font-size: 13px;
  color: #baa6cd;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.membership-gate .member-inline-actions {
  justify-content: center;
}
.membership-gate-mark {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: #ab85d117;
  border: 1px solid #aa7ed933;
  margin: 0 auto 24px;
  color: #b997df;
}
.membership-gate-mark .icon {
  width: 28px;
  height: 28px;
}
.membership-steps {
  display: grid;
  gap: 10px;
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 28px 0;
}
.membership-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid #ffffff09;
  border-radius: 10px;
  font-size: 12px;
  color: #816c95;
}
.membership-steps .icon {
  width: 17px;
  height: 17px;
}
.membership-steps li.active {
  background: #ad87d611;
  border-color: #aa89d237;
  color: #ccb0e5;
}
.membership-steps li.done {
  color: #91ccbd;
}
.membership-signup form {
  text-align: left;
  margin-block: 25px;
}
.membership-signup .auth-field {
  margin-bottom: 18px;
}
.membership-signup .auth-field input[readonly] {
  color: #9f8caf;
  background: #ffffff02;
}
.membership-signup > .text-link {
  min-height: 44px;
}
.header-members {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid #ffffff0c;
  border-radius: 10px;
  color: #a08ab4;
  font-size: 10px;
}
.header-members > .icon {
  width: 16px;
  height: 16px;
}
.member-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  border-radius: 6px;
  background: #9673c332;
  color: #d1b2ed;
  font-size: 10px;
  line-height: 1;
}
.topbar-inner {
  gap: 18px;
}
.topbar-path {
  min-width: 0;
}
.topbar-path strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar-right {
  margin-left: auto;
  gap: 14px;
}
.profile-menu-item .member-count {
  margin-left: auto;
}
.profile-trigger {
  min-height: 44px;
}
.top-search {
  min-height: 40px;
}
@media (max-width: 1050px) {
  .header-members > span {
    display: none;
  }
  .topbar-right {
    gap: 10px;
  }
}
@media (max-width: 760px) {
  .member-explainer {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .member-explainer > div {
    padding: 16px;
  }
  .member-card {
    padding: 18px;
  }
  .member-card-heading {
    flex-wrap: wrap;
    gap: 10px;
  }
  .member-card-actions {
    gap: 8px 12px;
  }
  .members-toolbar {
    align-items: flex-start;
  }
  .members-toolbar p {
    font-size: 11px;
  }
  .member-tabs {
    gap: 6px;
  }
  .member-tabs .filter-chip {
    font-size: 11px;
    padding: 9px;
  }
  .membership-gate {
    padding: 26px 20px;
    margin: 5vh auto;
  }
  .membership-gate h1 {
    font-size: 28px;
  }
  .membership-gate .member-inline-actions > .btn {
    width: 100%}
  .header-members {
    display: none;
  }
  .topbar-inner {
    gap: 10px;
  }
  .topbar-path {
    flex: 1;
  }
  .topbar-right {
    flex: none;
    gap: 8px;
  }
  .top-search {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
  }
  .top-search > span {
    display: none;
  }
  .top-search > .icon {
    width: 17px;
    height: 17px;
  }
  .profile-trigger {
    padding: 0;
    gap: 0;
  }
  .profile-chevron {
    display: none;
  }
  .profile-avatar {
    width: 36px;
    height: 36px;
  }
  .member-status {
    font-size: 10px;
  }
  .membership-steps {
    margin: 22px 0;
  }
}
@media (max-width: 360px) {
  .topbar-inner {
    gap: 7px;
  }
  .topbar-right {
    gap: 6px;
  }
  .topbar-path strong {
    font-size: 12px;
  }
  .member-card-heading strong {
    font-size: 13px;
  }
}

.profile-trigger {
  position: relative;
}
.profile-member-count {
  position: absolute;
  right: 0;
  top: 0;
  pointer-events: none;
}
@media (min-width: 761px) {
  .profile-member-count {
    display: none;
  }
}
@media (max-width: 760px) {
  .profile-trigger {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
  }
  .top-search {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }
  .profile-member-count {
    display: inline-grid;
    top: 0;
    right: 0;
  }
}

.auth-screen {
  grid-template-columns: minmax(0, 1fr);
}
.membership-gate {
  width: 100%;
  max-width: 560px;
  min-width: 0;
  box-sizing: border-box;
}
.membership-gate .btn {
  white-space: normal;
  line-height: 1.5}
