/* ATLAS V6 — Admin & Operations page augmentation
 *
 * V5→V6 polish 2026-06-23. Re-skins the ops-* class family (v5-operations.css)
 * which Admin (data-view="admin") AND Operations both use. 2-for-1.
 *
 * Loads after bundle-v5pages.css + v5-* sheets + before v6-pages.css.
 * No class renames. Dark-mode blocks omitted (atlas-dashboard rule #4).
 * ─────────────────────────────────────────────────────────────────────── */

#view-admin,
[data-view="operations"] {
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
  background: transparent;
}

/* ── Page wrap ────────────────────────────────────────────────────────── */
.ops-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
  min-height: 0;
}

/* ── Header (eyebrow / H1 / sub + 2 action buttons) ──────────────────── */
.ops-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
}
.ops-head-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ops-eyebrow {
  display: inline-block;
  font: 900 11px/1 var(--font-ui, Inter);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted, #647184);
  margin: 0 0 6px;
}
.ops-h1 {
  display: block;
  font: 850 28px/1.18 var(--font-display, "Aptos Display", Inter);
  color: var(--ink, #101722);
  letter-spacing: -0.005em;
  margin: 0 0 6px;
  max-width: 920px;
}
.ops-sub {
  display: block;
  font: 400 14px/1.45 var(--font-ui, Inter);
  color: var(--muted, #647184);
  margin: 0;
  max-width: 820px;
}
.ops-actions { display: flex; gap: 8px; flex-shrink: 0; }

.ops-btn {
  appearance: none;
  padding: 8px 14px;
  border-radius: var(--radius, 8px);
  font: 600 13px/1 var(--font-ui, Inter);
  cursor: pointer;
  transition: background .15s ease, transform .12s ease, border-color .15s ease;
}
.ops-btn-ghost {
  background: var(--surface, #fffdf8);
  border: 1px solid var(--line, #d7d0c3);
  color: var(--ink, #101722);
}
.ops-btn-ghost:hover {
  background: var(--bg2, #fbfaf7);
  border-color: var(--line-strong, #c4b9a8);
  transform: translateY(-1px);
}
.ops-btn-gold {
  background: var(--gold, #c18a25);
  border: 1px solid var(--gold, #c18a25);
  color: #fff;
}
.ops-btn-gold:hover { background: #a8761e; border-color: #a8761e; transform: translateY(-1px); }

/* ── 2 × 2 panel grid ─────────────────────────────────────────────────── */
.ops-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  flex: 1;
  min-height: 0;
}

/* ── Panel card ───────────────────────────────────────────────────────── */
.ops-card {
  background: var(--surface, #fffdf8);
  border: 1px solid var(--line, #d7d0c3);
  border-radius: var(--radius-lg, 12px);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--soft-shadow, 0 10px 24px rgba(29,24,14,.07));
  overflow: hidden;
}
.ops-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border2, #ebe7de);
}
.ops-card-title {
  font: 800 13px/1 var(--font-ui, Inter);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink, #101722);
}

/* ── Chips ────────────────────────────────────────────────────────────── */
.ops-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 10px/1 var(--font-ui, Inter);
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: var(--radius-pill, 999px);
  background: var(--bg3, #ebe7de);
  color: var(--muted, #647184);
  white-space: nowrap;
}
.ops-chip-good   { background: var(--good-soft, #dff2e7); color: #17623a; }
.ops-chip-warn   { background: var(--warn-soft, #fbecd0); color: #7a4a0a; }
.ops-chip-blue   { background: var(--blue-soft, #e0e9fb); color: #17468e; }
.ops-chip-muted  { background: var(--bg3, #ebe7de);        color: var(--muted, #647184); }

/* ── System / Admin queue rows ────────────────────────────────────────── */
.ops-system-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ops-system-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border2, #ebe7de);
}
.ops-system-row:last-child { border-bottom: 0; }
.ops-system-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ops-system-name {
  font: 600 13px/1.3 var(--font-ui, Inter);
  color: var(--ink, #101722);
}
.ops-system-desc {
  font: 400 11px/1.35 var(--font-ui, Inter);
  color: var(--muted, #647184);
}

/* ── Insight blocks (panel 2: Automation Exceptions copy) ─────────────── */
.ops-insights {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ops-insight {
  padding: 12px 14px;
  background: var(--bg2, #fbfaf7);
  border: 1px solid var(--border2, #ebe7de);
  border-left: 3px solid var(--gold, #c18a25);
  border-radius: var(--radius, 8px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ops-insight-label {
  font: 700 12px/1.2 var(--font-ui, Inter);
  color: var(--ink, #101722);
}
.ops-insight-body {
  font: 400 12px/1.45 var(--font-ui, Inter);
  color: var(--muted, #647184);
}

/* ── Uptime chart panel ──────────────────────────────────────────────── */
.ops-uptime-chart {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
}
.ops-uptime-svg {
  width: 100%;
  max-width: 100%;
  height: auto;
}
