.ee-tour-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  color: #fffaf0;
  background: transparent;
  font-family: "Hammersmith One", system-ui, sans-serif;
}

.ee-tour-dialog::backdrop {
  background: transparent;
}

.ee-tour-stage,
.ee-tour-scrim,
.ee-tour-effects {
  position: fixed;
  inset: 0;
}

.ee-tour-stage {
  overflow: hidden;
  pointer-events: auto;
}

.ee-tour-scrim {
  background: rgba(2, 8, 27, .76);
  backdrop-filter: blur(3px);
}

.ee-tour-spotlight {
  position: fixed;
  top: var(--tour-spot-top, 50%);
  left: var(--tour-spot-left, 50%);
  width: var(--tour-spot-width, 1px);
  height: var(--tour-spot-height, 1px);
  border: 3px solid var(--tour-accent, #f3c762);
  border-radius: 24px;
  box-shadow: 0 0 0 200vmax rgba(2, 8, 27, .76), 0 0 0 7px color-mix(in srgb, var(--tour-accent) 20%, transparent), 0 0 34px var(--tour-glow, rgba(243, 199, 98, .55));
  pointer-events: none;
  transition: top .24s ease, left .24s ease, width .24s ease, height .24s ease;
  z-index: 1;
}

.ee-tour-card {
  position: fixed;
  z-index: 3;
  width: min(390px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--tour-accent, #f3c762) 60%, transparent);
  border-radius: 25px;
  background: var(--tour-card, linear-gradient(145deg, #102a69, #071a47));
  box-shadow: 0 26px 80px rgba(0, 0, 0, .42), inset 0 1px rgba(255, 255, 255, .14);
  animation: eeTourCardIn .34s ease-out both;
}

.ee-tour-card[data-step-kind="intro"],
.ee-tour-card[data-step-kind="finish"] {
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%);
}

.ee-tour-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 0;
  cursor: pointer;
}

.ee-tour-close::before,
.ee-tour-close::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 21px;
  width: 17px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transform: rotate(45deg);
}

.ee-tour-close::after { transform: rotate(-45deg); }

.ee-tour-eyebrow {
  margin: 0 46px 9px 0;
  color: var(--tour-accent, #f3c762);
  font-size: .73rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.ee-tour-title {
  margin: 0 38px 10px 0;
  font-family: var(--tour-display, "Hammersmith One", system-ui, sans-serif);
  font-size: clamp(1.42rem, 4vw, 1.9rem);
  line-height: 1.05;
}

.ee-tour-body {
  margin: 0;
  color: var(--tour-copy, rgba(255, 250, 240, .82));
  font: 600 .95rem/1.55 system-ui, sans-serif;
}

.ee-tour-status {
  margin: 18px 0 10px;
  color: var(--tour-accent, #f3c762);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ee-tour-actions {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
}

.ee-tour-button,
.ee-tour-invitation button {
  min-height: 44px;
  border: 1px solid color-mix(in srgb, var(--tour-accent, #f3c762) 58%, transparent);
  border-radius: 13px;
  padding: 9px 14px;
  color: inherit;
  background: rgba(255, 255, 255, .07);
  font: 700 .82rem/1 system-ui, sans-serif;
  cursor: pointer;
}

.ee-tour-button--next,
.ee-tour-invitation-start {
  color: var(--tour-ink, #08163d) !important;
  background: var(--tour-accent, #f3c762) !important;
}

.ee-tour-button:disabled { opacity: .35; cursor: default; }
.ee-tour-button:focus-visible,
.ee-tour-close:focus-visible,
.ee-tour-invitation button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.ee-tour-effects { z-index: 2; overflow: hidden; pointer-events: none; }
.ee-tour-effect {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tour-accent, #f3c762);
  box-shadow: 0 0 18px var(--tour-accent, #f3c762);
  animation: eeTourOrbit 4.8s ease-in-out infinite;
}
.ee-tour-effect:nth-child(1) { left: 8%; top: 18%; animation-delay: -.4s; }
.ee-tour-effect:nth-child(2) { left: 24%; top: 78%; animation-delay: -1.8s; }
.ee-tour-effect:nth-child(3) { left: 52%; top: 12%; animation-delay: -2.7s; }
.ee-tour-effect:nth-child(4) { left: 76%; top: 70%; animation-delay: -3.4s; }
.ee-tour-effect:nth-child(5) { left: 91%; top: 28%; animation-delay: -1s; }
.ee-tour-effect:nth-child(6) { left: 63%; top: 89%; animation-delay: -4s; }
.ee-tour-effect:nth-child(7) { left: 38%; top: 42%; animation-delay: -2.1s; }

.ee-tour-dialog[data-tour-theme="company"] {
  --tour-accent: #f3c762;
  --tour-card: linear-gradient(150deg, #12264e, #07152d 72%);
  --tour-glow: rgba(93, 190, 255, .58);
}
.ee-tour-dialog[data-tour-theme="company"] .ee-tour-effects::before {
  content: "";
  position: absolute;
  left: -20%; right: -20%; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #74d2ff, transparent);
  box-shadow: 0 0 22px #74d2ff;
  animation: eeTourScan 4s linear infinite;
}

.ee-tour-dialog[data-tour-theme="watercheck"] {
  --tour-accent: #84edff;
  --tour-ink: #06253c;
  --tour-card: linear-gradient(145deg, #087cad, #06446f 58%, #092f55);
  --tour-glow: rgba(132, 237, 255, .62);
  --tour-display: "Instrument Serif", Georgia, serif;
}
.ee-tour-dialog[data-tour-theme="watercheck"] .ee-tour-effect {
  border: 1px solid rgba(255,255,255,.8);
  background: rgba(132,237,255,.18);
  animation-name: eeTourBubble;
}

.ee-tour-dialog[data-tour-theme="mybiblelens"] {
  --tour-accent: #efb94e;
  --tour-ink: #2b170d;
  --tour-card: linear-gradient(145deg, #211008, #4a2817);
  --tour-glow: rgba(239, 185, 78, .58);
}
.ee-tour-dialog[data-tour-theme="mybiblelens"] .ee-tour-spotlight { border-style: dashed; }

.ee-tour-invitation {
  --tour-accent: #f3c762;
  --tour-ink: #08163d;
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  top: max(92px, calc(env(safe-area-inset-top) + 76px));
  z-index: 9000;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  width: min(540px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--tour-accent) 64%, transparent);
  border-radius: 18px;
  color: #fffaf0;
  background: rgba(7, 24, 65, .96);
  box-shadow: 0 18px 50px rgba(0,0,0,.34);
  font-family: "Hammersmith One", system-ui, sans-serif;
  animation: eeTourInviteIn .4s ease-out both;
}
.ee-tour-invitation[data-tour-theme="company"] { background: rgba(7, 21, 45, .97); }
.ee-tour-invitation[data-tour-theme="watercheck"] { --tour-accent:#84edff; --tour-ink:#06253c; background:rgba(5,63,99,.97); }
.ee-tour-invitation[data-tour-theme="mybiblelens"] { --tour-accent:#efb94e; --tour-ink:#2b170d; background:rgba(37,19,10,.97); }
.ee-tour-invitation-icon { color:var(--tour-accent); font-size:1.4rem; animation:eeTourSpark 1.9s ease-in-out infinite; }
.ee-tour-invitation-copy { display:grid; gap:2px; }
.ee-tour-invitation-copy strong { color:var(--tour-accent); font-size:.88rem; }
.ee-tour-invitation-copy span { color:rgba(255,255,255,.75); font:600 .75rem/1.35 system-ui,sans-serif; }

@keyframes eeTourCardIn { from { opacity:0; } }
@keyframes eeTourInviteIn { from { opacity:0; transform:translateY(-12px) scale(.98); } }
@keyframes eeTourOrbit { 50% { transform:translate(18px,-14px) scale(1.5); opacity:.4; } }
@keyframes eeTourBubble { from { transform:translateY(55vh) scale(.6); opacity:0; } 30% { opacity:.75; } to { transform:translateY(-35vh) scale(1.6); opacity:0; } }
@keyframes eeTourScan { from { transform:translateY(0); } to { transform:translateY(100vh); } }
@keyframes eeTourSpark { 50% { transform:rotate(25deg) scale(1.25); filter:drop-shadow(0 0 8px currentColor); } }

@media (max-width: 700px) {
  .ee-tour-card,
  .ee-tour-card[data-step-kind="intro"],
  .ee-tour-card[data-step-kind="finish"] {
    left: 10px !important;
    right: 10px;
    top: var(--tour-card-top, 10px) !important;
    bottom: auto;
    width: auto;
    max-height: min(58dvh, 490px);
    overflow-y: auto;
    transform: none;
    padding: 21px 18px 16px;
    border-radius: 24px;
  }
  .ee-tour-card[data-placement="sheet"] {
    top: auto !important;
    bottom: max(10px, env(safe-area-inset-bottom));
  }
  .ee-tour-card[data-placement="sheet-top"] {
    top: max(10px, env(safe-area-inset-top)) !important;
    bottom: auto;
  }
  .ee-tour-dialog { height:100dvh; }
  .ee-tour-actions { grid-template-columns:1fr 1fr; }
  .ee-tour-button--quiet { grid-column:1 / -1; order:3; }
  .ee-tour-button--back, .ee-tour-button--next { min-height:48px; }
  .ee-tour-invitation {
    left: 10px;
    right: 10px;
    top: auto;
    bottom: max(10px, env(safe-area-inset-bottom));
    width: auto;
    grid-template-columns:auto minmax(0,1fr);
  }
  .ee-tour-invitation button { width:100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ee-tour-card,
  .ee-tour-invitation,
  .ee-tour-effect,
  .ee-tour-effects::before,
  .ee-tour-invitation-icon,
  .ee-tour-spotlight {
    animation: none !important;
    transition: none !important;
  }
}
