/* Members Manager + Member pages. Century look: #1c1e1a ink, #f5f5f4 canvas, white cards, sharp corners,
   green #8cc63e only with black text. */
.ma { font-family: Inter, Arial, sans-serif; color: #1c1e1a; display: flex; flex-direction: column; gap: 16px; }
.ma *, .ma *::before, .ma *::after { box-sizing: border-box; }
.ma-toolbar { display: flex; gap: 12px; align-items: center; }
.ma-search { flex: 1 1 auto; height: 48px; padding: 0 14px; border: 1px solid #d6d3d1; background: #fff; font: inherit; font-size: 15px; color: #1c1e1a; border-radius: 0; }
.ma-search:focus, .ma-input:focus { outline: 2px solid #1c1e1a; outline-offset: -1px; border-color: #1c1e1a; }
.ma-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.ma-tab { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid #d6d3d1; background: #fff; font: inherit; font-size: 14px; color: #1c1e1a; cursor: pointer; border-radius: 0; }
.ma-tab:hover { border-color: #1c1e1a; }
.ma-tab.is-on { background: #1c1e1a; border-color: #1c1e1a; color: #fff; }
.ma-tab-count { font-size: 12px; font-weight: 600; padding: 1px 6px; background: #f5f5f4; color: #1c1e1a; }
.ma-tab.is-on .ma-tab-count { background: #8cc63e; color: #1c1e1a; }
.ma-count { margin: 0; font-size: 13px; color: #57534e; }
.ma-table-wrap { background: #fff; border: 1px solid #e7e5e4; overflow-x: auto; }
.ma-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ma-table th { text-align: left; font-size: 13px; font-weight: 600; color: #57534e; padding: 12px 16px; border-bottom: 1px solid #e7e5e4; background: #fafaf9; }
.ma-table td { padding: 12px 16px; border-bottom: 1px solid #e7e5e4; vertical-align: middle; }
.ma-row { cursor: pointer; }
.ma-row:hover { background: #fafaf9; }
.ma-name { font-weight: 600; color: #1c1e1a; text-decoration: none; }
.ma-name:hover, .ma-name:focus-visible { text-decoration: underline; }
.ma-sub { font-size: 13px; color: #57534e; margin-top: 2px; word-break: break-all; }
.ma-nowrap { white-space: nowrap; }
.ma-empty { margin: 0; padding: 24px 16px; color: #57534e; }
.ma-badge { display: inline-block; padding: 3px 8px; font-size: 12px; font-weight: 600; line-height: 1.3; white-space: nowrap; border: 1px solid transparent; }
.ma-badge-pending { background: #1c1e1a; color: #8cc63e; }
.ma-badge-approved { background: #eef6e3; color: #2f4d12; border-color: #cfe3b3; }
.ma-badge-unverified { background: #f5f5f4; color: #57534e; }
.ma-badge-suspended, .ma-badge-denied, .ma-badge-revoked { background: #fbeceb; color: #8a2a22; border-color: #f0cfcb; }
.ma-badge-archived, .ma-badge-unknown { background: #f5f5f4; color: #57534e; }
.ma-badge-level { background: #fff; color: #1c1e1a; border-color: #d6d3d1; }
.ma-msg { padding: 12px 14px; font-size: 14px; border: 1px solid #e7e5e4; background: #fff; }
.ma-msg-error { border-color: #f0cfcb; background: #fbeceb; color: #8a2a22; }
.ma-msg-ok { border-color: #cfe3b3; background: #eef6e3; color: #2f4d12; }
.ma-back { font-size: 14px; color: #1c1e1a; text-decoration: underline; align-self: flex-start; }
.ma-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.ma-head > div:first-child { min-width: 0; flex: 1 1 260px; }
.ma-head-email { font-size: 15px; color: #57534e; word-break: break-all; }
.ma-head-badges { display: flex; gap: 8px; }
.ma-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.ma-card { background: #fff; border: 1px solid #e7e5e4; padding: 20px 24px; }
.ma-card-wide { grid-column: 1 / -1; }
.ma-h2 { margin: 0 0 12px; font-family: Lora, Georgia, serif; font-weight: 600; font-size: 20px; color: #1c1e1a; }
.ma-h3 { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.ma-dl { margin: 0; }
.ma-dl-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid #f5f5f4; font-size: 14px; }
.ma-dl-row:last-child { border-bottom: 0; }
.ma-dl dt { color: #57534e; }
.ma-dl dd { margin: 0; word-break: break-word; }
.ma-muted { color: #57534e; font-size: 13px; margin: 0; }
.ma-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ma-action-panel:not(:empty) { margin-top: 16px; padding-top: 16px; border-top: 1px solid #e7e5e4; }
.ma-action-form { display: flex; flex-direction: column; gap: 12px; }
.ma-fields { display: flex; flex-direction: column; gap: 12px; }
.ma-label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.ma-input { height: 48px; padding: 0 10px; border: 1px solid #d6d3d1; background: #fff; font: inherit; font-size: 14px; font-weight: 400; color: #1c1e1a; border-radius: 0; }
.ma-input:disabled { background: #fafaf9; color: #57534e; }
.ma-textarea { height: auto; padding: 8px 10px; resize: vertical; }
.ma-btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 16px; font: inherit; font-size: 14px; font-weight: 600; border: 1px solid #1c1e1a; background: #fff; color: #1c1e1a; cursor: pointer; border-radius: 0; text-decoration: none; }
.ma-btn:hover { background: #f5f5f4; }
.ma-btn:disabled { opacity: 0.6; cursor: default; }
.ma-btn-primary { background: #111; border-color: #111; color: #fff; }
.ma-btn-primary:hover { background: #2b2b2b; }
.ma-btn-danger { background: #8a2a22; border-color: #8a2a22; color: #fff; }
.ma-btn-danger:hover { background: #6f2019; }
.ma-btn-link { border-color: transparent; background: transparent; text-decoration: underline; }
.ma-btn:focus-visible, .ma-tab:focus-visible, .ma-back:focus-visible { outline: 2px solid #1c1e1a; outline-offset: 2px; }
.ma-history { list-style: none; margin: 0; padding: 0; }
.ma-history-item { padding: 10px 0; border-bottom: 1px solid #f5f5f4; font-size: 14px; display: flex; flex-direction: column; gap: 3px; }
.ma-history-item:last-child { border-bottom: 0; }
.ma-history-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 767px) {
  .ma-grid { grid-template-columns: 1fr; }
  .ma-hide-sm { display: none; }
  .ma-dl-row { grid-template-columns: 1fr; gap: 2px; }
  .ma-card { padding: 16px; }
}
.ma-btn-danger-outline { background: #fff; border-color: #8a2a22; color: #8a2a22; }
.ma-btn-danger-outline:hover { background: #fbeceb; }
.ma-action-form .ma-actions { margin-top: 4px; }
.ma-confirm { margin-top: 16px; padding-top: 16px; border-top: 1px solid #e7e5e4; display: flex; flex-direction: column; gap: 10px; }
.ma-card > .ma-confirm:nth-child(2) { margin-top: 0; padding-top: 0; border-top: 0; }
