.onboarding-tour-trigger {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    color: var(--muted-strong, #475467);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.onboarding-tour-trigger:hover,
.onboarding-tour-trigger:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.94);
    color: var(--accent, #0a84ff);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.09);
    outline: none;
}

.onboarding-screenshot-slot {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px dashed rgba(10, 132, 255, 0.28);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.08), rgba(255, 255, 255, 0.62));
    color: var(--muted-strong, #475467);
}

.onboarding-screenshot-slot span,
.onboarding-screenshot-slot small {
    display: block;
}

.onboarding-screenshot-slot span {
    color: var(--text, #111318);
    font-size: 13px;
    font-weight: 800;
}

.onboarding-screenshot-slot small {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.35;
}

.onboarding-tour-root {
    position: fixed;
    inset: 0;
    z-index: 12000;
    pointer-events: none;
}

.onboarding-tour-spotlight {
    position: fixed;
    z-index: 12001;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 18px;
    box-shadow:
        0 0 0 9999px rgba(15, 23, 42, 0.24),
        0 22px 60px rgba(15, 23, 42, 0.22),
        inset 0 0 0 1px rgba(10, 132, 255, 0.30);
    pointer-events: none;
    transition: top 0.22s ease, left 0.22s ease, width 0.22s ease, height 0.22s ease, border-radius 0.22s ease;
}

.onboarding-tour-tooltip {
    position: fixed;
    z-index: 12002;
    width: min(330px, calc(100vw - 32px));
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(244, 248, 255, 0.84)),
        rgba(255, 255, 255, 0.86);
    color: var(--text, #111318);
    box-shadow: 0 26px 72px rgba(15, 23, 42, 0.18);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    backdrop-filter: blur(22px) saturate(150%);
    pointer-events: auto;
    transition: top 0.22s ease, left 0.22s ease, opacity 0.18s ease, transform 0.18s ease;
}

.onboarding-tour-tooltip::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.74);
    border-top: 1px solid rgba(255, 255, 255, 0.74);
    background: rgba(255, 255, 255, 0.92);
    transform: rotate(45deg);
}

.onboarding-tour-tooltip.is-bottom::after {
    top: -8px;
    left: var(--tour-arrow-left, 28px);
}

.onboarding-tour-tooltip.is-top::after {
    bottom: -8px;
    left: var(--tour-arrow-left, 28px);
    transform: rotate(225deg);
}

.onboarding-tour-tooltip.is-right::after {
    left: -8px;
    top: var(--tour-arrow-top, 26px);
    transform: rotate(-45deg);
}

.onboarding-tour-tooltip.is-left::after {
    right: -8px;
    top: var(--tour-arrow-top, 26px);
    transform: rotate(135deg);
}

.onboarding-tour-kicker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--accent-strong, #0066cc);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.onboarding-tour-count {
    color: var(--muted, #667085);
    font-size: 11px;
    font-weight: 750;
    text-transform: none;
}

.onboarding-tour-title {
    margin: 0;
    font-size: 17px;
    line-height: 1.2;
    letter-spacing: 0;
}

.onboarding-tour-body {
    margin: 8px 0 0;
    color: var(--muted-strong, #475467);
    font-size: 13px;
    line-height: 1.5;
}

.onboarding-tour-future-media {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px dashed rgba(10, 132, 255, 0.22);
    border-radius: 14px;
    background: rgba(10, 132, 255, 0.07);
    color: var(--muted-strong, #475467);
    font-size: 12px;
    line-height: 1.35;
}

.onboarding-tour-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
}

.onboarding-tour-action-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.onboarding-tour-button {
    min-height: 32px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text, #111318);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    padding: 8px 12px;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.onboarding-tour-button:hover,
.onboarding-tour-button:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.95);
    outline: none;
}

.onboarding-tour-button.primary {
    border-color: rgba(10, 132, 255, 0.24);
    background: var(--accent, #0a84ff);
    color: #fff;
}

.onboarding-tour-button.subtle {
    border-color: transparent;
    background: transparent;
    color: var(--muted-strong, #475467);
}

.onboarding-tour-button[disabled] {
    cursor: not-allowed;
    opacity: 0.42;
    transform: none;
}

@media (max-width: 700px) {
    .onboarding-tour-trigger {
        width: 40px;
        height: 40px;
    }

    .onboarding-tour-tooltip {
        padding: 14px;
    }

    .onboarding-tour-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .onboarding-tour-action-group {
        width: 100%;
    }

    .onboarding-tour-button {
        flex: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .onboarding-tour-trigger,
    .onboarding-tour-spotlight,
    .onboarding-tour-tooltip,
    .onboarding-tour-button {
        transition: none;
    }
}
