.wc3-cell[data-operating] {
  --wc3-handle-side: 1;
  --wc3-handle-angle: 0deg;
}
.wc3-cell[data-operating][data-hinge="right"] { --wc3-handle-side: -1; }
.wc3-cell[data-handle="open"] { --wc3-handle-angle: 90deg; }
.wc3-cell[data-handle="tilted"] { --wc3-handle-angle: 180deg; }

.wc3-cell[data-operating][data-handle] .wc3-operator {
  transform: rotateZ(calc(var(--wc3-handle-side) * var(--wc3-handle-angle)));
  transition: transform 220ms ease-in-out;
}
/* In this sequence the hand seats the sash before it changes the handle.
   The tilt starts immediately when released, including the open-to-tilt case. */
.wc3-cell[data-operating][data-phase] :is(.wc3-swing, .wc3-tilt) {
  transition: transform 650ms cubic-bezier(.32,.03,.22,1) 0s;
}
.wc3-cell[data-operating][data-seating] .wc3-swing {
  transform: translateZ(1px) rotateY(0deg);
}
.wc3-cell[data-operating][data-seating] .wc3-tilt {
  transform: rotateX(0deg);
}
