#admin-view{padding:8px 0 24px;color:#172e3b}.accounts-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 20px}.accounts-heading h2{font-size:27px}.accounts-heading p{font-size:14px;margin-top:4px}.accounts-heading>button[data-account-close]{font-size:28px;line-height:1;padding:0 4px}.accounts-overview{display:flex;flex-wrap:wrap;gap:20px;margin:0 0 22px;padding:15px 18px;background:white;border:1px solid #d4e1e9;border-radius:6px}.accounts-overview span{font-size:14px;color:#627886}.accounts-overview strong{font-size:23px;color:#173c53;margin-right:5px}.accounts-tools{display:flex;align-items:end;gap:14px;margin-bottom:14px}.accounts-tools label{font-size:13px}.accounts-tools label:first-child{flex:1;max-width:540px}.accounts-tools select{min-width:200px}.accounts-tools input,.accounts-tools select{height:37px;font-size:14px}.accounts-tools .secondary{height:37px;min-height:37px}.accounts-table-wrap{overflow:auto;background:white;border:1px solid #ccdce7;border-radius:6px}.accounts-table{border-collapse:collapse;width:100%;font-size:14px;min-width:1080px}.accounts-table th{text-align:left;background:#e9f2f8;color:#526f82;font-size:12px;padding:10px 12px;border-bottom:1px solid #ccdde8;font-weight:500;white-space:nowrap}.accounts-table td{padding:13px 12px;border-bottom:1px solid #e4ebf0;vertical-align:middle}.accounts-table tr:last-child td{border-bottom:0}.accounts-table tr:hover td{background:#f7fafc}.accounts-table strong{display:block;font-size:15px}.accounts-table small{display:block;font-size:12px;color:#6c8290;margin-top:3px}.accounts-table button{font-size:13px;min-height:30px;padding:4px 10px}.account-state,.account-review{display:inline-block;padding:3px 8px;border-radius:4px;font-size:12px;white-space:nowrap}.account-state.active,.account-review.verified{background:#e4f4ed;color:#167653}.account-state.inactive,.account-review.difference{background:#fff0e5;color:#ab5730}.account-review.unchecked{background:#eff3f6;color:#637985}.account-credential [data-credential-value]{display:block;max-width:210px;font-family:Consolas,monospace;overflow-wrap:anywhere;font-size:12px}.account-credential button{color:#087db1;padding-left:0}.accounts-message{color:#207555;font-size:14px;white-space:pre-wrap;margin:8px 0}.accounts-message:empty{display:none}.accounts-registrations{margin-top:24px;background:white;border:1px solid #d4e1e9;border-radius:6px;padding:15px 18px}.accounts-registrations summary{cursor:pointer;font-size:17px;font-weight:700}.accounts-registrations summary span{background:#eaf2f7;border-radius:4px;padding:2px 7px;font-size:13px;margin-left:7px}.accounts-registrations article{display:flex;gap:12px;align-items:center;border-top:1px solid #e3ebf0;margin-top:14px;padding-top:14px}.accounts-registrations article>div{flex:1}.accounts-registrations p{font-size:14px;margin:7px 0}.account-editor{width:min(900px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #cbd9e3;border-radius:8px;padding:25px;color:#17384b}.account-editor::backdrop{background:#17384b70}.account-field-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 14px}.account-editor label{font-size:14px;margin-bottom:0}.account-editor input,.account-editor select,.account-editor textarea{font-size:14px;height:36px;padding:6px 8px}.account-editor textarea{height:auto;min-height:75px}.account-editor fieldset{border:1px solid #d2e1e9;padding:14px;margin:20px 0;border-radius:6px}.account-editor legend{font-size:16px;font-weight:700;padding:0 6px}.account-state-controls,.account-password-tools{display:flex;flex-wrap:wrap;gap:18px;align-items:center}.account-state-controls label,.account-password-tools label{display:flex;gap:8px;align-items:center}.account-state-controls input,.account-password-tools input{width:15px;height:15px;margin:0;accent-color:#087db1}.account-password-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:15px 0 10px}.account-password-tools button{font-size:13px;min-height:31px;padding:4px 10px}.account-password-help{font-size:13px;margin-top:9px;line-height:1.4}.account-note{grid-column:span 2}.account-comparison{margin-top:20px}.account-comparison summary{cursor:pointer;font-size:15px;font-weight:700}.account-comparison>div{overflow:auto;margin-top:10px}.account-comparison table{width:100%;border-collapse:collapse;font-size:13px}.account-comparison th,.account-comparison td{text-align:left;padding:7px;border-bottom:1px solid #dde7ee;overflow-wrap:anywhere}.account-comparison thead th{background:#eaf3f9}.account-comparison .different{background:#fff6de}.account-comparison p{font-size:14px}.account-error{font-size:14px;color:#a03245;margin-top:15px}.account-save-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:18px}@media(max-width:700px){.account-field-grid{grid-template-columns:1fr 1fr}.accounts-tools{flex-wrap:wrap}.accounts-tools label:first-child{min-width:100%}.account-note{grid-column:1/-1}.account-editor{padding:16px}.accounts-heading{align-items:start}.accounts-heading h2{font-size:24px}.accounts-heading .primary{font-size:13px;padding:7px 10px}.accounts-overview{gap:12px}}@media(max-width:440px){.account-field-grid,.account-password-grid{grid-template-columns:1fr}.accounts-overview span{width:calc(50% - 8px)}}

.accounts-message.error{color:#a03245}

.account-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;white-space:nowrap}.account-row-actions button{font-size:13px;padding:5px 9px}

.account-editor>.accounts-heading,.account-editor form>.accounts-heading{position:sticky;top:-25px;background:white;z-index:2;padding:8px 0;margin-top:-8px;border-bottom:1px solid #e0e8ef}
.accounts-heading>button[data-account-close],.agency-logo-dialog [data-logo-close]{display:grid;place-items:center;flex:none;width:34px;height:34px;padding:0;background:#edf3f7;color:#143b55;border:1px solid #b8cbd9;border-radius:5px;font-size:28px;line-height:1;opacity:1}
.inline-logo-panel>.accounts-heading{display:none}.inline-logo-panel>p{font-size:13px}.inline-logo-panel .agency-logo-preview{height:100px;margin:12px 0}.inline-logo-panel .agency-logo-preview img{max-height:80px;max-width:230px}.inline-logo-panel label{font-size:13px}.inline-logo-panel input[type=file]{height:auto;padding:8px}.inline-logo-panel small{font-size:12px;color:#607986}.inline-logo-panel [data-logo-error]{font-size:13px;margin-top:8px}.inline-logo-panel .actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}.inline-logo-panel .actions button{font-size:13px;padding:6px 12px}
@media(max-width:700px){.account-editor form>.accounts-heading{top:-16px}}

/* Compact account editor, with access and branding alongside each other. */
.account-editor .accounts-heading>button[data-account-close]{display:grid;place-items:center;width:34px;height:34px;min-width:34px;min-height:34px;padding:0;font-size:0;line-height:0}.account-editor [data-account-close] svg{display:block;width:16px;height:16px;margin:0}
@media(min-width:760px){
 .account-editor{width:min(1080px,calc(100vw - 32px));padding:16px 18px;max-height:calc(100dvh - 24px)}
 .account-editor form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;align-items:start}
 .account-editor form>.accounts-heading{grid-column:1/-1;position:static;padding:0 0 9px;margin:0;align-items:center}
 .account-editor .accounts-heading h2{font-size:24px;line-height:1.2}
 .account-editor form>.account-field-grid{grid-column:1/-1;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px 12px}
 .account-editor label{font-size:12px;line-height:1.3}
 .account-editor input,.account-editor select,.account-editor textarea{font-size:13px;height:30px;min-height:0;padding:4px 7px;margin-top:3px}
 .account-editor form>fieldset{min-width:0;margin:0;padding:9px 11px 10px;align-self:stretch}
 .account-editor legend{font-size:14px;line-height:1.3}
 .account-editor .account-state-controls{gap:12px}
 .account-editor .account-state-controls input,.account-editor .account-password-tools input{width:14px;height:14px;margin:0}
 .account-editor .account-password-grid{gap:10px;margin:9px 0 8px}
 .account-editor .account-password-tools{gap:12px}
 .account-editor .account-password-tools button{min-height:28px;padding:4px 8px;font-size:12px}
 .account-editor .account-password-help{font-size:11px;line-height:1.4;margin-top:7px}
 .account-editor .inline-logo-panel{display:grid;grid-template-columns:76px minmax(0,1fr);column-gap:10px;row-gap:5px}
 .account-editor .inline-logo-panel>p:first-of-type{grid-column:1/-1;font-size:11px;line-height:1.4}
 .account-editor .inline-logo-panel .agency-logo-preview{grid-column:1;grid-row:2/5;width:76px;height:76px;margin:0;min-width:0;border-radius:4px}
 .account-editor .inline-logo-panel .agency-logo-preview img{max-width:66px;max-height:66px}
 .account-editor .inline-logo-panel .agency-logo-preview span{font-size:11px;text-align:center;line-height:1.3;padding:4px}
 .account-editor .inline-logo-panel>label,.account-editor .inline-logo-panel>small,.account-editor .inline-logo-panel>.actions{grid-column:2;min-width:0}
 .account-editor .inline-logo-panel label{font-size:12px}
 .account-editor .inline-logo-panel input[type=file]{font-size:11px;height:auto;max-width:100%;padding:5px}
 .account-editor .inline-logo-panel>small{font-size:10px;line-height:1.3}
 .account-editor .inline-logo-panel .actions{gap:7px;margin:2px 0 0}
 .account-editor .inline-logo-panel .actions button{font-size:12px;min-height:28px;padding:4px 8px}
 .account-editor .inline-logo-panel [data-logo-error]{grid-column:1/-1;font-size:11px;margin:0}
 .account-editor .inline-logo-panel [data-logo-error]:empty{display:none}
 .account-editor .account-note{grid-column:1/-1}
 .account-editor .account-note textarea{min-height:42px;height:42px;resize:vertical}
 .account-editor form>.account-error{grid-column:1/-1;font-size:12px;margin:0}
 .account-editor form>.account-error:empty{display:none}
 .account-editor .account-save-actions{grid-column:1/-1;margin:0;padding-top:9px;border-top:1px solid #e0e8ef;gap:9px}
 .account-editor .account-save-actions button{font-size:13px;min-height:33px;padding:5px 13px}
}

/* Account totals belong to the filter toolbar, following Refresh. */
.accounts-tools{flex-wrap:wrap;gap:12px;align-items:end}
.accounts-tools label{margin:0;min-width:0}
.accounts-tools label:first-child{flex:1 1 260px}
.accounts-tools select:is([data-account-filter],[data-handler-filter]){width:235px;min-width:235px;height:38px;min-height:38px;padding:6px 32px 6px 10px;line-height:normal;font-size:14px;box-sizing:border-box}
.accounts-tools>.accounts-overview{display:flex;align-items:center;flex:0 0 auto;gap:13px;margin:0 0 0 auto;padding:0 0 8px;border:0;border-radius:0;background:transparent}
.accounts-tools>.accounts-overview span{font-size:12px;white-space:nowrap;width:auto}
.accounts-tools>.accounts-overview strong{font-size:17px;margin-right:4px}
@media(max-width:700px){.accounts-tools label:first-child{flex-basis:100%;max-width:none}.accounts-tools label:has([data-account-filter],[data-handler-filter]){flex:1}.accounts-tools select:is([data-account-filter],[data-handler-filter]){width:100%;min-width:0}.accounts-tools>.accounts-overview{flex:1 1 100%;margin:0;padding:2px 0;justify-content:flex-start}}

.accounts-tools select[hidden]{display:none!important}.accounts-tools label:has([data-account-filter]),.accounts-tools label:has([data-handler-filter]){width:235px;flex:0 0 235px}.accounts-tools .search-picker{margin-top:5px}.accounts-tools .search-picker summary{height:38px;font-size:14px;padding:6px 30px 6px 10px;line-height:1.4}.accounts-tools .search-picker-options{line-height:1.4}
@media(max-width:700px){.accounts-tools label:has([data-account-filter]),.accounts-tools label:has([data-handler-filter]){width:auto;flex:1 1 200px}}

.account-member-row{background:#f6faff}.account-member-row td:first-child{padding-left:30px;border-left:3px solid #b9d9ed}.account-member-row td:first-child strong:before{content:"↳ ";color:#0085bc}.account-editor [hidden]{display:none!important}

/* Stable columns and password slot prevent layout changes during reveal. */
.agency-access-table{table-layout:fixed}.agency-access-table td{overflow-wrap:anywhere}.agency-access-table .account-credential{vertical-align:top}.agency-access-table [data-credential-value]{width:100%;max-width:none;height:20px;line-height:20px;overflow-x:auto;overflow-y:hidden;white-space:nowrap;overflow-wrap:normal}.agency-access-table .account-credential>small{height:20px;line-height:20px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.agency-access-table .account-credential button{display:block;height:30px;white-space:nowrap}.agency-access-table .account-credential [data-reveal-account]{width:80px;text-align:left}.agency-access-table .account-row-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}.account-expand{display:block;text-align:left;border:0;background:transparent;color:inherit;font-weight:700;width:100%;padding:0!important}.account-expand small{font-weight:400}.account-expand>span{display:inline-block;width:12px;color:#087db1}.account-editor.member-editor{width:min(760px,calc(100vw - 24px))}.account-editor.member-editor form>.account-field-grid:first-of-type{grid-template-columns:repeat(3,minmax(0,1fr))}.account-editor.member-editor form>fieldset{grid-column:1/-1}.account-editor.member-editor .account-logo-section{display:none}.account-editor.member-editor .account-field-grid:last-of-type{grid-template-columns:1fr}@media(max-width:600px){.account-editor.member-editor form>.account-field-grid:first-of-type{grid-template-columns:1fr}}

/* Compact agency access rows; password actions share one stable line. */
.agency-access-table td{padding:8px 12px}.agency-access-table .account-credential{vertical-align:middle}.agency-access-table .account-password-value{height:18px;min-width:0}.agency-access-table .account-password-value [data-credential-value]{height:18px;line-height:18px}.agency-access-table .account-password-value small{margin:0;height:18px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.agency-access-table .account-password-actions{display:flex;align-items:center;gap:8px;height:24px;white-space:nowrap}.agency-access-table .account-password-actions button{display:inline-block;width:auto;height:24px;min-height:24px;line-height:20px;padding:1px 0;font-size:12px;text-align:left}.agency-access-table .account-password-actions [data-reveal-account]{width:46px;flex:0 0 46px}.agency-access-table .account-password-actions button+button:before{content:"·";color:#91a8b5;margin-right:8px}.agency-access-table .account-row-actions button{min-height:28px;padding:3px 8px}.agency-access-table .account-expand{min-height:22px;line-height:22px}.agency-access-table small{margin-top:2px}
