.member-directory .md-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}.member-directory .md-tools input{max-width:310px}.member-directory .md-muted{font-size:12px;color:#a6b3c5;margin:5px 0}.member-directory table.md-grid{border-collapse:collapse;min-width:1650px;width:100%;font-size:12px}.member-directory table.md-grid th,.member-directory table.md-grid td{border:1px solid #46526a;padding:7px 9px;vertical-align:middle}.member-directory table.md-grid th{background:#202b40;white-space:nowrap}.member-directory table.md-grid th:first-child,.member-directory table.md-grid td:first-child{position:sticky;left:0;background:#192235;z-index:1;min-width:100px}.member-directory table.md-admin-grid{min-width:900px}.member-directory small{display:block;color:#a6b3c5;font-size:10px;margin-top:3px}.member-directory .md-provider{margin:3px 0}.member-directory .md-tag{font-size:10px;color:#e4c777;margin-left:5px}.member-directory .actions{gap:4px;min-width:160px}.member-directory .md-pager{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:12px}
.yh-member-profile-shell{max-width:900px;margin:auto}.yh-member-profile-tabs{display:flex;gap:6px;margin:10px 0 16px;border-bottom:1px solid #43506a;padding-bottom:9px}.yh-member-profile-tabs button{padding:7px 14px}.yh-member-profile-tabs button[aria-selected=true]{background:#d8b65c;color:#1e1a12}.yh-member-profile-shell .yh-config-form{display:grid;grid-template-columns:1fr 1fr;gap:10px}.yh-member-profile-shell .yh-config-form p,.yh-member-profile-shell .yh-config-form>button{grid-column:1/-1;margin:4px 0}.yh-member-profile-shell .yh-config-form label{display:grid;gap:5px}.yh-member-profile-shell .yh-config-form input{width:100%;margin:0;padding:9px 11px}.yh-member-profile-shell .yh-config-form>button{justify-self:end;width:auto}.yh-member-profile-shell h4{margin:10px 0}.yh-member-profile-shell p{font-size:12px;line-height:1.6}.yh-member-profile-shell table{border-collapse:collapse;min-width:0!important;width:100%}.yh-member-profile-shell th,.yh-member-profile-shell td{border:1px solid #46526a;padding:8px;overflow-wrap:anywhere}.yh-member-profile-shell .field{padding:9px 11px}.yh-member-profile-shell .btn{padding:8px 12px}@media(max-width:600px){.yh-member-profile-shell .yh-config-form{grid-template-columns:1fr}.yh-member-profile-tabs{gap:4px}.yh-member-profile-tabs button{flex:1;padding:7px 5px;font-size:12px}.member-directory .md-tools input{max-width:100%;flex:1;min-width:160px}}

.yh-member-profile-shell .yh-config-form label:last-of-type{grid-column:1/-1}



.member-directory .md-profile{background:#173a5d;color:#b8ddff;border:1px solid #397bb1}.member-directory .md-unfreeze{background:#164a39;color:#b7f3d2;border:1px solid #3b9874}.member-directory .actions .btn-danger{background:#572935;color:#ffc3c8;border:1px solid #a84b61}.member-directory .actions .btn:hover{filter:brightness(1.15)}

.member-directory .md-network{width:max-content;white-space:nowrap}.member-directory .md-network small{white-space:nowrap}

.md-profile-layout{display:grid;gap:12px}.md-profile-identity,.md-profile-section{padding:14px 16px;background:#192235;border:1px solid #42526d;border-radius:10px}.md-profile-identity{display:grid;gap:4px}.md-profile-identity b{color:#e4c777;font-size:16px}.md-profile-identity span{overflow-wrap:anywhere;color:#c2cfe3;font-size:12px}.md-profile-section h4{margin:0 0 10px}.md-profile-section .yh-config-form input{box-sizing:border-box}.md-profile-layout>.actions{display:flex;flex-wrap:wrap;gap:8px}.md-snapshot-refresh{margin-top:5px}

.member-directory .md-network .md-ip{font-size:12px;color:#d2deed;font-weight:600}.md-profile-layout{gap:16px}.md-profile-identity{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;background:linear-gradient(110deg,#24344f,#1b273b);border-color:#4e668a}.md-profile-section{padding:16px 18px}.md-profile-section h4{font-size:14px;color:#e0e9f6;border-bottom:1px solid #3b4b65;padding-bottom:9px}.md-profile-layout>.actions{justify-content:flex-end}

/* Member list and profile dialog */
.member-directory table.md-grid:not(.md-admin-grid) {
  table-layout: auto;
  width: max-content;
  min-width: 0;
}
.member-directory .md-grid:not(.md-admin-grid) :is(th:first-child, td:first-child, .actions) {
  min-width: 0;
}
.member-directory .md-grid:not(.md-admin-grid) th,
.member-directory .md-grid:not(.md-admin-grid) td {
  border: 1px solid #42516a;
  padding: 7px 9px;
  white-space: nowrap;
}
.member-directory .md-grid:not(.md-admin-grid) :is(th, td):first-child {
  width: 1%;
  padding-inline: 9px;
}
.member-directory .md-grid:not(.md-admin-grid) .md-provider-cell {
  min-width: 185px;
}
.member-directory .md-provider {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.member-directory .md-provider-amount {
  min-width: 10ch;
  text-align: right;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: #8ee1bb;
}
.member-directory .md-provider-pending { color: #a6b3c5; }
.member-directory .md-grid:not(.md-admin-grid) tbody tr:hover td {
  background: #24344e;
}
.member-directory .md-grid:not(.md-admin-grid) .md-wallet-amount {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.member-directory .actions .btn,
.member-directory .md-snapshot-refresh {
  min-height: 26px;
  padding: 3px 8px;
  font-size: 11px;
}
.md-profile-identity {
  align-items: center;
  margin-bottom: 12px;
}
.md-profile-identity h3 {
  margin: 0 0 6px;
  font-size: 13px;
}
.md-profile-identity .md-profile-email {
  display: block;
  margin-top: 4px;
}
.md-profile-links,
.md-field-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.md-profile-identity .md-profile-links .btn {
  padding: 5px 9px;
  font-size: 12px;
}
.md-profile-layout { gap: 10px; }
.md-profile-layout .md-profile-section { padding: 12px 14px; }
.md-profile-layout .md-chip,
.md-profile-identity .md-chip {
  border-radius: 12px;
  padding: 2px 7px;
  background: #2a3851;
  color: #d4def0;
  font-size: 11px;
}
.md-profile-layout .md-chip-warning,
.md-profile-identity .md-chip-warning {
  background: #493b24;
  color: #ffe09c;
}
.md-profile-identity .md-chip-positive {
  background: #21443a;
  color: #b8f2d7;
}
.md-profile-layout .yh-config-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.md-profile-layout .md-profile-note { color: #a6b3c5; }
.md-profile-layout #memberAdminError { color: #ffb4bd; }
.md-profile-layout #memberAdminError:empty { display: none; }
.md-receiving-list { margin: 0; padding: 0; list-style: none; }
.md-receiving-list li {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 6px 0;
  overflow-wrap: anywhere;
}
.md-receiving-list li + li { border-top: 1px solid #344159; }
.md-profile-layout .md-profile-footer {
  border-top: 1px solid #344159;
  padding-top: 9px;
}
@media (max-width: 600px) {
  .md-profile-layout .yh-config-form { grid-template-columns: minmax(0, 1fr); }
}

.modal:has(> .modal-card > .md-profile-layout) {
  align-items: safe center;
  overflow-y: auto;
  scrollbar-width: none;
}
.modal-card:has(> .md-profile-layout) {
  box-sizing: border-box;
  width: min(720px, 100%);
  max-height: none;
  overflow: visible;
  min-width: 0;
}
.md-profile-layout {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  margin: 0;
}
.md-profile-layout .yh-member-profile-tabs { margin: 0; }
.md-profile-layout > [data-profile-panel] {
  display: block;
  grid-area: 2 / 1;
}
.md-profile-layout > [data-profile-panel][hidden] { visibility: hidden; }
.md-profile-layout > [data-profile-panel="basic"] {
  display: grid;
  align-content: start;
  gap: 10px;
}
.md-profile-layout .md-profile-footer [hidden] { display: none; }

.md-member-view .section-head { margin-bottom: 7px; }
.md-member-view .section-head .md-muted { margin: 0; }
.md-member-view .md-tools { gap: 6px 8px; font-size: 13px; }
.md-member-view .md-tools > :is(.field, .btn) { font-size: inherit; }
.md-member-view .md-tools > .field {
  box-sizing: border-box;
  flex: 0 1 224px;
  min-width: 0;
  width: 224px;
  height: 28px;
  padding: 3px 8px;
}
.md-member-view .md-tools > .btn {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 4px 9px;
  white-space: nowrap;
}
.md-member-view .md-total {
  flex: 0 0 auto;
  min-width: max-content;
  white-space: nowrap;
}
@media (max-width: 540px) {
  .md-member-view .md-tools > .field { flex-basis: 100%; }
}

.md-create-form { display: grid; gap: 12px; }
.md-create-form h3, .md-create-form p { margin: 0; }
.md-create-form label { display: grid; gap: 4px; }
.md-create-form .field { box-sizing: border-box; width: 100%; }
.md-create-error { color: #fca5a5; }
.md-create-error:empty { display: none; }


/* Show complete email addresses within a compact wrapping column. */
.md-member-view .md-email {
  width: 16ch;
  max-width: 16ch;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.45;
  color: #b9c9df;
}

.member-directory .md-snapshot-refresh {
  background: #174c55;
  color: #b8f4f0;
  border-color: #3a929b;
}
.member-directory .md-snapshot-refresh:hover:not(:disabled) {
  background: #226773;
  color: #e9fffc;
  border-color: #65bbc1;
}

.md-member-view :is(#mdEmailState,#mdSource) { flex: 0 1 auto; width: auto; }
.md-member-view .md-verification { display: block; }
.md-member-view .md-verification[data-state="pending"] { color: #efb85c; }
