.account-admin details{margin:12px 0 22px;padding:12px 16px;border:1px solid #d1d9c9;border-radius:9px;background:#f8f7ed}.account-admin summary{font-weight:750;cursor:pointer;line-height:1.8}.account-admin textarea{display:block;width:100%;font:inherit;padding:10px;border:1px solid #bac6b8;border-radius:7px;resize:vertical}.account-admin small{display:block;color:#627060;font-size:12px;margin:5px 0}.account-admin .tools{margin:13px 0 8px}.account-admin .sectiontitle{gap:8px;flex-wrap:wrap}.account-admin .sectiontitle .ghost{font-size:13px;text-decoration:none}.account-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;border-bottom:1px solid #e1dfcc;padding:8px 0;font-size:14px}.account-row strong,#importSamples{overflow-wrap:anywhere}.account-row small:empty,#grantStatus:empty{display:none}.account-admin h3{margin-bottom:4px}.account-admin #grantForm{margin-top:12px;padding:13px;background:#f3eedb;border-radius:8px}.account-admin #importSummary,.account-admin #grantStatus{font-weight:650;color:#28523a}.account-admin #importSamples{font-size:12px;color:#53634f;line-height:1.6;margin-top:4px}.account-admin #moreAccounts{margin-top:10px}
[hidden]{display:none!important}.member-entry{justify-content:center;color:#324c3b;font:650 clamp(12px,3cqw,19px) system-ui;cursor:pointer}
.member-desk{width:min(400px,calc(100vw - 26px));max-height:87svh;overflow:auto;box-sizing:border-box;padding:22px;border:1px solid #c9ae78;border-radius:16px;background:#fffaeb;color:#213f31;box-shadow:0 16px 60px #13291c55;font:15px/1.45 system-ui,"Microsoft YaHei",sans-serif}
.member-desk::backdrop{background:#16291db3}.member-desk header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.member-desk header h2{font:750 27px Georgia,"Songti SC",serif;margin:3px 0 12px}.member-desk header small{color:#836336;font-size:11px}.member-desk button{cursor:pointer;font:inherit;color:inherit}.member-desk header button{width:35px;height:35px;border:1px solid #bfa97c;border-radius:50%;background:transparent}.member-desk label{display:block;font-weight:650;font-size:13px;margin:10px 0}.member-desk input{box-sizing:border-box;display:block;width:100%;margin-top:4px;min-height:43px;border:1px solid #bead8a;border-radius:6px;background:#fffefa;color:#20392b;padding:6px 10px;font:16px system-ui}.member-desk .member-primary{width:100%;margin:5px 0;min-height:44px;border-radius:7px;border:0;background:#28543d;color:#fff3d0;font-weight:700}.member-desk .member-primary:disabled{background:#ded9c5;color:#756e59}.member-actions{display:flex;justify-content:space-between;gap:4px;flex-wrap:wrap}.member-actions button,.legacy-switch{border:0;background:transparent;text-decoration:underline;text-underline-offset:3px;padding:8px 2px;font-size:13px!important}.legacy-switch{color:#6b654c!important}.member-desk p{font-size:14px}.member-desk #memberMessage:empty{display:none}

.account-admin #grantForm{margin:20px 0 24px;padding:clamp(14px,3vw,24px);background:#f4f1e5;border:1px solid #dfd7bc}
#grantForm h3{margin:0 0 10px}.grant-label,.grant-send{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.grant-label .grant-upload{position:relative;overflow:hidden;cursor:pointer;font-size:12px;padding:6px 10px;background:#fffdf5}
.grant-upload input{position:absolute;inset:0;width:100%;opacity:0;cursor:pointer}.grant-upload:focus-within{outline:2px solid #356340}
#grantForm .grant-create{display:flex;align-items:center;gap:8px;font-weight:500;cursor:pointer;margin:14px 0}
#grantForm .grant-create input{width:17px;height:17px;min-height:0;flex:none;accent-color:#234938;margin:0}
#grantForm .grant-send{border-top:1px solid #dad4be;padding-top:14px}.grant-send span{font-size:14px;color:#295140}
#grantForm button:disabled{opacity:.6}#grantStatus{margin-bottom:0;overflow-wrap:anywhere}.grant-options input,.grant-options select{width:100%}

.account-shortcuts,.member-row-actions,.reset-options,.reset-footer{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
#manageMember{scroll-margin-block-start:18px}
#memberResetDialog{box-sizing:border-box;width:min(440px,calc(100vw - 28px));max-height:88dvh;overflow:auto;background:#fffcf3}
#memberResetForm{padding:clamp(18px,5vw,28px)}
#memberResetForm h2{margin:0}
#memberResetForm p{font-size:14px;line-height:1.6;color:#4f6256}
#memberResetForm .reset-who{padding:10px 12px;background:#f2eedf;border-radius:6px;overflow-wrap:anywhere}
.reset-who strong{color:#173f33;margin-inline-start:5px}
.reset-entry{display:flex;gap:6px;align-items:stretch}.reset-entry input{flex:1;min-width:0;margin:0;font-size:16px}
.reset-options{margin-top:9px}.reset-footer{justify-content:flex-end;margin-top:16px}
#memberResetMessage:not(:empty){padding:8px 12px;border-left:3px solid #ab8c4f;background:#f5f1e4;color:#263f31}
@media(max-width:550px){.account-row{grid-template-columns:minmax(0,1fr) auto;gap:6px 10px}.member-row-actions{grid-column:1/-1;justify-content:flex-end}.member-row-actions button{min-height:38px}}
