/* Dark theme for the CKEditor 4 (floating toolbar, dialogs, dropdown panels), which ships a light-only skin.
   The skin is inverted as a whole; hue-rotate keeps the colors of the icons recognisable. */
:root {
  --app-ckeditor-dark-filter: invert(0.9) hue-rotate(180deg);
}

:root[data-bs-theme="dark"] :is(.cke_chrome, .cke_dialog, .cke_panel, .cke_notification) {
  filter: var(--app-ckeditor-dark-filter);
}

/* The source of the editor takes the (light) text color of the page, which the inversion above makes dark on the dark background */
:root[data-bs-theme="dark"] textarea.cke_source {
  color: #000;
}
