/* tour.css · the page tour (Oct 2, 2026): a soft spotlight that glides between real elements, a small card with one plain
   line, and a gentle invitation the first time someone lands on a kind of page. */
.ds-tour-catch { position: fixed; inset: 0; z-index: 300; background: transparent; opacity: 0; transition: opacity .3s ease; }
.ds-tour-catch.on { opacity: 1; }
.ds-tour-ring { position: fixed; z-index: 301; left: 0; top: 0; width: 0; height: 0; border-radius: 14px; pointer-events: none; box-shadow: 0 0 0 2px rgba(143, 176, 240, .9), 0 0 0 7px rgba(143, 176, 240, .22), 0 0 0 200vmax rgba(6, 13, 28, .52); transition: transform .5s cubic-bezier(.22, .61, .36, 1), width .5s cubic-bezier(.22, .61, .36, 1), height .5s cubic-bezier(.22, .61, .36, 1), opacity .26s; animation: ds-tour-in .32s ease both; }
.ds-tour-ring.out, .ds-tour-card.out { opacity: 0; }
@keyframes ds-tour-in { from { opacity: 0; } }
.ds-tour-card { position: fixed; z-index: 302; left: 0; top: 0; width: 340px; max-width: calc(100vw - 24px); padding: 16px 18px 14px; border-radius: 14px; background: #fff; color: #17283E; box-shadow: 0 24px 60px -24px rgba(6, 13, 28, .6), 0 0 0 1px rgba(48, 88, 135, .12); transition: transform .5s cubic-bezier(.22, .61, .36, 1), opacity .26s; }
.ds-tour-card.in > * { animation: ds-tour-card .34s cubic-bezier(.22, .61, .36, 1) both; }
.ds-tour-card.in > :nth-child(2) { animation-delay: .03s; } .ds-tour-card.in > :nth-child(3) { animation-delay: .06s; }
@keyframes ds-tour-card { from { opacity: 0; transform: translateY(4px); } }
.ds-tour-n { margin: 0 0 6px; font-family: var(--ds-m); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #245DC8; }
.ds-tour-card h3 { margin: 0; font-size: 17px; font-weight: 650; line-height: 1.3; letter-spacing: -.01em; }
.ds-tour-s { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; color: #536A84; text-wrap: pretty; }
.ds-tour-f { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.ds-tour-dots { display: flex; gap: 5px; }
.ds-tour-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(48, 88, 135, .22); transition: width .3s cubic-bezier(.22, .61, .36, 1), background-color .3s; }
.ds-tour-dots i.on { width: 16px; background: #245DC8; }
.ds-tour-b { display: flex; gap: 6px; }
html[data-skin] .ds-tour-btn { height: 32px; padding: 0 14px; border: 1px solid #245DC8; border-radius: 8px; background: #245DC8; color: #fff; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background-color .18s, border-color .18s, color .18s; }
html[data-skin] .ds-tour-btn:hover { background: #1D4FAE; border-color: #1D4FAE; }
html[data-skin] .ds-tour-btn.ghost { background: transparent; border-color: rgba(48, 88, 135, .28); color: #2F4460; }
html[data-skin] .ds-tour-btn.ghost:hover { border-color: #245DC8; color: #17283E; background: rgba(36, 93, 200, .06); }
/* the invitation */
html[data-skin] .ds-tour-inv { position: fixed; z-index: 120; left: calc(var(--ds-side, 240px) + 24px); bottom: 24px; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 12px; border-radius: 14px; background: #0B1730; color: #EEF3FB; box-shadow: 0 20px 50px -20px rgba(6, 13, 28, .7), 0 0 0 1px rgba(143, 176, 240, .22); opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .45s cubic-bezier(.22, .61, .36, 1); }
html[data-skin] .ds-tour-inv.on { opacity: 1; transform: none; }
.ds-tour-inv-i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(143, 176, 240, .16); color: #9DBBF5; }
.ds-tour-inv-i svg { width: 18px; height: 18px; }
.ds-tour-inv-t { font-size: 14px; color: rgba(238, 243, 251, .82); }
.ds-tour-inv-t b { font-weight: 650; color: #fff; }
html[data-skin] .ds-tour-inv-go { height: 32px; padding: 0 14px; border: 0; border-radius: 8px; background: #2F6BDB; color: #fff; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background-color .18s; }
html[data-skin] .ds-tour-inv-go:hover { background: #245DC8; }
html[data-skin] .ds-tour-inv-x { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: rgba(238, 243, 251, .6); cursor: pointer; }
html[data-skin] .ds-tour-inv-x:hover { background: rgba(143, 176, 240, .14); color: #fff; }
.ds-tour-inv-x svg { width: 16px; height: 16px; }
.ds-collapsed ~ .ds-tour-inv, body:has(.ds-collapsed) .ds-tour-inv { left: 96px; }
/* in Help */
html[data-skin] .ds-tour-help { display: flex; align-items: center; gap: 12px; width: 100%; margin: 12px 0 4px; padding: 12px 14px; border: 1px solid var(--ds-line); border-radius: 10px; background: var(--ds-wash); color: var(--ds-ink); font: inherit; text-align: left; cursor: pointer; transition: background-color .18s, border-color .18s, transform .22s cubic-bezier(.22, .61, .36, 1); }
html[data-skin] .ds-tour-help:hover { border-color: var(--ds-blue); transform: translateY(-1px); }
.ds-tour-help svg { flex: none; width: 22px; height: 22px; color: var(--ds-blue); }
.ds-tour-help span { display: grid; gap: 2px; }
.ds-tour-help b { font-size: var(--ds-fs-4); font-weight: 650; }
.ds-tour-help em { font-style: normal; font-size: var(--ds-fs-2); color: var(--ds-muted); }
@media (max-width: 820px) {
  html[data-skin] .ds-tour-inv { left: 12px; right: 12px; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  .ds-tour-inv-t { flex: 1; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) { .ds-tour-ring, .ds-tour-card, .ds-tour-inv { transition: none; animation: none; } .ds-tour-card.in > * { animation: none; } }
