/* Companion guidance markers. */
.tracker-app-section .companion-step-marker {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 8px 13px;
  overflow: hidden;
  border: 1px solid rgba(226, 250, 174, 0.64);
  border-radius: 6px;
  background: linear-gradient(120deg, #0b4d31, #1d7a4c 48%, #0b4d31);
  background-size: 220% 100%;
  color: #05291b !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 22px rgba(2, 38, 22, 0.24),
    0 0 18px rgba(170, 231, 99, 0.13);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: none;
  text-transform: uppercase;
  animation: companion-marker-shimmer 4.2s ease-in-out infinite;
}

.tracker-app-section .companion-step-marker::after {
  content: "";
  position: absolute;
  inset: -30% auto -30% -45%;
  width: 32%;
  transform: skewX(-18deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.42),
    transparent
  );
  animation: companion-marker-sweep 4.2s ease-in-out infinite;
}

.tracker-app-section .tracker-app-topbar {
  align-items: center;
}

@keyframes companion-marker-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      0 8px 22px rgba(2, 38, 22, 0.24),
      0 0 14px rgba(170, 231, 99, 0.1);
  }
  50% {
    background-position: 100% 50%;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      0 8px 22px rgba(2, 38, 22, 0.24),
      0 0 24px rgba(181, 241, 102, 0.25);
  }
}

@keyframes companion-marker-sweep {
  0%,
  58% {
    left: -45%;
  }
  78%,
  100% {
    left: 125%;
  }
}

@media (max-width: 900px) {
  .tracker-app-section .tracker-app-topbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .tracker-app-section .companion-step-marker {
    width: 100%;
    justify-content: center;
    padding: 9px 11px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tracker-app-section .companion-step-marker,
  .tracker-app-section .companion-step-marker::after {
    animation: none;
  }
}
