#tut-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  pointer-events: none;
  --tut-spotlight-radius: 12px;
}

#tut-spotlight {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.68);
  -webkit-mask: url(#tut-spotlight-mask);
  mask: url(#tut-spotlight-mask);
  pointer-events: none;
}

#tut-spotlight-ring {
  position: fixed;
  z-index: 2;
  pointer-events: none;
  box-sizing: border-box;
  border-radius: var(--tut-spotlight-radius, 12px);
  border: 2px solid #2563eb;
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.85),
    0 0 14px rgba(37, 99, 235, 0.55),
    0 0 28px rgba(37, 99, 235, 0.35),
    0 0 44px rgba(37, 99, 235, 0.2);
  transition: top 0.35s ease, left 0.35s ease, width 0.35s ease, height 0.35s ease;
}

#tut-mask {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.tut-mask-panel {
  position: fixed;
  pointer-events: auto;
  background: transparent;
}

.tut-overlay--welcome #tut-spotlight {
  background: rgba(0, 0, 0, 0.55);
}

#tut-tooltip {
  position: fixed;
  width: min(380px, calc(100vw - 24px));
  background: #fff;
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
  transition: top 0.3s ease, left 0.3s ease;
  z-index: 3;
  font-family: system-ui, -apple-system, sans-serif;
  color: #1f2937;
  box-sizing: border-box;
}

#tut-step-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 4px;
}

#tut-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.3;
}

#tut-desc {
  font-size: 13px;
  line-height: 1.55;
  color: #4b5563;
  margin: 0 0 16px;
}

#tut-media {
  margin: 0 0 16px;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f4f6;
}

#tut-media[hidden] {
  display: none;
}

#tut-media img,
#tut-media video {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(28vh, 200px);
  object-fit: contain;
}

#tut-tooltip.tut-tooltip--with-media {
  width: min(420px, calc(100vw - 24px));
}

#tut-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#tut-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}

.tut-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d1d5db;
  flex-shrink: 0;
}

.tut-dot.active {
  background: #2563eb;
}

#tut-buttons {
  display: flex;
  gap: 8px;
}

#tut-skip,
#tut-back,
#tut-next {
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  white-space: nowrap;
  text-align: center;
}

#tut-skip:hover,
#tut-back:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

#tut-next {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  font-weight: 600;
}

#tut-next:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

#tut-next:disabled,
#tut-next.tut-next--waiting:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#tut-next:disabled:hover {
  background: #2563eb;
  border-color: #2563eb;
}

@media (max-width: 400px) {
  #tut-buttons {
    flex-direction: column;
  }
}
