.learning-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    background: #fbfaf6;
    transition: grid-template-columns .22s ease;
}

.learning-shell:has(.learning-sidebar:hover) {
    grid-template-columns: 315px minmax(0, 1fr);
}

.learning-sidebar {
    width: 86px;
    overflow: hidden;
    z-index: 40;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 22px 16px;
    background: rgba(255,255,255,.98);
    border-right: 1px solid #e6eaf2;
    box-shadow: 8px 0 28px rgba(15, 23, 42, .035);
    transition: width .22s ease, box-shadow .22s ease;
}

.learning-sidebar:hover {
    width: 315px;
    box-shadow: 18px 0 38px rgba(15, 23, 42, .08);
}

.learning-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    margin-bottom: 26px;
    color: #172033;
    font-size: 23px;
    font-weight: 950;
    white-space: nowrap;
}

.learning-logo-mark {
    width: 42px;
    min-width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    box-shadow: 0 10px 22px rgba(37, 99, 235, .22);
    font-size: 16px;
    font-weight: 950;
}

.learning-logo span,
.learning-menu-text,
.learning-sidebar-note {
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity .18s ease, transform .18s ease;
}

.learning-sidebar:hover .learning-logo span,
.learning-sidebar:hover .learning-menu-text,
.learning-sidebar:hover .learning-sidebar-note {
    opacity: 1;
    transform: translateX(0);
}

.learning-menu {
    display: grid;
    gap: 7px;
}

.learning-menu a {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 14px;
    border-radius: 16px;
    color: #475569;
    text-decoration: none;
    font-size: 15px;
    font-weight: 900;
    white-space: nowrap;
}

.learning-menu a:hover,
.learning-menu a.active {
    background: #eff6ff;
    color: #2563eb;
}

.learning-menu-icon {
    width: 28px;
    min-width: 28px;
    display: inline-flex;
    justify-content: center;
    font-size: 19px;
}

.learning-sidebar-note {
    margin-top: 26px;
    padding: 15px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f0fdf4, #ffffff);
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.45;
}

.learning-main {
    min-width: 0;
    background: #fbfaf6;
    padding: 22px 26px 42px;
}

.learning-main-white {
    max-width: 1380px;
    min-height: calc(100vh - 44px);
    margin: 0 auto;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(230, 234, 242, .78);
    border-radius: 30px;
    padding: 24px;
    box-shadow: 0 18px 50px rgba(15,23,42,.035);
}

@media (max-width: 900px) {
    .learning-shell {
        display: block;
    }

    .learning-sidebar {
        position: static;
        width: auto;
        height: auto;
    }

    .learning-sidebar:hover {
        width: auto;
    }

    .learning-logo span,
    .learning-menu-text,
    .learning-sidebar-note {
        opacity: 1;
        transform: none;
    }

    .learning-main {
        padding: 14px;
    }

    .learning-main-white {
        padding: 14px;
        border-radius: 22px;
    }
}

/* final-white-course-polish */
html,
body {
    background: #ffffff !important;
}

.learning-shell {
    background: #ffffff !important;
}

.learning-main {
    background: #ffffff !important;
}

.learning-main-white {
    background: #ffffff !important;
    border-color: #eef2f7 !important;
    box-shadow: 0 18px 46px rgba(15, 23, 42, .035) !important;
}

.learning-sidebar {
    background: #ffffff !important;
}

/* lesson-left-learning-toc */
.learning-lesson-toc,
.learning-lesson-hint {
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity .18s ease, transform .18s ease;
}

.learning-sidebar:hover .learning-lesson-toc,
.learning-sidebar:hover .learning-lesson-hint {
    opacity: 1;
    transform: translateX(0);
}

.learning-lesson-toc {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e6eaf2;
    display: grid;
    gap: 7px;
}

.learning-lesson-toc-title {
    padding: 0 4px 6px;
    color: #111827;
    font-size: 15px;
    font-weight: 950;
    white-space: nowrap;
}

.learning-lesson-toc a {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    border-radius: 14px;
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.2;
}

.learning-lesson-toc a:hover,
.learning-lesson-toc a.active {
    background: #eff6ff;
    color: #2563eb;
}

.learning-toc-number {
    width: 26px;
    min-width: 26px;
    height: 26px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #dbeafe;
    color: #2563eb;
    font-size: 13px;
    font-weight: 950;
}

.learning-lesson-toc a.active .learning-toc-number {
    background: #2563eb;
    color: #ffffff;
}

.learning-lesson-hint {
    margin-top: 14px;
    padding: 13px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fffaf0, #ffffff);
    border: 1px solid #fdecc8;
    color: #713f12;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .learning-lesson-toc,
    .learning-lesson-hint {
        opacity: 1;
        transform: none;
    }
}


/* lesson-left-fixed-sidebar-safe */
body.lesson-with-learning-menu {
    padding-left: 86px;
    background: #ffffff !important;
    transition: padding-left .22s ease;
}

body.lesson-with-learning-menu:has(.learning-sidebar:hover) {
    padding-left: 315px;
}

body.lesson-with-learning-menu .learning-sidebar {
    position: fixed !important;
    left: 0;
    top: 0;
    height: 100vh;
}

body.lesson-with-learning-menu .learning-lesson-toc {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e6eaf2;
    display: grid;
    gap: 7px;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity .18s ease, transform .18s ease;
}

body.lesson-with-learning-menu .learning-sidebar:hover .learning-lesson-toc {
    opacity: 1;
    transform: translateX(0);
}

body.lesson-with-learning-menu .learning-lesson-toc-title {
    padding: 0 4px 6px;
    color: #111827;
    font-size: 15px;
    font-weight: 950;
    white-space: nowrap;
}

body.lesson-with-learning-menu .learning-lesson-toc a {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    border-radius: 14px;
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.2;
}

body.lesson-with-learning-menu .learning-lesson-toc a:hover,
body.lesson-with-learning-menu .learning-lesson-toc a.active {
    background: #eff6ff;
    color: #2563eb;
}

body.lesson-with-learning-menu .learning-toc-number {
    width: 26px;
    min-width: 26px;
    height: 26px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #dbeafe;
    color: #2563eb;
    font-size: 13px;
    font-weight: 950;
}

body.lesson-with-learning-menu .learning-lesson-toc a.active .learning-toc-number {
    background: #2563eb;
    color: #ffffff;
}

body.lesson-with-learning-menu .tb-sidebar,
body.lesson-with-learning-menu .tb-side,
body.lesson-with-learning-menu .tb-left,
body.lesson-with-learning-menu aside.tb-sidebar,
body.lesson-with-learning-menu .tb-sticky-sidebar {
    display: none !important;
}

body.lesson-with-learning-menu .tb-layout,
body.lesson-with-learning-menu .tb-grid,
body.lesson-with-learning-menu .tb-main-grid {
    grid-template-columns: minmax(0, 1fr) !important;
}

@media (max-width: 900px) {
    body.lesson-with-learning-menu {
        padding-left: 0;
    }

    body.lesson-with-learning-menu:has(.learning-sidebar:hover) {
        padding-left: 0;
    }

    body.lesson-with-learning-menu .learning-sidebar {
        position: static !important;
        height: auto;
    }

    body.lesson-with-learning-menu .learning-lesson-toc {
        opacity: 1;
        transform: none;
    }
}
