/* Motion cues (Ali's motion videos, 30 Oct 2026; Emil review). Each one answers something the person did; nothing moves with reduced motion.
   JS: js/ui/motion-cues.js (the slide and the shake). Test: tests/motioncues.mjs. */
@media (prefers-reduced-motion: no-preference) {
  /* 1. The phone More menu grows out of its button (it appeared from nowhere); menus that open upward grow from their bottom edge. */
  .tab-more[open] .tab-more-list { animation: menu-in 0.16s cubic-bezier(0.23, 1, 0.32, 1); transform-origin: calc(100% - 36px) calc(100% + 10px); }
  .menu.pop-up:not([hidden]) { transform-origin: bottom left; }
  .case-actions .menu.pop-up:not([hidden]) { transform-origin: bottom right; }

  /* 2. The white part of a two-way switch (List | Board) and the underline of tabs slide from the old choice to the new one
     (the page may draw the switch again; the JS finds the new one at the same place). Transform only, 220 ms ease-out, no overshoot. */
  .seg > button, .tabs > button, .tabs > a { position: relative; }
  .seg > button.cue-slide { background: none; box-shadow: none; isolation: isolate; }
  .seg.cue-sliding > button:not(.cue-slide) { z-index: 1; } /* the other words stay readable while the white part passes under them */
  .seg > button.cue-slide::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 8px; background: var(--surface);
    box-shadow: 0 1px 2px rgba(13, 27, 42, 0.12); transform-origin: left center; animation: cue-slide 0.22s cubic-bezier(0.23, 1, 0.32, 1); }
  .tabs.cue-sliding > button, .tabs.cue-sliding > a { background-size: 0 3px !important; transition: color 0.15s; }
  .tabs.cue-sliding > .cue-slide::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ink);
    transform-origin: left center; animation: cue-slide 0.22s cubic-bezier(0.23, 1, 0.32, 1); }
  @keyframes cue-slide { from { transform: translateX(var(--cue-dx, 0)) scaleX(var(--cue-sx, 1)); } }
}
