.batch-intro {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.progress-card {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  margin: 0 0 1rem;
  overflow: hidden;
  color: #f7fbfa;
  background:
    radial-gradient(circle at 92% 12%, rgb(199 242 104 / 14%), transparent 20rem),
    radial-gradient(circle at 7% 96%, rgb(33 168 154 / 17%), transparent 18rem),
    var(--navy-900);
  border-color: rgb(255 255 255 / 9%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.progress-card::after {
  position: absolute;
  top: -3rem;
  right: -2rem;
  width: 11rem;
  height: 11rem;
  pointer-events: none;
  content: "";
  border: 1px dashed rgb(255 255 255 / 14%);
  border-radius: 50%;
  animation: progress-orbit 26s linear infinite;
}

@keyframes progress-orbit {
  to {
    transform: rotate(360deg);
  }
}

.progress-heading {
  position: relative;
  z-index: 1;
  align-items: flex-end;
  margin-bottom: 1.2rem;
}

.progress-heading h2 {
  max-width: 50rem;
  margin: 0.7rem 0 0;
  font-size: clamp(1.55rem, 3.3vw, 2.8rem);
  font-weight: 560;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.progress-heading > strong {
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3.3vw, 2.6rem);
  font-weight: 590;
  letter-spacing: -0.06em;
}

.progress-card .progress-track {
  height: 0.72rem;
  background: rgb(255 255 255 / 10%);
}

.progress-card .progress-track > span {
  background: linear-gradient(90deg, var(--teal-300), var(--signal));
  box-shadow: 0 0 20px rgb(199 242 104 / 20%);
}

.progress-card .help-text {
  position: relative;
  z-index: 1;
  max-width: 55rem;
  margin: 1rem 0 0;
  color: rgb(255 255 255 / 74%);
}

.progress-card .status {
  color: var(--navy-950);
  background: var(--signal);
}

.progress-card .status-failed {
  color: #fff;
  background: var(--danger);
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 0.8rem;
  margin: 0 0 1.2rem;
}

.job-card {
  display: grid;
  min-width: 0;
  gap: 1rem;
  padding: 1.1rem;
  margin: 0;
  box-shadow: none;
  transition:
    border-color var(--duration-fast) ease,
    box-shadow var(--duration-fast) ease,
    transform var(--duration-fast) ease;
}

.job-card:hover {
  border-color: rgb(8 114 105 / 22%);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.job-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.job-card h2 {
  margin: 0.2rem 0 0;
  overflow: hidden;
  font-size: 1.05rem;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-group {
  color: var(--ink-500);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.job-progress-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.3rem;
}

.job-progress-steps.publish-flow {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.job-progress-steps::before {
  position: absolute;
  top: 0.6rem;
  right: 7%;
  left: 7%;
  height: 1px;
  content: "";
  background: var(--line);
}

.job-progress-steps span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 0.28rem;
  color: var(--ink-350);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-align: center;
  text-transform: uppercase;
}

.job-progress-steps span::before {
  width: 1.2rem;
  height: 1.2rem;
  content: "";
  background: var(--paper-deep);
  border: 0.22rem solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}

.job-progress-steps span.done {
  color: var(--success);
  font-weight: 700;
}

.job-progress-steps span.done::before {
  background: var(--teal-500);
  box-shadow:
    0 0 0 1px var(--teal-500),
    0 0 0 4px rgb(33 168 154 / 10%);
}

.job-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding-block: 0.65rem;
  border-block: 1px solid var(--line);
}

.job-facts > div {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
  padding-inline: 0.75rem;
}

.job-facts > div:first-child {
  padding-left: 0;
}

.job-facts > div + div {
  border-left: 1px solid var(--line);
}

.job-facts dt {
  color: var(--ink-500);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.job-facts dd {
  margin: 0;
  overflow: hidden;
  color: var(--ink-800);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-card .inline-error {
  margin: 0;
}

.published-listing-link {
  display: flex;
  justify-content: flex-end;
}

.published-listing-link a {
  font-size: 0.72rem;
  font-weight: 760;
  text-decoration: none;
}

.recovery-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(22rem, 1.2fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  margin-top: 1.2rem;
  background: var(--danger-soft);
  border-color: rgb(179 61 75 / 18%);
  box-shadow: none;
}

.recovery-copy h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  font-weight: 590;
}

.recovery-copy p:last-child {
  margin: 0.7rem 0 0;
  color: color-mix(in srgb, var(--danger) 58%, var(--ink-800));
  font-size: 0.82rem;
  line-height: 1.6;
}

.recovery-form {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  background: rgb(255 255 255 / 72%);
  border: 1px solid rgb(179 61 75 / 12%);
  border-radius: var(--radius-md);
}

.recovery-form button {
  justify-self: start;
  background: var(--danger);
  box-shadow: 0 7px 18px rgb(179 61 75 / 14%);
}

.recovery-form button:hover {
  background: #9c2f3e;
}
