/* Top slide-out tutorial tip — shared across generator / QE / sketch / blend / stencil */
.tg-page-tutorial-tip {
  position: fixed;
  top: calc(var(--header-height, 64px) + 8px);
  left: 50%;
  z-index: 10050;
  width: min(520px, calc(100vw - 24px));
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.28);
  background: rgba(2, 12, 20, 0.94);
  color: #e2e8f0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
  transform: translateX(-50%) translateY(-24px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.32s ease;
}

.tg-page-tutorial-tip.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.tg-page-tutorial-tip.is-hiding {
  transform: translateX(-50%) translateY(-12px);
  opacity: 0;
  pointer-events: none;
}

.tg-page-tutorial-tip__text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  font-weight: 600;
  color: #e2e8f0;
  text-align: center;
}

.tg-page-tutorial-tip__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 10px;
}

.tg-page-tutorial-tip__watch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.tg-page-tutorial-tip__watch:hover {
  background: rgba(16, 185, 129, 0.22);
  color: #a7f3d0;
}

.tg-page-tutorial-tip__never {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tg-page-tutorial-tip__never:hover {
  color: #e2e8f0;
}

.tg-page-tutorial-tip__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.tg-page-tutorial-tip__close:hover {
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.55);
}

@media (max-width: 480px) {
  .tg-page-tutorial-tip {
    top: calc(var(--header-height, 56px) + 6px);
    width: calc(100vw - 16px);
    padding: 10px 12px 12px;
  }

  .tg-page-tutorial-tip__text {
    font-size: 0.8rem;
    padding-right: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tg-page-tutorial-tip,
  .tg-page-tutorial-tip.is-visible,
  .tg-page-tutorial-tip.is-hiding {
    transition: none;
  }
}
