.nexus-tour-lock {
  overflow: hidden;
}

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

.nexus-tour-root {
  position: fixed;
  inset: 0;
  z-index: 340;
  color: #102033;
  font-family:
    Inter,
    "Noto Sans SC",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  pointer-events: auto;
}

.nexus-tour-root[hidden] {
  display: none;
}

.nexus-tour-canvas {
  position: absolute;
  inset: 0;
  pointer-events: auto;
}

.nexus-tour-highlight {
  position: fixed;
  border: 2px solid #49c6e8;
  border-radius: 10px;
  box-shadow:
    0 0 0 9999px rgba(4, 13, 31, 0.62),
    0 22px 70px rgba(17, 73, 108, 0.28);
  transition:
    top 0.18s ease,
    left 0.18s ease,
    width 0.18s ease,
    height 0.18s ease;
  pointer-events: none;
}

.nexus-tour-highlight::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(73, 198, 232, 0.42);
  border-radius: 14px;
}

.nexus-tour-highlight.is-centered {
  inset: 0;
  width: 100vw;
  height: 100vh;
  border-color: transparent;
  border-radius: 0;
  background: rgba(4, 13, 31, 0.62);
  box-shadow: none;
}

.nexus-tour-card {
  position: fixed;
  width: min(380px, calc(100vw - 32px));
  border: 1px solid rgba(73, 198, 232, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 76px rgba(4, 13, 31, 0.32);
  padding: 18px;
  pointer-events: auto;
}

.nexus-tour-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: #1878bd;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nexus-tour-progress {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.nexus-tour-title {
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.28;
}

.nexus-tour-copy {
  margin: 10px 0 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.72;
}

.nexus-tour-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(249, 174, 31, 0.3);
  border-radius: 8px;
  background: #fff8e5;
  color: #6f4b00;
  font-size: 13px;
  line-height: 1.6;
}

.nexus-tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.nexus-tour-actions-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nexus-tour-button {
  min-height: 38px;
  border: 1px solid rgba(24, 120, 189, 0.22);
  border-radius: 8px;
  background: #fff;
  color: #174567;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 0 14px;
}

.nexus-tour-button:hover {
  border-color: rgba(24, 120, 189, 0.48);
  color: #0f6ea8;
}

.nexus-tour-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.nexus-tour-button-primary {
  border-color: #1a93d2;
  background: linear-gradient(135deg, #1b91d0, #53cee9);
  color: #fff;
  box-shadow: 0 12px 28px rgba(27, 145, 208, 0.24);
}

.nexus-tour-button-primary:hover {
  color: #fff;
  filter: brightness(1.03);
}

.nexus-tour-skip {
  border-color: transparent;
  background: transparent;
  color: #64748b;
  padding-inline: 6px;
}

.nexus-tour-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .nexus-tour-card {
    left: 12px !important;
    right: 12px;
    bottom: 12px !important;
    top: auto !important;
    width: auto;
    max-height: min(58vh, 420px);
    overflow: auto;
    padding: 16px;
  }

  .nexus-tour-title {
    font-size: 18px;
  }

  .nexus-tour-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .nexus-tour-actions-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .nexus-tour-button {
    width: 100%;
  }

  .nexus-tour-skip {
    order: 2;
  }
}

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