/* Lite mode (html.as-lite, set by lite-mode.js on weak phones and slow connections).
 *
 * Same colours and shapes, no frosted-glass blur: cards become solid and the page background
 * stops being re-painted on every scroll. Loaded last on every page so it wins over the glass
 * layers without touching them.
 */
html.as-lite,
html.as-lite.app-glass {
  --rg-glass-bg: #ffffff;
  --rg-blur: none;
  --as-surface-glass: var(--as-surface-glass-solid, #ffffff);
  --as-glass-blur: 0px;
  --as-shadow-glow-primary: var(--as-shadow-1, 0 1px 3px rgba(16, 25, 43, 0.08));
}

html.as-lite *,
html.as-lite *::before,
html.as-lite *::after {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* A fixed background is re-composited on every scroll frame on many Android browsers. */
html.as-lite body,
html.as-lite body #messages-standalone-root,
html.as-lite body #email-standalone-root {
  background-attachment: scroll !important;
}
