.mt-fab {
    position: fixed;
    bottom: var(--ds-space-5);
    right: var(--ds-space-5);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: #fff;
    box-shadow: 0 4px 14px rgba(12, 108, 254, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: var(--ds-z-overlay);
    transition: transform var(--ds-transition-base), box-shadow var(--ds-transition-base), background var(--ds-transition-base);
}
.mt-fab:hover {
    background: var(--primary-color-hover);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(12, 108, 254, 0.45);
}
#moduleTutorialClose {
    position: absolute;
    top: var(--ds-space-4);
    right: var(--ds-space-4);
    z-index: 2;
}
#moduleTutorialModal .ds-modal__inner {
    width: 640px;
    max-width: 94vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
@media (min-width: 769px) {
    #moduleTutorialModal .ds-modal__inner {
        width: 960px;
    }
}
#moduleTutorialModal .ds-modal__body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    text-align: center;
    padding-top: var(--ds-space-6);
}
#moduleTutorialModal .ds-modal__body::-webkit-scrollbar {
    display: none;
}
.mt-title {
    font-size: var(--ds-text-lg);
    font-weight: var(--ds-font-extrabold);
    color: var(--ds-color-primary);
    letter-spacing: var(--ds-tracking-tight);
    margin: 0 0 var(--ds-space-4);
    min-height: 1.3em;
    flex-shrink: 0;
}
.mt-stage {
    position: relative;
    border-radius: var(--ds-radius-lg);
    overflow: hidden;
    border: 1px solid var(--ds-color-border);
    background: var(--ds-color-surface-sunken);
    margin-bottom: var(--ds-space-4);
    flex-shrink: 0;
    aspect-ratio: 16 / 9;
}
.mt-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    cursor: zoom-in;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.mt-image.is-active {
    opacity: 1;
    pointer-events: auto;
}
.mt-stage-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.45);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    z-index: 2;
    transition: background var(--ds-transition-fast), transform var(--ds-transition-fast);
}
.mt-stage-nav:hover {
    background: rgba(15, 23, 42, 0.75);
}
.mt-stage-nav:active {
    transform: translateY(-50%) scale(0.92);
}
.mt-stage-nav:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.mt-stage-nav--prev {
    left: 10px;
}
.mt-stage-nav--next {
    right: 10px;
}
.mt-zoom-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    pointer-events: none;
}
.mt-step-title {
    font-size: var(--ds-text-base);
    font-weight: var(--ds-font-bold);
    color: var(--ds-color-text-primary);
    margin: 0 0 var(--ds-space-2);
    min-height: 1.4em;
    flex-shrink: 0;
    transition: opacity 0.22s ease;
}
.mt-step-desc {
    font-size: var(--ds-text-sm);
    color: var(--ds-color-text-secondary);
    line-height: var(--ds-leading-relaxed);
    margin: 0 0 var(--ds-space-4);
    min-height: calc(1.625em * 3);
    flex-shrink: 0;
    transition: opacity 0.22s ease;
}
.mt-step-title.is-changing,
.mt-step-desc.is-changing {
    opacity: 0;
}
.mt-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-bottom: var(--ds-space-5);
    flex-shrink: 0;
}
.mt-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ds-color-border-strong);
    cursor: pointer;
    transition: background var(--ds-transition-base), width var(--ds-transition-base);
}
.mt-dot.is-active {
    background: var(--ds-color-primary);
    width: 20px;
    border-radius: var(--ds-radius-full);
}
.mt-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 20, 0.92);
    z-index: calc(var(--ds-z-modal) + 200);
    align-items: center;
    justify-content: center;
    touch-action: none;
}
.mt-lightbox.is-active {
    display: flex;
    animation: ds-fade-in 0.18s ease;
}
.mt-lightbox-stage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: zoom-in;
    touch-action: none;
}
.mt-lightbox-stage.is-zoomed {
    cursor: grab;
}
.mt-lightbox-stage.is-zoomed.is-dragging {
    cursor: grabbing;
}
.mt-lightbox-img {
    max-width: 92%;
    max-height: 88%;
    object-fit: contain;
    border-radius: var(--ds-radius-xl);
    transform-origin: center center;
    transition: transform 0.2s ease;
    user-select: none;
    -webkit-user-drag: none;
}
.mt-lightbox-img.is-panning {
    transition: none;
}
.mt-lightbox-img.mt-lightbox-img--enter {
    animation: ds-zoom-in 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.mt-lightbox-close {
    position: absolute;
    top: var(--ds-space-5);
    right: var(--ds-space-5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    z-index: 1;
    transition: background var(--ds-transition-fast);
}
.mt-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.22);
}
.mt-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.05rem;
    z-index: 1;
    transition: background var(--ds-transition-fast);
}
.mt-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.22);
}
.mt-lightbox-nav:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.mt-lightbox-nav--prev {
    left: var(--ds-space-4);
}
.mt-lightbox-nav--next {
    right: var(--ds-space-4);
}
@media (max-width: 576px) {
    .mt-lightbox-nav {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    .mt-lightbox-nav--prev {
        left: var(--ds-space-2);
    }
    .mt-lightbox-nav--next {
        right: var(--ds-space-2);
    }
}