.matching-console {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(53, 208, 187, 0.28), transparent 31%),
    linear-gradient(145deg, #061c35 0%, #0a3257 54%, #083849 100%);
}

.matching-console::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.82), transparent);
}

.workflow-status-bar,
.wizard-step {
  position: relative;
  z-index: 1;
}

.workflow-status-bar {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(191, 238, 231, 0.22);
  border-radius: 8px;
  padding: 10px;
  color: rgba(220, 238, 250, 0.66);
  background: rgba(255, 255, 255, 0.065);
}

.workflow-status-bar span {
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.workflow-status-bar i {
  height: 1px;
  background: linear-gradient(90deg, rgba(191, 238, 231, 0.18), rgba(243, 201, 95, 0.72));
}

.matching-console.is-category-pending .workflow-status-bar span:nth-of-type(2),
.matching-console.is-evaluation-pending .workflow-status-bar span:nth-of-type(3),
.matching-console.is-workflow-complete .workflow-status-bar span:nth-of-type(4) {
  color: #f3c95f;
}

.step-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.step-head > span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(191, 238, 231, 0.35);
  border-radius: 8px;
  color: #bfeee7;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
}

.step-cue {
  margin: 6px 0 0;
  color: rgba(220, 238, 250, 0.76);
  font-size: 0.92rem;
  line-height: 1.55;
}

.wizard-step.is-current {
  margin: -6px;
  border: 1px solid rgba(243, 201, 95, 0.34);
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 20px 42px rgba(0, 0, 0, 0.16);
}

.wizard-step.is-complete .step-head > span {
  color: #08243c;
  border-color: #8fe1d6;
  background: #8fe1d6;
}

.wizard-step.is-locked {
  opacity: 0.82;
}

.choice-callout {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin: 0;
  border: 1px solid rgba(243, 201, 95, 0.44);
  border-radius: 999px;
  padding: 9px 12px;
  color: #fff8d6;
  background: rgba(243, 201, 95, 0.12);
  font-size: 0.9rem;
  font-weight: 900;
}

.choice-callout::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  content: "";
  background: #f3c95f;
  box-shadow: 0 0 0 0 rgba(243, 201, 95, 0.52);
  animation: cue-ping 1.5s infinite;
}

.choice-grid.is-prompting {
  border: 1px solid rgba(243, 201, 95, 0.32);
  border-radius: 8px;
  padding: 10px;
  background: rgba(243, 201, 95, 0.055);
}

.choice-grid.is-prompting .choice-chip:not(:disabled) {
  border-color: rgba(243, 201, 95, 0.66);
  box-shadow:
    0 0 0 1px rgba(243, 201, 95, 0.14),
    0 10px 22px rgba(243, 201, 95, 0.1);
  animation: chip-breathe 2.2s ease-in-out infinite;
}

.choice-grid.is-locked .choice-chip:disabled {
  border-style: dashed;
  color: rgba(220, 238, 250, 0.58);
  background: rgba(255, 255, 255, 0.045);
}

.choice-chip {
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.choice-chip:hover:not(:disabled),
.choice-chip:focus-visible {
  transform: translateY(-2px);
  border-color: #8fe1d6;
  outline: none;
  box-shadow: 0 12px 24px rgba(53, 208, 187, 0.16);
}

.choice-chip.is-active {
  box-shadow: 0 12px 28px rgba(243, 201, 95, 0.24);
}

@keyframes cue-ping {
  70% {
    box-shadow: 0 0 0 8px rgba(243, 201, 95, 0);
  }
}

@keyframes chip-breathe {
  50% {
    box-shadow:
      0 0 0 4px rgba(243, 201, 95, 0.14),
      0 12px 26px rgba(243, 201, 95, 0.12);
  }
}

@media (max-width: 640px) {
  .workflow-status-bar {
    grid-template-columns: 1fr 1fr;
  }

  .workflow-status-bar i {
    display: none;
  }
}
