/* REDEN administrator console (Phase 1). Self-contained: the admin origin serves nothing outside /admin/. */
:root { color-scheme: dark; --bg: #0d1014; --panel: #151a21; --line: #273040; --text: #e7ecf3; --muted: #93a0b4; --accent: #b8f36a; --danger: #ff6b6b; --ok: #5fd38d; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.admin-main { max-width: 1100px; margin: 0 auto; padding: 24px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.admin-header strong { display: block; font-size: 1.25rem; }
.header-label { font-size: .75rem; letter-spacing: .12em; color: var(--muted); }
section { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin: 16px 0; }
h2 { margin: 0 0 12px; font-size: 1.1rem; }
.muted { color: var(--muted); }
form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
label { display: flex; flex-direction: column; gap: 4px; min-width: 220px; font-size: .9rem; color: var(--muted); }
input { background: #0b0e12; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; font: inherit; min-width: 220px; }
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button { background: var(--accent); color: #10140c; border: 0; border-radius: 8px; padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer; }
button.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
button:disabled { opacity: .55; cursor: default; }
details summary { cursor: pointer; margin-top: 14px; color: var(--muted); }
code { word-break: break-all; background: #0b0e12; padding: 2px 6px; border-radius: 6px; }
#totpSecret { font-size: 1.05rem; display: inline-block; margin: 6px 0; }
#message { min-height: 1.5em; }
.toolbar { display: flex; align-items: center; gap: 12px; }
.toolbar h2 { margin: 0 auto 0 0; }
.account-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.account-row:last-child { border-bottom: 0; }
.badge-disabled { color: var(--danger); font-weight: 600; }
.badge-active { color: var(--ok); font-weight: 600; }
.inventory-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; }
