/* Base, sidebar, composer and floating surfaces share true black. Cards also
   serve as hovered to-do rows, so their interaction fill stays distinct. */
html:root[data-theme="dark"][data-joyful-midnight] {
  color-scheme: dark;
  background-color: #000;
  --surface: #000;
  --side: #000;
  --page-sunk: #000;
  --page-raised: #000;
  --done-fg: #000;
  --card: #171717;
  --hover: #171717;
  --aoa-sidebar-hover: #171717;
  --side-active: #303030;
  --track: #242424;
  --tab-on-bg: #393939;
  --side-edge: #333333;
  --aoa-sidebar-rule: #333333;
  --border: #383838;
  --border-soft: #242424;
  --border-strong: #555555;
  --product-library-background-grouped-secondary: #000;
  --product-library-background-grouped-tertiary: #000;
  --product-library-background-raised-secondary: #000;
  --product-library-background-raised-tertiary: #000;
  --product-library-background-raised-quaternary: #000;
  --product-library-actionable-focus-fill: #242424;
}

/* A shadow disappears against a black page. Trace the modal without moving it. */
html:root[data-theme="dark"][data-joyful-midnight] [data-testid="modal-overlay"] [role="dialog"] {
  box-shadow: 0 0 0 1px var(--border-strong);
}
