.lab-tutorial-launch {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2100;
  min-height: 42px;
  padding: 0 18px;
  border: none;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffc46b 0%, #ff8a1a 40%, #e85d00 100%);
  color: #000;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 0.78rem;
  font-style: italic;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.45),
    inset 0 -2px 0 rgba(0,0,0,0.2),
    0 4px 14px rgba(255,106,26,0.35);
  cursor: pointer;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.lab-tutorial-launch:hover,
.lab-tutorial-launch:focus-visible {
  outline: 0;
  background: linear-gradient(180deg, #c45400 0%, #e06800 35%, #ff9a3a 70%, #ffb860 100%);
  box-shadow:
    inset 0 3px 6px rgba(0,0,0,0.5),
    inset 0 1px 2px rgba(0,0,0,0.3),
    inset 0 -1px 0 rgba(255,255,255,0.15),
    0 1px 2px rgba(0,0,0,0.2);
  transform: translateY(2px);
  filter: brightness(0.92) contrast(1.05);
  color: rgba(0,0,0,0.75);
  text-shadow: 0 -1px 0 rgba(255,255,255,0.15);
}

.lab-tutorial-launch:active {
  background: linear-gradient(180deg, #a84800 0%, #c45a00 40%, #e88030 80%, #f0a050 100%);
  box-shadow:
    inset 0 4px 8px rgba(0,0,0,0.6),
    inset 0 2px 3px rgba(0,0,0,0.3),
    inset 0 -1px 0 rgba(255,255,255,0.1);
  transform: translateY(3px);
  filter: brightness(0.85) contrast(1.08);
}

.task-guide-controls .lab-tutorial-launch {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 1;
  min-height: 38px;
  padding: 0 20px;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.45),
    inset 0 -2px 0 rgba(0,0,0,0.2),
    0 4px 14px rgba(255,106,26,0.28);
}

.lab-tutorial-overlay[hidden] {
  display: none;
}

.lab-tutorial-overlay {
  position: fixed;
  inset: 0;
  z-index: 2200;
  pointer-events: none;
}

.lab-tutorial-scrim {
  position: absolute;
  inset: 0;
  background: rgba(1, 4, 8, 0.34);
}

.lab-tutorial-spotlight {
  position: fixed;
  border: 2px solid #ff8a1a;
  border-radius: 8px;
  box-shadow:
    0 0 0 4px rgba(255, 160, 40, 0.14),
    0 0 22px rgba(255, 106, 26, 0.46);
  transition: left 0.08s ease, top 0.08s ease, width 0.08s ease, height 0.08s ease;
}

.lab-tutorial-cursor {
  position: fixed;
  z-index: 2202;
  width: 34px;
  height: 44px;
  transform: rotate(-18deg);
  filter: drop-shadow(0 7px 14px rgba(0, 0, 0, 0.45));
}

.lab-tutorial-cursor::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0;
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-bottom: 30px solid #fff1d2;
}

.lab-tutorial-cursor::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 24px;
  width: 10px;
  height: 18px;
  border-radius: 999px;
  background: #ff8a1a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.lab-tutorial-popover {
  position: fixed;
  z-index: 2203;
  width: min(360px, calc(100vw - 28px));
  padding: 16px;
  border: 1px solid rgba(255, 159, 67, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(21, 25, 32, 0.98), rgba(7, 10, 15, 0.98)),
    repeating-linear-gradient(-35deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 8px);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #edf2fb;
  pointer-events: auto;
}

.lab-tutorial-kicker,
.lab-tutorial-progress {
  color: #ffb15f;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 0.68rem;
  font-style: italic;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.lab-tutorial-title {
  margin: 5px 0 0;
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lab-tutorial-body {
  margin: 8px 0 0;
  color: rgba(237, 242, 251, 0.78);
  font-size: 0.86rem;
  line-height: 1.45;
}

.lab-tutorial-actions {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.lab-tutorial-btn {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(32, 38, 48, 0.96), rgba(12, 15, 20, 0.98));
  color: rgba(245, 247, 251, 0.9);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 0.72rem;
  font-style: italic;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
}

.lab-tutorial-btn:hover,
.lab-tutorial-btn:focus-visible {
  outline: 0;
  border-color: rgba(255, 159, 67, 0.42);
  color: #fff;
}

.lab-tutorial-btn--primary {
  border: none;
  background: linear-gradient(180deg, #ffc46b 0%, #ff8a1a 40%, #e85d00 100%);
  color: #000;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.45),
    inset 0 -2px 0 rgba(0,0,0,0.2),
    0 4px 14px rgba(255,106,26,0.35);
}

.lab-tutorial-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 247, 251, 0.78);
  cursor: pointer;
}

.lab-tutorial-close:hover,
.lab-tutorial-close:focus-visible {
  outline: 0;
  color: #fff;
}

@media (max-width: 620px) {
  .lab-tutorial-launch {
    right: 12px;
    bottom: 12px;
    min-height: 38px;
    padding: 0 13px;
    font-size: 0.68rem;
  }

  .lab-tutorial-popover {
    max-height: min(62vh, 420px);
    overflow-y: auto;
    padding: 14px;
  }

  .lab-tutorial-actions {
    grid-template-columns: 1fr 1fr;
  }

  .lab-tutorial-progress {
    grid-column: 1 / -1;
    order: -1;
  }
}
