/* G Teach — Cinematic course overview (Phase 1c)
 * Scoped under .gt-course-v2-dark on the outermost wrapper.
 * Layout cloned from product/mockups/overview-cinematic.html
 */

.gt-course-v2-dark {
    position: relative;
    min-height: 100vh;
    background: #0A0A0B;
    color: #F5F5F7;
    font-family: 'Inter', system-ui, sans-serif;
    padding: 80px 40px 120px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.gt-course-v2-dark *,
.gt-course-v2-dark *::before,
.gt-course-v2-dark *::after {
    box-sizing: border-box;
}

.gt-course-v2-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(800px 500px at 15% 10%, rgba(79, 70, 229, 0.38), transparent 55%),
        radial-gradient(900px 600px at 85% 30%, rgba(236, 72, 153, 0.28), transparent 55%),
        radial-gradient(700px 500px at 50% 95%, rgba(6, 182, 212, 0.22), transparent 55%);
}

.gt-course-v2-dark::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/></svg>");
}

.gt-course-v2-dark__container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.gt-course-v2-dark__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.gt-course-v2-dark__back,
.gt-course-v2-dark__switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(245,245,247,0.75);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 160ms, color 160ms;
    cursor: pointer;
}

.gt-course-v2-dark__back:hover,
.gt-course-v2-dark__switch:hover {
    border-color: rgba(165,180,252,0.5);
    color: #fff;
}

.gt-course-v2-dark__head {
    margin-bottom: 60px;
    max-width: 820px;
}

.gt-course-v2-dark__eyebrow {
    font-size: 13px;
    font-weight: 600;
    color: #A5B4FC;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 14px;
}

.gt-course-v2-dark__title {
    font-family: 'Manrope', sans-serif;
    font-size: 72px;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #FFFFFF 0%, #C4B5FD 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.gt-course-v2-dark__stats {
    display: flex;
    gap: 28px;
    font-size: 15px;
    color: rgba(245,245,247,0.7);
    flex-wrap: wrap;
}

.gt-course-v2-dark__stats strong {
    color: #fff;
    font-weight: 700;
}

.gt-course-v2-dark__progress {
    margin-top: 22px;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    overflow: hidden;
    max-width: 520px;
}

.gt-course-v2-dark__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7B61FF, #EC4899);
    border-radius: 999px;
    box-shadow: 0 0 20px rgba(123,97,255,0.6);
}

.gt-course-v2-dark .modules {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.gt-course-v2-dark .mod {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 22px;
    padding: 26px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1), border-color 280ms, box-shadow 280ms;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.gt-course-v2-dark .mod:hover {
    transform: translateY(-4px);
    border-color: rgba(165, 180, 252, 0.55);
    box-shadow: 0 30px 80px rgba(79, 70, 229, 0.4);
}

.gt-course-v2-dark .mod--active {
    grid-column: span 2;
    min-height: 360px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.40), rgba(236, 72, 153, 0.22));
    border-color: rgba(165, 180, 252, 0.6);
    box-shadow: 0 30px 90px rgba(79, 70, 229, 0.5);
}

.gt-course-v2-dark .mod--active::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(500px 300px at 100% 0%, rgba(255,255,255,0.12), transparent 60%);
    border-radius: 22px;
    pointer-events: none;
}

.gt-course-v2-dark .mod--solo {
    grid-column: 1 / -1;
    min-height: 360px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.40), rgba(236, 72, 153, 0.22));
    border-color: rgba(165, 180, 252, 0.6);
    box-shadow: 0 30px 90px rgba(79, 70, 229, 0.5);
}

.gt-course-v2-dark .mod--solo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 340px at 100% 0%, rgba(255,255,255,0.12), transparent 60%);
    border-radius: 22px;
    pointer-events: none;
}

.gt-course-v2-dark .mod--done {
    background: rgba(16, 185, 129, 0.10);
    border-color: rgba(16, 185, 129, 0.35);
}

.gt-course-v2-dark .mod--lock {
    opacity: 0.55;
    cursor: not-allowed;
}

.gt-course-v2-dark .mod__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #C4B5FD;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(165, 180, 252, 0.12);
    border: 1px solid rgba(165, 180, 252, 0.3);
}

.gt-course-v2-dark .mod--active .mod__badge,
.gt-course-v2-dark .mod--solo .mod__badge {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.35);
    color: #fff;
}

.gt-course-v2-dark .mod--done .mod__badge {
    background: rgba(16, 185, 129, 0.22);
    color: #6EE7B7;
    border-color: rgba(16, 185, 129, 0.4);
}

.gt-course-v2-dark .mod--lock .mod__badge {
    background: rgba(255,255,255,0.06);
    color: rgba(245,245,247,0.5);
    border-color: rgba(255,255,255,0.1);
}

.gt-course-v2-dark .mod__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.gt-course-v2-dark .mod__3d {
    font-size: 48px;
    line-height: 1;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
}

.gt-course-v2-dark .mod--active .mod__3d,
.gt-course-v2-dark .mod--solo .mod__3d {
    font-size: 88px;
}

.gt-course-v2-dark .mod__body {
    position: relative;
    z-index: 1;
}

.gt-course-v2-dark .mod__title {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #FFFFFF;
    font-size: 20px;
}

.gt-course-v2-dark .mod--active .mod__title,
.gt-course-v2-dark .mod--solo .mod__title {
    font-size: 32px;
    letter-spacing: -0.025em;
}

.gt-course-v2-dark .mod__desc {
    font-size: 14px;
    color: rgba(245,245,247,0.75);
    line-height: 1.55;
    margin-top: 12px;
}

.gt-course-v2-dark .mod__progress {
    position: relative;
    height: 4px;
    background: rgba(255,255,255,0.10);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 16px;
}

.gt-course-v2-dark .mod__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #A5B4FC, #EC4899);
    border-radius: 999px;
    box-shadow: 0 0 16px rgba(165,180,252,0.5);
}

.gt-course-v2-dark .mod--done .mod__progress-fill {
    background: #10B981;
    box-shadow: 0 0 16px rgba(16,185,129,0.5);
}

.gt-course-v2-dark .mod__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: rgba(245,245,247,0.7);
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.gt-course-v2-dark .mod--active .mod__foot,
.gt-course-v2-dark .mod--solo .mod__foot {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
}

.gt-course-v2-dark .mod__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #C4B5FD;
}

.gt-course-v2-dark .mod--active .mod__cta,
.gt-course-v2-dark .mod--solo .mod__cta {
    color: #fff;
}

@media (max-width: 1024px) {
    .gt-course-v2-dark {
        padding: 48px 24px 80px;
    }
    .gt-course-v2-dark__title {
        font-size: 48px;
    }
    .gt-course-v2-dark .modules {
        grid-template-columns: repeat(2, 1fr);
    }
    .gt-course-v2-dark .mod--active {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .gt-course-v2-dark {
        padding: 32px 16px 64px;
    }
    .gt-course-v2-dark__title {
        font-size: 36px;
    }
    .gt-course-v2-dark .modules {
        grid-template-columns: 1fr;
    }
    .gt-course-v2-dark .mod--active,
    .gt-course-v2-dark .mod--solo {
        grid-column: 1 / -1;
        min-height: 320px;
    }
    .gt-course-v2-dark .mod--active .mod__3d,
    .gt-course-v2-dark .mod--solo .mod__3d {
        font-size: 64px;
    }
    .gt-course-v2-dark .mod--active .mod__title,
    .gt-course-v2-dark .mod--solo .mod__title {
        font-size: 24px;
    }
}

/* =========================================================================
   Modules editor (Phase 1b.2) — двухколоночный редактор под .gt-course-v2-dark
   ========================================================================= */

.gt-course-v2-dark__switches {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gt-modules-editor__view-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.gt-modules-editor__view-tab {
    font-size: 13px;
    font-weight: 500;
    color: rgba(245,245,247,0.7);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 999px;
    transition: background 160ms, color 160ms;
    cursor: pointer;
}

.gt-modules-editor__view-tab:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
}

.gt-modules-editor__view-tab.is-active {
    background: linear-gradient(135deg, rgba(79,70,229,0.6), rgba(236,72,153,0.4));
    color: #fff;
    box-shadow: 0 8px 24px rgba(79,70,229,0.35);
    cursor: default;
}

.gt-modules-editor {
    position: relative;
    z-index: 1;
}

.gt-modules-editor__grid {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(420px, 1.3fr);
    gap: 24px;
}

.gt-modules-editor__col {
    background: rgba(255,255,255,0.04);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 22px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    min-height: 520px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.gt-modules-editor__col-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.gt-modules-editor__col-title {
    font-family: 'Manrope', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
    margin: 0;
}

.gt-modules-editor__filters {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gt-modules-editor__filter-label {
    font-size: 13px;
    color: rgba(245,245,247,0.65);
}

.gt-modules-editor__select,
.gt-modules-editor__search {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #F5F5F7;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 160ms, background 160ms;
}

.gt-modules-editor__select:hover,
.gt-modules-editor__search:hover {
    border-color: rgba(165,180,252,0.45);
}

.gt-modules-editor__select:focus,
.gt-modules-editor__search:focus {
    border-color: rgba(165,180,252,0.8);
    background: rgba(255,255,255,0.09);
}

.gt-modules-editor__select option {
    background: #12121A;
    color: #F5F5F7;
}

.gt-modules-editor__search-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.gt-modules-editor__search {
    flex: 1 1 240px;
}

.gt-modules-editor__select-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(245,245,247,0.75);
    cursor: pointer;
    user-select: none;
}

.gt-modules-editor__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: #F5F5F7;
    cursor: pointer;
    transition: transform 120ms, background 160ms, border-color 160ms;
    font-family: inherit;
}

.gt-modules-editor__btn:hover {
    background: rgba(255,255,255,0.10);
    border-color: rgba(165,180,252,0.5);
}

.gt-modules-editor__btn:active { transform: translateY(1px); }

.gt-modules-editor__btn--primary {
    background: linear-gradient(135deg, #7B61FF, #EC4899);
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(123,97,255,0.35);
}

.gt-modules-editor__btn--primary:hover {
    background: linear-gradient(135deg, #8B72FF, #F05AA7);
    border-color: transparent;
}

.gt-modules-editor__btn--ghost {
    background: transparent;
    border-color: rgba(255,255,255,0.18);
}

.gt-modules-editor__btn--danger {
    color: #FCA5A5;
    border-color: rgba(248,113,113,0.35);
    background: rgba(248,113,113,0.08);
}

.gt-modules-editor__btn--danger:hover {
    background: rgba(248,113,113,0.18);
    border-color: rgba(248,113,113,0.6);
}

.gt-modules-editor__modules-list,
.gt-modules-editor__lessons-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    max-height: 60vh;
    padding-right: 4px;
}

.gt-modules-editor__modules-list::-webkit-scrollbar,
.gt-modules-editor__lessons-list::-webkit-scrollbar {
    width: 8px;
}
.gt-modules-editor__modules-list::-webkit-scrollbar-thumb,
.gt-modules-editor__lessons-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
    border-radius: 999px;
}

.gt-modules-editor__module {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 12px 14px;
    transition: border-color 160ms, background 160ms;
}

.gt-modules-editor__module:hover {
    border-color: rgba(165,180,252,0.35);
    background: rgba(255,255,255,0.06);
}

.gt-modules-editor__module.is-default {
    border-color: rgba(16,185,129,0.35);
    background: rgba(16,185,129,0.06);
}

.gt-modules-editor__module-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.gt-modules-editor__module-icon {
    font-size: 30px;
    line-height: 1;
    flex: 0 0 auto;
    width: 42px;
    text-align: center;
}

.gt-modules-editor__module-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.gt-modules-editor__module-name {
    background: transparent;
    border: 1px solid transparent;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 6px 8px;
    border-radius: 8px;
    outline: none;
    transition: border-color 160ms, background 160ms;
    width: 100%;
    font-family: inherit;
}

.gt-modules-editor__module-name:hover {
    border-color: rgba(255,255,255,0.12);
}

.gt-modules-editor__module-name:focus {
    border-color: rgba(165,180,252,0.6);
    background: rgba(0,0,0,0.2);
}

.gt-modules-editor__module-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 12px;
    color: rgba(245,245,247,0.65);
}

.gt-modules-editor__module-order input,
.gt-modules-editor__module-icon-input input {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #F5F5F7;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    width: 64px;
    font-family: inherit;
    outline: none;
}

.gt-modules-editor__module-icon-input input { width: 64px; }

.gt-modules-editor__module-order,
.gt-modules-editor__module-icon-input {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gt-icon-picker {
    position: relative;
}

.gt-icon-picker__label {
    color: rgba(245,245,247,0.65);
}

.gt-icon-picker__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #F5F5F7;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 160ms, background 160ms;
}

.gt-icon-picker__toggle:hover {
    border-color: rgba(165,180,252,0.5);
    background: rgba(255,255,255,0.1);
}

.gt-icon-picker__toggle[aria-expanded="true"] {
    border-color: rgba(165,180,252,0.7);
    background: rgba(0,0,0,0.25);
}

.gt-icon-picker__current {
    font-size: 18px;
    line-height: 1;
}

.gt-icon-picker__caret {
    font-size: 10px;
    color: rgba(245,245,247,0.55);
}

.gt-icon-picker__panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 50;
    background: #161821;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
    min-width: 240px;
    max-width: 280px;
}

.gt-icon-picker__group + .gt-icon-picker__group {
    margin-top: 10px;
}

.gt-icon-picker__group-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(165,180,252,0.7);
    margin-bottom: 6px;
}

.gt-icon-picker__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
}

.gt-icon-picker__cell {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 4px 0;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 120ms, border-color 120ms, transform 120ms;
}

.gt-icon-picker__cell:hover {
    background: rgba(165,180,252,0.15);
    border-color: rgba(165,180,252,0.4);
    transform: scale(1.1);
}

.gt-icon-picker__custom {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 11px;
    color: rgba(245,245,247,0.6);
}

.gt-icon-picker__custom input {
    flex: 1 1 auto;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #F5F5F7;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
}

.gt-icon-picker__custom input:focus {
    border-color: rgba(165,180,252,0.6);
    background: rgba(0,0,0,0.2);
}

.gt-modules-editor__module-count {
    color: rgba(165,180,252,0.85);
    font-weight: 500;
}

.gt-modules-editor__module-badge {
    display: inline-block;
    font-size: 11px;
    color: #6EE7B7;
    background: rgba(16,185,129,0.12);
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gt-modules-editor__module-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 0 0 auto;
}

.gt-modules-editor__lesson {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    cursor: pointer;
    transition: background 120ms, border-color 120ms;
}

.gt-modules-editor__lesson:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(165,180,252,0.25);
}

.gt-modules-editor__lesson input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #7B61FF;
    cursor: pointer;
}

.gt-modules-editor__lesson-title {
    color: #F5F5F7;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.gt-modules-editor__lesson-mod {
    font-size: 12px;
    color: rgba(165,180,252,0.8);
    white-space: nowrap;
}

.gt-modules-editor__lesson-mod em {
    color: rgba(252,165,165,0.8);
    font-style: normal;
}

.gt-modules-editor__empty {
    text-align: center;
    color: rgba(245,245,247,0.5);
    font-size: 14px;
    padding: 24px 12px;
    border: 1px dashed rgba(255,255,255,0.12);
    border-radius: 12px;
}

.gt-modules-editor__actionbar[hidden],
.gt-modules-editor__toast[hidden] {
    display: none !important;
}

.gt-modules-editor__actionbar {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(79,70,229,0.24), rgba(236,72,153,0.16));
    border: 1px solid rgba(165,180,252,0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    box-shadow: 0 12px 32px rgba(79,70,229,0.25);
}

.gt-modules-editor__actionbar-count {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.gt-modules-editor__actionbar-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.gt-modules-editor__toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    background: rgba(20,20,30,0.92);
    color: #F5F5F7;
    border: 1px solid rgba(255,255,255,0.12);
    padding: 12px 18px;
    border-radius: 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    font-size: 14px;
    max-width: 360px;
}

.gt-modules-editor__toast[data-kind="ok"] {
    border-color: rgba(16,185,129,0.5);
}

.gt-modules-editor__toast[data-kind="err"] {
    border-color: rgba(248,113,113,0.55);
    background: rgba(60,14,14,0.92);
}

.gt-modules-editor__col-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gt-modules-editor__autoparser[hidden] {
    display: none !important;
}

.gt-modules-editor__autoparser {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    margin-bottom: 16px;
    background: rgba(20,22,30,0.78);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
}

.gt-modules-editor__autoparser-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.gt-modules-editor__autoparser-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: rgba(245,245,247,0.65);
}

.gt-modules-editor__autoparser-field span {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.gt-modules-editor__autoparser-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gt-modules-editor__autoparser-hint {
    font-size: 12px;
    color: rgba(245,245,247,0.5);
}

.gt-modules-editor__btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.gt-modules-editor__autoparser-result[hidden] {
    display: none !important;
}

.gt-modules-editor__autoparser-result {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(10,12,18,0.65);
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 10px;
}

.gt-modules-editor__autoparser-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: rgba(245,245,247,0.85);
}

.gt-modules-editor__autoparser-summary strong {
    color: #fff;
    font-weight: 700;
}

.gt-modules-editor__autoparser-meta {
    color: rgba(245,245,247,0.5);
    font-style: italic;
}

.gt-modules-editor__autoparser-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 6px;
    font-size: 13px;
    color: rgba(245,245,247,0.78);
}

.gt-modules-editor__autoparser-list li {
    padding: 6px 10px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

.gt-modules-editor__autoparser-list strong {
    color: #fff;
    font-weight: 600;
    margin-right: 6px;
}

@media (max-width: 900px) {
    .gt-modules-editor__grid {
        grid-template-columns: 1fr;
    }
    .gt-modules-editor__col {
        min-height: auto;
    }
    .gt-modules-editor__modules-list,
    .gt-modules-editor__lessons-list {
        max-height: 50vh;
    }
    .gt-modules-editor__autoparser-row {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
 * G Teach — Module track page (Phase 2, Duolingo-zigzag).
 * Scoped under .gt-course-v2-dark.gt-track-dark on the outermost wrapper —
 * наследует фон/градиенты/контейнер, добавляет цепочку узлов.
 * ========================================================================= */

.gt-track-dark__container {
    max-width: 760px;
}

.gt-track-dark__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.gt-track-dark__jump {
    position: relative;
}

.gt-track-dark__jump-select {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(245,245,247,0.92);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 36px 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%23F5F5F7' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color 160ms;
}

.gt-track-dark__jump-select:hover,
.gt-track-dark__jump-select:focus {
    border-color: rgba(88, 204, 2, 0.7);
    outline: none;
}

.gt-track-dark__jump-select option {
    background: #14161B;
    color: #F5F5F7;
}

.gt-track-dark__head {
    text-align: center;
    margin-bottom: 48px;
}

.gt-track-dark__eyebrow {
    color: rgba(245,245,247,0.55);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.gt-track-dark__title {
    font-family: 'Manrope', 'Inter', system-ui, sans-serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    color: #F5F5F7;
}

.gt-track-dark__progress-text {
    font-size: 14px;
    color: rgba(245,245,247,0.7);
    margin-bottom: 10px;
}

.gt-track-dark__progress {
    width: min(360px, 100%);
    height: 8px;
    margin: 0 auto;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
}

.gt-track-dark__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #58cc02 0%, #46a302 100%);
    border-radius: 999px;
    transition: width 320ms ease;
}

.gt-track-dark__hint {
    margin: 0 auto 24px;
    max-width: 520px;
    text-align: center;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(245,245,247,0.85);
    font-size: 14px;
}

.gt-track-dark__empty {
    text-align: center;
    padding: 64px 24px;
    border-radius: 24px;
    background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(255,255,255,0.12);
}

.gt-track-dark__empty-emoji {
    font-size: 48px;
    margin-bottom: 12px;
}

.gt-track-dark__empty-title {
    font-size: 18px;
    font-weight: 600;
    color: rgba(245,245,247,0.9);
    margin-bottom: 16px;
}

.gt-track-dark__empty-cta {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(88, 204, 2, 0.18);
    border: 1px solid rgba(88, 204, 2, 0.5);
    color: #B8F47B;
    text-decoration: none;
    font-weight: 600;
    transition: background 160ms;
}

.gt-track-dark__empty-cta:hover {
    background: rgba(88, 204, 2, 0.28);
}

/* --- Зигзаг-цепочка узлов --- */

.gt-track-dark__path {
    position: relative;
    padding: 24px 0 32px;
}

.gt-track-dark__lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.gt-track-dark__nodes {
    position: relative;
    z-index: 2;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 56px;
}

.node {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transform: translateX(0);
    transition: transform 200ms ease;
}

/* Зигзаг: чётные → вправо, нечётные (кроме первого) → влево */
.node:nth-child(even) {
    transform: translateX(72px);
}

.node:nth-child(odd):not(:first-child) {
    transform: translateX(-72px);
}

.node__bubble {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(255,255,255,0.14);
    color: #F5F5F7;
    font-family: 'Manrope', 'Inter', system-ui, sans-serif;
    font-weight: 800;
    font-size: 22px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 200ms cubic-bezier(.34,1.56,.64,1), border-color 200ms, background 200ms, box-shadow 200ms;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}

.node__num {
    position: relative;
    z-index: 1;
}

.node__type-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #14161B;
    border: 2px solid rgba(255,255,255,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
}

.node__check {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #58cc02;
    color: #0A0A0B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    border: 2px solid #0A0A0B;
}

.node__check--rejected {
    background: #ff9500;
    color: #0A0A0B;
    font-size: 12px;
}

.node__lock {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
}

.node--lock .node__num {
    opacity: 0;
}

.node__title {
    max-width: 200px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: rgba(245,245,247,0.72);
    line-height: 1.3;
}

.node__cta {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: #58cc02;
    color: #0A0A0B;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(88, 204, 2, 0.35);
}

/* Состояния узла */

.node--done .node__bubble {
    background: rgba(88, 204, 2, 0.18);
    border-color: rgba(88, 204, 2, 0.6);
}

.node--done:hover .node__bubble {
    transform: scale(1.05);
    border-color: rgba(88, 204, 2, 0.9);
}

.node--active {
    z-index: 3;
}

.node--active .node__bubble {
    background: linear-gradient(135deg, #58cc02 0%, #46a302 100%);
    border-color: #B8F47B;
    color: #0A0A0B;
    transform: scale(1.08);
    box-shadow:
        0 0 0 6px rgba(88, 204, 2, 0.18),
        0 8px 32px rgba(88, 204, 2, 0.45);
    animation: gtTrackPulse 2.4s ease-in-out infinite;
}

.node--active:hover .node__bubble {
    transform: scale(1.13);
}

@keyframes gtTrackPulse {
    0%, 100% { box-shadow: 0 0 0 6px rgba(88, 204, 2, 0.18), 0 8px 32px rgba(88, 204, 2, 0.45); }
    50%      { box-shadow: 0 0 0 12px rgba(88, 204, 2, 0.05), 0 8px 36px rgba(88, 204, 2, 0.55); }
}

.node--available .node__bubble {
    border-color: rgba(255,255,255,0.32);
}

.node--available:hover .node__bubble {
    transform: scale(1.05);
    border-color: rgba(88, 204, 2, 0.6);
}

.node--in_progress .node__bubble {
    border-style: dashed;
    border-color: rgba(255,255,255,0.45);
}

.node--in_progress:hover .node__bubble {
    transform: scale(1.05);
    border-color: rgba(88, 204, 2, 0.7);
}

.node--rejected .node__bubble {
    border-color: rgba(255, 149, 0, 0.6);
    background: rgba(255, 149, 0, 0.08);
}

.node--rejected:hover .node__bubble {
    transform: scale(1.05);
    border-color: rgba(255, 149, 0, 0.9);
}

.node--lock {
    opacity: 0.42;
}

.node--lock .node__bubble {
    cursor: not-allowed;
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.08);
    box-shadow: none;
}

.node--lock .node__title {
    color: rgba(245,245,247,0.4);
}

/* --- Соседние модули внизу --- */

.gt-track-dark__siblings {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
}

.sib {
    flex: 1;
    min-width: 200px;
    padding: 16px 20px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(245,245,247,0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: border-color 160ms, background 160ms, transform 160ms;
}

.sib:hover {
    border-color: rgba(88, 204, 2, 0.5);
    background: rgba(88, 204, 2, 0.06);
    transform: translateY(-2px);
}

.sib--prev {
    text-align: left;
}

.sib--next {
    text-align: right;
}

.sib--placeholder {
    flex: 1;
    min-width: 200px;
    visibility: hidden;
}

/* --- Mobile breakpoint: убираем зигзаг --- */

@media (max-width: 640px) {
    .gt-track-dark__container {
        padding: 0;
    }
    .node {
        transform: none !important;
    }
    .gt-track-dark__lines {
        display: none; /* JS-линии не имеют смысла на узкой колонке */
    }
    .gt-track-dark__nodes {
        gap: 40px;
    }
    .node__bubble {
        width: 64px;
        height: 64px;
        font-size: 20px;
    }
    .node__title {
        max-width: 240px;
        font-size: 12px;
    }
    .gt-track-dark__siblings {
        flex-direction: column;
    }
    .sib--placeholder {
        display: none;
    }
}

