.lesson-preview {
    max-width: 1060px;
    margin: 35px auto 0;
    padding: 0 24px
}

.lesson-preview h2 {
    font-size: 25px;
    margin: 5px 0 17px
}

.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 15px;
    background: #102a43;
    box-shadow: 0 14px 35px #102a431c;
    margin-bottom: 14px
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0
}

.lesson-preview>.text-link {
    display: inline-block;
    margin: 2px 0 0;
    font-weight: 750;
    font-size: 13px
}

.lesson-action {
    flex: none;
    color: var(--teal-dark);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap
}

.lesson-action:hover {
    text-decoration: underline
}

.lesson-action span {
    font-size: 16px
}

.site-notice {
    max-width: 1060px;
    margin: 18px auto 0;
    padding: 12px 16px;
    border: 1px solid #cbe9d6;
    border-radius: 10px;
    background: #e6f5ed;
    color: #226b45;
    font-size: 13px
}

.site-notice-error {
    margin: 12px 0;
    background: #fff0ed;
    border-color: #f2d0ca;
    color: #993d34
}

.nav-greeting {
    font-size: 12px;
    color: var(--muted)
}

.nav-auth-form {
    display: inline-flex
}

.login-page {
    min-height: 65vh;
    display: grid;
    place-items: center;
    padding: 42px 20px
}

.login-card {
    display: grid;
    gap: 10px;
    width: min(100%, 440px);
    padding: 32px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 15px 45px #102a4310
}

.login-card h1 {
    font-size: 30px;
    letter-spacing: -.04em;
    margin: 0
}

.auth-back-link {
    justify-self: start;
    margin: -8px 0 4px;
    color: var(--teal-dark);
    font-size: 13px;
    font-weight: 700
}

.login-card p {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 10px
}

.login-card label {
    font-size: 12px;
    font-weight: 750;
    color: #42596c;
    margin-top: 8px
}

.login-card input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    font: inherit
}

.login-submit {
    justify-self: start;
    border: 0;
    margin-top: 8px;
    cursor: pointer
}

.auth-switch {
    margin-top: 11px !important;
    padding-top: 15px;
    border-top: 1px solid var(--line);
    font-size: 13px !important
}

.auth-switch a {
    color: var(--teal-dark);
    font-weight: 800;
    text-decoration: underline
}

.auth-hint {
    margin-top: -7px;
    color: var(--muted);
    font-size: 11px
}

.auth-google-signin {
    display: grid;
    justify-items: start;
    gap: 6px;
    margin: 4px 0
}

.google-signin-pending {
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font: inherit;
    font-weight: 650;
    opacity: .8
}

.auth-google-signin small {
    color: var(--muted);
    font-size: 11px
}

.verify-form {
    display: grid;
    gap: 10px
}

.resend-form {
    margin-top: 4px
}

.resend-form button {
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer
}

@media(max-width:600px) {
    .lesson-preview {
        padding: 0 18px;
        margin-top: 27px
    }

    .lesson-preview h2 {
        font-size: 21px
    }

    .video-frame {
        border-radius: 10px
    }

    .site-notice {
        margin: 12px 18px
    }

    .nav-greeting {
        display: none
    }

    .login-card {
        padding: 25px 21px
    }
}

.course-learning-layout {
    display: grid;
    grid-template-columns: minmax(270px, .82fr) minmax(0, 1.58fr);
    align-items: start;
    gap: 26px;
    padding: 36px max(4vw, 24px) 65px
}

.course-learning-outline {
    position: sticky;
    top: 18px;
    min-width: 0
}

.course-learning-outline h2 {
    font-size: 22px
}

.course-learning-outline .module-item li {
    align-items: flex-start
}

.course-learning-outline .module-item li>span {
    min-width: 0;
    overflow-wrap: anywhere
}

.course-learning-outline .current-lesson {
    background: #f0f8f7;
    border-radius: 8px;
    padding: 10px;
    margin: 5px -8px
}

.course-learning-outline .current-lesson .lesson-action {
    color: #0b625f
}

.course-current-lesson {
    max-width: none;
    margin: 0;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    min-width: 0
}

.course-current-lesson h2 {
    margin-bottom: 16px
}

.locked-lesson-content {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 30px;
    min-height: 230px
}

.locked-lesson-content h2 {
    margin: 6px 0
}

.locked-lesson-content p {
    color: var(--muted)
}

@media(max-width:850px) {
    .course-learning-layout {
        grid-template-columns: minmax(230px, .85fr) minmax(0, 1.3fr);
        gap: 16px;
        padding: 28px 20px 50px
    }

    .course-current-lesson {
        padding: 17px
    }
}

@media(max-width:680px) {
    .course-learning-layout {
        grid-template-columns: 1fr;
        padding: 25px 16px 45px
    }

    .course-learning-outline {
        position: static
    }

    .course-current-lesson {
        padding: 16px;
        margin: 0
    }

    .course-current-lesson .video-frame {
        margin-left: -1px;
        margin-right: -1px
    }
}

.course-review-section {
    padding: 5px max(5vw, 24px) 60px;
    max-width: 1180px;
    margin: 0 auto
}

.course-review-section h2 {
    margin: 4px 0 20px
}

.course-review-form {
    display: grid;
    gap: 9px;
    max-width: 650px;
    padding: 18px;
    margin: 0 0 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px
}

.course-review-form label {
    font-size: 12px;
    font-weight: 750;
    color: #435a6d
}

.course-review-form select,
.course-review-form textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font: inherit;
    color: var(--ink)
}

.course-review-form textarea {
    resize: vertical
}

.course-review-form button {
    justify-self: start
}

.course-review-form small {
    color: var(--muted)
}

.course-approved-reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px
}

.course-approved-reviews article {
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 11px
}

.course-approved-reviews article>strong,
.course-approved-reviews article>small {
    display: block
}

.course-approved-reviews article>small {
    color: var(--muted);
    font-size: 11px
}

.course-approved-reviews p {
    color: #506579;
    font-size: 13px;
    white-space: pre-wrap
}
