/* BioStudio AI — "Reduce transparency" display preference.
 *
 * The shell paints 252 backdrop-filter surfaces across 30 stylesheets: the
 * taskbar and Dock, the Start menu, Launchpad, context menus, flyouts, window
 * overlays, and most themes. backdrop-filter is among the most expensive things
 * a browser can be asked to do — every element that sets one gets its own
 * compositing layer, and the blur is recomputed whenever anything behind it
 * moves. Opening, closing, dragging or resizing a window makes every
 * translucent surface it passes under re-blur, every frame.
 *
 * Each of those radii is written as blur(min(Npx, var(--bs-max-blur, Npx))), so
 * capping one custom property caps every blur in the platform at once, with no
 * per-selector overrides and no new compositing layers.
 *
 * The cap deliberately does not go to 0. Those surfaces use translucent
 * backgrounds that assume a blur behind them; removing it entirely would leave
 * text sitting on the wallpaper. Blur cost scales sharply with radius, so 6px
 * keeps every theme legible while removing most of the per-frame work.
 *
 * apply-preferences.js toggles .reduce-transparency on <html>. Nothing changes
 * unless the user turns the preference on.
 */

html.reduce-transparency {
  --bs-max-blur: 6px;
}
