/* Admin system overview (/overview, master goal V·D·21 page 1): page styles over the theme tokens (strict CSP; no
   inline styles). Design proposals 40 and 46, 2026-11-28: a compact health strip, counters with their definitions,
   collapsible breakdown cards and one refresh control. */
.ov-page { display: grid; gap: 14px; min-width: 0; }
.ov-loading { min-height: 62vh; display: flex; align-items: flex-start; gap: 10px; }

.ov-tone--up { color: var(--ok); }
.ov-tone--down { color: var(--danger); }
.ov-tone--warn { color: var(--warn); }
.ov-strong { font-weight: 600; }

/* The health strip: one line, its details fold out. */
.ov-health { margin: 0; padding: 0; border-inline-start: 4px solid var(--warn); overflow: hidden; }
.ov-edge--up { border-inline-start-color: var(--ok); }
.ov-edge--down { border-inline-start-color: var(--danger); }
.ov-health-strip { display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; list-style: none; }
.ov-health-strip::-webkit-details-marker { display: none; }
.ov-health-strip::after { content: '▾'; margin-inline-start: auto; color: var(--muted); }
.ov-health[open] > .ov-health-strip::after { content: '▴'; }
.ov-health-strip:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ov-health-icon { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; color: var(--panel); font-weight: 700; background: var(--warn); }
.ov-fill--up { background: var(--ok); }
.ov-fill--down { background: var(--danger); }
.ov-health-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; }
.ov-health-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ov-health-label { font-size: 15px; font-weight: 700; }
.ov-health-ratio { font-size: 13px; font-weight: 600; color: var(--muted); }
.ov-health-scope { margin: 0; padding: 0 14px 10px; }
.ov-health-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; padding: 0 14px 14px; }
.ov-panel { padding: 10px 12px; background: var(--panel-2); border-radius: 6px; }
.ov-panel-title { font-size: 11px; text-transform: uppercase; color: var(--muted); }
.ov-panel-rows { margin-top: 6px; display: grid; gap: 4px; }
.ov-line { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.ov-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 6px; vertical-align: middle;
  background: currentColor; }

/* The counters. */
.ov-counts { margin: 0; }
.ov-toolbar { margin-bottom: 8px; flex-wrap: wrap; gap: 8px; }
.ov-toolbar-title { margin: 0; flex: 1; }
.ov-updated { white-space: nowrap; }
.ov-kpi-grid { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
.ov-kpi-grid .sub { font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.35; }
.ov-kpi-facts { display: flex; flex-wrap: wrap; gap: 2px 8px; margin-top: 4px; font-size: 12px; color: var(--text-dim); }

/* The breakdowns: collapsible cards in an auto-fitting grid. */
.ov-breakdowns { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; align-items: start; }
.ov-breakdown { margin: 0; }
.ov-breakdown > summary { cursor: pointer; list-style: none; display: flex; align-items: center; }
.ov-breakdown > summary::-webkit-details-marker { display: none; }
.ov-breakdown > summary::after { content: '▾'; margin-inline-start: auto; color: var(--muted); }
.ov-breakdown[open] > summary::after { content: '▴'; }
.ov-breakdown > summary h3 { margin: 0; }
.ov-breakdown[open] > summary { margin-bottom: 8px; }
.ov-nodrill { display: inline-flex; flex-direction: column; gap: 2px; }
.ov-nodrill-note { color: var(--muted); font-size: 11px; line-height: 1.3; }

.ov-snapshot { padding: 0 4px; }
.ov-snapshot-title { margin: 0 0 4px; font-size: 13px; }
.ov-snapshot p { margin: 0; }

@media (max-width: 640px) {
  .ov-health-strip { padding: 10px; }
  .ov-breakdowns { grid-template-columns: 1fr; }
}
