.task-progress {
  position: fixed;
  right: 24px;
  bottom: 78px;
  z-index: 110;
  width: min(390px, calc(100vw - 32px));
  padding: 15px;
  border: 1px solid #dfe1e6;
  border-radius: 14px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 18px 55px rgba(23, 25, 31, .18);
  backdrop-filter: blur(12px);
}

.task-progress-head,
.task-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.task-progress-head small {
  display: block;
  margin-bottom: 3px;
  color: #9297a1;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
}

.task-progress-head strong {
  display: block;
  color: #22252b;
  font-size: 14px;
}

.task-progress-head button {
  width: 29px;
  height: 29px;
  border: 0;
  border-radius: 50%;
  background: #f1f2f4;
  color: #727782;
  font-size: 20px;
  line-height: 1;
}

.task-progress-meta {
  margin-top: 13px;
  font-size: 10px;
}

.task-progress-meta b {
  color: #565c66;
}

.task-progress-meta span,
.task-progress-meta i {
  color: #858a94;
  font-style: normal;
}

.task-progress-meta #task-percent {
  color: var(--violet);
  font-weight: 900;
}

.task-progress-track {
  height: 7px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #e9eaf0;
}

.task-progress-track > i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), #9a8fff);
  transition: width .25s ease;
}

.task-progress > p {
  margin: 9px 0 0;
  color: #747a85;
  font-size: 10px;
  line-height: 1.55;
}

.task-progress.success {
  border-color: #bfe3d1;
}

.task-progress.success .task-progress-track > i {
  background: #2b9367;
}

.task-progress.success #task-percent,
.task-progress.success #task-step {
  color: #257a55;
}

.task-progress.failed {
  border-color: #efc7cd;
  background: rgba(255, 248, 249, .98);
}

.task-progress.failed .task-progress-track > i {
  background: var(--red);
}

.task-progress.failed #task-percent,
.task-progress.failed #task-step {
  color: var(--red);
}

.task-error {
  margin-top: 10px;
  padding: 10px;
  border-radius: 9px;
  background: #fbe5e8;
  color: #982f3c;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.55;
  word-break: break-word;
}

@media (max-width: 720px) {
  .task-progress {
    right: 16px;
    bottom: 70px;
  }
}
