[data-timi-swipe].timi-swiping,
[data-timi-swipe].timi-swipe-return {
  transform: translate3d(var(--timi-swipe-offset, 0px), 0, 0);
}

[data-timi-swipe].timi-swipe-return {
  transition: transform 180ms ease-out;
}

.timi-swipe-guide {
  position: fixed;
  z-index: 31;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  width: 142px;
  padding: 8px 12px 9px;
  border: 1px solid #dce6f5;
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 4px 18px rgba(15, 29, 61, .12);
  color: #0f1d3d;
  font: 600 12px/1.2 Inter, Nunito, system-ui, sans-serif;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, 7px, 0);
  transition: opacity 140ms ease-out, transform 140ms ease-out;
}

.timi-swipe-guide.is-visible {
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
}

.timi-swipe-guide-track {
  display: block;
  height: 3px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce6f5;
}

.timi-swipe-guide-track > span {
  display: block;
  width: var(--timi-swipe-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: #3179ff;
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  ::view-transition-old(root),
  ::view-transition-new(root) { animation-duration: 0s; }

  html:active-view-transition-type(timi-right)::view-transition-old(root) {
    animation: timi-slide-out-right 300ms ease-in-out both;
  }

  html:active-view-transition-type(timi-right)::view-transition-new(root) {
    animation: timi-slide-in-left 300ms ease-in-out both;
  }

  html:active-view-transition-type(timi-left)::view-transition-old(root) {
    animation: timi-slide-out-left 300ms ease-in-out both;
  }

  html:active-view-transition-type(timi-left)::view-transition-new(root) {
    animation: timi-slide-in-right 300ms ease-in-out both;
  }

  html.timi-swipe-fallback-right body { animation: timi-slide-in-left 300ms ease-out both; }
  html.timi-swipe-fallback-left body { animation: timi-slide-in-right 300ms ease-out both; }
}

@keyframes timi-slide-out-right { to { transform: translateX(100%); } }
@keyframes timi-slide-out-left { to { transform: translateX(-100%); } }
@keyframes timi-slide-in-right { from { transform: translateX(100%); } }
@keyframes timi-slide-in-left { from { transform: translateX(-100%); } }

@media (prefers-reduced-motion: reduce) {
  [data-timi-swipe].timi-swipe-return,
  .timi-swipe-guide { transition: none; }
}
