.admin-card { overflow-x: auto; }
.admin-subtab-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.admin-subtab-btn.is-active { border-color: rgba(83, 217, 255, 0.62); color: var(--white); background: rgba(83, 217, 255, 0.12); }
.admin-tab-panel.is-hidden { display: none; }
.admin-card-note { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.admin-health-warning { color: #ffb1b1; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 16px 0 18px; }
.admin-stat-grid--compact { margin-top: 14px; }
.admin-stat-card { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid rgba(83, 217, 255, 0.12); border-radius: 12px; background: rgba(255, 255, 255, 0.02); }
.admin-stat-card span { color: var(--muted); font-size: 12px; }
.admin-command-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 0 0 18px; }
.admin-command-card { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid rgba(83, 217, 255, 0.12); border-radius: 12px; background: rgba(5, 20, 29, 0.36); }
.admin-command-card span,
.admin-command-card small { color: var(--muted); font-size: 12px; }
.admin-command-card code { white-space: normal; overflow-wrap: anywhere; color: var(--white); font-size: 13px; }
.admin-stat-card strong { color: var(--white); font-size: 28px; line-height: 1; }
.admin-filter-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.admin-filter-row--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-filter-row--single { grid-template-columns: minmax(0, 1fr); }
.admin-filter-field { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.admin-table { display: grid; grid-template-columns: repeat(var(--admin-cols), minmax(120px, 1fr)); gap: 0; min-width: 1040px; border: 1px solid rgba(83, 217, 255, 0.12); border-radius: 12px; overflow: hidden; }
.admin-table strong,
.admin-table span { padding: 10px 12px; border-bottom: 1px solid rgba(83, 217, 255, 0.1); color: var(--text); overflow-wrap: anywhere; }
.admin-table strong { color: var(--white); background: rgba(83, 217, 255, 0.08); }
.admin-table span { color: var(--muted); }
.admin-pagination { justify-content: flex-start; }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-log-actions { justify-content: flex-start; margin-bottom: 14px; }
.admin-maintenance-list { display: grid; gap: 12px; margin: 14px 0 18px; }
.admin-maintenance-row { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(180px, 0.9fr) auto; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid rgba(83, 217, 255, 0.12); border-radius: 12px; background: rgba(255, 255, 255, 0.02); }
.admin-maintenance-row strong { color: var(--white); }
.admin-maintenance-row .admin-card-note { margin-top: 4px; }
.admin-maintenance-meta { display: grid; gap: 4px; color: var(--muted); font-size: 12px; }
.admin-maintenance-row--protected { grid-template-columns: minmax(0, 1.8fr) minmax(180px, 0.9fr) max-content; border-color: rgba(255, 193, 7, 0.18); background: rgba(255, 193, 7, 0.035); }
.admin-protected-badge { display: inline-flex; align-items: center; justify-content: center; padding: 7px 10px; border: 1px solid rgba(255, 193, 7, 0.28); border-radius: 999px; color: var(--warning); font-size: 12px; font-weight: 800; white-space: nowrap; }
.admin-period-tabs .btn.is-active { border-color: rgba(83, 217, 255, 0.62); color: var(--white); background: rgba(83, 217, 255, 0.12); }

html[data-theme="light"] .admin-subtab-btn.is-active,
html[data-theme="light"] .admin-period-tabs .btn.is-active { color: var(--text); border-color: rgba(108, 146, 173, 0.34); background: #e8f2fa; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
html[data-theme="light"] .admin-stat-card,
html[data-theme="light"] .admin-maintenance-row,
html[data-theme="light"] .admin-table strong,
html[data-theme="light"] .admin-table span { border-color: rgba(108, 146, 173, 0.22); background: var(--soft-panel); color: var(--text); }
html[data-theme="light"] .admin-stat-card strong,
html[data-theme="light"] .admin-maintenance-row strong,
html[data-theme="light"] .admin-table strong { color: var(--text); }
html[data-theme="light"] .admin-table span { color: var(--muted); }

@media (max-width: 900px) {
  .admin-filter-row { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .admin-maintenance-row { grid-template-columns: minmax(0, 1fr); }
}
