/* The guided demo's spotlight. Everything is fixed-position and sits above the app chrome (the
   sidebar rail is z-index 60, the ready-to-file dock 50), but below nothing else. */
.dtour { position: fixed; inset: 0; z-index: 900; pointer-events: none; display: none; }
.dtour.is-on { display: block; }

/* The scrim is one element with a hole punched by a giant shadow, so the spotlit control stays
   fully interactive — the visitor really does click the real button. */
.dtour-scrim { position: absolute; inset: 0; }
.dtour-hole {
    position: fixed;
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(9, 16, 30, .62);
    transition: top .18s cubic-bezier(.2, .7, .2, 1), left .18s cubic-bezier(.2, .7, .2, 1),
                width .18s cubic-bezier(.2, .7, .2, 1), height .18s cubic-bezier(.2, .7, .2, 1);
    pointer-events: none;
}
.dtour.is-centred .dtour-scrim { background: rgba(9, 16, 30, .62); }

.dtour-pop {
    position: fixed;
    width: min(380px, calc(100vw - 24px));
    pointer-events: auto;
    background: var(--card, #fff);
    color: var(--text, #0B1220);
    border: 1px solid var(--hairline, #E5EBF3);
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(11, 18, 32, .06), 0 18px 44px -12px rgba(11, 18, 32, .45);
    padding: 18px 20px 14px;
    font-family: var(--font-body, Inter, system-ui, sans-serif);
    animation: dtour-in .22s cubic-bezier(.2, .7, .2, 1);
}
.dtour.is-centred .dtour-pop {
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: min(440px, calc(100vw - 32px));
}
@keyframes dtour-in { from { opacity: 0; transform: translateY(6px); } }
.dtour.is-centred .dtour-pop { animation: dtour-in-c .22s cubic-bezier(.2, .7, .2, 1); }
@keyframes dtour-in-c { from { opacity: 0; } }

.dtour-step {
    font-size: var(--fs-10-5); font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    color: var(--blue, #0385FF); margin-bottom: 7px;
}
.dtour-title { margin: 0 0 6px; font-size: var(--fs-16-5); font-weight: 800; letter-spacing: -.018em; }
.dtour-body { margin: 0 0 14px; font-size: var(--fs-13); line-height: 1.55; color: var(--text-2, #46536A); }
.dtour-body b { color: var(--text, #0B1220); font-weight: 700; }

.dtour-foot { display: flex; align-items: center; gap: 10px; }
.dtour-grow { flex: 1; }
.dtour-skip {
    background: none; border: 0; cursor: pointer; padding: 6px 2px;
    font: 600 12.5px var(--font-body, Inter, sans-serif); color: var(--text-3, #7E8CA0);
}
.dtour-skip:hover { color: var(--text, #0B1220); }
.dtour-next {
    background: var(--blue, #0385FF); border: 0; color: #fff; cursor: pointer;
    font: 700 13px var(--font-body, Inter, sans-serif);
    border-radius: 10px; padding: 9px 18px;
    box-shadow: 0 8px 20px -6px rgba(3, 133, 255, .5);
    transition: transform .15s, background .15s;
}
.dtour-next:hover:not(:disabled) { transform: translateY(-1px); }
.dtour-next:disabled {
    background: transparent; color: var(--text-3, #7E8CA0); box-shadow: none;
    font-weight: 600; font-style: italic; cursor: default;
}

@media (prefers-reduced-motion: reduce) {
    .dtour-hole, .dtour-pop, .dtour-next { transition: none; animation: none; }
}

/* Parked: the app has its own dialog open and it owns the screen until it closes. */
.dtour.is-parked .dtour-pop,
.dtour.is-parked .dtour-scrim { display: none; }

/* Back sits beside Skip; hidden on the first step, where there is nowhere to go back to. */
.dtour-back {
    background: none; border: 0; cursor: pointer; padding: 6px 8px;
    font: 600 12.5px var(--font-body, Inter, sans-serif); color: var(--text-3, #7E8CA0);
}
.dtour-back:hover { color: var(--text, #0B1220); }

/* How far through the script the visitor is — the step counter says it in words, this at a glance. */
.dtour-bar {
    height: 3px; margin: 12px -20px -14px; border-radius: 0 0 16px 16px;
    background: var(--hairline, #E5EBF3); overflow: hidden;
}
.dtour-bar-fill {
    display: block; height: 100%; width: 0;
    background: var(--blue, #0385FF);
    transition: width .3s cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-reduced-motion: reduce) { .dtour-bar-fill { transition: none; } }
