/* The colours of a full page. The Store, Settings and the Xenon menu read the same ones,
   because the menu's window opens the other two in place: going from one to the other
   changes the page and nothing else. */
.cst-overlay,
.settings-overlay,
.xm-frame {
  --cst-page: rgba(16, 19, 26, 0.86);
  --cst-rail: rgba(255, 255, 255, 0.04);
  --cst-well: rgba(255, 255, 255, 0.055);
  --cst-sep: rgba(255, 255, 255, 0.08);
  --cst-on: rgba(255, 255, 255, 0.14);
  --cst-text: #f2f4f3;
  --cst-muted: #a2a9ad;
  --cst-key: #6ee787;
  --cst-key-ink: #0b2412;
  --cst-gold: #ffd75e;
  --cst-sheet: rgba(255, 255, 255, 0.05);
  --cst-solid: rgb(16, 19, 26);
  --cst-danger: #ff7a6b;
}
:root[data-appearance="light"] .cst-overlay,
:root[data-appearance="light"] .settings-overlay,
:root[data-appearance="light"] .xm-frame {
  --cst-page: rgba(243, 244, 247, 0.9);
  --cst-rail: rgba(20, 24, 44, 0.035);
  --cst-well: rgba(20, 24, 44, 0.05);
  --cst-sep: rgba(20, 24, 44, 0.1);
  --cst-on: #fff;
  --cst-text: #15181c;
  --cst-muted: #5d646b;
  --cst-key: #1f8f4a;
  --cst-key-ink: #fff;
  --cst-gold: #a87800;
  --cst-sheet: rgba(20, 24, 44, 0.06);
  --cst-solid: rgb(243, 244, 247);
  --cst-danger: #c43a2c;
}
/* Blur costs a full-screen pass on the slow path, and reduced transparency asks for
   none: the page goes solid, so nothing shows through it. */
body.low-power-gpu :is(.cst-overlay, .settings-overlay, .xm-frame) { --cst-page: var(--cst-solid); }
@media (prefers-reduced-transparency: reduce) { :is(.cst-overlay, .settings-overlay, .xm-frame) { --cst-page: var(--cst-solid); } }
