.unified-progress-stack {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: min(430px, calc(100vw - 32px));
  z-index: 1300;
  display: grid;
  gap: 12px;
  pointer-events: none;
}

.unified-progress-card {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding: 18px 42px 18px 18px;
  border: 1px solid var(--lab-border, #e4e9e6);
  border-left: 5px solid var(--lab-accent, #2f8f7b);
  border-radius: 12px;
  background: var(--lab-surface, #fff);
  box-shadow: var(--lab-shadow-strong, 0 14px 36px rgba(35, 55, 49, 0.16));
  color: var(--lab-text, #26352f);
  pointer-events: auto;
}

.unified-progress-card.failed {
  border-left-color: var(--lab-danger, #bd4b45);
}

.unified-progress-dismiss {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--lab-border, #e4e9e6);
  border-radius: 999px;
  background: var(--lab-surface, #fff);
  color: var(--lab-muted, #74817b);
  cursor: pointer;
  font-size: 0.84rem;
  line-height: 1;
}

.unified-progress-dismiss:hover {
  border-color: var(--lab-border-strong, #d1dbd7);
  color: var(--lab-text, #26352f);
}

.unified-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
}

.unified-progress-head strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.unified-progress-bar {
  height: 8px;
  margin: 12px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--lab-accent-soft, #e8f3ef);
}

.unified-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--lab-accent, #2f8f7b);
  transition: width 0.25s ease;
}

.unified-progress-card.failed .unified-progress-bar span {
  background: var(--lab-danger, #bd4b45);
}

.unified-progress-message {
  color: var(--lab-muted, #74817b);
  font-size: 0.9rem;
  line-height: 1.5;
}

.unified-progress-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.unified-progress-grid > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--lab-surface-tint, #f4f7f5);
  color: var(--lab-muted, #74817b);
  font-size: 0.84rem;
}

.unified-progress-grid strong {
  color: var(--lab-text, #26352f);
}

@media (max-width: 720px) {
  .unified-progress-stack {
    right: 16px;
    bottom: 16px;
    width: calc(100vw - 32px);
  }

  .unified-progress-grid {
    grid-template-columns: 1fr;
  }
}
