/* SimpleSankey quick tour (v1.1.8). Shared by the landing page and the app.
   Every class starts with ss-tour so it cannot clash with either page's own styles.
   No inline styles anywhere: the security policy blocks them (positions are set from tour.js with element.style). */

/* The "Take the tour" buttons in the pages stay hidden until tour.js has loaded the tour, so there is never a dead button. */
[data-tour-open]{display:none}
html.ss-tour-ready [data-tour-open]{display:inline-block}

body.ss-tour-open{overflow:hidden}

/* ---------- first-visit card ---------- */
.ss-tour-prompt{position:fixed;right:20px;bottom:20px;z-index:1200;box-sizing:border-box;width:min(370px,calc(100vw - 32px));padding:16px 18px 14px;background:#fff;color:#143642;border:1px solid #a9d3e0;border-radius:12px;box-shadow:0 12px 32px rgba(11,79,108,.28);font:14px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;animation:ss-tour-in .35s ease-out}
.ss-tour-prompt[hidden]{display:none}
.ss-tour-prompt-title{margin:0 0 4px;font-size:16px;font-weight:800;color:#0b4f6c;line-height:1.3}
.ss-tour-prompt-text{margin:0 0 12px;color:#4d7381}
.ss-tour-prompt-actions{display:flex;gap:10px;flex-wrap:wrap}
@keyframes ss-tour-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

/* ---------- buttons ---------- */
.ss-tour-btn{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;margin:0;padding:8px 16px;border:2px solid #0b4f6c;border-radius:8px;background:#fff;color:#0b4f6c;font:inherit;font-size:15px;font-weight:700;line-height:1.2;cursor:pointer;transition:background .15s,transform .1s}
.ss-tour-btn:hover:not(:disabled){background:#dcedf3}
.ss-tour-btn:focus-visible,.ss-tour-close:focus-visible,.ss-tour-dot:focus-visible{outline:3px solid #0fa3b1;outline-offset:2px}
.ss-tour-btn:disabled{opacity:.45;cursor:not-allowed}
.ss-tour-btn.primary{background:#ff8a1f;border-color:#ff8a1f;color:#0b2d3c}
.ss-tour-controls .ss-tour-btn.primary{margin-left:auto}
.ss-tour-btn.primary:hover:not(:disabled){background:#ff9a3d;border-color:#ff9a3d}
.ss-tour-btn.quiet{border-color:transparent;background:transparent;color:#4d7381;font-weight:600}
.ss-tour-btn.quiet:hover:not(:disabled){background:#eaf6fa;color:#0b4f6c}

/* ---------- the tour window ---------- */
.ss-tour-overlay{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:16px;background:rgba(11,45,60,.78);font:14px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
.ss-tour-overlay[hidden]{display:none}
.ss-tour-dialog{box-sizing:border-box;display:flex;flex-direction:column;width:min(1100px,100%);max-height:100%;overflow:auto;background:#fff;color:#143642;border-radius:14px;box-shadow:0 24px 60px rgba(0,0,0,.45)}

.ss-tour-dialog:focus{outline:none}

.ss-tour-head{display:flex;align-items:center;gap:12px;padding:10px 12px 10px 18px;background:#0b4f6c;color:#fff;border-bottom:4px solid #0fa3b1;border-radius:14px 14px 0 0}
.ss-tour-title{margin:0;font-size:16px;font-weight:800;line-height:1.2;color:#fff}
.ss-tour-part{font-size:14px;opacity:.85}
.ss-tour-close{margin:0 0 0 auto;padding:6px 12px;border:2px solid rgba(255,255,255,.55);border-radius:8px;background:transparent;color:#fff;font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.ss-tour-close:hover{background:rgba(255,255,255,.15)}

.ss-tour-stage{position:relative;width:100%;aspect-ratio:1920/868;background:#dcedf3;overflow:hidden}
.ss-tour-video{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:fill;background:#dcedf3}
.ss-tour-rings{position:absolute;inset:0;pointer-events:none}
.ss-tour-ring{position:absolute;box-sizing:border-box;border:4px solid #ff8a1f;border-radius:10px;box-shadow:0 0 0 3px #fff,0 0 10px 3px rgba(255,138,31,.5);animation:ss-tour-pulse 1.5s ease-in-out infinite;transition:opacity .2s}
.ss-tour-ring.off{opacity:0}
@keyframes ss-tour-pulse{0%,100%{box-shadow:0 0 0 3px #fff,0 0 8px 2px rgba(255,138,31,.4)}50%{box-shadow:0 0 0 3px #fff,0 0 22px 9px rgba(255,138,31,.8)}}
.ss-tour-status{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);max-width:80%;padding:10px 16px;border-radius:8px;background:rgba(11,45,60,.85);color:#fff;font-size:15px;text-align:center}
.ss-tour-status[hidden]{display:none}

.ss-tour-caption{display:flex;align-items:center;gap:14px;padding:16px 20px 4px}
.ss-tour-badge{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#ff8a1f;color:#fff;font-size:18px;font-weight:800;line-height:1}
.ss-tour-badge.tip{background:#38bdf8}
.ss-tour-badge.check{background:#22c586}
.ss-tour-badge svg{display:block}
.ss-tour-text{font-size:clamp(18px,2.4vw,26px);font-weight:800;line-height:1.25;color:#0b4f6c}
.ss-tour-hint{margin:0;padding:0 20px 8px 74px;font-size:13px;color:#4d7381}

.ss-tour-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:8px 20px 18px}
.ss-tour-spacer{flex:1 1 10px}
.ss-tour-progress{display:flex;align-items:center;gap:10px;flex:0 1 auto}
.ss-tour-dots{display:flex;align-items:center;gap:7px}
.ss-tour-dot{box-sizing:border-box;width:12px;height:12px;margin:0;padding:0;border:0;border-radius:50%;background:#a9d3e0;cursor:pointer}
.ss-tour-dot:hover{background:#6fb5c9}
.ss-tour-dot[aria-current="step"]{background:#ff8a1f;transform:scale(1.3)}
.ss-tour-count{font-size:13px;font-weight:600;color:#4d7381;white-space:nowrap}

@media (max-width:640px){
  .ss-tour-part{display:none}
  .ss-tour-title,.ss-tour-close{white-space:nowrap}
  .ss-tour-overlay{padding:8px}
  .ss-tour-caption{padding:12px 14px 2px}
  .ss-tour-hint{padding:0 14px 6px 68px}
  .ss-tour-controls{padding:8px 14px 14px}
  .ss-tour-progress{order:5;flex:1 1 100%;justify-content:center}
  .ss-tour-spacer{display:none}
  .ss-tour-btn.primary{margin-left:auto}
}
@media (prefers-reduced-motion:reduce){
  .ss-tour-ring{animation:none}
  .ss-tour-prompt{animation:none}
}
