/* ============================================================
   Previously — guided first-run tour (tour.css)
   Self-contained. Every selector is prefixed tour- / #tour-.
   Layers above all site chrome (site max z-index is 400).
   Primary CTA: Emerald #0E5F45. Buttons are never red.
   ============================================================ */
#tour-dim{
  position:fixed; inset:0; z-index:1000; display:none;
  background:rgba(4,6,5,.72);
}
#tour-dim.tour-on{ display:block; }

#tour-card{
  position:fixed; z-index:1001; width:340px; max-width:calc(100vw - 32px);
  background:#121614; border:1px solid #2a312d; border-radius:16px;
  padding:20px 20px 16px; box-shadow:0 20px 60px rgba(0,0,0,.6);
  color:#f4efe4;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  transition:opacity .25s ease;
}
#tour-card .tour-kicker{
  font-size:11px; letter-spacing:2px; text-transform:uppercase;
  color:#178a63; font-weight:700; margin-bottom:8px;
}
#tour-card .tour-title{
  font-family:Georgia,"Times New Roman",serif; font-weight:400;
  font-size:22px; line-height:1.25; margin:0 0 8px; color:#f4efe4;
}
#tour-card .tour-wordmark{ font-family:"Previously Display",Georgia,serif; }
#tour-card .tour-copy{
  font-size:15px; line-height:1.5; color:#cfc8b4; margin:0 0 16px;
}
#tour-card .tour-dots{ display:flex; gap:6px; margin:0 0 14px; }
#tour-card .tour-dots i{
  width:7px; height:7px; border-radius:50%; background:#333a36; display:block;
}
#tour-card .tour-dots i.tour-on{ background:#178a63; }
#tour-card .tour-row{ display:flex; align-items:center; gap:10px; }
#tour-card .tour-steps{ font-size:13px; color:#8b938c; margin-right:auto; }
#tour-card .tour-next{
  background:#0E5F45; color:#fff; border:none; font-weight:700; font-size:15px;
  padding:12px 26px; border-radius:999px; cursor:pointer;
}
#tour-card .tour-next:hover{ background:#178a63; }
#tour-card .tour-next:focus-visible,
#tour-card .tour-skip:focus-visible,
#tour-card .tour-x:focus-visible,
#tour-card .tour-demo-alt:focus-visible,
#tour-card .tour-demo-star:focus-visible,
#tour-card .tour-demo-card:focus-visible{
  outline:2px solid #178a63; outline-offset:2px;
}
#tour-card .tour-skip{
  background:none; border:none; color:#8b938c; font-size:14px;
  cursor:pointer; text-decoration:underline; padding:4px 2px;
}
#tour-card .tour-skip:hover{ color:#f4efe4; }
#tour-card .tour-x{
  position:absolute; top:10px; right:12px; background:none; border:none;
  color:#8b938c; font-size:20px; cursor:pointer; line-height:1; padding:4px;
}
#tour-card .tour-x:hover{ color:#f4efe4; }

#tour-toast{
  position:fixed; left:50%; bottom:26px; z-index:1002;
  transform:translateX(-50%) translateY(20px);
  background:#121614; border:1px solid #0E5F45; color:#f4efe4; font-size:14px;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  padding:12px 20px; border-radius:999px; opacity:0; pointer-events:none;
  transition:opacity .3s ease, transform .3s ease; white-space:nowrap;
  max-width:calc(100vw - 32px);
}
#tour-toast.tour-show{ opacity:1; transform:translateX(-50%) translateY(0); }

/* ---------- hands-on drag demo (slide 2: the tour owns this moment) ---------- */
#tour-demo{
  display:none; margin:2px 0 14px; padding:14px;
  background:#1a1f1c; border:1px dashed #3a443e; border-radius:14px;
}
#tour-card.tour-has-demo #tour-demo{ display:block; }
#tour-card .tour-demo-strip{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; min-height:118px;
}
#tour-card .tour-demo-card{
  width:104px; flex:0 0 auto; background:#121614;
  border:1px solid #3a443e; border-radius:10px; overflow:hidden;
  cursor:grab; touch-action:none; user-select:none; -webkit-user-select:none;
  position:relative; z-index:2; color:#f4efe4;
}
#tour-card .tour-demo-card:active{ cursor:grabbing; }
#tour-card .tour-demo-card .tour-demo-art{
  aspect-ratio:2/3; background:linear-gradient(135deg,#1d4a37,#0e2a20);
  display:flex; align-items:center; justify-content:center;
  font-size:26px; color:#178a63;
}
#tour-card .tour-demo-card .tour-demo-meta{ padding:8px 10px; }
#tour-card .tour-demo-card .tour-demo-meta b{ display:block; font-size:13px; font-weight:600; }
#tour-card .tour-demo-card .tour-demo-meta span{ font-size:11px; color:#8b938c; }
#tour-card .tour-demo-card.tour-dragging{
  transition:none !important; box-shadow:0 14px 34px rgba(0,0,0,.55); z-index:3;
}
#tour-card .tour-demo-card.tour-snapback{ transition:transform .28s ease; }
#tour-card .tour-demo-arrow{ color:#8b938c; font-size:20px; flex:0 0 auto; }
#tour-card .tour-demo-star{
  width:64px; height:64px; flex:0 0 auto; border-radius:50%;
  border:2px dashed #3a443e; background:transparent; color:#8b938c;
  font-size:28px; display:flex; align-items:center; justify-content:center;
  cursor:pointer; padding:0;
  transition:transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
#tour-card .tour-demo-star.tour-filled{
  background:#0E5F45; border:2px solid #178a63; color:#fff;
  animation:tour-star-pop .45s ease;
}
@keyframes tour-star-pop{
  0%{ transform:scale(1); } 45%{ transform:scale(1.28); } 100%{ transform:scale(1); }
}
#tour-card .tour-demo-confirm{
  display:none; text-align:center; font-size:14px;
  color:#178a63; font-weight:600; margin-top:10px;
}
#tour-card .tour-demo-confirm.tour-show{ display:block; }
#tour-card .tour-demo-alt{
  display:block; width:100%; text-align:center; margin-top:10px;
  background:none; border:none; color:#8b938c; font-size:13px;
  text-decoration:underline; cursor:pointer; padding:4px;
}
#tour-card .tour-demo-alt:hover{ color:#f4efe4; }

/* phone: bottom sheet */
@media (max-width:639px){
  #tour-card{
    left:0 !important; right:0; bottom:0; top:auto !important;
    width:100%; max-width:100%;
    border-radius:20px 20px 0 0; border-left:none; border-right:none; border-bottom:none;
    padding:22px 22px calc(20px + env(safe-area-inset-bottom));
  }
  #tour-card .tour-demo-star.tour-pulse{
    animation:tour-ring-pulse 1.6s ease-in-out infinite;
  }
  @keyframes tour-ring-pulse{
    0%,100%{ box-shadow:0 0 0 0 rgba(23,138,99,.0); }
    50%{ box-shadow:0 0 0 10px rgba(23,138,99,.25); }
  }
}

@media (prefers-reduced-motion:reduce){
  #tour-card{ transition:none; }
  #tour-card .tour-demo-card,
  #tour-card .tour-demo-card.tour-snapback,
  #tour-card .tour-demo-star{ transition:none; }
  #tour-card .tour-demo-star.tour-filled{ animation:none; }
  #tour-card .tour-demo-star.tour-pulse{ animation:none; }
  #tour-toast{ transition:none; }
}
