* { box-sizing: border-box; }
body { margin: 0; background: #f6f5f1; color: #29252e; font: 16px/1.65 system-ui, sans-serif; }
header { background: #fbfaf7; border-bottom: 1px solid #d6d2cb; padding: 18px max(20px, 6vw); }
header a { font-weight: 750; text-decoration: none; }
main { max-width: 480px; margin: clamp(24px, 8vw, 80px) auto; width: calc(100% - 32px); padding: clamp(22px, 5vw, 40px); background: #fff; border: 1px solid #d6d2cb; border-top: 3px solid #72519a; }
h1 { font-size: clamp(24px, 5vw, 32px); margin: 0 0 16px; line-height: 1.3; }
p { margin: 10px 0; }
label { display: block; font-weight: 650; margin: 15px 0 5px; }
input, select { width: 100%; padding: 10px 12px; color: inherit; border: 1px solid #a69daf; border-radius: 3px; background: #fff; font: inherit; }
button, .button { display: inline-block; border: 1px solid #29252e; border-radius: 3px; padding: 9px 15px; margin-top: 14px; background: #29252e; color: #fff; font: inherit; font-weight: 650; cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
a { color: #563784; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #72519a; outline-offset: 3px; }
nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; }
#phone-help, #signup-info { font-size: .88rem; color: #5a5262; }
#account-status:not(:empty), #member-status:not(:empty) { padding: 12px; background: #f1eaf8; }
[hidden] { display: none !important; }
.member-admin-page { background: #f4f2fa; color: #252044; }
.member-admin {
  --member-purple: #443484;
  --member-line: #dcd7e9;
  --member-muted: #605777;
  max-width: 1260px; margin: clamp(20px, 4vw, 48px) auto; padding: clamp(16px, 3vw, 32px);
  border-color: var(--member-line); border-top-color: var(--member-purple); background: #fff;
  font-size: .94rem;
}
.member-admin h1 { margin-bottom: 8px; }
.member-admin h2 { margin: 0; font-size: 1.25rem; }
.member-intro, .member-help, .member-secondary { color: var(--member-muted); }
.member-admin button { margin-top: 0; background: #fff; color: var(--member-purple); border-color: #ada2ca; }
.member-admin button:hover:not(:disabled) { background: #f2eef9; }
.member-admin button:disabled { cursor: default; }
.member-summary { gap: 8px; margin: 22px 0; }
.member-summary button { padding: 8px 13px; min-height: 42px; }
.member-summary strong { margin-left: 6px; font-variant-numeric: tabular-nums; }
.member-summary button[aria-pressed="true"], .member-admin .member-approve, #detail-save {
  background: var(--member-purple); border-color: var(--member-purple); color: #fff;
}
.member-summary button[aria-pressed="true"]:hover:not(:disabled), .member-admin .member-approve:hover:not(:disabled), #detail-save:hover:not(:disabled) { background: #352565; }
.member-directory { border-top: 1px solid var(--member-line); padding-top: 20px; }
.member-filters { display: grid; grid-template-columns: minmax(220px, 2.5fr) 1fr 1fr 1fr auto; gap: 10px; align-items: end; }
.member-filters button { min-height: 47px; white-space: nowrap; }
.member-help { font-size: .84rem; margin-top: 14px; }
.member-admin #member-status { margin: 8px 0 12px; padding: 0; background: none; font-size: .88rem; }
.member-table-scroll { overflow-x: auto; border: 1px solid var(--member-line); border-radius: 5px; }
.member-table { width: 100%; min-width: 865px; border-collapse: collapse; text-align: left; }
.member-table th { color: #362b63; background: #eeebf7; font-weight: 700; }
.member-table th, .member-table td { padding: 12px; border-bottom: 1px solid var(--member-line); vertical-align: top; overflow-wrap: anywhere; }
.member-table td:last-child { white-space: nowrap; }
.member-table tr:last-child td { border-bottom: 0; }
.member-table tbody tr:nth-child(even) { background: #fcfbfe; }
.member-table button { padding: 6px 9px; line-height: 1.45; }
.member-table button + button { margin-left: 5px; }
.member-secondary { display: block; font-size: .84rem; margin-top: 3px; }
.member-state { display: inline-block; padding: 1px 7px; border-radius: 4px; font-weight: 700; white-space: nowrap; background: #eeeaf6; }
.member-state.is-active { color: #23553c; background: #e7f4eb; }
.member-state.is-expired { color: #714e42; background: #f7ece8; }
.member-pagination { align-items: center; justify-content: flex-end; gap: 12px; margin-top: 14px; }
#member-detail { width: min(510px, calc(100% - 28px)); max-height: calc(100% - 30px); padding: 24px; border: 1px solid var(--member-line); border-radius: 7px; color: inherit; }
#member-detail::backdrop { background: #21174280; }
#member-detail-info { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; padding: 12px; background: #f4f2fa; }
#member-detail-info dt { font-weight: 650; }
#member-detail-info dd { margin: 0; overflow-wrap: anywhere; }
.member-detail-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.member-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
@media (max-width: 760px) {
  .member-filters { grid-template-columns: 1fr 1fr; }
  .member-filters > div:first-child { grid-column: 1 / -1; }
  .member-summary { display: grid; grid-template-columns: 1fr 1fr; }
}
