.workspace-app [data-work-node="group"][data-preview-tutorial-group-visibility="hidden"] {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
}

.workspace-app [data-work-node="group"][data-preview-tutorial-group-visibility="leaving"] {
  pointer-events: none;
}

.workspace-app [data-preview-tutorial-sidebar-locked] {
  cursor: not-allowed;
}

body.workspace-active .workspace-app:has(.preview-demo-note[data-preview-tutorial-page="3"]) :is(.robot-library-list, .robot-feature-list)[data-preview-tutorial-sidebar-locked] button {
  border-color: #e5e7eb !important;
  background: #f7f7f7 !important;
  color: #9ca3af !important;
  box-shadow: none !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
}

.workspace-app .preview-tutorial-kind-breathe {
  position: relative !important;
}

.workspace-app .preview-tutorial-kind-breathe::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  animation: preview-tutorial-kind-glow 2.6s ease-in-out infinite;
}

.workspace-app .preview-tutorial-kind-breathe:is([data-robot-library-target="guard"], [data-bot-type-choice="guard"]) {
  --preview-tutorial-glow-rgb: 37 99 235;
}

.workspace-app .preview-tutorial-kind-breathe:is([data-robot-library-target="points"], [data-bot-type-choice="points"]) {
  --preview-tutorial-glow-rgb: 196 111 45;
}

.workspace-app .preview-tutorial-kind-breathe:is([data-robot-library-target="analytics"], [data-bot-type-choice="analytics"]) {
  --preview-tutorial-glow-rgb: 138 114 85;
}

.workspace-app .preview-tutorial-kind-breathe:is([data-robot-library-target="scheduled-messages"], [data-bot-type-choice="scheduled-messages"]) {
  --preview-tutorial-glow-rgb: 123 91 195;
}

.workspace-app .preview-tutorial-kind-breathe:is([data-robot-library-target="events-lottery"], [data-bot-type-choice="events-lottery"]) {
  --preview-tutorial-glow-rgb: 196 93 120;
}

.workspace-app .preview-tutorial-glow-unclipped {
  overflow: visible !important;
}

@keyframes preview-tutorial-kind-glow {
  0%, 100% {
    box-shadow: 0 0 6px rgb(var(--preview-tutorial-glow-rgb) / 10%);
  }
  50% {
    box-shadow:
      0 0 20px rgb(var(--preview-tutorial-glow-rgb) / 38%),
      0 0 5px rgb(var(--preview-tutorial-glow-rgb) / 24%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .workspace-app .preview-tutorial-kind-breathe::after {
    animation: none;
    box-shadow: 0 0 12px rgb(var(--preview-tutorial-glow-rgb) / 22%);
  }
}

.preview-tutorial-step-notice {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 10020;
  transform: translate(-50%, -50%);
  max-width: min(520px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 14px 22px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #374151;
  box-shadow: none;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  pointer-events: none;
}

.workspace-app .preview-demo-note {
  width: 420px !important;
  height: 440px !important;
  min-height: 440px !important;
  border-color: #ef4444 !important;
  animation: preview-note-red-breathe 2.6s ease-in-out infinite;
}

.workspace-app .preview-demo-note [data-preview-demo-note-body] {
  overflow-y: auto;
}

.workspace-app .preview-demo-note .preview-demo-note-intro {
  padding: 18px 14px;
  color: #20242c;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
}

.workspace-app .preview-demo-note .preview-demo-note-intro p {
  margin: 0 0 16px;
  font: inherit;
  color: inherit;
}

.workspace-app .preview-demo-note .preview-demo-note-intro p:last-child {
  margin-bottom: 0;
}

.workspace-app .preview-demo-note .preview-demo-note-intro .preview-demo-note-important {
  display: inline;
  font-size: 16px;
  font-weight: 500;
  line-height: inherit;
}

.workspace-app .preview-demo-note-actions {
  flex: 0 0 auto;
  padding: 0 38px 10px 12px;
}

.workspace-app .preview-demo-note[data-preview-tutorial-started="true"] {
  animation: none;
  box-shadow: 0 0 8px rgb(239 68 68 / 12%);
}

.workspace-app .preview-demo-note-actions.is-tutorial-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.workspace-app .preview-demo-note .preview-demo-note-start {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #dc2626;
  border-radius: 8px;
  background: #dc2626;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  cursor: pointer;
}

.workspace-app .preview-demo-note .preview-demo-note-start:focus-visible {
  outline: 2px solid #ef4444;
  outline-offset: 2px;
}

.workspace-app .preview-demo-note .preview-demo-note-start:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.workspace-app .preview-demo-note [data-preview-demo-note-handle] {
  border-color: #ef4444;
}

.workspace-app .preview-demo-note [data-preview-demo-note-handle]::after {
  background-color: #ef4444;
}

.workspace-app .preview-demo-note .config-visual-node-copy strong {
  font-size: 17px;
  font-weight: 500;
}

.workspace-app [data-preview-tutorial-capsule][hidden] {
  display: none !important;
}

.workspace-app .preview-tutorial-capsule-breathe,
.workspace-app .preview-tutorial-group-breathe {
  animation: preview-tutorial-capsule-gray-breathe 2.6s ease-in-out infinite;
}

@keyframes preview-tutorial-capsule-gray-breathe {
  0%, 100% {
    box-shadow:
      0 2px 4px rgb(107 114 128 / 8%),
      0 0 7px rgb(107 114 128 / 10%);
  }
  50% {
    box-shadow:
      0 3px 8px rgb(107 114 128 / 14%),
      0 0 24px rgb(107 114 128 / 38%),
      0 0 5px rgb(107 114 128 / 24%);
  }
}

.workspace-app .workspace-group-rail.preview-tutorial-capsule-unclipped {
  overflow: visible !important;
}

.workspace-app [data-preview-tutorial-capsule][inert] {
  pointer-events: none;
}

body.workspace-active .workspace-app:has(.preview-demo-note[data-preview-tutorial-page="1"]) [data-new-workspace] {
  animation: preview-tutorial-connect-blue-breathe 2.6s ease-in-out infinite;
}

@keyframes preview-tutorial-connect-blue-breathe {
  0%, 100% {
    box-shadow:
      0 2px 4px rgb(37 99 235 / 8%),
      0 0 7px rgb(37 99 235 / 10%);
  }
  50% {
    box-shadow:
      0 3px 8px rgb(37 99 235 / 14%),
      0 0 24px rgb(37 99 235 / 38%),
      0 0 5px rgb(37 99 235 / 24%);
  }
}

@keyframes preview-note-red-breathe {
  0%, 100% {
    box-shadow:
      0 2px 4px rgb(239 68 68 / 8%),
      0 0 7px rgb(239 68 68 / 10%);
  }
  50% {
    box-shadow:
      0 3px 8px rgb(239 68 68 / 14%),
      0 0 24px rgb(239 68 68 / 38%),
      0 0 5px rgb(239 68 68 / 24%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .workspace-app .preview-tutorial-capsule-breathe,
  .workspace-app .preview-tutorial-group-breathe {
    animation: none;
    box-shadow: 0 0 14px rgb(107 114 128 / 22%);
  }

  .workspace-app .preview-demo-note {
    animation: none;
    box-shadow: 0 0 14px rgb(239 68 68 / 22%);
  }

  body.workspace-active .workspace-app:has(.preview-demo-note[data-preview-tutorial-page="1"]) [data-new-workspace] {
    animation: none;
    box-shadow: 0 0 14px rgb(37 99 235 / 22%);
  }
}
