/* Icon CLICK (iconMotion.json `extras.swap-click-turn`): a swap glyph turns once as its orientation flips;
   the class comes off on animationend (js/ui/icons.js spinIconOnce) so a second click replays it. */
/* Set HERE: --ic-play is non-inheriting, and the hover rule's `var(--ic-play, none)` must read this same
   value back while the pointer still rests on the button. */
.icm-spun :is(.ic, .draw-mode-icon) {
    --ic-play: icmTurnCw;
    --ic-ms: 0.413s;
    --ic-ease: cubic-bezier(0.33, 1, 0.68, 1);
    animation-name: var(--ic-play);
}
@media (prefers-reduced-motion: reduce) {
    .icm-spun :is(.ic, .draw-mode-icon) { animation-name: none; }
}

/* The Lines-tab eye just clicked (panel/lines/events.js): hiding draws the slash across it from its
   middle, showing draws it back out. Played once, on the row the click re-rendered. */
.lines-eye-flip::after { animation: linesEyeSlash 0.26s cubic-bezier(0.33, 1, 0.68, 1); }
.lines-eye-flip:not(.lines-eye-off)::after { animation-direction: reverse; }
@keyframes linesEyeSlash {
    from { transform: translate(-50%, -50%) rotate(-45deg) scaleX(0); }
    to { transform: translate(-50%, -50%) rotate(-45deg) scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
    .lines-eye-flip::after { animation: none; }
}
