.account-module,.account-list{display:grid;gap:1rem;min-width:0}
.account-heading,.account-summary,.account-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.65rem}
.account-heading,.account-summary{justify-content:space-between}
.account-heading h2,.account-summary h3,.account-editor h3{margin:0}
.account-heading p,.account-editor p{margin:.3rem 0;color:var(--dim)}
.account-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,350px),1fr));align-items:start}
.account-card,.account-module>[data-user-editor]:not([hidden]){background:var(--paper);border:1px solid var(--border);border-radius:.9rem;padding:1.1rem}
.account-card{min-width:0}
.account-summary{align-items:flex-start;margin-bottom:1rem}
.account-summary>div{min-width:0;overflow-wrap:anywhere}
.account-summary [data-email]{font-size:.94rem;color:var(--dim)}
.account-summary small{display:inline-block;font-size:.79rem;font-weight:500;color:var(--dim);margin-left:.4rem}
.account-scope{display:grid;gap:.2rem;margin:0 0 .75rem;font-size:.92rem}
.account-scope strong{color:var(--ink)}
.account-status{padding:.2rem .55rem;border-radius:.5rem;font-size:.8rem;background:var(--soft);color:var(--dim)}
.account-card[data-active="1"] .account-status{background:var(--accent);color:var(--ink)}
.account-card[data-active="0"] .account-status{background:#f9e3e0;color:#772d29}
.account-access{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.6rem;padding:.8rem 0;margin-bottom:.75rem;border-block:1px solid var(--border)}
.account-access small{color:var(--dim)}
.account-card .account-editor{border-top:1px solid var(--border);margin-top:.85rem;padding-top:.85rem}
.account-fields{display:grid;gap:.65rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,205px),1fr))}
.account-editor input:not([type=checkbox]),.account-editor select{width:100%;min-width:0}
.account-permissions{min-width:0;margin:0;border:1px solid var(--border);border-radius:.6rem;padding:.4rem .8rem .65rem}
.account-permissions legend{padding:0 .3rem;font-weight:650}
.account-permissions>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:.15rem .65rem}
.account-permissions label{display:flex;align-items:center;gap:.5rem;min-height:44px;cursor:pointer}
.account-permissions input[type=checkbox]{flex:none;margin:0;accent-color:var(--ink)}
.account-editor p[data-user-error]{color:#9a2339}
.account-module [hidden]{display:none!important}
