.account-search{display:flex;align-items:center;gap:8px}
.account-search-tools{display:flex;align-items:center;flex:none;gap:0}
.account-search-box{position:relative;flex:1 1 0;max-width:320px;min-width:0}
.account-search-box input{width:100%;height:40px;min-height:40px;margin:0;padding:0 40px 0 12px}
.account-search .btn{height:40px;min-height:40px;padding:0 12px;white-space:nowrap}
.account-search .account-search-icon{
  display:grid;place-items:center;width:40px;padding:0;flex:none;
  background:transparent;border-color:transparent;color:#475569;
}
.account-search-tools .account-search-icon{width:36px;margin:0}
.account-search .account-search-icon[data-filter-active="true"]{color:#2563eb}
.account-search .account-search-icon:focus-visible{outline:2px solid #24538a;outline-offset:2px}
.account-search-box .account-search-icon{position:absolute;top:0;right:0}
.account-search-tools .account-search-icon:hover{background:var(--bg)}
.account-search-box .account-search-icon:hover{color:#1e293b}
.account-search .account-search-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.account-search-box .account-search-icon svg{width:18px;height:18px}
.account-filter-control{position:relative}
.account-filter-popover{
  position:absolute;z-index:5;top:calc(100% + 6px);right:0;
  width:220px;max-width:calc(100vw - 72px);padding:12px;border:1px solid var(--line);border-radius:8px;
  background:#fff;box-shadow:0 6px 18px #12274522;
}
.account-filter-popover fieldset{display:flex;flex-wrap:wrap;gap:6px;min-width:0;margin:0;padding:0;border:0}
.account-filter-popover fieldset+fieldset{margin-top:12px}
.account-filter-popover legend{margin-bottom:6px;padding:0;color:var(--muted);font-size:13px}
.account-filter-popover label{position:relative}
.account-filter-popover input{position:absolute;opacity:0;width:1px;height:1px;min-height:0;margin:0}
.account-filter-popover label span{display:grid;place-items:center;height:30px;padding-inline:7px;border:1px solid var(--line);border-radius:6px;font-size:13px;cursor:pointer}
.account-filter-popover input:checked+span{background:#e8f1fc;border-color:#9bbbea}
.account-filter-popover input:focus-visible+span{outline:2px solid #24538a;outline-offset:1px}
.account-filter-actions{display:flex;justify-content:end;gap:6px;margin-top:12px}
.account-filter-actions .btn{height:32px;min-height:32px;padding-inline:10px}
.account-count{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.account-status-tag{display:inline-flex;align-items:center;gap:2px;padding-inline:8px 2px;border-radius:999px;background:#e8f1fc;color:var(--ink)}
.account-status-tag .btn{width:24px;min-height:24px;padding:0;border:0;background:transparent}
.account-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.account-heading>.btn{flex:none}
.account-row-actions .btn,.account-admin-dialog .btn{min-height:44px}
.account-feedback:empty{display:none}.account-feedback p{line-height:1.65;margin:12px 0}.account-success{background:#e9f5ef;color:#226b50;border-radius:8px;padding:12px 16px}
.account-count{color:var(--muted);font-size:.85rem;margin:12px 0}.account-loading{padding:28px 0;color:var(--muted)}
.account-row{display:grid;grid-template-columns:minmax(160px,1fr) minmax(200px,1.25fr) 220px;gap:16px;align-items:center;padding:18px 0;border-top:1px solid var(--line)}
.account-person{min-width:0;overflow-wrap:anywhere}.account-person h2{font-size:1rem}.account-person p{font-size:.85rem;color:var(--muted);margin-top:6px}.account-person p strong{font-weight:500;color:var(--ink)}
.account-badges{display:grid;grid-template-columns:56px 64px minmax(0,1fr);gap:8px;align-items:center;justify-items:start}.account-badges>.badge{max-width:100%;white-space:normal;text-align:left}.account-row-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:end}.account-protected{font-size:.85rem;color:var(--muted);padding:10px 0}
.account-pagination{display:flex;align-items:center;justify-content:center;gap:18px;border-top:1px solid var(--line);padding-top:20px;margin-top:8px}.account-pagination span{font-size:.85rem;color:var(--muted)}
.account-admin-dialog{width:560px}.account-admin-dialog .dialog-body>p{line-height:1.7;margin-bottom:16px}.account-dialog-target{overflow-wrap:anywhere}.account-dialog-target span{color:var(--muted)}
.account-admin-dialog label{display:block;font-size:.85rem;margin:18px 0 12px}.account-admin-dialog .hint{line-height:1.6}.account-admin-dialog .dialog-actions{flex-wrap:wrap}
@media(max-width:1100px){.account-row{grid-template-columns:1fr 1fr}.account-row-actions{grid-column:1/-1;justify-content:start}.account-protected{padding:0}}
@media(max-width:600px){.account-search-box{max-width:none}.account-row{grid-template-columns:1fr;gap:12px}.account-row-actions{grid-column:auto}.account-row-actions .btn{flex:1}.account-pagination{gap:12px}}

.account-create-dialog{
  width:440px;
  max-width:calc(100% - 32px);
  max-height:calc(100dvh - 32px);
  border-radius:16px;
  overflow:hidden;
}
.account-create-dialog[open]{display:flex;flex-direction:column}
.account-create-dialog :is(.dialog-head,.dialog-actions){flex:none;padding:16px 24px}
.account-create-dialog .dialog-head{padding-block:13px}
.account-create-dialog .dialog-head h2{margin:0;font-size:20px;font-weight:600;line-height:28px}
.account-create-dialog .dialog-head .btn{
  display:grid;place-items:center;
  width:40px;height:40px;min-height:40px;padding:0;
  font-size:18px;line-height:1;
}
.account-create-dialog #account-create{min-height:0;overflow:auto;padding:24px}
.account-create-dialog #account-create > label{
  display:grid;gap:8px;margin:0;
  font-size:14px;font-weight:500;line-height:20px;color:var(--muted);
}
.account-create-dialog #account-create > label{margin-top:16px}
.account-create-dialog #account-create > label input{
  width:100%;height:40px;min-height:40px;margin:0;padding-block:0;
}
.account-create-dialog #account-create .hint{margin:12px 0 0;color:var(--muted);font-size:13px}
.account-create-dialog #account-create .form-error{margin:12px 0 0;overflow-wrap:anywhere}
.account-create-dialog .dialog-actions{gap:8px;margin:0;border-top:1px solid var(--line)}
.account-create-dialog .dialog-actions .btn{
  width:80px;height:36px;min-height:36px;padding:0;
}
.account-create-dialog .dialog-actions .btn:not(.primary){background:#fff;border:1px solid var(--line)}

.account-create-dialog .account-role-field{min-width:0;margin:0;padding:0;border:0}
.account-create-dialog .account-role-field legend{
  margin:0 0 8px;padding:0;font-size:14px;font-weight:500;line-height:20px;color:var(--muted);
}
.account-role-options{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;
  padding:3px;border-radius:8px;background:#f1f5f9;
}
.account-create-dialog .account-role-options label{position:relative;margin:0}
.account-role-options input{position:absolute;opacity:0;width:1px;height:1px;min-height:0;margin:0;padding:0}
.account-role-options span{
  display:grid;place-items:center;height:34px;border-radius:6px;
  background:transparent;color:#334155;font-size:14px;font-weight:500;cursor:pointer;
}
.account-role-options input:checked+span{background:#dbeafe;color:#1e3a8a}
.account-role-options input:focus-visible+span{outline:2px solid #24538a;outline-offset:2px}
.account-role-options input:disabled+span{cursor:default}
