/* AXIOM RC18: consistent responsive editorial cards and non-white controls in dark mode */
body.ae-portal #app .adm > .axiom-admin-card,
body.ae-portal #app .adm > .axiom-stats-entry,
body.ae-portal #app .adm > section:has(>a[href="/bot-admin.html"]){display:none!important}
/* Preserve direct access via common navigation; avoid duplicate giant promotional cards. */
#ae-rail .ae-monogram{background:#101217!important;color:#fff!important;border:1px solid #343944;border-radius:11px;box-shadow:0 5px 20px #00000018;line-height:0}
#ae-rail .ae-brand{gap:12px}#ae-rail .ae-brand b{letter-spacing:.065em}#ae-rail .ae-brand small{letter-spacing:.12em}
html[data-axiom-theme="dark"] body.ae-portal{
 --ae-bg:#101115;--ae-paper:#1b1d23;--ae-input:#22242a;--ae-soft:#262830;--ae-border:#383b44;--ae-ink:#f1f2f4;--ae-muted:#a3a7b0;
 --bg:#101115;--paper:#1b1d23;--border:#383b44;--ink:#f1f2f4;--mute:#a3a7b0;--muted:#a3a7b0;
}
html[data-axiom-theme="dark"] body.ae-portal :is(.seg,.tabs,.refresh,.secondary,.editor-nav button,.source,.auto-countdown,.auto-settings,.auto-foot,.auto-hero,.auto-field,.length-configuration,.length-option,.cycle-result,.note,.length-current,.source .badge,.tab:not(.active),.modal,.editor-helper,.topnote,.badge,.formrow,.zones button,.entry,.editorhead button,.cat,.filters,.filter-bar,.period-tabs){background:var(--ae-paper)!important;color:var(--ae-ink)!important;border-color:var(--ae-border)!important;box-shadow:none}
html[data-axiom-theme="dark"] body.ae-portal :is(.seg,.tabs,.formrow,.auto-field,.editor-helper,.auto-foot,.auto-settings){background:var(--ae-soft)!important}
html[data-axiom-theme="dark"] body.ae-portal :is(.seg button,.seg button.on,.refresh,.tab,.auto-save button:not(.primary),.length-option,.zones button,.secondary,.editor-nav button,.source button,.modal button:not(.primary)){background:var(--ae-paper)!important;color:var(--ae-ink)!important;border:1px solid var(--ae-border)!important}
html[data-axiom-theme="dark"] body.ae-portal :is(.seg button.on,.length-option.selected,.zones button.selected){background:var(--ae-accent-soft)!important;color:#ff6574!important;border-color:#a64750!important}
html[data-axiom-theme="dark"] body.ae-portal :is(.countdown-description span,.auto-description p,.auto-field small,.length-heading p,.auto-foot,.cycle-result small,.panel small,.sub,.muted,.meta,.topnote,.source small){color:var(--ae-muted)!important}
html[data-axiom-theme="dark"] body.ae-portal :is(.auto-countdown,.auto-hero,.auto-foot,.length-configuration){border-color:var(--ae-border)!important}
html[data-axiom-theme="dark"] body.ae-portal :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:var(--ae-input)!important;color:var(--ae-ink)!important;border-color:var(--ae-border)!important}
html[data-axiom-theme="dark"] body.ae-portal :is(.panel,.stat,.tile,.kpi,.source){background:var(--ae-paper)!important;color:var(--ae-ink)!important}
html[data-axiom-theme="dark"] body.ae-portal :is(.auto-description h2,.length-heading h3,.cycle-result strong,.cycle-result span,.source b,.label,.fields label,.headline){color:var(--ae-ink)!important}
html[data-axiom-theme="dark"] body.ae-portal #chart .gridline{stroke:#343840}
html[data-axiom-theme="dark"] body.ae-portal #chart text{fill:#a3a7b0}
html[data-axiom-theme="dark"] body.ae-portal .topitem{border-color:var(--ae-border)!important}
html[data-axiom-theme="dark"] body.ae-portal .number{color:var(--ae-ink)!important}
/* New RSS source actions and dialogs */
.ae-source-controls{display:flex;flex-wrap:wrap;gap:7px;justify-content:flex-end;align-items:center}
.ae-source-controls button{white-space:nowrap}
.ae-source-controls .ae-source-danger{color:#e44856!important;border-color:rgba(196,16,28,.35)!important}
.ae-source-modalbg{position:fixed;inset:0;z-index:1100;display:grid;place-items:center;padding:16px;background:#07080dbb}
.ae-source-modal{background:var(--ae-paper,#fff);border:1px solid var(--ae-border,#ddd);border-radius:18px;padding:25px;width:min(100%,480px);color:var(--ae-ink,#161820);box-shadow:0 26px 80px #0006;display:grid;gap:14px}
.ae-source-modal h2,.ae-source-modal p{margin:0}.ae-source-modal p{color:var(--ae-muted,#6b6b75);font-size:13px;line-height:1.55}
.ae-source-modal label{display:grid;gap:6px;font-weight:650;font-size:12px}
.ae-source-modal input{width:100%;padding:12px;border:1px solid var(--ae-border,#ddd);border-radius:10px;background:var(--ae-input,#fff);color:var(--ae-ink,#161820);font:inherit}
.ae-source-modal .ae-actions{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.ae-source-modal button{padding:10px 15px;border-radius:10px;border:1px solid var(--ae-border,#ddd);background:var(--ae-soft,#f3f3f6);color:var(--ae-ink,#161820);font:inherit;font-weight:750;cursor:pointer}
.ae-source-modal button.ae-confirm{background:#c4101c;border-color:#c4101c;color:#fff}
.ae-source-modal button:disabled{opacity:.6;cursor:wait}
/* Users admin page */
.ae-users-main{width:min(1320px,100%);margin:0 auto;padding:25px 27px 80px}
.ae-users-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;flex-wrap:wrap;margin-bottom:22px}
.ae-users-heading h1{margin:5px 0 7px;font-size:29px;letter-spacing:-.03em}.ae-users-heading p{color:var(--ae-muted);margin:0;font-size:13px}
.ae-user-panel{background:var(--ae-paper);border:1px solid var(--ae-border);border-radius:15px;padding:22px;margin-bottom:14px}
.ae-user-filters{display:flex;gap:10px;flex-wrap:wrap}.ae-user-filters input{flex:1;min-width:200px;min-height:43px;border:1px solid var(--ae-border);background:var(--ae-input);color:var(--ae-ink);border-radius:10px;padding:10px 13px;font:inherit}
.ae-user-panel button,.ae-users-heading button{min-height:37px;padding:9px 13px;border:1px solid var(--ae-border);background:var(--ae-paper);color:var(--ae-ink);border-radius:10px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.ae-user-panel button.ae-primary{background:#c4101c;border-color:#c4101c;color:#fff}
.ae-user-items{display:grid;gap:10px;margin-top:18px}
.ae-user-row{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid var(--ae-border);border-radius:12px;padding:16px;flex-wrap:wrap}
.ae-user-identity{display:flex;align-items:center;gap:12px;min-width:0}.ae-user-avatar{width:42px;height:42px;flex:none;display:grid;place-items:center;background:var(--ae-soft);border-radius:12px;color:var(--ae-red);font-size:18px;font-weight:800}.ae-user-detail{min-width:0;display:grid;gap:5px}.ae-user-detail strong{font-size:14px}.ae-user-detail small{color:var(--ae-muted);font-size:12px;overflow-wrap:anywhere}.ae-user-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.ae-user-actions button{min-height:34px;padding:7px 10px}.ae-user-status{font-size:11px;padding:5px 7px;background:var(--ae-soft);border-radius:7px;color:var(--ae-muted);font-weight:700}
.ae-user-status.ae-active{color:#20a46c}.ae-user-error{color:#d83d50;font-size:13px}.ae-user-toast{position:fixed;right:20px;bottom:20px;z-index:1000;background:#1c1e25;color:#fff;border:1px solid #454955;border-radius:12px;padding:13px 17px;box-shadow:0 15px 40px #0003}
@media(max-width:640px){.ae-users-main{padding:17px 14px 70px}.ae-user-row{align-items:flex-start}.ae-user-actions{width:100%}.ae-user-panel{padding:15px}.source{align-items:flex-start;flex-wrap:wrap}.ae-source-controls{justify-content:flex-start}}
/* Body reset for the standalone admin users page (no legacy stylesheet). */
body.ae-portal{margin:0}
.ae-source-modal .ae-fields[hidden]{display:none!important}
