/* The small comforts of the interface: press feedback (js/pressFeedback.js: done with the Web Animations API, nothing here), the bounce at the end of a scroll (js/rubberBand.js), and the hover scroll bar and
   arrows of the sideways strips of the Alani AI tab (js/edgeScroll.js). */

/* no waiting for a second tap: a press on a button or a tab acts at once, and a double tap does not zoom */
button, [role="button"], [role="tab"], [role="radio"], [role="menuitem"], summary, label.toggle, .chip { touch-action: manipulation; }

/* the bounce: while a scrolling box is pulled past its end, its children follow --rb-y (the box keeps its place and clips them) */
[data-banding] > * { translate: 0 var(--rb-y, 0px); will-change: translate; }

/* the strips' controls: one set, moved to the strip the mouse is over (fixed, so no strip's layout changes) */
.edge-layer { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 26; pointer-events: none; }
.edge-arrow { position: fixed; left: 0; top: 0; width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: color-mix(in srgb, var(--input) 94%, transparent); color: var(--text); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); opacity: 0; pointer-events: none; transition: opacity 0.15s, background 0.15s; }
.edge-arrow.show { opacity: 1; pointer-events: auto; }
.edge-arrow.show:hover { background: var(--row-hover, var(--input)); }
.edge-track { position: fixed; left: 0; top: 0; height: 5px; border-radius: 999px; background: color-mix(in srgb, var(--text) 10%, transparent); opacity: 0; pointer-events: none; transition: opacity 0.15s, height 0.12s; }
.edge-track[hidden] { display: none; }
.edge-layer.on .edge-track { opacity: 1; pointer-events: auto; }
.edge-track:hover, .edge-layer.dragging .edge-track { height: 9px; }
.edge-thumb { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: color-mix(in srgb, var(--text) 42%, transparent); cursor: grab; touch-action: none; }
.edge-thumb:hover, .edge-layer.dragging .edge-thumb { background: color-mix(in srgb, var(--orange) 80%, var(--text)); }
.edge-layer.dragging .edge-thumb { cursor: grabbing; }
.grabbing { cursor: grabbing; -webkit-user-select: none; user-select: none; }
.grabbing > * { pointer-events: none; }
@media (hover: none) { .edge-layer { display: none; } } /* a finger swipes: nothing to show */
@media (prefers-reduced-motion: reduce) { .edge-arrow, .edge-track { transition: none; } }
