body.school-page {
    --course-sidebar-width: 96px;
    --course-primary: #6d28d9;
    --course-primary-bright: #7c3aed;
    --course-primary-soft: #a78bfa;
    --course-primary-light: #ede9fe;
    --course-glow: rgba(124, 58, 237, 0.2);
    --course-navy: #0b1033;
    --course-navy-soft: #171a48;
    --course-bg: #fafaff;
    --course-bg-secondary: #f6f4ff;
    --course-card: rgba(255, 255, 255, 0.78);
    --course-border: rgba(124, 58, 237, 0.14);
    --course-border-strong: rgba(124, 58, 237, 0.28);
    --course-text: #111633;
    --course-muted: #667085;
    --course-faint: #8b90a7;
    --course-shadow: 0 10px 30px rgba(31, 20, 74, 0.06);
    --course-shadow-raised: 0 16px 40px rgba(91, 33, 182, 0.1);
    --course-gradient: linear-gradient(135deg, #5b21b6 0%, #7c3aed 55%, #9333ea 100%);
    --course-soft-gradient: linear-gradient(135deg, #6d28d9 0%, #a855f7 100%);
    background:
        radial-gradient(circle at 2% 86%, rgba(167, 139, 250, 0.34), transparent 24rem),
        radial-gradient(circle at 82% 14%, rgba(124, 58, 237, 0.12), transparent 26rem),
        linear-gradient(180deg, #ffffff 0%, var(--course-bg) 38%, var(--course-bg-secondary) 100%);
}

.school-main {
    min-height: 100vh;
    padding: calc(var(--nav-height) + 30px) 0 52px;
}

.student-course-layout {
    min-height: 100vh;
}

.student-course-sidebar[hidden] {
    display: none !important;
}

body.school-page.student-course-session {
    background: #fbfaff;
}

body.student-course-session #footer-root {
    display: none;
}

body.student-course-session .student-course-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 100vh;
    box-sizing: border-box;
    padding-left: var(--course-sidebar-width);
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: #fff;
}

body.student-course-session .site-header {
    left: 0;
    right: 0;
    width: auto;
}

body.registered-student.student-course-session .navbar,
body.registered-student.student-course-session .navbar.pigma-v2-navbar,
body.registered-student.student-course-session .navbar.home-v2-navbar {
    grid-template-columns: minmax(0, 1fr) max-content;
    padding-left: calc(var(--course-sidebar-width) + clamp(20px, 3vw, 44px));
    padding-right: clamp(24px, 4vw, 56px);
}

body.registered-student.student-course-session .auth-actions,
body.registered-student.student-course-session .auth-actions.pigma-v2-navbar-actions,
body.registered-student.student-course-session .auth-actions.home-v2-navbar-actions {
    grid-column: 2;
    width: auto;
    justify-self: end;
    margin-left: auto;
}

body.student-course-session .navbar .brand {
    display: none;
}

body.student-course-session .student-course-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: grid;
    grid-template-rows: var(--nav-height) minmax(0, 1fr) auto;
    width: var(--course-sidebar-width);
    height: 100vh;
    overflow: visible;
    border-right: 1px solid rgba(177, 139, 255, 0.2);
    background:
        radial-gradient(circle at 70% 12%, rgba(128, 54, 255, 0.3), transparent 11rem),
        radial-gradient(circle at 18% 82%, rgba(121, 45, 255, 0.22), transparent 13rem),
        linear-gradient(180deg, #17103a 0%, #100a2d 48%, #0b0824 100%);
    box-shadow:
        inset -1px 0 0 rgba(255, 255, 255, 0.05),
        18px 0 54px rgba(24, 12, 72, 0.14);
}

body.student-course-session .student-course-sidebar .lucide-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.15;
}

body.student-course-session .student-course-sidebar .dashboard-logo {
    display: grid;
    width: 100%;
    height: var(--nav-height);
    place-items: center;
    padding: 9px 6px;
}

body.student-course-session .student-course-sidebar .dashboard-logo img {
    width: 88px;
    height: auto;
    max-height: 54px;
    object-fit: contain;
    object-position: center;
    opacity: 1;
    filter:
        brightness(1.24)
        contrast(1.12)
        saturate(1.18)
        drop-shadow(0 0 13px rgba(188, 143, 255, 0.5))
        drop-shadow(0 3px 10px rgba(255, 255, 255, 0.18));
}

body.student-course-session .student-course-sidebar .dashboard-menu {
    display: grid;
    width: 100%;
    align-content: start;
    justify-items: center;
    gap: 18px;
    padding: 28px 16px 18px;
}

body.student-course-session .student-course-sidebar .dashboard-menu-link {
    position: relative;
    display: grid;
    width: 56px;
    height: 56px;
    min-height: 56px;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 18px;
    padding: 0;
    color: rgba(241, 235, 255, 0.78);
    background: transparent;
    box-shadow: none;
    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

body.student-course-session .student-course-sidebar .dashboard-menu-link > span:not(.lucide-icon),
body.student-course-session .student-course-sidebar .sidebar-divider,
body.student-course-session .student-course-sidebar .sidebar-help-card .help-copy,
body.student-course-session .student-course-sidebar .sidebar-help-card a {
    display: none;
}

body.student-course-session .student-course-sidebar .sidebar-help-card {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    align-self: end;
    justify-self: center;
    margin: 0 0 18px;
    border: 1px solid rgba(196, 145, 255, 0.22);
    border-radius: 18px;
    padding: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.065);
    box-shadow:
        0 14px 34px rgba(14, 7, 44, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.student-course-session .student-course-sidebar .sidebar-help-card .help-icon {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    border-radius: inherit;
    color: #fff;
    background: transparent;
    box-shadow: none;
}

body.student-course-session .student-course-sidebar .sidebar-help-card .help-icon .lucide-icon {
    width: 24px;
    height: 24px;
}

body.student-course-session .student-course-sidebar .dashboard-menu-link::before {
    display: none;
}

body.student-course-session .student-course-sidebar .dashboard-menu-link::after {
    position: absolute;
    top: 50%;
    left: calc(100% + 12px);
    z-index: 5;
    min-width: max-content;
    border: 1px solid rgba(200, 168, 255, 0.22);
    border-radius: 10px;
    padding: 8px 10px;
    color: #fff;
    background: rgba(21, 13, 58, 0.9);
    box-shadow: 0 12px 26px rgba(16, 8, 52, 0.22);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    opacity: 0;
    pointer-events: none;
    transform: translate(6px, -50%);
    transition: opacity 160ms ease, transform 160ms ease;
    content: attr(aria-label);
    backdrop-filter: blur(14px);
}

body.student-course-session .student-course-sidebar .dashboard-menu-link:hover::after,
body.student-course-session .student-course-sidebar .dashboard-menu-link:focus-visible::after {
    opacity: 1;
    transform: translate(0, -50%);
}

body.student-course-session .student-course-sidebar .dashboard-menu-link:hover,
body.student-course-session .student-course-sidebar .dashboard-menu-link:focus-visible {
    color: #fff;
    border-color: rgba(196, 145, 255, 0.22);
    background: rgba(141, 73, 255, 0.14);
    box-shadow: 0 14px 32px rgba(99, 31, 255, 0.2);
    outline: 0;
    transform: translateY(-1px) scale(1.02);
}

body.student-course-session .student-course-sidebar .dashboard-menu-link.is-active,
body.student-course-session .student-course-sidebar .dashboard-menu-link[aria-current="page"] {
    color: #fff;
    border-color: rgba(214, 178, 255, 0.34);
    background:
        radial-gradient(circle at 72% 26%, rgba(222, 135, 255, 0.28), transparent 4rem),
        linear-gradient(135deg, #6428ff 0%, #913aff 100%);
    box-shadow:
        0 18px 38px rgba(113, 38, 255, 0.44),
        0 0 32px rgba(145, 58, 255, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

body.student-course-session .student-course-sidebar .profile-link {
    color: rgba(241, 235, 255, 0.78);
}

body.student-course-session .student-course-sidebar .menu-lock {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 13px;
    height: 13px;
    margin: 0;
    border-radius: 999px;
    padding: 3px;
    color: rgba(235, 226, 255, 0.76);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(194, 157, 255, 0.1);
    box-sizing: content-box;
}

body.student-course-session .school-main {
    min-height: 100vh;
    padding: calc(var(--nav-height) + 36px) 0 52px;
}

body.student-course-session .course-shell {
    width: min(1280px, calc(100% - 72px));
}

.course-shell {
    width: min(1280px, calc(100% - 96px));
    margin-inline: auto;
}

.course-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #687095;
    font-size: 14px;
    font-weight: 600;
}

.course-breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: color 180ms ease;
}

.course-breadcrumb a:hover,
.course-breadcrumb a:focus-visible {
    color: var(--course-primary);
}

.school-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 390px);
    align-items: center;
    gap: clamp(26px, 5.4vw, 78px);
    min-height: 260px;
    margin-top: 22px;
}

.school-heading {
    animation: schoolFadeUp 560ms ease both;
}

.school-heading h1 {
    margin: 0;
    color: var(--course-navy);
    font-size: clamp(52px, 6.4vw, 78px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.95;
}

.title-mark {
    position: relative;
    display: block;
    width: 82px;
    height: 6px;
    margin-top: 25px;
    border-radius: 999px;
    background: var(--course-primary-bright);
}

.title-mark::after {
    position: absolute;
    top: 50%;
    right: -15px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--course-primary-bright);
    content: "";
    transform: translateY(-50%);
}

.school-subtitle,
.school-intro {
    margin: 0;
    max-width: 660px;
    line-height: 1.55;
}

.school-subtitle {
    margin-top: 21px;
    color: var(--course-text);
    font-size: 16px;
    font-weight: 700;
}

.school-intro {
    color: var(--course-muted);
    font-size: 15px;
    font-weight: 500;
}

.education-visual {
    position: relative;
    width: clamp(260px, 31vw, 420px);
    min-height: 214px;
    margin: 0;
    justify-self: end;
    align-self: start;
    pointer-events: none;
    user-select: none;
    animation: illustrationIn 620ms ease 100ms both;
}

.education-visual::before {
    position: absolute;
    inset: 18% 4% 10% 2%;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.28), transparent 68%);
    content: "";
    filter: blur(18px);
}

.education-visual img {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    object-position: top right;
    animation: illustrationFloat 6s ease-in-out infinite;
}

.education-visual img:not([src]),
.education-visual img[src=""] {
    display: none;
}

.course-tabs {
    display: grid;
    grid-template-columns: repeat(var(--tab-count, 4), minmax(0, 1fr));
    align-items: stretch;
    margin: 23px 0 16px;
    overflow: hidden;
    border: 1px solid var(--course-border);
    border-radius: 14px;
    background: var(--course-card);
    box-shadow: var(--course-shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.tab-button {
    position: relative;
    display: inline-flex;
    min-height: 60px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border: 0;
    border-right: 1px solid var(--course-border);
    padding: 0 16px;
    color: #555d82;
    background: transparent;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition:
        color 200ms ease,
        background-color 200ms ease;
}

.tab-button:last-child {
    border-right: 0;
}

.tab-button::after {
    position: absolute;
    right: 28px;
    bottom: 0;
    left: 28px;
    height: 4px;
    border-radius: 999px 999px 0 0;
    background: var(--course-primary-bright);
    content: "";
    opacity: 0;
    transform: scaleX(0.6);
    transition:
        opacity 190ms ease,
        transform 190ms ease;
}

.tab-button:hover,
.tab-button:focus-visible,
.tab-button.active {
    color: var(--course-primary-bright);
    background: rgba(237, 233, 254, 0.62);
}

.tab-button.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.tab-icon {
    display: inline-flex;
    width: 21px;
    height: 21px;
    align-items: center;
    justify-content: center;
    color: currentColor;
    transition: transform 190ms ease;
}

.tab-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.tab-button:hover .tab-icon,
.tab-button:focus-visible .tab-icon {
    transform: scale(1.05);
}

.courses-panel {
    display: grid;
    gap: 9px;
    transition:
        opacity 160ms ease,
        transform 160ms ease;
}

.courses-panel.is-switching {
    opacity: 0.45;
    transform: translateY(4px);
}

.course-item {
    overflow: hidden;
    border: 1px solid var(--course-border);
    border-radius: 16px;
    background: var(--course-card);
    box-shadow: var(--course-shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    animation: schoolFadeUp 460ms ease both;
    animation-delay: calc(var(--item-index, 0) * 60ms);
}

.course-row {
    display: grid;
    width: 100%;
    min-height: 74px;
    grid-template-columns: 50px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 16px;
    border: 0;
    padding: 14px 24px;
    color: var(--course-text);
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background-color 190ms ease;
}

.course-row:hover,
.course-row:focus-visible {
    background: rgba(237, 233, 254, 0.48);
}

.course-number {
    display: grid;
    width: 47px;
    height: 47px;
    place-items: center;
    border-radius: 9px;
    color: #fff;
    background: var(--course-soft-gradient);
    box-shadow: 0 12px 22px rgba(124, 58, 237, 0.22);
    font-size: 22px;
    font-weight: 800;
}

.course-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.course-copy strong {
    color: var(--course-text);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.15;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #687095;
    font-size: 12.5px;
    font-weight: 600;
}

.course-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-icon,
.row-doc-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    color: var(--course-primary-bright);
    background: currentColor;
    flex: 0 0 auto;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
}

.book-icon {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 5.5A2.5 2.5 0 0 1 6.5 3H20v16H6.5A2.5 2.5 0 0 0 4 21V5.5Zm0 0V21m4-14h8m-8 4h8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.layers-icon {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 3 9 5-9 5-9-5 9-5Zm-7 9 7 4 7-4M5 16l7 4 7-4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.clock-icon {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M12 7v5l3 2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.doc-icon {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 3h7l5 5v13H7V3Zm7 0v5h5M10 13h6m-6 4h6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.course-arrow {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border-radius: 999px;
    color: var(--course-primary);
    background: rgba(237, 233, 254, 0.8);
    transition:
        color 190ms ease,
        transform 220ms ease,
        background-color 190ms ease;
}

.course-arrow::before {
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: "";
    transform: translateY(-2px) rotate(45deg);
}

.course-item.is-open .course-arrow {
    color: #fff;
    background: var(--course-primary-bright);
    transform: rotate(180deg);
}

.course-videos {
    max-height: 0;
    padding: 0 24px;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-8px);
    transition:
        max-height 280ms ease,
        padding 280ms ease,
        opacity 220ms ease,
        transform 220ms ease;
}

.course-item.is-open .course-videos {
    max-height: 1000px;
    padding: 0 24px 22px;
    opacity: 1;
    transform: translateY(0);
}

.video-list-inner {
    overflow: hidden;
    border: 1px solid var(--course-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.62);
}

.video-link {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto auto 30px;
    align-items: center;
    gap: 13px;
    min-height: 48px;
    padding: 7px 14px;
    color: var(--course-text);
    border-bottom: 1px solid rgba(124, 58, 237, 0.12);
    text-decoration: none;
    text-align: left;
    transition:
        color 180ms ease,
        background-color 180ms ease,
        transform 180ms ease;
}

.video-link:last-child {
    border-bottom: 0;
}

.video-link:hover,
.video-link:focus-visible {
    color: var(--course-primary-bright);
    background: rgba(237, 233, 254, 0.54);
    transform: translateX(3px);
}

.play-box {
    position: relative;
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border: 1px solid rgba(124, 58, 237, 0.28);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 6px 14px rgba(124, 58, 237, 0.08);
}

.play-box::after {
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid var(--course-primary-bright);
    content: "";
    transform: translateX(2px);
}

.video-copy {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: inherit;
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-duration {
    color: #687095;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.row-doc-icon {
    width: 19px;
    height: 19px;
    color: var(--course-primary-soft);
}

.video-link.is-premium-locked {
    color: var(--course-text);
    cursor: pointer;
}

.video-link.is-premium-locked:hover,
.video-link.is-premium-locked:focus-visible {
    color: var(--course-text);
    background: rgba(237, 233, 254, 0.62);
    box-shadow: inset 3px 0 0 rgba(139, 92, 246, 0.5);
    transform: translateX(2px);
}

.free-content-badge {
    display: inline-flex;
    min-width: 72px;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(34, 197, 94, 0.42);
    border-radius: 8px;
    padding: 0 14px;
    color: #16a34a;
    background: rgba(240, 253, 244, 0.92);
    box-shadow: 0 6px 14px rgba(22, 163, 74, 0.12);
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.play-box.is-lock,
.pdf-box.is-lock {
    border-color: rgba(148, 163, 184, 0.42);
    color: #737b99;
    background: #fff;
    box-shadow: 0 6px 14px rgba(17, 22, 51, 0.08);
}

.play-box.is-lock::after,
.pdf-box.is-lock::before {
    display: none;
}

.play-box.is-lock svg,
.pdf-box.is-lock svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
}

.pdf-box.is-lock {
    border-radius: 999px;
}

.pdf-box {
    position: relative;
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border: 1px solid rgba(229, 62, 62, 0.2);
    border-radius: 9px;
    color: #e53e3e;
    background: rgba(255, 245, 245, 0.9);
    box-shadow: 0 6px 14px rgba(229, 62, 62, 0.08);
}

.pdf-box::before {
    display: none;
    width: 17px;
    height: 17px;
    background: currentColor;
    content: "";
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 3h7l5 5v13H7V3Zm7 0v5h5M10 13h6m-6 4h6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
}

.pdf-box svg {
    display: block;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.pdf-link.is-unavailable {
    opacity: 0.58;
    pointer-events: none;
}

.pdf-link {
    grid-template-columns: 38px minmax(0, 1fr) auto auto 30px;
}

.pdf-type {
    color: #e53e3e;
    font-weight: 900;
}

.premium-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.premium-modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.premium-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(11, 16, 51, 0.42);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.premium-modal-panel {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(100%, 430px);
    gap: 13px;
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 14px;
    padding: 28px;
    color: var(--course-text);
    background: #fff;
    box-shadow: 0 26px 70px rgba(17, 22, 51, 0.22);
    transform: translateY(12px) scale(0.98);
    transition: transform 200ms ease;
}

.premium-modal-overlay.is-open .premium-modal-panel {
    transform: translateY(0) scale(1);
}

.premium-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: #667085;
    background: rgba(237, 233, 254, 0.7);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.premium-modal-close:hover,
.premium-modal-close:focus-visible {
    color: var(--course-primary-bright);
    background: rgba(237, 233, 254, 1);
}

.premium-modal-panel h2 {
    margin: 0;
    padding-right: 32px;
    color: var(--course-navy);
    font-size: 24px;
    font-weight: 900;
    line-height: 1.15;
}

.premium-modal-panel p {
    margin: 0;
    color: #687095;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.55;
}

.premium-support-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    justify-self: start;
    border-radius: 8px;
    padding: 0 20px;
    color: #fff;
    background: var(--course-gradient);
    box-shadow: 0 10px 22px rgba(124, 58, 237, 0.24);
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.premium-support-button:hover,
.premium-support-button:focus-visible {
    box-shadow: 0 14px 28px rgba(124, 58, 237, 0.3);
    transform: translateY(-1px);
}

body.premium-modal-open {
    overflow: hidden;
}

.empty-videos,
.template-error {
    margin: 0;
    padding: 22px;
    color: var(--course-muted);
    font-size: 14px;
    font-weight: 700;
}

.tab-button:focus-visible,
.course-row:focus-visible,
.video-link:focus-visible {
    outline: 3px solid rgba(124, 58, 237, 0.22);
    outline-offset: 2px;
}

@keyframes schoolFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes illustrationIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes illustrationFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@media (max-width: 900px) {
    body.student-course-session .student-course-layout {
        display: block;
        border-radius: 0;
        padding-left: 0;
        padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
    }

    body.student-course-session .student-course-sidebar {
        position: fixed;
        top: auto;
        right: max(12px, env(safe-area-inset-right, 0px));
        bottom: max(10px, env(safe-area-inset-bottom, 0px));
        left: max(12px, env(safe-area-inset-left, 0px));
        z-index: 1200;
        display: block;
        width: auto;
        height: auto;
        min-height: 0;
        overflow: visible;
        border: 1px solid rgba(207, 178, 255, 0.32);
        border-radius: 26px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
            radial-gradient(circle at 16% 18%, rgba(153, 80, 255, 0.34), transparent 10rem),
            radial-gradient(circle at 78% 92%, rgba(112, 42, 255, 0.2), transparent 9rem),
            linear-gradient(135deg, rgba(25, 17, 64, 0.96), rgba(11, 8, 34, 0.98));
        box-shadow:
            0 20px 56px rgba(16, 8, 52, 0.42),
            0 0 46px rgba(112, 42, 255, 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.14),
            inset 0 -1px 0 rgba(255, 255, 255, 0.06);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        transition: none;
    }

    body.student-course-session .site-header {
        left: 0;
    }

    body.registered-student.student-course-session .navbar,
    body.registered-student.student-course-session .navbar.pigma-v2-navbar,
    body.registered-student.student-course-session .navbar.home-v2-navbar {
        grid-template-columns: auto minmax(0, 1fr) auto;
        padding-left: 16px;
        padding-right: 16px;
    }

    body.registered-student.student-course-session .auth-actions,
    body.registered-student.student-course-session .auth-actions.pigma-v2-navbar-actions,
    body.registered-student.student-course-session .auth-actions.home-v2-navbar-actions {
        grid-column: 3;
        width: auto;
    }

    body.student-course-session .navbar .brand {
        display: inline-flex;
    }

    body.student-course-session .student-course-sidebar .dashboard-logo {
        display: none;
    }

    body.student-course-session .student-course-sidebar .dashboard-menu {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: center;
        gap: 6px;
        overflow: visible;
        padding: 8px;
    }

    body.student-course-session .student-course-sidebar .dashboard-menu-link {
        display: inline-flex;
        width: 100%;
        min-width: 0;
        min-height: 62px;
        height: 62px;
        align-items: center;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        border: 1px solid transparent;
        border-radius: 18px;
        padding: 8px 4px;
        color: rgba(237, 229, 255, 0.72);
        background: transparent;
        box-shadow: none;
        text-align: center;
        font-size: 10.5px;
        line-height: 1.08;
        font-weight: 800;
        transform: none;
        transition:
            color 180ms ease,
            background-color 180ms ease,
            border-color 180ms ease,
            box-shadow 180ms ease;
    }

    body.student-course-session .student-course-sidebar .dashboard-menu-link::after,
    body.student-course-session .student-course-sidebar .sidebar-divider,
    body.student-course-session .student-course-sidebar .sidebar-help-card {
        display: none;
    }

    body.student-course-session .student-course-sidebar .dashboard-menu-link > .lucide-icon:first-child {
        width: 21px;
        height: 21px;
        flex: 0 0 21px;
    }

    body.student-course-session .student-course-sidebar .dashboard-menu-link > span:not(.lucide-icon) {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.student-course-session .student-course-sidebar .dashboard-menu-link:hover,
    body.student-course-session .student-course-sidebar .dashboard-menu-link:focus-visible {
        color: #fff;
        border-color: rgba(211, 181, 255, 0.18);
        background: rgba(255, 255, 255, 0.075);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
        transform: none;
    }

    body.student-course-session .student-course-sidebar .dashboard-menu-link.is-active,
    body.student-course-session .student-course-sidebar .dashboard-menu-link[aria-current="page"] {
        color: #fff;
        border-color: rgba(229, 207, 255, 0.36);
        background:
            radial-gradient(circle at 78% 22%, rgba(236, 178, 255, 0.34), transparent 4.4rem),
            linear-gradient(135deg, #6428ff 0%, #8d35ff 58%, #a342ff 100%);
        box-shadow:
            0 12px 28px rgba(112, 42, 255, 0.38),
            0 0 24px rgba(153, 80, 255, 0.24),
            inset 0 1px 0 rgba(255, 255, 255, 0.24);
    }

    body.student-course-session .student-course-sidebar .dashboard-menu-link.is-active > .lucide-icon:first-child,
    body.student-course-session .student-course-sidebar .dashboard-menu-link[aria-current="page"] > .lucide-icon:first-child {
        color: #fff;
    }

    body.student-course-session .student-course-sidebar .menu-lock {
        top: 6px;
        right: 6px;
        width: 11px;
        height: 11px;
        padding: 3px;
    }

    body.student-course-session .school-main {
        padding-top: calc(var(--nav-height) + 26px);
        padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px));
    }

    body.student-course-session .course-shell {
        width: min(100% - 40px, 760px);
    }

    .course-shell {
        width: min(100% - 40px, 760px);
    }

    .school-hero {
        grid-template-columns: 1fr;
        gap: 18px;
        min-height: 0;
    }

    .education-visual {
        width: clamp(210px, 44vw, 320px);
        min-height: 156px;
        opacity: 0.72;
        justify-self: start;
    }

    .education-visual img {
        max-height: 172px;
        object-position: left center;
    }

    .course-tabs {
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .course-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-button {
        min-width: 230px;
        border-right: 1px solid var(--course-border);
    }
}

@media (max-width: 680px) {
    .school-main {
        padding-top: calc(var(--nav-height) + 22px);
    }

    body.student-course-session .school-main {
        padding-top: calc(var(--nav-height) + 22px);
        padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px));
    }

    body.student-course-session .course-shell {
        width: calc(100% - 28px);
    }

    .course-shell {
        width: calc(100% - 28px);
    }

    .course-breadcrumb {
        font-size: 12px;
    }

    .school-heading h1 {
        font-size: clamp(40px, 13vw, 52px);
    }

    .title-mark {
        width: 62px;
        height: 5px;
        margin-top: 18px;
    }

    .school-subtitle {
        margin-top: 18px;
        font-size: 14px;
    }

    .school-intro {
        font-size: 13px;
    }

    .education-visual {
        width: min(220px, 62vw);
        min-height: 112px;
    }

    .education-visual img {
        max-height: 124px;
    }

    .course-tabs {
        margin-top: 18px;
        border-radius: 12px;
    }

    .tab-button {
        min-width: 200px;
        min-height: 58px;
        justify-content: flex-start;
        font-size: 13px;
    }

    .course-row {
        min-height: 76px;
        grid-template-columns: 46px minmax(0, 1fr) 36px;
        gap: 12px;
        padding: 14px;
    }

    .course-number {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .course-copy strong {
        font-size: 16px;
    }

    .course-meta {
        gap: 8px;
        font-size: 12px;
    }

    .course-item.is-open .course-videos {
        padding: 0 12px 14px;
    }

    .video-link {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 10px;
        padding: 10px 12px;
    }

    .free-content-badge,
    .video-duration,
    .row-doc-icon {
        grid-column: 2;
    }

    .row-doc-icon {
        display: none;
    }

    .premium-modal-panel {
        padding: 24px 18px 20px;
    }

    .premium-support-button {
        width: 100%;
    }
}

@media (max-width: 430px) {
    body.student-course-session .student-course-sidebar {
        right: max(10px, env(safe-area-inset-right, 0px));
        left: max(10px, env(safe-area-inset-left, 0px));
        border-radius: 24px;
    }

    body.student-course-session .student-course-sidebar .dashboard-menu {
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 7px;
    }

    body.student-course-session .student-course-sidebar .dashboard-menu-link {
        flex: 1 1 0;
        min-height: 60px;
        height: 60px;
        gap: 0;
        border-radius: 17px;
        padding: 7px 3px;
    }

    body.student-course-session .student-course-sidebar .dashboard-menu-link > span:not(.lucide-icon) {
        display: none;
    }

    body.student-course-session .student-course-sidebar .dashboard-menu-link.is-active,
    body.student-course-session .student-course-sidebar .dashboard-menu-link[aria-current="page"] {
        flex: 1.45 1 0;
        gap: 5px;
        padding-inline: 7px;
    }

    body.student-course-session .student-course-sidebar .dashboard-menu-link.is-active > span:not(.lucide-icon),
    body.student-course-session .student-course-sidebar .dashboard-menu-link[aria-current="page"] > span:not(.lucide-icon) {
        display: block;
    }
}

@media (max-width: 360px) {
    body.student-course-session .student-course-sidebar {
        right: max(8px, env(safe-area-inset-right, 0px));
        left: max(8px, env(safe-area-inset-left, 0px));
        border-radius: 21px;
    }

    body.student-course-session .student-course-sidebar .dashboard-menu {
        gap: 4px;
        padding: 6px;
    }

    body.student-course-session .student-course-sidebar .dashboard-menu-link {
        min-height: 58px;
        height: 58px;
        border-radius: 15px;
        font-size: 9.5px;
    }

    body.student-course-session .student-course-sidebar .dashboard-menu-link > .lucide-icon:first-child {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .school-heading,
    .education-visual,
    .course-item,
    .education-visual img {
        animation: none;
    }

    .course-videos,
    .course-arrow,
    .video-link,
    .tab-button,
    .tab-icon,
    .premium-modal-overlay,
    .premium-modal-panel {
        transition: none;
    }
}
