/* Low graphics (lowgfx.js): the page is solid, as with prefers-reduced-transparency: no backdrop blur, no glass edge, no canvases of the glass sidebar. */
:root[data-lowgfx] {
  --glass: var(--surface);
  --glass-strong: var(--surface);
  --sidebar: var(--surface);
  --gl-veil-0: light-dark(#f2f3f7, #2c2f42);
  --gl-blur: none;
}
:root[data-lowgfx] *,
:root[data-lowgfx] *::before,
:root[data-lowgfx] *::after {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
:root[data-lowgfx] .gl-ring,
:root[data-lowgfx] .sg-body,
:root[data-lowgfx] .sg-line,
:root[data-lowgfx] .lq-canvas {
  display: none;
}
:root[data-lowgfx] .dialog::backdrop { background: rgba(0, 0, 0, 0.75); }
:root[data-lowgfx] #pc-view .pc-loader { background-color: var(--pc-bg); }
:root[data-lowgfx] #pc-view .pc-dialog::backdrop { background: rgba(0, 0, 0, 0.75); }

/* The glass tab bars (the server's tabs .lgtb and the look switch .lgsw, vendor/liquid-glass-*): in low graphics the bar is an opaque capsule in the colour it has with the glass,
   and the selected tab is a plain darker pill that slides (the lens, its position and size still come from the script) under the real tabs: no lens, no ink, no glass copy of the page. */
:root[data-lowgfx] { --lgtb-solid: #2a3045; --lgtb-pill: #181c28; }
:root[data-lowgfx][data-theme="light"] { --lgtb-solid: #c2c7ca; --lgtb-pill: #a4a9ad; }
@media (prefers-color-scheme: light) {
  :root[data-lowgfx]:not([data-theme="dark"]) { --lgtb-solid: #c2c7ca; --lgtb-pill: #a4a9ad; }
}
:root[data-lowgfx] .lgtb .lgtb-frost { background: var(--lgtb-solid) !important; }
:root[data-lowgfx] .lgtb :is(.lgtb-glow, .lgtb-glass, .lgtb-wk, .lgtb-wkm, .lgtb-tint, .lgtb-ink) { display: none !important; }
:root[data-lowgfx] .lgtb .lgtb-shine::before, :root[data-lowgfx] .lgtb .lgtb-shine::after { display: none !important; }
:root[data-lowgfx] .lgtb .lgtb-sw { transform: none !important; }
:root[data-lowgfx] .lgtb .lgtb-items { clip-path: none !important; z-index: 1; }
:root[data-lowgfx] .lgtb .lgtb-lens { background: var(--lgtb-pill); z-index: 0; }
:root[data-lowgfx] .lgsw .lgsw-frost { background: var(--lgtb-solid) !important; }
:root[data-lowgfx] .lgsw :is(.lgsw-glow, .lgsw-glass, .lgsw-wk, .lgsw-wkm, .lgsw-tint, .lgsw-ink) { display: none !important; }
:root[data-lowgfx] .lgsw .lgsw-shine::before, :root[data-lowgfx] .lgsw .lgsw-shine::after { display: none !important; }
:root[data-lowgfx] .lgsw .lgsw-sw { transform: none !important; }
:root[data-lowgfx] .lgsw .lgsw-items { clip-path: none !important; z-index: 1; }
:root[data-lowgfx] .lgsw .lgsw-lens { background: var(--lgtb-pill); z-index: 0; }
