.guided-tour-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    background:
        radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.05), transparent 38%),
        rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(1px);
    isolation: isolate;
    animation: guided-tour-backdrop-in 140ms ease-out;
    -webkit-mask:
        linear-gradient(#000 0 0) 0 0 / 100% var(--guided-tour-cutout-top, 0) no-repeat,
        linear-gradient(#000 0 0) 0 var(--guided-tour-cutout-bottom, 0) / 100% calc(100% - var(--guided-tour-cutout-bottom, 0)) no-repeat,
        linear-gradient(#000 0 0) 0 var(--guided-tour-cutout-top, 0) / var(--guided-tour-cutout-left, 0) calc(var(--guided-tour-cutout-bottom, 0) - var(--guided-tour-cutout-top, 0)) no-repeat,
        linear-gradient(#000 0 0) var(--guided-tour-cutout-right, 0) var(--guided-tour-cutout-top, 0) / calc(100% - var(--guided-tour-cutout-right, 0)) calc(var(--guided-tour-cutout-bottom, 0) - var(--guided-tour-cutout-top, 0)) no-repeat;
    mask:
        linear-gradient(#000 0 0) 0 0 / 100% var(--guided-tour-cutout-top, 0) no-repeat,
        linear-gradient(#000 0 0) 0 var(--guided-tour-cutout-bottom, 0) / 100% calc(100% - var(--guided-tour-cutout-bottom, 0)) no-repeat,
        linear-gradient(#000 0 0) 0 var(--guided-tour-cutout-top, 0) / var(--guided-tour-cutout-left, 0) calc(var(--guided-tour-cutout-bottom, 0) - var(--guided-tour-cutout-top, 0)) no-repeat,
        linear-gradient(#000 0 0) var(--guided-tour-cutout-right, 0) var(--guided-tour-cutout-top, 0) / calc(100% - var(--guided-tour-cutout-right, 0)) calc(var(--guided-tour-cutout-bottom, 0) - var(--guided-tour-cutout-top, 0)) no-repeat;
}

.guided-tour-popover {
    position: fixed;
    z-index: 2147483020;
    width: min(420px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 18px;
    color: #111827;
    background:
        linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 16px;
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.24),
        0 6px 18px rgba(15, 23, 42, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    text-align: right;
    isolation: isolate;
    pointer-events: auto;
    animation: guided-tour-popover-in 180ms cubic-bezier(0.2, 0.75, 0.25, 1);
    transform-origin: top center;
}

.guided-tour-popover h3 {
    margin: 10px 0 8px;
    color: #0f172a;
    font-size: 1.14rem;
    font-weight: 800;
    letter-spacing: 0;
}

.guided-tour-popover p {
    margin: 0 0 16px;
    color: #334155;
    line-height: 1.65;
}

.guided-tour-step-counter {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 10px;
    color: #0369a1;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.22);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.guided-tour-progress {
    height: 4px;
    margin-top: 12px;
    overflow: hidden;
    background: rgba(148, 163, 184, 0.22);
    border-radius: 999px;
}

.guided-tour-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #0ea5e9, #14b8a6);
    border-radius: inherit;
    transition: width 180ms ease-out;
}

.guided-tour-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.guided-tour-actions .k-button {
    min-height: 34px;
    padding-inline: 14px;
    border-radius: 999px;
    font-weight: 700;
    transition:
        transform 120ms ease,
        box-shadow 120ms ease,
        background-color 120ms ease,
        border-color 120ms ease;
}

.guided-tour-actions .k-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.guided-tour-actions .k-button-solid-primary {
    border-color: #0284c7;
    background: linear-gradient(180deg, #0ea5e9, #0284c7);
    color: #ffffff;
}

.guided-tour-actions .k-button-solid-secondary {
    border-color: rgba(100, 116, 139, 0.35);
    background: #ffffff;
    color: #334155;
}

.guided-tour-actions .k-button-solid-light {
    border-color: transparent;
    background: transparent;
    color: #64748b;
}

.guided-tour-active-target {
    position: relative;
    z-index: auto !important;
    background-color: #ffffff !important;
    outline: 2px solid rgba(14, 165, 233, 0.96);
    outline-offset: 5px;
    border-radius: 10px;
    box-shadow:
        0 0 0 8px rgba(14, 165, 233, 0.16),
        0 14px 32px rgba(15, 23, 42, 0.16);
    transition:
        outline-color 140ms ease,
        box-shadow 140ms ease,
        background-color 140ms ease;
}

[data-guide='main-layout-side-menu'].guided-tour-active-target,
[data-guide='main-layout-sidebar'].guided-tour-active-target,
[data-guide='main-layout-top-bar'].guided-tour-active-target,
[data-guide='main-layout-help-button'].guided-tour-active-target,
[data-guide='main-layout-cloud-status'].guided-tour-active-target,
[data-guide='main-layout-license'].guided-tour-active-target,
[data-guide='main-layout-messages'].guided-tour-active-target,
[data-guide='main-layout-company-name'].guided-tour-active-target,
[data-guide='main-layout-quick-actions'].guided-tour-active-target,
[data-guide='main-layout-special-top-menu'].guided-tour-active-target,
[data-guide='main-layout-menu-toggle'].guided-tour-active-target {
    background-color: transparent !important;
    color: inherit !important;
}

.guided-tour-running .k-input-md .k-input-inner,
.guided-tour-running .k-picker-md .k-input-inner {
    padding-block: var(--kendo-spacing-1, .25rem);
    padding-inline: var(--kendo-spacing-2, .5rem);
    z-index: auto !important;
}

@media (prefers-color-scheme: dark) {
    .guided-tour-popover {
        color: #e5e7eb;
        background:
            linear-gradient(180deg, #1e293b, #0f172a);
        border-color: rgba(148, 163, 184, 0.28);
        box-shadow:
            0 24px 60px rgba(0, 0, 0, 0.34),
            0 6px 18px rgba(0, 0, 0, 0.22),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    .guided-tour-popover h3 {
        color: #f8fafc;
    }

    .guided-tour-popover p {
        color: #cbd5e1;
    }

    .guided-tour-step-counter {
        color: #7dd3fc;
        background: rgba(14, 165, 233, 0.16);
        border-color: rgba(125, 211, 252, 0.2);
    }

    .guided-tour-progress {
        background: rgba(148, 163, 184, 0.22);
    }

    .guided-tour-actions .k-button-solid-secondary {
        border-color: rgba(148, 163, 184, 0.24);
        background: rgba(15, 23, 42, 0.72);
        color: #e2e8f0;
    }

    .guided-tour-actions .k-button-solid-light {
        color: #cbd5e1;
    }
}

@media (max-width: 576px) {
    .guided-tour-popover {
        position: fixed;
        right: 12px;
        left: 12px !important;
        width: auto !important;
        max-height: calc(100vh - 24px);
        padding: 16px;
        border-radius: 14px;
    }

    .guided-tour-actions {
        gap: 6px;
    }

    .guided-tour-actions .k-button {
        flex: 1 1 auto;
        min-width: 86px;
        padding-inline: 10px;
    }
}

@keyframes guided-tour-popover-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes guided-tour-backdrop-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
