#onboardingTour {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#onboardingTour.show {
    z-index: 1000001;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
}

#onboardingTour .onboard-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 10, 22, 0.62);
    pointer-events: none;
}

#onboardingTour.is-notes-quickcreate-step .onboard-backdrop {
    background: rgba(3, 10, 22, 0.28);
}

#onboardingTour .onboard-highlight {
    position: fixed;
    border: 2px solid #60a5fa;
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(3, 10, 22, 0.52), 0 0 0 6px rgba(96, 165, 250, 0.2);
    animation: onboardPulse 1.4s ease-in-out infinite;
    transition:
        opacity 140ms ease,
        transform 160ms ease,
        left 180ms ease,
        top 180ms ease,
        width 180ms ease,
        height 180ms ease;
    pointer-events: none;
}

#onboardingTour.is-notes-quickcreate-step .onboard-highlight {
    box-shadow:
        0 0 0 9999px rgba(3, 10, 22, 0.18),
        0 0 0 6px rgba(96, 165, 250, 0.24);
}

#onboardingTour .onboard-tooltip {
    position: fixed;
    width: min(360px, calc(100vw - 28px));
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(2, 6, 23, 0.55);
    padding: 14px;
    color: #e2e8f0;
    pointer-events: auto;
    transition:
        opacity 140ms ease,
        transform 160ms ease,
        left 180ms ease,
        top 180ms ease;
}

.onboard-attention-pulse {
    animation: onboardTargetPulse 1.1s ease-in-out infinite;
}

button.onboard-attention-pulse {
    position: relative;
    z-index: 1000002;
    opacity: 1 !important;
    filter: none !important;
}

.notes-new-category-btn.onboard-attention-pulse {
    background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
    color: #eff6ff !important;
    border-color: rgba(191, 219, 254, 0.95) !important;
    box-shadow:
        0 10px 28px rgba(37, 99, 235, 0.4),
        0 0 0 2px rgba(191, 219, 254, 0.3);
}

#openAiPanel.onboard-attention-pulse {
    background: color-mix(in srgb, var(--accent-primary), transparent 8%) !important;
    color: var(--text-on-accent) !important;
    border-color: color-mix(in srgb, var(--accent-primary), #ffffff 20%) !important;
    box-shadow:
        0 10px 28px color-mix(in srgb, var(--accent-primary), transparent 62%),
        0 0 0 2px color-mix(in srgb, var(--accent-primary), transparent 75%);
}

@keyframes onboardTargetPulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.5);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 0 0 8px rgba(96, 165, 250, 0.16);
    }
}

#notesQuickCreateModal .notes-quick-modal-box.onboard-quickcreate-focus {
    border: 1px solid rgba(96, 165, 250, 0.75);
    box-shadow:
        0 16px 36px rgba(2, 6, 23, 0.5),
        0 0 0 2px rgba(96, 165, 250, 0.28),
        0 0 0 10px rgba(96, 165, 250, 0.14);
    animation: onboardQuickCreateGlow 1.5s ease-in-out infinite;
}

#notesQuickCreateModal .notes-quick-modal-box.onboard-quickcreate-focus .modal-input {
    border-color: rgba(96, 165, 250, 0.72);
    background: rgba(15, 23, 42, 0.86);
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
    color: #f8fafc;
    animation: onboardQuickInputPulse 1.25s ease-in-out infinite;
}

#notesQuickCreateModal .notes-quick-modal-box.onboard-quickcreate-focus .modal-input:focus {
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.34);
}

#notesQuickCreateModal .notes-quick-modal-box.onboard-quickcreate-focus label {
    color: #dbeafe;
    font-weight: 700;
    letter-spacing: 0.02em;
}

#notesQuickCreateModal .notes-quick-modal-box.onboard-quickcreate-focus .modal-input::placeholder {
    color: #bfdbfe;
    opacity: 0.95;
}

@keyframes onboardQuickCreateGlow {
    0%,
    100% {
        box-shadow:
            0 16px 36px rgba(2, 6, 23, 0.5),
            0 0 0 2px rgba(96, 165, 250, 0.28),
            0 0 0 10px rgba(96, 165, 250, 0.14);
    }

    50% {
        box-shadow:
            0 16px 40px rgba(2, 6, 23, 0.55),
            0 0 0 3px rgba(96, 165, 250, 0.34),
            0 0 0 14px rgba(96, 165, 250, 0.18);
    }
}

@keyframes onboardQuickInputPulse {
    0%,
    100% {
        box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
        border-color: rgba(96, 165, 250, 0.72);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.28);
        border-color: rgba(147, 197, 253, 0.95);
    }
}

#onboardingTour.is-step-shifting .onboard-highlight,
#onboardingTour.is-step-shifting .onboard-tooltip {
    opacity: 0;
    transform: translateY(4px);
}

#onboardingTour .onboard-step {
    font-size: 12px;
    font-weight: 600;
    color: #93c5fd;
    margin-bottom: 6px;
}

#onboardingTour .onboard-title {
    margin: 0;
    font-size: 17px;
    line-height: 1.25;
    color: #f8fafc;
}

#onboardingTour .onboard-text {
    margin: 10px 0 14px;
    font-size: 14px;
    line-height: 1.45;
    color: #cbd5e1;
}

#onboardingTour .onboard-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

#onboardingTour .onboard-btn {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #1d4ed8;
    color: #eff6ff;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 11px;
    cursor: pointer;
}

#onboardingTour .onboard-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

#onboardingTour .onboard-btn.ghost {
    background: rgba(148, 163, 184, 0.18);
}

@keyframes onboardPulse {
    0%,
    100% {
        box-shadow: 0 0 0 9999px rgba(3, 10, 22, 0.52), 0 0 0 6px rgba(96, 165, 250, 0.2);
    }

    50% {
        box-shadow: 0 0 0 9999px rgba(3, 10, 22, 0.52), 0 0 0 10px rgba(96, 165, 250, 0.28);
    }
}

@media (max-width: 720px) {
    #onboardingTour .onboard-tooltip {
        width: min(92vw, 420px);
    }
}
