/* M365 Backup — self-contained admin dashboard styles (no external deps). */

:root {
  --bg: #eef2f6;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --primary: #0e7490;
  --primary-hover: #155e75;
  --primary-fg: #ffffff;
  --link: #0e7490;
  --sidebar-bg: #0f172a;
  --sidebar-fg: #cbd5e1;
  --sidebar-fg-dim: #94a3b8;
  --sidebar-active: #1e293b;
  --sidebar-accent: #22d3ee;
  --st-queued: #64748b;
  --st-running: #d97706;
  --st-completed: #16a34a;
  --st-failed: #dc2626;
  --st-canceled: #94a3b8;
  --st-pending: #64748b;
  --st-done: #16a34a;
  --st-skipped: #94a3b8;
  --st-error: #dc2626;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .1);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, .12);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #020617;
    --surface: #0f172a;
    --surface-2: #111c33;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --border: #1e293b;
    --primary: #22d3ee;
    --primary-hover: #67e8f9;
    --primary-fg: #04222b;
    --link: #38bdf8;
    --sidebar-bg: #0b1120;
    --sidebar-active: #18233b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* ---------- App shell ---------- */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--sidebar-bg); color: var(--sidebar-fg);
  display: flex; flex-direction: column; padding: 18px 14px; gap: 6px;
  position: sticky; top: 0; height: 100vh;
}
.brand {
  display: flex; align-items: center; gap: 10px; color: #fff;
  font-weight: 700; font-size: 16px; padding: 6px 8px 16px;
}
.brand svg { width: 22px; height: 22px; color: var(--sidebar-accent); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-link {
  display: flex; align-items: center; gap: 11px;
  color: var(--sidebar-fg); padding: 9px 11px; border-radius: var(--radius-sm);
  font-weight: 500; font-size: 14px; transition: background .15s, color .15s;
}
.nav-link svg { width: 18px; height: 18px; color: var(--sidebar-fg-dim); }
.nav-link:hover { background: var(--sidebar-active); color: #fff; text-decoration: none; }
.nav-link.active { background: var(--sidebar-active); color: #fff; }
.nav-link.active svg { color: var(--sidebar-accent); }
.sidebar-foot { margin-top: auto; color: var(--sidebar-fg-dim); font-size: 12px; padding: 8px; }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; background: var(--surface); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.page-title { font-size: 18px; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.user { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; font-weight: 500; }
.user svg { width: 17px; height: 17px; }
.role-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border: 1px solid var(--border); color: var(--muted); }
.role-admin { color: var(--primary); border-color: var(--primary); }
.role-operator { color: var(--st-running); border-color: rgba(217, 119, 6, .4); }
.role-viewer { color: var(--muted); }
.content { padding: 26px 28px; max-width: 1180px; width: 100%; }

/* ---------- Cards / layout ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px;
}
.card-title { font-size: 15px; margin-bottom: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-head .card-title { margin-bottom: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.note { background: var(--surface-2); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.stat-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.stat-value { font-size: 28px; font-weight: 700; margin-top: 4px; }
.text-running { color: var(--st-running); }
.text-queued { color: var(--st-queued); }
.text-completed { color: var(--st-completed); }
.text-failed { color: var(--st-failed); }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 8px; }
.form label { font-weight: 600; font-size: 13px; margin-top: 6px; }
.form input[type="text"], .form input[type="email"], .form input[type="password"] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text); font: inherit; font-size: 15px;
}
.form input::placeholder { color: var(--muted); }
fieldset.scopes { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; margin: 6px 0; display: flex; gap: 18px; flex-wrap: wrap; }
fieldset.scopes legend { font-weight: 600; font-size: 13px; padding: 0 6px; color: var(--muted); }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; text-transform: capitalize; }
.check input { width: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
  transition: background .15s, border-color .15s, opacity .15s; min-height: 40px;
}
.btn:disabled { opacity: .65; cursor: progress; }
.btn-primary { background: var(--primary); color: var(--primary-fg); margin-top: 8px; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger-ghost { background: transparent; border-color: var(--st-failed); color: var(--st-failed); }
.btn-danger-ghost:hover { background: rgba(220, 38, 38, .08); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table-wrap.scroll { max-height: 460px; overflow-y: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; padding: 10px 12px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table.compact td, .table.compact th { padding: 8px 10px; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: var(--surface-2); }
.empty { text-align: center; color: var(--muted); padding: 26px 12px; }

/* ---------- Badges & tags ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; text-transform: capitalize; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-queued, .badge-pending { color: var(--st-queued); }
.badge-running { color: var(--st-running); background: rgba(217, 119, 6, .1); border-color: rgba(217, 119, 6, .25); }
.badge-running .dot { animation: pulse 1.4s ease-in-out infinite; }
.badge-completed, .badge-done { color: var(--st-completed); background: rgba(22, 163, 74, .1); border-color: rgba(22, 163, 74, .22); }
.badge-failed, .badge-error { color: var(--st-failed); background: rgba(220, 38, 38, .09); border-color: rgba(220, 38, 38, .22); }
.badge-canceled, .badge-skipped { color: var(--st-canceled); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); font-size: 12px; font-weight: 600; margin-right: 4px; text-transform: capitalize; }
.chip { display: inline-block; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: 13px; font-weight: 600; text-transform: capitalize; }
.chip:hover { background: var(--surface-2); text-decoration: none; }
.chip.active { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }

/* ---------- Progress ---------- */
.progress-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-weight: 600; }
.progress { height: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--sidebar-accent)); border-radius: 999px; transition: width .4s ease; }
.counts { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--muted); }
.count { font-weight: 600; text-transform: capitalize; }
.count-done { color: var(--st-done); }
.count-error { color: var(--st-error); }

/* ---------- Detail / misc ---------- */
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; margin: 6px 0 18px; gap: 16px; }
.detail-actions { display: flex; align-items: center; gap: 12px; }
.detail-email { font-size: 20px; font-weight: 700; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; }
.error-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-height: 320px; overflow-y: auto; }
.error-list li { padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.back { display: inline-block; margin-bottom: 10px; font-weight: 600; }

/* ---------- Alerts ---------- */
.alert { padding: 11px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; font-weight: 500; }
.alert-error { background: rgba(220, 38, 38, .1); color: var(--st-failed); border: 1px solid rgba(220, 38, 38, .3); }
.alert-warn { background: rgba(217, 119, 6, .1); color: var(--st-running); border: 1px solid rgba(217, 119, 6, .28); }
.alert-ok { background: rgba(22, 163, 74, .1); color: var(--st-completed); border: 1px solid rgba(22, 163, 74, .25); }

/* ---------- Utilities ---------- */
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.truncate { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.break { word-break: break-word; overflow-wrap: anywhere; }
.link { font-weight: 600; }

/* ---------- Login ---------- */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.login-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 34px; width: 100%; max-width: 380px; }
.login-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; margin-bottom: 18px; }
.login-brand svg { width: 24px; height: 24px; color: var(--primary); }
.login-card h1 { font-size: 22px; margin-bottom: 4px; }
.login-card .muted { margin: 0 0 18px; font-size: 14px; }

/* ---------- File browser ---------- */
.fb-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 4px 0 14px; flex-wrap: wrap; }
.fb-title { display: flex; align-items: center; gap: 13px; min-width: 0; }
.fb-title-icon { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 11px; background: rgba(14, 116, 144, .12); color: var(--primary); flex: none; }
.fb-title-icon svg { width: 22px; height: 22px; }
.fb-title-text { min-width: 0; }
.fb-name { font-size: 18px; font-weight: 700; }

.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 4px; margin: 0 0 16px; font-size: 13.5px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.crumbs a { color: var(--muted); font-weight: 600; padding: 3px 6px; border-radius: 5px; display: inline-flex; align-items: center; }
.crumbs a:hover { color: var(--primary); background: var(--surface-2); text-decoration: none; }
.crumbs a:last-of-type { color: var(--text); }
.crumb-sep { color: var(--border); margin: 0 1px; }

.fb-card { padding: 8px; }
.fb-list { display: flex; flex-direction: column; min-width: 520px; }
.fb-row { display: grid; grid-template-columns: 1fr 104px 148px 172px; align-items: center; gap: 12px; padding: 0 12px; min-height: 48px; border-radius: var(--radius-sm); color: inherit; }
.fb-head { min-height: 38px; color: var(--muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--border); border-radius: 0; }
.fb-row:not(.fb-head):hover { background: var(--surface-2); }
.fb-folder { cursor: pointer; text-decoration: none; }
.fb-folder:hover { text-decoration: none; }
.fb-name-cell { display: flex; align-items: center; gap: 11px; min-width: 0; }
.fb-fname { font-weight: 550; overflow: hidden; text-overflow: ellipsis; }
.fb-size { font-variant-numeric: tabular-nums; font-size: 13.5px; }
.fb-date { font-size: 13px; }
.fb-act { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.fb-chev { color: var(--muted); }
.fb-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 44px 16px; color: var(--muted); text-align: center; }
.fb-empty svg { width: 36px; height: 36px; opacity: .7; }

/* file-browser toolbar (filter) + pager */
.fb-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.fb-filter { display: flex; align-items: center; gap: 8px; flex: 1 1 280px; position: relative; }
.fb-filter .fb-filter-ic { position: absolute; left: 11px; color: var(--muted); pointer-events: none; }
.fb-filter input[type="search"] { flex: 1; padding: 9px 12px 9px 34px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); font: inherit; font-size: 14px; }
.fb-filter input[type="search"]::placeholder { color: var(--muted); }
.fb-filter input[type="search"]:focus-visible { border-color: var(--primary); }
.fb-count { white-space: nowrap; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
.pager-info { min-width: 110px; text-align: center; font-variant-numeric: tabular-nums; }
.btn-mini.is-disabled { opacity: .45; pointer-events: none; }

/* file-type icon colors */
.ic { width: 20px; height: 20px; flex: none; }
.ic-folder { color: #f59e0b; }
.ic-up { color: var(--muted); }
.ic-email { color: #0ea5e9; }
.ic-doc { color: #2563eb; }
.ic-sheet { color: #16a34a; }
.ic-slide { color: #ea580c; }
.ic-pdf { color: #dc2626; }
.ic-image { color: #7c3aed; }
.ic-archive { color: #ca8a04; }
.ic-code { color: #0891b2; }
.ic-text, .ic-file { color: var(--muted); }

.btn-mini { display: inline-block; padding: 6px 12px; font-size: 12.5px; font-weight: 600; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; transition: background .15s, border-color .15s; }
.btn-mini:hover { background: var(--surface-2); border-color: var(--muted); text-decoration: none; }
.btn-mini-primary { border-color: transparent; background: var(--primary); color: var(--primary-fg); }
.btn-mini-primary:hover { background: var(--primary-hover); border-color: transparent; }
.btn-mini-danger { color: var(--st-failed); border-color: rgba(220, 38, 38, .35); }
.btn-mini-danger:hover { background: rgba(220, 38, 38, .08); border-color: var(--st-failed); }

.select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding: 10px 38px 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background-color: var(--surface-2); color: var(--text); font: inherit; font-size: 15px; cursor: pointer; line-height: 1.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.select:hover { border-color: var(--primary); }
.select:focus-visible { border-color: var(--primary); }
.select option { background: var(--surface-2); color: var(--text); }
.select-sm { padding: 6px 28px 6px 9px; font-size: 13px; background-position: right 9px center; }
.inline-form { display: inline; }
.role-help { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 13.5px; color: var(--muted); }
.role-help li { display: flex; align-items: center; gap: 9px; }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: none; background: transparent; color: var(--muted); border-radius: 8px; cursor: pointer; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Modal (preview) ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(2, 6, 23, .6); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50; }
.modal-overlay[hidden] { display: none; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; max-width: 860px; max-height: 86vh; display: flex; flex-direction: column; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.modal-title-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; }
.modal-head h3 { font-size: 15px; }
.preview-body { margin: 0; overflow: auto; max-height: 78vh; background: var(--surface-2); }
.preview-pre { margin: 0; padding: 18px; font-family: var(--mono); font-size: 13px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.preview-img { display: block; max-width: 100%; max-height: 72vh; margin: 0 auto; padding: 12px; }
.preview-frame { width: 100%; height: 76vh; border: 0; background: #fff; }
.modal-foot { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
.modal-sm { max-width: 480px; }
.modal-pad { padding: 18px; }
.modal-pad p { margin: 0 0 10px; }
.modal-pad p:last-child { margin-bottom: 0; }
.danger-text { color: var(--st-failed); font-weight: 600; }
.confirm-label { display: block; font-size: 13px; font-weight: 600; margin: 16px 0 7px; }
.confirm-input { width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); font: inherit; }
.confirm-input:focus-visible { border-color: var(--st-failed); outline: none; }
.btn-danger { background: var(--st-failed); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #b91c1c; }

@media (max-width: 640px) {
  .fb-list { min-width: 0; }
  .fb-row { grid-template-columns: 1fr 78px 132px; }
  .fb-date { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 4px; }
  .sidebar .brand { padding: 6px 8px; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .sidebar-foot { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .content { padding: 18px; }
  .truncate { max-width: 160px; }
}

/* ---------- Server status ---------- */
.status-head { margin-bottom: 18px; }
.section-title { font-size: 15px; font-weight: 700; margin: 24px 0 12px; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.metric-card { display: flex; flex-direction: column; gap: 10px; }
.metric-primary { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.metric-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.metric-label { font-weight: 600; }
.metric-pct { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.metric-sub { font-size: 12.5px; color: var(--text); }
.metric-sub.muted { color: var(--muted); }
.meter { height: 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.meter-fill { height: 100%; border-radius: 999px; background: var(--st-completed); transition: width .5s ease, background .3s; }
.meter-fill.lvl-warn { background: #f59e0b; }
.meter-fill.lvl-crit { background: var(--st-failed); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.stat-card { display: flex; flex-direction: column; gap: 6px; }
.stat-label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stat-value { font-size: 18px; font-weight: 700; }
.text-ok { color: var(--st-completed); }
.text-crit { color: var(--st-failed); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
