.journey-input-header {
  display: grid;
  gap: 0.9rem;
}

.journey-input-subphase-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.journey-input-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.journey-input-meta-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.journey-input-meta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.journey-input-step-button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: min(100%, 10rem);
  max-width: 12.5rem;
  min-height: 3rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(83, 140, 161, 0.42);
  background: rgba(15, 26, 34, 0.78);
  color: #9eb2bf;
  text-align: start;
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease, box-shadow 240ms ease, color 220ms ease;
}

.journey-input-step-button:hover {
  border-color: rgba(122, 224, 190, 0.42);
  background: rgba(31, 59, 76, 0.72);
  transform: translateY(-1px);
}

.journey-input-step-button.current {
  border-color: rgba(34, 193, 145, 0.78);
  background: rgba(34, 193, 145, 0.2);
  color: #d8fff0;
  box-shadow: 0 0 0 1px rgba(34, 193, 145, 0.14), 0 12px 28px rgba(6, 78, 59, 0.14);
}

.journey-input-step-button.completed {
  border-color: rgba(52, 211, 153, 0.46);
  background: rgba(16, 185, 129, 0.12);
  color: #c6fce4;
}

.journey-input-step-dot {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(158, 178, 191, 0.42);
  background: rgba(15, 25, 33, 0.64);
  font-size: 0.9rem;
  font-weight: 700;
  transition: border-color 220ms ease, background-color 220ms ease, color 220ms ease, transform 240ms ease;
}

.journey-input-step-button.current .journey-input-step-dot,
.journey-input-step-button.completed .journey-input-step-dot {
  border-color: rgba(52, 211, 153, 0.82);
  background: rgba(110, 231, 183, 0.9);
  color: #0f1a22;
  transform: scale(1.04);
}

.journey-input-step-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.journey-input-step-title {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
}

.journey-link-icon-btn {
  width: 2.5rem;
  min-width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.journey-sample-icon-btn {
  width: 2.25rem;
  min-width: 2.25rem;
  height: 2.25rem;
}

.journey-link-icon-btn-danger {
  border-color: rgba(239, 68, 68, 0.4);
  color: #fecaca;
}

.journey-link-icon-btn-danger:hover {
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(69, 10, 10, 0.4);
}

.journey-link-icon {
  width: 1.05rem;
  height: 1.05rem;
  display: inline-flex;
}

.journey-link-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 767px) {
  .journey-input-subphase-buttons {
    justify-content: flex-start;
  }

  .journey-input-meta,
  .journey-input-meta-copy,
  .journey-input-meta-actions {
    justify-content: flex-start;
  }

  .journey-input-step-button {
    min-width: 8.75rem;
    max-width: 100%;
  }

  .journey-sample-icon-btn {
    width: 2.5rem;
    min-width: 2.5rem;
    height: 2.5rem;
  }
}

@media (min-width: 768px) {
  .journey-input-meta {
    justify-content: space-between;
  }

  .journey-input-meta-copy {
    justify-content: flex-start;
  }

  .journey-input-meta-actions {
    margin-inline-start: auto;
    justify-content: flex-end;
  }
}
