/* «Авто-команды» (autocmd.js) — in the admin's own look: bf-summary cards, panels like «Авторизация»,
   the standard fields, buttons and stat-table. Scoped under #aca-root. */
#aca-root .aca-panel { background: var(--panel); border: 1px solid var(--glass-bd, var(--stroke)); border-radius: 12px; padding: 16px; margin: 14px 0 0; min-width: 0; }
#aca-root .aca-panel h2 { font-size: 20px; margin: 0 0 8px; }
#aca-root .aca-panel > p.muted { margin: 0 0 12px; max-width: 820px; }
#aca-root .aca-form { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 220px) auto; gap: 12px; align-items: end; }
#aca-root .aca-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: #94a3b8; min-width: 0; }
#aca-root .aca-form input, #aca-root select { background: #0f172a; border: 1px solid #334155; color: var(--text, #e5e7eb); border-radius: 8px; height: 40px; padding: 0 12px; font: inherit; font-size: 14.5px; font-weight: 400; width: 100%; box-sizing: border-box; }
#aca-root .aca-sel { width: auto; min-width: 170px; height: 36px; }
#aca-root .aca-go .btn { height: 40px; }
#aca-root .aca-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
#aca-root .aca-user img, #aca-root .aca-av { width: 32px; height: 32px; border-radius: 50%; flex: none; object-fit: cover; }
#aca-root .aca-av { display: grid; place-items: center; background: #334155; color: #e2e8f0; font-weight: 700; font-size: 13px; }
#aca-root .aca-user b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#aca-root .aca-nowrap { white-space: nowrap; }
#aca-root .aca-act { white-space: nowrap; text-align: right; }
#aca-root .aca-act .btn + .btn { margin-left: 6px; }
#aca-root .aca-act a.btn { text-decoration: none; }
#aca-root .aca-err { color: var(--red); margin: 6px 0; }
@media (max-width: 700px) {
  #aca-root .aca-form { grid-template-columns: 1fr; }
  #aca-root .aca-go .btn { width: 100%; }
  #aca-root .aca-table thead { display: none; }
  #aca-root .aca-table tr { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--stroke); }
  #aca-root .aca-table td { border: 0; padding: 0; }
  #aca-root .aca-act { text-align: left; white-space: normal; display: flex; gap: 6px; flex-wrap: wrap; }
  #aca-root .aca-act .btn + .btn { margin-left: 0; }
  #aca-root .aca-sel { width: 100%; }
}

#aca-root .aca-panel + .aca-panel { margin-top: 14px; }
#aca-root .aca-panel .table-wrap { margin-top: 12px; }
#aca-root code { background: #0f172a; border: 1px solid #1e293b; border-radius: 6px; padding: 1px 6px; font-size: 13px; color: #c7d2fe; }
#aca-root .aca-bad { color: var(--red); }
#aca-root .aca-form { grid-template-columns: minmax(0, 260px) auto; margin-bottom: 4px; }
@media (max-width: 700px) { #aca-root .aca-form { grid-template-columns: 1fr; } }
