.kb-course-page {
            background:
                radial-gradient(circle at 10% 16%, rgba(93, 199, 255, 0.09), transparent 18%),
                radial-gradient(circle at 88% 14%, rgba(46, 123, 255, 0.14), transparent 20%),
                linear-gradient(180deg, #061120 0%, #091729 26%, #0b1d35 100%);
            min-height: calc(100vh - 120px);
            padding: 0;
        }
        .school-tutorial-page.browse-with-ad-rail {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 320px;
            align-items: start;
            gap: 1rem;
            max-width: 1280px;
        }
        .school-tutorial-page.browse-with-ad-rail > .school-subject-content { min-width: 0; }
        @media (max-width: 900px) {
            .school-tutorial-page.browse-with-ad-rail { grid-template-columns: minmax(0, 1fr); gap: 0; }
            .school-tutorial-page.browse-with-ad-rail > .kb-course-rail { min-height: auto; }
        }
        .kb-course-layout {
            width: 100%;
            max-width: 100vw;
            margin: 0;
            padding: 0 .15rem 0 0;
            display: grid;
            grid-template-columns: 220px minmax(0, 1fr) 320px;
            gap: .12rem;
            align-items: stretch;
            min-height: calc(100vh - 136px);
        }
        .kb-course-layout.no-right-rail {
            grid-template-columns: 250px minmax(0, 1fr);
        }
        .kb-course-layout > [data-course-lesson-container] {
            display: flex;
            min-height: 100%;
        }
        .kb-course-sidebar,
        .kb-course-lesson,
        .kb-course-rail-card {
            border: 1px solid rgba(255,255,255,0.1);
            box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
        }
        .kb-course-mobile-toggle-row,
        .kb-course-mobile-overlay {
            display: none;
        }
        .kb-course-sidebar {
            position: sticky;
            top: calc(var(--kb-main-nav-height, 81px) + 44px);
            align-self: start;
            height: calc(100vh - (var(--kb-main-nav-height, 81px) + 44px) - 12px);
            max-height: calc(100vh - (var(--kb-main-nav-height, 81px) + 44px) - 12px);
            overflow: hidden;
            background: linear-gradient(180deg, #132845 0%, #0d1d34 58%, #091423 100%);
            color: #edf5ff;
            padding: 0;
            border-radius: 0;
            border-left: 0;
        }
        .kb-course-sidebar-scroll {
            height: 100%;
            overflow-y: auto;
            overflow-x: hidden;
            padding: .9rem 0 1.4rem;
            scrollbar-width: thin;
            scrollbar-color: rgba(240, 203, 89, 0.45) rgba(255, 255, 255, 0.08);
        }
        .kb-course-sidebar-scroll::-webkit-scrollbar {
            width: 10px;
        }
        .kb-course-sidebar-scroll::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
        }
        .kb-course-sidebar-scroll::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, rgba(212, 175, 55, 0.88), rgba(93, 199, 255, 0.6));
            border-radius: 999px;
            border: 2px solid rgba(9, 20, 35, 0.72);
        }
        .kb-course-sidebar-section + .kb-course-sidebar-section { margin-top: .55rem; }
        .kb-course-sidebar-title {
            margin: 0;
            padding: 0 1.1rem .55rem;
            font-size: 1rem;
            font-weight: 700;
            color: #f3f8ff;
        }
        .kb-course-topic-list,
        .kb-course-topic-children {
            list-style: none;
            margin: 0;
            padding: 0;
        }
        .kb-course-topic-link {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.6rem;
            min-height: 40px;
            padding: 0.62rem .9rem;
            font-size: 0.94rem;
            color: #dce8f7;
            border-left: 4px solid transparent;
            transition: background-color .2s ease, color .2s ease, border-color .2s ease;
        }
        .kb-course-topic-link:hover {
            background: rgba(255, 255, 255, 0.08);
            color: #ffffff;
        }
        .kb-course-topic-link.is-active {
            background: linear-gradient(135deg, rgba(212, 175, 55, 0.95), rgba(240, 203, 89, 0.92));
            color: #091423;
            border-left-color: #b68716;
            font-weight: 700;
        }
        .kb-course-topic-caret {
            color: inherit;
            opacity: 0.8;
            font-size: .72rem;
        }
        .kb-course-sidebar-empty {
            margin: 0;
            padding: 0 1.1rem;
            color: #b9cbe4;
            font-size: .88rem;
        }
        .kb-course-lesson {
            --kb-lesson-padding: 1.5rem;
            background: linear-gradient(180deg, rgba(10, 23, 44, 0.96), rgba(8, 17, 32, 0.98));
            padding: var(--kb-lesson-padding);
            margin-top: 0;
            margin-bottom: 0;
            min-height: 100%;
            flex: 1 1 auto;
            /* border-radius: 28px; */
            color: #eff5ff;
        }
        .kb-course-lesson-meta {
            display: flex;
            flex-wrap: wrap;
            gap: .65rem;
            margin-bottom: 1rem;
        }
        .kb-course-pill {
            display: inline-flex;
            align-items: center;
            padding: .48rem .9rem;
            border-radius: 999px;
            background: linear-gradient(135deg, rgba(23, 103, 255, 0.24), rgba(93, 199, 255, 0.18));
            color: #eaf4ff;
            font-size: .78rem;
            font-weight: 700;
            letter-spacing: .08em;
            text-transform: uppercase;
        }
        .kb-course-pill-outline {
            background: rgba(212, 175, 55, 0.12);
            color: #f6d56e;
            border: 1px solid rgba(240, 203, 89, 0.24);
        }
        .kb-course-pill-muted {
            background: rgba(255,255,255,0.06);
            color: #bfd2ef;
        }
        .kb-course-lesson-title {
            margin: 0;
            font-family: "Space Grotesk", sans-serif;
            font-size: clamp(2rem, 5vw, 3.2rem);
            line-height: 1;
            letter-spacing: -.05em;
        }
        .kb-course-lesson-summary {
            margin: 1rem 0 1.4rem;
            max-width: 62rem;
            color: #b6c7e3;
            line-height: 1.8;
            font-size: 1rem;
        }
        .kb-course-lesson-content {
            max-width: 70rem;
            color: #dbeafe;
            font-size: 1.02rem;
            line-height: 1.85;
        }
        .kb-course-lesson-content h2 {
            margin: 1.8rem 0 .75rem;
            color: #ffffff;
            font-size: clamp(1.35rem, 3vw, 2rem);
            font-weight: 800;
            letter-spacing: 0;
        }
        .kb-course-lesson-content p {
            margin: 0 0 1rem;
            color: #c4d4ee;
        }
        .kb-course-lesson-content code {
            border-radius: .45rem;
            background: rgba(93, 199, 255, 0.12);
            padding: .1rem .35rem;
            color: #d7f0ff;
        }
        .kb-course-lesson-content pre {
            margin: 1rem 0 1.35rem;
            overflow-x: auto;
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 1rem;
            background: #07111f;
            padding: 1rem;
            box-shadow: 0 18px 44px rgba(0,0,0,0.28);
        }
        .kb-course-lesson-content pre code {
            display: block;
            background: transparent;
            padding: 0;
            color: #eaf4ff;
            white-space: pre-wrap;
            overflow-wrap: anywhere;
        }
        .kb-course-live-example-label {
            margin: 1.75rem 0 .85rem;
            color: #f4cf6e;
            font-size: .8rem;
            font-weight: 800;
            letter-spacing: .12em;
            text-transform: uppercase;
        }
        .kb-course-preview-frame-shell {
            width: calc(100% + (var(--kb-lesson-padding) * 2));
            margin-left: calc(var(--kb-lesson-padding) * -1);
            margin-right: calc(var(--kb-lesson-padding) * -1);
            margin-bottom: calc(var(--kb-lesson-padding) * -1);
            margin-top: .9rem;
            overflow: hidden;
            border: 0;
            border-radius: 0;
            background: transparent;
            min-height: 0;
        }
        .kb-course-preview-frame {
            width: 100%;
            border: 0;
            background: white;
            display: block;
            min-height: 0;
        }
        .kb-course-empty-state {
            background: rgba(255,255,255,0.05);
        }
        .kb-course-empty-state {
            padding: 1.5rem;
            border-radius: 24px;
            border: 1px solid rgba(255,255,255,0.1);
            color: #dce8fb;
        }
        .kb-course-empty-state h2 {
            margin: 0 0 .75rem;
            font-size: 1.2rem;
        }
        .kb-course-lesson-nav {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 1rem;
            margin-top: 1.35rem;
            align-items: stretch;
        }
        .kb-course-lesson-nav-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 3.55rem;
            min-width: 9.5rem;
            width: fit-content;
            max-width: 100%;
            padding: .9rem 1.35rem;
            border: 1px solid rgba(76, 154, 255, 0.28);
            border-radius: .9rem;
            background: linear-gradient(180deg, #153867 0%, #081727 100%);
            box-shadow: 0 14px 32px rgba(3, 10, 20, 0.34);
            color: #f7fbff;
            text-decoration: none;
            transition: transform .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
        }
        .kb-course-lesson-nav-link:hover {
            transform: translateY(-2px);
            border-color: rgba(88, 174, 255, 0.55);
            background: linear-gradient(180deg, #1d4b88 0%, #091a2d 100%);
            box-shadow: 0 18px 38px rgba(6, 15, 31, 0.38);
            color: #ffffff;
        }
        .kb-course-lesson-nav-link:focus-visible {
            outline: 2px solid rgba(98, 179, 255, 0.7);
            outline-offset: 2px;
        }
        .kb-course-lesson-nav-link.is-next {
            justify-self: end;
        }
        .kb-course-lesson-nav-button-text {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: .45rem;
            font-size: 1.08rem;
            font-weight: 800;
            line-height: 1;
            letter-spacing: -.01em;
            color: inherit;
            white-space: nowrap;
        }
        .kb-course-lesson-nav-spacer {
            min-height: 3.55rem;
        }
        .kb-course-rail {
            position: relative;
            min-height: 100%;
            padding-left: 0;
            margin-left: 0;
            border-left: 1px solid rgba(168, 193, 224, 0.22);
            background:
                linear-gradient(180deg, rgba(9, 23, 43, 0.98), rgba(8, 18, 34, 0.98)),
                radial-gradient(circle at top, rgba(93, 199, 255, 0.1), transparent 28%);
            align-self: stretch;
        }
        .kb-course-rail-inner {
            position: sticky;
            top: calc(var(--kb-main-nav-height, 81px) + 44px);
            padding-left: 10px;
            padding-bottom: 2rem;
        }
        .kb-course-ad-shell {
            padding: 0;
            border-radius: 0;
            background: transparent;
            border: 0;
            box-shadow: none;
        }
        .kb-course-ad-label {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: .75rem;
            margin-bottom: 1rem;
            padding-top: .75rem;
            color: #bad0ee;
            font-size: .75rem;
            font-weight: 700;
            letter-spacing: .08em;
            text-transform: uppercase;
        }
        .kb-course-ad-slot-wrapper {
            width: 100%;
            max-width: 300px;
            min-height: 250px;
            margin: 0 auto;
            position: relative;
        }
        .kb-course-ad-slot-wrapper ins.adsbygoogle {
            display: block;
            width: 100%;
        }
        .kb-course-ad-placeholder {
            width: 100%;
            min-height: 250px;
        }
        html:not(.dark) .kb-course-page {
            background:
                radial-gradient(circle at 10% 16%, rgba(93, 199, 255, 0.07), transparent 18%),
                radial-gradient(circle at 88% 14%, rgba(46, 123, 255, 0.09), transparent 20%),
                linear-gradient(180deg, #f4f9ff 0%, #edf4fb 26%, #e6eef8 100%);
        }
        html:not(.dark) .kb-course-sidebar,
        html:not(.dark) .kb-course-lesson,
        html:not(.dark) .kb-course-rail-card {
            border-color: rgba(148, 163, 184, 0.18);
            box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
        }
        html:not(.dark) .kb-course-sidebar {
            background: linear-gradient(180deg, #fdfefe 0%, #f1f6fc 58%, #e9f0f8 100%);
            color: #17314f;
        }
        html:not(.dark) .kb-course-sidebar-scroll {
            scrollbar-color: rgba(212, 175, 55, 0.5) rgba(148, 163, 184, 0.12);
        }
        html:not(.dark) .kb-course-sidebar-scroll::-webkit-scrollbar-track {
            background: rgba(148, 163, 184, 0.12);
        }
        html:not(.dark) .kb-course-sidebar-scroll::-webkit-scrollbar-thumb {
            border-color: rgba(233, 240, 248, 0.92);
        }
        html:not(.dark) .kb-course-sidebar-title {
            color: #16304f;
        }
        html:not(.dark) .kb-course-topic-link {
            color: #4c6483;
        }
        html:not(.dark) .kb-course-topic-link:hover {
            background: rgba(46, 123, 255, 0.08);
            color: #0f2740;
        }
        html:not(.dark) .kb-course-topic-link.is-active {
            color: #7b5900;
            border-left-color: #c99a22;
        }
        html:not(.dark) .kb-course-sidebar-empty {
            color: #6a7f9b;
        }
        html:not(.dark) .kb-course-lesson {
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.98));
            color: #17314f;
        }
        html:not(.dark) .kb-course-pill {
            background: linear-gradient(135deg, rgba(23, 103, 255, 0.12), rgba(93, 199, 255, 0.12));
            color: #2459bc;
            border: 1px solid rgba(46, 123, 255, 0.14);
        }
        html:not(.dark) .kb-course-pill-outline {
            background: rgba(212, 175, 55, 0.12);
            color: #8a6200;
            border-color: rgba(212, 175, 55, 0.22);
        }
        html:not(.dark) .kb-course-pill-muted {
            background: rgba(148, 163, 184, 0.12);
            color: #5e7291;
            border-color: rgba(148, 163, 184, 0.14);
        }
        html:not(.dark) .kb-course-lesson-nav-link {
            border-color: rgba(31, 99, 180, 0.18);
            background: linear-gradient(180deg, #2c6fc2 0%, #122944 100%);
            color: #ffffff;
        }
        html:not(.dark) .kb-course-lesson-nav-link:hover {
            border-color: rgba(31, 99, 180, 0.42);
            background: linear-gradient(180deg, #3980d8 0%, #16304f 100%);
            color: #ffffff;
        }
        html:not(.dark) .kb-course-lesson-title {
            color: #122b46;
        }
        html:not(.dark) .kb-course-lesson-summary {
            color: #5e7291;
        }
        html:not(.dark) .kb-course-lesson-content {
            color: #25415f;
        }
        html:not(.dark) .kb-course-lesson-content h2 {
            color: #122b46;
        }
        html:not(.dark) .kb-course-lesson-content p {
            color: #516984;
        }
        html:not(.dark) .kb-course-lesson-content code {
            background: rgba(37, 99, 235, 0.08);
            color: #174ea6;
        }
        html:not(.dark) .kb-course-lesson-content pre {
            border-color: rgba(148, 163, 184, 0.24);
            background: #eef5fc;
            box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
        }
        html:not(.dark) .kb-course-lesson-content pre code {
            color: #17314f;
        }
        html:not(.dark) .kb-course-empty-state {
            background: rgba(255,255,255,0.82);
            border-color: rgba(148, 163, 184, 0.18);
            color: #17314f;
        }
        html:not(.dark) .kb-course-rail {
            border-left-color: rgba(148, 163, 184, 0.2);
            background:
                linear-gradient(180deg, rgba(245, 249, 255, 0.98), rgba(236, 243, 251, 0.98)),
                radial-gradient(circle at top, rgba(93, 199, 255, 0.08), transparent 28%);
        }
        html:not(.dark) .kb-course-ad-label {
            color: #5e7291;
        }
        @media (max-width: 1200px) {
            .kb-course-layout,
            .kb-course-layout.no-right-rail {
                grid-template-columns: 200px minmax(0, 1fr);
                padding-right: .15rem;
                gap: .12rem;
            }
            .kb-course-rail {
                grid-column: 1 / -1;
                position: static;
                margin-left: 0;
                padding-left: 0;
                border-left: 0;
                border-top: 1px solid rgba(168, 193, 224, 0.2);
                background: transparent;
                min-height: auto;
            }
            .kb-course-rail-inner {
                position: static;
                padding-top: .6rem;
                padding-bottom: 0;
            }
            .kb-course-ad-slot-wrapper { max-width: none; }
        }
        @media (max-width: 900px) {
            .kb-course-page { padding: 0; }
            .kb-course-layout,
            .kb-course-layout.no-right-rail {
                grid-template-columns: 1fr;
                gap: 0;
                padding-right: 0;
            }
            .kb-course-layout > [data-course-lesson-container] {
                display: block;
                width: 100%;
                min-height: auto;
            }
            .kb-course-lesson {
                --kb-lesson-padding: 1rem;
                width: 100%;
                min-height: auto;
                flex: 0 1 auto;
            }
            .kb-course-lesson-nav {
                grid-template-columns: 1fr;
                gap: .8rem;
            }
            .kb-course-lesson-nav-link,
            .kb-course-lesson-nav-link.is-next {
                justify-self: stretch;
                width: 100%;
            }
            .kb-course-preview-frame-shell {
                width: calc(100% + (var(--kb-lesson-padding) * 2));
                max-width: none;
            }
            .kb-course-rail { position: static; max-height: none; }
            .kb-course-mobile-toggle-row {
                display: flex;
                align-items: center;
                justify-content: flex-start;
                position: sticky;
                top: calc(var(--kb-main-nav-height, 81px) + 42px);
                z-index: 45;
                width: 100%;
                margin: 0;
                padding: 0;
                background: transparent;
            }
            .kb-course-mobile-toggle {
                display: inline-flex;
                align-items: center;
                gap: .7rem;
                margin: 0;
                border: 1px solid rgba(255,255,255,0.12);
                background: linear-gradient(180deg, #132845 0%, #0d1d34 58%, #091423 100%);
                color: #edf5ff;
                border-radius: 16px;
                padding: .8rem 1rem;
                font-weight: 700;
                box-shadow: 0 18px 36px rgba(0,0,0,.22);
            }
            html:not(.dark) .kb-course-mobile-toggle {
                border-color: rgba(148, 163, 184, 0.18);
                background: linear-gradient(180deg, #ffffff 0%, #eef4fb 58%, #e8eff8 100%);
                color: #17314f;
                box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
            }
            .kb-course-mobile-overlay {
                position: fixed;
                inset: 0;
                background: rgba(2, 8, 17, 0.55);
                z-index: 55;
            }
            html:not(.dark) .kb-course-mobile-overlay {
                background: rgba(148, 163, 184, 0.32);
            }
            .kb-course-mobile-overlay[data-open="true"] {
                display: block;
            }
            .kb-course-sidebar,
            .kb-course-rail { position: static; max-height: none; }
            .kb-course-sidebar {
                position: fixed;
                top: calc(var(--kb-main-nav-height, 81px) + 44px);
                left: 0;
                bottom: 0;
                width: min(340px, 88vw);
                height: auto;
                max-height: none;
                margin-bottom: 0;
                z-index: 60;
                overflow: hidden;
                transform: translateX(-102%);
                transition: transform .25s ease;
                border-radius: 0;
            }
            .kb-course-sidebar[data-mobile-open="true"] {
                transform: translateX(0);
            }
            .kb-course-rail {
                width: min(100%, calc(100% - 1rem));
                margin: 1.5rem auto 0;
                border-top: 1px solid rgba(168, 193, 224, 0.2);
                border-left: 0;
                padding: 1.25rem 0 0;
                background: transparent;
            }
            .kb-course-ad-shell {
                border-radius: 24px;
            }
            .kb-course-preview-frame,
            .kb-course-preview-frame-shell { min-height: 0; }
        }
