/* page-backups.css — extracted from style.css 2026-05-27 (UX-6 cut 5).
 *
 * /system/backups page styling. Two source blocks folded here:
 *   - /system/backups Mode-1 directive treatment (commit 2.16) — the
 *     primary page layout with KPI strip, donut, unprotected table.
 *   - Per-VM Backups tab (commit 2.19) — the Backups tab on the
 *     /system/vms detail pages. Backup-semantic styling so it lives
 *     here, not in page-vms.css.
 *
 * Selectors: `.backup-*`, `.vm-tab-*`, `.bkp-*`.
 *
 * Loaded AFTER style.css + components.css via base.html.
 */

/* ─── /system/backups Mode-1 directive treatment (commit 2.16) ─── */
/* ─── /system/backups Mode-1 directive treatment (commit 2.16) ──────────
   Bigger KPI numbers, "scream" banner for unprotected items, animated
   card entrance. Per the directive: "unprotected systems should
   visually scream." */

/* KPI card row — larger numbers than the .cv-bignum default */
.backup-kpi-card .cv-bignum-value { font-size: 38px; }
.backup-stack-num {
  font-size: 30px;
  letter-spacing: -0.02em;
}
.backup-donut {
  width: 96px;
  height: 96px;
}
.backup-donut .cv-donut-label {
  font-size: 22px;
  font-weight: 700;
}
.backup-donut::after { inset: 13px; }

/* Subtle entrance animation — cards fade in + scale up by 1% on load.
   Per directive: "subtle motion." Not distracting, just feels alive. */
.backup-kpi-card,
.backup-critical-hero,
.backup-scream {
  animation: backup-card-in 0.32s ease-out;
}
@keyframes backup-card-in {
  from { opacity: 0; transform: translateY(4px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* The "scream" banner — top of /system/backups when ANY unprotected.
   Big red, pulsing border, prominent CTA. */
.backup-scream {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  margin: 0 0 18px;
  background: linear-gradient(90deg, var(--red-bg, #fef2f2) 0%, transparent 100%);
  border: 2px solid var(--red);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.backup-scream::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  pointer-events: none;
  box-shadow: inset 0 0 0 0 var(--red);
  animation: backup-scream-pulse 2.4s ease-in-out infinite;
}
@keyframes backup-scream-pulse {
  0%, 100% { box-shadow: inset 0 0 0 0 rgba(220,38,38,0.0); }
  50%      { box-shadow: inset 0 0 24px -4px rgba(220,38,38,0.20); }
}
.backup-scream:hover {
  background: linear-gradient(90deg, var(--red-bg, #fef2f2) 0%, rgba(220,38,38,0.05) 100%);
}
.backup-scream-icon {
  font-size: 44px;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.08));
}
.backup-scream-body { flex: 1; }
.backup-scream-num {
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  color: var(--red);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.backup-scream-headline {
  font-size: 16px;
  font-weight: 600;
  color: var(--red);
  margin-top: 4px;
}
.backup-scream-detail {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 6px;
  line-height: 1.5;
}
.backup-scream-cta {
  flex-shrink: 0;
  background: var(--red);
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease;
}
.backup-scream:hover .backup-scream-cta {
  background: #b91c1c;
}

/* The /unprotected page hero — full-width red posture banner, even more
   prominent than .backup-scream because this is the "hard action" page. */
.backup-critical-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 28px 32px;
  margin: 0 0 22px;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 2px solid var(--red);
  border-radius: var(--radius-lg);
  position: relative;
}
.backup-critical-icon {
  font-size: 56px;
  line-height: 1;
  flex-shrink: 0;
  color: var(--red);
}
.backup-critical-body { flex: 1; }
.backup-critical-num {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: var(--red);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.backup-critical-headline {
  font-size: 22px;
  font-weight: 600;
  color: var(--red);
  margin-top: 4px;
  letter-spacing: -0.01em;
}
.backup-critical-detail {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 10px;
  line-height: 1.55;
}

/* Repository list inside the KPI card */
.repo-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.repo-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 0;
  font-size: 14px;
  border-bottom: 1px dashed var(--border-soft);
}
.repo-row:last-child { border-bottom: 0; }
.repo-name {
  font-family: var(--mono);
  color: var(--text-2);
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.repo-jobs {
  flex-shrink: 0;
  margin-left: 8px;
  font-size: 14px;
}

/* ─── Notification deep-link focus highlight (commit 2.15) ────────────

/* ─── Per-VM Backups tab (commit 2.19) ─── */
/* ─── Per-VM Backups tab (commit 2.19) — directive cleanup ─────────────
   The .vm-tab-* family replaces the inline style="..." attributes that
   had crept into _backups.html. Plus a friendlier scream-style banner
   for "VM is in no backup job at all". */
.vm-tab-card { margin-bottom: 18px; display: block; }
.vm-tab-issues { margin-top: 10px; }
.vm-tab-good { margin-top: 8px; }
.vm-tab-note { font-size: 14px; margin: 0 0 14px; }
.vm-tab-error { color: var(--red); }
.vm-tab-section-h { margin-top: 24px; }
.vm-tab-fineprint { font-size: 14px; margin-top: 10px; line-height: 1.5; }
.vm-tab-xo-link { font-size: 14px; margin-left: 6px; text-decoration: none; }
.vm-tab-job-meta { font-size: 14px; margin-top: 2px; }
.vm-tab-job-error {
  color: var(--red);
  font-size: 14px;
  margin-top: 3px;
  font-family: var(--mono);
}
.vm-tab-schedule { font-size: 14px; margin-bottom: 2px; }
.vm-tab-pill { font-size: 14px; }
.vm-tab-mono { font-family: var(--mono); }
.vm-tab-mono-sm { font-family: var(--mono); font-size: 14px; }
.vm-tab-tiny { font-size: 14px; margin-top: 2px; }

/* The scream variant for the per-VM tab is slimmer than the parent
   (.backup-scream on /system/backups) — same visual language, smaller
   footprint to fit inside the tab pane. */
.vm-tab-scream {
  padding: 14px 18px;
  margin: 0 0 14px;
}
.vm-tab-scream .backup-scream-icon { font-size: 32px; }

.vm-tab-expand {
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--bg-soft);
  border-radius: 6px;
}
.vm-tab-expand > summary {
  cursor: pointer;
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
}
.vm-tab-expand > summary:hover { color: var(--brand-deep, var(--brand)); }
.vm-tab-gap-list {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.55;
}

/* ─── /system/hosting host map grid (commit 2.18) ─────────────────────
