/* Auth screens, user menu, admin table, small modal. */
#auth { position: fixed; inset: 0; z-index: 300; display: none; overflow: auto;
  background: radial-gradient(900px 520px at 50% -8%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%), var(--bg); }
#auth.on { display: grid; place-items: center; padding: 24px; }
body.auth .rail, body.auth .main, body.auth .progress { display: none; }
.auth-card { width: min(100%, 420px); background: var(--surface); border: 1px solid var(--border-2); border-radius: 18px; padding: 30px 28px 24px; box-shadow: var(--shadow); }
.auth-card .brand { width: 52px; height: 52px; border-radius: 14px; display: block; margin-bottom: 18px; }
.auth-card h1 { margin: 0 0 6px; font-size: 24px; font-weight: 650; letter-spacing: -.02em; }
.auth-card .lead { color: var(--muted); margin: 0 0 22px; font-size: 13.5px; }
.auth-card form { display: flex; flex-direction: column; gap: 14px; }
.auth-card .input { height: 36px; font-size: 14px; }
.btn.lg { height: 38px; font-size: 14px; justify-content: center; width: 100%; margin-top: 4px; }
.form-error { color: var(--sell); font-size: 12.5px; min-height: 18px; }
.pw-wrap { position: relative; }
.pw-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 0; background: none; color: var(--muted); border-radius: 7px; display: grid; place-items: center; }
.pw-btn:hover { color: var(--text); background: var(--surface-3); }
.auth-foot { margin-top: 16px; text-align: center; color: var(--faint); font-size: 12px; }
.modal.small { width: min(92vw, 460px); height: auto; max-height: 90vh; }
.modal.small .modal-body { position: static; padding: 18px; overflow: auto; }
.menu { position: fixed; z-index: 150; min-width: 230px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; animation: pop2 .14s var(--ease); }
.menu .who { padding: 10px 12px 8px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.menu .who b { display: block; }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: none; text-align: left; font-size: 13px; color: var(--text); }
.menu button:hover { background: var(--surface-2); }
.menu button.danger { color: var(--sell); }
.user-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--surface-3); color: var(--text); font-weight: 650; font-size: 12px; display: grid; place-items: center; }
.user-btn:hover { border-color: var(--accent); }
.row-actions { display: flex; gap: 2px; justify-content: flex-end; }
.row-actions .btn { color: var(--muted); }
.row-actions .btn:hover { color: var(--text); }
.row-actions .btn.danger:hover { color: var(--sell); }
@media (max-width: 768px) { .menu { left: 12px !important; right: 12px; bottom: 70px !important; top: auto !important; } }
