/* Administrator account controls; keep content-history and login styles independent. */
.account-panel{--account-soft:#f3f6fb;--account-border:var(--line,#dce4ef);--account-active-bg:#e6f4eb;--account-active-ink:#16643b;--account-inactive-bg:#f1f2f5;--account-inactive-ink:#596378;--account-danger-bg:#fff1ed;--account-danger-ink:#963e29}
.account-panel .account-create{padding-block-end:24px;border-block-end:1px solid var(--account-border)}
.account-panel .account-filters{display:grid;grid-template-columns:minmax(180px,1fr) minmax(120px,180px) auto;align-items:end;gap:14px;margin-block:24px 12px}
.account-panel .account-filters label,.account-panel .account-inline-form label{display:grid;gap:8px;font-size:13px;min-width:0}
.account-panel input,.account-panel select{box-sizing:border-box;max-width:100%;min-height:44px;font:inherit}
.account-panel .account-filters input,.account-panel .account-filters select,.account-panel .account-inline-form input{width:100%;margin:0;border:1px solid var(--account-border);border-radius:8px;padding:11px 12px;background:var(--account-soft);color:var(--ink)}
.account-panel button{min-height:44px;padding:10px 16px;border-radius:8px;font:inherit;line-height:1.5;overflow-wrap:anywhere}
.account-panel .account-filters button,.account-panel .account-actions button,.account-panel .account-form-actions button:not(.primary){background:var(--account-soft);color:var(--ink);border:1px solid var(--account-border)}
.account-panel button:focus-visible,.account-panel input:focus-visible,.account-panel select:focus-visible{outline:3px solid var(--gold,#e4c331);outline-offset:3px}
.account-panel .account-row{border:1px solid var(--account-border);border-radius:12px;padding:18px;margin-block:14px;min-width:0}
.account-panel .account-summary{display:flex;justify-content:space-between;align-items:start;gap:16px}
.account-panel .account-summary>div{min-width:0}
.account-panel .account-summary h3{margin:0;font-size:17px;line-height:1.6;overflow-wrap:anywhere}
.account-panel .account-username{margin-block:3px 0;font-size:13px;overflow-wrap:anywhere}
.account-panel .account-status{flex-shrink:0;font-size:12px;line-height:1.6;padding:5px 10px;border-radius:20px;background:var(--account-inactive-bg);color:var(--account-inactive-ink)}
.account-panel .account-status.is-active{background:var(--account-active-bg);color:var(--account-active-ink)}
.account-panel .account-actions,.account-panel .account-form-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-block-start:16px}
.account-panel .account-actions .danger{background:var(--account-danger-bg);border-color:transparent;color:var(--account-danger-ink)}
.account-panel .account-hint{font-size:12px;line-height:1.9;margin-block:12px 0}
.account-panel .account-inline-form{display:block;margin-block-start:16px;padding:16px;background:var(--account-soft);border:1px solid var(--account-border);border-radius:10px}
.account-panel .account-inline-form label{max-width:520px}
.account-panel .account-inline-form input{background:var(--paper,#fff)}
.account-panel .error:empty{display:none}
.account-panel .account-row-error{margin-block:12px 0;overflow-wrap:anywhere}
.account-panel .account-empty{padding:24px;text-align:center;border:1px dashed var(--account-border);border-radius:10px}
:root[data-theme="dark"] .account-panel{--account-soft:var(--dark-control,#162841);--account-border:var(--line,#34445a);--account-active-bg:#183b30;--account-active-ink:#a8e0bc;--account-inactive-bg:#26354a;--account-inactive-ink:#c2ccdb;--account-danger-bg:#492b2b;--account-danger-ink:#ffb8aa}
:root[data-theme="dark"] .account-panel .account-inline-form input{background:var(--dark-paper,#15243a);color:var(--ink,#e5edf8)}
:root[data-theme="dark"] .account-panel .error{color:#ffb8aa}
@media(max-width:900px){.account-panel .account-filters{grid-template-columns:minmax(0,1fr) minmax(110px,160px)}.account-panel .account-filters>button{grid-column:1/-1;justify-self:start}}
@media(max-width:600px){.account-panel .account-filters{grid-template-columns:minmax(0,1fr)}.account-panel .account-filters>button{justify-self:stretch}.account-panel .account-row{padding:14px}.account-panel .account-summary{flex-wrap:wrap;gap:8px}.account-panel .account-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.account-panel .account-actions button{width:100%;padding-inline:8px;font-size:13px}.account-panel .account-inline-form{padding:12px}.account-panel .account-form-actions>button{flex:1}.account-panel .account-empty{padding:18px}}
