/*
 * No custom palette — the app uses daisyUI's stock `light` and `dark` themes.
 * Colour comes from daisyUI tokens (base-100/200/300, base-content, primary…),
 * so everything below is behaviour, not theming.
 */

/* Blur mode: hides artwork until hovered. `.art` marks every image of the
   database's own media, so the toggle never blurs site chrome or site icons. */
body.safe img.art {
  filter: blur(18px);
  transition: filter 0.2s;
}

body.safe .group:hover img.art,
body.safe img.art:hover {
  filter: blur(0);
}

body.safe img.art-sm {
  filter: blur(7px);
}

/* Independent scroll panes on detail pages: keep the scrollbar unobtrusive and
   stop scroll momentum chaining to the page when a pane hits its end. */
.pane {
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in oklab, currentColor 20%, transparent) transparent;
}

.pane::-webkit-scrollbar {
  width: 8px;
}

.pane::-webkit-scrollbar-thumb {
  background: color-mix(in oklab, currentColor 20%, transparent);
  border-radius: 4px;
}

.pane::-webkit-scrollbar-track {
  background: transparent;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
