:root{--tour-dim:rgba(18,22,18,.64);--tour-z:1000}
[data-theme="dark"]{--tour-dim:rgba(0,0,0,.72)}
.tour{position:fixed;inset:0;z-index:var(--tour-z);font-family:var(--sans)}
.tour-block{position:fixed;inset:0;background:transparent}
.tour-spot{position:fixed;left:0;top:0;width:0;height:0;pointer-events:none;border:2px solid var(--terra);box-shadow:0 0 0 9999px var(--tour-dim);opacity:0}
.tour-spot.on{opacity:1}
.tour-spot::after{content:"";position:absolute;inset:-3px;border:2px solid var(--terra);border-radius:inherit;opacity:.7;animation:tourPulse 1.8s ease-out infinite}
.tour-spot.anim{transition:left .35s var(--ease),top .35s var(--ease),width .35s var(--ease),height .35s var(--ease),border-radius .35s var(--ease)}
.tour-card{position:fixed;left:0;top:0;width:340px;max-width:calc(100vw - 24px);display:flex;flex-direction:column;gap:10px;padding:16px;background:var(--surface);color:var(--ink);border:1px solid var(--line2);border-radius:var(--r-lg);box-shadow:var(--shadow-lg);outline:none}
.tour-card.anim{transition:left .35s var(--ease),top .35s var(--ease)}
.tour-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.tour-step{font-size:13px;font-weight:700;color:var(--muted);letter-spacing:.02em}
.tour-skip{min-height:36px;padding:0 10px;margin:-6px -10px -6px 0;border-radius:6px;font-size:14px;font-weight:600;color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.tour-skip:hover{color:var(--ink);background:var(--soft)}
.tour-bar{height:3px;border-radius:2px;background:var(--soft);overflow:hidden}
.tour-bar i{display:block;height:100%;width:0;background:var(--terra);transition:width .35s var(--ease)}
.tour-t{font-size:18px;font-weight:800;line-height:1.25;text-wrap:balance}
.tour-x{font-size:15px;line-height:1.5;color:var(--ink)}
.tour-act{display:flex;gap:8px;justify-content:flex-end;margin-top:2px}
.tour-act .btn{min-height:44px;padding:0 18px;font-size:15px}
.tour-act .btn:first-child:not(.primary){margin-right:auto}
.tour-card :focus-visible{outline:2px solid var(--terra);outline-offset:2px}
.dcard.tour-reveal .qa{opacity:1}
@keyframes tourPulse{0%{inset:-2px;opacity:.8}100%{inset:-12px;opacity:0}}
@media (max-width:600px){
  .tour-card{width:auto;max-width:none;left:8px;right:8px;padding:14px;gap:8px}
  .tour-card.anim{transition:top .3s var(--ease)}
  .tour-t{font-size:17px}
  .tour-act{margin-top:0}
  .tour-act .btn{flex:1 1 0;padding:0 10px}
  .tour-act .btn:first-child:not(.primary){margin-right:0}
}
@media (prefers-reduced-motion:reduce){
  .tour-spot,.tour-spot.anim,.tour-card.anim,.tour-bar i{transition:none}
  .tour-spot::after{animation:none;inset:-4px;opacity:.5}
}
