.accounts-register{padding:1.15rem;min-width:0}.accounts-status{display:flex;gap:.5rem;flex-wrap:wrap;border-bottom:1px solid var(--line,#ced6e0);padding-bottom:1rem}.accounts-status button[aria-pressed=true]{background:var(--green,#2865ad);color:#fff}.accounts-status span{margin-left:.5rem;opacity:.8}.accounts-filters{display:grid;grid-template-columns:minmax(220px,2fr) minmax(130px,1fr) minmax(130px,1fr) auto;gap:.8rem;align-items:end;margin:1rem 0}.accounts-filters label{min-width:0}.accounts-filters input,.accounts-filters select{width:100%;min-width:0}.accounts-table{width:100%;table-layout:fixed}.accounts-table th:first-child{width:25%}.accounts-table th:nth-child(2){width:20%}.accounts-table th:nth-child(3){width:20%}.accounts-table th:nth-child(4){width:11%}.accounts-table th:nth-child(5){width:12%}.accounts-table th:last-child{width:12%}.accounts-table td{overflow-wrap:anywhere;vertical-align:middle}.accounts-table td:first-child button{text-align:left;max-width:100%;white-space:normal}.accounts-table small{display:block;margin-top:.3rem}.accounts-table td:last-child button{display:block;margin:.25rem 0}.accounts-guidance{margin-top:1rem}.accounts-custom{color:var(--green,#2965a7)}.account-state-enabled{background:#d7f0e0;color:#175b38}.account-state-disabled{background:#f9ebc9;color:#714c0a}.account-state-archived{background:#e5e8ed;color:#4c596b}.accounts-empty{padding:2rem 0;text-align:center}
.account-popup{--account-surface:var(--soft,#fff);min-width:0}.account-popup *{box-sizing:border-box}.account-popup [hidden]{display:none!important}.account-summary{display:flex;justify-content:space-between;gap:1rem;border-bottom:1px solid var(--line,#ccd5df);padding-bottom:1rem}.account-summary strong{font-size:1.2rem}.account-summary small{display:block;overflow-wrap:anywhere}.account-summary>div{min-width:0}.account-summary .badge{margin-left:.3rem}.account-tabs{display:flex;gap:.35rem;padding:.85rem 0;position:sticky;top:-1px;background:var(--account-surface);z-index:2}.account-tabs button{flex:1;white-space:normal}.account-tabs button[aria-selected=true]{color:var(--green,#2665ad);border-color:var(--green,#2665ad);background:var(--soft,#e9f1fa)}.account-popup [role=tabpanel]{padding-bottom:.8rem;min-width:0}.account-popup .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem}.account-popup label{display:block;min-width:0}.account-popup input,.account-popup select,.account-popup textarea{max-width:100%;width:100%;min-width:0}.account-popup input[type=checkbox]{width:auto}.account-popup textarea{resize:vertical}.account-popup h3{margin:1.1rem 0 .65rem}.account-staff{padding:.25rem 0 1rem;border-top:1px solid var(--line,#ccd5df);margin-top:1rem}.account-role-tools{display:flex;align-items:end;gap:.6rem;min-width:0}.account-role-tools label{flex:1}.account-popup .access-editor{border:0;padding:0;margin-top:1rem}.account-popup .access-toolbar{align-items:end;flex-wrap:wrap}.account-popup .access-toolbar label{flex:1;min-width:170px}.account-popup .access-group summary{gap:.5rem}.account-popup .access-group-count{white-space:normal;min-width:4.8rem;text-align:right}.account-popup .access-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.account-popup .access-choice{min-width:0}.account-popup .access-choice label{display:flex}.account-popup .access-choice span{min-width:0;overflow-wrap:anywhere}.account-popup .access-choice button{white-space:normal}.account-popup .access-dependencies{overflow-wrap:anywhere}.account-popup .notice{overflow-wrap:anywhere}.account-save-impact{font-size:.85rem;margin:1rem 0}.accounts-decision-actions{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.7rem}.accounts-decision{border-color:var(--green,#3775ba)}.account-footer{position:sticky;bottom:-1px;background:var(--account-surface);border-top:1px solid var(--line,#ccd5df);padding:.85rem 0 .15rem;display:flex;justify-content:space-between;gap:.75rem;align-items:center;z-index:3;box-shadow:0 -7px 12px var(--account-surface)}.account-footer>div{display:flex;gap:.5rem}.account-footer span{font-size:.8rem}.account-security-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;margin:1rem 0}.account-security-metrics>div{border:1px solid var(--line,#ccd5df);border-radius:.5rem;padding:.8rem;min-width:0}.account-security-metrics dt{font-size:.8rem}.account-security-metrics dd{margin:.4rem 0 0;font-weight:600;overflow-wrap:anywhere}.account-history,.account-lifecycle{margin-top:1rem;border:1px solid var(--line,#ccd5df);border-radius:.5rem;padding:.8rem}.account-history article{padding:.75rem 0;border-bottom:1px solid var(--line,#ccd5df)}.account-history article:last-child{border:0}.account-history small{display:block;margin-top:.25rem}.account-popup button{min-height:40px}.account-popup input,.account-popup select{min-height:40px}
@media(min-width:1050px){dialog:has(.account-popup){width:min(1020px,94vw)}}
@media(max-width:1050px){.accounts-table th:first-child{width:23%}.accounts-table th:nth-child(2){width:19%}.accounts-table th:nth-child(3){width:19%}.accounts-table th:last-child{width:15%}.accounts-filters{grid-template-columns:minmax(180px,2fr) 1fr 1fr}.accounts-filters>button{justify-self:start}.accounts-table td,.accounts-table th{padding:.65rem .4rem}}
@media(max-width:760px){.accounts-register{padding:.8rem}.accounts-filters{grid-template-columns:1fr 1fr}.accounts-filters>label:first-child{grid-column:1/-1}.accounts-status{display:grid;grid-template-columns:1fr 1fr}.accounts-status button{width:100%}.accounts-table,.accounts-table tbody,.accounts-table tr,.accounts-table td{display:block;width:100%}.accounts-table thead{display:none}.accounts-table tr{border:1px solid var(--line,#ccd5df);border-radius:.5rem;margin:.7rem 0;padding:.65rem}.accounts-table td{border:0;padding:.35rem .2rem;display:grid;grid-template-columns:minmax(90px,.75fr) minmax(0,1.5fr);gap:.45rem}.accounts-table td:before{content:attr(data-label);font-size:.8rem;opacity:.75}.accounts-table td:first-child{display:block}.accounts-table td:first-child:before{display:none}.accounts-table td:last-child{display:flex;justify-content:flex-end;align-items:center}.accounts-table td:last-child:before{display:none}.accounts-table td:last-child button{display:inline-block;margin:0}.account-popup .access-actions{grid-template-columns:1fr}.account-security-metrics{grid-template-columns:1fr}.account-popup button,.accounts-register button,.account-popup input,.account-popup select,.accounts-register input,.accounts-register select{min-height:44px}.account-tabs{position:static}.account-popup .account-footer{padding-bottom:.5rem}}
@media(max-width:480px){.account-popup .form-grid{grid-template-columns:1fr}.account-summary{flex-direction:column}.account-tabs{display:grid;grid-template-columns:1fr}.account-tabs button{text-align:left}.account-role-tools{flex-direction:column;align-items:stretch}.account-popup .access-toolbar{display:block}.account-popup .access-toolbar>div{display:flex;flex-wrap:wrap}.account-popup .access-group summary{align-items:start}.account-popup .access-choice{display:flex;flex-direction:column;align-items:start}.account-popup .access-choice label{width:100%}.account-popup .access-group-body{padding:.5rem}.account-footer{flex-wrap:wrap}.account-footer>div{width:100%;justify-content:flex-end}.account-footer>div button{flex:1}.accounts-filters{grid-template-columns:1fr}.accounts-filters>label:first-child{grid-column:auto}.accounts-decision-actions>button{flex:1 1 120px}}

/* Register controls live outside a form; keep the native theme and wrap long identities. */
.accounts-filters input,.accounts-filters select{border:1px solid var(--line);border-radius:8px;padding:.65rem .75rem;min-height:40px;background:var(--soft);color:var(--ink)}
.accounts-table td,.accounts-table th{white-space:normal;overflow-wrap:anywhere}
@media(max-width:760px){.accounts-filters input,.accounts-filters select{min-height:44px}}
