.tabs, .seg, .picker { position: relative; isolation: isolate; }
.mo-pill { position: absolute; z-index: -1; pointer-events: none; transform-origin: 0 0; }
.mo-pill-on { background-color: transparent !important; background-image: none !important; box-shadow: none !important; }
.mo-ghost { pointer-events: none !important; }

button, .row { transition: transform 0.12s ease-out; }
button:not(:disabled):active, .row:active { transform: scale(0.97); }
.send:not(:disabled):active { transform: scale(0.92); }

.msg .choice { transition: border-color 0.15s, transform 0.15s, opacity 0.22s ease-out; }
.msg .choices .choice.chosen { animation: mo-press 0.3s ease-out; }
.msg .copied { animation: mo-pop 0.34s cubic-bezier(0.3, 1.5, 0.5, 1); }
.msg.rich ol.steps > li > .tick { transition: transform 0.12s ease-out, border-color 0.15s; }
.msg.rich ol.steps > li.done > .tick { animation: mo-pop 0.34s cubic-bezier(0.3, 1.5, 0.5, 1); }
.msg.rich ol.steps > li > .item-body { transition: color 0.2s; }

.dots i { animation-timing-function: ease-in-out; }
.scheme-toggle svg { animation: mo-spin-in 0.34s cubic-bezier(0.22, 0.8, 0.24, 1); }

@keyframes mo-pop { 0% { transform: scale(0.8); } 60% { transform: scale(1.1); } 100% { transform: none; } }
@keyframes mo-press { 40% { transform: scale(0.97); } }
@keyframes mo-spin-in { from { opacity: 0; transform: rotate(-70deg) scale(0.7); } }

@media (prefers-reduced-motion: reduce) {
  button, .row, .msg .choice, .msg.rich ol.steps > li > .tick, .msg.rich ol.steps > li > .item-body { transition: none !important; }
  button:active, .row:active, .send:active { transform: none !important; }
  .mo-pill { display: none !important; }
}
