.help-tour-overlay {
    position: fixed;
    inset: 0;
    z-index: 1600;
    pointer-events: none;
}
.help-tour-overlay.is-active { pointer-events: auto; }

.help-tour-spotlight {
    position: absolute;
    border-radius: 8px;
    box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.55);
    transition: left 180ms ease, top 180ms ease, width 180ms ease, height 180ms ease;
    pointer-events: none;
}
.help-tour-overlay.is-centered .help-tour-spotlight {
    left: 50%; top: 50%; width: 0; height: 0;
}

.help-tour-popover {
    position: fixed;
    z-index: 1601;
    width: 320px;
    max-width: calc(100vw - 32px);
    background: var(--surface, #fff);
    color: var(--text, #111827);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.28);
    pointer-events: auto;
    opacity: 0;
    transition: opacity 140ms ease;
}
.help-tour-popover.is-visible { opacity: 1; }

.help-tour-arrow {
    position: absolute;
    width: 12px; height: 12px;
    background: var(--surface, #fff);
    transform: rotate(45deg);
}

.help-tour-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px 6px;
}
.help-tour-title { margin: 0; font-size: 0.98rem; font-weight: 700; line-height: 1.3; }
.help-tour-count { flex: 0 0 auto; font-size: 0.72rem; font-weight: 600; color: var(--text-muted, #6b7280); }

.help-tour-body {
    padding: 0 16px 12px;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-muted, #4b5563);
}
.help-tour-body p:first-child { margin-top: 0; }
.help-tour-body p:last-child { margin-bottom: 0; }
.help-tour-body code { background: var(--bg, #f6f7f9); padding: 1px 5px; border-radius: 5px; font-size: 0.85em; }

.help-tour-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 14px;
    border-top: 1px solid var(--border, #e5e7eb);
}
.help-tour-skip {
    border: 0;
    background: transparent;
    color: var(--text-muted, #6b7280);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 6px 4px;
}
.help-tour-skip:hover { color: var(--text, #111827); text-decoration: underline; }
.help-tour-spacer { flex: 1 1 auto; }

.help-tour-btn {
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 9px;
    background: var(--surface, #fff);
    color: var(--text, #111827);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 14px;
    cursor: pointer;
}
.help-tour-btn:hover { border-color: var(--accent, #2563eb); }
.help-tour-btn--primary {
    background: var(--accent, #2563eb);
    border-color: var(--accent, #2563eb);
    color: #fff;
}
.help-tour-btn--primary:hover { filter: brightness(1.06); }
.help-tour-btn:disabled { opacity: 0.4; cursor: default; }

@media (prefers-reduced-motion: reduce) {
    .help-tour-spotlight, .help-tour-popover { transition: none; }
}
