
.amm-card{padding:16px;margin:16px 0;display:flex;align-items:center;justify-content:space-between;gap:15px}
.amm-card[hidden]{display:none!important}
.amm-card h2{font-size:18px;margin:4px 0}.amm-card p{font-size:12px;color:#acb6bd;margin:4px 0}.amm-card button{flex-shrink:0}
.amm-mask.hidden{display:none!important}.amm-mask{position:fixed;inset:0;background:#03080bdc;z-index:899;display:flex;justify-content:center;align-items:stretch;padding:10px}
.amm-sheet{background:#11191d;color:#eef6ef;border:1px solid #405047;width:min(1030px,100%);border-radius:20px;display:flex;flex-direction:column;overflow:hidden}
.amm-sheet header{padding:18px 22px;display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid #2d3b40}
.amm-sheet h2{font-size:24px;margin:2px 0}.amm-sheet header p{font-size:11px;color:#9daab0;margin:3px 0}
.amm-x{background:#253033;border:1px solid #4d5b59;border-radius:50%;font-size:25px;color:#fff;width:40px;height:40px}
.amm-content{overflow:auto;padding:18px 22px 25px;flex:1}.amm-notice{border-radius:11px;border:1px solid #97753a;background:#292416;color:#fbe9b9;padding:13px;font-size:12px;line-height:1.5}
.amm-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:15px 0}
.amm-stats>div{border:1px solid #364e3d;background:#1c2920;border-radius:12px;padding:13px}
.amm-stats small{display:block;font-size:10px;color:#b4c0b2}.amm-stats strong{display:block;font-size:25px;margin-top:5px}
.amm-actions,.amm-filters{display:flex;flex-wrap:wrap;gap:8px;margin:13px 0}
.amm-content button{background:#263329;border:1px solid #5f7a58;border-radius:9px;padding:9px 12px;min-height:39px;font-size:12px;color:#edf3e7;cursor:pointer}
.amm-content button.amm-primary{color:#15200e;background:#b9ff30;border-color:#b9ff30;font-weight:800}
.amm-content button:disabled{opacity:.4;cursor:not-allowed}
.amm-filters input,.amm-filters select,.amm-form input,.amm-form select,.amm-content input[type=file]{background:#0b1519;border:1px solid #405358;color:#f2f8f2;border-radius:9px;font-size:12px;padding:10px;min-width:0}
.amm-filters input{flex:2;min-width:165px}.amm-filters select{flex:1;min-width:120px}
.amm-scroll{overflow-x:auto;border:1px solid #37464a;border-radius:12px}.amm-table{border-collapse:collapse;width:100%;min-width:650px;text-align:left;font-size:12px}
.amm-table th{padding:12px;background:#1e2a2e;color:#a9bbbc;white-space:nowrap}.amm-table td{padding:11px 12px;border-top:1px solid #2e3b3f;white-space:nowrap}
.amm-table td button{padding:0;border:0;background:none;color:#b9ff30;text-decoration:underline;text-align:left}
.amm-pill{border-radius:18px;background:#2d3f2c;color:#c8ff9b;font-size:10px;padding:4px 7px}
.amm-pending,.amm-unlinked{background:#473924;color:#ffd799}.amm-inactive{background:#47353c;color:#f9c3d2}
.amm-title{margin:16px 0 4px;font-size:21px}.amm-muted{color:#9babb0;font-size:12px}
.amm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:15px 0}
.amm-grid>div{border:1px solid #37474a;background:#192428;border-radius:10px;padding:12px;overflow-wrap:anywhere}
.amm-grid small{display:block;color:#a1b1b5;font-size:11px;margin-bottom:5px}.amm-grid strong{font-size:13px}
.amm-helper{color:#b4c3c6;font-size:12px;line-height:1.5;margin:13px 0}
.amm-form{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:15px}.amm-form label{display:grid;gap:5px;font-size:12px;color:#b3c1c1}
.amm-form button{grid-column:1/-1}.amm-error{color:#ffbdb0;font-size:12px;padding:7px 0}
@media(max-width:580px){.amm-mask{padding:0}.amm-sheet{border:0;border-radius:0}.amm-sheet header{padding:15px}.amm-content{padding:14px 14px 30px}.amm-card{display:block}.amm-card button{margin-top:12px}.amm-stats{gap:6px}.amm-stats>div{padding:9px}.amm-stats strong{font-size:21px}.amm-grid,.amm-form{grid-template-columns:1fr}}


.amm-hist-uploads{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}
.amm-hist-uploads label{display:flex;flex-direction:column;gap:9px;background:#1b292b;border:1px solid #415650;border-radius:12px;padding:14px;color:#e6efe8;font-size:13px;font-weight:700}
.amm-hist-uploads label small{font-weight:400;font-size:11px;color:#b3c2c7;overflow-wrap:anywhere}
.amm-hist-uploads input[type=file]{width:100%;padding:9px;border-radius:9px;background:#0b1519;border:1px solid #405358;color:#eee}
@media(max-width:580px){.amm-hist-uploads{grid-template-columns:1fr}}


.amm-hist-col{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0}
.amm-hist-col label{flex:1}
.amm-hist-col>small{font-size:11px;line-height:1.5;color:#aebdc0}
.amm-filelink{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 12px;min-height:40px;border:1px solid #baff35;border-radius:10px;background:#263a21;color:#d9ff8b!important;text-decoration:none!important;font-size:12px;font-weight:750;cursor:pointer}
.amm-filelink:hover,.amm-filelink:focus-visible{background:#344c29;outline-offset:2px}
.amm-filelink-muted{border-color:#5c6c5d;background:#233025;color:#e4f4e0!important}
.amm-content .amm-actions>a.amm-filelink{min-height:40px}


/* Desktop responsive member edit: prevent inherited form stretching. */
.amm-sheet{min-height:0;max-height:calc(100dvh - 20px)}
.amm-content{min-height:0;scrollbar-gutter:stable;overflow-x:hidden}
.amm-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 18px;align-items:start;grid-auto-flow:row;grid-auto-rows:min-content}
.amm-form label{display:flex!important;flex-direction:column!important;gap:7px!important;min-width:0;min-height:0;align-self:start;justify-content:flex-start}
.amm-form label>input,.amm-form label>select{display:block;width:100%!important;box-sizing:border-box!important;max-width:100%;height:44px!important;min-height:44px!important;max-height:44px!important;flex:none!important;padding:10px 12px;border-radius:9px}
.amm-form label>small{font-size:11px;line-height:1.45;color:#aebfc2;display:block}
.amm-form button[type=submit]{grid-column:1/-1;margin-top:6px;min-height:48px}
@media(max-width:640px){
 .amm-form{grid-template-columns:1fr;gap:12px}
 .amm-sheet{max-height:100dvh;height:100dvh}
 .amm-content{scrollbar-gutter:auto}
}


/* Member-management usability and accessible mobile listing */
.amm-result-summary{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin:8px 0 12px;color:#b5c5c3;font-size:12px}
.amm-result-summary button{background:transparent;border:1px solid #4d6555;border-radius:9px;color:#c5fa95;min-height:38px;cursor:pointer}
.amm-filters select,.amm-filters input{font-size:13px}
.amm-sheet button,.amm-filelink{-webkit-tap-highlight-color:transparent}
.amm-sheet :is(button,input,select,a):focus-visible{outline:2px solid #c6ff67!important;outline-offset:3px}
.amm-pill{font-size:11px;letter-spacing:.01em}
.amm-form label small{margin-top:2px}
.amm-content button{transition:background-color .15s ease,border-color .15s ease}
.amm-error:not(:empty){background:#3a2024;border:1px solid #b85c61;border-radius:10px;padding:11px 13px;line-height:1.5}
.amm-note-success{background:#1c3225!important;border-color:#5eab70!important;color:#daf7dd!important}
.amm-scroll{scrollbar-color:#5a726d transparent}
@media(max-width:680px){
 .amm-member-table{display:block;min-width:0!important;width:100%!important}
 .amm-member-table thead{position:absolute!important;clip:rect(0,0,0,0);clip-path:inset(50%);height:1px;width:1px;overflow:hidden}
 .amm-member-table tbody{display:grid;gap:10px;padding:9px}
 .amm-member-table tr{display:grid;grid-template-columns:1fr 1fr;gap:8px 14px;border:1px solid #36494a;border-radius:12px;background:#162226;padding:13px;min-width:0}
 .amm-member-table td{border:0!important;display:flex;flex-direction:column;align-items:flex-start;min-width:0;white-space:normal;overflow-wrap:anywhere;padding:0!important}
 .amm-member-table td:before{content:attr(data-label);display:block;color:#90a7ac;font-size:10px;margin-bottom:3px;text-transform:uppercase;letter-spacing:.04em}
 .amm-member-table td:first-child{grid-column:1/-1}
 .amm-member-table td:first-child button{font-size:15px!important;min-height:34px}
 .amm-member-table tr.amm-no-results{display:block}
 .amm-member-table tr.amm-no-results td:before{display:none}
 .amm-member-table tr.amm-no-results td{display:block}
 .amm-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .amm-filters #ammSearch{grid-column:1/-1;width:100%;min-width:0}
 .amm-filters select{min-width:0;width:100%}
 .amm-actions{gap:8px}.amm-actions button,.amm-actions a{min-height:44px}
 .amm-sheet header h2{font-size:20px}
}
@media(prefers-reduced-motion:reduce){.amm-content button{transition:none}}


/* Read-only diagnostic UI */
.amm-health-results{display:grid;gap:8px;margin:14px 0}
.amm-health-row{padding:11px 12px;border:1px solid #415453;background:#1b282a;border-radius:11px}
.amm-health-row.ok{border-color:#506b57}.amm-health-row.fail{border-color:#9a5558;background:#312123}
.amm-health-row strong{display:block;font-size:12px;color:#edf5ef}
.amm-health-row p{font-size:11px;color:#b3c2c5;line-height:1.45;margin:5px 0 0;overflow-wrap:anywhere}
.amm-member-table td[data-label="Graduation Month"]{overflow-wrap:anywhere}


/* Shared Admin Tools typography and button rhythm */
#ammLaunch,#aevLaunch{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
#ammLaunch .eyebrow,#aevLaunch .eyebrow{font-size:11px;letter-spacing:.12em;line-height:1.35;font-weight:800;color:#aab7bf;margin:0 0 5px}
#ammLaunch h2,#aevLaunch h2{font-size:21px;line-height:1.25;font-weight:760;letter-spacing:-.025em;margin:0 0 6px}
#ammLaunch p,#aevLaunch p{font-size:13px;line-height:1.55;font-weight:400;color:#aab7bf;margin:0}
#ammLaunch button.primary-btn,#aevLaunch button.aev-btn{min-height:48px;padding:12px 18px;border-radius:13px;background:#c7ff3d;color:#10190a!important;border:1px solid #c7ff3d;font-size:14px;font-weight:800;letter-spacing:0}
@media(max-width:680px){#ammLaunch,#aevLaunch{padding:19px 16px;flex-direction:column;align-items:stretch;gap:18px}#ammLaunch button.primary-btn,#aevLaunch button.aev-btn{width:100%;min-height:51px;font-size:14px}}
/* 2 Nov 2026: call name column, editable in place */
.amm-callname-btn{background:transparent!important;border:1px dashed #ffffff33!important;border-radius:8px;padding:4px 8px!important;color:inherit;font:inherit;cursor:pointer;min-height:0!important;width:auto!important}
.amm-auto{color:#8b909a;font-size:10px;margin-left:4px}
.amm-callname-input{width:100%;max-width:180px;min-height:34px;border-radius:8px;border:1px solid #c8ff3a;background:#0d0f13;color:inherit;font:inherit;padding:0 8px}
