/* Overhead page (/overhead). Token-only: colours --c-*, type --fs-*, space --s-*, radii --r-*, sizes --tap/--icon-*.
 * Phone = one column (tabs, radar, chips, list). Desktop >= 1024 = radar and list side by side. Red Vision works through --c-* only. */
.oh { width: 100%; box-sizing: border-box; max-width: var(--content-max); margin: 0 auto; padding: var(--s-3); color: var(--c-text); font-family: var(--font-ui); }
.oh [hidden] { display: none !important; }
.oh-card { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-3); }

/* ---------- Tabs: icon + short label + count ---------- */
.oh-top { display: flex; align-items: center; gap: var(--s-2); }
.oh-seg { display: flex; flex: 1; min-width: 0; gap: var(--s-1); padding: var(--s-1); background: var(--c-surface-2); border-radius: var(--r-pill); }
.oh-tab { flex: 1; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-1); min-height: var(--tap); padding: 0 var(--s-2); border: 0; border-radius: var(--r-pill); background: transparent; color: var(--c-text-2); font: 600 var(--fs-14) / 1 var(--font-ui); cursor: pointer; }
.oh-tab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oh-tab[aria-selected="true"] { background: var(--c-accent-bg); color: var(--c-accent); }
.oh-tab:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.oh-n { font-family: var(--font-num); font-size: var(--fs-12); font-variant-numeric: tabular-nums; }
@media (max-width: 400px) { .oh-tab span { display: none; } }
.oh-live { display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); color: var(--c-text-3); }
.oh-live.is-on { color: var(--c-ok); }
.oh-note { margin: 0; padding: var(--s-2) var(--s-3); border-radius: var(--r-md); background: var(--c-surface-2); color: var(--c-text-2); font-size: var(--fs-12); }

/* ---------- Body: radar + list ---------- */
.oh-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
.oh-plot { display: flex; flex-direction: column; align-items: center; gap: var(--s-2); min-width: 0; }
.oh-plot canvas { display: block; max-width: 100%; touch-action: manipulation; }
.oh-plot-foot { display: flex; align-items: center; justify-content: center; gap: var(--s-2); width: 100%; }
.oh-range { display: inline-flex; align-items: center; gap: var(--s-1); margin-inline-end: auto; color: var(--c-text-2); font-size: var(--fs-12); }
.oh-range b { font: 600 var(--fs-14) / 1 var(--font-num); color: var(--c-text); }
.oh-side { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
@media (min-width: 1024px) {
    .oh { padding: var(--s-4); }
    .oh-card { padding: var(--s-4); }
    .oh-body { grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); align-items: start; gap: var(--s-5); }
    .oh-plot { position: sticky; top: calc(var(--topbar-h) + var(--s-3)); }
    .oh-rows { max-height: calc(100vh - 260px); overflow-y: auto; }
}

/* ---------- Rows ---------- */
.oh-rows { margin: 0; padding: 0; list-style: none; }
.oh-row { min-height: 56px; }
.oh-row:focus-visible { outline: 2px solid var(--c-focus); outline-offset: -2px; }
.oh-row.sel { background: var(--c-warn-bg); }
.oh-row.sel .ds-row__icon { color: var(--c-warn); }
.oh-row.in-view .ds-row__icon { background: var(--c-accent-bg); color: var(--c-accent); }
.oh-row .ds-row__sub .ds-icon { width: var(--icon-sm); height: var(--icon-sm); vertical-align: -3px; color: var(--c-accent); }
.oh-row .ds-row__value { color: var(--c-text); }
.oh-ext { flex: none; color: var(--c-text-3); }
.oh-ext:hover { color: var(--c-accent); }
.oh-skel { display: flex; align-items: center; gap: var(--s-3); min-height: 56px; padding: var(--s-2) var(--s-4); border-bottom: 1px solid var(--c-divider); }
.oh-skel .ds-skeleton:first-child { flex: none; width: 36px; height: 36px; border-radius: var(--r-md); }
.oh-skel .ds-skeleton:nth-child(2) { flex: 1; }
.oh-skel .ds-skeleton:last-child { flex: none; width: 48px; }
.oh-empty { list-style: none; }
.oh-empty .ds-btn { margin-top: var(--s-1); }
.ds-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
