/* overview.css — the Customer Overview page (v3.3.11, OVR-4 ; design docs/architecture/customer-overview-design.md).
   Date: 2026-09-18
   Colours come only from the product tokens (design-tokens.css + the theme aliases of style.css): state = a stripe
   plus a text chip, never a flood fill; Watch is yellow graphics with dark text (decision 5). Every class is
   prefixed "ov-" (or scoped under .ov) so nothing collides with the shared primitives in style.css. */

.ov {
  /* state colours: graphic (-500), text on the page, tint fill, tint edge — dark theme first (style.css :root) */
  --ov-ok: var(--status-online-500);      --ov-ok-text: var(--status-online-300);
  --ov-att: var(--status-warning-500);    --ov-att-text: var(--status-warning-300);
  --ov-crit: var(--status-critical-500);  --ov-crit-text: var(--status-critical-300);
  --ov-stale: var(--neutral-500);         --ov-stale-text: var(--neutral-400);
  --ov-info: var(--status-info-500);      --ov-info-text: var(--status-info-300);
  --ov-ok-fill: color-mix(in srgb, var(--status-online-500) 16%, var(--surface));
  --ov-att-fill: color-mix(in srgb, var(--status-warning-500) 18%, var(--surface));
  --ov-crit-fill: color-mix(in srgb, var(--status-critical-500) 16%, var(--surface));
  --ov-stale-fill: color-mix(in srgb, var(--neutral-500) 14%, var(--surface));
  --ov-info-fill: color-mix(in srgb, var(--status-info-500) 16%, var(--surface));
  --ov-ok-edge: color-mix(in srgb, var(--status-online-500) 45%, var(--border));
  --ov-att-edge: color-mix(in srgb, var(--status-warning-500) 50%, var(--border));
  --ov-crit-edge: color-mix(in srgb, var(--status-critical-500) 45%, var(--border));
  --ov-stale-edge: color-mix(in srgb, var(--neutral-500) 40%, var(--border));
  --ov-info-edge: color-mix(in srgb, var(--status-info-500) 45%, var(--border));
  --ov-surface-2: color-mix(in srgb, var(--surface) 92%, var(--text));
  --ov-surface-3: color-mix(in srgb, var(--surface) 86%, var(--text));
  --ov-border-strong: color-mix(in srgb, var(--border) 70%, var(--text));
  --ov-ink-2: color-mix(in srgb, var(--text) 82%, var(--muted));
  --ov-track: var(--border);
  --ov-accent: var(--primary);
  --ov-accent-soft: color-mix(in srgb, var(--primary) 16%, var(--surface));
  --ov-shadow: none;
  font-size: 13px;
}
[data-theme="light"] .ov {
  --ov-ok-text: var(--status-online-700);
  --ov-att-text: var(--neutral-800);            /* yellow graphics, dark text — never brown (decision 5) */
  --ov-crit-text: var(--status-critical-700);
  --ov-stale-text: var(--neutral-700);
  --ov-info-text: var(--status-info-700);
  --ov-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.10);
}

.ov a { color: var(--ov-accent); text-decoration: none; font-weight: 600; }
.ov a:hover, .ov a:focus-visible { text-decoration: underline; outline: none; }
.ov button:focus-visible, .ov input:focus-visible, .ov select:focus-visible { outline: 2px solid var(--ov-accent); outline-offset: 2px; }
.ov .ov-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.ov .ov-i { display: contents; }               /* an x-html wrapper that must not disturb its parent's flex / grid layout */
.ov-ntab th.c-cust { width: 170px; } .ov-ntab th.c-topic { width: 170px; } .ov-ntab th.c-open { width: 150px; } .ov-ntab th.c-act { width: 110px; }
.ov .ov-muted { color: var(--muted); }
.ov .t-ok { color: var(--ov-ok-text); } .ov .t-att { color: var(--ov-att-text); } .ov .t-crit { color: var(--ov-crit-text); } .ov .t-stale { color: var(--ov-stale-text); } .ov .t-info { color: var(--ov-info-text); }
.ov .g-ok { background: var(--ov-ok); } .ov .g-att { background: var(--ov-att); } .ov .g-crit { background: var(--ov-crit); } .ov .g-stale { background: var(--ov-stale); } .ov .g-info { background: var(--ov-info); }

/* ── page head + controls ──────────────────────────────────────────────────── */
/* : the header is three stacked rows — title row (title left, Tour button at the right edge, level
   with the title on every page), the one-line explanation, then the controls — so the button never
   moves when the controls wrap at a narrower window. */
.ov-head { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 18px; }
.ov-title { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ov-head h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.ov-head p { margin: 0; color: var(--muted); max-width: 70ch; }
.ov-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ov-seg { display: inline-flex; border: 1px solid var(--ov-border-strong); border-radius: 8px; overflow: hidden; background: var(--surface); }
.ov-seg button { border: none; background: transparent; padding: 6px 11px; font-size: 12px; color: var(--muted); cursor: pointer; font-weight: 500; font-family: inherit; }
.ov-seg button.on { background: var(--ov-accent-soft); color: var(--ov-accent); font-weight: 600; }
.ov-ctl { border: 1px solid var(--ov-border-strong); background: var(--surface); border-radius: 8px; padding: 6px 11px; font-size: 12px; color: var(--ov-ink-2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 500; font-family: inherit; }
.ov-ctl input { border: none; background: transparent; color: var(--text); font: inherit; min-width: 160px; }
.ov-ctl input:focus { outline: none; }
.ov-stamp { font-size: 12px; color: var(--muted); white-space: nowrap; }
.ov-loading, .ov-error { padding: 40px 20px; text-align: center; color: var(--muted); }
.ov-error { color: var(--ov-crit-text); }

/* ── icons ─────────────────────────────────────────────────────────────────── */
.ov .ov-ico { width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }
.ov .ov-ico-chip { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--ov-surface-2); border: 1px solid var(--border); flex-shrink: 0; color: var(--ov-ink-2); }
.ov .ov-ico-chip .ov-ico { width: 17px; height: 17px; }

/* ── chips, counts, badges, tallies ────────────────────────────────────────── */
.ov .ov-chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; border: 1px solid; white-space: nowrap; letter-spacing: 0.01em; }
.ov .ov-chip.sm { height: 18px; font-size: 10px; padding: 0 5px; gap: 4px; }
.ov .ov-chip .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.ov .ov-chip.sm .dot { width: 6px; height: 6px; }
.ov .ov-chip.b-ok { color: var(--ov-ok-text); background: var(--ov-ok-fill); border-color: var(--ov-ok-edge); }
.ov .ov-chip.b-att { color: var(--ov-att-text); background: var(--ov-att-fill); border-color: var(--ov-att-edge); }
.ov .ov-chip.b-crit { color: var(--ov-crit-text); background: var(--ov-crit-fill); border-color: var(--ov-crit-edge); }
.ov .ov-chip.b-stale { color: var(--ov-stale-text); background: var(--ov-stale-fill); border-color: var(--ov-stale-edge); }
.ov .ov-chip.b-info { color: var(--ov-info-text); background: var(--ov-info-fill); border-color: var(--ov-info-edge); }
.ov .ov-cnt { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; border: 1px solid; white-space: nowrap; }
.ov .ov-cnt.b-crit { color: var(--ov-crit-text); background: var(--ov-crit-fill); border-color: var(--ov-crit-edge); }
.ov .ov-cnt.b-att { color: var(--ov-att-text); background: var(--ov-att-fill); border-color: var(--ov-att-edge); }
.ov .ov-cnt.b-neutral { color: var(--ov-ink-2); background: var(--ov-surface-2); border-color: var(--border); font-weight: 600; }
.ov .ov-badge { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-radius: 12px; border: 1.5px solid; padding: 10px 12px; min-width: 104px; text-align: center; flex-shrink: 0; background: var(--surface); }
.ov .ov-badge .w { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.15; }
.ov .ov-badge .ov-ico { width: 22px; height: 22px; stroke-width: 2.2; }
.ov .ov-badge.b-crit { color: var(--ov-crit-text); border-color: var(--ov-crit); background: var(--ov-crit-fill); }
.ov .ov-badge.b-att { color: var(--ov-att-text); border-color: var(--ov-att); background: var(--ov-att-fill); }
.ov .ov-badge.b-ok { color: var(--ov-ok-text); border-color: var(--ov-ok); background: var(--ov-ok-fill); }
.ov .ov-badge.b-stale { color: var(--ov-stale-text); border-color: var(--ov-stale); background: var(--ov-stale-fill); }
.ov .ov-badge.lg { min-width: 136px; padding: 16px 14px; border-radius: 16px; }
.ov .ov-badge.lg .w { font-size: 12.5px; } .ov .ov-badge.lg .ov-ico { width: 32px; height: 32px; }
.ov .ov-tally { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: 12.5px; color: var(--ov-ink-2); }
.ov .ov-tally b { font-family: var(--font-mono); font-weight: 700; }
.ov .ov-tally .act b { color: var(--ov-crit-text); } .ov .ov-tally .wat b { color: var(--ov-att-text); } .ov .ov-tally .ack { color: var(--muted); } .ov .ov-tally .zero { color: var(--muted); }

/* ── 7-day strip ───────────────────────────────────────────────────────────── */
.ov .ov-days { display: flex; flex-direction: column; gap: 3px; align-items: flex-end; }
.ov .ov-days .row { display: flex; gap: 3px; align-items: center; }
.ov .ov-days .row i { width: 14px; height: 14px; border-radius: 3px; background: var(--ov-track); display: block; }
.ov .ov-days .row i.today { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--ov-ink-2); }
.ov .ov-days .row.sm i { width: 10px; height: 10px; border-radius: 2px; }
.ov .ov-days .row.sm i.today { box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 2.5px var(--ov-ink-2); }
.ov .ov-days .cap { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.04em; }
/* the state colour must beat the track rule above (same for the large day columns of the one-customer header) */
.ov .ov-days .row i.g-ok, .ov-xdays .dcol i.g-ok { background: var(--ov-ok); }
.ov .ov-days .row i.g-att, .ov-xdays .dcol i.g-att { background: var(--ov-att); }
.ov .ov-days .row i.g-crit, .ov-xdays .dcol i.g-crit { background: var(--ov-crit); }
.ov .ov-days .row i.g-stale, .ov-xdays .dcol i.g-stale { background: var(--ov-stale); }

/* ── hero: state summary + bricks ──────────────────────────────────────────── */
.ov-hero { display: grid; grid-template-columns: minmax(300px, 4fr) 8fr; gap: 16px; margin-bottom: 16px; align-items: stretch; }
@media (max-width: 980px) { .ov-hero { grid-template-columns: 1fr; } }
.ov-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--ov-shadow); }
.ov-statesum { padding: 14px 18px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; }
.ov-statesum .sh1 { font-size: 11.5px; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.ov-sbar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--ov-track); margin: 8px 0 10px; }
.ov-sbar i { display: block; height: 100%; }
.ov-slegend { display: grid; grid-template-columns: 10px 26px minmax(0, 1fr) auto; gap: 5px 8px; align-items: center; font-size: 12.5px; }
.ov-slegend .dot { width: 10px; height: 10px; border-radius: 50%; }
.ov-slegend .n { font-family: var(--font-mono); font-weight: 700; text-align: right; font-size: 13px; }
.ov-slegend .items { color: var(--muted); font-family: var(--font-mono); font-size: 11.5px; text-align: right; white-space: nowrap; }
.ov-slegend .ackrow { grid-column: 1 / -1; color: var(--muted); font-size: 12px; border-top: 1px solid var(--border); padding-top: 6px; margin-top: 2px; }
.ov-kpis { display: grid; grid-template-columns: repeat(5, 1fr); }
@media (max-width: 760px) { .ov-kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .ov-kpis { grid-template-columns: repeat(2, 1fr); } }
.ov-kpi { padding: 12px 14px 11px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ov-kpi:nth-child(5n) { border-right: none; } .ov-kpi:nth-last-child(-n+5) { border-bottom: none; }
@media (max-width: 760px) { .ov-kpi:nth-child(5n) { border-right: 1px solid var(--border); } .ov-kpi:nth-child(3n) { border-right: none; } .ov-kpi:nth-last-child(-n+5) { border-bottom: 1px solid var(--border); } }
.ov-kpi .kt { font-size: 11.5px; color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.ov-kpi .kt .ov-ico { width: 14px; height: 14px; color: var(--muted); }
.ov-kpi .kn { font-family: var(--font-mono); font-size: 22px; font-weight: 600; line-height: 1.1; color: var(--text); }
.ov-kpi .ks { font-size: 11.5px; color: var(--muted); white-space: normal; line-height: 14px; height: 28px; overflow: hidden; }
.ov-kpi .ks.bad { color: var(--ov-crit-text); font-weight: 600; } .ov-kpi .ks.warn { color: var(--ov-att-text); font-weight: 600; }

/* ── "part of this page could not be read" ─────────────────────────── */
/* The answer has always carried load_errors and nothing ever displayed it. A tile that fails to load does say so on
   its own card ("no data", with the reason), and it is left out of the counts so it can colour nothing — but the
   page as a whole still read like a healthy estate. This one line says plainly that part of it is missing. */
.ov-degraded { display: flex; align-items: center; gap: 9px; padding: 11px 15px; margin-bottom: 16px; font-size: 13px; color: var(--ov-att-text); border-left: 4px solid var(--ov-att); }
.ov-degraded .ov-ico { width: 15px; height: 15px; flex: none; }

/* ── "Needs action now" panels ─────────────────────────────────────────────── */
.ov-needs { border-left: 4px solid var(--ov-crit); overflow: hidden; margin-bottom: 22px; }
.ov-needs.clear { border-left-color: var(--ov-ok); }
.ov-needs-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.ov-needs-h h2 { margin: 0; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.ov-needs-h h2 .pdot { width: 10px; height: 10px; border-radius: 50%; background: var(--ov-crit); box-shadow: 0 0 0 3px var(--ov-crit-fill); }
.ov-needs.clear .ov-needs-h h2 .pdot { background: var(--ov-ok); box-shadow: 0 0 0 3px var(--ov-ok-fill); }
.ov-needs-h .sub { color: var(--muted); font-size: 12.5px; }
.ov-needs-h .right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ov-needs .empty { padding: 14px 16px; color: var(--ov-ink-2); font-size: 13px; }
.ov-ntab { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.ov-ntab th { text-align: left; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 7px 12px; border-bottom: 1px solid var(--border); background: var(--ov-surface-2); white-space: nowrap; }
.ov-ntab td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.ov-ntab tbody:last-child tr:last-child td { border-bottom: none; }
.ov-ntab td.c-cust { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-ntab td.c-what .t { font-weight: 600; } .ov-ntab td.c-what .s { color: var(--muted); font-size: 12px; }
.ov-ntab td.c-topic { color: var(--ov-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-ntab td.c-topic span { display: inline-flex; align-items: center; gap: 6px; } .ov-ntab td.c-topic .ov-ico { width: 15px; height: 15px; color: var(--muted); }
.ov-ntab td.c-open { font-family: var(--font-mono); font-size: 12px; white-space: nowrap; color: var(--ov-ink-2); }
.ov-ntab td.c-open b { font-weight: 700; color: var(--text); } .ov-ntab td.c-open small { display: block; color: var(--muted); font-size: 11px; white-space: normal; }
.ov-ntab td.c-act { text-align: right; white-space: nowrap; }
/* — the tick box and the action's reference number */
.ov-ntab th.c-sel, .ov-ntab td.c-sel { width: 34px; padding-right: 0; text-align: center; }
.ov-ntab td.c-sel input, .ov-ntab th.c-sel input { width: 15px; height: 15px; cursor: pointer; accent-color: var(--ov-accent); }
.ov-ntab td.c-sel input:disabled { cursor: default; opacity: 0.35; }
.ov-ntab th.c-num, .ov-ntab td.c-num { width: 62px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.ov-ntab td.c-num { font-weight: 700; color: var(--ov-ink-2); }
.ov-ntab tr.acked td.c-num { font-weight: 600; color: var(--muted); }
.ov-selbar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--ov-accent-soft); font-size: 12.5px; }
.ov-selbar .n { font-weight: 700; color: var(--text); }
.ov-selbar .ov-in { flex: 1 1 240px; }
.ov-selbar .err { color: var(--ov-crit-text); flex-basis: 100%; }
.ov-ntab tr.grp td { background: var(--ov-surface-2); padding: 7px 12px; font-weight: 700; font-size: 12.5px; }
.ov-ntab tr.grp td .ov-cnt { margin-left: 8px; }
.ov-ntab tr.acked td { background: var(--ov-surface-2); color: var(--muted); }
.ov-ntab tr.acked td.c-what .t { color: var(--ov-ink-2); font-weight: 500; }
.ov-ntab tr.sev-att td.c-what .t { font-weight: 500; }
.ov-ntab .ackinfo { font-size: 11.5px; color: var(--muted); font-family: var(--font-mono); }
.ov-ackb { border: 1px solid var(--ov-border-strong); background: var(--surface); color: var(--ov-ink-2); border-radius: 7px; padding: 4px 10px; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; font-family: inherit; }
.ov-ackb:hover { border-color: var(--ov-accent); color: var(--ov-accent); }
.ov-ackb.ghost { border-style: dashed; color: var(--muted); }
.ov-ackform td { background: var(--ov-surface-2); }
.ov-ackform .f { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; }
.ov-ackform .f .ov-in { flex: 1 1 260px; }
.ov-ackform .err { color: var(--ov-crit-text); flex-basis: 100%; }
.ov-in { font-size: 13px; padding: 7px 10px; border: 1px solid var(--ov-border-strong); border-radius: 8px; background: var(--surface); color: var(--text); min-width: 0; font-family: inherit; }
.ov-nfoot { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--border); background: var(--ov-surface-2); font-size: 12.5px; color: var(--ov-ink-2); }
.ov-nfoot button { border: 1px solid var(--ov-border-strong); background: var(--surface); color: var(--ov-accent); border-radius: 7px; padding: 4px 10px; font-weight: 600; cursor: pointer; font-size: 12px; font-family: inherit; }
.ov-nfoot .fill { flex: 1; }
.ov-grpwrap { padding: 12px 14px 4px; display: flex; flex-direction: column; gap: 12px; }
.ov-grpbox { border: 1px solid var(--ov-border-strong); border-radius: 10px; overflow: hidden; background: var(--surface); }
.ov-grpbox .gh { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--ov-surface-3); border-bottom: 1px solid var(--ov-border-strong); font-weight: 700; font-size: 14px; flex-wrap: wrap; }
.ov-grpbox .gh a { margin-left: auto; font-size: 12px; }
@media (max-width: 760px) {
  .ov-ntab thead { display: none; }
  .ov-ntab tr { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--border); }
  .ov-ntab td { border-bottom: none; padding: 4px 12px; }
  .ov-ntab tr td:last-child { padding-bottom: 10px; }
  .ov-ntab td.c-cust, .ov-ntab td.c-what, .ov-ntab td.c-topic, .ov-ntab td.c-open, .ov-ntab td.c-act { width: auto; grid-column: 1 / -1; text-align: left; }
}

/* ── section header ────────────────────────────────────────────────────────── */
.ov-sh { display: flex; align-items: center; gap: 10px; margin: 26px 0 10px; }
.ov-sh h2 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.ov-sh .sub { color: var(--muted); font-size: 12.5px; }
.ov-sh::after { content: ''; flex: 1; height: 1px; background: var(--ov-border-strong); margin-left: 6px; }

/* ── customer cards ────────────────────────────────────────────────────────── */
.ov-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(620px, 1fr)); gap: 22px; }
@media (max-width: 700px) { .ov-cards { grid-template-columns: 1fr; } }
.ov-card { background: var(--surface); border: 1px solid var(--ov-border-strong); border-radius: 14px; box-shadow: var(--ov-shadow); overflow: hidden; display: flex; flex-direction: column; }
.ov-card-h { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; padding: 14px 18px; align-items: center; border-bottom: 1px solid var(--border); background: var(--ov-surface-2); }
.ov-card-h .name { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; overflow-wrap: anywhere; }
.ov-card-h .since { font-size: 12px; color: var(--muted); margin-top: 3px; }
.ov-card-h .ov-tally { margin-top: 6px; }
.ov-card-h .right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ov-expand { border: 1px solid var(--ov-border-strong); background: var(--surface); color: var(--ov-accent); border-radius: 8px; padding: 5px 11px; font-size: 12px; font-weight: 600; cursor: pointer; display: inline-block; }
.ov-expand:hover { background: var(--ov-accent-soft); text-decoration: none; }
.ov-inv { display: grid; grid-template-columns: repeat(9, 1fr); border-bottom: 1px solid var(--border); }
@media (max-width: 700px) { .ov-inv { grid-template-columns: repeat(3, 1fr); } }
.ov-inv .cell { padding: 7px 6px 6px; border-right: 1px solid var(--border); min-width: 0; display: grid; grid-template-rows: 14px 20px 14px; gap: 1px; text-align: center; }
.ov-inv .cell:last-child { border-right: none; }
.ov-inv .it { font-size: 10px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; letter-spacing: 0.01em; }
.ov-inv .it .ov-ico { display: none; }
.ov-inv .iv { font-family: var(--font-mono); font-size: 16px; font-weight: 600; line-height: 20px; }
.ov-inv .is { font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 14px; }
.ov-inv .is.bad { color: var(--ov-crit-text); font-weight: 600; } .ov-inv .is.warn { color: var(--ov-att-text); font-weight: 600; }
.ov-inv.xinv { border-top: 1px solid var(--border); border-bottom: none; }
.ov-inv.xinv .cell { text-align: left; padding: 10px 14px 9px; grid-template-rows: 18px 24px 16px; }
.ov-inv.xinv .it { display: flex; align-items: center; gap: 5px; font-size: 11.5px; } .ov-inv.xinv .it .ov-ico { display: block; width: 14px; height: 14px; }
.ov-inv.xinv .iv { font-size: 20px; line-height: 24px; } .ov-inv.xinv .is { font-size: 11.5px; line-height: 16px; }
.ov-tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px 14px; }
@media (max-width: 700px) { .ov-tgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .ov-tgrid { grid-template-columns: 1fr; } }
/* the card tile: title band · headline · detail · footer */
.ov-tile { border: 1px solid var(--border); border-left-width: 3px; border-radius: 9px; padding: 9px 11px 8px; min-width: 0; background: var(--surface); display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 3px; }
.ov-tile.b-ok { border-left-color: var(--ov-ok); } .ov-tile.b-att { border-left-color: var(--ov-att); } .ov-tile.b-crit { border-left-color: var(--ov-crit); } .ov-tile.b-stale { border-left-color: var(--ov-stale); } .ov-tile.b-info { border-left-color: var(--ov-info); }
.ov-tile.custom { border-style: dashed; border-left-style: solid; }
.ov-tile .th { display: flex; justify-content: space-between; align-items: center; gap: 6px; min-width: 0; flex-wrap: nowrap; margin: -9px -11px 3px; padding: 6px 9px; border-bottom: 1px solid var(--border); background: var(--ov-surface-2); }
.ov-tile.b-crit .th { background: var(--ov-crit-fill); border-bottom-color: var(--ov-crit-edge); } .ov-tile.b-att .th { background: var(--ov-att-fill); border-bottom-color: var(--ov-att-edge); } .ov-tile.b-ok .th { background: var(--ov-ok-fill); border-bottom-color: var(--ov-ok-edge); } .ov-tile.b-stale .th { background: var(--ov-stale-fill); border-bottom-color: var(--ov-stale-edge); } .ov-tile.b-info .th { background: var(--ov-info-fill); border-bottom-color: var(--ov-info-edge); }
.ov-tile .th .lab { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1 1 auto; font-size: 13px; font-weight: 700; color: var(--text); letter-spacing: -0.005em; }
.ov-tile .th .lab > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-tile .th .ic { width: 22px; height: 22px; border-radius: 6px; background: var(--surface); border: 1px solid var(--ov-border-strong); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--ov-ink-2); }
.ov-tile .th .ic .ov-ico { width: 14px; height: 14px; }
.ov-tile .hl { font-family: var(--font-mono); font-size: 14px; letter-spacing: -0.01em; font-weight: 600; line-height: 1.2; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-tile .hl.t-stale { color: var(--ov-stale-text); }
.ov-tile .sub { font-size: 11.5px; color: var(--ov-ink-2); line-height: 15px; height: 30px; overflow: hidden; }
.ov-tile .sub .ackd { color: var(--muted); }
.ov-tile .spacer { min-height: 0; }
.ov-tile .tf { display: flex; flex-direction: column; gap: 4px; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 6px; margin-top: 3px; }
.ov-tile .tf .tf1 { display: flex; align-items: center; gap: 7px; min-width: 0; }
.ov-tile .tf .tf1 > span:last-child, .ov-tile .tf .tf2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-tile .tf .old { color: var(--ov-att-text); font-weight: 600; }
.ov-ops { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); background: var(--ov-surface-2); }
@media (max-width: 700px) { .ov-ops { grid-template-columns: repeat(2, 1fr); } }
.ov-ops .cell { padding: 8px 12px; border-right: 1px solid var(--border); min-width: 0; display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--ov-ink-2); }
.ov-ops .cell:last-child { border-right: none; }
.ov-ops .cell .ov-ico { width: 15px; height: 15px; color: var(--muted); }
.ov-ops .cell b { font-family: var(--font-mono); font-weight: 700; color: var(--text); }
.ov-ops .cell .l { color: var(--muted); }
.ov-ops .cell.bad b { color: var(--ov-crit-text); } .ov-ops .cell.warn b { color: var(--ov-att-text); }
.ov-notcfg { padding: 7px 14px; border-top: 1px dashed var(--ov-border-strong); font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; background: var(--surface); }
.ov-notcfg span.n { color: var(--ov-ink-2); font-weight: 500; }
.ov-notcfg a { margin-left: auto; }

/* ── one customer ──────────────────────────────────────────────────────────── */
.ov-crumb { font-size: 13px; color: var(--muted); margin-bottom: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ov-crumb .fill { flex: 1; }
.ov-xhead { padding: 18px 22px; display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; }
@media (max-width: 900px) { .ov-xhead { grid-template-columns: auto 1fr; } .ov-xhead .ov-xdays { grid-column: 1 / -1; } }
.ov-xhead .name { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; overflow-wrap: anywhere; }
.ov-xhead .meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.ov-xhead .ov-tally { margin-top: 10px; font-size: 13px; }
.ov-xdays { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.ov-xdays .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.ov-xdays .lg-days { display: flex; gap: 6px; }
.ov-xdays .dcol { display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.ov-xdays .dcol i { width: 26px; height: 26px; border-radius: 6px; display: block; background: var(--ov-track); }
.ov-xdays .dcol i.today { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--ov-ink-2); }
.ov-xdays .dcol .dn { color: var(--text); font-weight: 700; }
.ov-xtiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 980px) { .ov-xtiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .ov-xtiles { grid-template-columns: 1fr; } }
/* one-customer tile: seven fixed rows — 1 title band · 2 history / time frame · 3 headline · 4 detail · 5 since + data stamp · 6 facts and lists (grows) · 7 links */
.ov-xtile { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--ov-border-strong); border-radius: 12px; box-shadow: var(--ov-shadow); padding: 0; display: grid; grid-template-rows: 46px 28px 34px 34px 30px auto minmax(0, 1fr) auto; row-gap: 6px; overflow: hidden; }   /* : the Open issues block is the sixth row (auto); the details row keeps the 1fr slot */
.ov-xtile > * { padding-inline: 16px; min-width: 0; }
.ov-xtile.b-ok { border-left-color: var(--ov-ok); } .ov-xtile.b-att { border-left-color: var(--ov-att); } .ov-xtile.b-crit { border-left-color: var(--ov-crit); } .ov-xtile.b-stale { border-left-color: var(--ov-stale); } .ov-xtile.b-info { border-left-color: var(--ov-info); }
.ov-xtile .th { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid var(--border); background: var(--ov-surface-2); }
.ov-xtile.b-crit .th { background: var(--ov-crit-fill); border-bottom-color: var(--ov-crit-edge); } .ov-xtile.b-att .th { background: var(--ov-att-fill); border-bottom-color: var(--ov-att-edge); } .ov-xtile.b-ok .th { background: var(--ov-ok-fill); border-bottom-color: var(--ov-ok-edge); } .ov-xtile.b-stale .th { background: var(--ov-stale-fill); border-bottom-color: var(--ov-stale-edge); } .ov-xtile.b-info .th { background: var(--ov-info-fill); border-bottom-color: var(--ov-info-edge); }
.ov-xtile .th .name { font-weight: 800; font-size: 15.5px; display: flex; align-items: center; gap: 10px; letter-spacing: -0.01em; min-width: 0; white-space: normal; line-height: 1.15; }
.ov-xtile .th .ov-ico-chip { width: 32px; height: 32px; background: var(--surface); border-color: var(--ov-border-strong); } .ov-xtile .th .ov-ico-chip .ov-ico { width: 19px; height: 19px; }
.ov-xtile .th .thr { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.ov-xtile .hist { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.ov-xtile .hist .ov-days { align-items: flex-start; }
.ov-xtile .hl { display: flex; align-items: center; font-family: var(--font-mono); font-size: 22px; font-weight: 600; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-xtile .hl.t-stale { color: var(--ov-stale-text); }
.ov-xtile .sub { font-size: 12.5px; color: var(--ov-ink-2); white-space: normal; overflow: hidden; line-height: 17px; max-height: 34px; }
.ov-xtile .stl { margin-inline: 16px; padding: 0 9px; align-items: center; align-content: center; flex-wrap: wrap; column-gap: 8px; white-space: nowrap; line-height: 14px; overflow: hidden; height: 30px; display: flex; font-size: 12px; color: var(--ov-ink-2); background: var(--ov-surface-2); border-radius: 8px; }
.ov-xtile .stl > span { overflow: hidden; text-overflow: ellipsis; }
.ov-xtile .stl .right { margin-left: auto; }
.ov-xtile .stl .old { color: var(--ov-att-text); font-weight: 600; }
.ov-xtile .det { padding-top: 2px; display: flex; flex-direction: column; gap: 10px; align-self: start; }
.ov-xtile .links { padding: 8px 16px 12px; margin-top: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; border-top: 1px solid var(--border); }
.ov-kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 12px; align-content: start; }
.ov-kv .k { color: var(--muted); white-space: nowrap; }
.ov-kv .x { color: var(--text); overflow-wrap: anywhere; }
.ov-kv .x.ackd { color: var(--muted); }
/* — "Open issues" block on every tile: why the tile is red or yellow, or "No issues, all is OK" */
.ov-iss { margin-inline: 16px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.ov-iss .lt { display: flex; align-items: center; gap: 8px; padding: 5px 10px; background: var(--ov-surface-2); font-size: 11.5px; font-weight: 600; color: var(--ov-ink-2); border-bottom: 1px solid var(--border); }
.ov-iss .lt .ln { font-family: var(--font-mono); font-size: 11px; color: var(--muted); font-weight: 600; margin-left: auto; }
.ov-iss ul { list-style: none; margin: 0; padding: 0; }
.ov-iss li { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; padding: 5px 10px 5px 8px; font-size: 12.5px; border-bottom: 1px solid var(--border); border-left: 3px solid var(--ov-stale); overflow-wrap: anywhere; }
.ov-iss li:last-child { border-bottom: none; }
.ov-iss li.iss-crit { border-left-color: var(--ov-crit); }
.ov-iss li.iss-att { border-left-color: var(--ov-att); }
.ov-iss li.iss-ack { border-left-color: var(--ov-stale); }
.ov-iss li.iss-ack .t { color: var(--ov-ink-2); font-weight: 500; text-decoration: line-through; text-decoration-color: var(--muted); }
.ov-iss li .n { font-family: var(--font-mono); font-size: 11px; color: var(--muted); align-self: start; padding-top: 1px; }
.ov-iss li .n:empty { display: none; }
.ov-iss li .t { color: var(--text); font-weight: 600; }
.ov-iss li .s { grid-column: 2; color: var(--ov-ink-2); font-size: 12px; }
.ov-iss li .s:empty { display: none; }
.ov-iss .none { padding: 6px 10px; font-size: 12.5px; color: var(--ov-ok-text); font-weight: 600; }
.ov-iss .more { padding: 5px 10px; font-size: 12px; color: var(--muted); background: var(--ov-surface-2); border-top: 1px solid var(--border); }
.ov-xtile.b-stale .ov-iss .none { color: var(--ov-stale-text); font-weight: 500; }
.ov-lst { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.ov-lst .lt { display: flex; align-items: center; gap: 8px; padding: 5px 10px; background: var(--ov-surface-2); font-size: 11.5px; font-weight: 600; color: var(--ov-ink-2); border-bottom: 1px solid var(--border); }
.ov-lst .lt .ln { font-family: var(--font-mono); font-size: 11px; color: var(--muted); font-weight: 600; margin-left: auto; }
.ov-lst ul { list-style: none; margin: 0; padding: 0; }
.ov-lst li { padding: 5px 10px; font-size: 12.5px; border-bottom: 1px solid var(--border); font-family: var(--font-mono); color: var(--text); overflow-wrap: anywhere; }
.ov-lst li:last-child { border-bottom: none; }
.ov-lst .lmore { display: block; padding: 5px 10px; font-size: 12px; border-top: 1px solid var(--border); background: var(--ov-surface-2); }
.ov-ctag { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ov-accent); border: 1px solid var(--ov-accent); border-radius: 4px; padding: 0 4px; line-height: 1.5; }
.ov-pinb { width: 26px; height: 26px; border-radius: 6px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; flex-shrink: 0; }
.ov-pinb .ov-ico { width: 15px; height: 15px; }
.ov-pinb.on .ov-ico { fill: currentColor; fill-opacity: 0.25; }
.ov-pinb:hover, .ov-pinb:focus-visible { background: var(--surface); border-color: var(--ov-border-strong); color: var(--text); outline: none; }
.ov-unpinned { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 16px; }
.ov-unpinned .lead { font-size: 12.5px; color: var(--muted); margin-right: 4px; flex-basis: 100%; }
.ov-uchip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px dashed var(--ov-border-strong); border-radius: 8px; background: var(--surface); font-size: 12.5px; font-weight: 600; color: var(--ov-ink-2); }
.ov-uchip > .ov-ico { width: 15px; height: 15px; color: var(--muted); }
.ov-uchip .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ov-xcard { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--ov-shadow); padding: 16px 20px; }
.ov-events { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 24px; }
.ov-ev { display: flex; gap: 12px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.ov-ev .when { font-family: var(--font-mono); font-size: 11px; color: var(--muted); white-space: nowrap; min-width: 84px; }
.ov-ev .who { color: var(--muted); }

/* ── legend ────────────────────────────────────────────────────────────────── */
.ov-legend { margin-top: 30px; padding: 18px 20px; }
.ov-legend h2 { margin: 0 0 6px; font-size: 15px; }
.ov-legend p { margin: 0 0 10px; color: var(--muted); font-size: 13px; max-width: 90ch; }
.ov-legend p b { color: var(--ov-ink-2); }
.ov-legend .lg { overflow-x: auto; }
.ov-legend table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.ov-legend th, .ov-legend td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.ov-legend tr:last-child td { border-bottom: none; }
.ov-legend th { color: var(--muted); font-weight: 600; font-size: 11.5px; }

@media (prefers-reduced-motion: no-preference) {
  .ov-card, .ov-expand, .ov-ackb { transition: background-color 120ms ease, box-shadow 160ms ease, border-color 120ms ease; }
}

/* ── custom tile editor (design, mock-up Board C; OVR-6 ) ─────────────────────────────────────── */
.ov-editor { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 980px) { .ov-editor { grid-template-columns: 1fr; } }
.ov-ed-intro { margin: 0 0 14px; color: var(--muted); font-size: 13px; max-width: 70ch; }
.ov-field { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.ov-field:last-of-type { border-bottom: none; }
.ov-field .fl { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.ov-field .help { font-size: 12px; color: var(--muted); }
.ov-field .in { width: 100%; max-width: 420px; }
.ov-field .in.num { width: 76px; text-align: center; display: inline-block; }
.ov-field .inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; padding-left: 24px; }
.ov-field .inline.off { opacity: 0.5; }
.ov-field .opt { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; cursor: pointer; }
.ov-field .opt input { margin-top: 3px; }
.ov-field .opt.off { opacity: 0.55; cursor: default; }
.ov-icopick { display: flex; flex-wrap: wrap; gap: 6px; }
.ov-icob { width: 36px; height: 36px; border: 1px solid var(--ov-border-strong); border-radius: 8px; background: var(--surface); color: var(--ov-ink-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ov-icob.on { border-color: var(--ov-accent); background: var(--ov-accent-soft); color: var(--ov-accent); }
.ov-icob .ov-ico { width: 18px; height: 18px; }
.ov-frow { display: grid; grid-template-columns: minmax(0, 1.4fr) 100px 130px minmax(0, 1.2fr) 32px; gap: 6px; align-items: center; }
@media (max-width: 700px) { .ov-frow { grid-template-columns: 1fr 1fr; } }
.ov-frow .rm { width: 32px; height: 32px; border: 1px solid var(--ov-border-strong); border-radius: 8px; background: var(--surface); color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; }
.ov-frow .rm:disabled { opacity: 0.4; cursor: default; }
.ov-addf { align-self: flex-start; }
.ov-custlist { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin-left: 24px; display: flex; flex-direction: column; gap: 8px; background: var(--ov-surface-2); }
.ov-custlist .clh { display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--muted); }
.ov-custlist .clh a { cursor: pointer; }
.ov-clgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 12px; }
.ov-clgrid label { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.ov-btnrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-top: 14px; }
.ov-btnrow .fill { flex: 1; }
.ov-ed-err { border: 1px solid var(--ov-crit-edge); background: var(--ov-crit-fill); color: var(--ov-crit-text); border-radius: 8px; padding: 8px 12px; font-size: 13px; margin-bottom: 12px; }
.ov-prevwrap { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 12px; }
.ov-prevwrap .ov-tile { max-width: 260px; }
.ov-ptable { width: 100%; border-collapse: collapse; font-size: 13px; }
.ov-ptable td { padding: 6px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.ov-ptable tr:last-child td { border-bottom: none; }
.ov-ptable td.n { text-align: right; font-family: var(--font-mono); width: 60px; }
.ov-ptable tr.off td { color: var(--muted); }
.ov-ptable .note { font-size: 11px; color: var(--muted); margin-left: 6px; }
.ov .ov-editlink { font-size: 11px; color: var(--ov-accent); margin-left: 6px; text-decoration: none; }
.ov .ov-editlink:hover { text-decoration: underline; }
