/* ==== admin.css ====
   Компоненты админки: плитки статистики, фильтры, редактор рассылки, настройки, лог-консоль.
   Используется в: admin.html (вместе с common.css). Брейкпоинты: 1024px и 768px. */

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-tile { padding: 16px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); animation: card-rise .4s ease both; }
.stat-tile .stat-val { font-family: var(--font); font-weight: 700; font-size: 32px; color: var(--gold-2); line-height: 1; }
.stat-tile .stat-lbl { color: var(--muted); font-size: 13px; margin-top: 6px; }
.stat-tile .stat-sub { font-size: 12px; color: var(--green); margin-top: 4px; }
.adm-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.adm-toolbar .input { flex: 1; min-width: 200px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: none; }
.setting-row .input { max-width: 140px; }
.log-console { background: #05040f; border: 1px solid var(--line); border-radius: 14px; padding: 12px; font: 12px/1.55 ui-monospace, Consolas, monospace;
  max-height: 60vh; overflow: auto; white-space: pre-wrap; word-break: break-word; color: #cfc8ef; }
.log-console .l-err { color: #ff9aa6; }
.log-console .l-warn { color: #ffd88a; }
.bc-preview { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px dashed var(--line); white-space: pre-wrap; min-height: 60px; }
.fmt-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }

@media (max-width: 1024px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-tile .stat-val { font-size: 28px; }
  .setting-row { flex-direction: column; align-items: stretch; }
  .setting-row .input { max-width: none; }
  .tab-item { font-size: 10px; }
}
