/* A match the filter found: the theme's warning shade, the usual find-in-page
 * yellow, mixed toward the surface so the text keeps its own color. */
mark.search-highlight {
  background-color: color-mix(in oklab, var(--theme-warning) 35%, transparent);
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
}

/*
 * ANSI colors for LogViewer, from the theme's code tokens.
 *
 * The `anser` library is invoked with { use_classes: true }, so ANSI codes
 * become classes like `ansi-red-fg` / `ansi-black-bg` rather than inline
 * styles. Each maps to a `--theme-ansi-*` token, which the theme solves for
 * contrast against the log's surface, so every color reads in every theme;
 * bright variants share their color's token. White and black map to the
 * theme's text tones, so they never vanish into the surface.
 */
.ansi-black-fg,
.ansi-bright-black-fg {
  color: var(--theme-ansi-black);
}
.ansi-red-fg,
.ansi-bright-red-fg {
  color: var(--theme-ansi-red);
}
.ansi-green-fg,
.ansi-bright-green-fg {
  color: var(--theme-ansi-green);
}
.ansi-yellow-fg,
.ansi-bright-yellow-fg {
  color: var(--theme-ansi-yellow);
}
.ansi-blue-fg,
.ansi-bright-blue-fg {
  color: var(--theme-ansi-blue);
}
.ansi-magenta-fg,
.ansi-bright-magenta-fg {
  color: var(--theme-ansi-magenta);
}
.ansi-cyan-fg,
.ansi-bright-cyan-fg {
  color: var(--theme-ansi-cyan);
}
.ansi-white-fg,
.ansi-bright-white-fg {
  color: var(--theme-ansi-white);
}
.ansi-black-bg,
.ansi-bright-black-bg {
  background-color: color-mix(in oklab, var(--theme-ansi-black) 18%, transparent);
}
.ansi-red-bg,
.ansi-bright-red-bg {
  background-color: color-mix(in oklab, var(--theme-ansi-red) 18%, transparent);
}
.ansi-green-bg,
.ansi-bright-green-bg {
  background-color: color-mix(in oklab, var(--theme-ansi-green) 18%, transparent);
}
.ansi-yellow-bg,
.ansi-bright-yellow-bg {
  background-color: color-mix(in oklab, var(--theme-ansi-yellow) 18%, transparent);
}
.ansi-blue-bg,
.ansi-bright-blue-bg {
  background-color: color-mix(in oklab, var(--theme-ansi-blue) 18%, transparent);
}
.ansi-magenta-bg,
.ansi-bright-magenta-bg {
  background-color: color-mix(in oklab, var(--theme-ansi-magenta) 18%, transparent);
}
.ansi-cyan-bg,
.ansi-bright-cyan-bg {
  background-color: color-mix(in oklab, var(--theme-ansi-cyan) 18%, transparent);
}
.ansi-white-bg,
.ansi-bright-white-bg {
  background-color: color-mix(in oklab, var(--theme-ansi-white) 18%, transparent);
}
