/* Hand-written additions to the generated tailwind.css. Colours come from
   the tokens defined there (var(--ink) etc.). */

/* Short reveal for things the user just opened (who answered, dialogs). */
@keyframes reveal {
  from { opacity: 0; transform: translateY(-2px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  animation: reveal 0.14s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
  * { transition-duration: 0s !important; }
}

.sticky-col {
  position: sticky;
  left: 0;
  z-index: 1;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background-color: rgb(var(--line));
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background-color: rgb(var(--subtle));
}

/* Light picker icons in the dark theme: the device's setting, unless the
   footer switch chose a theme (data-theme on <html>). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) input[type='time']::-webkit-calendar-picker-indicator,
  :root:not([data-theme='light']) input[type='datetime-local']::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.6;
  }
}
:root[data-theme='dark'] input[type='time']::-webkit-calendar-picker-indicator,
:root[data-theme='dark'] input[type='datetime-local']::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.6;
}
