body.tutorial-active {
    pointer-events: none;
    cursor: not-allowed;
}

.tutorial-overlay,
.tutorial-dim-area,
.tutorial-modal {
    pointer-events: auto;
}

.tutorial-close,
.tutorial-btn,
.tutorial-dot-enabled {
    cursor: pointer;
}

.tutorial-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 19999;
}

.tutorial-dim-area {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 19999;
}

.tutorial-spotlight {
    position: absolute;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);
    border-radius: 4px;
}

.tutorial-modal {
    position: fixed;
    z-index: 20000;
    background: var(--color-g-000, #fff);
    border-radius: 8px;
    box-shadow: var(--shadow-300);
    padding: 24px 28px;
    width: 561px;
    max-width: calc(100vw - 32px);
    text-align: center;
    cursor: default;
}

.tutorial-modal-step1 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.tutorial-arrow {
    position: absolute;
    width: 60px;
    height: 70px;
    background-color: var(--primary-color, #2bbfa4);
    mask: no-repeat center / contain;
}

.tutorial-arrow-step2a {
    top: -25px;
    right: 8px;
}

.tutorial-arrow-step3 {
    top: -50px;
    transform: scaleX(-1);
}

.tutorial-arrow-step4 {
    bottom: -38px;
    transform: scaleY(-1);
}

.tutorial-arrow-step5,
.tutorial-arrow-step6 {
    left: -28px;
    transform: rotate(-90deg);
}

.tutorial-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border: none;
    filter: var(--filter-g-200);
    padding: 0;
}

.tutorial-close:hover {
    filter: var(--primary-filter);
    opacity: 1;
    outline: none;
}

.tutorial-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color, #2bbfa4);
    margin-bottom: 12px;
}

.tutorial-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--bs-body-color, #333);
    margin-bottom: 20px;
}

.tutorial-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tutorial-dots {
    display: flex;
    gap: 6px;
}

.tutorial-dot {
    width: 18px;
    height: 6px;
    border-radius: 3px;
    background: var(--color-g-200, #ddd);
    transition: width 0.2s ease, background 0.2s ease;
}

.tutorial-dot.active {
    width: 28px;
    background: var(--primary-color, #2bbfa4);
}

.tutorial-actions {
    display: flex;
    gap: 8px;
}

.tutorial-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
}

.tutorial-btn-primary {
    background: var(--primary-color, #2bbfa4);
    color: #fff;
}

.tutorial-btn-icon {
    width: 14px;
    height: 14px;
    background-color: currentColor;
    mask: no-repeat center / contain;
    flex-shrink: 0;
}

.tutorial-btn-secondary {
    background: transparent;
    color: var(--bs-body-color, #333);
    border: 1px solid var(--color-g-200, #ddd);
}

.tutorial-btn-loading {
    position: relative;
    cursor: progress;
}

.tutorial-btn-loading .tutorial-btn-label {
    visibility: hidden;
}

.tutorial-btn-loading::before {
    position: absolute;
    top: 50%;
    left: 50%;
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    flex: 0 0 12px;
    animation: tutorial-loading-spin 0.7s linear infinite;
}

@keyframes tutorial-loading-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }

    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}