:root {
  --va-tour-backdrop: rgba(15, 23, 42, 0.58);
  --va-tour-card-bg: #ffffff;
  --va-tour-border: rgba(15, 23, 42, 0.14);
  --va-tour-text: #172033;
  --va-tour-muted: #617085;
  --va-tour-primary: #0f766e;
  --va-tour-primary-dark: #115e59;
  --va-tour-focus: rgba(15, 118, 110, 0.24);
}

.va-tour-active {
  scroll-behavior: smooth;
}

.va-tour-overlay,
.va-tour-spotlight,
.va-tour-card {
  box-sizing: border-box;
}

.va-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.va-tour-overlay.va-tour-overlay--dim-all {
  background: var(--va-tour-backdrop);
}

.va-tour-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.va-tour-spotlight {
  position: fixed;
  z-index: 9991;
  border: 2px solid #2dd4bf;
  border-radius: 14px;
  background: transparent;
  box-shadow:
    0 0 0 9999px rgba(15, 23, 42, 0.48),
    0 0 0 7px rgba(45, 212, 191, 0.18),
    0 20px 58px rgba(15, 23, 42, 0.24);
  pointer-events: none;
  transition: none;
}

.va-tour-target-active {
  outline: 3px solid rgba(45, 212, 191, 0.95) !important;
  outline-offset: 4px;
  border-radius: 8px;
  box-shadow:
    0 0 0 8px rgba(20, 184, 166, 0.18),
    0 16px 42px rgba(15, 23, 42, 0.18) !important;
  scroll-margin: 96px;
}

.va-tour-card {
  position: fixed;
  z-index: 9992;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  color: var(--va-tour-text);
  background: var(--va-tour-card-bg);
  border: 1px solid var(--va-tour-border);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.26);
  padding: 18px;
}

.va-tour-card.va-tour-start-card {
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  width: min(500px, calc(100vw - 32px));
  transform: translate(-50%, -50%);
  padding: 22px;
}

.va-tour-card[hidden],
.va-tour-overlay[hidden],
.va-tour-spotlight[hidden] {
  display: none !important;
}

.va-tour-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.va-tour-kicker {
  margin: 0 0 4px;
  color: var(--va-tour-primary-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.va-tour-title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.28;
}

.va-tour-start-card__eyebrow {
  margin: 0 0 7px;
  color: var(--va-tour-primary-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.va-tour-start-card__title {
  margin: 0;
  color: #0f172a;
  font-size: 1.35rem;
  line-height: 1.2;
}

.va-tour-start-card__text,
.va-tour-start-card__note {
  margin: 12px 0 0;
  line-height: 1.55;
}

.va-tour-start-card__text {
  color: var(--va-tour-text);
  font-size: 0.98rem;
}

.va-tour-start-card__note {
  color: var(--va-tour-muted);
  font-size: 0.9rem;
}

.va-tour-start-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.va-tour-close {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
}

.va-tour-close:hover,
.va-tour-close:focus-visible {
  border-color: var(--va-tour-primary);
  outline: 3px solid var(--va-tour-focus);
}

.va-tour-text,
.va-tour-note,
.va-tour-status {
  margin: 0;
  line-height: 1.52;
}

.va-tour-text {
  font-size: 0.95rem;
}

.va-tour-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-left: 3px solid var(--va-tour-primary);
  border-radius: 6px;
  background: #f0fdfa;
  color: #334155;
  font-size: 0.88rem;
}

.va-tour-status {
  min-height: 1.2em;
  margin-top: 10px;
  color: var(--va-tour-muted);
  font-size: 0.84rem;
}

.va-tour-progress {
  margin: 14px 0;
}

.va-tour-progress__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  color: var(--va-tour-muted);
  font-size: 0.8rem;
}

.va-tour-progress__bar {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.va-tour-progress__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #14b8a6);
}

.va-tour-section-picker {
  display: grid;
  gap: 6px;
  margin: 14px 0 12px;
}

.va-tour-section-picker label {
  color: var(--va-tour-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.va-tour-section-picker select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 8px;
  background: #fff;
  color: var(--va-tour-text);
  padding: 0 10px;
}

.va-tour-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.va-tour-btn {
  min-height: 38px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  background: #ffffff;
  color: #1f2937;
  padding: 0 12px;
  font-weight: 700;
  cursor: pointer;
}

.va-tour-btn:hover,
.va-tour-btn:focus-visible {
  border-color: var(--va-tour-primary);
  outline: 3px solid var(--va-tour-focus);
}

.va-tour-btn--primary {
  border-color: var(--va-tour-primary);
  background: var(--va-tour-primary);
  color: #fff;
}

.va-tour-btn--start {
  border-color: transparent;
  background: linear-gradient(135deg, #0891b2 0%, #14b8a6 48%, #2dd4bf 100%);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(20, 184, 166, 0.32);
}

.va-tour-btn--primary:hover,
.va-tour-btn--primary:focus-visible {
  background: var(--va-tour-primary-dark);
}

.va-tour-btn--start:hover,
.va-tour-btn--start:focus-visible {
  border-color: transparent;
  background: linear-gradient(135deg, #0e7490 0%, #0f766e 52%, #14b8a6 100%);
}

.va-tour-btn--muted {
  color: var(--va-tour-muted);
}

.va-tour-btn--danger {
  border-color: rgba(185, 28, 28, 0.3);
  color: #991b1b;
}

.va-tour-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

.va-tour-help-menu {
  position: fixed;
  z-index: 10000;
  min-width: 230px;
  padding: 8px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
}

.va-tour-help-menu[hidden] {
  display: none !important;
}

.va-tour-help-menu button,
.va-tour-help-menu a {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #172033;
  padding: 0 10px;
  font: inherit;
  font-weight: 650;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.va-tour-help-menu button:hover,
.va-tour-help-menu button:focus-visible,
.va-tour-help-menu a:hover,
.va-tour-help-menu a:focus-visible {
  background: #f1f5f9;
  outline: none;
}

.va-tour-help-menu .material-icons {
  color: var(--va-tour-primary);
  font-size: 20px;
}

@media (max-width: 720px) {
  .va-tour-overlay.va-tour-overlay--dim-all {
    background: rgba(15, 23, 42, 0.48);
  }

  .va-tour-spotlight {
    display: none;
  }

  .va-tour-card {
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    top: auto !important;
    width: auto;
    max-height: min(78vh, 620px);
    border-radius: 8px;
  }

  .va-tour-card.va-tour-start-card {
    left: 10px !important;
    right: 10px !important;
    top: 50% !important;
    bottom: auto !important;
    width: auto;
    transform: translateY(-50%);
  }

  .va-tour-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .va-tour-start-card__actions {
    grid-template-columns: 1fr;
  }

  .va-tour-btn--primary {
    grid-column: span 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .va-tour-active {
    scroll-behavior: auto;
  }

  .va-tour-overlay,
  .va-tour-spotlight {
    transition: none;
  }
}
