/* Light is the default: no data-theme attribute == light. The toggle sets
   data-theme="dark" explicitly and localStorage remembers it.

   Every accent comes in four parts so components never hardcode a colour and
   both themes stay readable from the same rule:
     --x        solid fill / chart series
     --x-soft   tinted background behind text
     --x-line   border on that tint
     --x-ink    text colour that stays legible on --x-soft            */
:root {
  --bg: #f7f7f9;
  --surface: #ffffff;
  --surface-2: #f4f4f6;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;

  --ok: #059669;
  --ok-soft: rgba(5,150,105,.10);
  --ok-line: rgba(5,150,105,.25);
  --ok-ink: #047857;

  --warn: #d97706;
  --warn-soft: rgba(217,119,6,.12);
  --warn-line: rgba(217,119,6,.28);
  --warn-ink: #b45309;

  --fail: #dc2626;
  --fail-soft: rgba(220,38,38,.09);
  --fail-line: rgba(220,38,38,.25);
  --fail-ink: #b91c1c;

  /* the blue from the Argus mark, carrying both roles: data series and chrome */
  --accent: #1f6fb2;
  --accent-2: #1f6fb2;
  --accent-soft: rgba(31,111,178,.10);
  --accent-line: rgba(31,111,178,.25);
  --accent-ink: #1a5c94;
  --accent-strong: #14456e;
  --on-solid: #ffffff;   /* text on any saturated fill */

  /* Categorical chart series, fixed order — never cycled, never reordered by
     rank. Validated for the light surface: lightness band, chroma floor,
     colour-blind separation and 3:1 contrast all pass. Changing one means
     re-running the validator, not eyeballing it. */
  --c1: #1f6fb2;
  --c2: #c2410c;
  --c3: #0d8f80;
  --c4: #a21caf;
  --c5: #4d7c0f;
  --c6: #7c3aed;

  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
  font-synthesis: none;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0f0f13;
  --surface: #17171d;
  --surface-2: #232329;
  --border: #2e2e37;
  --text: #ededf1;
  --muted: #9b9ba7;

  --ok: #34d399;
  --ok-soft: rgba(52,211,153,.14);
  --ok-line: rgba(52,211,153,.32);
  --ok-ink: #6ee7b7;

  --warn: #fbbf24;
  --warn-soft: rgba(251,191,36,.14);
  --warn-line: rgba(251,191,36,.30);
  --warn-ink: #fcd34d;

  --fail: #f87171;
  --fail-soft: rgba(248,113,113,.14);
  --fail-line: rgba(248,113,113,.32);
  --fail-ink: #fca5a5;

  --accent: #63a8e8;
  --accent-2: #63a8e8;
  --accent-soft: rgba(99,168,232,.16);
  --accent-line: rgba(99,168,232,.34);
  --accent-ink: #9ccbf5;
  --accent-strong: #c8e2fa;
  --on-solid: #17171d;   /* text on any saturated fill */

  /* Dark is stepped from the same hues, not flipped from the light values —
     the dark band sits lower (L .48–.67), so pale tints fail here. Validated
     against this mode's surface. */
  --c1: #3b82c4;
  --c2: #d2703a;
  --c3: #189e8b;
  --c4: #c05fc4;
  --c5: #7f9c33;
  --c6: #8b6fe0;

  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

a { color: inherit; text-decoration: none; }

.layout { display: flex; min-height: 100vh; }

/* ---- sidebar ---- */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.brand { padding: 2px 8px 22px; }
.brand img { display: block; width: 100%; max-width: 168px; height: auto; }
.brand .logo-dark { display: none; }
[data-theme="dark"] .brand .logo-light { display: none; }
[data-theme="dark"] .brand .logo-dark { display: block; }
.nav a {
  display: block; padding: 9px 12px; border-radius: 8px;
  color: var(--muted); font-weight: 500; margin-bottom: 2px;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
/* the accent-coloured label carries "you are here" — no left rule needed */
.nav a.active { background: var(--surface-2); color: var(--accent-ink); font-weight: 600; }

/* ---- main ---- */
.main { flex: 1; padding: 24px 28px 48px; min-width: 0; }
.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-size: 20px; font-weight: 700; margin: 0; letter-spacing: .2px; }
.page-head .sub { color: var(--muted); font-size: 13px; }

/* ---- filter bar ---- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.filters select, .filters .seg a {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 7px 11px; font-size: 13px; font-family: inherit;
}
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.seg a { border: none; border-right: 1px solid var(--border); color: var(--muted); }
.seg a:last-child { border-right: none; }
.seg a.active { background: var(--surface-2); color: var(--text); }
/* roster size on a selector tab — reads as data, not as part of the label */
.seg .segcount {
  display: inline-block; margin-left: 2px; padding: 1px 6px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted);
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.seg a.active .segcount { background: var(--border); color: var(--text); }

/* ---- grid + cards ---- */
.grid { display: grid; gap: 16px; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 16px; }
.panels { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow);
}
.kpi { border-left: 3px solid var(--border); }
.kpi.ok   { border-left-color: var(--ok); }
.kpi.warn { border-left-color: var(--warn); }
.kpi.fail { border-left-color: var(--fail); }
.kpi.accent { border-left-color: var(--accent); }
.kpi .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.kpi .value { font-size: 28px; font-weight: 700; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .value .unit { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 3px; }

.card h3 { margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.chart-wrap { position: relative; height: 200px; }
.donut-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; pointer-events: none; top: -14px;
}
.donut-center .big { font-size: 30px; font-weight: 700; line-height: 1; }
.donut-center .cap { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
.legend { display: flex; justify-content: center; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }

/* ---- table ---- */
.table-card { margin-top: 16px; padding: 0; overflow: hidden; }
.table-card h3 { padding: 16px 18px 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 16px; font-size: 13px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; background: var(--surface-2); }
tbody tr:hover { background: var(--surface-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

th.sortcol { padding: 0; }
th.sortcol a {
  display: block; padding: 11px 16px; color: inherit;
  text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
  cursor: pointer;
}
th.sortcol a:hover { color: var(--text); background: var(--surface-3, var(--border)); }
th.sortcol .arrow { color: var(--accent-2, var(--text)); font-size: 10px; }

/* ---- endpoint coverage matrix ---- */
.chiprow { display: flex; flex-wrap: wrap; gap: 8px; }
th.covcol { text-align: center; }
td.covcell { text-align: center; }
.cov {
  display: inline-block; min-width: 58px; padding: 3px 9px;
  border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .02em;
}
.cov-present { color: var(--ok-ink);   background: var(--ok-soft);   border: 1px solid var(--ok-line); }
.cov-gap     { color: var(--fail-ink); background: var(--fail-soft); border: 1px solid var(--fail-line); }
.cov-unknown { color: var(--muted); background: none; }
/* AD presence — deliberately cooler than cov-present so it doesn't read as agent
   coverage, and it has no red counterpart: absence from AD is never a "gap". */
.cov-ad      { color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--accent-line); }

/* single-letter row actions — the matrix has six status columns; word buttons
   pushed the table past the viewport. Full label lives in the title attribute. */
.btn-icon {
  width: 24px; height: 24px; padding: 0; flex: none;
  background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 12px; font-weight: 700; line-height: 1; cursor: pointer;
  font-family: inherit; text-transform: uppercase;
}
.btn-icon:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--on-solid); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
  border: 1px solid transparent;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.badge.ok   { color: var(--ok-ink);   background: var(--ok-soft);   border-color: var(--ok-line); }
.badge.ok::before   { background: var(--ok); }
.badge.warn { color: var(--warn-ink); background: var(--warn-soft); border-color: var(--warn-line); }
.badge.warn::before { background: var(--warn); }
.badge.fail { color: var(--fail-ink); background: var(--fail-soft); border-color: var(--fail-line); }
.badge.fail::before { background: var(--fail); }
.badge.muted { color: var(--muted); background: var(--surface-2); }
.badge.muted::before { background: var(--muted); }

.vmpill { font-variant-numeric: tabular-nums; }
.vmpill .bad { color: var(--fail); font-weight: 700; }

.empty { padding: 40px; text-align: center; color: var(--muted); }
.pager { display: flex; gap: 8px; align-items: center; padding: 14px 18px; color: var(--muted); font-size: 13px; }
.pager a { padding: 6px 12px; border: 1px solid var(--border); border-radius: 8px; }
.pager a:hover { background: var(--surface-2); color: var(--text); }

.back { color: var(--muted); font-size: 13px; display: inline-block; margin-bottom: 12px; }
.back:hover { color: var(--text); }

@media (max-width: 720px) {
  .sidebar { display: none; }
  .main { padding: 18px 16px 40px; }
}

.note {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-ink);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 13px;
}
.note strong { color: var(--accent-strong); }

/* ---- month coverage grid ---- */
.grid-help { color: var(--muted); font-size: 12.5px; margin: -4px 0 14px; }
.mgrid { display: inline-block; }
.mgrid-head, .mgrid-row { display: grid; grid-template-columns: 52px repeat(12, 30px); gap: 4px; align-items: center; }
.mgrid-row { margin-top: 4px; }
.mgrid .yr { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; padding-right: 6px; }
.mgrid .mh { font-size: 10px; color: var(--muted); text-align: center; }
.cell {
  height: 30px; border-radius: 6px; background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.cell.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); }
.cell.full { background: var(--accent); border-color: var(--accent); color: var(--on-solid); }
.mgrid-legend { display: flex; gap: 18px; margin-top: 16px; flex-wrap: wrap; }
.mgrid-legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.mgrid-legend .sw { width: 14px; height: 14px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--border); display: inline-block; }
.mgrid-legend .sw.on { background: var(--accent-soft); border-color: var(--accent-line); }
.mgrid-legend .sw.full { background: var(--accent); border-color: var(--accent); }

td.dates { white-space: normal; }
.pt {
  display: inline-block; margin: 2px 4px 2px 0; padding: 2px 7px;
  border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border);
  font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.pt.full { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); }

@media (max-width: 720px) {
  .mgrid { overflow-x: auto; display: block; }
}

.badge.full-badge { color: var(--accent-ink); background: var(--accent-soft); border-color: var(--accent-line); }
.badge.full-badge::before { background: var(--accent); }
.badge.incr { color: var(--muted); background: var(--surface-2); border-color: var(--border); }
.badge.incr::before { background: var(--muted); }

/* ---- sign-out footer ---- */
.sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
.sidebar-foot .who { font-size: 12px; color: var(--muted); padding: 0 8px 10px; }
.sidebar-foot .who strong { color: var(--text); }
.signout {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); border-radius: 8px; padding: 8px; font-size: 13px;
  cursor: pointer; font-family: inherit;
}
.signout:hover { background: var(--border); }

/* ---- login page ---- */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.login-card {
  width: 100%; max-width: 360px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; padding: 32px 28px;
  box-shadow: var(--shadow);
}
/* Two renderings of the mark: navy artwork for the light card, a near-white
   version for the dark one. Swapped on the theme attribute, not
   prefers-color-scheme, because the toggle is what actually drives the theme. */
.login-logo { padding: 2px 6px; }
.login-logo img { display: block; width: 100%; height: auto; }
.login-logo .logo-dark { display: none; }
[data-theme="dark"] .login-logo .logo-light { display: none; }
[data-theme="dark"] .login-logo .logo-dark { display: block; }
.login-sub { color: var(--muted); font-size: 13px; margin: 14px 0 22px; text-align: center; }
.login-card label { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 14px 0 6px; }
.login-card input {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 11px 12px; color: var(--text); font-size: 14px; font-family: inherit;
}
.login-card input:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px var(--accent-soft); }
.login-card button {
  width: 100%; margin-top: 24px; background: var(--accent-2); color: var(--on-solid);
  border: none; border-radius: 8px; padding: 12px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.login-card button:hover { filter: brightness(1.08); }
.login-error {
  background: var(--fail-soft); border: 1px solid var(--fail-line);
  color: var(--fail-ink); border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 4px;
}
.login-sso {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; box-sizing: border-box; background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px; padding: 12px;
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.login-sso:hover { border-color: var(--accent-2); background: var(--surface); }
.login-sso svg { width: 16px; height: 16px; flex: none; }
.login-local { margin-top: 22px; border-top: 1px solid var(--border); }
.login-local > summary {
  list-style: none; cursor: pointer; user-select: none;
  color: var(--muted); font-size: 12px; text-align: center; padding: 12px 0 2px;
}
.login-local > summary::-webkit-details-marker { display: none; }
.login-local > summary::after { content: " \25be"; }
.login-local[open] > summary::after { content: " \25b4"; }
.login-local > summary:hover { color: var(--text); }
.login-local > summary:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 4px; }
.login-local .login-error { margin-top: 12px; }

/* ---- welcome top bar ---- */
.topbar {
  display: flex; justify-content: flex-end; align-items: center;
  padding-bottom: 16px; margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.topbar .welcome { color: var(--muted); font-size: 13px; }
.topbar .welcome strong { color: var(--text); }

/* ---- horizontal section tabs (Veeam / M365 sub-pages) ---- */
.tabs {
  display: flex; gap: 2px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin: 0 0 22px;
}
.tabs a {
  padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: 14px;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--accent-2); border-bottom-color: var(--accent-2); }

/* ---- nav section label ---- */
.nav-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); opacity: .7; padding: 16px 12px 6px; margin-top: 6px;
  border-top: 1px solid var(--border);
}

/* ---- nav: top-level section header (BACKUPS, IDENTITY / AD, …) ---- */
.nav-section {
  font-size: 10px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); opacity: .7; padding: 16px 12px 6px; margin-top: 6px;
  border-top: 1px solid var(--border);
}

/* ---- nav: collapsible sub-group (Veeam Backups, M365 Backup) ---- */
.nav-group { margin-bottom: 2px; }
.nav-group > summary {
  display: flex; align-items: center; justify-content: space-between;
  list-style: none; cursor: pointer;
  padding: 9px 12px; border-radius: 8px;
  color: var(--text); font-weight: 600; font-size: 13px;
}
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary:hover { background: var(--surface-2); }
.nav-group > summary::after {
  content: ""; width: 7px; height: 7px; flex-shrink: 0;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg); transition: transform .15s ease;
}
.nav-group[open] > summary::after { transform: rotate(45deg); }
.nav-children { padding-left: 10px; margin: 2px 0 4px; }
.nav-children a { font-size: 13px; }
.stale { color: var(--warn); font-weight: 600; }

td.ident { color: var(--muted); font-size: 12px; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- inventory search/filter bar ---- */
.invfilters { align-items: center; }
.invfilters .search {
  flex: 1 1 240px; min-width: 200px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 8px 12px; font-size: 13px; font-family: inherit;
}
.invfilters .search:focus { outline: none; border-color: var(--accent-2); }
.searchbtn {
  background: var(--accent-2); color: var(--on-solid); border: none; border-radius: 8px;
  padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.searchbtn:hover { filter: brightness(1.08); }

/* ---- workload summary + notes ---- */
.wl-summary { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.wl-item { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; min-width: 150px; }
.wl-name { font-weight: 600; color: var(--accent); font-size: 13px; }
.wl-count { font-size: 18px; font-weight: 700; color: var(--text); margin: 2px 0; }
.wl-range { font-size: 11px; color: var(--muted); }
.note { font-size: 12px; color: var(--muted); margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); font-style: italic; }

/* The per-theme readability fixes that used to live here are gone: components
   now read --*-ink / --*-soft / --*-line, which each theme redefines at the
   top of this file, so one rule serves both. */

/* nav section label: no top border on the very first one */
.nav-label.first { border-top: none; margin-top: 0; padding-top: 2px; }

/* ---- topbar + theme toggle ---- */
.topbar { display: flex; align-items: center; justify-content: space-between; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  cursor: pointer; transition: color .15s, border-color .15s, background .15s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--accent-2); }
/* The icon advertises what you'd switch TO. Light is the default, so the moon
   shows unless data-theme="dark" is set. */
.theme-toggle .ic-sun { display: none; }
.theme-toggle .ic-moon { display: inline-block; }
[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
[data-theme="dark"] .theme-toggle .ic-sun { display: inline-block; }

/* ========== DASHBOARD LANDING ========== */
.section-h { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  margin: 22px 0 10px; font-weight: 600; }
.muted-t { color: var(--muted); font-weight: 400; }
/* "view →" affordance on a section heading — the whole landing page is nav. */
.section-h .more {
  color: var(--accent-2); font-weight: 600; text-transform: none;
  letter-spacing: 0; margin-left: 10px; font-size: 11px;
}
.section-h .more:hover { filter: brightness(1.2); }
/* one line of context under a KPI value, so a bare number isn't ambiguous */
.tile-sub { color: var(--muted); font-size: 11px; margin-top: 4px; line-height: 1.35; }

/* needs attention */
.attn-card { border: 1px solid var(--fail-line); }
.attn-title { display: flex; align-items: center; gap: 10px; color: var(--text) !important;
  text-transform: none !important; font-size: 15px !important; letter-spacing: 0 !important; }
.attn-pill { background: var(--fail); color: var(--on-solid); border-radius: 999px; padding: 1px 10px; font-size: 12px; font-weight: 700; }
.attn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.attn-block { }
.attn-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.attn-h.fail { color: var(--fail); }
.attn-h.warn { color: var(--warn); }
.attn-row { font-size: 13px; padding: 5px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.attn-row:last-child { border-bottom: none; }
.attn-more { display: inline-block; margin-top: 8px; font-size: 12.5px; color: var(--accent); font-weight: 600; }
.allclear { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text);
  border-left: 3px solid var(--ok); }
.ac-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }

/* capacity bars */
.repo-bar { padding: 12px 0; border-bottom: 1px solid var(--border); }
.repo-bar:last-child { border-bottom: none; }
.repo-bar-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.repo-name { font-weight: 600; font-size: 14px; }
.repo-figs { font-size: 13px; color: var(--text); }
.bar { height: 12px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 6px 0 0 6px; }
.bar-fill.ok { background: var(--ok); }
.bar-fill.warn { background: var(--warn); }
.bar-fill.fail { background: var(--fail); }
.bar-fill.obj { background: linear-gradient(90deg, var(--surface-2), var(--border)); }
.bar-pct { font-size: 11.5px; margin-top: 4px; font-weight: 600; }
.bar-pct.ok { color: var(--ok); }
.bar-pct.warn { color: var(--warn); }
.bar-pct.fail { color: var(--fail); }

/* ---- job VM hover tooltip ---- */
.job-cell { position: relative; }
.job-link { border-bottom: 1px dotted var(--muted); }
.vm-tip-float {
  position: absolute; z-index: 1000;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 9px; box-shadow: var(--shadow);
  padding: 10px 12px; min-width: 200px; max-width: 340px;
  max-height: 320px; overflow: auto; pointer-events: none;
}
.vm-tip-h { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 7px; }
.vm-tip-row { font-size: 12.5px; padding: 3px 0; display: flex; align-items: center; gap: 8px; }
.vm-tip-row .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.vm-tip-float .dot.ok { background: var(--ok); }
.vm-tip-float .dot.warn { background: var(--warn); }
.vm-tip-float .dot.fail { background: var(--fail); }
.vm-tip-float .dot.muted { background: var(--muted); }
.vm-tip-more { font-size: 11.5px; color: var(--muted); margin-top: 6px; font-style: italic; }

/* ---- object detail: per-object last backup ---- */
.lastbk { border-left: 3px solid var(--ok); margin-bottom: 4px; }
.lastbk.is-stale { border-left-color: var(--warn); }
.lastbk-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.lastbk-value { font-size: 20px; font-weight: 700; margin-top: 4px; }
.lastbk-ago { font-size: 13px; font-weight: 400; color: var(--muted); }

/* clickable KPI tile */
.kpi-link { display: block; }
.kpi-link .card { transition: border-color .15s, transform .05s; }
.kpi-link:hover .card { border-color: var(--accent); }
.kpi-go { font-size: 10px; color: var(--accent); font-weight: 600; text-transform: none; letter-spacing: 0; opacity: 0; transition: opacity .15s; }
.kpi-link:hover .kpi-go { opacity: 1; }
td.msg { max-width: 640px; }
td.nowrap { white-space: nowrap; }
.kpis .kpi-link { display: block; }
.kpis .kpi-link .card { height: 100%; }

/* audit: drop-folder paths called out inline in the page subtitle */
.page-head code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px;
}
