.processing-progress {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 10px 12px 12px;
  overflow: hidden;
  border: 1px solid #bcdced;
  border-radius: 7px;
  background: #edf8ff;
  box-shadow: 0 4px 14px rgba(49, 127, 164, .07);
}

.processing-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 7px;
}

.processing-progress-head > div { min-width: 0; }
.processing-progress-head strong { display: block; color: #174f6d; font-size: 15px; }
.processing-progress-head span { display: block; margin-top: 3px; color: #52798e; font-size: 12px; overflow-wrap: anywhere; }
.processing-progress-head b { flex: none; color: #277ea6; font-size: 13px; }

.processing-progress-track {
  position: relative;
  height: 30px;
  overflow: hidden;
  border: 1px solid #c9e4f1;
  border-radius: 6px;
  background: #dceff8;
}

.audit-result-heading.is-processing {
  display: grid;
  grid-template-columns: minmax(175px, max-content) minmax(280px, 1fr) max-content;
  align-items: center;
  gap: 14px;
}

.audit-heading-action,
.design-review-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.design-review-controls {
  align-items: center;
}

.design-review-controls.has-progress {
  justify-content: space-between;
}

.design-review-controls .processing-progress {
  flex: 1 1 420px;
}

.design-review-buttons {
  flex: none;
}

.processing-progress-fill {
  position: relative;
  width: var(--progress);
  min-width: 0;
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, #bcebd8, #71caa6);
  transition: width 900ms linear;
}

.progress-mascot {
  position: absolute;
  right: 3px;
  top: 50%;
  width: 57px;
  height: 30px;
  transform: translateY(-50%);
}

.progress-mascot i {
  position: absolute;
  display: block;
  border-radius: 3px;
  transform: rotate(45deg);
  box-shadow: 0 2px 5px rgba(24, 70, 81, .18);
}

.mascot-green { right: 4px; top: 5px; width: 20px; height: 20px; background: #39a977; z-index: 3; }
.mascot-blue { right: 28px; top: 8px; width: 12px; height: 12px; background: #348bc1; z-index: 2; animation: mascot-bounce-blue 780ms ease-in-out infinite; }
.mascot-yellow { right: 44px; top: 10px; width: 10px; height: 10px; background: #f1b84a; z-index: 1; animation: mascot-bounce-yellow 680ms ease-in-out infinite; }
.processing-progress.is-indeterminate .processing-progress-fill { width: var(--progress); animation: none; transform: none; }

@keyframes mascot-bounce-blue {
  0%, 100% { transform: translateY(2px) rotate(45deg); }
  50% { transform: translateY(-6px) rotate(45deg); }
}

@keyframes mascot-bounce-yellow {
  0%, 100% { transform: translateY(-1px) rotate(45deg); }
  50% { transform: translateY(6px) rotate(45deg); }
}

@media (max-width: 720px) {
  .audit-result-heading.is-processing {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .audit-result-heading .audit-heading-action { justify-content: flex-end; }
  .design-review-controls.has-progress { flex-wrap: wrap; }
  .design-review-controls .processing-progress { flex-basis: 100%; }
  .design-review-buttons { width: 100%; }
  .processing-progress-head { align-items: flex-start; }
  .processing-progress-head span { max-width: 230px; }
}

@media (prefers-reduced-motion: reduce) {
  .processing-progress-fill,
  .progress-mascot i { animation: none !important; transition: none; }
  .processing-progress.is-indeterminate .processing-progress-fill { width: var(--progress); transform: none; }
}
