/* Shared ink-saving styles for browser printing and generated PDFs. */
@media print {
  :root { color-scheme: light !important; }
  html,
  body {
    background: #fff !important;
    background-image: none !important;
    color: #111 !important;
    print-color-adjust: economy !important;
    -webkit-print-color-adjust: economy !important;
  }
  /* The impossible ID raises specificity above page-theme !important colors. */
  :root:not(#missicecream-print-ink-saver) body *,
  :root:not(#missicecream-print-ink-saver) body *::before,
  :root:not(#missicecream-print-ink-saver) body *::after {
    background-color: transparent !important;
    background-image: none !important;
    border-color: #aaa !important;
    box-shadow: none !important;
    color: #111 !important;
    text-shadow: none !important;
  }
  :root:not(#missicecream-print-ink-saver) body input,
  :root:not(#missicecream-print-ink-saver) body select,
  :root:not(#missicecream-print-ink-saver) body textarea {
    background: #fff !important;
    color: #111 !important;
    accent-color: #333 !important;
  }
  :root:not(#missicecream-print-ink-saver) body ::placeholder {
    color: #666 !important;
    opacity: 1 !important;
  }
  :root:not(#missicecream-print-ink-saver) body .topbar,
  :root:not(#missicecream-print-ink-saver) body .back-link,
  :root:not(#missicecream-print-ink-saver) body .quick-links,
  :root:not(#missicecream-print-ink-saver) body .batchbar,
  :root:not(#missicecream-print-ink-saver) body .toolbar,
  :root:not(#missicecream-print-ink-saver) body .actions,
  :root:not(#missicecream-print-ink-saver) body .sound-toggle,
  :root:not(#missicecream-print-ink-saver) body .save-status,
  :root:not(#missicecream-print-ink-saver) body .return-simple,
  :root:not(#missicecream-print-ink-saver) body .tools-bottom-nav,
  :root:not(#missicecream-print-ink-saver) body #pmbar {
    display: none !important;
  }
  :root:not(#missicecream-print-ink-saver) body svg text { fill: #111 !important; }
  :root:not(#missicecream-print-ink-saver) body svg line,
  :root:not(#missicecream-print-ink-saver) body svg path,
  :root:not(#missicecream-print-ink-saver) body svg polyline { stroke: #333 !important; }
  :root:not(#missicecream-print-ink-saver) body svg circle,
  :root:not(#missicecream-print-ink-saver) body svg polygon,
  :root:not(#missicecream-print-ink-saver) body svg rect { fill: #fff !important; stroke: #777 !important; }
}

body.cap.ink-saver {
  background: #fff !important;
  background-image: none !important;
  color: #111 !important;
}
body.cap.ink-saver *,
body.cap.ink-saver *::before,
body.cap.ink-saver *::after {
  background-color: transparent !important;
  background-image: none !important;
  border-color: #aaa !important;
  box-shadow: none !important;
  color: #111 !important;
  text-shadow: none !important;
}
body.cap.ink-saver input,
body.cap.ink-saver select,
body.cap.ink-saver textarea {
  background: #fff !important;
  color: #111 !important;
  accent-color: #333 !important;
}
body.cap.ink-saver ::placeholder {
  color: #666 !important;
  opacity: 1 !important;
}
body.cap.ink-saver .topbar,
body.cap.ink-saver .back-link,
body.cap.ink-saver .quick-links,
body.cap.ink-saver .batchbar,
body.cap.ink-saver .toolbar,
body.cap.ink-saver .actions,
body.cap.ink-saver .sound-toggle,
body.cap.ink-saver .save-status,
body.cap.ink-saver .return-simple,
body.cap.ink-saver .tools-bottom-nav {
  display: none !important;
}
body.cap.ink-saver svg text { fill: #111 !important; }
body.cap.ink-saver svg line,
body.cap.ink-saver svg path,
body.cap.ink-saver svg polyline { stroke: #333 !important; }
body.cap.ink-saver svg circle,
body.cap.ink-saver svg polygon,
body.cap.ink-saver svg rect { fill: #fff !important; stroke: #777 !important; }
