/* Fixed night canvas: violet at left, blue below, plum at right. */
html[data-theme=dark] body {
  isolation: isolate;
  background: #0d0b1e !important;
}
html[data-theme=dark] body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 53% 72% at 2% 19%, #3d2065 0%, #331c57 34%, transparent 78%),
    radial-gradient(ellipse 45% 57% at 59% 106%, #142e54 0%, #142342 36%, transparent 84%),
    radial-gradient(ellipse 39% 66% at 104% 88%, #3b1439 0%, #2e1231 40%, transparent 84%),
    radial-gradient(ellipse 48% 32% at 84% -3%, #1e1534 0%, transparent 87%),
    linear-gradient(155deg, #0d0a1b 0%, #0d0b1e 52%, #101027 100%);
}
html[data-theme=dark] :is(.main, .main>main, .purchase-workbench),
html[data-theme=dark] main:has(#ai:not([hidden])) {
  background: transparent !important;
}
html[data-theme=dark] #ai::before {
  background: none !important;
}
html[data-theme=dark] body.entry-locked::before {
  visibility: hidden;
}
