/* uPlot theming to match the console palette + custom hover tooltip. */

.uplot, .uplot * { font-family: var(--mono); }
.u-wrap { position: relative; }

/* Recessive axis/legend text */
.u-legend { display: none; } /* we render our own legend */
.u-axis { color: var(--ink-muted); }

/* Cursor crosshair line */
.u-cursor-x, .u-cursor-y { border-color: var(--border-strong) !important; }
.u-cursor-pt { border-width: 2px !important; }

/* Custom tooltip */
.u-tip {
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  min-width: 130px;
  z-index: 20;
  will-change: transform;
}
.u-tip__time { color: var(--ink-muted); font-size: 10px; letter-spacing: 0.04em; margin-bottom: 6px; }
.u-tip__row { display: flex; align-items: center; gap: 7px; padding: 1.5px 0; }
.u-tip__sw { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.u-tip__lbl { color: var(--ink-2); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.u-tip__val { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
