/* Dark mode: the app's 600+ fixed colours are inverted as a whole, with the
   hue rotated back so brand colours stay recognisable. Images, PDFs and other
   embedded documents are inverted again so they keep their real colours. */
html.theme-dark {
  filter: invert(0.92) hue-rotate(180deg);
  background: #fff;
  color-scheme: light;
}
html.theme-dark img,
html.theme-dark video,
html.theme-dark canvas,
html.theme-dark iframe,
html.theme-dark embed,
html.theme-dark object,
html.theme-dark svg image {
  filter: invert(1) hue-rotate(180deg);
}

/* Clean white page background; cards keep a light outline so they stay
   distinct from the page. */
body { background: #ffffff; }
.card { border: 1px solid #e6eaef; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
