.em-tutorial-sidebar {
    position: fixed;
    right: var(--ts-right, 0px);
    top: var(--ts-top, 50%);
    transform: translateY(-50%);
    z-index: 9998;
    transition: transform 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.em-tutorial-sidebar--hidden {
    transform: translateY(-50%) translateX(0);
}
.em-tutorial-sidebar--shown {
    transform: translateY(-50%) translateX(0);
}
.em-tutorial-sidebar__tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    box-shadow: -2px 2px 12px rgba(0,0,0,0.15);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    transition: background 0.2s;
    user-select: none;
    writing-mode: vertical-rl;
    text-orientation: upright;
    min-height: 80px;
    justify-content: center;
}
.em-tutorial-sidebar__tab:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a3f9c 100%);
}
.em-tutorial-sidebar__tab .fa {
    font-size: 18px;
    writing-mode: horizontal-tb;
}
.em-tutorial-sidebar__tab-text {
    display: inline-block;
    padding: 2px 0;
}
.em-tutorial-sidebar__panel {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(100%);
    width: 280px;
    background: #fff;
    border-radius: 8px 0 0 8px;
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}
.em-tutorial-sidebar__panel--open {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
    pointer-events: auto;
}
.em-tutorial-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px 0 0 0;
    color: #fff;
}
.em-tutorial-sidebar__title {
    font-size: 15px;
    font-weight: 600;
}
.em-tutorial-sidebar__close {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.em-tutorial-sidebar__close:hover { opacity: 1; }
.em-tutorial-sidebar__body {
    padding: 8px 0;
    max-height: 400px;
    overflow-y: auto;
}
.em-tutorial-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.em-tutorial-sidebar__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}
.em-tutorial-sidebar__item:last-child { border-bottom: none; }
.em-tutorial-sidebar__item:hover {
    background: #f5f7fa;
}
.em-tutorial-sidebar__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef0f5;
    border-radius: 6px;
    color: #667eea;
    font-size: 13px;
}
.em-tutorial-sidebar__name {
    flex: 1;
    font-size: 14px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.em-tutorial-sidebar__arrow {
    flex-shrink: 0;
    color: #ccc;
    font-size: 12px;
}
.em-tutorial-sidebar__item:hover .em-tutorial-sidebar__arrow { color: #667eea; }

.em-tutorial-sidebar__overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.28s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.em-tutorial-sidebar__overlay--shown { opacity: 1; }
.em-tutorial-sidebar__modal {
    background: #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.92);
    transition: transform 0.28s ease;
}
.em-tutorial-sidebar__overlay--shown .em-tutorial-sidebar__modal {
    transform: scale(1);
}
.em-tutorial-sidebar__modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #eee;
    background: #fafbfc;
}
.em-tutorial-sidebar__modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
.em-tutorial-sidebar__modal-close {
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s;
}
.em-tutorial-sidebar__modal-close:hover { color: #333; }
.em-tutorial-sidebar__modal-body {
    flex: 1;
    overflow: auto;
    padding: 0;
}
.em-tutorial-sidebar__video-wrapper {
    width: 100%;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}
.em-tutorial-sidebar__video-wrapper iframe,
.em-tutorial-sidebar__video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .em-tutorial-sidebar {
        z-index: 10001 !important;
    }
    .em-tutorial-sidebar__tab {
        font-size: 12px;
        padding: 12px 6px;
        min-height: 60px;
        letter-spacing: 1px;
    }
    .em-tutorial-sidebar__tab .fa {
        font-size: 15px;
    }
    .em-tutorial-sidebar__panel {
        width: 260px;
        z-index: 10001;
    }
    .em-tutorial-sidebar__overlay {
        z-index: 10002 !important;
    }
    .em-tutorial-sidebar__modal {
        width: 95%;
        max-height: 70vh;
    }
}
