/* QuicklyQR guided tour (the "shadowed tutorial"). Engine: qk-tour.js. Kit look: popover = kit .pop (border, large radius,
   soft shadow, spring in), buttons = site .qq-btn, colours = site tokens (light and dark). Everything is prefixed .qkt. */
[data-qk-tour-start][hidden] { display: none !important; }
@media (max-width: 640px) { .ap-top__act [data-qk-tour-start] { display: none !important; } } /* phones: the sidebar item "Take the tour" is used instead, the header is full */

.qkt { position: fixed; inset: 0; z-index: 9000; pointer-events: none; font-family: var(--font, system-ui, sans-serif); }
.qkt[hidden] { display: none !important; }

/* spotlight: the box-shadow is the dimmer, the element itself is the hole (so the corners stay rounded) */
.qkt-ring { position: fixed; left: 0; top: 0; width: 0; height: 0; border-radius: 12px; pointer-events: auto;
  box-shadow: 0 0 0 2px rgba(255,255,255,.88), 0 0 0 100vmax rgba(8,8,10,.62); }
:root[data-theme="dark"] .qkt-ring { box-shadow: 0 0 0 2px rgba(255,255,255,.7), 0 0 0 100vmax rgba(0,0,0,.72); }
.qkt-ring.is-try { pointer-events: none; }
.qkt-ring.is-anim { transition: left .32s cubic-bezier(.22,1,.36,1), top .32s cubic-bezier(.22,1,.36,1), width .32s cubic-bezier(.22,1,.36,1), height .32s cubic-bezier(.22,1,.36,1), border-radius .32s; }
.qkt-ring.is-none { box-shadow: 0 0 0 100vmax rgba(8,8,10,.62); }
:root[data-theme="dark"] .qkt-ring.is-none { box-shadow: 0 0 0 100vmax rgba(0,0,0,.72); }
.qkt-ring.is-try::after { content: ""; position: absolute; inset: -5px; border-radius: inherit; border: 2px solid rgba(255,255,255,.9); animation: qkt-pulse 1.6s ease-out infinite; }
@keyframes qkt-pulse { 0% { opacity: .9; transform: scale(.98); } 70%, 100% { opacity: 0; transform: scale(1.06); } }

/* four click blockers around the hole: the page behind cannot be clicked, the highlighted element (try steps) can */
.qkt-blk { position: fixed; pointer-events: auto; background: transparent; }

/* popover */
.qkt-pop { position: fixed; left: 0; top: 0; width: 344px; max-width: calc(100vw - 24px); padding: 18px 18px 16px; pointer-events: auto; outline: 0;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-lg, 20px); box-shadow: var(--sh-3);
  display: grid; gap: 10px; animation: qkt-in .34s cubic-bezier(.34,1.4,.5,1) both; }
.qkt-pop.is-anim { transition: left .32s cubic-bezier(.22,1,.36,1), top .32s cubic-bezier(.22,1,.36,1); }
@keyframes qkt-in { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
.qkt-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qkt-dots { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.qkt-dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--line-2); transition: width .25s, background .25s; }
.qkt-dots i.is-past { background: var(--text-2); opacity: .55; }
.qkt-dots i.is-on { width: 18px; background: var(--ink); }
.qkt-count { font: 600 .76rem var(--font, sans-serif); color: var(--text-2); white-space: nowrap; }
.qkt-title { font-size: 1.12rem; line-height: 1.25; font-weight: 800; letter-spacing: -.015em; }
.qkt-text { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--text-2); }
.qkt-try { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent); font-size: .84rem; font-weight: 600; }
.qkt-try[hidden] { display: none; }
.qkt-try b { padding: 2px 8px; border-radius: 99px; background: var(--accent); color: var(--on-accent, #fff); font-size: .72rem; letter-spacing: .02em; }
.qkt-try svg { width: 16px; height: 16px; flex: none; }
.qkt-try.is-done b { display: none; }
.qkt-foot { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.qkt-foot .qkt-skip { margin-right: auto; border: 0; background: none; color: var(--text-2); font: 600 .86rem var(--font, sans-serif); padding: 8px 6px; border-radius: 8px; cursor: pointer; }
.qkt-foot .qkt-skip:hover { color: var(--text); }
.qkt-foot .qq-btn { min-height: 38px; padding: 0 18px; font-size: .88rem; }
.qkt-foot .qkt-back[hidden] { display: none; }
.qkt-foot .qq-btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; box-shadow: none; transform: none; }
.qkt-pop :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.qkt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* phones: the popover docks to the bottom edge */
.qkt-pop.is-dock.is-top { top: 12px !important; bottom: auto; }
.qkt-pop.is-dock { left: 12px !important; top: auto !important; right: 12px; bottom: 12px; width: auto; max-width: none; border-radius: 20px; animation-name: qkt-dock; }
@keyframes qkt-dock { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* reduced motion: no animation anywhere, the spotlight just jumps */
.qkt--still .qkt-ring, .qkt--still .qkt-pop, .qkt--still .qkt-dots i { transition: none !important; animation: none !important; }
.qkt--still .qkt-ring.is-try::after { animation: none; opacity: .8; }
@media (prefers-reduced-motion: reduce) {
  .qkt-ring, .qkt-pop, .qkt-dots i { transition: none !important; animation: none !important; }
  .qkt-ring.is-try::after { animation: none; opacity: .8; }
}
