.ah-tour[hidden] {
  display: none !important;
}

.ah-tour,
.ah-tour * {
  box-sizing: border-box;
}

.ah-tour {
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 1000;
}

.ah-tour-scrim {
  background: rgba(2, 6, 23, .22);
  inset: 0;
  position: absolute;
}

.ah-tour-spotlight {
  border: 2px solid #22d3ee;
  border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(2, 6, 23, .62), 0 0 34px rgba(34, 211, 238, .42);
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: translate3d(0, 0, 0);
  transition: height 180ms ease, left 180ms ease, opacity 140ms ease, top 180ms ease, width 180ms ease;
}

.ah-tour-spotlight.is-visible {
  opacity: 1;
}

.ah-tour-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, .98), rgba(3, 7, 18, .98));
  border: 1px solid rgba(94, 234, 212, .46);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
  color: #e5e7eb;
  max-height: calc(100vh - 32px);
  max-width: calc(100vw - 32px);
  min-height: 240px;
  overflow-y: auto;
  padding: 18px;
  pointer-events: auto;
  position: absolute;
  transition: left 180ms ease, top 180ms ease;
  width: min(390px, calc(100vw - 32px));
}

.ah-tour-card-top {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 46px minmax(0, 1fr);
}

.ah-tour-avatar {
  align-items: center;
  background: rgba(6, 78, 59, .9);
  border: 1px solid rgba(94, 234, 212, .58);
  border-radius: 8px;
  color: #ccfbf1;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  letter-spacing: 0;
  width: 46px;
}

.ah-tour-heading-copy {
  min-width: 0;
}

.ah-tour-kicker {
  color: #67e8f9;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.ah-tour-card h2 {
  color: #f8fafc;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.12;
  margin: 0;
  overflow-wrap: anywhere;
}

.ah-tour-body {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.55;
  margin: 16px 0 0;
}

.ah-tour-progress {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  margin-top: 18px;
}

.ah-tour-progress span:first-child {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.ah-tour-progress-track {
  background: rgba(30, 41, 59, .92);
  border-radius: 999px;
  display: block;
  height: 8px;
  overflow: hidden;
}

.ah-tour-progress-track span {
  background: linear-gradient(90deg, #22c55e, #22d3ee);
  display: block;
  height: 100%;
  transition: width 180ms ease;
  width: 0;
}

.ah-tour-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.ah-tour-action-spacer {
  flex: 1;
}

.ah-tour-button {
  align-items: center;
  background: rgba(15, 23, 42, .95);
  border: 1px solid rgba(71, 85, 105, .9);
  border-radius: 8px;
  color: #dbeafe;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  justify-content: center;
  min-height: 38px;
  min-width: 66px;
  padding: 8px 12px;
  white-space: nowrap;
}

.ah-tour-button:hover,
.ah-tour-button:focus-visible {
  border-color: rgba(125, 211, 252, .82);
  color: #f8fafc;
  outline: none;
}

.ah-tour-button.is-primary {
  background: #10b981;
  border-color: #34d399;
  color: #032018;
}

.ah-tour-button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

body.ah-tour-left-menu-expanded .ah-left-menu {
  width: var(--ah-left-menu-open);
}

body.ah-tour-left-menu-expanded .ah-left-menu-logo span,
body.ah-tour-left-menu-expanded .ah-left-menu-label,
body.ah-tour-left-menu-expanded .ah-left-menu-section h2,
body.ah-tour-left-menu-expanded .ah-left-menu-search input,
body.ah-tour-left-menu-expanded .ah-left-menu-search kbd {
  opacity: 1;
}

body.ah-tour-active .ah-global-squawk-toggle {
  z-index: 92;
}

.ah-tour-target-pulse {
  outline: 2px solid rgba(34, 211, 238, .64);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .ah-tour-card {
    max-height: calc(100vh - 24px);
    min-height: 232px;
    padding: 16px;
    width: calc(100vw - 24px);
  }

  .ah-tour-card h2 {
    font-size: 20px;
  }

  .ah-tour-actions {
    flex-wrap: wrap;
  }

  .ah-tour-button {
    flex: 1 1 auto;
    min-width: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ah-tour-card,
  .ah-tour-progress-track span,
  .ah-tour-spotlight {
    transition: none;
  }
}
