/* Posuvník jako v Kokpitu (Matěj 29. 11. 2026) — goes with posuvnik.js, loaded on every page of the administration.
   Vertical: no system bar; the mouse finds a thin accent thumb by resting at an area's right edge, a phone shows a short
   pill while scrolling. Sideways: a hidden bar would strand anyone on a mouse without a trackpad in front of a wide
   table, so it stays — 6 px, faint grey, accent under the pointer. Only ::-webkit-scrollbar here: a standard
   scrollbar-width / scrollbar-color anywhere up the tree makes Chrome ignore these rules. Firefox has no
   ::-webkit-scrollbar and gets no bars at all, as in Kokpit. */
::-webkit-scrollbar { width: 0; height: 6px; background: transparent; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { border-radius: 99px; background: color-mix(in oklab, var(--tx-3) 30%, transparent); }
::-webkit-scrollbar-thumb:hover { background: var(--acc); }
@supports not selector(::-webkit-scrollbar) {
  html, html * { scrollbar-width: none; }
}

/* The touch pill and the mouse bar, drawn by posuvnik.js on <body>. */
.scroll-ind {
  position: fixed; left: 0; top: 0; z-index: 2147483000; pointer-events: none;
  width: 2px; height: 28px; border-radius: 99px;
  background: var(--acc); box-shadow: 0 0 8px color-mix(in oklab, var(--acc) 45%, transparent);
  opacity: 0; transition: opacity .35s ease;
}
.scroll-ind.on { opacity: 1; transition-duration: .12s; }
.scroll-ind.now { transition: none; }
.scroll-bar {
  position: fixed; left: 0; top: 0; z-index: 2147483000; width: 14px;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.scroll-bar.on { opacity: 1; pointer-events: auto; transition-duration: .12s; }
.scroll-bar.now { transition: none; }
.scroll-bar-thumb {
  position: absolute; right: 3px; top: 0; width: 4px; border-radius: 99px;
  background: var(--acc); box-shadow: 0 0 8px color-mix(in oklab, var(--acc) 45%, transparent); cursor: grab;
  transition: width .12s ease;
}
.scroll-bar:hover .scroll-bar-thumb, .scroll-bar.drag .scroll-bar-thumb { width: 5px; }
.scroll-bar.drag .scroll-bar-thumb { cursor: grabbing; }
@media (prefers-reduced-motion: reduce) {
  .scroll-ind, .scroll-bar, .scroll-bar-thumb { transition: none; }
}
