.plugin-tour-overlay {
    background: var(--tour-overlay-color, #182433);
    inset: 0;
    opacity: var(--tour-overlay-opacity, .55);
    position: fixed;
    z-index: 100000;
    pointer-events: auto;
    transition: opacity 0.35s ease, background-color 0.35s ease;
}

}

@keyframes pluginTourPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(32, 107, 196, 0.7); }
    50% { transform: scale(1.08); box-shadow: 0 0 0 15px rgba(32, 107, 196, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(32, 107, 196, 0); }
}

.plugin-tour-pulse {
    animation: pluginTourPulse 1.8s infinite ease-in-out !important;
}

.plugin-tour-spotlight {
    position: absolute;
    z-index: 100001;
    border-radius: 6px;
    box-shadow: 0 0 0 9999px rgba(24, 36, 51, var(--tour-overlay-opacity, 0.55)),
                0 0 0 3px var(--tour-border, #206bc4),
                0 0 25px rgba(32, 107, 196, 0.7);
    pointer-events: none;
    transition: top 0.4s cubic-bezier(0.25, 1, 0.5, 1), left 0.4s cubic-bezier(0.25, 1, 0.5, 1), width 0.4s cubic-bezier(0.25, 1, 0.5, 1), height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.plugin-tour-panel {
    background: var(--tour-bg, #ffffff);
    border: 2px solid var(--tour-border, #206bc4);
    border-radius: 0.75rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .4);
    color: var(--tour-text, #495057);
    max-width: 32rem;
    padding: 1.5rem;
    position: absolute;
    width: calc(100% - 2rem);
    z-index: 100002;
    transition: top 0.4s cubic-bezier(0.25, 1, 0.5, 1), left 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease, border-color 0.3s ease;
}

.plugin-tour-panel h2 {
    color: var(--tour-title, #182433);
    font-size: 1.35rem;
    margin: .25rem 0 .75rem;
    font-weight: 700;
}

.plugin-tour-progress {
    color: var(--tour-text, #495057);
    font-size: .8125rem;
    font-weight: 600;
    opacity: 0.8;
}

.plugin-tour-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

.plugin-tour-primary {
    background: var(--tour-button-bg, #206bc4);
    border-color: var(--tour-button-bg, #206bc4);
    color: var(--tour-button-text, #ffffff);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 0.375rem;
}

.plugin-tour-primary:focus, .plugin-tour-primary:hover {
    color: var(--tour-button-text, #ffffff);
    filter: brightness(.92);
}

@media (max-width: 576px) {
    .plugin-tour-panel { padding: 1rem; }
    .plugin-tour-actions > * { flex: 1 1 auto; }
}

.plugin-tour-preview {
    border-radius: 0.75rem;
    min-height: 14rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    background: #f8fafc;
}

.plugin-tour-preview__overlay {
    position: absolute;
    inset: 0;
    background: var(--preview-overlay-color, #182433);
    opacity: var(--preview-overlay-opacity, 0.55);
    z-index: 1;
    border-radius: 0.75rem;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.plugin-tour-preview__tooltip {
    background: var(--preview-tooltip-background, #ffffff);
    border: 2px solid var(--preview-tooltip-border, #206bc4);
    border-radius: 0.75rem;
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, .3);
    margin: auto;
    max-width: 32rem;
    padding: 1.25rem;
    position: relative;
    z-index: 2;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.plugin-tour-preview__tooltip h4 {
    color: var(--preview-tooltip-title-color, #182433);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.plugin-tour-preview__tooltip p {
    color: var(--preview-tooltip-text-color, #495057);
    margin-bottom: 1rem;
}

.plugin-tour-preview__tooltip small {
    color: var(--preview-tooltip-text-color, #495057);
    opacity: 0.8;
}

.plugin-tour-preview__tooltip button {
    background: var(--preview-button-background, #206bc4);
    border: 0;
    border-radius: 0.375rem;
    color: var(--preview-button-text-color, #ffffff);
    padding: 0.5rem 1rem;
    font-weight: 600;
}

.tour-step-handle {
    cursor: grab !important;
    touch-action: none;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tour-step-handle * { pointer-events: none; }
.tour-step-handle:active, .tour-step-handle:focus {
    cursor: grabbing !important;
    box-shadow: none !important;
    background-color: transparent !important;
    border-color: transparent !important;
}

.tour-step-placeholder {
    background: var(--sp-light-color, #f4f6f8);
    display: table-row;
    height: 4rem;
}
