.ui-progress-rail {
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.ui-progress-rail i {
  position: absolute;
  inset: 0;
  width: 38%;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, #0a8b87, #f5c542, #0a8b87);
  background-size: 220% 100%;
  box-shadow: 0 3px 16px rgba(7, 94, 99, 0.32);
  animation: ui-progress-travel 1.1s cubic-bezier(.4, 0, .2, 1) infinite;
}

.ui-progress-rail span {
  position: fixed;
  top: 12px;
  right: 14px;
  padding: 8px 11px 8px 27px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(3, 56, 61, .92);
  box-shadow: 0 12px 30px rgba(3, 56, 61, .2);
  backdrop-filter: blur(12px);
  font: 750 9px/1.2 Sora, Manrope, sans-serif;
  letter-spacing: .04em;
}

.ui-progress-rail span::before {
  position: absolute;
  left: 11px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  content: "";
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #f5c542;
  border-radius: 50%;
  animation: ui-spin .72s linear infinite;
}

.ui-progress-rail.is-active {
  opacity: 1;
  transform: translateY(0);
}

.ui-progress-rail.is-complete i {
  width: 100%;
  background: #10a98f;
  animation: none;
  transition: width 220ms ease;
}

.ui-progress-rail.is-error i {
  width: 100%;
  background: #d76b4f;
  animation: none;
}

.ui-progress-rail.is-error span::before {
  border-color: #ffae95;
  border-right-color: transparent;
}

.ui-progress-rail.is-complete span::before {
  border: 0;
  content: "✓";
  color: #f5c542;
  animation: none;
}

body.ui-page-ready > *:not(.ui-progress-rail) {
  animation: ui-page-enter 360ms ease both;
}

img {
  transition: opacity 380ms ease, filter 380ms ease, transform 380ms ease;
}

img:not(.ui-media-loaded) {
  opacity: .28;
  filter: saturate(.55) blur(2px);
}

img.ui-media-loaded {
  opacity: 1;
  filter: none;
}

button.ui-button-busy {
  position: relative;
  padding-right: 38px !important;
  cursor: wait !important;
}

button.ui-button-busy::after {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 13px;
  height: 13px;
  margin-top: -8px;
  content: "";
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  opacity: .72;
  animation: ui-spin .72s linear infinite;
}

[role="status"]:not(:empty),
.upload-progress:not(:empty),
.manager-feedback:not(:empty),
.account-feedback:not(:empty) {
  animation: ui-feedback-enter 260ms ease both;
}

@keyframes ui-progress-travel {
  0% { transform: translateX(-105%); background-position: 0 0; }
  100% { transform: translateX(365%); background-position: 220% 0; }
}

@keyframes ui-spin { to { transform: rotate(360deg); } }

@keyframes ui-feedback-enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ui-page-enter {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .ui-progress-rail span { top: 8px; right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .ui-progress-rail i,
  .ui-progress-rail span::before,
  button.ui-button-busy::after,
  [role="status"]:not(:empty) { animation-duration: 1ms; }
  body.ui-page-ready > *:not(.ui-progress-rail), img { transition: none; }
}
