.iris-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
}

.iris-tour-target {
  scroll-margin: 24px;
}

.iris-tour-mask {
  position: fixed;
  background: rgb(15 23 42 / 52%);
  backdrop-filter: blur(1.5px);
}

.iris-tour-interaction-blocker {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: transparent;
}

.iris-tour-spotlight {
  position: fixed;
  z-index: 10002;
  pointer-events: none;
  background: rgb(99 102 241 / 7%);
  border: 2px solid rgb(99 102 241 / 82%);
  border-radius: 14px;
  box-shadow:
    0 0 0 4px rgb(255 255 255 / 72%),
    0 14px 36px rgb(15 23 42 / 22%);
  transition:
    left 160ms ease,
    top 160ms ease,
    width 160ms ease,
    height 160ms ease;
}

.iris-tour-dialog {
  position: fixed;
  z-index: 10003;
  width: min(320px, calc(100vw - 32px));
  padding: 20px;
  color: var(--iris-text-primary, #111827);
  background: #fff;
  border: 1px solid var(--iris-border, #e5e7eb);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgb(15 23 42 / 24%);
}

.iris-tour-dialog-centered {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.iris-tour-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.iris-tour-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.4;
}

.iris-tour-close {
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--iris-text-secondary, #6b7280);
  font-size: 1.25rem;
  line-height: 1;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.iris-tour-close:hover,
.iris-tour-close:focus-visible {
  color: var(--iris-text-primary, #111827);
  background: var(--iris-surface-subtle, #f3f4f6);
  outline: none;
}

.iris-tour-content {
  min-height: 48px;
  margin: 18px 0 14px;
  color: var(--iris-text-secondary, #4b5563);
  font-size: 0.925rem;
  line-height: 1.55;
}

.iris-tour-progress-label {
  margin: 0 0 8px;
  color: var(--iris-text-tertiary, #6b7280);
  font-size: 0.75rem;
  font-weight: 600;
}

.iris-tour-progress-track {
  width: 100%;
  height: 4px;
  overflow: hidden;
  background: var(--iris-surface-subtle, #e5e7eb);
  border-radius: 999px;
}

.iris-tour-progress-bar {
  display: block;
  height: 100%;
  background: var(--iris-accent, #6366f1);
  border-radius: inherit;
  transition: width 180ms ease;
}

.iris-tour-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.iris-tour-button {
  min-width: 84px;
  padding: 9px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
}

.iris-tour-button:focus-visible {
  outline: 3px solid rgb(99 102 241 / 25%);
  outline-offset: 2px;
}

.iris-tour-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.iris-tour-button-secondary {
  color: var(--iris-text-secondary, #4b5563);
  background: #fff;
  border-color: var(--iris-border, #d1d5db);
}

.iris-tour-button-primary {
  color: #fff;
  background: var(--iris-accent, #6366f1);
}

@media (max-width: 640px) {
  .iris-tour-dialog:not(.iris-tour-dialog-centered) {
    right: 16px;
    bottom: 16px;
    left: 16px !important;
    top: auto !important;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .iris-tour-spotlight,
  .iris-tour-progress-bar {
    transition: none;
  }
}
