.dashboard-tour-quieting-layer {
  position: fixed;
  z-index: 90;
  inset: 0;
  background: rgba(4, 8, 13, 0.38);
}

.dashboard-tour-target {
  position: relative;
  z-index: 91;
  outline: 2px solid var(--dashboard-cyan, #57dce9);
  outline-offset: 4px;
}

.dashboard-tour-callout {
  position: fixed;
  z-index: 92;
  top: 0;
  left: 0;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 18px;
  border: 1px solid var(--dashboard-border, rgba(226, 232, 240, 0.15));
  border-radius: 12px;
  background: var(--dashboard-surface-raised, #171d26);
  color: var(--text, #f8fafc);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  transform: translate3d(var(--dashboard-tour-x, 16px), var(--dashboard-tour-y, 24px), 0);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), opacity 180ms ease-out;
}

.dashboard-tour-callout:focus-visible,
.dashboard-tour-callout button:focus-visible {
  outline: 2px solid var(--dashboard-cyan, #57dce9);
  outline-offset: 3px;
}

.dashboard-tour-callout-header,
.dashboard-tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-tour-count {
  margin: 0;
  color: var(--dashboard-muted, #9aa6b5);
  font-size: 0.8125rem;
}

.dashboard-tour-callout h2 {
  margin: 16px 0 6px;
  font: 600 1.0625rem/1.3 var(--dashboard-font-display, inherit);
}

.dashboard-tour-callout p[data-tour-body] {
  margin: 0;
  color: var(--dashboard-muted, #9aa6b5);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.dashboard-tour-callout button {
  min-height: 44px;
  border: 1px solid var(--dashboard-border, rgba(226, 232, 240, 0.15));
  border-radius: 7px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.dashboard-tour-skip {
  padding: 0 8px;
  color: var(--dashboard-muted, #9aa6b5) !important;
}

.dashboard-tour-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

.dashboard-tour-actions button {
  padding: 0 12px;
}

.dashboard-tour-actions button:last-child {
  border-color: var(--dashboard-cyan, #57dce9);
  background: var(--dashboard-cyan, #57dce9);
  color: #071013;
}

@media (max-width: 760px) {
  .dashboard-tour-callout {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    border-radius: 14px 14px 0 0;
    transform: none;
  }
}

.dashboard-tour-callout[data-compact="true"] {
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  border-radius: 14px 14px 0 0;
  transform: none;
}

.dashboard-tour-callout[data-reduced-motion="true"] {
  transition: none;
}

/* The support shell has a deliberately high fixed stacking layer. A tour must
 * own the interaction surface until it closes so its controls remain visible
 * and pointer reachable at every viewport. */
body.vp-dashboard-tour-active .vp-chat-sidebar {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-tour-callout {
    transition: none;
  }

  .dashboard-tour-target {
    scroll-behavior: auto;
  }
}
