/* hyperplot: tooltip dressing. THE ONE PORTAL EXCEPTION to the skin contract (SPEC §6).
   hx-plot appends its tooltip (div.hp-tip) to <body>, or to an open dialog or popover, never inside
   the chart's stage, so @scope ([data-skin="hyperplot"]) can't reach it. This file dresses it from
   @layer skin, selecting only hx-plot's own .hp-tip, with hyperplot's Trace values: a slip of the same
   glass, edged like the stage's bezel (they mirror skin-hyperplot.css: change both together). It holds
   no frame colours and no red. Loaded wherever a hyperplot chart is: Plate 001 and the hub. */
@layer skin {
  .hp-tip {
    color-scheme: dark;
    --hp-surface: oklch(0.209 0.013 196);    /* glass (= its --skin-bg) */
    --hp-text: oklch(0.94 0.029 101);        /* screen ink (= its --skin-ink), 14.9:1 on glass */
    --hp-text-muted: oklch(0.751 0.026 151); /* 8.1:1 on glass */
    --hp-series-1: oklch(0.909 0.18 102);    /* phosphor (= its accent) */
    --hp-series-2: oklch(0.695 0.127 221);
    --hp-series-3: oklch(0.535 0.178 342);
    --hp-series-4: oklch(0.693 0.167 57);
    --hp-series-5: oklch(0.589 0.106 98);    /* slots 5-7 are only the latency percentiles here: */
    --hp-series-6: oklch(0.749 0.144 100);   /* the skin's phosphor ramp (p50, p95, p99), so each */
    --hp-series-7: oklch(0.909 0.18 102);    /* key matches its trace */
    --hp-series-8: oklch(0.661 0.17 150);
    border-radius: 3px;
    border: 1px solid oklch(0.499 0.022 196); /* the bezel's lit edge: 3.5:1 on Signal black */
    box-shadow: inset 0 0 0 1px oklch(0.339 0.02 196), 0 6px 18px oklch(0 0 0 / 0.5);
    font: 400 0.75rem / 1.45 'IBM Plex Mono', ui-monospace, monospace;
    font-variant-numeric: tabular-nums;
    & .hp-key { block-size: 3px; border-radius: 1px; box-shadow: 0 0 3px currentColor; }
  }
}
