#operation-progress {
  position: fixed;
  inset: auto 24px 24px auto;
  z-index: 2147483647;
  width: min(360px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  margin: 0;
  padding: 17px 20px;
  border: 1px solid #c6d8ff;
  border-radius: 13px;
  background: #f5f8ff;
  color: #193e82;
  box-shadow: 0 8px 28px #12366b26;
  font: 600 14px/1.5 system-ui, sans-serif;
  pointer-events: none;
}
#operation-progress[hidden] { display: none; }
#operation-progress::backdrop { background: transparent; pointer-events: none; }
#operation-progress .operation-progress-label { display: block; overflow-wrap: anywhere; }
#operation-progress .operation-progress-track {
  display: block;
  position: relative;
  height: 5px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce6fb;
}
#operation-progress .operation-progress-fill {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: #2853dc;
  animation: operation-progress-slide 1.35s ease-in-out infinite;
}
#operation-progress[data-state=success] { border-color: #b4d9c3; background: #f0faf4; color: #17643b; }
#operation-progress[data-state=success] .operation-progress-fill { width: 100%; background: #258852; animation: none; }
#operation-progress[data-state=error] { border-color: #efc5bd; background: #fff5f3; color: #a13021; }
#operation-progress[data-state=cancelled] { border-color: #d5dce6; background: #f6f8fb; color: #53627a; }
#operation-progress[data-state=error] .operation-progress-track,
#operation-progress[data-state=cancelled] .operation-progress-track { display: none; }
@keyframes operation-progress-slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(365%); } }
@media (max-width: 600px) { #operation-progress { inset: auto 16px max(16px, env(safe-area-inset-bottom)) 16px; width: auto; padding: 14px 17px; } }
@media (prefers-reduced-motion: reduce) { #operation-progress .operation-progress-fill { animation: none; width: 100%; background: repeating-linear-gradient(110deg, #2853dc 0 12px, #8da8ed 12px 24px); } }
