html.dark,
html.torqn {
  /* 
    Override the global color-scheme set by the PDF.js viewer CSS. The CDN stylesheet `pdf_viewer.min.css` 
    applies :root { color-scheme: light dark; } which makes the browser treat the
    whole page as light by default, causing dark themes to render with light-mode defaults.
  */
  color-scheme: dark;
}

html:not(.dark):not(.torqn) {
  color-scheme: light;
}


